Model: Shuu12121/CodeSearch-ModernBERT-Owl-3.0-Plus
Author: Shuu12121
Pipeline: sentence-similarity
Library: sentence-transformers
Tags: sentence-transformers, safetensors, modernbert, sentence-similarity, feature-extraction, generated_from_trainer, dataset_size:7059200, loss:MultipleNegativesRankingLoss, en, dataset:code-search-net/code_search_net, dataset:Shuu12121/python-codesearch-dedupe-filtered-v4, dataset:Shuu12121/javascript-codesearch-dedupe-filtered-v4, dataset:Shuu12121/java-codesearch-dedupe-filtered-v4, dataset:Shuu12121/typescript-codesearch-dedupe-filtered-v4, dataset:Shuu12121/php-codesearch-dedupe-filtered-v4, dataset:Shuu12121/go-codesearch-dedupe-filtered-v4, dataset:Shuu12121/ruby-codesearch-dedupe-filtered-v4, dataset:Shuu12121/rust-codesearch-dedupe-filtered-v4, base_model:Shuu12121/CodeModernBERT-Owl-3.0, base_model:finetune:Shuu12121/CodeModernBERT-Owl-3.0, license:apache-2.0, text-embeddings-inference, endpoints_compatible, region:us
Base models (finetune): id: Shuu12121/CodeModernBERT-Owl-3.0
Card metadata: tags: sentence-transformers, sentence-similarity, feature-extraction, generated_from_trainer, dataset_size:7059200, loss:MultipleNegativesRankingLoss
base_model: Shuu12121/CodeModernBERT-Owl-3.0
widget: source_sentence: The maximum value of the slider. (default 0) <P>
@return Returns the value of the attribute, or 0, if it hasn't been set by the JSF file.
sentences: @Override
    public UpdateSmsChannelResult updateSmsChannel(UpdateSmsChannelRequest request) {
        request = beforeClientExecution(request);
        return executeUpdateSmsChannel(request);
    }, async function isValidOrigin(origin, sourceOrigin) {
    // This will fetch the caches from https://cdn.ampproject.org/caches.json the first time it's
    // called. Subsequent calls will receive a cached version.
    const officialCacheList = await caches.list();
    // Calculate the cache specific origin
    const cacheSubdomain = `https://${await createCacheSubdomain(sourceOrigin)}.`;
    // Check all caches listed on ampproject.org
    for (const cache of officialCacheList) {
      const cachedOrigin = cacheSubdomain + cache.cacheDomain;
      if (origin === cachedOrigin) {
        return true;
      }
    }
    return false;
  }, public java.lang.Object getMin() {
		return (java.lang.Object) getStateHelper().eval(PropertyKeys.min, 0);
	}, source_sentence: The Method from the Date.getMinutes is deprecated. This is a helper-Method.

@param date
The Date-object to get the minutes.
@return The minutes from the Date-object.
sentences: public static int getMinutes(final Date date)
	{
		final Calendar calendar = Calendar.getInstance();
		calendar.setTime(date);
		return calendar.get(Calendar.MINUTE);
	}, func (opts BeeOptions) Bind(name string, dst interface{}) error {
	v := opts.Value(name)
	if v == nil {
		return errors.New("Option with name " + name + " not found")
	}

	return ConvertValue(v, dst)
}, public function createFor(Customer $customer, array $options = [], array $filters = [])
    {
        $this->parentId = $customer->id;

        return parent::rest_create($options, $filters);
    }, source_sentence: Return a list of all dates from 11/12/2015 to the present.

  Args:
    boo: if true, list contains Numbers (20151230); if false, list contains Strings ("2015-12-30")
  Returns:
    list of either Numbers or Strings
sentences: def all_days(boo):
  
  earliest = datetime.strptime(('2015-11-12').replace('-', ' '), '%Y %m %d')
  latest = datetime.strptime(datetime.today().date().isoformat().replace('-', ' '), '%Y %m %d')
  num_days = (latest - earliest).days + 1
  all_days = [latest - timedelta(days=x) for x in range(num_days)]
  all_days.reverse()

  output = []

  if boo:
    # Return as Integer, yyyymmdd
    for d in all_days:
      output.append(int(str(d).replace('-', '')[:8]))
  else:
    # Return as String, yyyy-mm-dd
    for d in all_days:
      output.append(str(d)[:10])
  return output, public void setColSize3(Integer newColSize3) {
		Integer oldColSize3 = colSize3;
		colSize3 = newColSize3;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.COLOR_SPECIFICATION__COL_SIZE3, oldColSize3, colSize3));
	}, public function deleteCompanyBusinessUnitStoreAddress(CompanyBusinessUnitStoreAddressTransfer $companyBusinessUnitStoreAddressTransfer): void
    {
        $this->getFactory()
            ->createFosCompanyBusinessUnitStoreAddressQuery()
            ->findOneByIdCompanyBusinessUnitStoreAddress($companyBusinessUnitStoreAddressTransfer->getIdCompanyBusinessUnitStoreAddress())
            ->delete();
    }, source_sentence: Returns array of basket oxarticle objects

@return array
sentences: public function visit(NodeVisitorInterface $visitor)
    {
        foreach ($this->children as $child)
        {
            $child->visit($visitor);
        }
    }, func GetColDefaultValue(ctx sessionctx.Context, col *model.ColumnInfo) (types.Datum, error) {
	return getColDefaultValue(ctx, col, col.GetDefaultValue())
}, public function getBasketArticles()
    {
        $aBasketArticles = [];
        /** @var \oxBasketItem $oBasketItem */
        foreach ($this->_aBasketContents as $sItemKey => $oBasketItem) {
            try {
                $oProduct = $oBasketItem->getArticle(true);

                if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('bl_perfLoadSelectLists')) {
                    // marking chosen select list
                    $aSelList = $oBasketItem->getSelList();
                    if (is_array($aSelList) && ($aSelectlist = $oProduct->getSelectLists($sItemKey))) {
                        reset($aSelList);
                        foreach ($aSelList as $conkey => $iSel) {
                            $aSelectlist[$conkey][$iSel]->selected = 1;
                        }
                        $oProduct->setSelectlist($aSelectlist);
                    }
                }
            } catch (\OxidEsales\Eshop\Core\Exception\NoArticleException $oEx) {
                \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay($oEx);
                $this->removeItem($sItemKey);
                $this->calculateBasket(true);
                continue;
            } catch (\OxidEsales\Eshop\Core\Exception\ArticleInputException $oEx) {
                \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay($oEx);
                $this->removeItem($sItemKey);
                $this->calculateBasket(true);
                continue;
            }

            $aBasketArticles[$sItemKey] = $oProduct;
        }

        return $aBasketArticles;
    }, source_sentence: get test root
sentences: @CheckReturnValue
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Maybe<T> doOnDispose(Action onDispose) {
        return RxJavaPlugins.onAssembly(new MaybePeek<T>(this,
                Functions.emptyConsumer(), // onSubscribe
                Functions.emptyConsumer(), // onSuccess
                Functions.emptyConsumer(), // onError
                Functions.EMPTY_ACTION,    // onComplete
                Functions.EMPTY_ACTION,    // (onSuccess | onError | onComplete) after
                ObjectHelper.requireNonNull(onDispose, "onDispose is null")
        ));
    }, protected Object parseKeyElement(Element keyEle, BeanDefinition bd, String defaultKeyTypeName) {
    NodeList nl = keyEle.getChildNodes();
    Element subElement = null;
    for (int i = 0; i < nl.getLength(); i++) {
      Node node = nl.item(i);
      if (node instanceof Element) {
        // Child element is what we're looking for.
        if (subElement != null)
          error("<key> element must not contain more than one value sub-element", keyEle);
        else subElement = (Element) node;
      }
    }
    return parsePropertySubElement(subElement, bd, defaultKeyTypeName);
  }, function getRootPath(){
    var rootPath = path.resolve('.');
    while(rootPath){
        if(fs.existsSync(rootPath + '/config.json')){
            break;
        }
        rootPath = rootPath.substring(0, rootPath.lastIndexOf(path.sep));
    }
    return rootPath;
}
pipeline_tag: sentence-similarity
library_name: sentence-transformers
datasets: code-search-net/code_search_net, Shuu12121/python-codesearch-dedupe-filtered-v4, Shuu12121/javascript-codesearch-dedupe-filtered-v4, Shuu12121/java-codesearch-dedupe-filtered-v4, Shuu12121/typescript-codesearch-dedupe-filtered-v4, Shuu12121/php-codesearch-dedupe-filtered-v4, Shuu12121/go-codesearch-dedupe-filtered-v4, Shuu12121/ruby-codesearch-dedupe-filtered-v4, Shuu12121/rust-codesearch-dedupe-filtered-v4
license: apache-2.0
language: en
Likes: 0 | All-time downloads: 336
Created: 2025-06-21 16:16:58