query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
/ takes a string and returns a string with the characters that are in the even positions in the passed in string. The first character in the string is at position 0. | public static String evenChar(String s){
String res = "";
for(int i = 0; i < s.length(); i += 2){
res += s.charAt(i);
}
return res;
} | [
"public String getEvenCharacters() {\n\t\t String[] evenCharArray = getWeirdString().split(\"\");\n\t\t String evenChars = \"\";\n\t\t for(int i = 0; i < evenCharArray.length; i = i + 2) {\n\t evenChars += evenCharArray[i];\n\t }\n\t\t return evenChars;\t\n\t}",
"static int alternatingCharacters... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the given element to the RateTables array. This is achieved by setting the parent foreign key to this entity instance. | public void addToRateTables(entity.RateTable element); | [
"public void setRateTables(entity.RateTable[] value);",
"public void addToRatebooks(entity.ImpactTestingRateBook element);",
"public void removeFromRateTables(entity.RateTable element);",
"public void addToBookName_L10N_ARRAY(entity.RateBook_BookName_L10N element);",
"public void addToRateBookCalcRoutines(e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Simple utitilty function to return the 'opposite' value of a given VPos, taking into account the current HPos value. This is used to try and avoid overlapping. | private static VPos getVPosOpposite(HPos hpos, VPos vpos) {
if (hpos == HPos.CENTER) {
if (vpos == VPos.BASELINE) {
return VPos.BASELINE;
} else if (vpos == VPos.BOTTOM) {
return VPos.TOP;
} else if (vpos == VPos.CENTER) {
retur... | [
"private static HPos getHPosOpposite(HPos hpos, VPos vpos) {\n if (vpos == VPos.CENTER) {\n if (hpos == HPos.LEFT) {\n return HPos.RIGHT;\n } else if (hpos == HPos.RIGHT) {\n return HPos.LEFT;\n } else if (hpos == HPos.CENTER) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function takes flickr feed list as a parameter and sorts the list based on Date Published | public static List<FlickrFeedResponse.Item> sortByDatePublished(List<FlickrFeedResponse.Item> list){
Collections.sort(list, new FlickrFeedResponse.Item.DatePublishedComparator());
return list;
} | [
"public static List<FlickrFeedResponse.Item> sortByDateTaken(List<FlickrFeedResponse.Item> list){\n\n Collections.sort(list, new FlickrFeedResponse.Item.DateTakenComparator());\n\n return list;\n }",
"void sort(){\n\t\tComparator<RSSItem> date_compare = new Comparator<RSSItem>(){\n\t\t\t@Override... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the 'modifierGroup' field, the 'has' method for this field will now return false | public void clearModifierGroup() {
genClient.clear(CacheKey.modifierGroup);
} | [
"public boolean isNotNullModifierGroup() {\n return genClient.cacheValueIsNotNull(CacheKey.modifierGroup);\n }",
"public boolean hasModifierGroup() {\n return genClient.cacheHasKey(CacheKey.modifierGroup);\n }",
"void unsetGroup();",
"public void clearGroups() {\n\t\tcollisionGroups.clear();\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
7)Array with Odd Numbers | public static void oddarray() {
ArrayList<Integer> y = new ArrayList<Integer>();
for (int i =1; i<256; i++){
if (i%2 != 0){
y.add(i);
}
}
System.out.println(y);
} | [
"public ArrayList < Integer > OddNumArr() {\r\n\t\tArrayList < Integer > arr = new ArrayList < > ();\r\n\t\tfor (int i = 1; i <= 255; i++) {\r\n\t\t\tif (i % 2 != 0) {\r\n\t\t\t\tarr.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arr;\r\n\t}",
"public ArrayList<Integer> OddArray() {\n ArrayList<Integer> nums =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
just returns a weather call back separate method as it's being used twice it just modifies the mutable live data so that change will be propagated to activity | private WeatherCallback<WeatherData> weatherCallback() {
return new WeatherCallback<WeatherData>() {
@Override
public void onSuccess(WeatherData weatherData) {
Log.d(TAG, "success (posting on live data)");
currentCityWeather.postValue(new Pair<>(true, weat... | [
"@Override\n public void onWeatherRetrieved(CurrentWeather currentWeather) {\n float currentTemp = currentWeather.weather.temperature.getTemp();\n System.out.println(\"WL getting the current weather condition\");\n Log.d(\"WL\",\"city[\"+curren... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all the buy sell productses where category_id = &63; and location = &63; and title LIKE &63;. | @Override
public List<BuySellProducts> findBycategoryLocationAndSearch(
long category_id, long location, String title) {
return findBycategoryLocationAndSearch(category_id, location, title,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | [
"@Override\n\tpublic List<BuySellProducts> findBylocationAndSearch(long location,\n\t\tString title) {\n\t\treturn findBylocationAndSearch(location, title, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}",
"@Override\n\tpublic List<BuySellProducts> findBycategoryAndSearch(long category_id,\n\t\tString ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
populate geofence list with todays fooodtruck locations | private void populateGeofenceList() {
if (PreferenceManager.getDefaultSharedPreferences(this)
.getBoolean(getString(R.string.pref_nearby_key), true)) {
Cursor cursor = getContentResolver().query(
FoodtruckProvider.Locations.CONTENT_URI,
new String[]{
... | [
"private void populateGeofenceList() {\n\n for (PlaceObject place : Constants.placeObjects) {\n //Create a geofence object for each place not ticked off as visited\n if (!place.isVisited()) {\n Geofence geofence = (new Geofence.Builder()\n .setReque... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .angel.serving.RegressLog regress_log = 3; | com.tencent.angel.serving.apis.prediction.PredictionLogProtos.RegressLogOrBuilder getRegressLogOrBuilder(); | [
"com.tencent.angel.serving.apis.prediction.PredictionLogProtos.RegressLog getRegressLog();",
"public Builder setRegressLog(com.tencent.angel.serving.apis.prediction.PredictionLogProtos.RegressLog value) {\n if (regressLogBuilder_ == null) {\n if (value == null) {\n throw new NullPointer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return "Role[" + "roleId=" + roleId + ", rolePost=" + rolePost + ", rolePay=" + rolePay + "]"; | @Override
public String toString() {
return "Role[" + "roleId=" + roleId + ", rolePost=" + rolePost + ", rolePay=" + rolePay + ",userSet=" + userSet + "]";
} | [
"@Override\n public String toString(){\n return role;\n }",
"public String toString() {\n return \"RoleParticipation[\" + userId + \",\" + roleInstanceId + \"]\";\n }",
"public String toString(){\n String f = \"Username: \" + Username + \", Password: \" + Password + \", Role: \" + role ;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column brand.thumbnail | public String getThumbnail() {
return thumbnail;
} | [
"public String getThumbnail();",
"Bitmap getThumbnail() {\n\t\treturn this.mThumbnail;\n\t}",
"public Image getThumbnail() {\r\n return thumbnail;\r\n }",
"public String getThumbnailImagePath();",
"public String getThumbnailURL();",
"public String getThumbnailLocation() {\n\t\treturn this.thumbn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column oauth_client.refresh_token_validity_seconds | public Integer getRefreshTokenValiditySeconds() {
return refreshTokenValiditySeconds;
} | [
"@Override\n public Integer getRefreshTokenValiditySeconds() {\n return client.getRefreshTokenValidity();\n }",
"private LocalDateTime getRefreshTokenExpiresIn() {\n return LocalDateTime.now().plus(jwtConfigProperties.getRefreshToken().getValidity(), ChronoUnit.DAYS);\n }",
"public long getToke... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field971' field. | public void setField971(java.lang.CharSequence value) {
this.field971 = value;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField971(java.lang.CharSequence value) {\n validate(fields()[971], value);\n this.field971 = value;\n fieldSetFlags()[971] = true;\n return this; \n }",
"public void setField973(java.lang.CharSequence value) {\n this.field973 ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This will set the indent String to use; this is usually a String of empty spaces. If you pass null, or the empty string (""), then no indentation will happen. Default: none (null) | public void setIndent(String indent) {
// if passed the empty string, change it to null, for marginal
// performance gains later (can compare to null first instead
// of calling equals())
if ("".equals(indent)) {
indent = null;
}
defaultFormat.indent = ... | [
"public void setIndent(int indent);",
"public void setIndent(boolean indent);",
"public void indent()\n {\n indent += 1;\n }",
"public int getIndent();",
"protected static String indent()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i<toStringIndent; i++) sb.append(\" \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of maximal spans of suffix array indexes which refer to suffixes that share a prefix of at least the specified minimum match length. | public List<int[]> prefixMatches(int minMatchLength) {
List<int[]> matches = new ArrayList<int[]>();
for (int i = 0; i < mSuffixArray.length; ) {
int j = suffixesMatchTo(i,minMatchLength);
if (i + 1 != j) {
matches.add(new int[] { i, j });
i ... | [
"public PositionList getShortKmerMatches( long shorty, int prefixLength );",
"int getMaxPrefixLength();",
"public String longestCommonPrefixBinarySearch(String[] strs) {\n if(strs.length == 0) return \"\";\n int minLen = Integer.MAX_VALUE;\n for(String s : strs) minLen = Math.min(minLen, s.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TRSDEAL_PROMISSORY_FX.PURCHASE_ACC_BR | public BigDecimal getPURCHASE_ACC_BR()
{
return PURCHASE_ACC_BR;
} | [
"public void setPURCHASE_ACC_BR(BigDecimal PURCHASE_ACC_BR)\r\n {\r\n\tthis.PURCHASE_ACC_BR = PURCHASE_ACC_BR;\r\n }",
"public BigDecimal getCUSTOMER_ACC_BR() {\r\n return CUSTOMER_ACC_BR;\r\n }",
"public BigDecimal getACC_BR()\r\n {\r\n\treturn ACC_BR;\r\n }",
"public BigDecimal getACC_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Poll option repository. | @Repository("PollOptionRepository")
public interface PollOptionRepository extends JpaRepository<PollOption, UUID> {
/**
* Get all poll options in a poll.
*
* @param poll The poll.
* @return The poll options by poll.
*/
Set<PollOption> getPollOptionsByPoll(Poll poll);
/**
* Get... | [
"public PollOption() {\n\t}",
"PollSettings createPollSettings();",
"Set<PollOption> getPollOptionsByPoll(Poll poll);",
"Poll createPoll();",
"public void setPoll(final Poll argPoll) {\n\tthis.poll = argPoll;\n }",
"PollOption getById(UUID pollOptionId);",
"public void getPollOptions(final PollOption... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return all data flavors that this class supports. | public synchronized DataFlavor []getTransferDataFlavors() {
return flavors;
} | [
"public DataFlavor[] getTransferDataFlavors() {\r\n\t\treturn flavors.clone();\r\n\t}",
"public DataFlavor[] getTransferDataFlavors() {\n\t return (DataFlavor[]) supportedFlavors.clone();\n\t }",
"public DataFlavor[] getTransferDataFlavors() {\n\t\t// returning flavors itself would allow client code to modi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
same as cosineSampleHemisphere(scale, 1); | public static float[] cosineSampleHemisphere_Random(double scale){
double phi = Math.random() * PI_TWO ;
double rnd = Math.random();
double rad = Math.sqrt(1.0-rnd) * scale;
double X = Math.cos(phi) * rad;
double Y = Math.sin(phi) * rad;
double Z = Math.sqrt(rnd);
return float3(X,Y,Z);... | [
"public static float[] uniformSampleHemisphere_Random(double scale){\n double phi = Math.random() * PI_TWO;\n double rnd = Math.random();\n double rad = Math.sqrt(1.0 - rnd*rnd) * scale;\n double X = Math.cos(phi) * rad;\n double Y = Math.sin(phi) * rad;\n double Z = rnd;\n return float3(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the minlength facet result can be null | public Long getMinLength()
{
Facet minLengthFacet= getFacet(Facet.MIN_LENGTH);
if (minLengthFacet == null) return null;
try
{
return new Long(minLengthFacet.toLong());
}
catch (java.lang.Exception e)
{
return null;
}
} | [
"public org.apache.xmlbeans.impl.xb.xsdschema.NumFacet getMinLength()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.impl.xb.xsdschema.NumFacet target = null;\n target = (org.apache.xmlbeans.impl.xb.xsdschema.NumFacet)get_store().find_e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the security property. | public float getSecurity() {
return security;
} | [
"@DOMSupport(DomLevel.ONE)\r\n @Property String getSecurity();",
"public Security getSecurity()\n {\n return __m_Security;\n }",
"public SecurityId getSecurityId() {\n return securityId;\n }",
"public java.lang.String getSecurityType() {\r\n return securityType;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Ubq Reaction'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseUbqReaction(UbqReaction object) {
return null;
} | [
"public T caseReaction(Reaction object)\n {\n return null;\n }",
"public T caseReaction(Reaction object) {\r\n\t\treturn null;\r\n\t}",
"public T caseActionReaction(ActionReaction object)\n {\n return null;\n }",
"public T caseImmunizationReaction(ImmunizationReaction object) {\n\t\treturn null;\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Name: setStart Purpose: Set Start Point of CSE11_Line Parameters: x: XCoordinate of Desired Start Point y: YCoordinate of Desired Start Point Return: void | private void setStart( int x, int y )
{
this.start = new Point(x,y);
} | [
"public void setStartLine(int startLine) {\r\n this.startLine = startLine;\r\n }",
"public void setStartPoint(double xStartPoint, double yStartPoint) {\n super.setPosition(xStartPoint, yStartPoint);\n }",
"public CSE11_Line( Point start, Point end )\n {\n super(\"CSE11_Line\"); /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the defaultPaymentMethodId value for this Account. | public java.lang.String getDefaultPaymentMethodId() {
return defaultPaymentMethodId;
} | [
"public void setDefaultPaymentMethodId(java.lang.String defaultPaymentMethodId) {\n this.defaultPaymentMethodId = defaultPaymentMethodId;\n }",
"public String getDefaultPayment() {\n return defaultPayment;\n }",
"@ApiModelProperty(value = \"Default shipping method oid\")\r\n public Integer ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Identifies the particular build invocation, which can be useful for finding associated logs or other adhoc analysis. The value SHOULD be globally unique, per intoto Provenance spec. string build_invocation_id = 1; | public java.lang.String getBuildInvocationId() {
java.lang.Object ref = buildInvocationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
buildInvocationId_ = s;
retu... | [
"public com.google.protobuf.ByteString getBuildInvocationIdBytes() {\n java.lang.Object ref = buildInvocationId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n buildInvocationId_ = b;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method removes featured cards from the deck's list of cards | private void removeFeaturedCards() {
if(this.cards == null || this.featuredCards == null) {
return;
}
this.featuredCards.forEach(card -> {
this.quantity.remove(card.getName());
this.cards.removeIf(c ->
c.getName().equals(card.getName())
);
});
} | [
"private void removeSelectedCards() {\n\t\tcards.removeAll(getSelectedCards());\n\t\tupdateTable();\n\t}",
"private void removeCard(Card card) {\n\n if (card.getGroup().getName().equalsIgnoreCase(\"gold\")) {\n avaibleCards.add(card);\n deckCards.remove(card);\n avaibleCard... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DATABASE MAPPING : profile_key ( BIGINT ) | public void setProfileKey( Long profileKey ) {
this.profileKey = profileKey;
} | [
"protected Object getProfileKey()\r\n {\r\n return _profileKey;\r\n }",
"public void setProfileKey(Object profileKey)\r\n {\r\n _profileKey = profileKey;\r\n }",
"void setStoredProfileId(String profileId);",
"public final String getProfileKey() {\n return profileKey;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Output ====== com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class JacksonTutorials.Employee_PrivateFieldsWithoutAnyGetterSetterMethods and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) | @Test
public void serializePrivateFieldsWithoutAnyGetterSetter() throws JsonProcessingException
{
// We do not have setter method in POJO class so can not set any value.
Employee_PrivateFieldsWithoutAnyGetterSetterMethods employee_PrivateFieldsWithoutAnyGetterSetterMethods =
new Employee_PrivateFieldsWithout... | [
"@Test\n\tpublic void deserializePrivateFieldsWithoutAnyGetterSetter() throws JsonProcessingException\n\t{\t\n\t\tString jsonToDeserialized = \"{\\r\\n\" + \n\t\t\t\t\" \\\"firstName\\\": \\\"Amod\\\",\\r\\n\" + \n\t\t\t\t\" \\\"lastName\\\" : \\\"Mahajan\\\"\\r\\n\" + \n\t\t\t\t\"}\\r\\n\" + \n\t\t\t\t\"\";\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the bus name | public void setBus(String busname){
this.busname = busname;
} | [
"public void setBusName(String busName) {\n this.busName = busName == null ? null : busName.trim();\n }",
"public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }",
"public String getBusName() {\n return busName;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check the flags of the packet to match 1 of the 9 different actions. For each action one certain flag is set and a lot of other flags cannot be set. The remaining flags make combinations to determine what to respond, this is determined in the methods below. | private void checkFlags(Packet packet) {
if (checkAvailableFilesListCorrectFlags(packet)) {
//System.out.println(" AFL packet");
this.availableFilesListPacketDealer(packet);
} else if (checkDownloadingCorrectFlags(packet)) {
//System.out.println(" DOWN packet");
this.downloadingPac... | [
"protected abstract int getAllActionMask();",
"private BitSet allActions() {\r\n\t\tBitSet b = new BitSet(actionCount.length);\r\n\t\tif (choices != null) {\r\n\t\t\tIterator<int[]> e = choices.iterator();\r\n\t\t\twhile (e.hasNext()) {\r\n\t\t\t\tint[] next = e.next();\r\n\t\t\t\tb.set(next[machineNumber]);\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test if all hashtags are saved and not only the first one | @Test
public void getHashtags()
{
String tweet = getTweet2();
Parser parser = new Parser();
LinkedList<String> hashtags = new LinkedList<>();
JSONParser jsonParser = new JSONParser();
try
{
JSONObject obj = (JSONObject) jsonParser.parse(tweet);
... | [
"public boolean hasHashtags()\n {\n return getHashtags() != null && getHashtags().length() > 0;\n }",
"@Test\n\tpublic void oneHashtagTweet() {\n\t\tString s = \"Ciao, #forzaRoma eddaje\";\n\t\tString h = \"#hashtagDummy\";\n\t\ttweetProcessor.addRelatedHashtags(s, h);\n\t\tassertEquals(1, tweetProce... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the plot domain grid color | public String getPlotDomainGridColor() {
return plotDomainGridColor;
} | [
"public Color getGridColor() {\r\n return this.gridColor;\r\n }",
"public Color getGridColor() {\n return this.gridColor;\n }",
"public String getPlotRangGridColor() {\n\t\treturn plotRangGridColor;\n\t}",
"public Color getAxisColor() {\n\treturn axesColor;\n }",
"public String getPlotN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a flag that indicates if imports specified in the loaded ontology should automatically be loaded too. | public boolean getLoadImports() {
return loadImports.isSelected();
} | [
"boolean hasImported();",
"public abstract boolean considerImports();",
"boolean hasDynamicImport();",
"public boolean isImported();",
"public boolean isI_IsImported();",
"boolean getImported();",
"public boolean isImportName(){\n return Use.IMPORT_NAME.is(this.node);\n }",
"boolean isImport... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that the name to change from cannot be null. | @Test(expectedExceptions = IllegalArgumentException.class)
public void testNullNameFrom() {
new FieldNameChange(null, "to");
} | [
"@Test(expectedExceptions = IllegalArgumentException.class)\n public void testNullNameTo() {\n new FieldNameChange(\"from\", null);\n }",
"public void testSetName_nullName() {\r\n\t\ttry{\r\n\t\t\tthis.state.setName(null);\r\n\t\t\tfail(\"The name is null.\");\r\n\t\t}catch(IllegalArgumentException e){\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
It checks whether the parent node's childcut field is false. If not it takes the node away and inserts again | void cascadingCut(Nodefh node){
if(node.Parent == null){
return;
}
if(node.Parent.Child == node){
if(node.Right != null && node.Right != node){
node.Parent.Child = node.Right;
if(node.Left!=null && node.Left != node){
node.Left.Right = node.Right;
node.Right.Left = node.Left;
}
el... | [
"private void resetParentNodeChildFlag( String parentCodeID ){\r\n Hashtable aorMovedData = trAreaOfResearchLive.getModifiedNodes();\r\n AreaOfResearchTreeNodeBean prNode = null;\r\n \r\n if( newAORData.containsKey( parentCodeID ) ){\r\n prNode = ( AreaOfResearchTreeNodeBean )... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Smooth the left, center, and right cell elevations. | public void smooth(int fromX, int fromY, int centerX, int centerY)
{
synchronized (lock)
{
if ((fromX != centerX) || (fromY != centerY))
{
Point[] forwardCoords = getForwardCoords(fromX, fromY, centerX, centerY);
int smoothElevation = Nest.MAX_ELEVATION / 2;
... | [
"public void circulos() {\n pushMatrix();\n translate(width/2, height/2);\n rotate(-h);\n noFill();\n strokeWeight(5);\n stroke(255);\n ellipse(10, 10, 20, 20);\n popMatrix();\n\n h = h + 0.3f;\n }",
"private void smoothAdjacentCollapsibles(TECarpentersBlock TE, int src_quadrant)\n \t{... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method removing a file from cache | public void remove(String path)
{
cache.remove(path);
modified = true;
} | [
"@Override\n\tpublic synchronized void remove(String key) {\n\t\tboolean deleted = getFileForKey(key).delete();\n\t\tremoveEntry(key);\n\t\tif (!deleted) {\n\t\t\tVolleyLog.d(\n\t\t\t\t\t\"Could not delete cache entry for key=%s, filename=%s\",\n\t\t\t\t\tkey, getFilenameForKey(key));\n\t\t}\n\t}",
"public void c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of opposite method, of class Graph. | @Test
public void testOpposite() {
System.out.println("Test opposite");
instance.insertVertex("A");
instance.insertVertex("B");
instance.insertVertex("C");
instance.insertVertex("D");
instance.insertVertex("E");
instance.insertEdge("A", "B", "Edge1", 6);
... | [
"@Test\n public void testOpposite() {\n System.out.println(\"Test opposite\");\n \t\t\n instance.insertVertex(\"A\");\n instance.insertVertex(\"B\");\n instance.insertVertex(\"C\");\n instance.insertVertex(\"D\");\n instance.insertVertex(\"E\");\n \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table basic_info_precursor_process_type | @Update({
"update basic_info_precursor_process_type",
"set process_name = #{processName,jdbcType=VARCHAR},",
"types = #{types,jdbcType=TINYINT}",
"where code = #{code,jdbcType=INTEGER}"
})
int updateByPrimaryKey(BasicInfoPrecursorProcessType record); | [
"@Select({\n \"select\",\n \"code, process_name, types\",\n \"from basic_info_precursor_process_type\",\n \"where code = #{code,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n BasicInfoPrecursorProcessType selectByPrimaryKey(Integer code);",
"@Insert({\n \"in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tries to pick an item characterized by a given identifier from the current place. If the action was completed the item is removed from the current place. | public Item pickItemFromCurrentPlace(String id)
{
return this.currentPlace.pickItem(id);
} | [
"@Override\r\n\tpublic void execute() throws InstructionExecutionException {\r\n\t\tif (id != null && robotContainer.containsItem(id))\r\n\t\t\tif (!navigation.findItemAtCurrentPlace(id)) {\r\n\t\t\t\tnavigation.dropItemAtCurrentPlace(robotContainer.pickItem(id));\r\n\t\t\t\tnavigation.updatePlace();\r\n\t\t\t} els... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ For(5,3) Using left shift operator 1=00.....1 n= 00...101 (&) 1 << (k1)=00...100 output =00...100 Hence Kth bit is set | public static void findKBitLeft(int n, int k){
if((n & (1<<(k-1)))!=0)
System.out.println("Kth bit is set");
else
System.out.println("Kth bit is not set");
} | [
"private int getBit(int value, int k) {\r\n\t\treturn (value >> k) & 1;\r\n\t}",
"public static int bitSetter1(int x, int k) {\n\t\tint bitSetter = 1 << k;\n\t\tx = x | bitSetter;\n\t\treturn x; // x's kth bit\n\t}",
"public static int bitSetter0(int x, int k) {\n\t\tint bitSetter = 1 << k;\n\t\tbitSetter = ~bi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the current value of noFollow. | public boolean getNoFollow() {
return noFollow;
} | [
"public void setNoFollow() {\n noFollow= true;\n }",
"public java.lang.Integer getNumberFollows() {\n return numberFollows;\n }",
"public String getFollowUpNeeded() {\r\n return followUpNeeded;\r\n }",
"public String getFollowUp() \n {\n return followUp;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets Wicket filter path via filter name and InputStream. The InputStream is assumed to be an web.xml file. A typical Wicket web.xml entry looks like: <filter> <filtername>HelloWorldApplication</filtername> <filterclass>org.apache.wicket.protocol.http.WicketFilter</filterclass> <initpara... | public final Set<String> getFilterPath(final boolean isServlet, final String filterName,
final InputStream is) throws ParserConfigurationException, SAXException, IOException
{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
/... | [
"public final String getUniqueFilterPath(final boolean isServlet, final String filterName,\r\n\t\tfinal InputStream is) throws ParserConfigurationException, SAXException, IOException\r\n\t{\r\n\t\treturn uniquePath(getFilterPath(isServlet, filterName, is), isServlet, filterName);\r\n\t}",
"public final Set<String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
mutator for cable type | public void set_type(String c) {
cableType = c;
} | [
"public String get_type() {\r\n\t\treturn cableType;\r\n\t}",
"public int getChannelType( ) {\r\n return 1;\r\n }",
"public abstract String channelType();",
"public void setTypeAnimal(char newTypeAnimal){\r\n\ttypeAnimal = newTypeAnimal;\r\n}",
"String getChannelType();",
"public void setType(St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Artefact__Group__2__Impl" $ANTLR start "rule__Artefact__Group__3" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10792:1: rule__Artefact__Group__3 : rule__Artefact__Group__3__Impl rule__Artefact__Group__4 ; | public final void rule__Artefact__Group__3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10796:1: ( rule__Artefact__Group__3__Impl ru... | [
"public final void rule__Artefact__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10808:1: ( ( ( rule__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Print the new words from arraylist into the userDictionary file | public static void updateDictionaryFile(String fileName, ArrayList<String> dictionary) throws FileNotFoundException
{
PrintWriter writer = new PrintWriter(new File(fileName));
for(int ctr = 0; ctr < dictionary.size(); ++ctr)
{
writer.write(dictionary.get(ctr) + "\n");
}
//Close the print writer
... | [
"private void upgradeDictionary() throws IOException {\n File fileAnnotation = new File(filePathAnnSource);\n FileReader fr = new FileReader(fileAnnotation);\n BufferedReader br = new BufferedReader(fr);\n String line;\n\n if (fileAnnotation.exists()) {\n while ((line =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes the specified items disabled (can't be selected). | void markDisabledItems( Collection< ? extends E > items ); | [
"private void disableAllItem( )\n\t{\n\t\taddNewGroup.setEnabled( false );\n\t\taddNewClass.setEnabled( false );\n\t\taddNewField.setEnabled( false );\n\t\tdelete.setEnabled( false );\n\t\trename.setEnabled( false );\n\t\tcut.setEnabled( false );\n\t\tcopy.setEnabled( false );\n\t\tpaste.setEnabled( false );\n\t\tg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the cached item associated with the given resource id. | @Nullable
public synchronized GoogleCloudStorageItemInfo getItem(StorageResourceId id) {
PrefixKey key = new PrefixKey(id.getBucketName(), id.getObjectName());
CacheValue<GoogleCloudStorageItemInfo> value = itemMap.get(key);
if (value == null) {
return null;
}
if (isExpired(value)) {
... | [
"String retrieve(Integer id){\n if (!cache.containsKey(id)){\n // Item not in cache.\n return null;\n } else {\n // Item found in cache.\n // Update the LRU and return the item.\n lru.remove(id);\n lru.add(id);\n return cache... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
insert into TaskDependency table | public void insertIntoTaskDependency(int task_id1, int task_id2) throws Exception {
//open connection
connectToDatabase();
preparedStatement = connect.prepareStatement("insert into TaskDependency values (?, ?)");
//task1 is depend on task2
preparedStatement.setInt(1, task_id1);... | [
"@Insert\r\n void insertTask(Task task);",
"@Insert\n long insert(Task task);",
"int insertTask(PerunSession sess, Task task);",
"public abstract void addTaskFromDB();",
"public void addDependency(Task taskDep) {\n\t\ttaskDependency.add(taskDep);\n\t}",
"void insert(Issuetaskctrl record);",
"TaskD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
convert the scalar to a long | public long longValue(); | [
"long longValue();",
"private long toLong() {\n assert (intLen <= 2) : \"this MutableBigInteger exceeds the range of long\";\n if (intLen == 0)\n return 0;\n long d = value[offset] & LONG_MASK;\n return (intLen == 2) ? d << 32 | (value[offset + 1] & LONG_MASK) : d;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field addressArea is set (has been assigned a value) and false otherwise | public boolean isSetAddressArea() {
return this.addressArea != null;
} | [
"public boolean isSetAddress() {\n return this.address != null;\n }",
"public boolean isSetArea() {\n return this.area != null;\n }",
"public boolean isSetArea() {\n return this.area != null;\n }",
"public boolean hasLocationAreaCode()\n {\n return (this.locationAreaCode >= 0);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
replace s1 with s2 in source String | public static String replace(String source, String s1, String s2) {
StringBuffer buf = new StringBuffer(source.length() * 2);
int a = 0, b = source.indexOf(s1);
char[] chars = source.toCharArray();
while (b >= 0) {
buf.append(chars, a, b - a).append(s2);
a = b + s1.length();
b = source.indexOf(s... | [
"public static String replace(String source, String s1, String s2){ \r\n return source.replace(s1, s2 == null?\"\":s2); \r\n }",
"public static String replace(final String s, \n\t\t\t final String v1, \n\t\t\t final String v2) {\n \n // return quick when nothing to do\n if(s == ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the files in the storage filtered by a provided file name pattern | @GetMapping("/enumeration")
public ResponseEntity<String> listAllFiles(@RequestParam String namePattern) {
String filesList = null;
try {
filesList=fileAccessService.getFilesList(namePattern);
} catch (IOException e) {
logger.error("Can't list the list");
... | [
"List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;",
"List<URI> getFilesByFilter(FilenameFilter filter);",
"public String[] GetAllFileNames() {\n \tFile dir = new File(fileStorageLocation.toString());\n \tString[] matchingFiles = dir.list(new FilenameFilter(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve Codes Returns the list of codes. Example Requests: codes | @Test
public void retrieveCodesTest() throws ApiException {
List<GetCodesResponse> response = api.retrieveCodes();
// TODO: test validations
} | [
"Code[] getCodes();",
"List<T> getByCode(Collection<String> codes);",
"@Test\n public void retrieveCodeTest() throws ApiException {\n Long codeId = null;\n GetCodesResponse response = api.retrieveCode(codeId);\n\n // TODO: test validations\n }",
"@RequestMapping(method=RequestMethod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
data[nextItem] = null; // DO NOT CHANGE / if there is any element delete it then add the new element. How do you handle when the array is full: crate a new array with currentCapacity+defaultSizeToCreate, copy the old conents into that Accessing array when full might be a problem check whether the given item is already ... | @SuppressWarnings("unchecked")
public boolean add(T item) {
int i=0;
//going through the entire array. if data[i]==null means end of the current array.
while(i<currentCapacity && data[i]!=null) {
if(item.equals(data[i])==true) {
return false;
}
i++;
}
/... | [
"private void ensureCapacity(){\r\n\t\tif(elements.length == size){\r\n\t\t\telements = Arrays.copyOf(elements, 2*size + 1);\r\n\t\t}\r\n\t\t\r\n\t}",
"private void ensureCapacity() {\n\t\tif (this.size >= this.elements.length - 1) {\n\t\t\tthis.elements = Arrays.copyOf(this.elements, this.elements.length * 2);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method testing the checkermethod whether the given value is a valid amount of time with a value that is too low. | @Test
public void isValidTimeIllegalCaseTooLow() {
assertFalse(FlyingObject.isValidTime(-5000));
} | [
"@Test\n\tpublic void isValidTimeLegalCase() {\n\t\tassertTrue(FlyingObject.isValidTime(200000));\n\t}",
"@Test\n\tvoid testCheckDuration2() {\n\t\tassertFalse(DataChecker.checkDuration(Duration.ofMinutes(-11)));\n\t}",
"protected static boolean validateTime( double time, double minTime,\n double maxTime... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The frontend state of this location for this GLB Service, for each of the specified PerLocationServices. | public com.zeus.soap.zxtm._1_0.SystemStatsPerLocationServiceFrontendState[] getPerLocationServiceFrontendState(com.zeus.soap.zxtm._1_0.SystemStatsPerLocationService[] per_location_services) throws java.rmi.RemoteException, com.zeus.soap.zxtm._1_0.InvalidInput, com.zeus.soap.zxtm._1_0.InvalidObjectName {
if (sup... | [
"public static GlobalStates getStatesFromAllLocations()\n {\n GlobalStates globalStates = new GlobalStates();\n try {\n\n List<LocalStates> compileRes = new ArrayList<>();\n getLocationIds().getLocationIds().forEach(\n (locn) -> {\n Lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a map of information about the targeted object | public HashMap<String, String> getTargetedInfo()
{
if(targeted == null) return null;
HashMap<String, String> info = new HashMap<String, String>();
info.put("hp", Integer.toString(targeted.getHP()));
info.put("mana", Integer.toString(targeted.getMana()));
info.put("name", targeted.getName());
ret... | [
"public ObjectInfo getObjectInfo();",
"Map<String, Object> getMetadata();",
"Map<String, String> getDetails();",
"@Transient\r\n\tpublic Map<String, Object> getLookups() {\r\n\t\tMap<String,Object> map = new HashMap<String,Object>();\r\n map.put(ICommercialAlias.TARGET_REGISTRY_ID, getId());\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the table caption boundary in a document page | private int findCaptionBoundary(int lineNumber,
ArrayList<TextPiece> linesOfAPage, TableCandidate tc) {
TextPiece currentLine = linesOfAPage.get(lineNumber);
TextPiece prevLine = null;
String caption = currentLine.getText() + " ";
tc.setCaptionStartLine(lineNumber);
tc.setCaptionEndLine(lineNumber);
... | [
"public String getPageBreakInside();",
"public String getCaptionSide();",
"public String getPageBreakBefore();",
"public Rectangle getDocumentBounds(){\n return document.getBounds();\n }",
"protected int getBodyRow () \r\n {\r\n return getTitleLineRow() + 1 + LINE_SPACER;\r\n }",
"public i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all rows with filter for Monthlypayment | @GET
@Path("/filter")
@Produces({"application/xml"})
public Rows getMonthlypaymentRowsByFilter() {
Rows rows = null;
try {
rows=new MonthlypaymentDao(uriInfo,header).getMonthlypaymentByFilter();
} catch (AuthenticationException e) {
rows=new TemplateUtility().getFailedMessage(e.getMessag... | [
"@GET\n\t\t\t@Path(\"/rows\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getMonthlypaymentRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new MonthlypaymentDao(uriInfo,header).getMonthlypaymentRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "integerValue" flips.g:824:1: integerValue : ( ( '+' )? integerValuePositive > POSITIVE integerValuePositive | '' integerValuePositive > NEGATIVE integerValuePositive ); | public final flipsParser.integerValue_return integerValue() throws RecognitionException {
flipsParser.integerValue_return retval = new flipsParser.integerValue_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
Token char_literal549=null;
Token char_literal551=null... | [
"public final flipsParser.numericValue_return numericValue() throws RecognitionException {\n flipsParser.numericValue_return retval = new flipsParser.numericValue_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal539=null;\n Token char_lit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draw a line, using the current color, between the points (x1, y1) and (x2, y2) in this graphics context's coordinate system. | public void drawLine(final double x1, final double y1, final double x2,
final double y2) {
final EpsPoint start = _convert(x1, y1);
final EpsPoint end = _convert(x2, y2);
_buffer.append("newpath " + round(start.x) + " " + round(start.y)
+ " moveto\n");
_buffer.append("" + round(end.x) + " " + round(end.y... | [
"public void drawLine(int x, int y, int x2, int y2, int color);",
"public void drawLine(int x1, int y1, int x2, int y2) {\r\n }",
"public void drawLine(int x1, int y1, int x2, int y2){\n Line2D line = new Line2D.Float(x1, y1, x2, y2);\n draw(line);\n }",
"public void drawLine(int x1, int y... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AstExpressionMultiplicative__Group_1__0" $ANTLR start "rule__AstExpressionMultiplicative__Group_1__0__Impl" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18334:1: rule__AstExpressionMultiplicative__Group_1__0__Impl : ( () ) ; | public final void rule__AstExpressionMultiplicative__Group_1__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18338:1: ( ( () ) )
... | [
"public final void rule__AstExpressionMultiplicative__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18294:1: ( rule__AstEx... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Turns the left wheel by a specified ammount | public static void turnLeftWheelByAmount(int TurnDegs){
motor_left.rotate((int) (rotConstant * TurnDegs));
steeringangle_left = ((steeringangle_left + TurnDegs) % 360);
} | [
"public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }",
"public void turnLeft(int ticks){\n\t\tposition = (position + ticks)%40;\n\t\tcount++;\n\t\tcheckTurn(ticks);\n\t}",
"void TurnLeft() {\n \trobotDrive.drive(0.2, 0.2);\n }",
"private void rotateLeft() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the character's description. | private void setCharacter_description() {
character_description = findViewById(R.id.description);
character_description.setText("This is the character.");
} | [
"private void setCharacter_description() {\n TextView character_description = findViewById(R.id.description);\n character_description.setText(infoMediator.getDescription());\n }",
"public void setDescription(String desc){\n\n description = desc;\n\n }",
"public void setDescription(String des){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validates the supplied component by checking its text against the list of names that were supplied with the constructor. If any matches are found, the validation fails and an exception is thrown. | public void checkComponent( Object suspect )
throws ValidationException
{
// If the collection of elements is null or empty, just return
if (null == m_existingElems || m_existingElems.size() < 1)
{
return;
}
String text = null;
if (suspect instanceof JTextCompone... | [
"@NotNull\n public static List<Component> findComponentsWithText ( @Nullable final String text, @Nullable final Component component,\n @NotNull final List<Component> components )\n {\n if ( text != null && !text.equals ( \"\" ) && component != n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String uri = "redirect: + appId + "&redirect_uri=" + url + "/life/app/mp/code&response_type=code&scope=snsapi_base&state=STATEwechat_redirect"; | @GetMapping("/login")
@ApiOperation("登录")
public String getCode() {
return "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + paramConfig.appId +
"&redirect_uri=" + paramConfig.uri + "&response_type=code&scope=snsapi_base" +
"&state=STATE&connect_redirect=... | [
"public static void main(String[] args) {\n String s = HttpRequest.sendPost(\"http://localhost:9030/uaa/oauth/jwt\", \"grant_type=authorization_code&client_id=webApp&code=x725qM\");\n System.out.println(s);\n /* HttpRequest get = HttpRequest.get(\n \"https://open.weixin.qq.com/conn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the count of missing values in this column | @Override
public int countMissing() {
int count = 0;
for (int i = 0; i < size(); i++) {
if (getLongInternal(i) == MISSING_VALUE) {
count++;
}
}
return count;
} | [
"@Override\n\tpublic int countMissingValues() {\n\t\tint iCounter = 0;\n\t\tint iColSize = this.rgoValues.size();\n\t\tObject oValue;\n\t\tfor (int i = 0; i< iColSize; i++) {\n\t\t\toValue = this.rgoValues.get(i);\n\t\t\tif (oValue != null && oValue instanceof MissingValue){\n\t\t\t\tiCounter++;\n\t\t\t}\n\t\t}\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new creates the parameter mapping command. | public CreateParameterMappingCommand(Parameter source) {
super();
this.source = source;
this.parameterMapping = HenshinFactory.eINSTANCE.createParameterMapping();
this.parameterMapping.setSource(source);
} | [
"public CreateParameterMappingCommand(Unit transformationUnit, Parameter source, Parameter target\n\t\t\t) {\n\t\tsuper();\n\t\tthis.source = source;\n\t\tthis.parameterMapping = HenshinFactory.eINSTANCE.createParameterMapping();\n\t\tthis.parameterMapping.setSource(source);\n\t\tthis.target = target;\n\t\tthis.tra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calculates the proficiency based on level and returns as an integer | static int proficiencyCalc(Cursor dataPointer){
int currentLevel = classLevelCalc(dataPointer);
int proficiency = 0;
if ((currentLevel>0)&&(currentLevel<5)){
proficiency = 2;
}
else if ((currentLevel>4)&&(currentLevel<9)) {
proficiency = 3;
}
... | [
"public int getLevel(){\n \t\treturn (strength + intelligence + stamina + Math.abs(charm) + Math.abs(cuteness))/5;\n \t}",
"public int getExperienceForLevel(int level) {\r\n int points = 0;\r\n int output = 0;\r\n for (int lvl = 1; lvl <= level; lvl++) {\r\n points += Math.floor(lv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as the attribute value for the calculated attribute EndDateActive | public void setEndDateActive(Date value) {
setAttributeInternal(ENDDATEACTIVE, value);
} | [
"public Date getEndDateActive() {\n return (Date)getAttributeInternal(ENDDATEACTIVE);\n }",
"public void setEndDate(Date value) {\n setAttributeInternal(ENDDATE, value);\n }",
"public void setEndDate(Date value) {\r\n setAttributeInternal(ENDDATE, value);\r\n }",
"public void setEndDat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add to dislike, score set to 1, skip it | public void changeToDislike(int index){
Song song = getSongs().get(index);
song.setStatus(-1);
song.setScore(-1);
setNeedChange(1); //need to resort the play list
} | [
"public void unlike()\n {\n if(likes > 0)\n {\n likes--;\n }\n }",
"public void unlike() {\n\t\tlikes--;\n\t}",
"public void setHotOrNotRating(int rating) {\r\n this.rating += rating;\r\n ratingCount++;\r\n }",
"public void dislike(){\n \tprovide.getCu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelve el NIF seleccionado. | public String getTxt_Nif() {
return cb_nifCliente.getSelectedItem().toString();
} | [
"void seleccionarEmisora(int boton);",
"public void Seleccionar(){\n if (Enmesa) {\n jugadortv.setBackgroundResource(R.drawable.jugadorseleccionadotop);\n jugadortvdown.setText(\"X \"+String.valueOf(CPPLogin.manip.verValorFicha()));\n jugadortvdown.setBackgroundResource(R.d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/flyCam.setEnabled(false); Spatial objVisual=((ItemView)getPlayer()).getObjVisual(); chaseCam = new ChaseCamera(cam, objVisual, inputManager); chaseCam.setSmoothMotion(true); camNode.setControlDir(ControlDirection.SpatialToCamera); Disable the default flyby cam Attach the camNode to the target: if (1==1) return; | private void initCamera() {
Node objNode=((ItemView)getPlayer()).getRootNode();
// Spatial objVisual=((ItemView)getPlayer()).getObjVisual();
//camNode = new CameraNode("Camera Node", cam);
camNode = new CameraNode("Camera Node", cam);
//camNode.removeFromParent();
objNode.attachChild(camNode);
... | [
"@Override\r\n public void initCamera() {\n cam.setLocation(getLocation());\r\n cam.setRotation(getRotation());\r\n// camNode = new CameraNode(\"CameraNode\", cam);\r\n// camNode.setControlDir(CameraControl.ControlDirection.SpatialToCamera);\r\n// vehicleNode.attachChild(camNod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Maps from model.MovieResultJson.class to model.Movie.class objects. | List<Movie> mapToMovieList(List<MovieResultJson> jsonResults); | [
"public interface MovieMapperService {\n\n /**\n * Maps from model.MovieResultJson.class to model.Movie.class objects.\n *\n * @param jsonResults the movie results of themoviedb.org api search.\n * @return a list of mapped movies.\n */\n List<Movie> mapToMovieList(List<MovieResultJson> jso... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Maximum number of nodes. | public int maxsize() {
return this.nNodes;
} | [
"public abstract int getMaxChildren();",
"public static int getMaxClusterNodes() {\n return cacheFactoryStrategy.getMaxClusterNodes();\n }",
"public int\ngetNodeIndexMax();",
"public int getMaxTasksPerNode() {\n return maxTasksPerNode;\n }",
"public void maxNodes(int inputMaxNodes){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read information about the fields of the class, i.e., its variables. | private void readFields() throws IOException, ClassFormatException {
final int fields_count = dataInputStream.readUnsignedShort();
fields = new Field[fields_count];
for (int i = 0; i < fields_count; i++) {
fields[i] = new Field(dataInputStream, constant_pool);
}
} | [
"private static void setupFields() {\n Field[] fields = cls.getDeclaredFields();\n for (int i = 0; i < fields.length; i++) {\n Field field = fields[i];\n System.out.print(Modifier.toString(field.getModifiers()) + \" \"\n + field.getType().getName() + \" \"\n + field.getName() + \";\");\n System.out.println();\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get return Type produced by given parslet. | public String getReturnType(String parslet) {
Entry param = seek(parslet);
if (param == null) {
return STRING_TYPE;
} else {
return param.type;
}
} | [
"Type getReturnType () { return return_type; }",
"Type getReturnType();",
"TypeUse getReturnType();",
"public Type getReturnType();",
"public Type getReturn() {\n return type;\n }",
"Return getReturnType ();",
"public Type resultingType() { \n//\t\tSystem.err.println(\"Note, evaluate.r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method Name : logEvent Description : This method is used to print the log status and take the screenshots Input::boolean status, PassDescription , FailDescription Output: Log status Author : Testing Masters Technologies | public static void logEvent(boolean status, String PassDescription, String FailDescription) {
if (status) {
Reports.logEvent("Pass", PassDescription);
System.out.println(" <<>> " + PassDescription + " <<>>");
} else {
Reports.logEvent("Fail", FailDescription);
System.out.println(" <<>> " + FailDescr... | [
"public static void logStatus(String status, String Description) {\n\t\tswitch (status.toLowerCase()) {\n\t\tcase \"pass\":\n\t\t\tReporter.log(Description);\n\t\t\ttest.get().log(Status.PASS, Description);\n\n\t\t\ttry {\n\t\t\t\ttest.get().addScreenCaptureFromPath(captureScreenShot());\n\n\t\t\t} catch (IOExcepti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
to fill list of rocket | ArrayList<Rocket> LoadU2(ArrayList<Item> list) {
ArrayList<Rocket> newlistofU1 = new ArrayList();
Rocket newEachRocket = new U2(); //type of U1
for (Item item:list){
//each item, fill to list U1
if(newEachRocket.canCarry(item)){
//add item
... | [
"void fillPool(List<RocketInterface> rockets);",
"ArrayList<Rocket> LoadU1(ArrayList<Item> list) {\n ArrayList<Rocket> newlistofU1 = new ArrayList();\n Rocket newEachRocket = new U1(); //type of U1\n for (Item item:list){\n //each item, fill to list U1\n if(newEachRocket... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
runs a custom test as follows 1. write initial text to "file1" 2. reads the recently text written to "file1" 3. writes a new message to "file1" 4. while the writing operation in progress read the content of "file1" 5. the read content should be = to the initial message 6. commit the 2nd write operation 7. read the cont... | public static void customTest() throws IOException, NotBoundException, MessageNotFoundException {
Client c = new Client();
String fileName = "file1";
char[] ss = "[INITIAL DATA!]".toCharArray(); // len = 15
byte[] data = new byte[ss.length];
for (int i = 0; i < ss.length; i++) {... | [
"public void testGetWriteThreadWithAppending() {\r\n String fileName1 = TESTDATAFOLDER + \"FileModuleThreadTest1_temp2.txt\";\r\n String fileName2 = TESTDATAFOLDER + \"FileModuleThreadTest2_temp2.txt\";\r\n FileModule instance = new FileModule();\r\n FileModuleWriteThreadInterface result... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Get the name of the variable that is going to be used to declare relation description ( as a JAVA static constant) | private String getRelationDescriptionVarName(Relation rel){
String varNAme = rel.getName().toUpperCase();
Integer flag = this.relationVarNames.get(varNAme);
String finalVarName;
if(flag == null){
flag = new Integer(cptRelVarName);
this.relationVarNames.put(varNAme, flag);
finalVarName = ... | [
"private String getVarNameRelDefinition(Relation rel){\r\n\t\tString relName =rel.getName();\r\n\t\t\r\n\t\tString relVar = RELVAR_PREFIX + relName;\r\n\t\t\r\n\t\tInteger flag = this.relationVar.get(relVar);\r\n\t\tString finalRelVar;\r\n\t\tif(flag == null){\r\n\t\t\tflag = new Integer(cptRelVar);\r\n\t\t\tthi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ will send a list of all active battles and users participating in it to the given client | public static void sendInfoOnBattlesToClient(Client client) {
for (int i = 0; i < battles.size(); i++) {
Battle bat = battles.get(i);
// make sure that clients behind NAT get local IPs and not external ones:
boolean local = bat.founder.IP.equals(client.IP);
client.sendLine(bat.createBattleOpenedComma... | [
"public synchronized void sendUserList()\n {\n String userString = \"USERLIST#\" + getUsersToString();\n for (ClientHandler ch : clientList)\n {\n ch.sendUserList(userString);\n }\n }",
"private static void sendUserList() { //Отправляем обновление списка пользователей\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use DeleteDatabaseMetadata.newBuilder() to construct. | private DeleteDatabaseMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private DeleteDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"void deleteDatabase(String databaseName);",
"void deleteDatabaseContents();",
"public UnaryCallSettings.Builder<DeleteDatabaseRequest, Database> deleteDatabaseSettings() {\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method is used to set employee location as NULL where given location id is set for employees. | public void updateEmployeeLocationEmpty(UUID locationId, UUID employeeId) throws EwpException {
dataDelegate.updateEmployeeLocationEmpty(locationId, employeeId);
} | [
"public void updateEmployeeLocationEmpty(UUID locationId) throws EwpException {\n dataDelegate.updateEmployeeLocationEmpty(locationId);\n }",
"public void setEmployeeLocation(List<EmployeeQuickView> employeeList, UUID locationId) throws EwpException {\n if (employeeList != null) {\n Em... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of base tables for which the index statistics of the associated indexes should be updated. This default implementation always returns an empty list. | public TableDescriptor[] updateIndexStatisticsFor()
throws StandardException{
// Do nothing, overridden by appropriate nodes.
return EMPTY_TD_LIST;
} | [
"@Override\n\tpublic TableDescriptor[] updateIndexStatisticsFor()\n\t\t\tthrows StandardException {\n\t\tif (!checkIndexStats || statsToUpdate == null) {\n\t\t\treturn EMPTY_TD_LIST;\n\t\t}\n\t\t// Remove table descriptors whose statistics are considered up-to-date.\n\t\t// Iterate backwards to remove elements, cha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get states in which ltsIndex is in inactive a state | private HashMap<String, gState> getInactiveStates(int ltsIndex,
String reconfStateId, ArrayList<LTS> LTSs) {
HashMap<String, gState> res = new HashMap<String, gState>();
// find the NA states of the LTS of lab's owner
Iterator<gState> giter = states.values().iterator();
while (giter.hasNext()) {
gState s ... | [
"int getStateValues(int index);",
"public State[] getAllStates();",
"public List<State> getStateList();",
"public int[] getStateSet(int index) {\n return mStateListState.mStateSets[index];\n }",
"int getState();",
"public State getState(int index)\n {\n return states[index];\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
make sure the bit positions have been entered correctlry | @Test
public void bitPosns() {
for (int i = 0; i < 64; i++) {
assertEquals(i, Square.fromBitIndex(i).bitIndex());
}
} | [
"private void checkResetAllRegsAndFlags() {\r\n\t\t//for(int i = 1026; i <= 1028; i++ ) {\r\n\t\tSystem.out.println(\"Checking x val\"+sim40.memory[Simulator.XREG_ADDRESS]);\r\n\t\t\r\n\t\tcheckResetRegisterFlag(Simulator.ACCUMULATOR_ADDRESS);\r\n\t\t\tcheckResetRegisterFlag(Simulator.XREG_ADDRESS);\r\n\t\t\tcheckR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
simple method to write onCome or onLeave according to onCome's value | private String returnLocation(boolean onCome){
//if onCome is true return "onCome", "onLeave otherwise
return onCome ? "onCome" : "onLeave";
} | [
"private static String getStatusCome(String hoursPaidLeave, String hoursUnPaidLeave, Calendar calComeDate) {\n boolean isWeekend = calComeDate.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY;\n // Weekend day\n if (isWeekend) {\n return \"\";\n }\n // PAID_LEAVE_OR_UNPAID_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the size of player1's inactive card stack | public int getPlayer1InactiveSize()
{
return player1.inactiveHandSize();
} | [
"public int getPlayer2InactiveSize()\n\t{\n\t\treturn player2.inactiveHandSize();\n\t}",
"public int getPlayer1DeckSize()\n\t{\n\t\treturn player1.getDeck().size();\n\t}",
"public int getSize()\n {\n return stack.size();\n }",
"public int getPlayer2DeckSize()\n\t{\n\t\treturn player1.getDeck().si... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update all declarations with a new set | public void setNewDeclarations(List<MDeclaration> newProps)
{
_declarations.clear();
_declarations.addAll(newProps);
} | [
"public void makeDeclaration(Set done) {\n\t\tthis.done = new SimpleSet();\n\t\tthis.done.addAll(done);\n\n\t\tdeclare = new SimpleSet();\n\t\tIterator iter = used.iterator();\n\t\tnext_used: while (iter.hasNext()) {\n\t\t\tDeclarable declarable = (Declarable) iter.next();\n\n\t\t\t// Check if this is already decla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests registering a set of workflows. | @Test
public void testRegisterWorkflowsSuccess() throws IridaWorkflowException {
iridaWorkflowsService.registerWorkflows(Sets.newHashSet(testWorkflow1v1, testWorkflowPhylogenomics));
Set<IridaWorkflow> workflows = iridaWorkflowsService.getRegisteredWorkflows();
assertEquals(Sets.newHashSet(testWorkflow1v1, test... | [
"@Test\n\tpublic void testGetRegisteredWorkflows() throws IridaWorkflowException {\n\t\tiridaWorkflowsService.registerWorkflow(testWorkflow1v1);\n\t\tiridaWorkflowsService.registerWorkflow(testWorkflow1v2);\n\t\t\n\t\tSet<IridaWorkflow> iridaWorkflows = iridaWorkflowsService.getRegisteredWorkflows();\n\t\tassertEqu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
for filtering user based on position and company | @RequestMapping("/filter")
public String filter(@RequestParam (name="company")String company,@RequestParam (name="position")String position, Model model)
{
ArrayList<UserExtra> users;
if(!company.equalsIgnoreCase("--select--"))
{
users=userService.findByCompany(company);
}
else users=(ArrayList<UserEx... | [
"@Override\n public List<UserInfo> findList(UserListFilterDto dto) {\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<UserInfo> criteriaQuery = criteriaBuilder.createQuery(UserInfo.class);\n Root<UserInfo> root = criteriaQuery.from(UserInfo.class);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ 'default' enter sequence for state DismissCall | private void enterSequence_main_region_DismissCall_default() {
entryAction_main_region_DismissCall();
nextStateIndex = 0;
stateVector[0] = State.main_region_DismissCall;
} | [
"private void exitSequence_main_region_DismissCall() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t\t\n\t\texitAction_main_region_DismissCall();\n\t}",
"private void exitSequence_main_region_IncomingCall() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t\t\n\t\texit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets this entity's graphic. | public GameCharacter setGraphic(Graphic graphic) {
this.graphic = graphic;
return this;
} | [
"public abstract void setGraphicOptions(GraphicOptions opt);",
"public void setGraphicInfo(GraphicInfo grInfo);",
"public void setTo(OMGraphic graphic) {\n \tsetOMGraphicEdgeAttributes(graphic);\n \n \t// If the fillPattern is set to a TexturePaint, and the\n \t// fillPaint is null or clear, then the fillPatter... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the primary IOutputType in this tool If the receiver has no OutputTypes, the method returns null. It is the responsibility of the caller to verify the return value. | public IOutputType getPrimaryOutputType(); | [
"public Class<?> getOutputType() {\n\t\treturn outputType;\n\t}",
"public String getOutputType() {\n return outputType;\n }",
"public Type getOutputType() {\n Preconditions.checkState(prepared);\n Preconditions.checkState(!closed);\n return outputType;\n }",
"public static int getOutputType() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates if this share is still enabled. When a UserList is shared with the user this field is set to ENABLED. Later the userList owner can decide to revoke the share and make it DISABLED. The default value of this field is set to ENABLED. .google.ads.googleads.v14.enums.UserListAccessStatusEnum.UserListAccessStatus a... | public Builder setAccountUserListStatusValue(int value) {
accountUserListStatus_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
} | [
"@java.lang.Override public com.google.ads.googleads.v14.enums.UserListAccessStatusEnum.UserListAccessStatus getAccountUserListStatus() {\n com.google.ads.googleads.v14.enums.UserListAccessStatusEnum.UserListAccessStatus result = com.google.ads.googleads.v14.enums.UserListAccessStatusEnum.UserListAccessStatus.fo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the cc email addresses. This replaces all previous ones. The email addresses need to be separated by commas. | public Email ccAddresses(String ccAddresses)
{
setCcAddresses(ccAddresses);
return this;
} | [
"void addBcc(String... emails);",
"public void setCc(Address... cc) {\n setAddressList(FieldName.CC, cc);\n }",
"void addCc(String email);",
"public com.fretron.Model.Contact.Builder setEmails(java.util.List<java.lang.String> value) {\n validate(fields()[3], value);\n this.emails = value;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if the hash correspond to a FbasicType. | public boolean isBasicType(String hash)
{
return isType(FbasicType.class, hash);
} | [
"public FbasicType getBasicType(String hash)\n {\n if (isBasicType(hash))\n {\n return (FbasicType) get(hash);\n }\n return null;\n }",
"public boolean isStructType(String hash)\n {\n return isType(FstructType.class, hash);\n }",
"public boolean isFuncti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |