query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Creates a new JobInfo RecordBuilder by copying an existing JobInfo instance | public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {
return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);
} | [
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder() {\n return new br.unb.cic.bionimb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds and runs the it12 test project (MOJO1648) | public void testIt12() throws Exception {
runTest("src/test/it12");
} | [
"public void testBuildAndRun() {\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass1Node = new JavaNode(sample1Node, SAMPLE1_FILE_NAME);\n // increase timeo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ REMARK 350 BIOMOLECULE: 1 REMARK 350 APPLY THE FOLLOWING TO CHAINS: 1, 2, 3, 4, 5, 6, REMARK 350 A, B, C REMARK 350 BIOMT1 1 1.000000 0.000000 0.000000 0.00000 REMARK 350 BIOMT2 1 0.000000 1.000000 0.000000 0.00000 REMARK 350 BIOMT3 1 0.000000 0.000000 1.000000 0.00000 REMARK 350 BIOMT1 2 0.309017 0.809017 0.500000 0... | private void remark350() throws Exception {
JmolList<Matrix4f> biomts = null;
vBiomolecules = new JmolList<Map<String,Object>>();
chainAtomCounts = new int[255];
String title = "";
String chainlist = "";
int iMolecule = 0;
boolean needLine = true;
Map<String, Object> info = null;
i... | [
"private void generateSampleExpressionTable() {\n //A place to store abundance counts for multi-mappers without double counting i.e. if there is an sRNA entry, then it is a multi-mapper.\n HashMap<String, Integer> multiMapperAbundance = new HashMap<>();\n //Map of <miRNA_ID:ReadCoun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Click on Meetingweb Conferencing Made Simple And Easy. Link. | public zoho clickMeetingwebConferencingMadeSimpleAndEasy1Link() {
meetingwebConferencingMadeSimpleAndEasy1.click();
return this;
} | [
"HtmlPage clickSiteLink();",
"public zoho clickMeetingwebConferencingMadeSimpleAndEasy2Link() {\n meetingwebConferencingMadeSimpleAndEasy2.click();\n return this;\n }",
"public void clicktraveltheworllink() {\r\n\t\tdriver.findElement(travel_the_world_link).click();\r\n\t}",
"java.lang.String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ A method that returns the factorial of a number x. Will crash if x is greater than the stack size limit of Java. | public static int factorial(int x)
{
if (isNegative(x))
return -1;
else if (x==1 || x==0)
return x;
else
return x*factorial(x-1);
} | [
"private static double callFactorial(double x) { \n\t\treturn factorialIndirect.applyAsDouble(x);\n\t}",
"int factorial (int n)\r\n {\r\n int resultado = 1;\r\n for (int i = 1; i <= n; i++)\r\n resultado = resultado * i;\r\n return resultado;\r\n }",
"private double factorial(double x) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the lsb property. | public long getLsb() {
return lsb;
} | [
"public long getMsb() {\n return msb;\n }",
"public long getLeastSignificantBits() {\n return lsb;\n }",
"BitField getLSBs(int digits);",
"public int getDigitalLSBMask() {\n\t\treturn digitalLSBMask;\n\t}",
"public void setLsb(long value) {\n this.lsb = value;\n }",
"public i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the select statement to retrieve a full schema | private String sqlSelectSchema()
{
return String.format("SELECT event_type, field_name, field_type, field_id, description, sql_type, sql_length, sql_scale, sql_precision FROM %s ORDER BY field_id ASC", tableName);
} | [
"public String getTableSQL();",
"protected String getSelectQuery() {\n StringBuilder query = new StringBuilder();\n DBConfiguration dbConf = getDBConf();\n String conditions = getConditions();\n String tableName = getTableName();\n String [] fieldNames = getFieldNames();\n\n // Oracle-specific c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
treat request to add to notifications table that one user was granted with admin | private void treatNotifyUserAboutAdminGranted(HashMap<String, String> map) throws SQLException {
String user = map.get("user");
String[] a = {"username, notificationType", "'"+user+"', 'you now have admin permissions!'"};
SQL.addValuesToTable("notifications", a);
} | [
"public void notifyAdmins(){\n \tfor(PlayerHandler player : players){\n \t\tif(player.isAdmin()){\n \t\t\tplayer.notify(1);\n \t\t}\n \t}\n }",
"@Override\r\n public void addGrantedNotification(NotificationDetail notificationDetail) {\n }",
"private void treatGrantAdmin(HashMap<String, S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns true if the pattern is readable i.e. isn't a match for a nonreadable UUID | private boolean isReadable(String uuid)
{
return !NON_READABLE_UUID.matcher(uuid).matches();
} | [
"private static boolean isUUID(String s)\n\t{\n\t\tif (s.length() > 35)\n\t\t{\n\t\t\tif (s.charAt(8) == '-' && s.charAt(13) == '-' && s.charAt(18) == '-' &&\n\t\t\t\ts.charAt(23) == '-')\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean validatePattern(String raw);",
"boolean su... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to find the BankAccount with the lowest balance in an array of BankAccounts. The code allows null elements to appear in the array. | public static BankAccount minBal(BankAccount[] array) {
BankAccount minAcc = null;
if (array != null && array.length > 0) {
minAcc = array[0];
int i = 0;
while(minAcc == null && i < array.length - 1 ) {
i++;
minAcc = array[i];
}
for (i++; i < array.length; i++) {
... | [
"public static BankAccount minBalBAD(BankAccount[] arr) {\n BankAccount minAcc = null;\n if (arr != null && arr.length > 0) { \n //FIRST ASSUME ALL ELEMENTS ARE NOT null\n minAcc = arr[0];\n for (int i = 1; i < arr.length; i++) {\n if (arr[i].getBalance() < minAcc.getBalance()) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns list of projects manager is leading by projName | public String[] getMgrProjects(int mgrID)
{
String[] emptyProjects = {};
Connection conn = null;
PreparedStatement stmt = null;
ResultSet rs = null;
try
{
DBConnection db = new DBConnection();
conn = db.ConnectDB();
... | [
"public String getProjectManagerName();",
"public ListProjects getListProjects()\n\t{\n\t\treturn ListProjects.getInstance();\n\t\t\n\t}",
"List<Project> getProjectList();",
"List<Project> getAllProjects(String workspaceName);",
"List<Project> listAccessibleProjects();",
"public List<Project> getAllProjec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns AArch64Address of given StackSlot. We cannot use CompilationResultBuilder.asAddress since this calls AArch64MacroAssembler.makeAddress with displacements that may be larger than 9bit signed, which cannot be handled by that method. Instead we create an address ourselves. We use scaled unsigned addressing since w... | private static AArch64Address loadStackSlotAddress(CompilationResultBuilder crb, AArch64MacroAssembler masm, StackSlot slot, AllocatableValue scratch) {
Register scratchReg = Value.ILLEGAL.equals(scratch) ? zr : asRegister(scratch);
return loadStackSlotAddress(crb, masm, slot, scratchReg);
} | [
"public Addr getLocationOnStack() {\n\n\t\tImm immediateStackPointerOffset = new Imm(String.valueOf(this.spOffset));\n\t\tAddr spilledValueLocationOnStack = new Addr(immediateStackPointerOffset, this.sp);\n\t\treturn spilledValueLocationOnStack;\n\t}",
"io.swisschain.sirius.vaultApi.generated.transferValidationRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleAstOutputPattern" $ANTLR start "ruleAstOutputPattern" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1191:1: ruleAstOutputPattern : ( ( rule__AstOutputPattern__Group__0 ) ) ; | public final void ruleAstOutputPattern() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1195:2: ( ( ( rule__AstOutputPattern__Group__0 ) ) )
... | [
"public final void rule__AstOutputPattern__Group__0() 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:14623:1: ( rule__AstOutputPattern... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new GFFStreamFeature from the given line. The String should be in gene finder format. | private GFFStreamFeature (final String line)
throws ReadFormatException {
super (null);
final StringVector line_bits = StringVector.getStrings (line, "\t", true);
if (line_bits.size () < 8) {
throw new ReadFormatException ("invalid GFF line: 8 fields needed " +
... | [
"protected static GFFStreamFeature readFromStream (LinePushBackReader stream)\n throws IOException, InvalidRelationException {\n\n String line = stream.readLine ();\n\n if (line == null) {\n return null;\n }\n\n try {\n final GFFStreamFeature new_feature = new GFFStreamFeature (line);\n\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates or finds a DocumentSource from its string representation. | @JsonCreator
public static DocumentSource fromString(String name) {
return fromString(name, DocumentSource.class);
} | [
"protected Source convertString2Source(String param) {\n Source src;\n try {\n src = uriResolver.resolve(param, null);\n } catch (TransformerException e) {\n src = null;\n }\n if (src == null) {\n src = new StreamSource(new File(param));\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a ContinuousElevationModel based on HGT Files that covers the Swiss alps | private ContinuousElevationModel loadCEM() {
HgtDiscreteElevationModel hgt1 = new HgtDiscreteElevationModel(
new File("N45E006.hgt"));
HgtDiscreteElevationModel hgt2 = new HgtDiscreteElevationModel(
new File("N45E007.hgt"));
HgtDiscreteElevationModel hgt3 = new Hg... | [
"public HgtDiscreteElevationModel(File file){\r\n\t\t//File checks\r\n\t\tcheckArgument(checkFileName(file), \"File name is not correct\");\r\n\t\tcheckArgument(checkFileLength(file), \"File length is not 25'934'402 octets\");\r\n\t\t\r\n\t\tString filename = file.getName();\r\n\t long l = file.length();\r\n\t ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the color code of the bottom border. The value is expressed as hex string with the format AARRGGBB. AA (Alpha) is usually FF | public String getBottomColor() {
return bottomColor;
} | [
"public String getBorderBottomColor();",
"public XSSFColor getBottomBorderXSSFColor() {\n if(_ctDxf.isSetBorder()) {\n \tfinal CTBorder ct = _ctDxf.getBorder();\n \tif (ct.isSetBottom()) {\n \t\tfinal CTBorderPr pr = ct.getBottom();\n \t\tif (pr.isSetColor()) {\n \t\t\tfi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the hints file to use. | public void setHintsFile(String file) {
this.hintsFile = file;
} | [
"public String getHintsFile() {\n return hintsFile;\n }",
"public void setHints(final String[] hints) {\n this.hints = hints;\n }",
"public void setUsedHints(int usedHints) {\n\t\tthis.usedHints = usedHints;\n\t}",
"Imports setFile(String file);",
"public void setHints(ResourceBundle aHi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the "typeCode" element | void unsetTypeCode(); | [
"public void unsetTitleTypeCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TITLETYPECODE$0, 0);\n }\n }",
"void unsetType();",
"public void unsetType()\n {\n synchronized (monitor())\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
send an interval end to all registered topics | private void IntervalEndMessageAndSend0() {
// TODO Auto-generated method stub
String topic;
Iterator<String> ier = TopicMap.keySet().iterator();
while(ier.hasNext()){
topic = ier.next();
//AsyncPushOneFlow(topic, new byte[](new Key(new byte[]{0,0,0}),Sub4SketchingKVStream.endSignal));
}
} | [
"public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
percentage of fat in total Calories | public double caloriesInFat(double fatCalories, double calories)
{
double totalCalories = (fatCalories / calories) * 100;
return totalCalories;
} | [
"public abstract double percentFat();",
"Float getFedAnimalsPercentage();",
"public double getPercentOfTotal();",
"BigDecimal getMilkFatPercentage();",
"public float percentOfDiscount() {\n\t\treturn 0.7f; \r\n\t}",
"public static float percentageF(float n, float total) {\r\n return n * 100f / to... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end student attendance temp history insert into Student Academics Temp History | public AbstractWrapper insertStudentAcademicsTempHistory()throws Exception {
Connection con = null;
ResultSet resultSet = null;
DataArrayWrapper dataArrayWrapper = new DataArrayWrapper();
String sql=null;
//SimpleDateFormat dmyFormat = new SimpleDateFormat("dd-MMM-yyyy");
... | [
"public AbstractWrapper insertStudentAttendanceTempHistory()throws Exception {\r\n\t\t\t\t\r\n\t\t\t\tConnection con = null;\r\n\t\t\t\tResultSet resultSet = null;\r\n\r\n\t\t\t\tDataArrayWrapper dataArrayWrapper = new DataArrayWrapper();\r\n\t\t\t\tString sql=null;\r\n\t\t\t\t\r\n\t\t\t\t//SimpleDateFormat dmyForm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes directory necessary for image uploads. | public static void makeUploadDir() {
try {
new File("uploads").mkdir();
} catch (Exception e) {
e.printStackTrace();
OSPErrors.storeInternalErrors(e, null);
}
} | [
"@EventListener(ApplicationReadyEvent.class)\n private void createImageDirectory()\n {\n new File(productImageUpload).mkdir();\n }",
"public static void init(){\n File directory = new File(IMAGE_FOLDER);\n if(!directory.exists()){\n directory.mkdir();\n }\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add additional dateFrom query parameter | public <TValue> ByProjectKeyByResourceTypeGet addDateFrom(final TValue dateFrom) {
return copy().addQueryParam("date.from", dateFrom);
} | [
"public <TValue> ByProjectKeyByResourceTypeGet addDateFrom(final Collection<TValue> dateFrom) {\n return copy().addQueryParams(\n dateFrom.stream().map(s -> new ParamEntry<>(\"date.from\", s.toString())).collect(Collectors.toList()));\n }",
"public ByProjectKeyByResourceTypeGet addDateFrom(fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Eat event for special food from farming levels that applies boons based on item desc. | @EventHandler()
public void onPlayerItemConsume(PlayerItemConsumeEvent event){
List<String> item_desc = event.getItem().getLore();
if (item_desc != null){
Player target = event.getPlayer();
for (String line : item_desc )
{
if (line.contains("Hunger"))
{
int value = Integer.parseInt(line.sub... | [
"private void eatFoodBonus(EntityAnimal entity, ICapabilityHungryAnimal capHungry, ICapabilityTamableAnimal capTaming, ItemStack item) {\n\t\tif (item.isEmpty())\n\t\t\treturn;\n\n\t\tIFoodPreference<ItemStack> pref = FoodPreferences.getInstance().REGISTRY_ITEM.get(entity.getClass());\n\n\t\tdouble nutrient = pref.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks what Player owns the colony on this Planet and returns the value. If there is no Colony the Planet is owned by Player.WORLD | public Player controlledBy() {
if (hasColony()) {
return colony.getOwner();
} else {
return Player.WORLD;
}
} | [
"public Colony getColony() {\n return this.colony;\n }",
"public Colony getColony(String name) {\n Iterator<Player> pit = getPlayerIterator();\n while (pit.hasNext()) {\n Player p = pit.next();\n Iterator<Settlement> it = p.getSettlementIterator();\n w... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compile a ddlog program stored in a file and generate Rust sources in a directory named _ddlog | public static void compileDDlogProgramToRust(
String ddlogFile,
CompilationResult result,
String... ddlogLibraryPath) {
Path path = Paths.get(ddlogFile);
Path dir = path.getParent();
Path file = path.getFileName();
List<String> command = new ArrayList... | [
"public static void compileDDlogProgram(\n String ddlogFile,\n String outLibName,\n CompilationResult result,\n String... ddlogLibraryPath) throws DDlogException {\n compileDDlogProgramToRust(ddlogFile, result, ddlogLibraryPath);\n if (!result.isSuccess())\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the fireBase Analytics Properties | public void setFireBaseProperties() {
mFireBaseAnalytics.setAnalyticsCollectionEnabled(true);
mFireBaseAnalytics.setMinimumSessionDuration(MIN_SESSION_DURATION);
mFireBaseAnalytics.setSessionTimeoutDuration(SESSION_TIME_OUT_DURATION);
} | [
"private void initializeGa() {\n\n // Set dryRun flag.\n GoogleAnalytics.getInstance(this).setDryRun(GA_IS_DRY_RUN);\n\n // Set the log level to verbose if dryRun.\n // DEFAULT is set to DRY RUN (only logging will happen)\n GoogleAnalytics.getInstance(this).getLogger()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Should we index this inputRow? Decision is based on our interval and shardSpec. | private boolean shouldIndex(InputRow inputRow) {
if(!getImplicitLockInterval().get().contains(inputRow.getTimestampFromEpoch())) {
return false;
}
final Map<String, String> eventDimensions = Maps.newHashMapWithExpectedSize(inputRow.getDimensions().size());
for(final String dim : inputRow.ge... | [
"@Override\n public boolean isUsableIndex(int idx) {\n if ( idx < 0 )\n return false;\n if ( idx >= numDataCols )\n return false;\n return Boolean.TRUE.equals(standardized[idx]);\n }",
"@Override\n\tpublic boolean isUsableIndex(int idx) {\n\t\tif ( idx < 0 )\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the cartDetail to the list of cart details. | public void addCartDetail(CartDetail cartDetail){
cartDetails.add(cartDetail);
cartDetail.setCart(this);
} | [
"public void setCartDetails(List<CartDetail> cartDetails) {\n this.cartDetails = cartDetails;\n }",
"public void addCarToCart(CarDetailInCartDTO dto){\n if (this.cars == null) {\n this.cars = new HashMap<>();\n }\n \n int key = dto.getPrice();\n if (this.car... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Augment the path from a to b (neither should be in the matching) | public void AugmentPath(Node a, Node b, Graph graph) {
if (IsNodeMatched(a, matching) || IsNodeMatched(b, matching)) {
System.out.println("ERROR - Attempting to augment between two nodes and one is already matched...");
return;
}
// Now we can do the augmenting ...
if (!a.GetIsXNode()) {
System... | [
"public static void shortestPath(Person a, Person b){\r\n\t\t/*Nishanth*/\r\n\t}",
"public void findAugmentingPath(){\n\t\tresetResidualGraph();\n\t\tVertex v1;\n\t\tVertex v2;\n\t\tEdge e;\n\t\tHashtable<Vertex,Vertex> prevNode = new Hashtable<Vertex,Vertex>();\n\t\tHashtable<Vertex,Edge> vertexEdge = new Hashta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the IPermissions owner has granted this Principal for the specified activity and target. Null parameters will be ignored, that is, all IPermissions matching the nonnull parameters are retrieved. So, getPermissions(principal,null, null, null) should retrieve all IPermissions for a Principal. | public IPermission[] getPermissionsForPrincipal (
IAuthorizationPrincipal principal,
String owner,
String activity,
String target)
throws AuthorizationException; | [
"public IPermission[] getAllPermissionsForPrincipal (\n IAuthorizationPrincipal principal,\n String owner,\n String activity,\n String target)\n throws AuthorizationException;",
"public IPermission[] getPermissionsForOwner(String owner, String activity, String target)\n throws Author... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Name Provider'. This implementation returns null; returning a nonnull result will terminate the switch. | public T1 caseNameProvider(NameProvider object) {
return null;
} | [
"public String getProviderName();",
"public String getProviderClassName();",
"Identifier getProviderIdentifier();",
"public String getProviderName(\n\t) {\n\t return this.providerName;\n\t}",
"private ObjectName getObjectNameFor(MarketDataProvider inProvider)\n throws MalformedObjectNameExcept... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
chang the color of the squares | public void changeSquareColorImplement(){
for (int j = 0; j < 8; j++) {
for (int i = 0; i < 8; i++) {
if ((i % 2 == 1 && j % 2 == 1) || (i % 2 == 0 && j % 2 == 0)) { //loop through the whole board
chessBoardSquares[i][j].setBackground(whiteSquare);
} el... | [
"public void recolorBoard(){\n\t\tfor(int i=0;i<8;i++){\n\t\t\tfor(int j=0;j<8;j++){\n\t\t\t\tsquares[i][j].setBackground(((i + j) % 2 == 0)? LIGHTBROWN : DARKBROWN);\n\t\t\t}\n\t\t}\t\n\t\tthis.repaint();\n\t}",
"void changeColor(Shape s, float red, float blue, float green, int start, int end);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a reference to the microsoft.windowsazure.management.sql.SqlManagementClientImpl. | public SqlManagementClientImpl getClient() {
return this.client;
} | [
"public interface ResourceManagementClient {\n /**\n * Gets The Microsoft Azure subscription ID.\n *\n * @return the subscriptionId value.\n */\n String getSubscriptionId();\n\n /**\n * Gets server parameter.\n *\n * @return the endpoint value.\n */\n String getEndpoint()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to create a new direct property path. | protected void createDirectPath (String path)
{
if (path.startsWith(".")) {
path = path.substring(1);
}
if (path.length() > 0 && _object instanceof ParameterizedConfig) {
if (((ParameterizedConfig)_object).isInvalidParameterPath(path)) {
getToolkit().b... | [
"@Test(timeout = TestGmplsWebservice.TIMEOUT)\n\tpublic final void testCreatePath() throws InvalidRequestFaultException,\n\t\t\tJAXBException, IOException, SoapFault, SAXException {\n\t\tif (TestGmplsWebservice.serviceAvailable) {\n\n\t\t\tfinal org.opennaas.extensions.gmpls.serviceinterface.databinding.jaxb.Create... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getPayloadBlock return the bundle's payload bundle or null if no payload block exists. Per the RFC, there is only one payload block per bundle. | PayloadBlock getPayloadBlock(); | [
"public static void checkBundlePayload(Bundle bundle) {\n // assert\n assertEquals(true, bundle != null);\n String[] payload = {null};\n if (bundle != null) {\n for (CanonicalBlock block : bundle.getBlocks()) {\n assertEquals(true, block.isTagged(\"crc_check\"))... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
RBBISymbolTable::lookupNode Given a key (a variable name), return the corresponding RBBI Node. If there is no entry in the table for this name, return NULL. | RBBINode lookupNode(String key) {
RBBINode retNode = null;
RBBISymbolTableEntry el;
el = fHashTable.get(key);
if (el != null) {
retNode = el.val;
}
return retNode;
} | [
"public OMNode lookup(String key);",
"public String lookup(String key){\n Node N = front;\n while( N != null){\n if( N.key.equals(key)){\n return N.value;\n }\n N = N.next;\n }\n return null;\n }",
"private String lookupInLeafNode(Integer key, LeafNode node) {\n String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The list of path rules. | @Updatable
public List<ComputePathRule> getPathRule() {
if (pathRule == null) {
pathRule = new ArrayList<>();
}
return pathRule;
} | [
"public List<PathRule> getPathRulesList() {\n return pathRules;\n }",
"public List<PathRule> getPathRulesList() {\n return pathRules;\n }",
"public ArrayList<String> getRules() {\n return rules;\n }",
"public List<String> getRules() {\n return this.rules;\n }",
"java.util.Lis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Search our map of online meta regions to find the first meta region that should contain a pointer to newRegion. | public MetaRegion getFirstMetaRegionForRegion(HRegionInfo newRegion) {
synchronized (onlineMetaRegions) {
return getMetaRegionPointingTo(onlineMetaRegions, newRegion);
}
} | [
"NavigableMap<byte[], MetaRegion> getAllMetaRegionLocations() {\n NavigableMap<byte[], MetaRegion> m =\n new TreeMap<byte[], MetaRegion>(Bytes.BYTES_COMPARATOR);\n m.putAll(metaRegionLocationsBeforeScan);\n m.putAll(onlineMetaRegions);\n return m;\n }",
"public MetaRegion offlineMetaRegionWith... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
========== =====Static Functions===== ========== Gets the list of created characters. The returned array is sorted in descending order of the time and date at which the character was last used, such that the most recently used character is at the head of the array. | public static CharacterData[] getCharactersList() {
IOUtil.createDir(Resources.DIR_CHARS);
FileHandle[] characterDirs = Resources.DIR_CHARS.list();
List<CharacterData> characters = new ArrayList<>(characterDirs.length);
// Cycle over all the folders in the characters di... | [
"public static char[] createArray() {\n // Declare an array of characters and create it\n char[] chars = new char[100];\n\n // Create lowercase letters randomly and assign them to the array\n for (int i = 0; i < chars.length; i++) {\n chars[i] = RandomCharacter.getRandomLowerC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The private DNS name. | public String getPrivateDnsName() {
return this.privateDnsName;
} | [
"public String dnsName() {\n // because getHost returns \"null\" for wildcard endpoints\n return url.getAuthority().replaceAll(\":.*\", \"\");\n }",
"public String getPrivateDomainName() {\n return this.privateDomainName;\n }",
"public String privateDnsZone() {\n return this.pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
lncli: `getnodeinfo` GetNodeInfo returns the latest advertised, aggregated, and authenticated channel information for the specified node identified by its public key. | public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.NodeInfo> getNodeInfo(
lnrpc.Rpc.NodeInfoRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetNodeInfoMethod(), getCallOptions()), request);
} | [
"ClusterNodeInfoDTO getNodeInfo(Long organizationId, Long clusterId, String nodeName);",
"cn.wsds.gamemaster.pb.Proto.NodeInfo getNodeinfo(int index);",
"public com.google.protobuf.ByteString\n getNodeinfoBytes() {\n java.lang.Object ref = nodeinfo_;\n if (ref instanceof String) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a database, if it has been modified since a specific DateTime | public org.openntf.red.Database getDatabaseIfModified(String server, String dbfile, lotus.domino.DateTime modifiedsince); | [
"public org.openntf.red.Database getDatabaseIfModified(String server, String dbfile, Date modifiedsince);",
"private static boolean isLastUpdateAtLeastThisOld(final Context context, final long time) {\n final long now = System.currentTimeMillis();\n final long lastUpdate = MetadataDbHelper.getOldest... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by collins on 6/16/17. interface onpetselectedlistener | public interface OnPetSelectedListener {
public void onPetSelected(Integer position, ArrayList<Pet> pets, String source);
} | [
"private void itemSelected() {\n\t\titemList.getSelectionModel().selectedItemProperty().addListener((observableValue, oldValue, newValue) -> {\n\t\t\tif (newValue != null) {\n\t\t\t\t// newValue is just a String here. Its the name of the item;\n\t\t\t\tap.getChildren().clear();\n\t\t\t\tchosenItem = loadItems.getIt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Private Constructor for GetMessages that takes a Queue, a marker, a limit, the matchHidden flag, the detail, and a wait time as arguments. | private GetMessages(Queue queue, String marker, Long limit, Boolean matchHidden, String detail,
Long wait) {
this.queue = queue;
this.marker = marker;
this.limit = limit;
this.matchHidden = matchHidden;
this.detail = detail;
this.wait = wait;
} | [
"public GetMessages(Queue queue) {\n this.queue = queue;\n this.marker = null;\n this.limit = null;\n this.matchHidden = null;\n this.detail = null;\n this.wait = null;\n }",
"public GetMessages withLimit(long limit) {\n return new GetMessages(queue, marker, limit,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'field174' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField174() {
field174 = null;
fieldSetFlags()[174] = false;
return this;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField146() {\n field146 = null;\n fieldSetFlags()[146] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField123() {\n field123 = null;\n fieldSetFlags()[123] = false;\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleNestedModel" $ANTLR start "entryRuleUnorderedDatatype" PsiInternalExUnorderedGroupsTestLanguage.g:1626:1: entryRuleUnorderedDatatype returns [Boolean current=false] : iv_ruleUnorderedDatatype= ruleUnorderedDatatype EOF ; | public final Boolean entryRuleUnorderedDatatype() throws RecognitionException {
Boolean current = false;
Boolean iv_ruleUnorderedDatatype = null;
try {
// PsiInternalExUnorderedGroupsTestLanguage.g:1626:59: (iv_ruleUnorderedDatatype= ruleUnorderedDatatype EOF )
// PsiI... | [
"public final Boolean entryRuleNestedModel() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleNestedModel = null;\n\n\n try {\n // PsiInternalExUnorderedGroupsTestLanguage.g:1531:53: (iv_ruleNestedModel= ruleNestedModel EOF )\n // PsiInternalExUn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "prog" $ANTLR start "q" C:\\Users\\Cavicchio\\workspace\\InterDepAdjStructure\\newgrammar\\JCB_tree.g:116:1: q : INT ; | public final void q() throws RecognitionException {
Token INT1=null;
try {
// C:\\Users\\Cavicchio\\workspace\\InterDepAdjStructure\\newgrammar\\JCB_tree.g:116:2: ( INT )
// C:\\Users\\Cavicchio\\workspace\\InterDepAdjStructure\\newgrammar\\JCB_tree.g:116:4: INT
{
... | [
"public final void mQ() throws RecognitionException {\n try {\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:410:11: ( ( 'q' | 'Q' ) )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:410:12: ( 'q' | '... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); | [
"cosmos.base.query.v1beta1.PageRequest getPagination();",
"cosmos.base.query.v1beta1.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.PageResponseOrBuilder getPaginationOrBuilder();",
"sawtooth.sdk.protobuf.ClientPagingResponse ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pause all currently running calls. | boolean pauseAllCalls(); | [
"public void pauseAllCalls();",
"public void pausedAllObjects();",
"void pauseAll() throws SchedulerException;",
"void systemPauseThreads() {\n myHiddenPause = true;\n pauseThreads();\n }",
"synchronized void userPauseThreads() {\n myGamePause = true;\n pauseThreads();\n }",
"public synchron... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifies the accuracy of DirectProjectMetadataKeyAudit entity mapping by doing persist, find, merge, refresh and delete on the entity. | @Test
public void testDirectProjectMetadataKeyAudit_Delete() throws Exception {
et.begin();
// Create and persist
DirectProjectMetadataKeyAudit defined = getDirectProjectMetadataKeyAudit();
em.persist(defined);
// flush the change to DB
em.flush();
et.commit... | [
"@Test\n public void testDirectProjectMetadataKeyAudit_Update() throws Exception {\n et.begin();\n\n // Create and persist\n DirectProjectMetadataKeyAudit defined = getDirectProjectMetadataKeyAudit();\n em.persist(defined);\n\n // flush the change to DB\n em.flush();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds a hamiltonian path in a graph given it's adjacency matrix using greedy heuristic. Algorithm is described at slide 2526 of the project's presentation slides. | private static int[] greedyHamiltonianPath(int[][] graph){
int length = collection.length();
byte[] in = new byte[length], out = new byte[length];
ArrayList<int[]> sets = new ArrayList<int[]>();
ArrayList<int[]> vertices = new ArrayList<int[]>();
for(int i=0; i<length; i++){
sets.add(new int[] {i});
... | [
"private static LinkedList<SequenceGraph.Node> findHamiltonianPath(SequenceGraph graph) {\n\t\tSequenceGraph.Node root = graph.getRoot();\n\t\tHashSet<SequenceGraph.Node> visitedSet = new HashSet<>();\n\t\tLinkedList<SequenceGraph.Node> path = new LinkedList<>();\n\n\t\tif (root == null || !findHamiltonianPath(grap... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Looks up a monitored sensor by its emulatorfriendly name. | private MonitoredSensor getSensorByEFN(String name) {
for (MonitoredSensor sensor : mSensors) {
if (sensor.mEmulatorFriendlyName.contentEquals(name)) {
return sensor;
}
}
return null;
} | [
"public Sensor getSensor(String uuid);",
"Sensor getSensor();",
"public static Sensor getSensor(String name) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"String findDeviceByName(St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: finalstepflag | public boolean isFinalstepflag () {
return finalstepflag;
} | [
"public void setFinalstepflag (boolean finalstepflag) {\n\t\tthis.finalstepflag = finalstepflag;\n\t}",
"public BooleanProperty step() {\n\t\treturn step;\n\t}",
"public int getStep() {\r\n\t\t\treturn this.enabled;\r\n\t\t}",
"public long getFinalValue() {\n\treturn finalValue;\n }",
"int getLastStateCh... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets all child portlet categories for a parent category. | public Set<PortletCategory> getChildCategories(PortletCategory parent); | [
"public Set<PortletCategory> getAllChildCategories(\n\t\t\tPortletCategory parent);",
"public Set<IPortletDefinition> getAllChildPortlets(\n\t\t\tPortletCategory parent);",
"public Set<IPortletDefinition> getChildPortlets(PortletCategory parent);",
"@SuppressWarnings(\"unchecked\")\r\n public List<BOCategor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Testing that the BuySideComparator sorts from greater value to less value. | @Test
public void buyingComparator() throws RemoteException {
PriorityOrderBook.BuySideComparator comp = new PriorityOrderBook.BuySideComparator();
Order one = new Order(BUYER1, SECURITY, 1, 10.0,
true , 1, clientHandler);
Order two = new Order(BUYER2, SECURITY, 1, 10.0,
true , 2, clientHandler);
int... | [
"@Test\n\tpublic void sellingComparator() throws RemoteException {\n\t\t//The \"cheapest\" sell order in value is the BEST candidate to get\n\t\t//a buyer, put it first in the pq.\n\t\tPriorityOrderBook.SellSideComparator comp = new PriorityOrderBook.SellSideComparator();\n\n\t\tOrder one = new Order(SELLER1, SECUR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the root of the JTree. | public DefaultMutableTreeNode getRoot() {
return (DefaultMutableTreeNode) tree.getModel().getRoot();
} | [
"public Node get_root() {\r\n return get_root(false);\r\n }",
"public RBNode getRoot() {\r\n return root;\r\n }",
"public Node getRoot() {\r\n return root;\r\n }",
"public BTreeNode getRoot(){\n return root;\n }",
"public RBNode getRoot() {\n\t\tif (!this.root.equals(NULL))... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the "References" element | void unsetReferences(); | [
"void unsetReference();",
"void unsetDocumentReference();",
"void unsetRef();",
"public void resetReferencedStates()\n {\n for(int id=0;id<this.slotsReferenced.size();id++)\n {\n this.slotsReferenced.set(id,ReferenceState.unchecked);\n }\n }",
"private v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test if shuffle button state is restored on configuration changes UI interaction flow tested: 1. Start playing a music item 2. Expand panel 3. Click on shuffle button 4. Rotate device 5. Result: shuffle button state should be restored to state in step 2 | @Test
public void restoreShuffleButtonStateOnRotate() {
expandPanel();
onView(withId(R.id.shuffle)).perform(click()); //Set state to shuffled
rotateDevice(getActivityTestRule().getActivity());
//Using waitForView as we need to wait for the rotate to finish
onView(isRoot()).... | [
"@Test\n public void setShuffleButtonState() {\n expandPanel();\n\n onView(withId(R.id.shuffle)).perform(click()); //Set state to shuffled\n\n onView(withId(R.id.shuffle)).check(matches(withHighlightState(true)));\n }",
"@Test\n public void restoreRepeatButtonStateOnRotate() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Callback for float value gauges | public void gauge(MetricGauge<Float> metric, float value); | [
"float getValue();",
"public void gauge(MetricGauge<Double> metric, double value);",
"private float applyBoundaries(double newValue, RealVector genome){\n\t\tif(newValue>genome.getMaxVal())\n\t\t\treturn genome.getMaxVal();\n\t\t\n\t\tif(newValue<genome.getMinVal())\n\t\t\treturn genome.getMinVal();\n\t\t\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
double zero_count_float = 7; | public Builder setZeroCountFloat(double value) {
zeroCountCase_ = 7;
zeroCount_ = value;
onChanged();
return this;
} | [
"double getZeroCountFloat();",
"@java.lang.Override\n public double getZeroCountFloat() {\n if (zeroCountCase_ == 7) {\n return (java.lang.Double) zeroCount_;\n }\n return 0D;\n }",
"public double getZeroCountFloat() {\n if (zeroCountCase_ == 7) {\n return (java.lang.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
koniec getElkaALFromLine === koniec sekcji z obrobka danych z lasera / Sekcja z obroka danych z Gazebo | private ArrayList<TXyz> getGazALFromLine(String[] aLinT, double aVerStep) //czytam 1linie danych z Gazebo
{
ArrayList<TXyz> lXyzAL = new ArrayList<TXyz>();
//1. Zamieniam String na double
double[] lVarT = new double[aLinT.length];
for (int i=0; i<lVarT.length; i++) {
... | [
"public abstract java.lang.String getLinea_anterior();",
"void readAlphabet(String line) {\n if (line != null) {\n _alphabet = new Alphabet(line.trim());\n } else {\n throw new EnigmaException(\"No alphabet line given\");\n }\n }",
"HologramLine getHologramLine();",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds byte array for DatagramPacket. | private byte[] buildBytes() {
byte[] message = new byte[4 + 2 + 2 + 1 + data.getLength()];
System.arraycopy(id.getBytes(), 0, message, 0, 4);
System.arraycopy(sq.getBytes(), 0, message, 4, 2);
System.arraycopy(ack.getBytes(), 0, message, 6, 2);
message[8] = flag.getBytes();
... | [
"private static byte[] makePacket(byte pkID, byte[] data){\n //Logger.log(\"Length of data:\"+data.length);\n ByteBuffer packetFactory = ByteBuffer.allocate(5+data.length);\n packetFactory.put(pkID);\n packetFactory.putInt((int)(data.length));\n packetFactory.put(data);\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Let us know the daemon is connected | protected void onDaemonConnected() {
if (DBG)
Slog.d(TAG, "onConnected");
mConnectedSignal.countDown();
} | [
"boolean isDaemon();",
"public boolean isAlive () {\n return (daemon != null) && daemon.isAlive();\n }",
"@Override\n public boolean isConnected() {\n boolean result = false;\n synchronized (CONN_SYNC) {\n result = ((system != null) && system.isConnected());\n }\n return result;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'glosses' field. | public java.util.List<java.lang.CharSequence> getGlosses() {
return glosses;
} | [
"public java.util.List<java.lang.CharSequence> getGlosses() {\n return glosses;\n }",
"public boolean hasGlosses() {\n return fieldSetFlags()[2];\n }",
"public Term.Builder setGlosses(java.util.List<java.lang.CharSequence> value) {\n validate(fields()[2], value);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
when book is returned, sets current holder and due date to null. | @Override
public void returned() {
setCurrentHolder(null);
setDueDate(null);
} | [
"@Override\n public void checkout(String bookHolder, String dueDate) {\n setCurrentHolder(bookHolder);\n setDueDate(dueDate);\n }",
"void returnBook(){\n currentBorrowerId = NEGATIVE_NUMBER ;\n }",
"public void returnBook()\r\n\t{\r\n\t\tborrowerCardBarCode = null;\r\n\t}",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the logsAgent property: The logsAgent property. | public DatadogHostMetadata withLogsAgent(DatadogLogsAgent logsAgent) {
this.logsAgent = logsAgent;
return this;
} | [
"public DatadogLogsAgent logsAgent() {\n return this.logsAgent;\n }",
"public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}",
"public void setLogFile(String logFile) {\n agentConfig.setLogFile(logFile);\n logConfigChanged();\n }",
"public void setAgent(IAgent agent);",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A factory for storage. | public interface StorageFactory {
/**
* Creates a storage of specified size.
*
* @param begin the begin index of storage.
* @param size the storage size.
* @return the created storage.
* @throws MemoryException error to create a new storage.
*/
Storage create(int begin, int ... | [
"protected Storage newStorage()\n\t{\n\t\treturn new DbStorage(this);\n\t}",
"void create(Storage<?> storage);",
"Store createStore();",
"public static Storage getInstance() {\n if (instance == null) {\n instance = new Storage();\n }\n return instance;\n }",
"private Stora... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the NIO buffer object in this J3DBuffer to the specified object. | public void setBuffer(Buffer buffer) {
Type bType = Type.NULL;
boolean direct = false;
ByteOrder order = ByteOrder.BIG_ENDIAN;
if (buffer == null) {
bType = Type.NULL;
}
else if (buffer instanceof ByteBuffer) {
bType = Type.BYTE;
direct = ((ByteBuffer)buffer).isDirect();
order = ((ByteBuffer)... | [
"public J3DBuffer(Buffer buffer) {\n\tsetBuffer(buffer);\n }",
"public void setBuffer(ByteBuffer buf);",
"public void setObject_to(CPointer<BlenderObject> object_to) throws IOException\n\t{\n\t\tlong __address = ((object_to == null) ? 0 : object_to.getAddress());\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo para obtener el dia de fin | public String getDiaFin() {
return diaFin;
} | [
"Date getDateFin();",
"public static int diasParaFecha(Date fechafin) {\n try {\n System.out.println(\"Fecha = \" + fechafin + \" / \");\n GregorianCalendar fin = new GregorianCalendar();\n fin.setTime(fechafin);\n System.out.println(\"fin=\" + CalendarToString(f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The greedy leaderDuck eat all the food | public void feedTheDucks(float foodLevel) {
leaderDuck.foodLevel += foodLevel;
// And doesn't give other ducks anything...! :"{
} | [
"private void eat()\n {\n if(player.getFood() > 0)\n {\n player.removeFood(1);\n player.addEnergy(100);\n System.out.println(\"You take some time to eat and rest\");\n System.out.println(\"You now have \" + (player.getEnergy()) + (\" energy and \") + (pla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reset the explosions list, when the player has been destroyed or the level is over | public void resetExplosions(){
explosionList = new Vector<ExplosionData>();
} | [
"private void updateExplosions() {\r\n\t\tfor (int i = 0; i < explosions.size(); i++) {\r\n\t\t\tExplosion e = explosions.get(i);\r\n\t\t\tif (e.isVisible()) {\r\n\t\t\t\te.move();\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\texplosions.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void reset() {\n levelScoresPl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This strips _design from the document id | public String getViewDocumentId() {
String id = getId();
int pos = id.lastIndexOf("/");
if (pos == -1) {
return id;
} else {
return id.substring(pos+1);
}
} | [
"java.lang.String getDocumentId();",
"public String documentIdentifier();",
"public String getDocId(){\n\t\treturn this.id;\n\t}",
"static String composeDocumentId(String groupUuid) {\n\t\tObjects.requireNonNull(groupUuid, \"A groupUuid must be provided.\");\n\t\treturn groupUuid;\n\t}",
"public void setIdD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mark this Offset as using the ULEB128 encoding. | public void setUsesUleb128() {
if (useUleb128) {
throw new Error("Offset is already marked as using ULEB128!");
}
useUleb128 = true;
} | [
"public void setField128(java.lang.CharSequence value) {\n this.field128 = value;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField128(java.lang.CharSequence value) {\n validate(fields()[128], value);\n this.field128 = value;\n fieldSetFlags()[128] = true;\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set Number of assets that failed the check | public void setFailedAssetCount(Long FailedAssetCount) {
this.FailedAssetCount = FailedAssetCount;
} | [
"public void setNumberOfFailedFiles(int value) {\n this.numberOfFailedFiles = value;\n }",
"public void setFailedCount(int failedCount)\n {\n this.failedCount = failedCount;\n }",
"public void setErrorcount(int value) {\n this.errorcount = value;\n }",
"public void resetFailed... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Customers that cannot rent | public int CustomerRentFalse() {
int cannotRent = 0;
for (int i = 0; i < customerArray.size(); i++) {
customerArray.get(i);
if (customerArray.get(i).getCanRent() == false) {
cannotRent++;
}
}
return cannotRent;
} | [
"private boolean checkCustomerRents(String cust_id) {\n\t\t\n\t\tboolean limitRent = true;\n\t\t\n\t\ttry {\n\t\t\tString check_limit = \"SELECT cust_rents FROM customers WHERE cust_id = '\"+ cust_id +\"'\";\n\t\t\tResultSet rs_limit = stmt.executeQuery(check_limit);\n\t\t\tArrayList<String> result_limit = new Arra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getName method, of class BankAccount. | @Test
public void testGetName() {
System.out.println("getName");
BankAccount instance = new BankAccount("Kelly", 99.99);
String expResult = "Kelly";
String result = instance.getName();
assertEquals(expResult, result);
} | [
"java.lang.String getBankName();",
"@Test\r\n public void getNameTest()\r\n {\r\n Assert.assertEquals(stub.getName(), NAME);\r\n }",
"@Test\n public void testGetName() {\n System.out.println(\"getName\");\n Bank instance = null;\n String expResult = \"\";\n String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the enhancedData value for this DoExpressCheckoutPaymentRequestDetailsType. | public eBLBaseComponents.apis.ebay.EnhancedDataType getEnhancedData() {
return enhancedData;
} | [
"public ExtendedData getExtendedData() {\n\t\treturn extendedData;\n\t}",
"public eBLBaseComponents.apis.ebay.PaymentDetailsType[] getPaymentDetails() {\r\n return paymentDetails;\r\n }",
"public java.lang.String getEnhancedDataEnabled() {\r\n return enhancedDataEnabled;\r\n }",
"public co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read the status of the signing basket Returns the status of a signing basket object. | @GET
@Path("/v1/signing-baskets/{basketId}/status")
@Produces({ "application/json", "application/problem+json" })
@Operation(summary = "Read the status of the signing basket")
@Tags(value = { @Tag(name = "Signing Baskets (SBS)"), @Tag(name = "Common Services"), })
@APIResponses(value = {
@APIResponse(responseCo... | [
"public Byte getSaleStatus() {\n\t\treturn saleStatus;\n\t}",
"@Override\n\tpublic long getStatus() {\n\t\treturn _buySellProducts.getStatus();\n\t}",
"public java.lang.Object getStatus() {\n return status;\n }",
"@Override\n public com.gensym.util.Symbol getItemStatus() throws G2AccessException {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleXIfExpression" $ANTLR start "ruleXIfExpression" ../com.euclideanspace.pbase/srcgen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:3903:1: ruleXIfExpression returns [EObject current=null] : ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_... | public final EObject ruleXIfExpression() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_6=null;
EObject lv_if_3_0 = null;
EObject lv_then_5_0 = null;
EObject lv_else_... | [
"public final EObject ruleXIfExpression() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n Token otherlv_6=null;\n EObject lv_if_3_0 = null;\n\n EObject lv_then_5_0 = null;\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the current value of the Axis_RightX | public double getRightXAxis() {
return getRawAxis(Axis_RightX);
} | [
"public double getAxisRightStickX() {\n\t\treturn joystick.getRawAxis(this.axisRSX);\n\t}",
"public double getRightStickX() {\n return this.getRawAxis(4);\n }",
"public double getOperatorRightXAxis() {\n return DriveUtils.deadbandExponential(testController.getRightStickX(), 1, .075);\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of terms which were seperated by 'AND' in the userentry. | public static ArrayList<String> tokenizeBooleanAND(String sentence) {
//This splits the query at 'AND'
ArrayList<String> result = new ArrayList<>(Arrays.asList(sentence.split("AND")));
return format(result);
} | [
"private Set<String> getQueryTerms() {\n Set<String> ans = new HashSet<>();\n for (Query q : queries) {\n ans.addAll(q.getFilter().terms());\n }\n return ans;\n }",
"private List<ParseTree> separateAND(ParseTree t){\n List<ParseTree> nodes = new ArrayList<ParseTree... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Merge pre install xml into post install xml. | public static String mergePreInstallXMLIntoPostInstallXML(String preUpgradeConfigurationXmlPath, String postUpgradeConfigurationXmlPath,
List<String> propertiesToMerge, List<String> propertiesToExclude) throws IOException, JDOMException {
return mergeConfigurations(postUpgradeConfigurationXmlPath, preUpgradeConfig... | [
"public static String mergePostInstallXMLIntoPreInstallXML(String preUpgradeConfigurationXmlPath, String postUpgradeConfigurationXmlPath,\n\t\t\tList<String> propertiesToMerge, List<String> propertiesToExclude) throws IOException, JDOMException {\n\t\treturn mergeConfigurations(preUpgradeConfigurationXmlPath, postU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows the admin to delete a fact. | @RequestMapping(value = "/deleteFact/{factId}", method = { RequestMethod.GET, RequestMethod.POST })
public void deleteFact(HttpServletRequest req, HttpServletResponse resp, @PathVariable Integer factId, Model model) throws IOException, ServletException {
Fact fact = factDao.findFactById(factId);
factDao.deleteFact... | [
"public void delete(Facture facture) throws DataAccessLayerException {\n super.delete(facture);\n }",
"private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the fecha pago. | public Date getFecha_pago() {
return fecha_pago;
} | [
"public java.util.Calendar getFechaPago() {\n return fechaPago;\n }",
"@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }",
"public java.util.Date getDataPagamento() {\r\n return dataPagamento;\r\n }",
"public java.lang.String getHoraDePago() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the Xml code of the Alias portlet without XML heading | public String getXml( HttpServletRequest request ) throws SiteMessageException
{
// gets the portlet parent
Portlet portlet = PortletHome.findByPrimaryKey( getAliasId( ) );
String strXmlAlias = portlet.getXml( request );
String strTagPortletName = "</" + TAG_PORTLET_NAME + ">";
... | [
"org.apache.xmlbeans.XmlString xgetProductCode();",
"public java.lang.String getAlias()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_use... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Person'. | Person createPerson(); | [
"public Person create() {\n\t\treturn personRepository.create();\n\t}",
"private static Person genPerson(String fName, String lName, Integer age)\n {\n return new Person(fName, lName, age);\n }",
"PersonInfo createPersonInfo();",
"public static Person copyPerson(Person person){\r\n Person ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a value for a setting | public String getValue (String setting); | [
"Setting getSetting();",
"String getSetting(String settingName);",
"<S> S getSetting(Setting<S> setting, S defaultValue);",
"String getSettingByKey(String key);",
"public abstract Object getSetting(int key);",
"public String getConfigValue(String setting) {\n switch (setting) {\n case SE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column goods_transition.number_of_package | public void setNumberOfPackage(Integer numberOfPackage) {
this.numberOfPackage = numberOfPackage;
} | [
"@Property(\"numOfClassesInPackage\")\r\n public abstract void setNumOfClassesInPackage(int numOfClassesInPackage);",
"public void setNumberOfPackageUnit(String numberOfPackageUnit) {\r\n this.numberOfPackageUnit = numberOfPackageUnit;\r\n }",
"public Integer getNumberOfPackage() {\r\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a note on the given location | private void addNote(Location loc, Player player) {
Material soundMat = blockBySound.get(selectedSound);
changeInArea(soundMat, loc); // Updates ingame board
int c = columnNum(loc);
int r = rowNum(loc);
Note note = new Note(selectedSound, selectedPitch, selectedVolume);
notes.get(c).set(r, ... | [
"private void addNote() {\n if (checkNote()) {\n return;\n }\n\n Note note = new Note(noteTitle.getText(), noteBody.getText());\n\n notesToAdd.add(note);\n\n broadcast(\"Note successfully added!\");\n }",
"public void addNote(){\n Note note = new Note(this.n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the target space to which this card directs the player to go. | public Space getTarget() {
return target;
} | [
"public Node getTargetSpace()\n {\n return _targetSpace;\n }",
"public double getTargetDistance ()\r\n {\r\n\treturn targetDistance;\r\n }",
"int getTargetPos();",
"public Movable getTarget() {\n\t\treturn target;\n\t}",
"public int getTargetPos() {\n return targetPos_;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
args = [sound] OR [x] [y] [z] | private boolean sound(CommandSender sender, String[] args) {
if (args.length < 1 || args.length > 3)
return false;
if (args.length == 1) { //args = [sound]
if (!sender.hasPermission("just.sound.play")) {
sendNoPerm(sender);
return true;
}
if (!isPlayer(sender)) {
sender.sendMessag... | [
"public abstract String play(SoundLibrary library, String... sound);",
"public native static void setSoundEffect(Object oper1, java.util.List oper2);",
"public void doSonictronSound(ItemStack aStack, World aWorld, double aX, double aY, double aZ);",
"public static void main(String[] args) {\n double[] ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The NDB ID that this entry replaced. | public StrColumn getReplacedEntryId() {
return delegate.getColumn("replaced_entry_id", DelegatingStrColumn::new);
} | [
"public Integer getnId() {\n return nId;\n }",
"public Long getnId() {\n return nId;\n }",
"public Integer getrId() {\n return rId;\n }",
"java.lang.String getEntryId();",
"public String getIdNumber() {\n return id_number;\n }",
"public String getEntryID() {\r\n\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prompts user for a member number (Functionality shared with ProviderInterface) | private String promptForMemberNumber() {
Scanner myObj = new Scanner(System.in); // Create a Scanner object
System.out.print("Please enter the member number: ");
String memberNumber = myObj.nextLine(); // Read user input
// Format handling
if (memberNumber.length() > 9) {
System.out.println("Member number... | [
"private String promptForProviderNumber() {\n\t\tScanner myObj = new Scanner(System.in); // Create a Scanner object\n\t\tSystem.out.print(\"Please enter the Provider Number: \");\n\t\tString providerNumber = myObj.nextLine(); // Read user input\n\n\t\t// Format handling\n\t\tif (providerNumber.length() > 9) {\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'ALLOW_MTM_TO_RUN' field has been set. | public boolean hasALLOWMTMTORUN() {
return fieldSetFlags()[11];
} | [
"public java.lang.CharSequence getALLOWMTMTORUN() {\n return ALLOW_MTM_TO_RUN;\n }",
"public java.lang.CharSequence getALLOWMTMTORUN() {\n return ALLOW_MTM_TO_RUN;\n }",
"public void setALLOWMTMTORUN(java.lang.CharSequence value) {\n this.ALLOW_MTM_TO_RUN = value;\n }",
"public boolean isSetWm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets text in search bar without activating onTextChangeListener | public void setTextWithoutActivatingTextWatcher(String text) {
searchEdit.removeTextChangedListener(this.textWatcher);
searchEdit.setText(text);
searchEdit.addTextChangedListener(this.textWatcher);
} | [
"public void setTextOnSearchBar(String text) {\n elementControl.clear(searchBar);\n elementControl.setText(searchBar, text);\n }",
"private void setSearchTxtListener() {\n mSearchTxt.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChange... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns the value of the database column jia_order_cupboarddetailtb.modify_user | public String getModifyUser() {
return modifyUser;
} | [
"public Integer getModifyUser() {\n return modifyUser;\n }",
"public Integer getModifyUserNo() {\n return modifyUserNo;\n }",
"public String getModifyUserId() {\n return modifyUserId;\n }",
"public java.lang.Integer getModifyuserno () {\n\t\treturn modifyuserno;\n\t}",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the fedora server URL being used by this client instance. | public String getServerUrl() {
return this.fedoraBaseUrl;
} | [
"public String getServerURI() {\n return settings.getString(\"server_url\", DEFAULT_SERVER_URL);\n }",
"public String getServerUrl() {\n return props.getProperty(\"url\");\n }",
"public String getZookeeperUrl() {\n return zookeeper.getHost() + \":\" + zookeeper.getPort();\n }",
"privat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the size of the attachment content. | public int getSize() throws SOAPException {
if (dataHandler == null) {
return 0; // no attachment
} else {
ByteArrayOutputStream perm = new ByteArrayOutputStream();
try {
dataHandler.writeTo(perm);
} catch (IOException e) {
throw new NestedSOAPException(NestedSOAPExceptio... | [
"public Long contentSize() {\n return this.contentSize;\n }",
"@Schema(description = \"The size of the attachment.\")\r\n\r\n\t@Valid\r\n\r\n\tpublic Quantity getSize() {\r\n\t\treturn size;\r\n\t}",
"public long getContentLength() {\n\t\tString lengthString = this.get(\"content-length\");\n\t\tif (\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |