returns a help message for a give magic key
433184
def magic_help(keyhelp):
    
    helpme = {}
    helpme["er_location_name"] = "Name for location or drill site"
    helpme["er_location_alternatives"] = "Colon-delimited list of alternative names and abbreviations"
    helpme["location_type"] = "Location type"
    helpme["location_begin_lat"] = "Begin of section or core or outcrop -- latitude"
    helpme["location_begin_lon"] = "Begin of section or core or outcrop -- longitude"
    helpme["location_begin_elevation"] = "Begin of section or core or outcrop -- elevation relative to sealevel"
    helpme["location_end_lat"] = "Ending of section or core -- latitude "
    helpme["location_end_lon"] = "Ending of section or core -- longitude "
    helpme["location_end_elevation"] = "Ending of section or core -- elevation relative to sealevel"
    helpme["location_geoid"] = "Geoid used in determination of latitude and longitude:  WGS84, GEOID03, USGG2003, GEOID99, G99SSS , G99BM, DEFLEC99 "
    helpme["continent_ocean"] = "Name for continent or ocean island region"
    helpme["ocean_sea"] = "Name for location in an ocean or sea"
    helpme["country"] = "Country name"
    helpme["region"] = "Region name"
    helpme["plate_block"] = "Plate or tectonic block name"
    helpme["terrane"] = "Terrane name"
    helpme["tectonic_setting"] = "Tectonic setting"
    helpme["location_description"] = "Detailed description"
    helpme["location_url"] = "Website URL for the location explicitly"
    helpme["er_scientist_mail_names"] = "Colon-delimited list of names for scientists who described location"
    helpme["er_citation_names"] = "Colon-delimited list of citations"
    helpme["er_formation_name"] = "Name for formation"
    helpme["er_formation_alternatives"] = "Colon-delimited list of alternative names and abbreviations"
    helpme["formation_class"] = "General lithology class: igneous, metamorphic or sedimentary"
    helpme["formation_lithology"] = "Lithology: e.g., basalt, sandstone, etc."
    helpme["formation_paleo_enviroment"] = "Depositional environment"
    helpme["formation_thickness"] = "Formation thickness"
    helpme["er_member_name"] = "Name for member"
    helpme["er_member_alternatives"] = "Colon-delimited list of alternative names and abbreviations"
    helpme["er_formation_name"] = "Name for formation"
    helpme["member_class"] = "General lithology type"
    helpme["member_lithology"] = "Lithology"
    helpme["member_paleo_environment"] = "Depositional environment"
    helpme["member_thickness"] = "Member thickness"
    helpme["member_description"] = "Detailed description"
    helpme["er_section_name"] = "Name for section or core"
    helpme["er_section_alternatives"] = "Colon-delimited list of alternative names and abbreviations"
    helpme["er_expedition_name"] = "Name for seagoing or land expedition"
    helpme["er_location_name"] = "Name for location or drill site"
    helpme["er_formation_name"] = "Name for formation"
    helpme["er_member_name"] = "Name for member"
    helpme["section_definition"] = "General definition of section"
    helpme["section_class"] = "General lithology type"
    helpme["section_lithology"] = "Section lithology or archeological classification"
    helpme["section_type"] = "Section type"
    helpme["section_n"] = "Number of subsections included composite (stacked) section"
    helpme["section_begin_lat"] = "Begin of section or core -- latitude"
    helpme["section_begin_lon"] = "Begin of section or core -- longitude"
    helpme["section_begin_elevation"] = "Begin of section or core -- elevation relative to sealevel"
    helpme["section_begin_height"] = "Begin of section or core -- stratigraphic height"
    helpme["section_begin_drill_depth"] = "Begin of section or core -- depth in MBSF as used by ODP"
    helpme["section_begin_composite_depth"] = "Begin of section or core -- composite depth in MBSF as used by ODP"
    helpme["section_end_lat"] = "End of section or core -- latitude "
    helpme["section_end_lon"] = "End of section or core -- longitude "
    helpme["section_end_elevation"] = "End of section or core -- elevation relative to sealevel"
    helpme["section_end_height"] = "End of section or core -- stratigraphic height"
    helpme["section_end_drill_depth"] = "End of section or core -- depth in MBSF as used by ODP"
    helpme["section_end_composite_depth"] = "End of section or core -- composite depth in MBSF as used by ODP"
    helpme["section_azimuth"] = "Section azimuth as measured clockwise from the north"
    helpme["section_dip"] = "Section dip as measured into the outcrop"
    helpme["section_description"] = "Detailed description"
    helpme["er_site_name"] = "Name for site"
    helpme["er_site_alternatives"] = "Colon-delimited list of alternative names and abbreviations"
    helpme["er_expedition_name"] = "Name for seagoing or land expedition"
    helpme["er_location_name"] = "Name for location or drill site"
    helpme["er_section_name"] = "Name for section or core"
    helpme["er_formation_name"] = "Name for formation"
    helpme["er_member_name"] = "Name for member"
    helpme["site_definition"] = "General definition of site"
    helpme["site_class"] = "[A]rchaeologic,[E]xtrusive,[I]ntrusive,[M]etamorphic,[S]edimentary"
    helpme["site_lithology"] = "Site lithology or archeological classification"
    helpme["site_type"] = "Site type: slag, lava flow, sediment layer, etc."
    helpme["site_lat"] = "Site location -- latitude"
    helpme["site_lon"] = "Site location -- longitude"
    helpme["site_location_precision"] = "Site location -- precision in latitude and longitude"
    helpme["site_elevation"] = "Site location -- elevation relative to sealevel"
    helpme["site_height"] = "Site location -- stratigraphic height"
    helpme["site_drill_depth"] = "Site location -- depth in MBSF as used by ODP"
    helpme["site_composite_depth"] = "Site location -- composite depth in MBSF as used by ODP"
    helpme["site_description"] = "Detailed description"
    helpme["magic_method_codes"] = "Colon-delimited list of method codes"
    helpme["er_sample_name"] = "Name for sample"
    helpme["er_sample_alternatives"] = "Colon-delimited list of alternative names and abbreviations"
    helpme["er_expedition_name"] = "Name for seagoing or land expedition"
    helpme["er_location_name"] = "Name for location or drill site"
    helpme["er_section_name"] = "Name for section or core"
    helpme["er_formation_name"] = "Name for formation"
    helpme["er_member_name"] = "Name for member"
    helpme["er_site_name"] = "Name for site"
    helpme["sample_class"] = "General lithology type"
    helpme["sample_lithology"] = "Sample lithology or archeological classification"
    helpme["sample_type"] = "Sample type"
    helpme["sample_texture"] = "Sample texture"
    helpme["sample_alteration"] = "Sample alteration grade"
    helpme["sample_alteration_type"] = "Sample alteration type"
    helpme["sample_lat"] = "Sample location -- latitude"
    helpme["sample_lon"] = "Sample location -- longitude"
    helpme["sample_location_precision"] = "Sample location -- precision in latitude and longitude"
    helpme["sample_elevation"] = "Sample location -- elevation relative to sealevel"
    helpme["sample_height"] = "Sample location -- stratigraphic height"
    helpme["sample_drill_depth"] = "Sample location -- depth in MBSF as used by ODP"
    helpme["sample_composite_depth"] = "Sample location -- composite depth in MBSF as used by ODP"
    helpme["sample_date"] = "Sampling date"
    helpme["sample_time_zone"] = "Sampling time zone"
    helpme["sample_azimuth"] = "Sample azimuth as measured clockwise from the north"
    helpme["sample_dip"] = "Sample dip as measured into the outcrop"
    helpme["sample_bed_dip_direction"] = "Direction of the dip of a paleo-horizontal plane in the bedding"
    helpme["sample_bed_dip"] = "Dip of the bedding as measured to the right of strike direction"
    helpme["sample_cooling_rate"] = "Estimated ancient in-situ cooling rate per Ma"
    helpme["er_specimen_name"] = "Name for specimen"
    helpme["er_specimen_alternatives"] = "Colon-delimited list of alternative names and abbreviations"
    helpme["er_expedition_name"] = "Name for seagoing or land expedition"
    helpme["er_location_name"] = "Name for location or drill site"
    helpme["er_section_name"] = "Name for section or core"
    helpme["er_formation_name"] = "Name for formation"
    helpme["er_member_name"] = "Name for member"
    helpme["er_site_name"] = "Name for site"
    helpme["er_sample_name"] = "Name for sample"
    helpme["specimen_class"] = "General lithology type"
    helpme["specimen_lithology"] = "Specimen lithology or archeological classification"
    helpme["specimen_type"] = "Specimen type"
    helpme["specimen_texture"] = "Specimen texture"
    helpme["specimen_alteration"] = "Specimen alteration grade"
    helpme["specimen_alteration_type"] = "Specimen alteration type"
    helpme["specimen_elevation"] = "Specimen location -- elevation relative to sealevel"
    helpme["specimen_height"] = "Specimen location -- stratigraphic height"
    helpme["specimen_drill_depth"] = "Specimen location -- depth in MBSF as used by ODP"
    helpme["specimen_composite_depth"] = "Specimen location -- composite depth in MBSF as used by ODP"
    helpme["specimen_azimuth"] = "Specimen azimuth as measured clockwise from the north"
    helpme["specimen_dip"] = "Specimen dip as measured into the outcrop"
    helpme["specimen_volume"] = "Specimen volume"
    helpme["specimen_weight"] = "Specimen weight"
    helpme["specimen_density"] = "Specimen density"
    helpme["specimen_size"] = "Specimen grain size fraction"
    helpme["er_expedition_name"] = "Name for seagoing or land expedition"
    helpme["er_location_name"] = "Name for location or drill site"
    helpme["er_formation_name"] = "Name for formation"
    helpme["er_member_name"] = "Name for member"
    helpme["er_site_name"] = "Name for site"
    helpme["er_sample_name"] = "Name for sample"
    helpme["er_specimen_name"] = "Name for specimen"
    helpme["er_fossil_name"] = "Name for fossil"
    helpme["er_mineral_name"] = "Name for mineral"
    helpme["GM-ALPHA"] = "Age determination by using alpha counting"
    helpme["GM-ARAR"] = "40Ar/39Ar age determination"
    helpme["GM-ARAR-AP"] = "40Ar/39Ar age determination: Age plateau"
    helpme["GM-ARAR-II"] = "40Ar/39Ar age determination: Inverse isochron"
    helpme["GM-ARAR-NI"] = "40Ar/39Ar age determination: Normal isochron"
    helpme["GM-ARAR-TF"] = "40Ar/39Ar age determination: Total fusion or recombined age"
    helpme["GM-C14"] = "Radiocarbon age determination"
    helpme["GM-C14-AMS"] = "Radiocarbon age determination: AMS"
    helpme["GM-C14-BETA"] = "Radiocarbon age determination: Beta decay counting"
    helpme["GM-C14-CAL"] = "Radiocarbon age determination: Calibrated"
    helpme["GM-CC"] = "Correlation chronology"
    helpme["GM-CC-ARCH"] = "Correlation chronology: Archeology"
    helpme["GM-CC-ARM"] = "Correlation chronology: ARM"
    helpme["GM-CC-ASTRO"] = "Correlation chronology: Astronomical"
    helpme["GM-CC-CACO3"] = "Correlation chronology: Calcium carbonate"
    helpme["GM-CC-COLOR"] = "Correlation chronology: Color or reflectance"
    helpme["GM-CC-GRAPE"] = "Correlation chronology: Gamma Ray Polarimeter Experiment"
    helpme["GM-CC-IRM"] = "Correlation chronology: IRM"
    helpme["GM-CC-ISO"] = "Correlation chronology: Stable isotopes"
    helpme["GM-CC-REL"] = "Correlation chronology: Relative chronology other than stratigraphic successions"
    helpme["GM-CC-STRAT"] = "Correlation chronology: Stratigraphic succession"
    helpme["GM-CC-TECT"] = "Correlation chronology: Tectites and microtectites"
    helpme["GM-CC-TEPH"] = "Correlation chronology: Tephrochronology"
    helpme["GM-CC-X"] = "Correlation chronology: Susceptibility"
    helpme["GM-CHEM"] = "Chemical chronology"
    helpme["GM-CHEM-AAR"] = "Chemical chronology: Amino acid racemization"
    helpme["GM-CHEM-OH"] = "Chemical chronology: Obsidian hydration"
    helpme["GM-CHEM-SC"] = "Chemical chronology: Stoan coatings CaCO3"
    helpme["GM-CHEM-TH"] = "Chemical chronology: Tephra hydration"
    helpme["GM-COSMO"] = "Cosmogenic age determination"
    helpme["GM-COSMO-AL26"] = "Cosmogenic age determination: 26Al"
    helpme["GM-COSMO-AR39"] = "Cosmogenic age determination: 39Ar"
    helpme["GM-COSMO-BE10"] = "Cosmogenic age determination: 10Be"
    helpme["GM-COSMO-C14"] = "Cosmogenic age determination: 14C"
    helpme["GM-COSMO-CL36"] = "Cosmogenic age determination: 36Cl"
    helpme["GM-COSMO-HE3"] = "Cosmogenic age determination: 3He"
    helpme["GM-COSMO-KR81"] = "Cosmogenic age determination: 81Kr"
    helpme["GM-COSMO-NE21"] = "Cosmogenic age determination: 21Ne"
    helpme["GM-COSMO-NI59"] = "Cosmogenic age determination: 59Ni"
    helpme["GM-COSMO-SI32"] = "Cosmogenic age determination: 32Si"
    helpme["GM-DENDRO"] = "Dendrochronology"
    helpme["GM-ESR"] = "Electron Spin Resonance"
    helpme["GM-FOSSIL"] = "Age determined from fossil record"
    helpme["GM-FT"] = "Fission track age determination"
    helpme["GM-HIST"] = "Historically recorded geological event"
    helpme["GM-INT"] = "Age determination through interpolation between at least two geological units of known age"
    helpme["GM-INT-L"] = "Age determination through interpolation between at least two geological units of known age: Linear"
    helpme["GM-INT-S"] = "Age determination through interpolation between at least two geological units of known age: Cubic spline"
    helpme["GM-ISO"] = "Age determined by isotopic dating, but no further details available"
    helpme["GM-KAR"] = "40K-40Ar age determination"
    helpme["GM-KAR-I"] = "40K-40Ar age determination: Isochron"
    helpme["GM-KAR-MA"] = "40K-40Ar age determination: Model age"
    helpme["GM-KCA"] = "40K-40Ca age determination"
    helpme["GM-KCA-I"] = "40K-40Ca age determination: Isochron"
    helpme["GM-KCA-MA"] = "40K-40Ca age determination: Model age"
    helpme["GM-LABA"] = "138La-138Ba age determination"
    helpme["GM-LABA-I"] = "138La-138Ba age determination: Isochron"
    helpme["GM-LABA-MA"] = "138La-138Ba age determination: Model age"
    helpme["GM-LACE"] = "138La-138Ce age determination"
    helpme["GM-LACE-I"] = "138La-138Ce age determination: Isochron"
    helpme["GM-LACE-MA"] = "138La-138Ce age determination: Model age"
    helpme["GM-LICHE"] = "Lichenometry"
    helpme["GM-LUHF"] = "176Lu-176Hf age determination"
    helpme["GM-LUHF-I"] = "176Lu-176Hf age determination: Isochron"
    helpme["GM-LUHF-MA"] = "176Lu-176Hf age determination: Model age"
    helpme["GM-LUM"] = "Luminescence"
    helpme["GM-LUM-IRS"] = "Luminescence: Infrared stimulated luminescence"
    helpme["GM-LUM-OS"] = "Luminescence: Optically stimulated luminescence"
    helpme["GM-LUM-TH"] = "Luminescence: Thermoluminescence"
    helpme["GM-MOD"] = "Model curve fit to available age dates"
    helpme["GM-MOD-L"] = "Model curve fit to available age dates: Linear"
    helpme["GM-MOD-S"] = "Model curve fit to available age dates: Cubic spline"
    helpme["GM-MORPH"] = "Geomorphic chronology"
    helpme["GM-MORPH-DEF"] = "Geomorphic chronology: Rate of deformation"
    helpme["GM-MORPH-DEP"] = "Geomorphic chronology: Rate of deposition"
    helpme["GM-MORPH-POS"] = "Geomorphic chronology: Geomorphology position"
    helpme["GM-MORPH-WEATH"] = "Geomorphic chronology: Rock and mineral weathering"
    helpme["GM-NO"] = "Unknown geochronology method"
    helpme["GM-O18"] = "Oxygen isotope dating"
    helpme["GM-PBPB"] = "207Pb-206Pb age determination"
    helpme["GM-PBPB-C"] = "207Pb-206Pb age determination: Common Pb"
    helpme["GM-PBPB-I"] = "207Pb-206Pb age determination: Isochron"
    helpme["GM-PLEO"] = "Pleochroic haloes"
    helpme["GM-PMAG-ANOM"] = "Paleomagnetic age determination: Magnetic anomaly identification"
    helpme["GM-PMAG-APWP"] = "Paleomagnetic age determination: Comparing paleomagnetic data to APWP"
    helpme["GM-PMAG-ARCH"] = "Paleomagnetic age determination: Archeomagnetism"
    helpme["GM-PMAG-DIR"] = "Paleomagnetic age determination: Directions"
    helpme["GM-PMAG-POL"] = "Paleomagnetic age determination: Polarities"
    helpme["GM-PMAG-REGSV"] = "Paleomagnetic age determination: Correlation to a regional secular variation curve"
    helpme["GM-PMAG-RPI"] = "Paleomagnetic age determination: Relative paleointensity"
    helpme["GM-PMAG-VEC"] = "Paleomagnetic age determination: Full vector"
    helpme["GM-RATH"] = "226Ra-230Th age determination"
    helpme["GM-RBSR"] = "87Rb-87Sr age determination"
    helpme["GM-RBSR-I"] = "87Rb-87Sr age determination: Isochron"
    helpme["GM-RBSR-MA"] = "87Rb-87Sr age determination: Model age"
    helpme["GM-REOS"] = "187Re-187Os age determination"
    helpme["GM-REOS-I"] = "187Re-187Os age determination: Isochron"
    helpme["GM-REOS-MA"] = "187Re-187Os age determination: Model age"
    helpme["GM-REOS-PT"] = "187Re-187Os age determination: Pt normalization of 186Os"
    helpme["GM-SCLERO"] = "Screlochronology"
    helpme["GM-SHRIMP"] = "SHRIMP age dating"
    helpme["GM-SMND"] = "147Sm-143Nd age determination"
    helpme["GM-SMND-I"] = "147Sm-143Nd age determination: Isochron"
    helpme["GM-SMND-MA"] = "147Sm-143Nd age determination: Model age"
    helpme["GM-THPB"] = "232Th-208Pb age determination"
    helpme["GM-THPB-I"] = "232Th-208Pb age determination: Isochron"
    helpme["GM-THPB-MA"] = "232Th-208Pb age determination: Model age"
    helpme["GM-UPA"] = "235U-231Pa age determination"
    helpme["GM-UPB"] = "U-Pb age determination"
    helpme["GM-UPB-CC-T0"] = "U-Pb age determination: Concordia diagram age, upper intersection"
    helpme["GM-UPB-CC-T1"] = "U-Pb age determination: Concordia diagram age, lower intersection"
    helpme["GM-UPB-I-206"] = "U-Pb age determination: 238U-206Pb isochron"
    helpme["GM-UPB-I-207"] = "U-Pb age determination: 235U-207Pb isochron"
    helpme["GM-UPB-MA-206"] = "U-Pb age determination: 238U-206Pb model age"
    helpme["GM-UPB-MA-207"] = "U-Pb age determination: 235U-207Pb model age"
    helpme["GM-USD"] = "Uranium series disequilibrium age determination"
    helpme["GM-USD-PA231-TH230"] = "Uranium series disequilibrium age determination: 231Pa-230Th"
    helpme["GM-USD-PA231-U235"] = "Uranium series disequilibrium age determination: 231Pa-235U"
    helpme["GM-USD-PB210"] = "Uranium series disequilibrium age determination: 210Pb"
    helpme["GM-USD-RA226-TH230"] = "Uranium series disequilibrium age determination: 226Ra-230Th"
    helpme["GM-USD-RA228-TH232"] = "Uranium series disequilibrium age determination: 228Ra-232Th"
    helpme["GM-USD-TH228-TH232"] = "Uranium series disequilibrium age determination: 228Th-232Th"
    helpme["GM-USD-TH230"] = "Uranium series disequilibrium age determination: 230Th"
    helpme["GM-USD-TH230-TH232"] = "Uranium series disequilibrium age determination: 230Th-232Th"
    helpme["GM-USD-TH230-U234"] = "Uranium series disequilibrium age determination: 230Th-234U"
    helpme["GM-USD-TH230-U238"] = "Uranium series disequilibrium age determination: 230Th-238U"
    helpme["GM-USD-U234-U238"] = "Uranium series disequilibrium age determination: 234U-238U"
    helpme["GM-UTH"] = "238U-230Th age determination"
    helpme["GM-UTHHE"] = "U-Th-He age determination"
    helpme["GM-UTHPB"] = "U-Th-Pb age determination"
    helpme["GM-UTHPB-CC-T0"] = "U-Th-Pb age determination: Concordia diagram intersection age, upper intercept"
    helpme["GM-UTHPB-CC-T1"] = "U-Th-Pb age determination: Concordia diagram intersection age, lower intercept"
    helpme["GM-VARVE"] = "Age determined by varve counting"
    helpme["tiepoint_name"] = "Name for tiepoint horizon"
    helpme["tiepoint_alternatives"] = "Colon-delimited list of alternative names and abbreviations"
    helpme["tiepoint_height"] = "Tiepoint stratigraphic height relative to reference tiepoint"
    helpme["tiepoint_height_sigma"] = "Tiepoint stratigraphic height uncertainty"
    helpme["tiepoint_elevation"] = "Tiepoint elevation relative to sealevel"
    helpme["tiepoint_type"] = "Tiepoint type"
    helpme["age"] = "Age"
    helpme["age_sigma"] = "Age -- uncertainty"
    helpme["age_range_low"] = "Age -- low range"
    helpme["age_range_high"] = "Age -- high range"
    helpme["age_unit"] = "Age -- unit"
    helpme["timescale_eon"] = "Timescale eon"
    helpme["timescale_era"] = "Timescale era"
    helpme["timescale_period"] = "Timescale period"
    helpme["timescale_epoch"] = "Timescale epoch"
    helpme["timescale_stage"] = "Timescale stage"
    helpme["biostrat_zone"] = "Biostratigraphic zone"
    helpme["conodont_zone"] = "Conodont zone"
    helpme["magnetic_reversal_chron"] = "Magnetic reversal chron"
    helpme["astronomical_stage"] = "Astronomical stage name"
    helpme["oxygen_stage"] = "Oxygen stage name"
    helpme["age_culture_name"] = "Age culture name"
    return helpme[keyhelp]
164421
def get_help_text(self):
        

        txt = str('\n')
        for name, info in self.commands.items():
            command_txt = "\t{0: <22} {1}\n".format(name, info['description'])
            if info['attributes']:
                command_txt = ''.join([command_txt, "\t Attributes:\n"])
                for attrname, attrdesc in info['attributes'].items():
                    attr_txt = "\t  {0: <22} {1}\n".format(attrname, attrdesc)
                    command_txt = ''.join([command_txt, attr_txt])
            if info['elements']:
                command_txt = ''.join([command_txt, "\t Elements:\n",
                                       self.elements_as_text(info['elements'])])
            txt = ''.join([txt, command_txt])
        return txt
266834
def function_options_help():
    

    message = m.Message()
    message.add(m.Brand())
    message.add(heading())
    message.add(content())
    return message
834285
protected String getMessage(String key, Object... args) {

        return Messages.get().getBundle().key(key, args);
    }
1155599
def get_from_human_key(self, key):
        """"""
        if key in self._identifier_map:
            return self._identifier_map[key]
        raise KeyError(key)
182301
def help_message(sender, command_name) #:nodoc:
      if command_name.nil? || command_name.length == 0
        # Display help for all commands
        help_message = "I understand the following commands:\n\n"

        @commands[:meta].sort.each do |command|
          # Thank you, Hash.sort
          command = command[1]

          if !command[:is_alias] && (command[:is_public] || master?(sender))
            command[:syntax].each { |syntax| help_message += "#{syntax}\n" }
            help_message += "  #{command[:description]}\n\n"
          end
        end
      else
        # Display help for the given command
        command = @commands[:meta][command_name]

        if command.nil?
          help_message = "I don't understand '#{command_name}' Try saying" +
              " 'help' to see what commands I understand."
        else
          help_message = ''
          command[:syntax].each { |syntax| help_message += "#{syntax}\n" }
          help_message += "  #{command[:description]} "
        end
      end

      help_message
    end
350964
def get_helper(name=None, quiet=True, **kwargs):
    '''
       

    '''
    # Second priority, from environment
    from helpme.defaults import HELPME_CLIENT

    # First priority, from command line
    if name is not None:
        HELPME_CLIENT = name

    # If no obvious credential provided, we can use HELPME_CLIENT
    if   HELPME_CLIENT == 'github': from .github import Helper;
    elif HELPME_CLIENT == 'uservoice': from .uservoice import Helper
    elif HELPME_CLIENT == 'discourse': from .discourse import Helper
    else: from .github import Helper

    Helper.name = HELPME_CLIENT
    Helper.quiet = quiet

    # Initialize the database
    return Helper()
751935
function helpPlugin() {
  return function(app) {

    // style to turn `[ ]` strings into
    // colored strings with backticks
    app.style('codify', function(msg) {
      var re = /\[([^\]]*\[?[^\]]*\]?[^[]*)\]/g;
      return msg.replace(re, function(str, code) {
        return this.red('`' + code + '`');
      }.bind(this));
    });

    // style and format a single help command
    app.style('helpCommand', function(command) {
      var msg = '';
      msg += this.bold(command.name.substr(0, 1).toUpperCase() +
                       command.name.substr(1) + ': ');
      msg += this.bold(command.description);
      return msg;
    });

    // style and format an array of help commands
    app.style('helpCommands', function(commands) {
      return commands
        .map(this.helpCommand)
        .join('\n\n');
    });

    // style and format a single example
    app.style('helpExample', function(example) {
      var msg = '';
      msg += ' ' + this.gray('# ' + example.description) + '\n';
      msg += ' ' + this.white('$ ' + example.command);
      return msg;
    });

    // style and format an array of examples
    app.style('helpExamples', function(examples) {
      return examples
        .map(this.helpExample)
        .join('\n\n');
    });

    // style and format a single option
    app.style('helpOption', function(option) {
      var msg = '';
      msg += ' ' + (option.flag ? this.bold(option.flag) : '  ');
      msg += ' ' + this.bold(option.name);
      msg += ' ' + this.bold(this.codify(option.description));
      return msg;
    });

    // style and format an array of options
    app.style('helpOptions', function(options) {
      return options
        .map(this.helpOption)
        .join('\n');
    });

    // style and formation a help text object using
    // other styles to break up responibilities
    app.emitter('help', function(help) {
      var msg = '\n';
      msg += this.bold('Usage: ') + this.cyan(help.usage) + '\n\n';
      msg += this.helpCommands(help.commands);

      if (help.examples && help.examples.length) {
        msg += this.bold('Examples:\n\n');
        msg += this.helpExamples(help.examples);
      }

      if (help.options && help.options.length) {
        msg += this.bold('Options:\n\n');
        msg += this.helpOptions(help.options);
      }
      return msg + '\n';
    });
  };
}
1212317
def get_help_keys(self):
        
        help_keys = {}
        for k, v in self.help_context.items():
            if isinstance(v, tuple):
                help_keys[k] = v[0]
            else:
                help_keys[k] = v
        return help_keys
92471
def help(self):
        """"""
        QMessageBox.about(self, _("Help"),
                          """<b>%s</b>
                          <p><i>%s</i><br>    edit foobar.py
                          <p><i>%s</i><br>    xedit foobar.py
                          <p><i>%s</i><br>    run foobar.py
                          <p><i>%s</i><br>    clear x, y
                          <p><i>%s</i><br>    !ls
                          <p><i>%s</i><br>    object?
                          <p><i>%s</i><br>    result = oedit(object)
                          """ % (_('Shell special commands:'),
                                 _('Internal editor:'),
                                 _('External editor:'),
                                 _('Run script:'),
                                 _('Remove references:'),
                                 _('System commands:'),
                                 _('Python help:'),
                                 _('GUI-based editor:')))
350332
def _quick_help(self, nested=False):
        
        if nested:
            return self.command_path(), None, self.help_msg
        else:
            return self.command_path(), self.param_help_msg, self.help_msg
691672
def cmd(send, msg, args):
    
    if args['type'] == 'privmsg':
        send("Note-passing should be done in public.")
        return
    arguments = msg.split()
    if len(arguments) > 1:
        send("Sorry, I can only perform the summoning ritual for one person at a time")
        return
    elif len(arguments) == 0:
        send("Who shall I summon?")
        return
    nick = arguments[0]
    message = "You have been summoned!"
    row = Notes(note=message, submitter="The Dark Gods", nick=nick, time=datetime.now())
    args['db'].add(row)
    send("%s has been summoned!" % nick)
1141215
def options_help():
    

    message = m.Message()
    message.add(m.Brand())
    message.add(heading())
    message.add(content())
    return message
150777
def help_heading(self):
        
        message = m.Heading(
            tr('Help for {step_name}').format(step_name=self.step_name),
            **SUBSECTION_STYLE)
        return message
1374501
def read_messages(fobj, magic_table):
    """"""
    messages = []

    while True:
        magic = read_magic(fobj)
        if not magic:
            break

        func = magic_table.get(magic)
        if func is not None:
            messages.append(func(fobj))
        else:
            log.error('Unknown magic: ' + str(' '.join('{0:02x}'.format(b)
                                                       for b in bytearray(magic))))

    return messages
612967
public String getMessage(MyfacesLogKey key)
    {
        try
        {
            String name = key.name();
            return _log.getResourceBundle().getString(name);
        }
        catch (MissingResourceException mre)
        {
            return key.name();
        }
    }
1048180
def show_help(self, wizard_step):
        """"""
        self.wizard_step = wizard_step

        header = html_header()
        footer = html_footer()

        content = header

        message = self.wizard_step.help()

        content += message.to_html()
        content += footer

        self.help_web_view.setHtml(content)

        # Store buttons' state
        self.next_button_state = self.parent.pbnNext.isEnabled()
        self.back_button_state = self.parent.pbnBack.isEnabled()

        # Disable those buttons
        self.parent.pbnNext.setEnabled(False)
        self.parent.pbnBack.setEnabled(False)