get the first text field column name
349547
public static function listColumn($table) {
		if (is_string($table)) $table = config('center.tables.' . $table);
		$fields = !empty($table->list) ? $table->list : array_keys((array) $table->fields);
		foreach ($fields as $field) {
			if ($table->fields->{$field}->type == 'string') return $field;
		}
	}
844155
public static String getFieldName(
      Descriptors.FieldDescriptor field, boolean capitializeFirstLetter) {
    String fieldName = field.getName();
    if (SPECIAL_CASES.containsKey(fieldName)) {
      String output = SPECIAL_CASES.get(fieldName);
      if (capitializeFirstLetter) {
        return output;
      } else {
        return ((char) (output.charAt(0) + ('a' - 'A'))) + output.substring(1);
      }
    }
    return underscoresToCamelCase(fieldName, capitializeFirstLetter);
  }
898648
@Basic
    @Column(name = "FIRSTNAME", unique = true, nullable = false, length=255)
	public String getFirstName()
	{
		return firstName;
	}
1095633
public String getColumnName(int iColumnIndex)
    {
        Convert fieldInfo = this.getFieldInfo(iColumnIndex);
        if (fieldInfo != null)
            return fieldInfo.getFieldDesc();
        return Constants.BLANK;
    }
607380
private JTextField getTextFieldContextName() {
        if (txtContextName == null) {
            txtContextName = new JTextField();
            txtContextName.setText(SOABase.DEFAULT_NAME);
            txtContextName.setColumns(10);
        }
        return txtContextName;
    }
1115585
public function getTitleColumnName()
    {
        // If we specified a specific fieldname or array of fieldnames as 'title'.
        if (!empty($this->contenttype['title_format'])) {
            return (array) $this->contenttype['title_format'];
        }

        // Sets the names of some 'common' names for the 'title' column.
        $names = ['title', 'name', 'caption', 'subject', 'heading'];

        // Some localised options as well
        $names = array_merge($names, ['titel', 'naam', 'onderwerp']); // NL
        $names = array_merge($names, ['nom', 'sujet']); // FR
        $names = array_merge($names, ['nombre', 'sujeto']); // ES

        foreach ($names as $name) {
            if (isset($this->values[$name])) {
                return [$name];
            }
        }

        // Otherwise, grab the first field of type 'text', and assume that's the title.
        if (!empty($this->contenttype['fields'])) {
            foreach ($this->contenttype['fields'] as $key => $field) {
                if ($field['type'] === 'text') {
                    return [$key];
                }
            }
        }

        // Nope, no title was found.
        return [];
    }
504305
public Optional<String> getFieldName(int fieldIndex) {
		if (fieldIndex < 0 || fieldIndex >= fieldNames.length) {
			return Optional.empty();
		}
		return Optional.of(fieldNames[fieldIndex]);
	}
790007
@Override
	public String getColumnName(int column) {
		try {
			return metadata.getColumnLabel(column + 1);
		} catch (SQLException e) {
			e.printStackTrace(System.err);
			return e.toString();
		}
	}
5942
@Override
	public String onColumnName(String columnName) {
		if (onlyBindParameter)
			return null;

		if (currentSchema != null) {
			Set<SQLProperty> props = currentSchema.getPropertyBySimpleName(columnName);
			AssertKripton.assertTrueOrUnknownPropertyInJQLException(props != null && props.size() > 0, currentMethod, columnName);
			return props.iterator().next().columnName;
		} else {
			return null;
		}
	}
1253081
def get_column_name(self, column_name):
        
        name = pretty_name(column_name)
        if column_name in self._meta.columns:
            column_cls = self._meta.columns[column_name]
            if column_cls.verbose_name:
                name = column_cls.verbose_name
        return name
1211106
def getvarcol(self, startrow=0, nrow=-1, rowincr=1):
        """"""
        return self._table.getvarcol(self._column, startrow, nrow, rowincr)
1163183
public ColumnModel getColumnByFieldName(String fieldName) {
		for (ColumnModel columnModel : columns)
			if (columnModel.getEntityField() != null && columnModel.getEntityField().equalsIgnoreCase(fieldName))
				return columnModel;
		return null;
	}
61698
private String getDataFieldValue(String dataHeader, String fieldName) {
		String value = null;
		String token = StrUtil.format("{}=\"", fieldName);
		int pos = dataHeader.indexOf(token);
		if (pos > 0) {
			int start = pos + token.length();
			int end = dataHeader.indexOf('"', start);
			if ((start > 0) && (end > 0)) {
				value = dataHeader.substring(start, end);
			}
		}
		return value;
	}
427423
def get_column_names_from_file(file_path):
        
        if file_path.endswith('.gz'):
            file_handler = io.TextIOWrapper(io.BufferedReader(gzip.open(file_path)))
        else:
            file_handler = open(file_path, 'r')

        fields_line = False
        with file_handler as file:
            for line in file:
                line = line.strip()
                if not fields_line and re.search('#\s*Fields\s*:$', line):
                    fields_line = True
                elif fields_line and not (line == '' or line == '#'):
                    return [column.strip() for column in line[1:].split("\t")]
783522
String getTableName() {
        if (opType == OpTypes.MULTICOLUMN) {
            return tableName;
        }

        if (opType == OpTypes.COLUMN) {
            if (rangeVariable == null) {
                return tableName;
            }
            return rangeVariable.getTable().getName().name;
        }
        return "";
    }
257949
def get_column_names(context, query):
        """"""
        table_info = context.sql_client.send(query)
        if 'fields' in table_info:
            return table_info['fields']

        return None
33830
def first_field(self):
        
        for name, item in enumerate(self):
            # Container
            if is_container(item):
                field = item.first_field()
                # Container is not empty
                if field is not None:
                    return field
            # Field
            elif is_field(item):
                return item
            else:
                raise MemberTypeError(self, item, name)
        return None