Model: Shuu12121/CodeSearch-ModernBERT-Owl-4.1-Plus
Author: Shuu12121
Pipeline: sentence-similarity
Library: sentence-transformers
Tags: sentence-transformers, safetensors, modernbert, sentence-similarity, feature-extraction, generated_from_trainer, dataset_size:6960000, loss:MultipleNegativesRankingLoss, arxiv:1908.10084, arxiv:1705.00652, text-embeddings-inference, endpoints_compatible, region:us
Card metadata: tags: sentence-transformers, sentence-similarity, feature-extraction, generated_from_trainer, dataset_size:6960000, loss:MultipleNegativesRankingLoss
base_model: Shuu12121/CodeModernBERT-Owl-4.1
widget: source_sentence: Create a function to call with simple and hard types This is done so simple types don't need to check for hard types
sentences: function copyHead(headHtml, doc) {
        var head = doc.getElementsByTagName('head')[0];

        if (head.innerHTML == headHtml) {
            // the content is already correct
            return;
        }

        jQuery.init(head).empty();

        appendHTML(headHtml, head);
    }, func compress(value float64) int16 {
	i := int16(precision*math.Log(1.0+math.Abs(value)) + 0.5)
	if value < 0 {
		return -1 * i
	}
	return i
}, function (types, hard) {
            for (var t in types) {
                if (types.hasOwnProperty(t)) {
                    (function (prop) {
                        Object.defineProperty(props, prop, {
                            get: function () {
                                for (var i = 0; i < inputs.length; ++i) {
                                    if (!checkType(prop, inputs[i], hard)) {
                                        return false;
                                    }
                                }
                                return true;
                            }
                        });
                    }(t));
                }
            }
        }, source_sentence: Takes an array of promises and returns a promise that is fulfilled once all
the promises in the array are fulfilled

@param {Array} array The array of promises
@return {Promise} the promise that is fulfilled when all the array is fulfilled, resolved to the array of results
sentences: public static List<DockerImage> getDockerImagesFromAgents(final int buildInfoId, TaskListener listener) throws IOException, InterruptedException {
        List<DockerImage> dockerImages = new ArrayList<DockerImage>();

        // Collect images from the master:
        dockerImages.addAll(getAndDiscardImagesByBuildId(buildInfoId));

        // Collect images from all the agents:
        List<Node> nodes = Jenkins.getInstance().getNodes();
        for (Node node : nodes) {
            if (node == null || node.getChannel() == null) {
                continue;
            }
            try {
                List<DockerImage> partialDockerImages = node.getChannel().call(new MasterToSlaveCallable<List<DockerImage>, IOException>() {
                    public List<DockerImage> call() throws IOException {
                        List<DockerImage> dockerImages = new ArrayList<DockerImage>();
                        dockerImages.addAll(getAndDiscardImagesByBuildId(buildInfoId));
                        return dockerImages;
                    }
                });
                dockerImages.addAll(partialDockerImages);
            } catch (Exception e) {
                listener.getLogger().println("Could not collect docker images from Jenkins node '" + node.getDisplayName() + "' due to: " + e.getMessage());
            }
        }
        return dockerImages;
    }, public function findUnitByStart(Token $token) {
		foreach ($this->collection as $unit) {
			if ($unit->start === $token) {
				return $unit;
			}
		}

		return null;
	}, function (array) {
            var self = this,
                deferred = new Deferred(),
                fulfilled = 0,
                length,
                results = [],
                hasError = false;

            if (!isArray(array)) {
                array = slice.call(arguments);
            }
            length = array.length;

            if (length === 0) {
                deferred.emitSuccess(results);
            } else {
                array.forEach(function (promise, index) {

                    self.when(promise,
                        //Success
                        function (value) {
                            results[index] = value;
                            fulfilled += 1;
                            if (fulfilled === length) {

                                if (hasError) {
                                    deferred.emitError(results);
                                } else {
                                    deferred.emitSuccess(results);
                                }
                            }
                        },
                        //Error
                        function (error) {
                            results[index] = error;
                            hasError = true;
                            fulfilled += 1;
                            if (fulfilled === length) {
                                deferred.emitError(results);
                            }
                        }
                    );
                });
            }
            return deferred.getPromise();
        }, source_sentence: Create and return a MBeanInfo instance for the supplied object.

@param object             Supplied object to inspect.
@param classIntrospector  ClassIntrospector to use.

@return a MBeanInfo instance for the supplied object.

@throws IntrospectionException    If failed to create Info object
@throws IllegalArgumentException
sentences: function toggleShepherdModalClass(currentElement) {
  const shepherdModal = document.querySelector(`${classNames.modalTarget}`);

  if (shepherdModal) {
    shepherdModal.classList.remove(classNames.modalTarget);
  }

  currentElement.classList.add(classNames.modalTarget);
}, public function handle(): void
    {
        $directory = $this->argument('directory');

        if (!is_dir($directory)) {
            $this->error(
                sprintf('The directory "%1$s" does not exist. Run `resume make --output=%1$s`.', $directory)
            );

            exit(1);
        }

        chdir($directory);

        $this->info(
            sprintf('Resume preview started: http://%s:%s', $this->host(), $this->port())
        );
        $this->info('Stop the server with CTRL+C.');

        passthru($this->command($this->host(), $this->port()), $exitCode);

        exit($exitCode);
    }, private MBeanInfo getInfo(Object object, ClassIntrospector classIntrospector) throws IntrospectionException {
        JmxBean jmxBean = AnnotationUtils.getAnnotation(object.getClass(), JmxBean.class);
       
        MBeanInfo beanInfo = new MBeanInfo(object.getClass().getName(), 
                                           jmxBean.description(), 
                                           getAttributes(classIntrospector), 
                                           getConstructors(classIntrospector), 
                                           getOperations(classIntrospector), 
                                           getNotifications(object));
        return beanInfo;
    }, source_sentence: Adds a collaborator to this folder.

@param collaborator the collaborator to add.
@param role         the role of the collaborator.
@return info about the new collaboration.
sentences: final public function readUInt32()
    {
        if (PHP_INT_SIZE < 8) {
            // @codeCoverageIgnoreStart
            if ($this->isLittleEndian()) {
                list(, $lo, $hi) = unpack('S*', $this->read(4));
            } else {
                list(, $hi, $lo) = unpack('S*', $this->read(4));
            }
            return $hi * (0xffff+1) + $lo; // eq $hi << 16 | $lo
            // @codeCoverageIgnoreEnd
        } else {
            list(, $int) = unpack('L*', $this->read(4)) + array(0, 0);
            return $int;
        }
    }, public function add_on_empty($attribute, $msg)
	{
		if (empty($msg))
			$msg = self::$DEFAULT_ERROR_MESSAGES['empty'];

		if (empty($this->model->$attribute))
			$this->add($attribute, $msg);
	}, public BoxCollaboration.Info collaborate(BoxCollaborator collaborator, BoxCollaboration.Role role) {
        JsonObject accessibleByField = new JsonObject();
        accessibleByField.add("id", collaborator.getID());

        if (collaborator instanceof BoxUser) {
            accessibleByField.add("type", "user");
        } else if (collaborator instanceof BoxGroup) {
            accessibleByField.add("type", "group");
        } else {
            throw new IllegalArgumentException("The given collaborator is of an unknown type.");
        }

        return this.collaborate(accessibleByField, role, null, null);
    }, source_sentence: Register the router instance.

@return void
sentences: protected function registerRouter()
	{
		$this->app['router'] = $this->app->share(function($app)
		{
			return new Router($app['events'], $app);
		});
	}, @Override
    @Nullable
    public Long apply(@Nonnull Long partialAccountNumber) {
        checkNotNull(partialAccountNumber, "partialAccountNumber can't be null");
        boolean isEven = true;
        int total = 0;
        Long temp = partialAccountNumber;

        while (temp > 0) {
            long digit = temp % 10;
            if (isEven) {
                long multipliedDigit = digit * 2;
                total += isTwoDigit(multipliedDigit) ? sumUpDigits(multipliedDigit) : multipliedDigit;
            } else {
                total += digit;
            }
            temp /= 10;
            isEven = !isEven;
        }

        int check = total * 9 % 10;

        return partialAccountNumber * 10 + check;
    }, func (d *Driver) DiffSize(id string, idMappings *idtools.IDMappings, parent string, parentMappings *idtools.IDMappings, mountLabel string) (size int64, err error) {
	if d.useNaiveDiff() || !d.isParent(id, parent) {
		return d.naiveDiff.DiffSize(id, idMappings, parent, parentMappings, mountLabel)
	}
	return directory.Size(d.getDiffPath(id))
}
pipeline_tag: sentence-similarity
library_name: sentence-transformers
Likes: 0 | All-time downloads: 49
Created: 2025-07-03 19:56:55