Removes the dynamic place holder.

@param placeHolders
the place holders
@return the list
196188
static List<JQLPlaceHolder> removeDynamicPlaceHolder(List<JQLPlaceHolder> placeHolders) {
		List<JQLPlaceHolder> result = new ArrayList<>();

		for (JQLPlaceHolder item : placeHolders) {
			if (item.type != JQLPlaceHolderType.DYNAMIC_SQL) {
				result.add(item);
			}
		}

		return result;
	}
15895
private static String preparePlaceHolders(int length) {
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < length; ) {
            builder.append("?");
            if (++i < length) {
                builder.append(",");
            }
        }
        return builder.toString();
    }
209567
public static Set<String> extractPlaceHolders(String string) {
        Matcher matcher = Pattern.compile(PLACEHOLDER_PATTERN).matcher(string);
        Set<String> placeHolders = Sets.newHashSet();
        while (matcher.find()) {
            placeHolders.add(matcher.group(1));
        }
        return placeHolders;
    }
1371251
public static <T> T removeLast( List<T> list )
    {
        return remove( list, list.size() - 1 );
    }
105893
synchronized List<AllocatedSlice> removeAllAllocatedSlices() {

		final List<AllocatedSlice> slices = new ArrayList<AllocatedSlice>(this.allocatedSlices.values());
		final Iterator<AllocatedSlice> it = slices.iterator();
		while (it.hasNext()) {
			removeAllocatedSlice(it.next().getAllocationID());
		}

		return slices;
	}
875981
protected function prepareItem(array &$placeholders)
    {
        if (empty($this->prepare['call'])) {
            return;
        }
        $this->prepare['params'] = Helper::getValue($this->prepare['params'], []);
        $this->prepare['params']['placeholders'] = $placeholders;
        $this->prepare['params']['sanitize'] = Template::SANITIZE_DISABLE;
        $placeholders = $this->callFunction($this->prepare['call'], $this->prepare['params']);
    }
1330897
public SimpleListHolder<T> except(String... namesToExclude) {
        String key = "current" + getCacheKey(namesToExclude);
        SimpleListHolder<T> result = cache.get(key);
        if (result == null) {
            result = new SimpleListHolder<T>(getIterable(), asNameNotEqualsToPredicates(namesToExclude), getSortProperty());
            cache.put(key, result);
        }
        return result;
    }
676359
function replacePlaceholders(src, options) {
	return Object.keys(placeholders).reduce((out, placeholder) => {
		return out.replace(new RegExp(`${placeholder}`, 'g'), placeholders[placeholder]);
	}, src);
}
1003771
public void appendPlaceholder(final ShardingPlaceholder shardingPlaceholder) {
        segments.add(shardingPlaceholder);
        currentSegment = new StringBuilder();
        segments.add(currentSegment);
    }
517053
private void removeObsoleteElements(List<String> names,
                                        Map<String, View> sharedElements,
                                        List<String> elementsToRemove) {
        if (elementsToRemove.size() > 0) {
            names.removeAll(elementsToRemove);
            for (String elementToRemove : elementsToRemove) {
                sharedElements.remove(elementToRemove);
            }
        }
    }
943330
@Override
  public <T> List<T> remove(Collection<? extends T> batchToRemove, Class<T> entityClass) {
    return remove(batchToRemove, Util.determineCollectionName(entityClass));
  }
1084153
def get_placeholder_formats_list(self, format_string):
        
        placeholders = []
        # Tokenize the format string and process them
        for token in self.tokens(format_string):
            if token.group("placeholder"):
                placeholders.append((token.group("key"), token.group("format")))
        return placeholders
1193736
protected function placeholders(int $count, string $placeholder = '?', bool $surround = true): string {
		$temp = join(", ", array_pad([], $count, $placeholder));
		
		// the above line simply gives us a comma separated string of $count placeholders.
		// by default we want to surround them with parentheses, but sometimes maybe we
		// don't.  the $surround bool will tells us how to proceed.
		
		return $surround ? "($temp)" : $temp;
	}
293596
public static List<String> filterEmptyValues( List<String> values ) {

		List<String> result = new ArrayList<> ();
		for( String s : values ) {
			if( ! Utils.isEmptyOrWhitespaces( s ))
				result.add( s );
		}

		return result;
	}
1323958
public String add(BaseHolder baseHolder)
    {
        if (m_mapChildHolders == null)
            m_mapChildHolders = new MapList();
        synchronized (this)
        {
            return m_mapChildHolders.add(baseHolder);
        }
    }
566022
private int pollRemovedCountHolders(AtomicReferenceArray<Queue<Integer>> removedCountHolders) {
        int count = 0;
        for (int i = 0; i < partitionCount; i++) {
            Queue<Integer> removalCounts = removedCountHolders.get(i);
            count += removalCounts.poll();
        }
        return count;
    }
566462
public function findPlaceholders(array $placeholders = [], $recursive = false)
    {
        if (empty($placeholders)) {
            return [];
        }
        $result = [];
        foreach ($placeholders as $name => $value) {
            if (is_int($name)) {

                if ($this->existsPlaceholder($value)) {

                    $result[$this->_prepareNamePlaceholder($value)] = $this->getPlaceholder($value, false);
                } elseif ($recursive) {
                    /** @var static $scope */
                    foreach (array_reverse($this->scopes, true) as $scope) {
                        if ($scope->existsPlaceholder($value)) {
                            $result[$this->_prepareNamePlaceholder($value)] = $scope->getPlaceholder($value);
                            break;
                        }
                    }
                }
                continue;
            }
            $result[$name] = $value;
        }

        return $result;
    }