query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
$ANTLR end "rule__Element2__ModelGroupElement1Assignment_5_1" $ANTLR start "rule__Element2__ModelGroupElement2Assignment_8" ../org.xtext.example.mydsl.group.unchanged.ui/srcgen/org/xtext/example/mydsl/group/unchanged/ui/contentassist/antlr/internal/InternalMyDsl.g:1658:1: rule__Element2__ModelGroupElement2Assignment_8 ... | public final void rule__Element2__ModelGroupElement2Assignment_8() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.mydsl.group.unchanged.ui/src-gen/org/xtext/example/mydsl/group/unchanged/ui/contentassist/antlr/internal/InternalMyD... | [
"public final void rule__Element2__ModelGroupElement1Assignment_4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.group.unchanged.ui/src-gen/org/xtext/example/mydsl/group/unchanged/ui/contentassist/antlr/internal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Returns the Google Maps API call URL for the trip used by the Mapper. | public String getTripURL() {
return getCarpoolMapper().getTripURL();
} | [
"String getGeoCodingServiceProviderUrl();",
"public String buildGoogleDirectionsRequest(){\n String originName = destinations.get(0).latitude + \",\" + destinations.get(0).longitude;\n String deName = destinations.get(destinations.size()-1).latitude + \",\" + destinations.get(destinations.size()-1).... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
listCA Get all Enrollments, add to session, set pagination and return enrollment list view. Set parameters (page, pageSize) if not defined. | @RequestMapping(value = "/staff/enrollmentlist")
public ModelAndView listEnrollments(@RequestParam(required = false) Integer page, @RequestParam(required = false) Integer pageSize, HttpSession session) {
if (page == null) {
page = 0;
}
PagedListHolder<Enrollment> resultList = (PagedListHolder<Enrollment>) ... | [
"@RequestMapping(value = \"/staff/cacourselist\")\n\tpublic ModelAndView listCACourses(@RequestParam(required = true) Long campusID,\t\n\t\t\t@RequestParam(required = true) Long termID,\t\n\t\t\t@RequestParam(required = false) Integer page, \n\t\t\t@RequestParam(required = false) Integer pageSize, HttpSession sessi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all values of property EndedAtTime [Generated from RDFReactor template rule removeall1dynamic] | public void removeAllEndedAtTime() {
Base.removeAll(this.model, this.getResource(), ENDEDATTIME);
} | [
"public void removeTime() {\n\n if (!isDayOnly()) {\n\n List<PropertyParameter> parameters = getParameters();\n\n PropertyParameter valueParam = getParameter(\"VALUE\");\n if (valueParam != null) {\n parameters.remove(valueParam);\n }\n pa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the VATregistrationnumber value for this Account. | public java.lang.String getVATregistrationnumber() {
return VATregistrationnumber;
} | [
"public String getVATNumber() {\n if (isVATRegistered) {\n return \"BG\" + this.eik;\n }\n return \"\";\n }",
"public void setVATregistrationnumber(java.lang.String VATregistrationnumber) {\n this.VATregistrationnumber = VATregistrationnumber;\n }",
"public String ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Spill = false; Discard = true; discard only 5% Fixed size frames | @Test
public void testMemoryVariableSizeFrameNoSpillWithDiscard() {
try {
int discardTestFrames = 100;
Random random = new Random();
IHyracksTaskContext ctx = TestUtils.create(DEFAULT_FRAME_SIZE);
// Spill budget = Memory budget, No discard
FeedPol... | [
"@Test\n public void testMemoryFixedSizeFrameNoSpillWithDiscard() {\n try {\n int discardTestFrames = 100;\n IHyracksTaskContext ctx = TestUtils.create(DEFAULT_FRAME_SIZE);\n // Spill budget = Memory budget, No discard\n FeedPolicyAccessor fpa = createFeedPolicy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table xpw_nav | @Select({ "select", "id, column_id, child_column_id, column_name, child_column_name, article_title, ",
"brief, url, img_url, publish_time", "from xpw_nav", "where id = #{id,jdbcType=BIGINT}" })
@ResultMap("com.xmheart.mapper.XPWNavMapper.BaseResultMap")
XPWNav selectByPrimaryKey(Long id); | [
"public VTDNav getNav(){\n return vn1;\n }",
"@Insert({ \"insert into xpw_nav (column_id, child_column_id, \", \"column_name, child_column_name, \",\n \"article_title, brief, \", \"url, img_url, publish_time)\",\n \"values (#{columnId,jdbcType=BIGINT}, #{childColumnId,jdbcType=BIGI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Wrapper to set the list of items in a JList and then to keep the selected elements. | private void setListAndResetSelection(JList list, List<String> items, java.util.List selection) {
Map<String,Integer> str_to_i = new HashMap<String,Integer>();
String as_str[] = new String[items.size()]; for (int i=0;i<as_str.length;i++) { as_str[i] = items.get(i); str_to_i.put(as_str[i], i); }
list.setList... | [
"private void selectAllJListItems(){\r\n ListModel<TechCheckListItem> model = techJList.getModel();\r\n int lastElementIndex = model.getSize() - 1;\r\n techJList.addSelectionInterval(0, lastElementIndex);\r\n for(int i = 0; i <= lastElementIndex; i++){\r\n TechCheckListItem it... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Record the actions shown for all action types (Journeys + any pedals). TODO(crbug/1418077): Move this to appropriate implementations. | private void recordActionsShown() {
for (Integer pedal : mLastVisiblePedals) {
OmniboxMetrics.recordPedalShown(pedal);
}
for (var actionIndex = 0; actionIndex < mActionInSuggestShownOrUsed.size(); actionIndex++) {
int actionType = mActionInSuggestShownOrUsed.keyAt(action... | [
"public static void printAction() {\n\t\t\n\t\tfor(Action action : Action.values()) {\n\t\t\tLOGGER.info(action.description());\n\t\t}\n\t}",
"public void displayActionAndResponses() {\n System.out.print(trackAction);\n if (trackAction.equals(\"move\")) {\n System.out.println(\",\" + trac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the factory to use when creating HttpsJwks objects | public static void setHttpsJwksFactory(HttpsJwksFactory httpsJwksFactory) {
JWTIssuerConfig.httpsJwksFactory = httpsJwksFactory;
} | [
"private void setHttpClientFactory() {\n PersistentCookieStore cookieStore = null;\n\n cookieStore = getDatabaseInstance().getPersistentCookieStore(); // get Cookie Store\n\n CouchbaseLiteHttpClientFactory cblHttpClientFactory =\n new CouchbaseLiteHttpClientFactory(cookieStore); ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function will resend an email notification with confirmation | private void resendNotification() {
int row = tableActivePackages.getSelectedRow();
String lastName = (String) tableActivePackages.getValueAt(row, 0);
String firstName = (String) tableActivePackages.getValueAt(row, 1);
String netID = (String) tableActivePackages.getValueAt(row,2);
String checkOut = (Stri... | [
"public void resendVerificationEmail(){\n progressDialog.setMessage(\"Please wait...\");\n progressDialog.show();\n mAuth.getCurrentUser().sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
a function that performs query matching on the dataset the function returns the queries as they were but with a final integer indicating a Score the Score = Cardinality | public static ArrayList<ArrayList<ArrayList<Double>>> assignScoreToQueries() {
ArrayList<ArrayList<ArrayList<Double>>> allQueries = Queries.createQueries();
ArrayList<ArrayList<String>> dataset = ReadInDataset.finalDataset;
int Counter = 0;
Double ... | [
"public void rankMatches();",
"Pair<Boolean, List<Result>> execQuery(int matchLimit);",
"public int numMatches();",
"boolean hasMatchingCount();",
"Object getNumberMatched();",
"public long numSimilarities();",
"private long countMatchingTuples(R rectangle, QueryRecord<R,Long> queryRecord) {\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Moves an atom to the specified position in its band | public void moveInBand(C chain, String atomId, int moveToPosition) throws NotFoundInChainException; | [
"public void moveBand(C chain, String bandId, int moveToPosition);",
"public void moveToBand(C chain, String atomId, String bandId, int moveToPosition) throws NotFoundInChainException, InstantiationException, IllegalAccessException;",
"public void moveToBand(C chain, String atomId, String bandId) throws NotFoun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the route propagation delay in seconds, summing the traversed link propagation delays | public double getPropagationDelayInMiliseconds ()
{
return cache_propagationDelayMs;
} | [
"public double getPropagationSpeedInKmPerSecond ()\n\t{\n\t\tdouble accumDelaySeconds = 0; double accumLengthKm = 0; for (Link e : cache_seqLinksRealPath) { accumDelaySeconds += e.lengthInKm / e.propagationSpeedInKmPerSecond; accumLengthKm += e.lengthInKm; }\n\t\treturn accumLengthKm / accumDelaySeconds;\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tells whether the graph is empty. | public boolean isEmpty()
{
return graph.isEmpty();
} | [
"public boolean isEmpty()\n\t{\n\t\treturn vertices.isEmpty();\n\t}",
"@Override\n\tpublic boolean isEmpty()\n\t{\n\t\treturn nodeList.isEmpty() && edgeList.isEmpty();\n\t}",
"public boolean isEmpty() {\n return numberOfNodes == 0;\n }",
"public boolean isEmpty()\n {\n return (numNodes == 0);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'documentType' field. | public java.lang.String getDocumentType() {
return documentType;
} | [
"public String getDocumentType() {\n return documentType;\n }",
"public String getDocumentType() {\n return this.documentType;\n }",
"public java.lang.String getDocumentType() {\r\n return documentType;\r\n }",
"DocumentType getDocumentType();",
"public String getDocumentType()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ForgetRequestFacade.forgetPwRequest(this, mIsPhone ? PhoneOrMailCheckRequest.PhoneType : PhoneOrMailCheckRequest.MailType, account); | private void sendMailOrPhone(String account){
RegisterRequestFacade.mailOrPhoneSendRequest(this, mIsPhone ? PhoneOrMailCheckRequest.PhoneType
: PhoneOrMailCheckRequest.MailType, account, true);
} | [
"int getActivePhoneType();",
"private boolean checkPhoneStatusOK() {\n return true;\n }",
"cb.Careerbuilder.Company.PhoneType getType();",
"com.cst14.im.protobuf.ProtoClass.EmailStauts getUserPhoneStatus();",
"com.bingo.server.msg.Login.LoginCheckAccountRequest getLoginCheckAccountRequest();",
"pb4s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the content MD5 in the request. This is used in upload file request, it can make sure that the file is not corrupted in transit. In case of the sha1 is different than the sha1 calculated on server, request is going to fail. | public BoxFileUploadRequestObject setContentMD5(String sha1) {
getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);
return this;
} | [
"public void setFileMD5(String v) { filemd5 = v; }",
"public PathAppendDataHeaders setContentMD5(byte[] contentMD5) {\n this.contentMD5 = CoreUtils.clone(contentMD5);\n return this;\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = Core... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value(s) for url (Retrieve URI (0008,1115 > 0008,1190)). creating it if it does not exist. Will not return null. Definition: WADORS URI where Series is available | public UriDt getUrl() {
if (myUrl == null) {
myUrl = new UriDt();
}
return myUrl;
} | [
"private URL getURL(MValue mValue) {\r\n\t\tType valueType = mValue.getValueType();\r\n\t\tif(valueType != Type.URL_TYPE)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tURL url;\r\n\t\tif(mValue.getUpperBound() == 1)\r\n\t\t\turl = (URL) mValue.getValue();\r\n\t\telse\r\n\t\t\turl = (URL) ((java.util.List) mValue.getValue())... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
show the only items specified by indices. mask() is behind. | public TList<T> show(List<Integer> indices) {
return mask(toMask(this.size(), indices));
} | [
"public TList<T> hide(List<Integer> indices) {\n BitSet mask = toMask(this.size(), indices);\n mask.flip(0, this.size());\n return mask(mask);\n }",
"public void showSlice(int index) {\n\t\tif (index>=1 && index<=imp.getStackSize())\n\t\t\timp.setSlice(index);\n\t}",
"public void showSli... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Edit an existing issue using the GitHub Issues API. | public final GitHubIssue update(GitHubIssue issue)
throws GitHubServiceException {
StringBuilder uri = new StringBuilder(API_URL_BASE)
.append(API_ISSUES_ROOT).append(EDIT)
.append(getTaskRepositoryUserName()).append("/")
.append(getTaskRepositoryProjectName()).append("/")
.append(issue.getNumber()... | [
"private void editIssue()\n\t{\n\t\t@SuppressWarnings(\"unused\")\n\t\tEditIssueDialogController editIssueDialogController = new EditIssueDialogController(view, currentTitle);\n\t}",
"@Override\r\n\tpublic void updateIssue(Issue issue) {\r\n\t\t//TODO - update the issue using db\r\n\t}",
"public void updateIssu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all test commands | @SuppressWarnings({ "rawtypes", "unchecked" })
private static List<Commands> getCommands()
{
List<Commands> commands = new ArrayList<Commands>();
List<Parameter> cmdSystemProperties = new ArrayList<Parameter>();
List<Parameter> commonSystemProperties = new ArrayList<Parameter>();
String sClassPath = "";
St... | [
"private static List<CommandOptions> getTestCommands(VTD_XML xml, String sXpath_Base)\n\t{\n\t\tList<CommandOptions> allTests = new ArrayList<CommandOptions>();\n\n\t\tString sXpath = sXpath_Base + \"Test\";\n\t\tint nNodes = xml.getNodesCount(sXpath);\n\t\tfor (int i = 0; i < nNodes; i++)\n\t\t{\n\t\t\tCommandOpti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle the results by putting them into the cache (if they aren't null) and displaying them. | private void handleResults(WeatherData results,
String reason) {
// Put in cache if result is not null.
if (results != null
&& results.getName() != null) {
mCurrentWeatherData = results;
mCache.put(mLocation,
resul... | [
"public void displayResults(){\n\t\trefreshPDResults();\n\t\t\n\t\toverflowData = core.getOverflowTable();\n\t\ttblOverflow.setItems(overflowData);\n\t\t\n\t\tcostData = core.getCostTable();\n\t\ttblCost.setItems(costData);\n\t\t\n\t\ttimeline.createTimeline(core.getProjectStartDate(), core.getProjectEndDate());\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a new value for the subTopicId property. | public void setSubTopicId(String subTopicId)
{
this.subTopicId = subTopicId;
} | [
"public void setSubId(String value) {\r\n setAttributeInternal(SUBID, value);\r\n }",
"public Builder setSubTopic(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subTopic_ = value;\n onChanged();\n return this;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a callback for easier detection of error conditions causing CoreGraphics to raise an error. Pass NULL to reset the callback. | @Generated
@CFunction
public static native void CGErrorSetCallback(
@FunctionPtr(name = "call_CGErrorSetCallback") Function_CGErrorSetCallback callback); | [
"void setCallback(Callback callback);",
"void setCallback(Object callback);",
"boolean SetCallbackEx(Callback pCallbackEx);",
"public void setInvalidResponseCallback(InvalidResponseCallback callback)\n {\n m_invalidResponseCallback = callback;\n }",
"public void setDrawError(boolean value){\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object. The default context is set for the given context and root via addDefaultContext(). | public static void setValue(Object tree, Map context, Object root, Object value)
throws OgnlException {
OgnlContext ognlContext = (OgnlContext) addDefaultContext(root, context);
Node n = (Node) tree;
if (n.getAccessor() != null) {
n.getAccessor().set(ognlContext, root, v... | [
"void setValue( String expression, Map<String, Object> context, Object root, Object value ) throws ReflectionException;",
"public static void setValue(Object tree, Map context, Object root, Object value)\n throws OgnlException\n {\n OgnlContext ognlContext = (OgnlContext) addDefaultContext(ro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the notification2 db. | private void addNotification2DB(String medium, String response,
String toAddress, String msgText, String lang, String appName,
String appRef, String refKey, String comments, String msgSubject)
{
AppNotificationDto dto = new AppNotificationDto();
dto.setMedium(medium);
dto.setResponse(response);
dto.setTo... | [
"private void addDataToDatabase() {\n File dbFile = getDatabasePath(Helper.DB_NAME);\n if(!dbFile.exists()) Helper.getInstance(this).addDataToDb();\n }",
"private void addContentNotification(SQLiteDatabase db, ContentNotification contentNotification) {\n\n if (contentNotification != null) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the message identified by mid from the inboxes of any server that holds the message from the replicated server The deletion can be executed asynchronously and does not generate any error message if the message does not exist. | @DELETE
@Path("/replica/msg/{user}/{mid}")
void deleteMessageReplica(@HeaderParam(MessageService.HEADER_VERSION) Long version,
@PathParam("user") String user, @PathParam("mid") long mid,
@QueryParam("pwd") String pwd, @QueryParam("secret") String secret) throws IOEx... | [
"@DELETE\n @Path(\"/replica/mbox/{user}/{mid}\")\n void removeFromUserInboxReplica(@HeaderParam(MessageService.HEADER_VERSION) Long version,\n @PathParam(\"user\") String user, @PathParam(\"mid\") long mid,\n @QueryParam(\"pwd\") String pwd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine teh number of installed bundles | public int getInstalledBundles(); | [
"java.math.BigInteger getNumberOfInstallments();",
"public int getActiveBundles();",
"public int getResolvedBundles();",
"int getBootclasspathCount();",
"org.apache.xmlbeans.XmlInteger xgetNumberOfInstallments();",
"public Bundle[] getInstalledBundles()\n {\n return m_activator.getBundles();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetches the html for the particular website. | private String fetchHTML() {
String response = null;
if (this.seedURL != null) {
try {
HttpsURLConnection httpsURLConnection = null;
HttpURLConnection httpURLConnection = null;
if (this.seedURL.toString().startsWith("https")) {
... | [
"public static String fetchHTML(URL url)\n\t{\n\t\tint defaultPort = 80;\n\t\tString host = url.getHost();\n\t\tString resource = url.getFile();\n\t\tint port = url.getPort() < 0 ? defaultPort : url.getPort();\n\t\tString output = \"\";\n\t\ttry (Socket socket = new Socket(host, port);\n\t\t\t\tBufferedReader reade... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.madhouse.media.momo.BidRequest.Imp.Native native = 4; | public com.madhouse.media.momo.MomoExchange.BidRequest.Imp.Native getNative() {
return native_;
} | [
"com.madhouse.media.momo.MomoExchange.BidRequest.Imp.Native getNative();",
"com.madhouse.media.momo.MomoExchange.BidRequest.Imp.NativeOrBuilder getNativeOrBuilder();",
"public com.madhouse.media.momo.MomoExchange.BidRequest.Imp.NativeOrBuilder getNativeOrBuilder() {\n return native_;\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for receivedQty to set. | public void setReceivedQty(BigDecimal receivedQty) {
this.receivedQty = receivedQty;
} | [
"public void setQty(java.math.BigDecimal qty) {\n\t\tthis.qty = qty;\n\t}",
"public void setQty(int value) {\n this.qty = value;\n }",
"public void setPendingQty(int arg)\n\t{\n\t\tsetValue(PENDINGQTY, new Integer(arg));\n\t}",
"public void setQtyDelivered(BigDecimal QtyDelivered);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form Librarian | public Librarian() {
initComponents();
} | [
"public Librarian(){}",
"private void addLibrarian() {\n Librarian newLibrarian = addLibrarianView.display();\n if (newLibrarian != null && handler.addLibrarian(newLibrarian)) {\n System.out.println(newLibrarian.getFirstName() + \" was added\");\n } else {\n //System.out... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field tweet is set (has been assigned a value) and false otherwise | public boolean isSetTweet() {
return this.tweet != null;
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetT() {\n return this.t != null;\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"public boolean isSetValue() {\n return this.value != null;\n }",
"public static boole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
false, if more than three digits in a row are the same | public boolean check3sameNumbersMax(String password) {
for (int i = 0; i < password.length() - 3; i++) {
if (String.valueOf(password.charAt(i)).matches("\\d")) { //next time: Character.isDigit(passtword.charAt(i))
for (int j = i; j < i+3; j++) {
if (password.charA... | [
"public static boolean checkdigitsequal() {\n int count2=0;\n for (a = 0; a < 10; a++) {\n if (digits[a] == 0)\n {\n count2++;\n if(count2==10)return true;\n }\n else return false;\n }\n return false;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method id used to validate whether the number is a five digit number. | public static boolean validateDigit(int num) {
return (String.valueOf(num).length()==5)?true:false;
} | [
"@Override\n public boolean validateNumber(int n) {\n return n%10!=3;\n }",
"@Test\n\tvoid isEightOrMoreSevenDigits() {\n\t\tassertFalse(PasswordChecker.isEightOrMore(\"1324354\"));\n\t}",
"public boolean validate(int input)\r\n\t\t {\r\n return (Integer.toString(input).length() == 4) ?... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
By Adam Garibay This method captures the amount of bills the customer is ready to process. Sets the array sizes, calls methods in a for loop, calculates the total and movie charges, and adds them as a String.format to the billingStmts array. | public void processBills() {
System.out.printf("%nHow many bills are there to process? ");
int numBills = input.nextInt(); //local variable captures int from user.
cableBills = new Invoice[numBills];
billingStmts = new String[numBills];
for(int i=0; i < numBills; i++) {
... | [
"public void displayBills() {\r\n \r\n System.out.println();\r\n \r\n for (String billingStmts : billingStmts) {\r\n \r\n System.out.printf(\"%nSA CABLE CHARGES AS OF %tD\", dateTime);\r\n System.out.println(billingStmts);\r\n printThankYou(); \r\n }\r\n }",
"public void bi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Closed, locked, no alarm | void take_key() {
if (state == 1 && lock == 0 && alarm == 0)
return;
/* Closed, unlocked, no alarm */
if (state == 1 && lock == 1 && alarm == 0)
lock = 0;
/* Opened, unlocked, no alarm */
if (state == 0 && lock == 1 && alarm == 0)
lock = 0;
/* Opened, locked, no alarm */
if (state == 0 && lock ... | [
"void close() {\n\t\tif (state == 1 && lock == 0 && alarm == 0)\n\t\t\treturn;\n\t\t/* Closed, unlocked, no alarm */\n\t\tif (state == 1 && lock == 1 && alarm == 0)\n\t\t\treturn;\n\t\t/* Opened, unlocked, no alarm */\n\t\tif (state == 0 && lock == 1 && alarm == 0)\n\t\t\tstate = 1;\n\t\t/* Opened, locked, no alar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The interface Wx open config storage. | public interface WxOpenConfigStorage {
/**
* Gets component app id.
*
* @return the component app id
*/
String getComponentAppId();
/**
* Sets component app id.
*
* @param componentAppId the component app id
*/
void setComponentAppId(String componentAppId);
/**
* Gets component a... | [
"WxMpConfigStorage getWxMpConfigStorage(String appId);",
"public abstract ConfigurationStorage getStorage();",
"public interface OSSFileSystemConfigKeys {\n\n /**\n * OSS Credentials\n */\n String ACCESS_KEY_PROPERTY = \"fs.oss.accessKeyId\";\n\n /**\n * OSS Credentials\n */\n String SECRET_ACCESS_K... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes the window borderless, overriding current properties with the native video mode of the monitor | public void makeBorderless(long monitor){
//Fullscreen, change the size and resolution based on the video mode
//Skip if already borderless
if(type == Type.BORDERLESS){
return;
}
//Retrieve the monitor's video mode
monitorID = monitor;
GLFWVidMode mo... | [
"private void disableFullscreenInvisibly() {\n if (!isFullscreen) {\n return;\n }\n\n switchingScreenState = true;\n\n // disable full-screen\n isFullscreen = false;\n toggleFullScreenWindow();\n\n // update display\n disposeWindow();\n\n // ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the long hw1_1000000LOC26method5(byte,hw1_1000000LOC16,hw1_1000000LOC17,byte,String,hw1_1000000LOC22,char) method test. | @Test
public void testHw1_1000000LOC26method5_2()
throws Exception {
byte var0 = (byte) 1;
hw1_1000000LOC16 var1 = new hw1_1000000LOC16();
hw1_1000000LOC17 var2 = new hw1_1000000LOC17();
byte var3 = (byte) 1;
String var4 = "";
hw1_1000000LOC22 var5 = new hw1_1000000LOC22();
char var6 = '';
long res... | [
"@Test\n\tpublic void testHw1_1000000LOC26method5_5()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check the termName from db if it is exist in DB it will store the data and prints in console as already submitted | private boolean checkTerm(Session session, Term tt) {
List<String> list = session.createQuery("select t.termName from Term t").list();
for (String st : list) {
if (st.equals(tt.getTermName())) {
System.out.println("Term Already Submitted:");
session.close();
b = true;
}
}
return b;
} | [
"private boolean readTermTitleExists(String termTitle)\r\n {\r\n SQLiteDatabase db = WguDatabaseManager.getInstance().openDatabase();\r\n String getTermTitle = \"\";\r\n\r\n String query = \"SELECT \\n\" +\r\n Term.TERM_TITLE +\r\n \" FROM \\n \" +\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: postmortem_ser_no | public java.lang.String getPostmortemSerNo () {
return postmortemSerNo;
} | [
"public void setPostmortemSerNo (java.lang.String postmortemSerNo) {\n\t\tthis.postmortemSerNo = postmortemSerNo;\n\t}",
"public String seasonEpNoGetValue(){\r\n\t\t\r\n\t\treturn seasonEpNo;\r\n\t}",
"public String getp_recpt_no() {\n return (String)getNamedWhereClauseParam(\"p_recpt_no\");\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
new columns (arrivalLocalTm) // | public ScGridColumn<AcDomesticCandidateRouteLeg> newArrivalLocalTmColumn()
{
return newArrivalLocalTmColumn("Arrival Local Tm");
} | [
"public ScGridColumn<AcConsignmentTransport> newArrivalLocalTsColumn()\n {\n return newArrivalLocalTsColumn(\"Arrival Local Ts\");\n }",
"public ScGridColumn<AcUspsDomesticSupply> newArrivalLocalTmColumn()\n {\n return newArrivalLocalTmColumn(\"Arrival Local Tm\");\n }",
"public ScGrid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The delta domain container is "frozen" (it can no longer accept new value removals) so that this set of values can be iterated as such | public void freezeDeltaDomain() {
delatDom.freeze();
} | [
"public void freezeDeltaDomain();",
"@Override\n public Iterator<E> iterator() {\n return Collections.unmodifiableCollection(entries.values()).iterator();\n }",
"@Override\n public Iterator<Value> iterator()\n {\n return values.iterator();\n }",
"public void clearDeltaDomain();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether a given move is a line move, meaning that the marbles will move in a line. | public boolean isLineMove(String crd1, String crd2, String direction) {
if (this.howManyMarbles(crd1, crd2) == 1) {
return false;
} else if (this.howManyMarbles(crd1, crd2) == 2) {
if (neighbor.getDirection(crd1, crd2).equals(direction)
|| neighbor.getDir... | [
"private boolean checkMove(IMove move, int player) {\n int x = move.getX();\n int y = move.getY();\n\n boolean givesLine = false;\n\n copyBoard[x][y] = \"\" + player;\n\n checkForWinInMicro(player);\n // Checks if the move gives a new line\n\n for (int i = 0; i < 3; ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add user credential to the cache | private void addCredentialToCache(String k, GoogleCredential v){
cache.put(k, v);
M_log.debug("Added entry to cache, key: " + k +", value: " + v);
} | [
"private void offerCache(UserCacheEntry entry) {\n Validate.notNull(entry);\n if (isExpired(entry)) return;\n \n caches.put(authUUID() ? entry.profile.getName() : entry.profile.getName().toLowerCase(Locale.ROOT), entry);\n }",
"private GoogleCredential getCredentialFromCredentialCac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method sets the value of the database column t_research.downloadId | public void setDownloadid(Long downloadid) {
this.downloadid = downloadid;
} | [
"public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}",
"public void setDownloadPath(String downloadPath);",
"public void setDownloaded(java.lang.Long value) {\n this.downloaded = value;\n }",
"public trans.encoders.tordnsel.Tordnsel.Builder setDownloaded(java.lang.Long value) {\n validate(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set file type, read from text content. | public abstract void setFileType(TagContent type) throws TagFormatException; | [
"public void setFiletype(java.lang.CharSequence value) {\n this.filetype = value;\n }",
"public void setFileType(String type)\n {\n fileType = type;\n }",
"public void setFileType(FileType typ) {\n fileType = typ;\n }",
"public void setFileType(java.lang.String value) {\r\n\t\tBase.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor vacio de la clase Compania | public Compania() {
} | [
"public Carrera(){\n }",
"public EmpresarioVentaCompra() {\r\n }",
"public Compra() {}",
"public AntrianPasien() {\r\n\r\n }",
"public CCuenta()\n {\n }",
"public RecursoPessoa() {}",
"public Cgg_jur_anticipo(){}",
"public Busca(){\n }",
"public Compra() {\r\n\t\tsuper();\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write UAV settings in an XML file | public static void writeUAV(){
System.out.println("Writing new UAV");
Document dom;
Element e = null;
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
try {
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuild... | [
"private void writeSettingsFile() {\n try (OutputStream output = new FileOutputStream(SETTINGS_FILE_PATH)) {\n this.settings.store(output, null);\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n }",
"private void xmlSave() {\r\n FileDial... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the representation of the virtual sub resource structmap of an Container. | String renderStructMap(final Container container) throws SystemException; | [
"public Map<SubresourceKey, HttpResourceModel> getSubResources() {\n return subResources;\n }",
"public java.util.Map getResourceMap()\n {\n return __m_ResourceMap;\n }",
"public List<ResourceMapping> getSubMappings()\n {\n return f_subMappings;\n }",
"priva... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine whether or not any of the elements in the list are nullable. | public boolean isNullable()
throws StandardException
{
int size = size();
for (int index = 0; index < size; index++)
{
if (((ValueNode) elementAt(index)).getTypeServices().isNullable())
{
return true;
}
}
return false;
} | [
"public static boolean anyNotNull(Collection<Object> items) {\r\n if (!Objects.isNull(items)) {\r\n for (Object obj : items) {\r\n if (obj != null) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"public static boolean nullEmptyOrContainsOnlyNulls(Collecti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns remaining election timeout for a node | public Integer getRemainingTime() {
return remainingElectionTimeout;
} | [
"public void reduceRemainingElectionTimeout() {\n if (remainingElectionTimeout == 0) {\n remainingElectionTimeout = electionTimeout;\n }\n remainingElectionTimeout--;\n }",
"public long getLeaderElectionTimeoutMs() {\n return getRandomInt((int) config.getLeaderElectionTim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for returning a list of recipes to the subscription using the getRecipesToOrder(int OrderID) method (from the OrderConnection class) and the getOrderIDFromSubID(int subscriptionID) method. | public ArrayList<Recipe> getRecipesToSubscription(int subscriptionID) {
return getRecipesToOrder(getOrderIDFromSubID(subscriptionID));
} | [
"List<T> getRecipes();",
"ArrayList<RecipeObject> getRecipes();",
"List<Recipe> getAllRecipes();",
"public ArrayList<Recipe> getRecipeList(){\n\t\tString sql = \"SELECT * FROM 'recipe';\";\n\t\tArrayList<Recipe> recipeList = new ArrayList<Recipe>();\n\n\t\ttry {\n\t\t\tPreparedStatement pStatement = this.conn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dequeues at most num elements which are ready from the SelectSource. Returns null if no entries available. | public QueueElementIF[] dequeue(int num) {
if (selset.size() == 0)
return null;
if ((ready_size == 0) || (ready_offset == ready_size)) {
doPoll(0);
}
if (ready_size == 0)
return null;
int numtoret = Math.min(ready_size - ready_offset, num);
SelectQueueElement ret[] = new SelectQueueElement[numtor... | [
"public QueueElementIF[] dequeue_all() {\n\t\tif (selset.size() == 0)\n\t\t\treturn null;\n\n\t\tif ((ready_size == 0) || (ready_offset == ready_size)) {\n\t\t\tdoPoll(0);\n\t\t}\n\t\tif (ready_size == 0)\n\t\t\treturn null;\n\t\tSelectQueueElement ret[] = new SelectQueueElement[ready_size - ready_offset];\n\t\tfor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the presenter to use with given property id. | protected Optional<ValueProvider<?, ?>> getPropertyPresenter(P property) {
Optional<ValueProvider<?, ?>> propertyPresenter = getPropertyColumn(property).getPresentationProvider();
if (propertyPresenter.isPresent()) {
return propertyPresenter;
}
return getDefaultPropertyPresenter(property);
} | [
"public Optional<Property> findOne(String id) {\n log.debug(\"Request to get Property : {}\", id);\n return propertyRepository.findById(id);\n }",
"public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }",
"public Professor getById(int i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 bufId = 2; | int getBufId(); | [
"int getBuffId();",
"public int getBufId() {\n return bufId_;\n }",
"int getBufUid();",
"int getBufferId() {\n return bufferId;\n }",
"public IntBuffer asIntBuffer()\n{\n buffer.position(offset);\n return buffer.asIntBuffer();\n}",
"void setBufferId(int id) {\n this.bufferId... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method adds a review comment to a review. It simply delegates all logic to underlying services. | public void addReviewComment(TCSubject tcSubject, long reviewId, Comment comment) {
throw new UnsupportedOperationException();
} | [
"public abstract void addReview(Comments c);",
"public void addReview(Review review) {\r\n this.reviewsCollection.add(review);\r\n }",
"@RequestMapping(value = \"/films/title/{title}/{reviewId}\", method=RequestMethod.POST)\n public String createComment(@RequestParam String content, @PathVariable S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'PE Extension'. | PEExtension createPEExtension(); | [
"Extension createExtension();",
"Extensions createExtensions();",
"protected abstract EXT createExtension();",
"PEDataType createPEDataType();",
"public EPPProtocolExtension() {\n\t}",
"PEChild createPEChild();",
"PEProperty createPEProperty();",
"PEFlag createPEFlag();",
"public EpicExtensionProvid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Signs up attendee for a particular event | public void signUpEventAttendee(String username, String eventTitle){
// This method is called only when the user have logged in to the system, thus the user must exist.
Attendee user = stringToAttendee(username);
List<String> eventList = user.getEventAttending();
eventList.add(eventTitle... | [
"public boolean signUpEvent(IGateway eventGateway, IGateway userGateway, EventBoard eb, AccountManager acm, int eventId) {\n if (!eb.isValidId(eventId)) {\n return false;\n }\n Event event = eb.getEventById(eventId);\n if (event.addAttendee(user.getId())) {\n ((Atte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method Name: updateFirstName() Description: This function will be called to update First Name | public void updateFirstName(String firstname) {
try {
Assert.assertTrue(firstName.isDisplayed(),"First Name field is visible");
firstName.clear();
firstName.sendKeys(firstname);
Log.addMessage("First Name of the user is successfully updated");
}catch(Exception e) {
Log.addMessage("Failed to update Fi... | [
"public void setFirstName(String newFirstName) {\n this.firstName = newFirstName;\n }",
"public void setFirstName(String newFirstName) {\r\n\t\t\r\n\t}",
"public void setFirstName (String newFirstName) {\n\t\tfirstName = newFirstName;\n\t}",
"public void setFirstName(String newFirst)\n {\n\t \n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method estimates the tweedie dispersion parameter. It will use Newton's update if the new update will increase the loglikelihood. Otherwise, the dispersion will be updated as dispersionNew = dispersionCurr + learningRate update. In addition, line search is used to increase the magnitude of the update when the upda... | public static double estimateTweedieDispersionOnly(GLMModel.GLMParameters parms, GLMModel model, Job job,
double[] beta, DataInfo dinfo) {
long currTime = System.currentTimeMillis();
long modelBuiltTime = currTime - model._output._start_time;... | [
"private double dispersion() {\n\t\tdouble disp = 0d;\n\t\t\n\t\t// Interpolate the scores.\n\t\tif(wResiduals.size() != nLast) {\n\t\t\tnLast = wResiduals.size();\n\t\t\tmakeScores(nLast);\n\t\t}\n\t\t// The dispersion is just a dot product.\n\t\tfor(int j=0; j<nLast; j++) {\n\t\t\tdisp += scores[j]*wResiduals.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this is a wrapper method for shutting down the thread pool after use | public void shutDown()
{
this.threadPool.shutdown();
} | [
"public void shutdown() {\r\n\t\tpoolExecutor.shutdown();\r\n\t}",
"public void shutdown()\n {\n shutdownInUseThreads();\n m_disposed = true;\n try\n {\n m_pool.close();\n }\n catch( final Exception e )\n {\n final String message = \"Error ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
lists options place finder can be queried with like find all, find open now and find paginated | public static void placeFinderOptions(String keyword) {
PlaceFinderFactory factory = new PlaceFinderFactory();
IPlaceFinder finder = factory.getFinder(keyword);
if(finder == null) {
logger.log(Level.SEVERE, "finder not found");
return;
}
MessageOut.printP... | [
"@Override\n public List<Place> findAll() {\n return placeRepository.findAll();\n }",
"@Override\n public Collection<TP> getAllPlaces()\n ;",
"List<Option> findAllOptions();",
"@Override\n @Transactional(readOnly = true)\n public List<Place> findAll() {\n log.debug(\"Request to... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the default float buffer of size FLOAT_MAX | public static FloatBuffer createFloatBuffer() {
return createFloatBuffer(FLOAT_MAX);
} | [
"default SmallFloatBuffer asFloatBuffer() {\n\t\treturn new SmallFloatBuffer(duplicate());\n\t}",
"private FloatBuffer asFloatBuffer(float... values){\n\t\tFloatBuffer res = reserveData(values.length*4); // 4 bytes per float\n\t\tres.put(values);\n\t\tres.flip();\n\t\treturn res;\n\t}",
"private FloatBuffer mak... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tells if the navigation tree is autoresized. | boolean isNavTreeAutoResize(); | [
"void setNavTreeAutoResize( boolean navTreeAutoResize );",
"public boolean isResized() {\r\n return resized;\r\n }",
"void resizeNavTree();",
"void setNavTreeMaxAutoWidth( Integer navTreeMaxAutoWidth );",
"Integer getNavTreeMaxAutoWidth();",
"public boolean isMaximized() {\n return isElem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of isMissing method, of class GeoCoord2D. | @Test
public void testIsMissing()
{
System.out.println("isMissing");
GeoCoord2D instance = new GeoCoord2D();
boolean expect = true;
boolean result = instance.isMissing();
assertEquals(expect, result);
instance = GeoCoord2D.fromDegrees(LAT_OXR, LON_OXR);
a... | [
"boolean isNilGeoCoordinate();",
"@Override\n public boolean isLocationEmpty(int x, int y)\n {\n return isLocationEmpty(null, x, y);\n }",
"boolean isIsMissing();",
"@Override\n public boolean isLocationEmpty(Unit unit, XYCoord coords)\n {\n return isLocationEmpty(unit, coords.xCoord, coords.yCoord... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add overlays for counties in Virginia. | public void addCountyOverlay() {
final Cache.NovaCountyQuery novaCountyQuery = new Cache.NovaCountyQuery(getContext()) {
@Override
public void useData(final String countyName, final List<LatLng> countyOutline,
final Map<String, String> countyStatistics) {
... | [
"private void shadeCountries() {\n\t\t\n\t}",
"private void createOceanRegions(Map map) {\n Game game = map.getGame();\n \n ServerRegion pacific =\n new ServerRegion(game, \"model.region.pacific\", RegionType.OCEAN);\n ServerRegion northPacific =\n new ServerRegion(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Post two message to logger before leaving controler. Should be used at exit from controller method. | void loggTwoOutMessage(String message1, String message2, Level lvl); | [
"private void procesaFin(String msg) {\n \n System.out.println(\"Terminando partida\");\n controller.terminarJuego();\n \n \n \n }",
"protected abstract void logAgentExit();",
"void logOutSuccess() {\r\n super.printActionMessage(\"You've successfully log out.\");\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
load user settings from preferences | public void loadFromPreferences(SharedPreferences preferences){
initialSetuped = preferences.getBoolean("initialSetupped", false);
userName = preferences.getString("username", "");
userEmail = preferences.getString("useremail", "");
recipientEmail = preferences.getString("recipientemail", "");
option = W... | [
"private void loadUserPreferences() {\n SharedPreferences settings = getSharedPreferences(PREFS_NAME,\n Context.MODE_PRIVATE);\n checkIdentifer = settings.getString(PREF_UNAME, DefaultUnameValue);\n identiferGroup = settings.getString(PREF_GROUP, DefaultGroupValue);\n if (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called to create an XML element node containing the data described in this object. The element root is a concatenation of each key's name. Each key is added as a child of the element root, with their value as the element value. For example, if there are two keys, "Key1" and "Key2", (using a root element ... | public Element toXml(Document doc)
{
if (doc == null)
throw new IllegalArgumentException("doc may not be null");
Element root = doc.createElement(getRelationType());
// add our db state
addComponentState(root);
for (int i = 0; i < m_keyNames.size(); i++)
{
PSX... | [
"private Element constructElement ( String key, String keyName )\n {\n String value = map.get ( key );\n Element element = new Element ( keyName );\n element.appendChild ( value );\n\n return element;\n }",
"@Override\n public Element toXMLElement() {\n return new DOMMe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test UNION ONSCHEMA with bytearray type | @Test
public void testUnionOnSchemaByteArrayConversions() throws Exception {
PigServer pig = new PigServer(Util.getLocalTestMode());
String query =
" l1 = load '" + INP_FILE_2NUM_1CHAR_1BAG + "' as "
+ " (i : bytearray, x : bytearray, j : bytearray "
+ ",... | [
"@Test\n public void testUnionOnSchemaCastOnByteArray() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (i, j);\"\n + \" f1 = foreach l1 generate (int)i, (int)j;\"\n + \"u = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column recive_message.model_id | public Integer getModelId() {
return modelId;
} | [
"public String getModelId() {\r\n return modelId;\r\n }",
"int getModelId();",
"public String getModelId() {\n return modelId;\n }",
"public java.lang.String getModelId() {\n java.lang.Object ref = modelId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "T__40" $ANTLR start "T__41" | public final void mT__41() throws RecognitionException {
try {
int _type = T__41;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalUniMapperGenerator.g:20:7: ( 'lexer' )
// InternalUniMapperGenerator.g:20:9: 'lexer'
{
match("lexer");
... | [
"public final void mT__41() throws RecognitionException {\n try {\n int _type = T__41;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/arv/workspace/master/meteor/meteor-meteor/src/main/java/eu/stratosphere/meteor/Meteor.g:17:7: ( '+' )\n // /home/arv/workspace/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns true if i is in the collection, also i has to be greater then 0 | public boolean belongs(int i)
{
int j = 0;
while ((c[j] != c[howmany])&&(c[j] != i)) j++;
return ((i>0)&&(c[j] == i));
} | [
"public boolean has(int i){\n if(!(i<0))\n\t \treturn FMembers.get(i);\n else return false;\n }",
"public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}",
"public boolean purchasedPlanesContains(int i) {\r\n\t\treturn collectionManager.purchasedPlanesContains(i);\r\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Guesses the font weight of a font using its name. | public static int guessWeight(String fontName) {
// weight
int weight = Font.WEIGHT_NORMAL;
for (String word : BOLD_WORDS) {
if (fontName.indexOf(word) != -1) {
weight = Font.WEIGHT_BOLD;
break;
}
}
for (String word : MEDIU... | [
"public String getFontWeight();",
"public void fontWeight() {\n APIlib.getInstance().addJSLine(jsBase + \".fontWeight();\");\n }",
"public static int parseCSS2FontWeight(String text) {\n int weight = 400;\n try {\n weight = Integer.parseInt(text);\n weight = (weight... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build smaller board to reduce searching space | private String[][] buildSmallBoard(String board[][]) {
int maxI = 0;
int maxJ = 0;
int minI = boardSize - 1;
int minJ = boardSize - 1;
for (int i = 0; i < boardSize; i++) {
for (int j = 0; j < boardSize; j++) {
if (board[i][j] == "X" || board[i][j] == "O") {
if (minI > i) {
minI = i;
... | [
"private void buildBoard() {\n // TODO\n // This line creates the gameBoard array. You must write several more\n // lines to initialize all its values to EMPTY\n gameBoard = new int[SQUARES][SQUARES];\n for (int i = 0; i < SQUARES; i++) {\n for (int j = 0; j < SQUARES; ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column IRP_FIELDS.FIELD_DB_NAME | public void setFIELD_DB_NAME(String FIELD_DB_NAME) {
this.FIELD_DB_NAME = FIELD_DB_NAME == null ? null : FIELD_DB_NAME.trim();
} | [
"public void setDBFieldName(String name) {\n dbFieldName = name;\n }",
"public String getFIELD_DB_NAME() {\r\n return FIELD_DB_NAME;\r\n }",
"public String getDBFieldName() {\n return dbFieldName;\n }",
"public void setFieldDBType(java.lang.String fieldDBType) {\n this.fieldDBType = f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if this view is currently attached to a window. | public boolean isAttachedToWindow() { throw new RuntimeException("Stub!"); } | [
"public boolean isWindowed();",
"protected final boolean isViewAttached() {\n return mView != null;\n }",
"public static boolean isWindowPresent() {\n return new GuiRobot().isWindowShown(BUS_WINDOW_TITLE);\n }",
"public static boolean isWindowPresent() {\n return new GuiRobot().isWi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines if the totalsubtest has been modified. | public boolean isTotalsubtestModified() {
return totalsubtest_is_modified;
} | [
"public boolean isParenttestModified() {\n return parenttest_is_modified; \n }",
"public static boolean testSubTotal() {\n boolean testPassed = true; // boolean local variable evaluated to true if this test passed,\n // false otherwise\n String[] cart = new String[20]; // shopping cart with cap... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'CCSID' attribute. If the meaning of the 'CCSID' attribute isn't clear, there really should be more of a description here... | String getCCSID(); | [
"public String getCsCsiIdseq()\n {\n return (String)getAttributeInternal(CSCSIIDSEQ);\n }",
"public String getCsIdseq()\n {\n return (String)getAttributeInternal(CSIDSEQ);\n }",
"public java.lang.String getCSN() {\n return CSN;\n }",
"public String getPCsCsiIdseq()\n {\n return (String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns an ArrayList of primes less than n. | public static ArrayList<Integer> primesLessThanSieveAdd(int n) {
ArrayList<Integer> primes = new ArrayList<Integer>();
mainloop: for (int i = 2; i < n; i++) {
for (int n1 : primes) {
if (i % n1 == 0) {
continue mainloop;
}
}
primes.add(i);
}
return primes;
} | [
"public static ArrayList<Integer> primesLessThan(int n) {\r\n\t\tArrayList<Integer> primes = new ArrayList<Integer>();\r\n\t\tfor (int i = 2; i < n; i++) {\r\n\t\t\tif (isPrime(i)) {\r\n\t\t\t\tprimes.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn primes;\r\n\t}",
"public static int[] primes(int n) {\r\n\t\tint curren... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets create test run end point url. | public static String getCreateTestRunURL() {
return baseURL + login_required_string + "/rest/domains/" + domain + "/projects/" + project + "/runs";
} | [
"public static String getTestRunURL() {\n\n\t\treturn baseURL + login_required_string + \"/rest/domains/\" + domain + \"/projects/\" + project + \"/runs\";\n\t}",
"public static String getTestInstanceURL() {\n\n\t\treturn baseURL + login_required_string + \"/rest/domains/\" + domain + \"/projects/\" + project + \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks to see if the specified Chest is a store | public boolean isStore(Chest chest){
if(chest==null)
return false;
return stores.containsKey(chest);
} | [
"public boolean removeStore(Chest chest){\n\t\tif(chest==null)\n\t\t\treturn false;\n\t\tif(!isStore(chest))\n\t\t\treturn false;\n\t\t\n\t\tstores.remove(chest);\n\t\tsaveStores();\n\t\treturn true;\n\t}",
"public boolean addStore(OfflinePlayer player,Chest chest){\n\t\tif(player==null || chest==null)\n\t\t\tret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used to find the right most boundary beginning at far right edge assumes top and bottom as ranges and uses offsetting | private void findRight() {
int offset = 0;
BoundarySearch: for (int j = 9; j >= left; j--) {
offset = top + j % 2;
for (int i = offset; i <= bottom; i = i + 2) {
int value = readBlobValue(i, j);
if (value == 1) {
right = ((ch... | [
"public abstract Point getDownRightCorner();",
"private void handleResizeRectangleBottomRight(){\n left = layoutRect.left;\n top = layoutRect.top;\n\n float offset1 = endX - left;\n float offset2 = endY - top;\n\n if (((left + offset1) <= this.getRight()) &&\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
delete entry in program field | public CampaignEditPage deleteEntryInProgramField()
{
readconfig();
//counting the number of entry in the field
int iCount = driver.findElements(By.xpath(library.getProperty("camp_edit_program_number"))).size();
System.out.println("**program: "+iCount);
for (int i=0; i<iCount;i++)
{
driver.find... | [
"public MediaGalleryEditPage deleteEntryInProgramField()\r\n\t{\r\n\t\treadconfig();\r\n\t\t//counting the number of entry in the field\r\n\t\tint iCount = driver.findElements(By.xpath(assets.getProperty(\"med_gallery_edit_program_number\"))).size();\r\n\t\tSystem.out.println(\"**program: \"+iCount);\r\n\t\tfor (in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the font object for this component. | public Object getFont()
{
return font;
} | [
"public Font getFont()\r\n {\r\n return font.getValue();\r\n }",
"public Font getFont(\n )\n {return font;}",
"public String getFont()\n { \n return font; \n }",
"public String getFont();",
"String getFont();",
"public FontProps getFontProps() {\n\t\treturn mFont;\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new keyboard view. | public KeyboardView() {
getStyleClass().add("keyboard");
setMinHeight(Region.USE_PREF_SIZE);
setOnClose(() -> new Alert(Alert.AlertType.WARNING, "Keyboard close handler missing.", ButtonType.CLOSE).show());
setSpecialKeyFactory(type -> {
switch (type) {
cas... | [
"private void createKeyboard(LinearLayout view) {\n\t\t// clears current keyboard\n\t\tview.removeAllViews();\n\t\tString keyString = keys[currentKeyboard];\n\t\tfor (int i = 0; i < keyString.length(); i++) {\n\t\t\tButton b = new Button(this);\n\t\t\t// 97 is the char a in ascii\n\t\t\tb.setPadding(10, 0, 10, 0);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the payment periods that combine to form the swap leg. Each payment period represents part of the lifetime of the leg. In most cases, the periods do not overlap. However, since each payment period is essentially independent the data model allows overlapping periods. The start date and end date of the leg are deter... | public ImmutableList<RatePaymentPeriod> getPaymentPeriods() {
return paymentPeriods;
} | [
"public SortedMap<Date, Payment> getPaymentsOnDateRange(Date start, Date end) {\n return payments.subMap(start, end);\n }",
"public java.util.List<org.drip.analytics.cashflow.CompositePeriod> periods()\n\t{\n\t\treturn _lsPeriod;\n\t}",
"public List<BudgetPeriod> createBudgetPeriods(BudgetPeriod endBu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "exists_key" main.java.PLSQLKeys.g:1752:1: exists_key : SQL92_RESERVED_EXISTS ; | public final exists_key_return exists_key() throws RecognitionException {
exists_key_return retval = new exists_key_return();
retval.start = input.LT(1);
Object root_0 = null;
Token SQL92_RESERVED_EXISTS359=null;
Object SQL92_RESERVED_EXISTS359_tree=null;
try {
... | [
"public boolean existsKey(String inKey);",
"boolean exists(K key);",
"boolean hasKey(String key);",
"boolean containsKey(Key k);",
"public boolean containsKey(K paKey) throws ETable;",
"public boolean exists() {\n prepareExistsStatement();\n PreparedStatementWrapper st = getDb().getPreparedStatement... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
go to facebook page maverick button onclick | public void facebook(View v){
v.startAnimation(buttonClick);
Intent myWebLink = new Intent(android.content.Intent.ACTION_VIEW);
myWebLink.setComponent(new ComponentName("com.android.browser", "com.android.browser.BrowserActivity"));
myWebLink.setData(Uri.parse("https://www.facebook.com... | [
"public EtoroLoginPage clickFacebookButton() {\n facebook.click();\n return this;\n }",
"public HomePage clickFacebookLink() {\n facebook.click();\n return this;\n }",
"private void openFacebookPage() {\n final String facebookUri = \"fb://page/\" + Config.FB_PAGE_CULARV_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given two nodes, see if they form a bar. Simple but useful. | public static boolean twoNodesMakeABar(Node node1, Node node2){
return barBetweenNodes(node1, node2) != null;
} | [
"public static Bar barBetweenNodes(Node node1, Node node2){\n String node1name=node1.id;\n String node2name=node2.id;\n int reverse_order = node1name.compareTo(node2name);\n String barname;\n if (reverse_order<0) {\n barname = node1name + \"-\" + node2name;\n } else {\n barname = node2name + \"-\" + nod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Workaround how to avoid empty xmlns="" by processing document | public static Document removeEmptyXmlns(Document input)
throws SAXException, ParserConfigurationException, IOException {
String s = xmlToString(input);
s = s.replace(EMPTY_XMLNS, EMPTY_STRING);
Document output = stringToDom(s);
return output;
} | [
"public void testAttributesVsNamespaces() \n throws ParsingException, IOException, SAXException {\n \n XMLFilter filter = new OrderingFilter();\n filter.setParent(\n XMLReaderFactory.createXMLReader(\n \"org.apache.xerces.parsers.SAXParser\"\n )\n );\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TB_LS_LOC_ELEC_ADDED.ELEC_ADDR | public String getELEC_ADDR() {
return ELEC_ADDR;
} | [
"public void setELEC_ADDR(String ELEC_ADDR) {\n\t\tthis.ELEC_ADDR = ELEC_ADDR == null ? null : ELEC_ADDR.trim();\n\t}",
"public String getEaddress() {\n return eaddress;\n }",
"public String getEmployeeAddress() {\r\n\r\n\t\treturn employeeAddress;\r\n\t}",
"public final SerialCellAddress getLastRow... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
writeFormOptions Called from Form Servlet. Writes checkboxes for available output options. | public static void writeFormOptions(
HttpServletRequest request,
HttpServletResponse response,
SQLite database,
PrintWriter out
) throws IOException, SQLException {
PreparedStatement statement = database.prepareStatement(Experience.QUERY);
ResultSet results = statement.executeQuery();
... | [
"protected void writeOptions(PrintWriter out)\n {\n for (Class c = getClass(); c != null; c = c.getSuperclass()) {\n for (Field field : c.getDeclaredFields()) {\n Option option = field.getAnnotation(Option.class);\n try {\n if (option != nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calcularMontoAApostar. Pre: la lista debe ser de apuestas validas. | public int calcularMontoAApostar(List<ItemApuesta> itemsApuestas)
{
int calculoAApostar = 0;
Casino cas = Casino.getInstance();
for (ItemApuesta ia : itemsApuestas)
{
calculoAApostar += cas.getValores().get(ia.getFicha()) * ia.getCantidad();
}
return calculoAApostar;
} | [
"public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[]... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Small utility methods. Deletes the given instruction and its subsequent compatible pop instruction, if any, and if the latter is not a branch target. | private void deleteWithSubsequentPop(CodeAttrInfo codeAttrInfo,
int offset,
Instruction instruction)
{
boolean isCategory2 = instruction.isCategory2();
int nextOffset = offset + instruction.length(offset);
... | [
"public void instructionCleared();",
"public static void deleteInstruction(\n \tInstructionHandle ih,\n \tInstructionHandle retargetTo,\n \tLazyMethodGen enclosingMethod) \n {\n InstructionList il = enclosingMethod.getBody();\n InstructionTargeter[] targeters = ih.getTargeters();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the list of orders with the provided list | public void setOrders(ArrayList<Order> orders) {
this.orders = orders;
} | [
"public void setOrders(List<Order> value)\n {\n \torders = value;\n }",
"public void setOrder(List list) {\n order = list;\n }",
"public void setOrderList(Order[] orderList) {\n this.orderList = orderList;\n }",
"public void setOrders(List<Order> orders) {\n this.orders = o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
stampaCategoria stampa a video CATEGORIA FILM | @Override
public void stampaCategoria() {
System.out.println(ConstantsRisorsa.FILM);
} | [
"public void saveTag() {\n writer.writeTag(categorie);\n }",
"public void cargaArchivoCategorias(){\n File archivo = new File(this.path, this.categoryFile);\n Integer line = 0;\n try{\n if(archivo.exists()){\n FileInputStream fis = new FileInputStream(archi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |