query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
This method initializes logoBtn | private JButton getLogoBtn() {
if (logoBtn == null) {
logoBtn = new JButton();
logoBtn.setBounds(new Rectangle(496, 299, 235, 138));
ImageIcon imageIcon = new ImageIcon(H2pXmlUtil.getClasspathFilePath("javaei/pdf/img/logo.jpg"));
Image img = imageIcon.getImage();
Image newimg = img.getScaledInsta... | [
"public void imgBtnInit()\n {\n btnKarpada = CreateNewBtn(R.id.btnKarpada);\n btnTilt = CreateNewBtn(R.id.btnTilt);\n btnRekt = CreateNewBtn(R.id.btnRekt);\n btnSnow = CreateNewBtn(R.id.btnSnow);\n btnDragon = CreateNewBtn(R.id.btnDragon);\n btnBattle = CreateNewBtn(R.i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get Method Parameter by given index | public Object getMethodParam(int i); | [
"public Object getParamValue(int i);",
"protected final Expression param(int idx) {\r\n return (Expression)m_params.get(idx);\r\n }",
"public ConstraintTemplateParameter getParameter(int index) {\n return parameters.get(index);\n }",
"ResolvedParameterDeclaration getParam(int i);",
"IExp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Download and cache gist raw content | protected String getGistAt(final String url) {
try {
String filename = url.substring(url.indexOf(GIST_GITHUB_COM));
FileObject storage = configuration.getCacheFolder().resolveFile(filename);
return configuration.getFromCacheOrLoad(new GistLoader(client, url), storage, -1);
} catch(Exception e) {
return ... | [
"public void downloadExternalMods() {\n try {\n FileUtils.copyURLToFile(new URL(\"https://github.com/ice-mineman/Seppuku-Installer-Assets/raw/master/betterui-1.1-SNAPSHOT.jar\"), new File(seppukuModulesFolder.getAbsolutePath() + \"/betterui-1.1-SNAPSHOT.jar\"));\n } catch (IOException e) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the independent nation name. | public final String getNationName() {
return nationName;
} | [
"String getRegionTitle(Nation nation);",
"public String getNation() {\n return nation;\n }",
"public String getNationNameByNationId(final int nationId) {\n for (final NationDTO nation : dataCollection.getNations()) {\n if (nation.getNationId() == nationId) {\n return n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Return the first tab in the ruler with fPosition > position. If it is an autotab, it is at an increment of autoSpacing, and all subsequent tabs will be autotabs at autoSpacing intervals. | public TabStop nextTab(float position) {
if (fTabs != null) {
for (int i = 0; i < fTabs.length; ++i) {
if (position < fTabs[i].getPosition()) {
return fTabs[i];
}
}
}
if (position >= 4000) { // debug: sanity chec... | [
"public TabStop firstTab() {\r\n if (fTabs != null && fTabs.length > 0) {\r\n return fTabs[0];\r\n }\r\n return AUTO_ZERO;\r\n }",
"Tab getTab(int index);",
"public int getTabPosition() {\n Integer tabPosition = (Integer) getProperty(PROPERTY_TAB_POSITION);\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts a person name into dblplike url ending | public static String[] getDblpUrlEnding( String name ) {
if( name == null ) {
return null;
}; // if
name = StringEscapeUtils.escapeHtml( name );
String modifiedName = null;
String retName = name;
// get the index of the last space in the name
int index = name... | [
"private String toSlashName(String name) {\n StringBuilder sb = new StringBuilder();\n for (char c : name.toCharArray()) {\n if ((int) c < 97) sb.append(\"_\");\n sb.append(c);\n }\n return sb.toString().toUpperCase();\n }",
"default String adaptNameForUrl(Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a statement corresponding to the HQL statement: "SELECT id, intersection(geom, :polygon) from GeomEntity where srid(geom) = 4326" | protected abstract NativeSQLStatement createNativeIntersectionStatement(Geometry geom); | [
"protected abstract NativeSQLStatement createNativeIntersectsStatement(Geometry geom);",
"protected abstract NativeSQLStatement createNativeContainsStatement(Geometry geom);",
"protected abstract NativeSQLStatement createNativeDisjointStatement(Geometry geom);",
"protected abstract NativeSQLStatement createNa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method displays all the usernames of created user profiles this method also indicates the type of user associated to each username. it displays the usernames in columns of three | public void displayAllUsers() {
String type;
System.out.print("\n\t *** Returning all usernames currently stored");
System.out.println("\n\t ========= Profiles " + "====== ");
for (int i = 0; i < userDatabase.getAllProfiles().size(); i++) {
if (userDatabase.getAllProfiles().get(i) instanceof Adult)
... | [
"public void printUsernames(){\n for (User z : userList){\n System.out.println(z.getUsername() + \" \" + z.getUserType());\n }\n }",
"public void printUsernames()\n {\n for(User current : users)\n {\n System.out.println(current.getUsername() + \" \" + current.getUse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value to newBranchOverrideCreatedBy field. | public void setNewBranchOverrideCreatedBy(String newBranchOverrideCreatedBy) {
this.newBranchOverrideCreatedBy = newBranchOverrideCreatedBy;
} | [
"public String getNewBranchOverrideCreatedBy() {\r\n return newBranchOverrideCreatedBy;\r\n }",
"public void setNewBranchOverride(String newBranchOverride) {\r\n this.newBranchOverride = newBranchOverride;\r\n }",
"@Override\n\tpublic void setCreatedBy(java.lang.String CreatedBy) {\n\t\t_loc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
submits the given tasks, returning the result of submission | public TupleResult invokeAll(List<Computable> tasks) {
int taskCapacity = (tasks == null ? 0 : tasks.size());
if(taskCapacity == 0) {
throw new IllegalArgumentException("tasks is empty");
}
List<Task> taskWrappers = new ArrayList<Task>(taskCapacity);
TupleResult resul... | [
"RunId submitTask(Task task);",
"RunId submitTask(RunId runId, Task task);",
"void submitAndWaitForAll(Iterable<Runnable> tasks);",
"protected void submitTasks(final Collection<? extends Task> tasks)\r\n {\r\n for (final Task task : tasks)\r\n {\r\n if (!task.isEmpty())\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of all the colors on a day | public Set<Integer> getColors(){
Set<Integer> colors = new HashSet<Integer>();
//for(OTEventModel event : events){
// colors.add(event.getColor());
//}
return colors;
} | [
"public Color[] colorList() {\r\n Color[] colors = new Color[7];\r\n colors[0] = Color.cyan;\r\n colors[1] = Color.pink;\r\n colors[2] = Color.white;\r\n colors[3] = Color.green;\r\n colors[4] = Color.YELLOW;\r\n colors[5] = Color.RED;\r\n colors[6] = Color.GR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the HTML markup to represent this tag cloud. | public String getHtml()
{
StringBuilder result = new StringBuilder();
for (Tag t : this.tags) {
result.append(t.getHtml());
}
return result.toString();
} | [
"public String getHTML() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tgetHTML(root, sb);\n\t\treturn sb.toString();\n\t}",
"public @Nullable String getMarkup() {\n return media.getMarkup();\n }",
"public CharSequence getTagString() {\n\t\tStringBuilder tagString = new StringBuilder();\n\t\tList<Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Testet die methode kaempfe() | @Test
public void kaempfeTest() {
Sc1.kaempfe(Su3);
assertEquals(true, Sc1.getIstBesiegt());
assertEquals(false, Su3.getIstBesiegt());
Su1.kaempfe(Sc2);
assertEquals(false, Sc2.getIstBesiegt());
assertEquals(true, Su1.getIstBesiegt());
} | [
"@Test\r\n public void testOnkoSama() {\r\n System.out.println(\"onkoSama\");\r\n Pala toinenpala = null;\r\n Pala instance = null;\r\n boolean expResult = false;\r\n boolean result = instance.onkoSama(toinenpala);\r\n assertEquals(expResult, result);\r\n // TODO ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Apparently, ArchetypegenerateProjectFromArchetype 2.0alpha4 does not attempt to resolve archetype from configured remote repositories. To compensate, we populate local repo with archetype pom/jar. | private Artifact resolveArchetype(Archetype a, IProgressMonitor monitor) throws CoreException {
ArrayList<ArtifactRepository> repos = new ArrayList<ArtifactRepository>();
repos.addAll(maven.getArtifactRepositories()); // see org.apache.maven.archetype.downloader.DefaultDownloader#download
//MNGECLI... | [
"public void createArchetypeProject(IProject project, IPath location, Archetype archetype, String groupId,\n String artifactId, String version, String javaPackage, Properties properties,\n ProjectImportConfiguration configuration, IProgressMonitor monitor) throws CoreException {\n monitor.beginTask(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleInput" $ANTLR start "entryRuleButton" InternalBrowser.g:428:1: entryRuleButton : ruleButton EOF ; | public final void entryRuleButton() throws RecognitionException {
try {
// InternalBrowser.g:429:1: ( ruleButton EOF )
// InternalBrowser.g:430:1: ruleButton EOF
{
before(grammarAccess.getButtonRule());
pushFollow(FOLLOW_1);
ruleButton();... | [
"public final EObject entryRuleButton() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleButton = null;\n\n\n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:1830:2: (iv_ruleButton= ruleButton... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies whether the Data Fusion instance should be private. If set to true, all Data Fusion nodes will have private IP addresses and will not be able to access the public internet. bool private_instance = 6; | public Builder setPrivateInstance(boolean value) {
privateInstance_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
} | [
"public boolean isPrivate() {\n return privateMode;\n }",
"@java.lang.Override\n public boolean getPrivateInstance() {\n return privateInstance_;\n }",
"public void setPrivateApp(java.lang.Boolean privateApp) {\r\n this.privateApp = privateApp;\r\n }",
"boolean isInPrivateMode() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new furniture group for the given furniture list. | protected HomeFurnitureGroup createHomeFurnitureGroup(List<HomePieceOfFurniture> furniture, HomePieceOfFurniture leadingPiece) {
String furnitureGroupName = this.preferences.getLocalizedString(
FurnitureController.class, "groupName", getFurnitureGroupCount(this.home.getFurniture()) + 1);
final HomeFurni... | [
"protected HomeFurnitureGroup createHomeFurnitureGroup(List<HomePieceOfFurniture> furniture) {\n return createHomeFurnitureGroup(furniture, furniture.get(0));\n }",
"public void addFurnitureToGroup(List<HomePieceOfFurniture> furniture, HomeFurnitureGroup group) {\n if (group == null) {\n throw new Ill... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for property numClients. | public int getNumClients() {
return numClients;
} | [
"public int getNumClients(){\r\n return numClients;\r\n }",
"public int getClientCount() {\r\n return clients;\r\n }",
"public int clientCount() {\n if (clients == null)\n return 0;\n return clients.size();\n }",
"public void setNumClients(int numClients) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method delegates the processing of the AllocationContexts contained in the notification to the supplied processor. If the notification is of _MANY type the processor is called for every contained AllocationContext. | @SuppressWarnings("unchecked")
private void processNotification(Notification notification, Function<Notification, Object> extractor,
Consumer<AllocationContext> processor) {
assert notification.getFeature() == AllocationPackage.Literals.ALLOCATION__ALLOCATION_CONTEXTS_ALLOCATION;
Object... | [
"private void checkAndAddAllocationContextFromNotification(Notification notification) {\n if (notification.getFeature() == AllocationPackage.Literals.ALLOCATION__ALLOCATION_CONTEXTS_ALLOCATION) {\n processNotification(notification, Notification::getNewValue, this::doAddAllocationContext);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
auto generated Axis2 call back method for isGender method override this method for handling normal response from isGender operation | public void receiveResultisGender(
axis2.IsGenderResponse result
) {
} | [
"boolean hasGenderInfo();",
"boolean hasHasGender();",
"com.madhouse.media.momo.MomoExchange.BidRequest.User.Gender getGender();",
"boolean hasGenderView();",
"String tellGender();",
"public boolean isFemale();",
"public boolean hasGender() { return gender != null;}",
"public void generateGender() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the hair color | String getHairColor(); | [
"public String getHairColor() {\r\n\t\t //Add your code here\r\n\t\t return this.HairColor;\r\n\t }",
"public String getHousingColor()\r\n\t{\r\n\t\treturn housingColor;\r\n\t}",
"int getHue();",
"public int healthColor() {\n int shade = 128+(int)((health)*128);\n if (shade<0)\n shade=0;\n el... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of the field 'cacheHits' | public void set_cacheHits(short value) {
setUIntElement(offsetBits_cacheHits(), 8, value);
} | [
"public void setHitCache(IByteBufferCache cache)\n {\n hitCache = cache;\n }",
"public void setHits(int hitPoints) {\n this.hits = hitPoints;\n }",
"public void setCacheHitsPerClass(java.lang.String cacheHitsPerClass) {\r\n this.cacheHitsPerClass = cacheHitsPerClass;\r\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if the key with the given hash is in the keyRing and returns it. | private PublicKey getIssuerKeyFromKeyring( String hash, Collection<PublicKey> keyRing )
throws NoSuchAlgorithmException {
Iterator<PublicKey> iter = keyRing.iterator();
while ( iter.hasNext() ) {
PublicKey key = (PublicKey) iter.next();
if ( hash.equals( XacmlddHelper.hashPublicKey( key, XacmlddHelper.getH... | [
"public boolean containsKey(long hashKey) {\r\n boolean result = false;\r\n int index = getHashIndex(hashKey);\r\n if (hash_data[index] == hashKey || hash_data[index + 2] == hashKey) {\r\n result = true;\r\n }\r\n return result;\r\n }",
"S get(int keyHash);",
"public void foundHash()\n {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column listone.attributeID | public Integer getAttributeID() {
return attributeID;
} | [
"public Long getAttributeId() {\n return attributeId;\n }",
"String getIdAttribute();",
"public long getAttributeId() {\n return attributeId;\n }",
"public int getAttributeId() {\n\t\treturn attributeId;\n\t}",
"public java.lang.Integer getAttributeID() {\r\n return attributeID;\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stops tracking windows changes from window manager, and clear all windows info for specified display. | public void stopTrackingWindows(int displayId) {
synchronized (mLock) {
final DisplayWindowsObserver observer = mDisplayWindowsObservers.get(displayId);
if (observer != null) {
observer.stopTrackingWindowsLocked();
mDisplayWindowsObservers.remove(displayId... | [
"void stopTrackingWindowsLocked() {\n if (mTrackingWindows) {\n if (traceWMEnabled()) {\n logTraceWM(\"setWindowsForAccessibilityCallback\",\n \"displayId=\" + mDisplayId + \";callback=null\");\n }\n mWindowManager... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert a questions json data to a question objet list this json file is in resources | public List<Question> loadDataQuestionFromJsonFile() throws Exception {
//TestUtils testUtils = new TestUtils();
File dataFile = getFile("data-json" + File.separator + "questions.json");
String text = Files.toString(new File(dataFile.getAbsolutePath()), Charsets.UTF_8);
Type typeOfObje... | [
"public static Question[] parseQuestionsFromJSON(Gson gson, String json) throws ClassCastException {\n Map<String, Object> document = (Map<String, Object>) gson.fromJson(json, Map.class);\n if (!document.containsKey(\"questions\")) {\n throw new ClassCastException(\"Invalid template\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for PRICE using the alias name Price. | public Number getPrice() {
return (Number) getAttributeInternal(PRICE);
} | [
"public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }",
"java.lang.String getPrice();",
"sigma.software.leovegas.drugstore.api.protobuf.Proto.DecimalValue getPrice();",
"public Number getPriceVal() {\n return (Number)getAttributeInternal(PRICEVAL);\n }",
"public N... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To determine if match the month | boolean MatchMonth(String month) {
try {
if(Integer.parseInt(month) >= 1 && Integer.parseInt(month) <= 12)
return true;
else
return false;
} catch (Exception e) {
e.printStackTrace();
return false;
}
} | [
"private static boolean existingMonth(Date date) {\r\n if (date.getMonth() >= Main.JAN_NUM && date.getMonth() <= Main.DEC_NUM) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean isMonth(int month)\r\n {\r\n return(dob.getMonth() == month);\r\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return (System) this.readXMIModel(model_fn, de.uka.ipd.sdq.pcm.system.SystemPackage.class.getName()); | public static System readSystem(final String model_fn, final ResourceSet resourceSet) throws IOException {
return (System) ModelIOUtils.loadModel(de.uka.ipd.sdq.pcm.system.SystemPackage.eINSTANCE, model_fn, resourceSet);
} | [
"public static SystemModel_c getSystemModel(final String projectName) {\r\n // Query used to find the SystemModel associated with the\r\n // given project name\r\n ClassQueryInterface_c query = new ClassQueryInterface_c() {\r\n public boolean evaluate(Object candidate) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets output endpoints as a set. | public Set<String> getOutputEndpointsAsSet() {
return outputEndpoints;
} | [
"Set<ListenerEndpoint> getEndpoints();",
"public Set<String> getInputEndpointsAsSet() {\n return inputEndpoints;\n }",
"Set<String> getOutputs();",
"@Nonnull @NotLive @Unmodifiable List<Endpoint> getEndpoints();",
"public List<Endpoint> endpoints() {\n return this.endpoints;\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Directs flow to chosen RGB encryption method using the RGBCode. | private int[] enRGBCode(int[] refPixel, int ASCII) {
switch (this.RGBCode) {
//RGB
case 0:
return enRGB(refPixel, ASCII, 0, 1, 2);
//RBG
case 1:
return enRGB(refPixel, ASCII, 0, 2, 1);
//BRG
cas... | [
"private static native void colorChange_0(long src_nativeObj, long mask_nativeObj, long dst_nativeObj, float red_mul, float green_mul, float blue_mul);",
"public abstract RGBIColor toRGBColor();",
"public void setEncryptedContent(byte[] rgb) {\n rgbEncrypt = rgb;\n }",
"public RGBColor () \r\n\t{\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test ChangeNamespaceAction constructor with null new namespace. Should throw IllegalArgumentException. | public void testChangeNamespaceActionConstructorNullNewNamespace() {
try {
new ChangeNamespaceAction(element, null);
fail("IllegalArgumentException should be thrown when the passed new namespace is null.");
} catch (IllegalArgumentException e) {
// success
}
... | [
"public void testChangeNamespaceActionConstructorNullElement() {\n try {\n new ChangeNamespaceAction(null, oldNamespace);\n fail(\"IllegalArgumentException should be thrown when the passed element is null.\");\n } catch (IllegalArgumentException e) {\n // success\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Styles the polyline, based on type. | private void stylePolyline(Polyline polyline) {
String type = "";
// Get the data object stored with the polyline.
if (polyline.getTag() != null) {
type = polyline.getTag().toString();
}
switch (type) {
// If no type is given, allow the API to use the def... | [
"public void setLineType(int lype) {\n lineType = lype;\n }",
"Polyline createPolyline();",
"void setLineStyle(LineStyle style);",
"public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }",
"private void circoscrizioneTorino () {\n String[] coordinate = met... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ignore current transaction from being recorded. | public static void ignoreTransaction() {
if (active) {
TransactionAccess.ignore();
}
} | [
"public DBMaker disableTransactions() {\n this.disableTransactions = true;\n return this;\n }",
"private void markTxnForRollback() {\n g_context.setRollbackOnly();\n }",
"public void preventSave() {\n preventSave(new UnknownOperationResult());\n }",
"public boolean... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this.properties = (byte)properties; force all the caches off | void _properties(int properties) {
this.properties = 0;
} | [
"private void makeCache() {\n if (propertyCache == null) {\n propertyCache = new PropertyCache(globals.getConfig());\n\n // Preload any keys, if needed.\n String[] preloadKeys = globals.getConfig().getPreloadedProperties();\n if (preloadKeys != null) {\n propertyCache.putAll(globals.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a mobsters.structure_team_center_config table reference | public StructureTeamCenterConfig() {
this("structure_team_center_config", null);
} | [
"public StructureTeamCenterConfig(String alias) {\n\t\tthis(alias, STRUCTURE_TEAM_CENTER_CONFIG);\n\t}",
"public void create(InitialDeviceConfig info) throws DevctrlException {\r\n logger.debug(\"initialConfig create info =\" + info);\r\n try {\r\n String ecMngAddr = EcConfiguration.getInstance().get(S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return this.getWeight() == box.getWeight(); | public boolean compare(Box<?> box) {
return Math.abs(this.getWeight() - box.getWeight()) < 0.0001;
} | [
"public boolean isWeighted();",
"boolean bonusesEqual();",
"public boolean isBox() {\n return box;\n }",
"public int compareTo(Box box){\r\n return (box.width * box.depth) - (this.width * this.depth);\r\n }",
"private boolean isApproximatelyEqualWeight(Node n, Node first) {\r\n\t\tDouble nwD =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
last step before launch : System.load() the native and init()/start() the child applet | private void loadNativesAndStart(final File nativeLib){
displayMessage("Starting " + subAppletDisplayName);
// back to the EDT
SwingUtilities.invokeLater(new Runnable() {
public void run() {
if (osType != MAC_OS) { // borrowed from NativeLibLoader
try {
... | [
"private void startSubApplet(){\r\n try {\r\n subApplet = (Applet)Class.forName(subAppletClassName).newInstance();\r\n subApplet.setStub(new AppletStubProxy());\r\n } catch (ClassNotFoundException cnfe) {\r\n cnfe.printStackTrace();\r\n displayError(\"Class not found (\" + subA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets all servos to values in one transfer | @Override
public void setAllServoValues(float[] values) {
if(values==null || values.length!=getNumServos()) throw new IllegalArgumentException("wrong number of servo values, need "+getNumServos());
checkServoCommandThread();
ServoCommand cmd=new ServoCommand();
cmd.bytes=new by... | [
"public void initServos() throws InterruptedException{\r\n servoKickstandRight.setPosition(posKickstandRight);\r\n servoKickstandLeft.setPosition(posKickstandLeft);\r\n servoBucket.setPosition(posBucket);\r\n }",
"void resetValves() throws DeviceException;",
"private void setAll(CommandS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for checking if any user is logged to the application. | public boolean checkIfLoggedIn()
{
if(this.getLoggedUser() != null)
{
return true;
}
return false;
} | [
"public static boolean isLoggedIn()\r\n\t{\r\n\t\treturn user != null;\r\n\t}",
"@Override\n\tpublic boolean isUserLoggedIn() {\n\t\treturn sessionService.getCurrentUserId() != null;\n\t}",
"public static boolean userIsLoggedIn() {\n return idOfLoggedInUser != -1;\n }",
"private void checkUserLogged... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the dataset name (human readable) | public String getDatasetName() {
return datasetName;
} | [
"public String getDatasetName(){\n return this.dataset.getName();\n }",
"@Override\n public String getName() {\n return datasetName;\n }",
"public String getDataSetName();",
"public static String generateDatasetName() {\n return DATASET_NAME_PREFIX + UUID.randomUUID().toString().repl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds resource to specified melete module or uploads collection. For sferyx, refreshes the editor contents by reading from sectionxxx.html file. | public Boolean editMeleteCollectionResource(String resourceId) throws MeleteException
{
// if (logger.isDebugEnabled()) logger.debug("edit resource function");
Boolean modify = null;
try
{
// if (logger.isDebugEnabled()) logger.debug("editing properties for " + resourceId);
FacesContext context = FacesC... | [
"org.biocatalogue.x2009.xml.rest.ResourceLink addNewWithAllSections();",
"public void addResource(Resource resource);",
"void loadForEdit(SectionInfo info, Attachment attachment);",
"@FXML\r\n private void addPartAction() throws IOException {\r\n \r\n generateScreen(\"AddModifyPartScreen.fxml... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An instance of this class provides access to all the operations defined in ListManagementTerms. | public interface ListManagementTerms {
/**
* Add a term to the term list with list Id equal to list Id passed.
*
* @param listId List Id of the image list.
* @param term Term to be deleted.
* @param language Language of the terms.
* @throws IllegalArgumentException thrown if parameter... | [
"public TermsList getTermsList() {\n\t\treturn termsList;\n\t}",
"ListManagementTermsGetAllTermsDefinitionStages.WithListId getAllTerms();",
"public List<Term> getTerms() {\r\n\t\treturn dbManager.getAllTerms();\r\n\t}",
"public List<String> getTerms() {\r\n return Collections.unmodifiableList(terms);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests if multiple sets have common values, i.e. their intersection is not empty. | @SafeVarargs
public static <T> boolean intersects(Set<T>... sets) {
return !intersection(sets).isEmpty();
} | [
"@Test\n public void test_containsOccurrences_containsAll() throws Exception {\n Multiset<String> set1 = HashMultiset.create(ImmutableList.of(STR_0, STR_1, STR_2, STR_0, STR_2, STR_0));\n Multiset<String> set2 = HashMultiset.create(ImmutableList.of(STR_0, STR_1));\n Multiset<String> set3 = H... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new sorted array and a new inverted array | private void initArrays(){
sortedArray = new int[50];
for(int i=0; i<sortedArray.length;i++){
sortedArray[i] = i+1;
}
invertedArray = new int[50];
for(int i=0; i<invertedArray.length;i++){
invertedArray[i] = invertedArray.length-i;
}
} | [
"public int[] oldSorted()\n\t{\n\t\tint[] newArray = array.clone();\n\t\tfor (int index = 0; index < arraySize; index++) \n\t\t{\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) \n\t\t\t{\n\t\t\t\tif (newArray[index] > newArray[secondIndex]) \n\t\t\t\t{\n\t\t\t\t\tint temp = newArray... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets whether this garden apartment has a separate entrance | public void setSeparateEntrance(boolean separateEntrance) {
this.separateEntrance = separateEntrance;
} | [
"public void setEntrance(Location entrance) {\n\t\tthis.entrance = entrance;\n\t}",
"public boolean isSeparateEntrance() {\n\t\treturn separateEntrance;\n\t}",
"public void enteringHome(){\n inHouse=true;\n }",
"public void setEntrance(String entrance) {\n\t\tthis.entrance = entrance == null ? null ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new ImpElement list | public IList<ImpElement> makeImpElementList() {
// Returns new generic list with type parameter ImpElement
return new GenericList<>();
} | [
"public ISet<ImpElement> makeImpElementSet() {\n // Returns new generic set with type parameter ImpElement\n return new GenericSet<>();\n }",
"public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }",
"java.util.List<com.madhouse.media.momo.MomoExchange... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column PDSCI.EDC_VISIT_DATA_EVENT.EVENT_USER_FLOW | public String getEventUserFlow() {
return eventUserFlow;
} | [
"public String Get_event_value() \n {\n\n return event_value;\n }",
"cn.infinivision.dataforce.busybee.pb.meta.UserEvent getEvent();",
"public AptEventField getEventField() { return _eventField; }",
"String getEventFieldValue();",
"java.lang.String getEventId();",
"public void setEventUserFlow(St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .GservicesSetting setting = 5; | java.util.List<Googleplay.GservicesSetting>
getSettingList(); | [
"private GservicesSetting(Builder builder) {\n super(builder);\n }",
"void setGcount(int val) {\n try {\n\t addIntValue(\"GCOUNT\", val, \"Number of Groups\");\n\t} catch (HeaderCardException e) {\n\t throw new RuntimeException(\"Impossible error: \" + e.getMessage());\n\t}\n }",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Negative test case for deleteCampaign method. | @Test(groups = { "wso2.esb" }, description = "mailchimp {deleteCampaign} integration test negative case.")
public void testDeleteCampaignWithNegativeCase() throws IOException, JSONException {
esbRequestHeadersMap.put("Action", "urn:deleteCampaign");
RestResponse<JSONObject> esbRestResponse =
sendJsonRestReques... | [
"public String deleteCampaign(Integer siteId, Integer customerID);",
"@Test(groups = { \"wso2.esb\" }, priority = 4, description = \"mailchimp {deleteCampaign} integration test with \" +\n\t \"mandatory parameters.\")\n\tpublic void testDeleteCampaignWithM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
//GENEND:|48getter|2| //GENBEGIN:|50getter|0|50preInit Returns an initiliazed instance of cmdFormProximo component. | public Command getCmdFormProximo() {
if (cmdFormProximo == null) {//GEN-END:|50-getter|0|50-preInit
// write pre-init user code here
cmdFormProximo = new Command("Pr\u00F3ximo", Command.OK, 0);//GEN-LINE:|50-getter|1|50-postInit
// write post-init user code here
}//GE... | [
"public Command getCmdFormAnterior() {\n if (cmdFormAnterior == null) {//GEN-END:|52-getter|0|52-preInit\n // write pre-init user code here\n cmdFormAnterior = new Command(\"Anterior\", Command.OK, 0);//GEN-LINE:|52-getter|1|52-postInit\n // write post-init user code here\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'secuPwdFlag' field. | public String getSecuPwdFlag() {
return secuPwdFlag;
} | [
"public String getSecuPwdFlag() {\n return secuPwdFlag;\n }",
"public void setSecuPwdFlag(String value) {\n this.secuPwdFlag = value;\n }",
"public boolean hasSecuPwdFlag() {\n return fieldSetFlags()[11];\n }",
"public Builder setSecuPwdFlag(String value) {\n validate(fields()[11], va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "T__33" $ANTLR start "T__34" | public final void mT__34() throws RecognitionException {
try {
int _type = T__34;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.occiware.clouddesigner.occi.xtext.ui/src-gen/org/occiware/clouddesigner/occi/xtext/ui/contentassist/antlr/internal/InternalOCCI.g:34:7: ( 'enum' )... | [
"public final void mT__34() throws RecognitionException {\n try {\n int _type = T__34;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Users\\\\Wouter Kwakernaak\\\\sea-of-ql\\\\Waldo9\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:29:7: ( '}' )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When a user leaves a voice channel, the bot will send a message to the voice of that server, saying what channel they left. | @EventSubscriber
public void onVoiceLeaveEvent(UserVoiceChannelLeaveEvent event) throws Exception
{
if(event.getUser().getName().equals("Botkatchi"))
return;
try
{
BotUtils.sendMessage(event.getGuild().getChannelsByName("voice").get(0), event.getUser().getDisplayName(event.getGu... | [
"@Override\n public void onGuildVoiceLeave(GuildVoiceLeaveEvent ev) {\n respondToLeave(ev.getChannelLeft(), ev.getMember());\n\n informUserAbout(EventType.LEAVE, ev.getMember(), ev.getChannelLeft());\n }",
"public void leftChannel(ClientChannel channel)\n{\n logger.log(Level.INFO, \"Instruc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the deault value for the parameter. | public String getDeaultValue()
{
return deaultValue;
} | [
"public Value getValue()\r\n\t{\r\n\t\treturn paramValue;\r\n\t}",
"String getValParam();",
"public Object getParamValue()\r\n\t{\r\n\t\treturn debuggerEvent.getParamValue();\r\n\t}",
"Parameter getParameter();",
"public Object getParameter() {\n return getFromContainer(parameter);\n }",
"java.l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bidirectional manytoone association to Category | @ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="category_id")
public Category getCategory() {
return this.category;
} | [
"@JoinColumn(name = \"id_category\", referencedColumnName = \"id_category\", nullable = false)\n @ManyToOne(optional = false)\n public Category getCategory() {\n return this.category;\n }",
"Category findCategoryById(Integer id);",
"Category find(int categoryId);",
"Category getCategoryById(in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validates that the ByteBuffer instance is valid (aka not closed). If it is closed, then we raise a ClosedException This doesn't really need to be synchronized, but lint won't shut up otherwise | synchronized void ensureValid() {
if (isClosed()) {
throw new ClosedException();
}
} | [
"private void ensureValid() {\n if (!CloseableReference.isValid(mBufRef)) {\n throw new InvalidStreamException();\n }\n }",
"public void verifyReadable() {\r\n if (!data.readable()) {\r\n throw new InvalidDataException(\"BosonReader tried to read additional data from an unreadable ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks that there's DISCOVERY_NODE_JOIN_REQUEST on coordinator with corresponding 'event.node.id' that matches started client node. | @Test
public void testClientNodeStartTracing() throws Exception {
performClientBasedOperation(
null,
() -> {
try {
startClientGrid(GRID_CNT);
}
catch (Exception e) {
fail("Unable to start client g... | [
"private boolean initiateJoin() {\n String initiateRequest = String.valueOf(System.currentTimeMillis());\n InetAddress address = null;\n try {\n address = InetAddress.getByName(App.GATEWAYNODE_IP);\n App.LOGGER.info(\"GroupMemberGateway receiving Join request\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets new estimates for the variables in the jacobian, forcing it to recalculate all its derivatives. REMEMBER: This method must be run at least once prior to use! | void setNewEstimates(double[] estimates); | [
"void train(double[] jacobian);",
"public void computeJacobianMatrix() {\r\n\t\t//多线程需要枷锁\r\n\t\tif(this.JacobianMatrix == null) {\r\n\t\t\tif(transFuns == null)\r\n\t\t\t\tthrow new FutureyeException(\"Call setTransformFunction() first!\");\r\n\t\t\tFunction[] funs = new Function[transFuns.size()*toVarNames.size... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves content of the screen into the backup texture. | public void backupScreen() {
if (pixelBuffer == null) createPixelBuffer();
pixelBuffer.rewind();
getGl().glReadPixels(0, 0, width, height, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, pixelBuffer);
copyToTexture(pixelBuffer, backupTexture.glID, backupTexture.glTarget);
} | [
"public void restoreBackup() {\n ogl.drawTexture(backupTexture, 0, 0, width, height, 0, 0, width, height);\n }",
"public void snapshot() \n {\n System.out.println(\"Taking a snapshot ... snapshot.png\");\n\n glReadBuffer(GL_FRONT);\n\n int width = Display.getDisplayMode().getWidth();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first element in this set. | public final Object firstElement ()
{
int i = firstIndex();
return (i<0) ? null : base.get(i);
} | [
"@Override\n @NotNull\n public E first() {\n return treeSet.first();\n }",
"default T first() {\n\t\tif (isEmpty())\n\t\t\tthrow new NoSuchElementException();\n\t\treturn iterator().next();\n\t}",
"public Unit first()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn itera... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the resultDoctorLisId property. | public void setResultDoctorLisId(int value) {
this.resultDoctorLisId = value;
} | [
"public int getResultDoctorLisId() {\n return resultDoctorLisId;\n }",
"public void setResultid(Long resultid) {\n this.resultid = resultid;\n }",
"public void setResultId(long resultId) {\n this.resultId = resultId;\n }",
"public void setDoctorId(Integer doctorId) {\n thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructeur. Cree une instance de l'etat PartieEnCours | public PartieEnCours(ControleurPartie controleurPartie) {
this.controleurPartie = controleurPartie;
} | [
"public Partage() {\n }",
"public CarteCaisseCommunaute() {\n super();\n }",
"Vaisseau_estOrdonneeCouverte createVaisseau_estOrdonneeCouverte();",
"public Musico(Partitura partitura){\n\t\tthis.partitura = partitura;\n\t\t\n\t}",
"public Etudiant(){ \n \n sup... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns notificationID. NotificationID value is given automatically in the database. | public int getNotificationID() {
return notificationID;
} | [
"public int getNotificationId() {\n int id = NOTIFICATION_ID_COUNTER;\n NOTIFICATION_IDS.add(id);\n NOTIFICATION_ID_COUNTER = NOTIFICATION_ID_COUNTER + 1;\n\n return id;\n }",
"public int getIdNotification( )\r\n {\r\n return _nIdNotification;\r\n }",
"private static... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the session is expired. | public final boolean isSessionExpired() {
if (this.isExpired) return true;
if (this.expireTime == 0) return false;
if (this.lastAccessTime == -1) return false; // Forcefully allow the access time to exist
boolean expired = System.currentTimeMillis() - this.lastAccessTime > this.expireTim... | [
"public boolean isSessionExpired() {\n Date now = new Date();\n Date expiration = credentialsProvider.getSessionCredentitalsExpiration();\n\n // the below is just log\n if (expiration != null && expiration.before(now)) {\n Log.w(TAG, String.format(\"Session expired at %s\",\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The stage of the Cluster update allowing to specify clientCertificateCommonNames. | interface WithClientCertificateCommonNames {
/**
* Specifies the clientCertificateCommonNames property: The list of client certificates referenced by common
* name that are allowed to manage the cluster. This will overwrite the existing list..
*
* @param c... | [
"interface WithCertificateCommonNames {\n /**\n * Specifies the certificateCommonNames property: Describes a list of server certificates referenced by\n * common name that are used to secure the cluster..\n *\n * @param certificateCommonNames Describes a li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test if toString is returning the correct string based on construction of the shop instance | @Test
public void testToString() {
assertEquals("Apple is a company that sells electronic hardware, software, and online services with a price of $$$$", newShop.toString());
} | [
"@Test \n public void testToString() {\n System.out.println(\"toString\");\n ShoppingCart instance = new ShoppingCart(11, 50.5);\n String expResult = \"Numbers of Items 0 Subtotal 0.0\";\n String result = instance.toString();\n assertEquals(expResult, result);\n }",
"@T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of CPanelMain | public CPanelMain() {
} | [
"protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}",
"final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the processSteps value for this Zuora_Customer_HPM_Setting__c. | public com.sforce.soap.enterprise.QueryResult getProcessSteps() {
return processSteps;
} | [
"public com.sforce.soap.enterprise.QueryResult getProcessSteps() {\n return processSteps;\n }",
"public List<BatchProcessOverview> getSteps() {\n\t\treturn steps;\n\t}",
"public List<NewTaskStepValues> getStepsValues() {\n return stepsValues;\n }",
"public String[] getSteps() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allocate a new priority thread queue. | public ThreadQueue newThreadQueue(boolean transferPriority) {
return new PriorityQueue(transferPriority);
} | [
"public ThreadQueue newThreadQueue(boolean transferPriority) {\n\treturn new PriorityQueue(transferPriority);\n }",
"public ThreadQueue newThreadQueue(boolean transferPriority) {\r\n\treturn new PriorityQueue(transferPriority);\r\n }",
"public ThreadQueue newThreadQueue(boolean transferPriority) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'EByte Array' attribute. If the meaning of the 'EByte Array' attribute isn't clear, there really should be more of a description here... | byte[] getEByteArray(); | [
"EDataType getEByteArray();",
"byte[] getByteArrayField();",
"public ArrayGetByte()\n {\n super(\"ArrayGetByte\");\n }",
"public ByteArrayAttribute getValue() {\n return value;\n }",
"EDataType getEByte();",
"public Byte getByteAttribute();",
"public final byte[] getByteArray() { retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the relatedness between wikipedia article and label | public double getEntityPhraseRelatednessLucene(int PageID1, String label) throws IOException, InterruptedException {
double[] vector1 = getRowFromA_e(articleMap.get(PageID1));
double[] vector2 = getRowFromA_p(phraseMap.get(label));
double sum = 0;
for (int i = 0; i < vector1.length; i++) {
sum += vec... | [
"public double getEntityPhraseRelatedness(int PageID1, String label) throws IOException, InterruptedException {\n\t\tdouble[] vector1 = A_e[articleMap.get(PageID1) - 1];\n\t\tdouble[] vector2 = A_p[phraseMap.get(label) - 1];\n\t\t\t\t\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < vector1.length; i++) {\n\t\t\tsum +... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return all the shopping cart that has been validated | public List<ShoppingCart> getValidatedShoppingCarts() {
Query query = entityManager.createQuery("SELECT c FROM ShoppingCart as c WHERE c.validated is true");
return query.getResultList();
} | [
"public List<Cart> retrieveAllCarts() throws UserApplicationException;",
"List<CartData> getSavedCartsForCurrentUser();",
"public Vector<CartItem> getAllItem(){\n\t\treturn listCart;\n\t}",
"@GetMapping(path = \"/shoppingcarts\")\n @ResponseStatus(HttpStatus.OK)\n public @ResponseBody\n Iterable<Shop... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
reported firmware vendor keys (their hash) optional bytes fw_vendor_keys = 26; | com.google.protobuf.ByteString getFwVendorKeys(); | [
"public com.google.protobuf.ByteString getFwVendorKeys() {\n\t\t\treturn fwVendorKeys_;\n\t\t}",
"public com.google.protobuf.ByteString getFwVendorKeys() {\n\t\t\t\treturn fwVendorKeys_;\n\t\t\t}",
"boolean hasFwVendorKeys();",
"public boolean hasFwVendorKeys() {\n\t\t\treturn ((bitField0_ & 0x01000000) == 0x... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove cookies and close the browser after every test | @After
public void cleanUp(){
driver.manage().deleteAllCookies();
driver.close();
} | [
"public Action DeleteAllCookies()\n{\n try\n { \n driver.manage().deleteAllCookies();\n //if (driver instanceof InternetExplorerDriver)\n // {\n // DeleteIECookies();\n // }\n \n }\n catch (Exception ex)\n {\n A... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return a Video object which can be used to access the device's video | public ABLVideo Video() {
return new ABLVideo(BrickFinder.getDefault().getVideo());
} | [
"public String getVideoDevice();",
"Video createVideo();",
"com.google.ads.googleads.v1.resources.Video getVideo();",
"com.google.ads.googleads.v6.resources.Video getVideo();",
"Video getVideo(int id);",
"Video getVideo(int videoId);",
"public VideoPlayer()\n {\n final CaptureSystemFactory fac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "SigningTime" element | public org.apache.xmlbeans.XmlDateTime xgetSigningTime()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDateTime target = null;
target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(SIGNINGTIME$0, 0);
ret... | [
"public java.util.Calendar getSigningTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SIGNINGTIME$0, 0);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the maximum number of rounds before runaway reaction is detected. | @Nonnegative
int getMaxReactionRounds()
{
return _maxReactionRounds;
} | [
"public int getMaxRoundsPerBattle() {\n return maxRoundsPerBattle;\n }",
"public int getMaxRounds() {\n\t\treturn maxRounds;\n\t}",
"public int getMaxRounds() {\n Statement stmt;\n String query = \"select max(rounds) as max_rounds from toptrumps.game \";\n\n int maxRounds = 0;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "CMP" $ANTLR start "JMP" | public final void mJMP() throws RecognitionException
{
try
{
final int _type = AshvmLexer.JMP;
final int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
// D:\\Programmieren\\projects\\ashvm\\Ashvm.g:720:5: ( 'jmp' )
// D:\\Programmieren\\projects\\ashvm\\Ashvm.g:720:7: 'jmp'
{
this.match("jmp"... | [
"private void parseJumpt() throws SyntaxException {\n System.err.println(\"Jumpt\");\n // if(boolean-condition)\n // PC = destination\n\n // first parseExpr() is destination\n int destination = 0;\n destination = parseExpr();\n expect(',');\n // second par... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Main action, returns the content tree | public String doExecute() throws Exception
{
if (useTemplate) return "success";
Document doc = DocumentHelper.createDocument();
Element root = doc.addElement("tree");
INodeSupplier sup;
if(repositoryId == null)
{
List repositories = Repos... | [
"public Node getContentTree(){\n\t\tContentTree(template_nodes, tree1);\n\t\t\n\t\treturn tree1;\n\t}",
"public String generateContentTree() {\n if (randomSeed != 0) {\n randomIn = new RandomInputStream(randomSeed);\n }\n\n // make an appropriate file tree\n File treeRoot = new File(contentRoot);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns a list with a discussion page's forum replies in String | private static ArrayList<String> getAllForumPostsReplies(URL url) {
ArrayList<String> replies = new ArrayList<String>();
String replyHTMLElement = ScrappingHandler.getForum(url).getReply_element();
String replyQuoteHTMLElement = ScrappingHandler.getForum(url).getQuote_element();
if (replyHTMLElement != null ... | [
"public String listByForum() {\n if (page < 1) {\n page = 1;\n }\n forum = forumRemote.get(forum.getId());\n //List<Topic> topicList = topicRemote.getByForum(forum.getId());\n if (topicTitle == null) {\n topicTitle = \"\";\n }\n topicList = topi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Get string from Html String | public String getStringFromHTMLString(String html) {
return Html.fromHtml(html).toString();
} | [
"String getHtml();",
"private static String HtmlToText(final String s) {\n final HTMLEditorKit kit = new HTMLEditorKit();\n final Document doc = kit.createDefaultDocument();\n try {\n kit.read(new StringReader(s), doc, 0);\n return doc.getText(0, doc.getLength()).trim();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return format of the page | public PageFormat getFormat(); | [
"String documentFormat();",
"Format getFormat();",
"public Object getFormat();",
"public PageFormat getPageFormat(int index) {\n\t\treturn (PageFormat) pageFormat;\n\t}",
"public Format getFormat();",
"public void setFormat(PageFormat f);",
"public PageFormat getPageFormat(int pagenum) {\n\t// On the la... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Publish the message to specific topic. Note that the Completable complete means publishing success at least once(qos1). | Completable pub(Topic topic, UserMessage userMessage); | [
"public void publish(){\n\t\t\t\n\t\t\ttry {\t\n\t\t\t\t\n\t MqttClient sampleClient = new MqttClient(broker, clientId, persistence);\n\t MqttConnectOptions connOpts = new MqttConnectOptions();\n\t connOpts.setCleanSession(true);\n\t connOpts.setKeepAliveInterval(30);\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Trying to add a null value to the history. | @Test(expected = NullPointerException.class)
public void testHistoryNullValue(){
Double temp = null;
double result = hist.add(temp);
fail();
} | [
"@Test(expected = NullPointerException.class)\n\tpublic void testRemoveNull(){\n\t\tInteger index = null;\n\t\thist.add(20);//first\n\t\thist.add(-70);\n\t\thist.remove(index);\n\t\t\n\t}",
"public void setHistoryIdNull(boolean historyIdNull)\r\n\t{\r\n\t\tthis.historyIdNull = historyIdNull;\r\n\t}",
"public bo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "block" /Users/eli/dev/SneakersJava/Sneakers.g:53:1: block : ( stat ';' )+ > ^( BLOCK ( stat )+ ) ; | public final SneakersParser.block_return block() throws RecognitionException {
SneakersParser.block_return retval = new SneakersParser.block_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
Token char_literal3=null;
ParserRuleReturnScope stat2 =null;
CommonTree char_literal3_tree=null;
R... | [
"public final GremlinEvaluator.block_return block() throws RecognitionException {\n GremlinEvaluator.block_return retval = new GremlinEvaluator.block_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ 3. Ask user to enter two words. Then add them together and print. But if the last letter if the first word and the first letter of the last letter is the same, print that character once. Input: one eight Output: oneight | public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter your first word: ");
String word1 = scan.next();
System.out.println("Enter your second word: ");
String word2 = scan.next();
char lastLetter = word1.charAt(word1.le... | [
"public static void main(String[] args) {\n\t\t\n\t\t Scanner scan = new Scanner(System.in);\n\t\t System.out.println(\"Type a word:\");\n\t\t String word = scan.next();\n\t\t \n\t\t \n\t\t int halfOfWord = word.length()/2;\n\t\t \n\t\t String twiceword = \"\";\n\t\t \n\t\t for (int i = 0; i <... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
InModesKeywords: 'in' 'modes' ; | protected String getInModesKeywordsToken(EObject semanticObject, RuleCall ruleCall, INode node) {
if (node != null)
return getTokenText(node);
return "inmodes";
} | [
"public final AntlrDatatypeRuleToken ruleInModesKeywords() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n\n \tenterRule();\n\n try {\n // InternalJsonParser.g:2333:2: ( (kw= In kw= Modes ) )\n //... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
assert resource access policies are enforced during builder static initialization | @Test(expected = SecurityException.class)
public void testBuilderStaticInitializationEnforcement() throws Exception {
File tempdir = temp.newFolder();
System.setProperty(StaticInitializationBuilder.class.getName(), tempdir.getCanonicalPath());
BuilderExecution.builderExecution(tempdir, StaticInitializat... | [
"ResourceVerification createResourceVerification();",
"public DistributionPolicyInternal() {}",
"public void test_canWriteNoAcp() {\r\n\t\tResource resource;\r\n\t\tGrantee id;\r\n\r\n\t\tresource = new MyResource();\r\n\r\n\t\tid = new CanonicalUser(\"id\");\r\n\r\n\t\ttry {\r\n\t\t\tresource.canWrite(id);\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor if the node contains an operand | public TreeNode(TreeNode left, TreeNode right, char operand){
this.left = left;
this.right = right;
this.operand = operand;
this.type = "op";
} | [
"public OperatorNode(String operator)\r\n {\r\n this.data = operator;\r\n this.left = null;\r\n this.right = null;\r\n }",
"Operand createOperand();",
"public OpTree(String theOp)\n\t{\n\t\tme = ++total;\n\t\tif (DEBUG) System.out.println(\"Terminal Op \" + me);\n\t\top = theOp;\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints out alias pairs in IoRoot.printOut object in somewhat more detailed format than in printAliasPairs. | public void printAliasPairsDetail(SubpDefinition pSubpDef)
{
HIR lHIR;
List lHIRList = new ArrayList();
HIR lHIRs[];
for (HirIterator lIt = hirRoot.hir.hirIterator(pSubpDef.getHirBody());
lIt.hasNext(); ) {
lHIR = lIt.next();
lHIRList.add(lHIR);
}
lHIRs = (HIR[])lHIRList.... | [
"public void displayRelation() {\n System.out.print(this.name + \"(\");\n for (int i = 0; i < attributes.size(); i++) {\n System.out.print(attributes.get(i) + \":\" + domains.get(i));\n // Don't add a comma on the last key, value pair\n if (i < attributes.size() - ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check that rules that involve a cartesian product are correctly evaluated. | public void testCartesianProduct() throws Exception {
String program = "s(1)." + "s(2)." +
"p(3)." + "p(4)." +
"w(?X,?Y) :- s(?X), p(?Y)." + "?- w(?Y,?X).";
String expectedResults = "w(1, 3)." + "w(1, 4)." + "w(2, 3)."
+ "w(2, 4).";
Helper.evaluateWithAllStrategies(program, expectedResults);
} | [
"private void checkIfHasNextCartesianProduct() {\n nextIndex = vectorSize - 1;\n while (nextIndex >= 0 &&\n indices[nextIndex] + 1 >= vector.get(nextIndex).size()) {\n nextIndex--;\n }\n }",
"protected <T> List<List<T>> cartesianProduct(List<List<T>> lists) {\n\t List<List<T>> resultLists... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'field470' field | public java.lang.CharSequence getField470() {
return field470;
} | [
"public java.lang.CharSequence getField470() {\n return field470;\n }",
"java.lang.String getField1571();",
"public java.lang.CharSequence getField463() {\n return field463;\n }",
"public java.lang.CharSequence getField461() {\n return field461;\n }",
"public java.lang.CharSequence getField472()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: com.tencent.mm.plugin.webview.ui.tools.bag.g | public interface C43945g {
/* renamed from: com.tencent.mm.plugin.webview.ui.tools.bag.g$b */
public interface C43944b {
/* renamed from: iH */
void mo56357iH(boolean z);
}
/* renamed from: com.tencent.mm.plugin.webview.ui.tools.bag.g$a */
public interface C43946a {
/* rena... | [
"private void bm25() {\n \t\t\n \t}",
"public static String _btnbooked_click() throws Exception{\nanywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(mostCurrent._booking.getObject()));\n //BA.debugLineNum = 128;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"Bundle mo2319aU();",
"Gingerbread... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete middle node, assuming odd number of nodes, and you're only given reference to that node. | public void deleteMiddleNode (Node n) {
//If node is the only one in the list
if (n.next == null) {
this.head = null;
return;
}
while (n.next.next != null) {
n.data = n.next.data;
n = n.next;
}
n.data = n.next.data;
n.next = null;
} | [
"public void deleteMiddleNode() {\n\t\tMiddleOfLinkedListNode fast = head;\n\t\tMiddleOfLinkedListNode slow = head;\n\t\tMiddleOfLinkedListNode prev = null;\n\n\t\twhile (fast != null && fast.next != null) {\n\t\t\tfast = fast.next.next;\n\t\t\tprev = slow;\n\t\t\tslow = slow.next;\n\t\t}\n\t\tSystem.out.println(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XFeatureCall__Group_4_1_1_1__1" $ANTLR start "rule__XFeatureCall__Group_4_1_1_1__1__Impl" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24340:1: rule__XFeatureCall__Group_4_1_1_1__1__Impl : ( ( rule__XFeatureCall__FeatureCallArgumentsAssig... | public final void rule__XFeatureCall__Group_4_1_1_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24344:1: ( ( ( rule__XFeat... | [
"public final void rule__XFeatureCall__Group_4_1_1__0__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:24253:1: ( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
gets a list of first N cards in the requested zone. This function makes a List from Card[]. | public final List<Card> getCardsIn(final ZoneType zone, final int n) {
return Lists.newArrayList(Iterables.limit(this.getCardsIn(zone), n));
} | [
"public List<Card> showTopCards() {\r\n List<Card> topCards = new ArrayList<Card>();\r\n int size=cards.size();\r\n for (int i = 0; i < 5 && i < size; i++) {\r\n topCards.add(cards.remove(0));\r\n }\r\n \r\n return topCards;\r\n }",
"public List<Card> gener... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for Demon subclasses | public Demon(int hp, int str)
{
super(hp, str);
} | [
"public Demon()\n {\n super(\n Randomizer.nextInt(MAX_DEMON_HP-MIN_DEMON_HP)+MIN_DEMON_HP,\n Randomizer.nextInt(MAX_DEMON_STR-MIN_DEMON_STR)+MIN_DEMON_STR\n );\n }",
"public Demon()\n {\n super(\n Randomizer.nextInt(MAX_DEMON_HP - MIN_DEMON_HP) + MIN_DEMON_HP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'serverAuthorizationRequired' field has been set. | public boolean hasServerAuthorizationRequired() {
return fieldSetFlags()[9];
} | [
"public boolean getServerAuthorizationRequired() {\n return serverAuthorizationRequired;\n }",
"public boolean getServerAuthorizationRequired() {\n return serverAuthorizationRequired;\n }",
"public void setServerAuthorizationRequired(boolean value) {\n this.serverAuthorizationRequired = value;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Removes the objects/ actors in each room when changing levels | public void removeAll()
{
if (level ==2)
{
removeObjects(getObjects(Platforms.class));
removeObjects(getObjects(Ladder.class));
removeObjects(getObjects(SmallPlatform.class));
removeObjects(getObjects(Door.class));
removeObjects... | [
"public void deletePowerupsByLife() {\n\t\tArray<Actor> actorList = this.stage.getActors();\n\t\t// Checking all actors (no unfinished movement)\n\n\t\tArray<Actor> newActorList = new Array<Actor>();\n\n\t\t// Delete actors\n\t\tfor (Actor actor : actorList) {\n\t\t\tif (actor instanceof Actor_Powerup) {\n\t\t\t\tA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |