Returns the post-transpilation, globalized name of the export.
198662
static String getGlobalName(Export export) {
    if (export.moduleMetadata().isEs6Module()) {
      if (export.localName().equals(Export.DEFAULT_EXPORT_NAME)) {
        return getGlobalNameOfAnonymousDefaultExport(export.moduleMetadata());
      }
      return getGlobalNameOfEsModuleLocalVariable(export.moduleMetadata(), export.localName());
    }
    return getGlobalName(export.moduleMetadata(), export.closureNamespace())
        + "."
        + export.exportName();
  }
1211045
def get_exported(self):
        """"""
        return dict((k, self.vars[k]) for k in self.exported_vars)
983929
def get_global_name_value(self):
        
        if self._has_global_stats:
            name, value = self.get_global()
            if not isinstance(name, list):
                name = [name]
            if not isinstance(value, list):
                value = [value]
            return list(zip(name, value))
        else:
            return self.get_name_value()
1292499
function buildNamedExport({ id, types: t }) {
  return t.exportNamedDeclaration(t.variableDeclaration('const', [
    t.variableDeclarator(t.identifier(id), t.objectExpression([])),
  ]), []);
}
1218473
public function getStringsToLocalize() {
		$switched_locale = switch_to_locale( Modules\Export\Export::locale() );

		$localized = [
			/**
			 * Filter the label used for post types (front matter/parts/chapters/back matter) in the TOC and section headings.
			 *
			 * @since 5.6.0
			 *
			 * @param string $label
			 * @param array $args
			 *
			 * @return string Filtered label
			 */
			'chapter' => apply_filters( 'pb_post_type_label', __( 'Chapter', 'pressbooks' ), [ 'post_type' => 'chapter' ] ),
			/**
			 * Filter the label used for post types (front matter/parts/chapters/back matter) in the TOC and section headings.
			 *
			 * @since 5.6.0
			 *
			 * @param string $label
			 * @param array $args
			 *
			 * @return string Filtered label
			 */
			'part' => apply_filters( 'pb_post_type_label', __( 'Part', 'pressbooks' ), [ 'post_type' => 'part' ] ),
		];

		if ( $switched_locale ) {
			restore_previous_locale();
		}

		return $localized;

	}
1070699
public Map<CmsExportname, String> getExportnames() {

        if (m_exportnameResources == null) {
            try {
                TreeMap<CmsExportname, String> sort = new TreeMap<CmsExportname, String>(new CmsExportNameComparator());
                sort.putAll(computeVfsExportnames());
                m_exportnameResources = sort;
            } catch (Throwable t) {
                LOG.error(t.getMessage(), t);
            }
        }
        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_UPDATE_EXPORTNAME_PROP_FINISHED_0));
        }
        return Collections.unmodifiableMap(m_exportnameResources);
    }
1156188
function looksLikeExport(astNode) {
    return astNode.type === "ExportDefaultDeclaration" || astNode.type === "ExportNamedDeclaration" ||
        astNode.type === "ExportAllDeclaration" || astNode.type === "ExportSpecifier";
}
478961
private static String removeExplicitGlobalPrefix(String qname) {
    for (String global : GLOBAL_NAMES) {
      if (qname.startsWith(global)) {
        return qname.substring(global.length());
      }
    }
    return qname;
  }
364725
function getLocalizedName(wofData, langProperty) {

  // check that there is a value at the specified property and that it's not
  // set to unknown or undefined
  if (wofData.properties.hasOwnProperty(langProperty) &&
    !_.isEmpty(wofData.properties[langProperty]) &&
    wofData.properties[langProperty] !== 'unk' &&
    wofData.properties[langProperty] !== 'und' &&
    !_.isEqual(wofData.properties[langProperty], ['unk']) &&
    !_.isEqual(wofData.properties[langProperty], ['und'])) {

    // build the preferred lang key to use for name, like 'name:deu_x_preferred'
    var official_lang_key = getOfficialLangName(wofData, langProperty);

    // check if that language is available
    var name = getPropertyValue(wofData, official_lang_key);
    if (name) {
      return name;
    }

    // if corresponding name property wasn't found, log the error
    logger.warn(langProperty, '[missing]', official_lang_key, wofData.properties['wof:name'],
      wofData.properties['wof:placetype'], wofData.properties['wof:id']);
  }
  return false;
}
23034
function exportType(name: string, type: BabelAST) {
  return t.exportNamedDeclaration(
    t.typeAlias(t.identifier(name), null, type),
    [],
    null,
  );
}
1146738
public float getTranslationY() {
    return calcAverage(mDetector.getCurrentY(), mDetector.getPointerCount()) -
        calcAverage(mDetector.getStartY(), mDetector.getPointerCount());
  }
930663
function ExportNamedDeclaration(node) {
    var declar = node.declaration;

    if (t.isClassDeclaration(declar)) {
      // export class Foo {}
      node.specifiers = [buildExportSpecifier(declar.id)];

      var nodes = [getDeclar(node), node];
      node.declaration = null;
      return nodes;
    } else if (t.isFunctionDeclaration(declar)) {
      // export function Foo() {}
      var newExport = t.exportNamedDeclaration(null, [buildExportSpecifier(declar.id)]);
      newExport._blockHoist = 2;
      return [getDeclar(node), newExport];
    } else if (t.isVariableDeclaration(declar)) {
      // export var foo = "bar";
      var specifiers = [];
      var bindings = this.get("declaration").getBindingIdentifiers();
      for (var key in bindings) {
        specifiers.push(buildExportSpecifier(bindings[key]));
      }
      return [declar, t.exportNamedDeclaration(null, specifiers)];
    }
  }
612482
function getTransformPropertyName(globalObj, forceRefresh = false) {
  if (storedTransformPropertyName === undefined || forceRefresh) {
    const el = globalObj.document.createElement('div');
    storedTransformPropertyName =
      'transform' in el.style ? 'transform' : 'webkitTransform';
  }

  return storedTransformPropertyName;
}
471743
function nameAnonymousExports(programPath) {
    // Name anonymous exported locals.
    programPath.get('body').forEach(child => {
        if (!child.isExportDefaultDeclaration()) {
            return;
        }

        // export default foo;
        const declaration = child.get('declaration');
        if (declaration.isFunctionDeclaration()) {
            if (!declaration.node.id) {
                declaration.node.id = declaration.scope.generateUidIdentifier('default');
            }
        }
        else if (declaration.isClassDeclaration()) {
            if (!declaration.node.id) {
                declaration.node.id = declaration.scope.generateUidIdentifier('default');
            }
        }
        else {
            const id = declaration.scope.generateUidIdentifier('default');
            const namedDecl = babelTypes.exportNamedDeclaration(null, [
                babelTypes.exportSpecifier(babelTypes.identifier(id.name), babelTypes.identifier('default')),
            ]);
            namedDecl._blockHoist = child.node._blockHoist;

            const varDecl = babelTypes.variableDeclaration('var', [
                babelTypes.variableDeclarator(id, declaration.node),
            ]);
            varDecl._blockHoist = child.node._blockHoist;

            child.replaceWithMultiple([namedDecl, varDecl]);
        }
    });
}
391458
private void postImportHook() {
        Map<String, String> enMap = get("en").asMap();
        StringBuilder sb = new StringBuilder();
        for (Translation tr : translations.values()) {
            Map<String, String> trMap = tr.asMap();
            for (Entry<String, String> enEntry : enMap.entrySet()) {
                String value = trMap.get(enEntry.getKey());
                if (isEmpty(value)) {
                    trMap.put(enEntry.getKey(), enEntry.getValue());
                    continue;
                }

                int expectedCount = countOccurence(enEntry.getValue(), "\\%");
                if (expectedCount != countOccurence(value, "\\%")) {
                    sb.append(tr.getLocale()).append(" - error in ").
                            append(enEntry.getKey()).append("->").
                            append(value).append("\n");
                } else {
                    // try if formatting works, many times e.g. '%1$' instead of '%1$s'
                    Object[] strs = new String[expectedCount];
                    Arrays.fill(strs, "tmp");
                    try {
                        String.format(Locale.ROOT, value, strs);
                    } catch (Exception ex) {
                        sb.append(tr.getLocale()).append(" - error ").append(ex.getMessage()).append("in ").
                                append(enEntry.getKey()).append("->").
                                append(value).append("\n");
                    }
                }
            }
        }

        if (sb.length() > 0) {
            System.out.println(sb);
            throw new IllegalStateException(sb.toString());
        }
    }
680816
def get_export_table(self):
        """"""
        symbols = self.binary.DIRECTORY_ENTRY_EXPORT.symbols
        names = AttrsGetter(symbols, join=False).name
        return names
996497
public static String getNAFTagSet(final String postag, final String lang) {

    String tag = null;
    if (lang.equalsIgnoreCase("de")) {
      tag = mapGermanCoNLL09TagSetToNAF(postag);
    } else if (lang.equalsIgnoreCase("en")) {
      tag = mapEnglishPennTagSetToNAF(postag);
    } else if (lang.equalsIgnoreCase("es")) {
      tag = mapSpanishAncoraTagSetToNAF(postag);
    } else if (lang.equalsIgnoreCase("eu")) {
      tag = mapUDTagSetToNAF(postag);
    } else if (lang.equalsIgnoreCase("gl")) {
      tag = mapGalicianCTAGTagSetToNAF(postag);
    } else if (lang.equalsIgnoreCase("fr")) {
      tag = mapFrenchCCTagSetToNAF(postag);
    } else if (lang.equalsIgnoreCase("it")) {
      tag = mapUDTagSetToNAF(postag);
    } else if (lang.equalsIgnoreCase("nl")) {
      tag = mapWotanTagSetToNAF(postag);
    } else {
      tag = "O";
    }
    return tag;
  }