Internal helper gets the name of the Airflow operator class. We maintain
      this in a map, so this method really returns the enum name, concatenated
      with the string "Operator".
431080
def _get_operator_class_name(task_detail_type):
    
    # TODO(rajivpb): Rename this var correctly.
    task_type_to_operator_prefix_mapping = {
      'pydatalab.bq.execute': ('Execute',
                               'google.datalab.contrib.bigquery.operators._bq_execute_operator'),
      'pydatalab.bq.extract': ('Extract',
                               'google.datalab.contrib.bigquery.operators._bq_extract_operator'),
      'pydatalab.bq.load': ('Load', 'google.datalab.contrib.bigquery.operators._bq_load_operator'),
      'Bash': ('Bash', 'airflow.operators.bash_operator')
    }
    (operator_class_prefix, module) = task_type_to_operator_prefix_mapping.get(
        task_detail_type, (None, __name__))
    format_string = '{0}Operator'
    operator_class_name = format_string.format(operator_class_prefix)
    if operator_class_prefix is None:
      return format_string.format(task_detail_type), module
    return operator_class_name, module
1092032
public static String getOperationName(final ModelNode op) {
        if (op.hasDefined(OP)) {
            return op.get(OP).asString();
        }
        throw ControllerClientLogger.ROOT_LOGGER.operationNameNotFound();
    }
843261
@Nullable
  public static String getClassName (@Nullable final Object aObject)
  {
    return aObject == null ? null : aObject.getClass ().getName ();
  }
931760
def class_name(self) -> str:
        
        if not self.api_name:  # empty string
            return self.api_name
        # end if
        return self.api_name[0].upper() + self.api_name[1:]
169521
def getName(self, innerFlag=False):
        
        if self._currentIdx is None:
            raise error.PyAsn1Error('Component not chosen')
        else:
            if innerFlag:
                c = self._componentValues[self._currentIdx]
                if isinstance(c, Choice):
                    return c.getName(innerFlag)
            return self.componentType.getNameByPosition(self._currentIdx)
645101
public String getExpressionString() {
        StringBuffer buf = new StringBuffer();
        buf.append("(");
        if (mOperator != null) {
            buf.append(mOperator.getOperatorSymbol());
            buf.append(" ");
        } else {
            for (int i = 0; i < mOperators.size(); i++) {
                UnaryOperator operator = (UnaryOperator) mOperators.get(i);
                buf.append(operator.getOperatorSymbol());
                buf.append(" ");
            }
        }
        buf.append(mExpression.getExpressionString());
        buf.append(")");
        return buf.toString();
    }
575630
public static String toClassName(Object o) {
        if (o instanceof String)  {
            return (String) o;
        } else if (o instanceof ClassRef) {
           return  ((ClassRef) o).getFullyQualifiedName();
        } else if (o instanceof TypeDef) {
           return ((TypeDef) o).getFullyQualifiedName();
        } else {
            return String.valueOf(o);
        }
    }
1092148
public static String getQualifiedName(Descriptors.EnumDescriptor enumType, ProtoFlavor flavor) {
    return getClassName(enumType, flavor).replace('$', '.');
  }
534228
@Override
	public String name() {

		if (file == null) {
			return null;
		}

		String name = null;

		try (Tx tx = StructrApp.getInstance(securityContext).tx()) {

			name = file.getName();
			tx.success();

		} catch (FrameworkException fex) {
			logger.error("", fex);
		}

		return name;
	}
805975
@Override
	@SuppressWarnings("unchecked")
	public BinaryOperatorInformation<IN1, IN2, OUT> getOperatorInfo() {
		return (BinaryOperatorInformation<IN1, IN2, OUT>) this.operatorInfo;
	}
925313
def GetName(self):
        
        if self.AssetType == AssetType.GoverningToken:
            return "NEO"
        elif self.AssetType == AssetType.UtilityToken:
            return "NEOGas"

        if type(self.Name) is bytes:
            return self.Name.decode('utf-8')
        return self.Name
1165437
@Override
    public String getServiceHandlerName() {
        final StringBuilder sb = new StringBuilder();
        sb.append(this.service.getClass().getSimpleName()).append(".");
        sb.append(this.method.getName()).append("(");
        for (final Class<?> parameterType : this.method.getParameterTypes()) {
            sb.append(parameterType.getSimpleName()).append(", ");
        }
        sb.append(")");
        return sb.toString();
    }
1067939
private String getClassInfoNameOrClassName() {
        String className;
        ClassInfo ci = getClassInfo();
        if (ci == null) {
            ci = classInfo;
        }
        if (ci != null) {
            // Get class name from getClassInfo().getName() 
            className = ci.getName();
        } else {
            // Get class name from getClassName() 
            className = getClassName();
        }
        if (className == null) {
            throw new IllegalArgumentException("Class name is not set");
        }
        return className;
    }
919788
public String getName()
    {
        if (_name==null)
        {
            _name=this.getClass().getName();
            if (!log.isDebugEnabled())
                _name=_name.substring(_name.lastIndexOf('.')+1);
        }
        return _name;
    }
950281
public static String getBindingName(String name) {
        // For "java:" names, come up with a reasonable binding name by removing
        // "java:" and if possible, the scope (e.g., "global") and "env".
        if (name.startsWith("java:")) {
            int begin = "java:".length();

            int index = name.indexOf('/', begin);
            if (index != -1) {
                begin = index + 1;
            }

            if (begin + "env/".length() <= name.length() && name.regionMatches(begin, "env/", 0, "env/".length())) {
                begin += "env/".length();
            }

            return name.substring(begin);
        }

        return name;
    }
758382
public static String getClassName(Map<String, Object> map) {
        String className = null;

        if (map.containsKey(MAP_CLASS_NAME) == true) {
            className = (String) map.get(MAP_CLASS_NAME);
        }

        return className;
    }
568650
def _GetCallingPrototypeAsString(self, flow_cls):
    """"""
    output = []
    output.append("flow.StartAFF4Flow(client_id=client_id, ")
    output.append("flow_name=\"%s\", " % flow_cls.__name__)
    prototypes = []
    if flow_cls.args_type:
      for type_descriptor in flow_cls.args_type.type_infos:
        if not type_descriptor.hidden:
          prototypes.append("%s=%s" %
                            (type_descriptor.name, type_descriptor.name))
    output.append(", ".join(prototypes))
    output.append(")")
    return "".join(output)