MMTEB: Massive Multilingual Text Embedding Benchmark
Paper • 2502.13595 • Published • 47
_id stringlengths 2 6 | text stringlengths 4 46k | title stringclasses 1
value |
|---|---|---|
d1 | The SearchDatabase class that SphinxSearch extends was changed from REL1_31 to REL1_32. It now requires you to define doSearchTextInDB and doSearchTitleInDB methods.
See REL1_31 https://doc.wikimedia.org/mediawiki-core/REL1_31/php/classSearchDatabase.html
vs REL1_32 https://doc.wikimedia.org/mediawiki-core/REL1_32/php/... | |
d2 | you have to write below way because CTE is part of the SELECT not the UPDATE
update work_request
set name = name || '_old'
where exists (
with wr_double as
(select...)
select 1 from wr_double wd wd.name = work_request.name and wd.wr_id = work_request.id
); | |
d3 | A table view isn't really designed to display hierarchical views. What's supposed to happen is that you drill down (push a new view controller on the stack) to get to the next level of the hierarchy.
However, if your hierarchy is only as deep as you suggest, then you could have your items as headers and subitems as row... | |
d4 | It is not very clear what you are trying to do but:
*
*Every EF context can have each table and entity mapped only once
*It means if you load configuration for AssemblyA you cannot use configuration for AssemblyB
*It also means you cannot use default way how EF mapping is constructed inside OnModelCreating because... | |
d5 | Open returns a *sql.DB, a pointer to a sql.Db. Change the function signature to also return a *sql.DB:
func establish_db_connection() *sql.DB { | |
d6 | I am not sure if there is more elegant way but there are definitely some other ways...
I'd prefer if my initial view
controller isn't even instantiated until it completes
This is not a problem. All you have to do is to delete a UIMainStoryboardFile or NSMainNibFile key from the Info.plist which tells the UIApplicat... | |
d7 | I have changed my Google Play Services library version from 9.0.0 to 9.0.1 and it solved it. | |
d8 | There are a few considerations here. Firstly, as matt has said, objects are destroyed by formatting commands. Only use them if you are trying to achieve a pretty view of the properties of objects, otherwise use select.
I would argue that you would be doing that unnecessarily: why throw away information that you might l... | |
d9 | Use synchronous ajax call.Synchronous AJAX (Really SJAX -- Synchronous Javascript and XML) is modal which means that javascript will stop processing your program until a result has been obtained from the server. While the request is processing, the browser is effectively frozen.
function getFile(url) {
if (window.XML... | |
d10 | Why does the first example work but the second one emit that error?
When the function is called as Base64Encode(), the this context is implicitly set to window. However, when you call it as a method on Test.Base64Encode(), this will refer to Test and btoa grumps about that.
What's the correct way to fix this particul... | |
d11 | Once pointed to look in the right direction I found that I moved the the files/renamed the bundle and hadn't updated the call.
instead of
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
I should have had
@Scripts.Render("~/Content/bundles/jquery")
@Scripts.Render("~/Content/bundles/bootstr... | |
d12 | I think you don't have resolve in your webpack file.
Could you please try with the resolve config.
{
// ...
resolve: {
alias: {
'react': 'preact-compat',
'react-dom': 'preact-compat',
// Not necessary unless you consume a module using `createClass`
... | |
d13 | You are trying to print byte[] as a String which uses String.valueOf(bytes) and appears as something like: [B@23ab930d which is [B followed by the hashcode of the array. Hence different byte arrays have different string values. Compare these:
byte[]a=new byte[]{65};
System.out.println(new String(a));
=> A
System.out.pr... | |
d14 | You can mark default value "1" for the third field and then import the csv file. Or you can mark the fields as nullable that are not included in the csv file, then execute a query to update the null values. | |
d15 | You'll be wanting the - (void)setStatusBarHidden:(BOOL)hidden animated:(BOOL)animated on the UIApplication class.
Something like this:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES];
That should hide the status bar with a nice fade animation.
A: Joining the discusion late, but I think I can s... | |
d16 | Use absolute site URI routing whereby your sound file address starts with a / and so indicates the path from the root of the URL.
For instance:
Your current output file is, say, www.site.com/output/file.html, and you want to load a sound from, say, www.site.com/sounds/laugh.mp3 then you simply use the /sounds/laugh.mp... | |
d17 | You are calling urllib.request.urlopen(req).read, correct syntax is: urllib.request.urlopen(req).read() also you are not closing the connection, fixed that for you.
A better way to open connections is using the with urllib.request.urlopen(url) as req: syntax as this closes the connection for you.
from bs4 import Beauti... | |
d18 | I would suggest avoiding initial component setup in beforeAll/beforeEach functions. Each test case should run in isolation and not be affected by operations executed in other tests.
Instead, create a helper function with that logic and call it on every test.
import React from 'react';
import Counter from './Counter';
i... | |
d19 | The two dynamic values are represented as fields, not properties. And since you can only bind to properties in XAML, you'll need to create a strong-typed data structure with your two properties, and select the values into that.
Something like:
class V
{
public string tag1 { get; set; }
public string tag2 { ge... | |
d20 | I figured it out. The Objective C to Swift translator wasn't working as expected so I just coded it in Objective C and everything works, although the documentation on the Azure website needs to be updated to iOS10. | |
d21 | fixed it:
items.sort(key = lambda x:((float)(x.price), (int)(x.amount))) | |
d22 | Probably too convoluted and not very idiomatic, but here's an option anyway. Run your command as a python subprocess, analysed the output and decide what to do after so many retries. For example:
rule flaky_rule:
input:
infile = "{sample}/foo.txt"
output:
outfile = "{sample}/bar.txt"
params:... | |
d23 | you can use the format string in for the date
string url = string.Format("someUrl/SomeControllerName/WriteLogFile/{0}/{1}", currentId, DateTime.Now.ToString("MM-dd-yyyy"));
and add an entry in to the routes table to route it to the appropriate controller and action
routes.MapRoute("SomeRoutename",
"Som... | |
d24 | Found the solution! It is a bug from mapbox.
You have to use the version 1.13.0. | |
d25 | Nothing stops you from creating claims to store extra information in your token if they can be useful for your client.
However I would rely on JWT only for authentication (who the caller is). If you need to perform authorization (what the caller can do), look up the caller roles/permissions from your persistent storage... | |
d26 | If clicking the link throws an error, it is because the link provided is incorrect, but since nothing happens, the problem is probably caused by a wrong datatype in your table.
Go to the design view of your table, and set the datatype to Hyperlink. | |
d27 | The first request uses v1 of the Zipkin api while the second uses v2 (see https://github.com/openzipkin/zipkin/issues/1499 for the v2 specification). Spans are broken up by kind (SERVER and CLIENT) instead of having client receive, server receive, client send, and server send annotations (hence why there are more spans... | |
d28 | Well I'm not sure if you only load the DLLs without registering them in the system registry. However your first EDIT shows an error triggered by attempts to access some stack of the registry, so I assume you are. In that case, I simply use a batch file (which fires commands in the CMD console) to register my DLLs as I ... | |
d29 | Qt needs it because it is a library that can be dynamically loaded. Users can compile and link without having to worry about implementation details. You can at runtime use many versions of Qt without having to recompile. This is pretty powerful and flexible. This wouldn't be possible if private object instances wer... | |
d30 | You can get headers from Request object in your controller methods.
use Symfony\Component\HttpFoundation\Request;
public function someAction(Request $request){
$request->headers //get headers
} | |
d31 | I managed to make it works. For those who want to know, please read this.
Firstly, change the Flume version. I use now flume 1.7.0 https://flume.apache.org/releases/1.7.0.html. But maybe a newer version would work, I don't want to break it down :)
Secondly, clone this repo https://github.com/cloudera/cdh-twitter-exampl... | |
d32 | You can use conditional aggregation in a single query:
SELECT VisitDate = LEFT(Datename(month,v.VisitDate),3),
COUNT( distinct i.InspectorID) AS TotalUsed,
COUNT(distinct case when i.OfficeID IN (5) then i.InspectorID end) AS TotalContractorUsed
FROM Visits v
INNER JOIN InspectionScope insp ON insp... | |
d33 | I suggest to add a con.BeginTransaction() before the ExecuteNonQuery and a con.Commit() after the ExecuteNonQuery.
A: You should open the connection before you make the command instance, like this:
void metroButton1_Click(object sender, EventArgs e)
{
try
{
con = new SqlConnection(cs.DBcon);
c... | |
d34 | Gitweb at kernel.org allows to view diff between arbitrary commits, see for example the following link for diff between v2.6.32-rc6 and v2.6.32-rc7:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;hp=refs/tags/v2.6.32-rc6;h=refs/tags/v2.6.32-rc7
(use patch link to get plain patch that you ... | |
d35 | to convert json array to tuple:
feed = LOAD '$INPUT' USING com.twitter.elephantbird.pig.load.JsonLoader() AS products_json;
extracted_products = FOREACH feed GENERATE
products_json#'id' AS id:chararray,
products_json#'name' AS name:chararray,
products_json#'colors' AS colors:{t:(i:chararray)},
products_json#'sizes' AS... | |
d36 | INSERT:
insert into myTable (col1) VALUES (to_char(systimestamp, 'dd-mon-yyyy hh.mi.ss.ff4 AM') );
SELECT:
select to_timestamp(col1, 'dd-mon-yyyy hh.mi.ss.ff4 AM') from myTable ;
But it is much better to store the data directly as a timestamp.
Then you can compare the values or modify them directly.
create table m... | |
d37 | I think your test would be just as valid with two windows as it would with one window and two tabs.
You can call the open browser keyword multiple times, giving each window its own unique alias. You can then switch between them with the switch browser keyword and the appropriate alias.
Example
*** Settings ***
Library ... | |
d38 | First using flatMap create Stream<SimpleEntry<Integer, EHourQuarter>, Double> then using toMap collect as Map<SimpleEntry<Integer, EHourQuarter>, Double>. Then map into you DTO class.
List<QuarterlyOccupancyDTO> result = map.entrySet().stream()
.flatMap(d -> d.getValue().entrySet().stream()
.flatMap... | |
d39 | If I believe issue 1246, you need to have git installed for the hg convert extension to work.
Even with Git installed, you might experience some other issues with the import, in which case you could consider other alternatives such as:
*
*converting the git repo to a svn one, and then importing that svn repo into a ... | |
d40 | Use 13.6.1 BEGIN ... END Compound-Statement Syntax.
Try (maybe you need to use DELIMITER):
DELIMITER //
CREATE TRIGGER `update_queue_after_insert` AFTER INSERT ON `encounter_note`
FOR EACH ROW
BEGIN -- <- BEGIN
DECLARE is_exist INT;
SET is_exist = ( SELECT count(*) FROM practice_last_updated_module WHERE practice_... | |
d41 | You can achieve this using the Workbook_SheetActivate event:
http://msdn.microsoft.com/en-us/library/office/ff195710.aspx
if you put this code in your ThisWorkbook Object, then each time you change the active worksheet, it will...
*
*Cycle through all open workbooks with a different name
*Look for a worksheet with... | |
d42 | Switch your main and playground script tags. The order matters:
<script src="scripts/playground.js"></script>
<script src="scripts/main.js"></script> | |
d43 | If I understand the question correctly, your issue is with image.open(), I believe the problem is that you are treating the directory and file name as strings when you join them together:
path1 = dir + img1
Instead you should try using the os.path module to combine the two:
path1 = os.path.join(dir, img1) | |
d44 | Assuming that no file name a newline:
find . -type f -printf '%s %p\n' \
| sort -nr \
| while read -r size file; do
if ! [ -e "dest/${file#./*/}" ]; then
cp "$file" "dest/${file#./*/}";
fi;
done
The output of find is a list of "filesize path":
221 ./dir1/a
1002 ./dir1/b
11 ./dir2/a
Then we sort t... | |
d45 | The logic in your answer is correct but displaying the path would require you to push the successful links onto a stack or onto the beginning of a list.
If you can only add to the end of a list (as is the case with trying to just Console.WriteLine each step) then you can do this without remembering (or returning) the p... | |
d46 | So this was a bug in the integration they fixed in 2.01.10. | |
d47 | These conditions can be prioritized using a case expression in order by with a function like row_number.
select A,B,frequency,timekey
from (select t.*
,row_number() over(partition by A order by cast((B = 'unknown') as int), B) as rnum
from tbl t
) t
where rnum = 1
Here for each group of A rows,... | |
d48 | With an INNER JOIN, it makes no difference if predicates are specified in the JOIN or WHERE clauses. The queries are semantically identical so the SQL Server optimizer should generate the same (optimal) executional plan. You will get the same performance as a result. | |
d49 | Slice a 2D Array
*
*It is assumed that the data starts in A1 and has a row of headers.
*You have to use 7 instead of 8 to copy column G instead of column H.
*[A1].CurrentRegion.Rows.Count may yield different results depending on which worksheet is active, so you should rather qualify the range: rp.Range("A1").Curre... | |
d50 | Change your functionGeneratingTheError function to return the chained promise like below:
function functionGeneratingTheError() {
var getTokenCallPayload = {
"client_id" : clientId,
"client_secret" : clientSecret,
"refresh_token" : refreshToken,
"grant_type" : "refresh_token"
... | |
d51 | You can query the "through" table directly with the ORM:
UserProfile.favorite_books.through.objects.filter(book_id=book.id).count()
A: You'll need to replace appname_* with the name of the M2M table in your DB, but you can do something like this:
from django.db import connections
cursor = connections['default'].curs... | |
d52 | You can use discard in purrr
purrr::discard(df, ~any(.x$Var1 == 2))
#Or using keep
#purrr::keep(df, ~any(.x$Var1 != 2))
#[[1]]
# Var1 Var2
#1 1 2
#2 1 3
#3 1 4
#4 1 5
#[[2]]
# Var1 Var2
#1 3 2
#2 3 3
#3 3 4
#4 3 5
Or Filter in base R :
Filter(function(x) any(x$Var1 !... | |
d53 | It's not that difficult once you understand why the second form isn't shown when page is loaded. There's nothing to do with ASP itself, it's rather due to CSS style set to "display: none;" and will only be active once the first Option Select has been filled.
Here is a full sample of what you're after, implemented in Se... | |
d54 | I would recommend the use of an IIFE (immediatly invoked function expression):
var coolObj=(function(){
var public={};
var nonpublic={};
nonpublic.a=0;
public.getA=function(){nonpublic.a++;return nonpublic.a;};
return public;
})();
Now you can do:
coolObj.getA();//1
coolObj.getA();//2
coolObj.a;//undefined
coolObj.no... | |
d55 | 1) Windows Sysinternals VMMap can give you quite good insight into the virtual memory layout in a particular process. If comparing visualizations provided by this tool on the 2 PCs does not help then...
2) ...Google: "virtual memory configuration windows 7" should throw you quite quickly in the right direction
3) Also ... | |
d56 | Declare data as an empty array; if you don't do it will be undefined until the API response is completed. If you want to know when the response is actually coming just use tap. So If you want to call importData() after API response is received then call this.importData() method inside subscribe like
// declare as empty... | |
d57 | Try this below code :
$email = 'example@email.com';
$customer = Mage::getModel('customer/customer');
$customer->setWebsiteId(Mage::app()->getWebsite()->getId());
$customer->loadByEmail(trim($email));
Mage::getSingleton('customer/session')->loginById($customer->getId()); | |
d58 | $list = json_decode($jsonList, true);
foreach ($list['product'] as $key => $product) {
if ($product['cartID'] == $remove_cartid) {
unset($list['product'][$key]);
}
}
$jsonList = json_encode($list); | |
d59 | In pseudo code using information_schema tables:
$rows = "SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'yourDBName'
AND ENGINE LIKE 'engineA'";
foreach ($rows as $table) {
$query = 'ALTER TABLE '.$table.' ENGINE = engineB';
} | |
d60 | If I understand you correctly you would like to get the distinct customers from your projects ?
In this case I think something like this should work (this should give you the dictinct project IDs from this criteria - maybe there is a way to get the projects directly - but I can't test this right now:
ICriteria criteria... | |
d61 | So finally I figured out the problem, if anyone is looking for an answer.
Tensorflow does not have complete GPU implementation of Adagrad optimizer as of now. ResourceSparseApplyAdagradV2 operation gives error on GPU, which is integral to embedding layer. So it can not be used with embedding layer with data parallelism... | |
d62 | Use the JsonProperty attribute :
[JsonProperty(PropertyName = "cost")]
public int Cost
{
get
{
return cost;
}
private set { cost = value; }
}
[JsonProperty(PropertyName = "igloo_id")]
public int Id
{
get
{
return igloo_id;
... | |
d63 | It is now possible to using bindings even on elements that aren't derived from FrameworkElement however the property of the element being bound must be defined as a DependencyProperty which Header is not.
Since Header is simply a place marker for any content to be placed in the header you could simply do this:-
<DataGr... | |
d64 | I fixed it. I had code that was reading the version out of MANIFEST.MF from an InputStream returned by URL.openStream():
String manifestPath = classPath.substring(0, webInfIndex) +
"/META-INF/MANIFEST.MF";
// DON'T DO THIS!!!
// openStream() returns an InputStream that never gets closed.
Manifest manifest = ne... | |
d65 | Well, you can add numbers on custom markers using the following tutorial:
Link
and after that attach infowindow to each custom marker:
Link | |
d66 | This is pure speculation, but sometimes you need to set a frame explicitly. (e.g. when adding a custom button to a UIBarButtonItem) Try adding a line
animation1.frame = CGRectMake(0,0,50,50); | |
d67 | The outer join will return all columns from both tables.Also,we got to fill null values in qty_users as sum will also return null.
Finally, we can select using coalsece function,
from pyspark.sql import functions as F
newdf = df1.join(df2,(df1.pk==df2.pk2) & (df1.num_pk==df2.num_pk2) & (df1.num_id==df2.num_id2),'oute... | |
d68 | For custom count by intervals, you can create an User Defined Aggregate (UDA). Read my blob posts to avoid the caveats:
UDF deep dive: http://www.doanduyhai.com/blog/?p=1876
UDF/UDA best practices & caveats: http://www.doanduyhai.com/blog/?p=2015 | |
d69 | Tables inside dialogs work just fine in Vuetify:
var app = new Vue({
el: '#app',
template: '#main',
vuetify: new Vuetify(),
data:
{
dlgVisible: false,
header:
[
{
value: 'fname',
text: 'First Name' ,
class: 'font-weight-b... | |
d70 | If I understand right, you just need to use Or keyword and search thru all the kw-fields
sqlite> select issue,url,steps from help where kw1='ie' or kw2='ie' or kw3='ie' or kw4='ie' or kw5='ie' or kw6='ie' or kw7='ie' or kw8='ie' or kw9='ie' or kw10='ie' or kw11='ie' or kw12='ie'; | |
d71 | Since you are using LINQ to SQL you should use Convert.ToInt32 for converting to string to number, so your query would be:
var bb =(from c in Office_TBLs select Convert.ToInt32(c.CodeNumber)).Max();
See: Standard Query Operator Translation
C# casts are supported only in projection. Casts that are used
elsewhere are... | |
d72 | I'm not sure why you don't want to use strftime, but if you absolutely wanted a different way, try altering your last three lines to this:
print(f"Yesterday : {yesterday.day}/{yesterday.month}/{yesterday.year}")
print(f"Today : {today.day}/{today.month}/{today.year}")
print(f"Tomorrow : {tomorrow.day}/{tomorrow.month}/... | |
d73 | As one-liner :
$ perl -F'/' -lane 'print join "/", @{F[0..4]}' <<< "/abcd/prod/Cid/1234/Did"
As a script :
while (<>) {
chomp $_;
my @F = split(m[/], $_, 0);
print join('/', @F[0..4]), "\n";
}
Output :
/abcd/prod/Cid/1234 | |
d74 | As Mephy says, implementing IEquatable<User> would make this simpler - at that point, you could just perform a join:
var changes = usersOld.Join(usersNew, o => o.Id, n => n.Id,
(o, n) => new { Old = o, New = n })
.Where(pair => !pair.Old.Equals(pair.New));
Then wheneve... | |
d75 | You are looking for text-transform: uppercase and nth-child selector.
Something like this:
header nav ul li:nth-child(-n+2) {
text-transform: uppercase;
}
<header>
<h1>Title</h1>
<nav>
<ul>
<li><a href="#">Developers</a></li>
<li><a hre... | |
d76 | Have you tried using sys.argv instead of argparse? You can do something like that then:
import sys
dict = {}
tmp = []
key = ''
for arg in sys.argv:
if arg[0] == '-':
if tmp != []:
dict[key] = tmp
tmp = []
key = arg
if key == '--args':
dict[key] = sys.argv... | |
d77 | Unfortunately they cannot. All of the parameters that you can configure through the Google Kubernetes Engine API are here.
If you want to customize the nodes beyond what is offered through the API you can create your own instance template as described in this stackoverflow answer. The downside is that you will no long... | |
d78 | Here's some code that should help you get started.
function addMarkers(map, locations) {
$.each(locations, function(index, location) {
var marker = new google.maps.Marker({
position: new google.maps.LatLng(location[0], location[1]),
map: map,
icon: 'http://html.realia.bya... | |
d79 | There are many solutions for your problem, but I'm gonna try to focus on the most mature one. I assume you are using windows as your environment.
You said you were running your projects on localhost, which is where your first mistake is.
Localhost is nothing but a form of weird domain name you specify. When you request... | |
d80 | You're trying to sample a texture (on line 4) outside of any function. Where do you expect this code to run, in the vertex shader (VS) or the pixel shader (PS)?
Remove line 4 and change your pixel shader to:
return txDiffuse.Sample(samLinear, input.Tex);
You seem to have some structures that aren't used at all (VSINPU... | |
d81 | Here is a conceptual example for you.
It covers one-to-many scenario similar to yours for Order and OrderDetails.
SQL
-- DDL and sample data population, start
USE tempdb;
GO
CREATE TABLE #orders (
OurOrderID INT IDENTITY PRIMARY KEY,
OrderID CHAR(5) NOT NULL,
CustomerID CHAR(5) NOT NULL,
Orde... | |
d82 | It seems FNH is confused because you seem to map the same object (ChildEntity) to two different tables, if I'm not mistaken.
If you don't really need the two lists to get separated, perhaps using a discriminating value for each of your lists would solve the problem. Your first ChildEntity list would bind to the discrim... | |
d83 | Replace:
ActiveWorkbook.Connections("Query - Entries").Refresh
with:
With ActiveWorkbook.Connections("Query - Entries")
.OLEDBConnection.BackgroundQuery = False
.Refresh
End With | |
d84 | Try using properties.x then all values are extracted from the properties array.
Example:
df.withColumn("x_values",col("properties.x")).show(10,False)
#or by using higher order functions
df.withColumn("x_values",expr("transform(properties,p -> p.x)")).show(10,False)
#+---+-------------------------+--------+
#|id |prop... | |
d85 | Set both columns in a single foreach loop. | |
d86 | That data is already in the store. The point is that RTK Query manages the data for you - you don't have to write a slice by hand any more. Just use the hook in your component and you're done. | |
d87 | if this is a browser activity, a better way to do this may be a javascript setInverval() with an ajax call to a php function.
Otherwise, I'd recommend running the PHP script via CRON. There's no other way that I know to run PHP asynchronously, which is probably what you're trying to accomplish. | |
d88 | db.getCollection("commentsURL").aggregate([
{$project:
{
_id:1,
url2:{$arrayElemAt:[{$split:["$url", "/"]}, 4]},
url3:{$arrayElemAt:[{$split:["$url", "/"]}, 5]}
}
},
{ $addFields: { full_name: { $concat: [ "$url2", "/", "$url3" ] } } }, ... | |
d89 | You could use the Focused event instead of TextChanged event.
<StackLayout>
<Entry ClassId="1" x:Name="myWord1" Focused="EntryFocused"/>
<Entry ClassId="2" x:Name="myWord2" Focused="EntryFocused"/>
</StackLayout>
private void EntryFocused(object sender, FocusEventArgs e)
{
va... | |
d90 | After some research, I've discovered you can make use of a .runsettings file (documentation).
You can customize your code coverage results within this file like so:
<CodeCoverage>
<ModulePaths>
<Exclude></Exclude>
</ModulePaths>
<Functions>
<Exclude>
<Function>.*c__DisplayClass.*</Function>
</Ex... | |
d91 | The flash messages are stored in the user's session. If a user opens up two browser windows. And performs some action on one window that causes a flash, but the user reloads a page in the second browser before the first one redirects the second one will show the flash.
With that said does that sound like your issue? Do... | |
d92 | I hope this answer helps you or anyone else looking for a solution. This one worked for me.
I'm trying to do the same. I have a page that calculates shipping on an iframe and i want it to show a loading gif image while the shipping cost loads as an xml from my shipping provider.
The IFRAME is covered with a DIV where t... | |
d93 | Close to a duplicate of may other questions here, like this one.
You need to set the types used in your chain in you polkadot.js API consuming apps: https://polkadot.js.org/docs/api/start/types.extend | |
d94 | REPLACE is used when you want to have an altogether different columns to your table.If not it is better to rename the column_name with the CHANGE option in the alter statement.
A: The ALTER TABLE <TableName> REPLACE COLUMNS removes all existing columns and adds the new set of columns.
ALTER TABLE <TableName> REPLACE C... | |
d95 | This assumes SQL Server, but the SqlParameter type could be changed to match the connection type. As items are added to this list the data type would have to be identified.
Imports System.Data.SqlClient
Dim Params As List(Of SqlParameter)
Public Property ParameterList() As List(Of SqlParameter)
Ge... | |
d96 | Your upload.php-file is already in the api-folder, just change this line:
define('DESTINATION_FOLDER','../api/upload/');
to:
define('DESTINATION_FOLDER','upload/');
And it should work. You have quite a few weird variables, unused variables etc., so there might be other things wrong as well.
A: I've managed to make it ... | |
d97 | As per my knowledge, one approach solving the issue is using Construct using below code
cfg.CreateMap<Address, AddressDto>();
cfg.CreateMap<AddressExtended, AddressExtendedDto>();
cfg.CreateMap<IAddress, IAddressDto>().ConstructUsing((IAddress addressDto) =>
{
if (addressDto is AddressExtended) return Mapper.Map<Ad... | |
d98 | I wonder if a good way might be to go to mxtoolbox, do a blacklist test, then get a list of blacklist sites and see if you can contact them to get a list?
I suspect that such companies may consider those datasets their intellectual property and probably won't publish these - it may not be possible.
Good luck!
Also Akis... | |
d99 | Emacs lisp only has dynamic scoping. There's a lexical-let macro that approximates lexical scoping through a rather terrible hack.
A: Found another solution with lexical-let
(defun foo (n)
(lexical-let ((n n)) #'(lambda() n)))
(funcall (foo 10)) ;; => 10
A: Emacs 24 has lexical binding.
http://www.emacswiki.or... | |
d100 | toolbox-loader only imports the _colors.scss file (see first code line)
you have to import the _globals.scss file manually (or fork toolbox-loader). |
The dataset is a collection of natural language queries and their corresponding response which may include some text mixed with code snippets. The task is to retrieve the most relevant response for a given query.
| Task category | t2t |
| Domains | Programming, Written |
| Reference | https://arxiv.org/abs/2407.02883 |
You can evaluate an embedding model on this dataset using the following code:
import mteb
task = mteb.get_task("StackOverflowQA")
evaluator = mteb.MTEB([task])
model = mteb.get_model(YOUR_MODEL)
evaluator.run(model)
To learn more about how to run models on mteb task check out the GitHub repository.
If you use this dataset, please cite the dataset as well as mteb, as this dataset likely includes additional processing as a part of the MMTEB Contribution.
@misc{li2024coircomprehensivebenchmarkcode,
archiveprefix = {arXiv},
author = {Xiangyang Li and Kuicai Dong and Yi Quan Lee and Wei Xia and Yichun Yin and Hao Zhang and Yong Liu and Yasheng Wang and Ruiming Tang},
eprint = {2407.02883},
primaryclass = {cs.IR},
title = {CoIR: A Comprehensive Benchmark for Code Information Retrieval Models},
url = {https://arxiv.org/abs/2407.02883},
year = {2024},
}
@article{enevoldsen2025mmtebmassivemultilingualtext,
title={MMTEB: Massive Multilingual Text Embedding Benchmark},
author={Kenneth Enevoldsen and Isaac Chung and Imene Kerboua and Márton Kardos and Ashwin Mathur and David Stap and Jay Gala and Wissam Siblini and Dominik Krzemiński and Genta Indra Winata and Saba Sturua and Saiteja Utpala and Mathieu Ciancone and Marion Schaeffer and Gabriel Sequeira and Diganta Misra and Shreeya Dhakal and Jonathan Rystrøm and Roman Solomatin and Ömer Çağatan and Akash Kundu and Martin Bernstorff and Shitao Xiao and Akshita Sukhlecha and Bhavish Pahwa and Rafał Poświata and Kranthi Kiran GV and Shawon Ashraf and Daniel Auras and Björn Plüster and Jan Philipp Harries and Loïc Magne and Isabelle Mohr and Mariya Hendriksen and Dawei Zhu and Hippolyte Gisserot-Boukhlef and Tom Aarsen and Jan Kostkan and Konrad Wojtasik and Taemin Lee and Marek Šuppa and Crystina Zhang and Roberta Rocca and Mohammed Hamdy and Andrianos Michail and John Yang and Manuel Faysse and Aleksei Vatolin and Nandan Thakur and Manan Dey and Dipam Vasani and Pranjal Chitale and Simone Tedeschi and Nguyen Tai and Artem Snegirev and Michael Günther and Mengzhou Xia and Weijia Shi and Xing Han Lù and Jordan Clive and Gayatri Krishnakumar and Anna Maksimova and Silvan Wehrli and Maria Tikhonova and Henil Panchal and Aleksandr Abramov and Malte Ostendorff and Zheng Liu and Simon Clematide and Lester James Miranda and Alena Fenogenova and Guangyu Song and Ruqiya Bin Safi and Wen-Ding Li and Alessia Borghini and Federico Cassano and Hongjin Su and Jimmy Lin and Howard Yen and Lasse Hansen and Sara Hooker and Chenghao Xiao and Vaibhav Adlakha and Orion Weller and Siva Reddy and Niklas Muennighoff},
publisher = {arXiv},
journal={arXiv preprint arXiv:2502.13595},
year={2025},
url={https://arxiv.org/abs/2502.13595},
doi = {10.48550/arXiv.2502.13595},
}
@article{muennighoff2022mteb,
author = {Muennighoff, Niklas and Tazi, Nouamane and Magne, Loïc and Reimers, Nils},
title = {MTEB: Massive Text Embedding Benchmark},
publisher = {arXiv},
journal={arXiv preprint arXiv:2210.07316},
year = {2022}
url = {https://arxiv.org/abs/2210.07316},
doi = {10.48550/ARXIV.2210.07316},
}
The following code contains the descriptive statistics from the task. These can also be obtained using:
import mteb
task = mteb.get_task("StackOverflowQA")
desc_stats = task.metadata.descriptive_stats
{}
This dataset card was automatically generated using MTEB