return 'name' of the map in .js format
491930
def _get_jsmap_name(self, url):
        """"""
        
        ret = urlopen(url)
        return ret.read().decode('utf-8').split('=')[0].replace(" ", "")
983841
function parseName(name) {
  if (name) {
    const arr = name.split('.')
    const len = arr.length

    if (len > 2) {
      return arr.slice(0, -1).join('.')
    }
    else if (len === 2 || len === 1) {
      return arr[0]
    }
  }
  return name
}
269613
def js_classnameify(s):
  
  if not '_' in s:
    return s
  return ''.join(w[0].upper() + w[1:].lower() for w in s.split('_'))
1060520
function(item) {
      var parts = item.displayName.split('.');
      for (var i = parts.length - 1; i > 0; i--) {
        var name = parts.slice(0, i).join('.');
        if (itemsByName[name]) {
          return itemsByName[name];
        }
      }
    }
895379
function(nameParams) {
    if(nameParams && nameParams.match(/^[a-zA-Z0-9_\.]*\(.*\)$/)) {
      var npart = nameParams.substring(0, nameParams.indexOf('('));
      var ppart = Parameters( nameParams.substring(nameParams.indexOf('(')+1, nameParams.lastIndexOf(')')) );

      return {
        name: npart,
        params: ppart
      };

    } else {
      return {
        name: nameParams,
        params: null
      };
    }
  }
909366
function getName () {
    const pathname = url.parse(parts[parts.length - 1]).pathname;

    return pathname ? pathname.replace('/', '') : pathname;
  }
248031
def qualname(self) -> str:
        
        if self.module:
            return self.module + '.' + self.name
        return self.name
474415
function getTitleMap(startMap, userSearchTerm, isRecursive) {

		var returnValue = false;
		var found = false;
		var isRecursive = defaultTo(isRecursive, true);

		function iterator(map, searchTerm){
			for(var i = 0; i < map.length; i++) {
				var item = map[i];
				//removes any html in the strings before searching for a match
				var itemTitle = stripTags(item.title).toLowerCase();
				var providedTitle = stripTags(searchTerm).toLowerCase();

				//also converts strings to lowercase so they aren't case sensitive
				if (itemTitle === providedTitle){
					//if the provided title matches the current item title, set the return value to current item
					returnValue = item;
					found = true;
					break;

				} else if ('subnav' in item && isRecursive){
					iterator(item.subnav, searchTerm);

					if (found){
						break;
					}
				}
			}
		}

		iterator(startMap.subnav, userSearchTerm);

		if (returnValue === false){
			//shouldn't do this unless the function fails
			console.log('\n"'+ userSearchTerm +'" title could not be found in navMap.json');
		}

		return returnValue;
	}
186673
function getName(str) {
	var name = path.basename(str);
	if (name.lastIndexOf('.') === -1) {
		name += '.json';
	}
	return name;
}
69518
def get_collection_name(cls):
        '''
        
        '''
        if hasattr(cls, '_meta'):
            np = getattr(cls._meta, 'namespace', None)
            cname = getattr(cls._meta, 'name', None)
            if np:
                return '{}.{}'.format(np, cname or cls.__name__.lower())
        return cname or cls.__name__.lower()
577754
def jsName(path,name):
    ''''''
    shortPath=path.replace(
            "C:\\Users\\scheinerbock\\Desktop\\"+
            "ideogram\\scrapeSource\\test\\","")
    noDash = shortPath.replace("-","_dash_")
    jsPath=noDash.replace("\\","_slash_").replace(".","_dot_")
    jsName=jsPath+'_slash_'+name
    return jsName
464213
function getComponentName(destPath) {
  const splitregex = new RegExp(`[\\${path.sep}-]+`);

  const parts = destPath
    .replace('.js', '')
    .split(splitregex)
    .map(part => part.charAt(0).toUpperCase() + part.substring(1));

  return parts.join('');
}
565591
def getFullName(obj):
    '''
    
    '''
    if hasattr(obj, 'firstName') and hasattr(obj, 'lastName'):
        return ' '.join([obj.firstName or '', obj.lastName or ''])
    return ' '.join([getattr(obj, 'first_name', ''),getattr(obj, 'last_name', '')])
1063975
def read_map(fname):
    
    lst = []
    with open(fname, "r") as f:
        for line in f:
            lst.append(line)
    return lst
706379
function getItemAsNameVal (item) {
    if (!item) {
      return undefined;
    }

    var locals = {};
    if (ctrl.itemName) {
      locals[ ctrl.itemName ] = item;
    }

    return locals;
  }
221567
def name(self) -> str:
        """"""
        if self.direction == DIRECTION_IN:
            return self.raw.get('Input.Name', '')
        return self.raw.get('Output.Name', '')
37041
public static String getMapSetterName(Field field) {
        if (field.isMap()) {
            return SETTER_PREFIX + Formatter.toPascalCase(field.getName()) + MAP_SUFFIX;
        }
        throw new IllegalArgumentException(field.toString());
    }