row_id int64 0 48.4k | init_message stringlengths 1 342k | conversation_hash stringlengths 32 32 | scores dict |
|---|---|---|---|
15,973 | I want a VBA code when run will take me from active page to sheet "Start Page" | 43f5b5cf7e95353d88bec488b50e9f04 | {
"intermediate": 0.15604236721992493,
"beginner": 0.6742947697639465,
"expert": 0.16966287791728973
} |
15,974 | I've an asp.net core project, edit this web.config to give detailed server-side errors: "<configuration>
<location path=”." inheritInChildApplications=“false”>
<system.webServer>
<handlers>
<add name=“aspNetCore” path=“" verb="” modules=“AspNetCoreModuleV2” resourceType=“Unspecified” />
</handlers>
<aspNetCore processPath=“dotnet” arguments=“.\cryptotasky.dll” stdoutLogEnabled=“false” stdoutLogFile=“.\logs\stdout” hostingModel=“inprocess” />
</system.webServer>
</location>
</configuration>
<!–ProjectGuid: aaafe274-a1b6-4497-a08a-61f95a77ce59–>" | 49c30edf6d450c327f0cad3af8283f31 | {
"intermediate": 0.3862472474575043,
"beginner": 0.2654237747192383,
"expert": 0.34832894802093506
} |
15,975 | I've an asp.net core webapp, this is my web.config file: "<configuration>
<location path=”." inheritInChildApplications=“false”>
<system.webServer>
<handlers>
<add name=“aspNetCore” path=“" verb="” modules=“AspNetCoreModuleV2” resourceType=“Unspecified” />
</handlers>
<aspNetCore processPath=“dotnet” arguments=“.\cryptotasky.dll” stdoutLogEnabled=“false” stdoutLogFile=“.\logs\stdout” hostingModel=“inprocess” />
</system.webServer>
</location>
</configuration>
<!–ProjectGuid: aaafe274-a1b6-4497-a08a-61f95a77ce59–>" add a code to show detailed error messages. both of them. | 27c69e0c87c4cb436be050f48c01f653 | {
"intermediate": 0.42740947008132935,
"beginner": 0.2471621334552765,
"expert": 0.32542842626571655
} |
15,976 | ты знаешь про themeProvider в material UI? | ad5ca35ed9fea2bc935d452bb80c64b3 | {
"intermediate": 0.349742591381073,
"beginner": 0.39943626523017883,
"expert": 0.25082114338874817
} |
15,977 | the ntfs drive i partitioned in linux does not get a drive letter, how do I solve that? | e3fa038aca7a5e90de1115a14ae94c67 | {
"intermediate": 0.386237233877182,
"beginner": 0.33844226598739624,
"expert": 0.27532052993774414
} |
15,978 | What is the difference between univariate and multivariate time series analysis? How to identify and explain with examples. | c82a9452b9f311f45a231f595c0dcf18 | {
"intermediate": 0.31951236724853516,
"beginner": 0.2909409701824188,
"expert": 0.38954663276672363
} |
15,979 | I want a VBA code that when run opens a side Menu Form
The Menu will show the sheet names listed below.
When I click on the sheet name, the Menu should close and the sheet page click on should be activated.
The Menu will also have a Close Menu link that when clicked on closes the open Menu.
Start Page
Providers
Job Request
Reminders
Documents
Contacts
Notes
Permit Data
Permit DBS
Work Permit
ITEMPR
PREQUEST
PORDER
ADMIN
LIST
Close Menu | 5532141e8a1aebdc330b99a8be600d6f | {
"intermediate": 0.5495347380638123,
"beginner": 0.16982051730155945,
"expert": 0.2806446850299835
} |
15,980 | I have this object: const INDOOR_CAMERA_MODELS = {
"SimpliCam": "SS001",
"videodoorbell": "SS002",
"SimpliCam": "SS003",
"shield": "SSOBCM4",
"dagger": "SSOBCM4",
"Wireless Indoor Camera": "scout",
}; | 699a35f7e885dd250d45153b2c91f65c | {
"intermediate": 0.380616158246994,
"beginner": 0.3768514096736908,
"expert": 0.24253249168395996
} |
15,981 | приведи пример mobx authentication example | f1503182a02b1cd4ba24c6c9e7e73384 | {
"intermediate": 0.3146250247955322,
"beginner": 0.2918941378593445,
"expert": 0.3934808373451233
} |
15,982 | Let’s say we have closing prices time series data and their technical indicators calculated. We want to extract now 200 more features from it. What would be those features? Explain briefly what they are and why they were chosen. Suppose we wanna use those features for machine learning. | 93eebf13df9e6042eb57f43e0499dde2 | {
"intermediate": 0.2216220200061798,
"beginner": 0.14745183289051056,
"expert": 0.6309261918067932
} |
15,983 | write an email to a colleague to congratulate his 1 year anniversary of his role | 39881549d770b5a9033e8ed4723e4848 | {
"intermediate": 0.33037522435188293,
"beginner": 0.2548976540565491,
"expert": 0.4147271513938904
} |
15,984 | реализуй layout для react приложения с toolbar и footer с помощью material ui | 68869f7f0503eb0b7ba961ffbe51fed9 | {
"intermediate": 0.344679057598114,
"beginner": 0.33822301030158997,
"expert": 0.317097932100296
} |
15,985 | I want a webgui dstat page for my website like dstat.cc or nload but a web gui of all incoming packets and bandwidth coming to my server per second in a web gui. | 1218981a6a2d185bd0e77413207cccf8 | {
"intermediate": 0.5561579465866089,
"beginner": 0.17912261188030243,
"expert": 0.2647194266319275
} |
15,986 | this is my model
class Employee_Profile(MPTTModel):
choice = [
('نعم', 'نعم'),
('لا', 'لا'),
]
user = models.ForeignKey(User, on_delete=models.CASCADE)
action_creator =models.CharField(max_length=250, null=True, blank=True)
rawaf_id = models.IntegerField(null=True, blank=True, unique=True)
iqama_no = models.IntegerField(null=True, blank=True, unique=True)
full_name = models.CharField(max_length=250, null=True, blank=True)
parent = TreeForeignKey('self', on_delete=models.CASCADE, null=True, blank=True, related_name='children')
job_name = models.CharField(max_length=250, null=True, blank=True)
oc_level = models.IntegerField(null=True, blank=True)
levels_nt_show = models.IntegerField(null=True, blank=True, default=0)
his_chart = TreeForeignKey('self', on_delete=models.CASCADE, null=True, blank=True, related_name='hischart')
on_work = models.CharField(max_length=250, null=True, blank=True, choices=choice, default='نعم')
def __str__(self):
return ", ".join([str(self.job_name), str(self.full_name)])
class MPTTMeta:
verbose_name="rawaf_id"
ordering = ['rawaf_id']
and this is my views
@login_required(login_url='login')
def orgstructure(request):
data = get_user_data(request)
no_parent = Employee_Profile.objects.filter(~Q(rawaf_id__in=[0,1,11110000]), parent=None, on_work = 'نعم')
no_parent_count = no_parent.count()
try:
employee_profile = Employee_Profile.objects.all()
queryset = employee_profile.get_descendants(include_self=True).filter(~Q(rawaf_id=11110000), ~Q(parent=None), oc_level__lte=4, on_work = 'نعم').order_by('-oc_level','-job_name')
# Add the ancestors of each employee to the queryset
for employee in queryset:
employee.ancestors = employee.get_ancestors()
except Employee_Profile.DoesNotExist:
# Handle the case when there is no Employee_Profile for the request.user
# You can redirect to another view, show an error message, or create a default Employee_Profile
return redirect('no_permission')
context = {
**data,
'employees':queryset,
'no_parent':no_parent,
'no_parent_count':no_parent_count,
'employee_profile':employee_profile,
}
if request.user.is_staff:
return render(request, 'orgstructure/organization_structure.html', context)
else:
return redirect('no_permission')
so i get this error
get() returned more than one Employee_Profile -- it returned 2! | b7eb096babc169641b506f9108bb39c5 | {
"intermediate": 0.3752281963825226,
"beginner": 0.435956746339798,
"expert": 0.1888151317834854
} |
15,987 | Can you write a complete skeleton program that a programmer can use to code a game called "Duke" from Catalyst that uses the Monte Carlo search algorithm to find the best move. The program should be written in C#. | 2ed9af713aef3edde0463430286c759a | {
"intermediate": 0.24765066802501678,
"beginner": 0.12393711507320404,
"expert": 0.6284121870994568
} |
15,988 | audio out of mixer is in 1 channel | 47d09746d52561a7af4a0ec2d34a7f92 | {
"intermediate": 0.3625016510486603,
"beginner": 0.26582276821136475,
"expert": 0.37167561054229736
} |
15,989 | The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being returned. Valid decimal values for RGB are 0 - 255. Any values that fall out of that range must be rounded to the closest valid value.
Note: Your answer should always be 6 characters long, the shorthand with 3 will not work here.
The following are examples of expected output values:
kata.rgb(255, 255, 255) -- returns FFFFFF
kata.rgb(255, 255, 300) -- returns FFFFFF
kata.rgb(0, 0, 0) -- returns 000000
kata.rgb(148, 0, 211) -- returns 9400D3 | bd84a9d34aac8416b0a853c4cfdc05a1 | {
"intermediate": 0.3702780604362488,
"beginner": 0.26242828369140625,
"expert": 0.36729365587234497
} |
15,990 | como recargar slash commands discord.js | 65ec311d9b5c8d42c6c482639e769b84 | {
"intermediate": 0.33617517352104187,
"beginner": 0.42325809597969055,
"expert": 0.24056676030158997
} |
15,991 | yo | 64145a62decf6b3185f72c49ca22e32a | {
"intermediate": 0.34756919741630554,
"beginner": 0.2755926549434662,
"expert": 0.37683817744255066
} |
15,992 | rust struct serde field name alias | f47b0e4e5a278df1c9712c806dcdba56 | {
"intermediate": 0.35622283816337585,
"beginner": 0.27880924940109253,
"expert": 0.3649679124355316
} |
15,993 | How to make an ios shortcut that gets a url and checks if the result is an image or text, and copies that image or text to the clipboard | 8fa16c17740164a428e7a318e5adcefc | {
"intermediate": 0.4457802176475525,
"beginner": 0.21548543870449066,
"expert": 0.33873438835144043
} |
15,994 | как мне заменить рекурсивную функцию на Array.prototype.reduce() в этом коде:
let a = [ 0.0, 0.0, 0.0 ]
let b = [ 1.0, 0.0, 0.0 ]
let c = [ 0.5, 0.0, 0.8 ]
let ab = [];
let bc = [];
let ac = [];
let arrayTriangle = [];
let arrayTriangle2 = [];
let arrayTriangle3 = [];
let triangle = [];
arrayTriangle.push ( [a, b, c] );
let arrayTriangleResult;
let arrayLineResult;
function recursiveFunction(arrayTriangle, count) {
if (count > 0) {
arrayTriangle2 = [];
for (let i = 0; i < arrayTriangle.length; i++) {
triangle = arrayTriangle[i];
ab = [
(triangle[0][0] + triangle[1][0])/2,
(triangle[0][1] + triangle[1][1])/2,
(triangle[0][2] + triangle[1][2])/2,
];
bc = [
(triangle[1][0] + triangle[2][0])/2,
(triangle[1][1] + triangle[2][1])/2,
(triangle[1][2] + triangle[2][2])/2,
];
ac = [
(triangle[0][0] + triangle[2][0])/2,
(triangle[0][1] + triangle[2][1])/2,
(triangle[0][2] + triangle[2][2])/2,
];
arrayTriangle2.push ( [ a, ab, ac ], [ ab, b, bc ], [ ac, bc, c ] );
}
arrayTriangle = arrayTriangle2
count = count - 1;
recursiveFunction(arrayTriangle, count);
} else {
arrayTriangleResult = arrayTriangle;
for (let i = 0; i < arrayTriangleResult.length; i++) {
a = arrayTriangleResult[i][0];
arrayTriangle3.push ( [ arrayTriangleResult[i][0], arrayTriangleResult[i][1], arrayTriangleResult[i][1], arrayTriangleResult[i][2], arrayTriangleResult[i][2], arrayTriangleResult[i][0] ]);
}
arrayLineResult = arrayTriangle3;
}
}
recursiveFunction(arrayTriangle,1); | 61001ebbfe38c650699703a384e66fde | {
"intermediate": 0.2557428181171417,
"beginner": 0.5781964659690857,
"expert": 0.16606073081493378
} |
15,995 | Node.js execute and give results | 7835edee2d8760411abed9abf1764921 | {
"intermediate": 0.2716939151287079,
"beginner": 0.3581226170063019,
"expert": 0.37018346786499023
} |
15,996 | Give me results of this: process.exit() | 838124197655bdc262b1259c2722bd43 | {
"intermediate": 0.34391850233078003,
"beginner": 0.32632994651794434,
"expert": 0.32975152134895325
} |
15,997 | can you write code? | 3ced8953593f2eb69f62fa209617c1e0 | {
"intermediate": 0.2678251564502716,
"beginner": 0.4300113022327423,
"expert": 0.30216357111930847
} |
15,998 | im currently using visual studio hints to generate both linux and android executables for my flutter app. i have no idea how to run my app on android without visual studio. now my goal is to dockerize my setup to perform both linux and android builds without visual studio. how to do it? i want to use docker image of archlinux because i need protobuf aur installed in my docker container. | 91e8d7ce91e5ce407eb11420d4505fe9 | {
"intermediate": 0.5396245121955872,
"beginner": 0.24614554643630981,
"expert": 0.21422988176345825
} |
15,999 | which command shall I use to get the latest branch list from a remote repo in git | 1bc1e38c531466c5431299d2f82b9cfa | {
"intermediate": 0.41203758120536804,
"beginner": 0.26220929622650146,
"expert": 0.32575303316116333
} |
16,000 | Need help ttyl on arch linux shows my grub theme but not the ttyl. If I boot on another system it works fine. | 49d568d4d7ca4f42e0541e692272daf1 | {
"intermediate": 0.4588579833507538,
"beginner": 0.29147887229919434,
"expert": 0.24966318905353546
} |
16,001 | import tkinter as tk
from tkinter import filedialog
from datetime import datetime
from openpyxl import load_workbook, Workbook
import os
def process_files():
# Выбор папки с файлами xlsx
folder_path = filedialog.askdirectory()
# Выбор шаблона файла для записи данных
template_path = filedialog.askopenfilename(filetypes=[("Excel Files", "*.xlsx")])
# Загрузка шаблона файла
template_wb = load_workbook(template_path)
template_ws = template_wb.active
# Создание нового файла для записи данных
result_wb = Workbook()
result_ws = result_wb.active
# Обработка файлов в выбранной папке
for filename in os.listdir(folder_path):
if filename.endswith(".xlsx"):
file_path = os.path.join(folder_path, filename)
# Загрузка файла данных
data_wb = load_workbook(file_path)
# Обработка листов данных
for sheet_name in data_wb.sheetnames:
data_ws = data_wb[sheet_name]
# Чтение значений из указанных ячеек
cell_ranges = ["F4"]
for cell_range in cell_ranges:
cell_value = data_ws[cell_range].value
cell_ranges.append(cell_value)
# Запись значений в шаблонный файл
template_wb.append(cell_ranges)
# Сохранение итогового файла с данными
result_filename = f"result_{datetime.now().strftime('%Y%m%d_%H%M%S')}.xlsx"
result_wb.save(result_filename)
# Очистка ресурсов
template_wb.close()
result_wb.close()
# Создание графического интерфейса
window = tk.Tk()
window.title("Обработка отчетов ФРМР")
window.geometry("500x200")
window.configure(bg="#FAF0E6")
window.resizable(False, False)
# Кнопка выбора папки с файлами
folder_button = tk.Button(window, text="Выбрать папку", command=process_files)
folder_button.pack()
#апуск главного цикла обработки событий
window.mainloop()
При выполнении получаю ошибку File "C:\test\frmr\frmr.py", line 41, in process_files
template_wb.append(cell_ranges)
^^^^^^^^^^^^^^^^^^
AttributeError: 'Workbook' object has no attribute 'append' | 7a56530e45779bbbbc1e31e653072347 | {
"intermediate": 0.3451414406299591,
"beginner": 0.48149415850639343,
"expert": 0.17336446046829224
} |
16,002 | hi | 8a28cf4b486d1e4672e3fe7d60f38dd3 | {
"intermediate": 0.3246487081050873,
"beginner": 0.27135494351387024,
"expert": 0.40399640798568726
} |
16,003 | setup socks5 server on aws ubuntu . provide guide for a newbie | 3598497601aac1e1ddd74ad324aafa8d | {
"intermediate": 0.43077996373176575,
"beginner": 0.24667513370513916,
"expert": 0.32254499197006226
} |
16,004 | bad argument #1 to 'on' (number expected, got string) | d1bd61865048d428802e4ef163b6f6bf | {
"intermediate": 0.3321271538734436,
"beginner": 0.3793254494667053,
"expert": 0.2885473668575287
} |
16,005 | export async function runKillProcessTest(agent: AgentList): Promise<void> {
const pingAll = 'ps -A | grep ping';
const checkPing = async (cmd: string): Promise<string> => {
try {
return (await sshService.execCommandKey(agent, [{ cmd }]))[0].stdout;
} catch (e) {
return '';
}
};
if (await checkPing(pingAll)) {
await sshService.execCommandKey(agent, [{ cmd: `pkill ${Cmd.Ping}` }]);
}
void sshService.execCommandKey(agent, [{ cmd: `${Cmd.Ping} 8.8.8.8 &` }]);
await OperationRepeater.RepeatUntil(async () => (await checkPing(pingAll)) !== '');
expect((await checkPing(pingAll)) !== '').toBeTruthy();
const pid = parseInt((await checkPing(pingAll)).slice(0, 6), 10).toString();
const pingId = `ps ${pid}`;
// console.log(pid);
await activeResponseService.setCommand(agent.id, ActiveResponseCommand.KillProcess, {
pid,
});
await OperationRepeater.RepeatUntil(async () => (await checkPing(pingId)).includes(pid) === false, 10);
// console.log(await checkPing(pingId));
expect((await checkPing(pingId)).includes(pid), `pid:${pid} process is not killed`).toBeFalsy();
}
таким способом я проверяю на linux, а какие команды использовать в windows? | 36c20ec4af0ba91dd454118749037aa6 | {
"intermediate": 0.4097599983215332,
"beginner": 0.31234273314476013,
"expert": 0.2778972387313843
} |
16,006 | how to calculate mixing ratio with python script by gfs data? | 68e457c111b591ebffa4d94cd8a30060 | {
"intermediate": 0.5692446827888489,
"beginner": 0.09125474095344543,
"expert": 0.3395005464553833
} |
16,007 | vue页面下使用router.push报错如下Cannot read properties of undefined (reading 'router') | b80a843a930d772f98809aec012d8d7c | {
"intermediate": 0.40967604517936707,
"beginner": 0.2971736788749695,
"expert": 0.29315030574798584
} |
16,008 | Explicitly passing a `revision` is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
Unexpected exception formatting exception. Falling back to standard exception。是什么错误 | 1fab125ad477764ef7b559996ed2be89 | {
"intermediate": 0.30824294686317444,
"beginner": 0.35111871361732483,
"expert": 0.34063830971717834
} |
16,009 | import * as React from 'react';
import {
useForm,
UseFormReturn,
SubmitHandler,
UnpackNestedValue,
DeepPartial,
FormProvider,
} from 'react-hook-form';
import { StyledFormContainer } from './styled';
export const FormContainer = <
TFormValues extends Record<string, any> = Record<string, any>
>({
children,
onSubmit,
defaultValues,
mode = 'onChange',
id,
}: FormContainerProps<TFormValues>) => {
const methods = useForm<TFormValues>({
mode,
defaultValues,
});
const handleKeyDown = (e: React.KeyboardEvent<HTMLFormElement>) => {
if (e.key === 'Enter') {
e.preventDefault();
}
};
return (
<StyledFormContainer
onSubmit={methods.handleSubmit(onSubmit)}
onKeyDown={handleKeyDown}
id={id}
>
<FormProvider {...methods}>{children(methods)}</FormProvider>
</StyledFormContainer>
);
};
export type FormContainerProps<TFormValues> = {
defaultValues?: UnpackNestedValue<DeepPartial<TFormValues>>;
onSubmit: SubmitHandler<TFormValues>;
children: (methods: UseFormReturn<TFormValues>) => React.ReactNode;
mode?: 'onChange' | 'onBlur' | 'onTouched';
id?: string;
};
could you create a form submission unit test for this component? using Jest and react resting library | af32651c0f1797df470d388229b568b7 | {
"intermediate": 0.7288099527359009,
"beginner": 0.11435939371585846,
"expert": 0.15683065354824066
} |
16,010 | how to implement CSP Header in web.config file | d9c85d0c148499df60bb096f4a8a9ed1 | {
"intermediate": 0.40622806549072266,
"beginner": 0.29405876994132996,
"expert": 0.2997131645679474
} |
16,011 | how to read file with stored procedures in sql server | 403bf06d49fd2d8133fba5daf46ad9a4 | {
"intermediate": 0.43041202425956726,
"beginner": 0.3145458996295929,
"expert": 0.25504207611083984
} |
16,012 | I need a code to draw my picture accurately by using any easy programming language | 02d13da67693195d0688b526c4684c11 | {
"intermediate": 0.2637944221496582,
"beginner": 0.38854652643203735,
"expert": 0.34765899181365967
} |
16,013 | i have to configure jndi properties to connect to my tibco ems server :
these is my application.properties file:
java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory
java.naming.provider.url=tibjmsnaming://192.172.2.14:7222
java.naming.security.principal=admin
java.naming.security.credentials=tibco
connectionFactoryNames=QueueConnectionFactory
package com.mediaworld.apimanager.configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.jndi.JndiObjectFactoryBean;
import javax.jms.ConnectionFactory;
import java.util.Properties;
@Configuration
@PropertySource("classpath:application.properties")
public class TibcoEmsJNDIConfig {
@Autowired
private Environment env;
@Bean(name = "tibJmsConnectionFactory")
public ConnectionFactory tibJmsConnectionFactory() throws Exception {
JndiObjectFactoryBean factoryBean = new JndiObjectFactoryBean();
factoryBean.setJndiName(env.getProperty("connectionFactoryNames"));
factoryBean.setJndiEnvironment(jndiProperties());
factoryBean.afterPropertiesSet();
return (ConnectionFactory) factoryBean.getObject();
}
private Properties jndiProperties() {
Properties props = new Properties();
props.put("java.naming.factory.initial", env.getProperty("java.naming.factory.initial"));
props.put("java.naming.provider.url", env.getProperty("java.naming.provider.url"));
props.put("java.naming.security.principal", env.getProperty("java.naming.security.principal"));
props.put("java.naming.security.credentials", env.getProperty("java.naming.security.credentials"));
return props;
}
}
this is my Configuration class, after i start the application and send my message over jms it says: Failed to connect to the server at tcp://mms.catenate.tibco:7222 | 44caaf54ec4fdfdeb937a47b0ca1459b | {
"intermediate": 0.5003977417945862,
"beginner": 0.25885728001594543,
"expert": 0.24074497818946838
} |
16,014 | await page.GoToAsync(“https://www.example.com”); как мне с этой страницы достать cookie файл, метода метод GetCookiesAsync() нет | 76bd1649ab311dd4e0b8b892c13f7d71 | {
"intermediate": 0.47570106387138367,
"beginner": 0.25292232632637024,
"expert": 0.2713766098022461
} |
16,015 | public async Task<string> FirstRequest()
{
var cookies = await page.CookiesAsync();
// дополнительная обработка cookie
return cookies;
}
как эти cookies вставить в запрос потом request.AcceptEncoding = “gzip, deflate, br”;
request.AddHeader(“Accept-Language:”, “en-US,en;q=0.9”);
request.Proxy = Leaf.xNet.HttpProxyClient.Parse(proxy);
var response = request.Post(url, jsonBody, “application/json, text/plain, /”); | 643868c4b083b110eeaee21ec25fe599 | {
"intermediate": 0.3934548795223236,
"beginner": 0.30065181851387024,
"expert": 0.30589327216148376
} |
16,016 | How to add left join in to spring boot java jpa query? | 4b9f7ef21ae6744fd359949b0dd0883e | {
"intermediate": 0.47992002964019775,
"beginner": 0.12563736736774445,
"expert": 0.394442617893219
} |
16,017 | We have table1 and table2 that ace related by period, payer code, and sku code columns. How to write dax formula for new column in table2 in order to get the data for the most latest available date in table1? | e0f270016a32cd1543f79adc9fc77a00 | {
"intermediate": 0.5402816534042358,
"beginner": 0.19179484248161316,
"expert": 0.267923504114151
} |
16,018 | Write a class named Person with data attributes for a person’s name, address, and telephone number. Next, write a class named Customer that is a subclass of the Person class.
The Customer class should have a data attribute for a customer number, and a Boolean
data attribute indicating whether the customer wishes to be on a mailing list. Demonstrate
an instance of the Customer class in a simple program. | f5f4d72eb548b2da4a275c10abf9f580 | {
"intermediate": 0.3617422580718994,
"beginner": 0.3874591290950775,
"expert": 0.2507985234260559
} |
16,019 | in ue4 how to secure UGC map files for sharing to make it harder to tamper with | b9e8226f40e2f6769795683d2fe4e631 | {
"intermediate": 0.332527220249176,
"beginner": 0.26858630776405334,
"expert": 0.39888647198677063
} |
16,020 | "scripts": {
"start": "gulp",
What does i run? | 109b81991f3e4158f6bbf6d08db3ac4f | {
"intermediate": 0.4028203785419464,
"beginner": 0.3902443051338196,
"expert": 0.20693525671958923
} |
16,021 | Как мне выставить ширину столбцов в итоговом файле и перенос слов с центровкой по середине и центру в заголовке
import openpyxl
import tkinter as tk
from tkinter import filedialog
from datetime import datetime
import os
# Создаем окно для выбора папки
root = tk.Tk()
root.withdraw()
# Выбираем папку с excel файлами
folder_path = filedialog.askdirectory()
# Создаем новый excel файл для результатов
result_file = openpyxl.Workbook()
result_sheet = result_file.active
# Записываем заголовки в результаты
result_sheet['A1'] = 'Наименование медорганизации'
result_sheet['B1'] = '1100 Врачей - всего, штатных'
result_sheet['C1'] = '1100 Врачей - всего, занятых'
result_sheet['D1'] = '1100 Средний медперсонал - всего, штатных'
result_sheet['E1'] = '1100 Средний медперсонал - всего, занятых'
result_sheet['F1'] = '1102 Средний медицинский персонал ФАПов, ФП, штатных'
result_sheet['G1'] = '1102 Средний медицинский персонал ФАПов, ФП, занятых'
result_sheet['H1'] = '1104 Средний медицинский персонал амбулаторий, штатных'
result_sheet['I1'] = '1104 Средний медицинский персонал амбулаторий, занятых'
# Обрабатываем все файлы в папке
for file_name in os.listdir(folder_path):
if file_name.endswith('.xlsx'):
file_path = os.path.join(folder_path, file_name)
# Открываем файл excel
wb = openpyxl.load_workbook(file_path)
# Перебираем все листы в файле
for sheet_name in wb.sheetnames:
sheet = wb[sheet_name]
# Считываем значения из ячеек и записываем в результаты
result_sheet.append([sheet['F4'].value, sheet['C15'].value, sheet['D15'].value, sheet['C21'].value,
sheet['D21'].value, sheet['C34'].value, sheet['D34'].value, sheet['C41'].value,
sheet['D41'].value])
# Создаем имя для результатов в соответствии с текущей датой и временем
now = datetime.today().strftime("%Y-%m-%d")
current_time = datetime.now().strftime("%H-%M")
result_file_name = f"result_{now}_{current_time}.xlsx"
# Сохраняем результаты
result_file.save(result_file_name)
# Закрываем файл
result_file.close()
print(f'Результаты сохранены в файл: {result_file_name}') | 855679b0475327dc404ba830fc570005 | {
"intermediate": 0.24340307712554932,
"beginner": 0.5991156697273254,
"expert": 0.15748129785060883
} |
16,022 | hi | 931578ec82c1371a8119e91e9172cd5b | {
"intermediate": 0.3246487081050873,
"beginner": 0.27135494351387024,
"expert": 0.40399640798568726
} |
16,023 | Integrate Dagger2 into Spring boot application | 03d9b6b648f6efb2a51a94c1bafbb4df | {
"intermediate": 0.5641750693321228,
"beginner": 0.12290980666875839,
"expert": 0.3129151165485382
} |
16,024 | Do you know what is Hilla framework from Vaadin | d7f09c545db9ea891fc21e19539207fd | {
"intermediate": 0.6618416905403137,
"beginner": 0.15667782723903656,
"expert": 0.1814805269241333
} |
16,025 | /*task: make a function in rust, usind only std library, that converts time in milliseconds (i32) into a subtitle-compartible string in format "00:00:00,000"
*/ | 3fcaca29ff02d5c7035b55b9aa6e5ffb | {
"intermediate": 0.5968723297119141,
"beginner": 0.22902332246303558,
"expert": 0.17410434782505035
} |
16,026 | export async function runKillProcessTest(agent: AgentList): Promise<void> {
const checkPing = async (cmd: string): Promise<string> => {
try {
return (await sshService.execCommandKey(agent, [{ cmd }]))[0].stdout;
} catch (e) {
return '';
}
};
const windowsPlatform = agent.os.platform === Platform.Windows;
const pingAll = windowsPlatform ? `tasklist | findstr /I ${Cmd.Ping}` : `ps -A | grep ${Cmd.Ping}`;
const killPingProcesses = windowsPlatform ? `taskkill /F /IM ${Cmd.Ping}` : `pkill ${Cmd.Ping}`;
const takePID = windowsPlatform ? `(Get-Process -Name ${Cmd.Ping}).Id` : `pidof ${Cmd.Ping}`;
console.log('до pkill', await checkPing(pingAll));
if (await checkPing(pingAll)) {
await checkPing(killPingProcesses);
console.log('после pkill', await checkPing(pingAll));
}
if (windowsPlatform) {
void checkPing(`'Start-Process ${Cmd.Ping} -ArgumentList -t 8.8.8.8 -WindowStyle Hidden'`);
} else {
void sshService.execCommandKey(agent, [{ cmd: `${Cmd.Ping} 8.8.8.8 &` }]);
}
await OperationRepeater.RepeatUntil(async () => (await checkPing(pingAll)).length > 0);
console.log('после добавления ping', await checkPing(pingAll));
// const pid = parseInt((await checkPing(pingAll)).trim().slice(0, 9), 10).toString();
const pid = await checkPing(takePID);
await OperationRepeater.RepeatUntil(async () => (await checkPing(pingAll)).includes(pid));
console.log('наш pid ===', pid);
console.log('наш ping после того, как получили pid ===', await checkPing(pingAll));
expect(Number(pid), 'ping is not added').toBeGreaterThan(1);
expect((await checkPing(pingAll)).includes(pid)).toBeTruthy();
console.log(pid);
const activeResponse = await activeResponseService.setCommand(agent.id, ActiveResponseCommand.KillProcess, {
pid,
});
expect(activeResponse.error, 'error active response').toEqual(0);
console.log('после kill запроса', await checkPing(pingAll));
await OperationRepeater.RepeatUntil(async () => (await checkPing(pingAll)).includes(pid) === false, 10);
expect((await checkPing(pingAll)).includes(pid), `pid:${pid} process is not killed`).toBeFalsy();
}
почему-то команда на добалвение ip не работает в windows | 2494749912611febd66dc036ad4ebde9 | {
"intermediate": 0.34917595982551575,
"beginner": 0.39602118730545044,
"expert": 0.2548028230667114
} |
16,027 | write airflow dag with conditional branch | 848cc895337f666c41cfcfc61148963f | {
"intermediate": 0.34968388080596924,
"beginner": 0.3344542384147644,
"expert": 0.31586191058158875
} |
16,028 | I execute the code def read_data(**kwargs):
import logging
import pandas as pd
import numpy as np
import common as cm
ti = kwargs['ti']
start_timestamp = cm._utc_to_msk(kwargs['data_interval_start'])
end_timestamp = cm._utc_to_msk(kwargs['data_interval_end'])
query = f"""SELECT "ym_id" as "ClientId",
'success_event_7777' as "Target",
extract(epoch from "Дата события"::date) as "DateTime"
FROM base.csv_all_events cae
where main_product_id = '800'
and "Номер события" = 7777
and ym_id <> 'Не указано'
and "Дата события"::date >= '{start_timestamp}'::date
and "Дата события"::date < '{end_timestamp}'::date
"""
df = cm._read_from_db(query)
df.to_csv('metrika_temp_7777.csv', index=False)
logging.info(f'Writing {df.size} rows')
return(df.size) and getting error ERROR - Task failed with exception
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py", line 72, in wrapper
return func(*args, **kwargs)
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 2305, in xcom_push
session=session,
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py", line 72, in wrapper
return func(*args, **kwargs)
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/models/xcom.py", line 240, in set
map_index=map_index,
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/models/xcom.py", line 627, in serialize_value
return json.dumps(value, cls=XComEncoder).encode("UTF-8")
File "/usr/local/lib/python3.7/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/json.py", line 176, in encode
return super().encode(o)
File "/usr/local/lib/python3.7/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.7/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/json.py", line 153, in default
CLASSNAME: o.__module__ + "." + o.__class__.__qualname__,
AttributeError: 'numpy.int64' object has no attribute '__module__' | 4f381cd637dde34ced8abf48c5697068 | {
"intermediate": 0.3488919734954834,
"beginner": 0.4416126012802124,
"expert": 0.2094954550266266
} |
16,029 | I want to make a Telegram bot
Write the code for me with Telegram Bot Python library | b69f1735791a1c59e1d9a25e9d648c0a | {
"intermediate": 0.6586202383041382,
"beginner": 0.1640554815530777,
"expert": 0.17732426524162292
} |
16,030 | write me sql for dbt transformation with incremental load | b62e0775055e8f34386444bbab8052c9 | {
"intermediate": 0.48188209533691406,
"beginner": 0.15448564291000366,
"expert": 0.3636322617530823
} |
16,031 | Write a program in glang to generate wifi hostspots which serve no internet, or very low connectivity and takes in a text file full of ssids and for each of them creates an access point with a hardcoded password | bdb151bf143902dec89995512e1a7109 | {
"intermediate": 0.39963215589523315,
"beginner": 0.16280223429203033,
"expert": 0.4375656545162201
} |
16,032 | #include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <vector>
#include <cstring>
#define ll long long
using namespace std;
int main(){
int m,count;
cin>>m;
int arr[8][8];
int ar[100];
while (m--)
{
for(int i=0;i<8;i++){
for(int d=0;d<8;d++){
if(arr[i][d]!=46){
ar[i]=arr[i][d];
count++;
}
}
}
for(int e=0;e<count;e++)
cout<<ar[e]<<endl;
}
} what is the wrong | be6b5a86ad3aae8529fadbe0b9b5bbfe | {
"intermediate": 0.39548826217651367,
"beginner": 0.4005194306373596,
"expert": 0.20399227738380432
} |
16,033 | /*task: modify the code in rust, using only std library, to output arbitrary number of words at once*/
let words_at_once = 1;
for word in words {
let output += &format!("{}", word);
} | 0655d1a435c3a6b103a9447ab41aeec0 | {
"intermediate": 0.7488096952438354,
"beginner": 0.10806881636381149,
"expert": 0.14312151074409485
} |
16,034 | hello bro | f4cd394636c06d95d3e74911f712ce89 | {
"intermediate": 0.3388875424861908,
"beginner": 0.2976739704608917,
"expert": 0.36343857645988464
} |
16,035 | how to set stretch="uniformtofill" scaling property in c# WPF to Viewport3D object | 736f1b6dac7ca67a3a8dce2ccdaf436f | {
"intermediate": 0.5568225979804993,
"beginner": 0.24786435067653656,
"expert": 0.19531305134296417
} |
16,036 | hi | d8e4af6fd2e81e6493113f48dff9e066 | {
"intermediate": 0.3246487081050873,
"beginner": 0.27135494351387024,
"expert": 0.40399640798568726
} |
16,037 | this is not true either. And you can write a code that removes the size parameters of the Windows <Grid> window and writes these parameters in the format <Grid Width="60" Height="30" /> in WPF format c# | 35426c766532d2dbdb67709f2f5144f6 | {
"intermediate": 0.4229412078857422,
"beginner": 0.3680342435836792,
"expert": 0.209024578332901
} |
16,038 | Or you can write code that recognizes the Windows window size parameters and writes these parameters to a WPF c# format | 85889fd173bef3841ccb351c78222b8b | {
"intermediate": 0.5689486265182495,
"beginner": 0.19718174636363983,
"expert": 0.2338695526123047
} |
16,039 | Or you can write WPF c# code that recognizes the Windows window size settings and writes these settings to the format <Grid Width="60" Height="30" /> | d6e26854df4d2dd726577ed696e1c138 | {
"intermediate": 0.5183676481246948,
"beginner": 0.20407049357891083,
"expert": 0.27756184339523315
} |
16,040 | Hi! | cb1e99cd4cd4b13ad70093052b7b0cce | {
"intermediate": 0.3230988085269928,
"beginner": 0.2665199935436249,
"expert": 0.4103812277317047
} |
16,041 | public interface DistrictRepository extends JpaRepository { @Query(value = "SELECT d.id, d.region_id, d.name FROM district d JOIN region r ON d.region_id = r.id WHERE r.map_id = :mapId;",nativeQuery = true) public List getDistrictListByMapId(Integer mapId); } org.hibernate.query.UnknownParameterException: Could not locate named parameter [mapId], expecting one of [mapId;] что это ошибка | d89d0fcfaf714d2987cff6887ec4c225 | {
"intermediate": 0.4787156581878662,
"beginner": 0.23854878544807434,
"expert": 0.28273558616638184
} |
16,042 | def send_email_notification(emails):
# Настройки SMTP-сервера и отправителя
smtp_server = "smtp.gmail.com"
smtp_port = 465
sender_email = "t1"
sender_password = "2"
# Формирование email-сообщения
subject = "Уведомление"
body = "\n".join(emails)
message = MIMEText(body, 'plain', 'utf-8')
message['Subject'] = subject
message['From'] = formataddr(("Sender Name", sender_email))
message['To'] = ", ".join(emails)
try:
server = smtplib.SMTP_SSL(smtp_server, smtp_port)
server.login(sender_email, sender_password)
server.ehlo()
server.send_message(message)
server.quit()
print("Сообщение успешно отправлено!")
except Exception as e:
print("Ошибка при отправке сообщения:", str(e)) Ошибка при отправке сообщения: 'utf8' is an invalid keyword argument for Compat32 | 61c7779c4cec4568c51f6fff9b508e87 | {
"intermediate": 0.29252535104751587,
"beginner": 0.5366691946983337,
"expert": 0.17080548405647278
} |
16,043 | can you give a home page forme for a university in html and css and javascript | c63c8496a46e33f8030d51c7ebe2be0b | {
"intermediate": 0.3763808608055115,
"beginner": 0.3340001404285431,
"expert": 0.2896190285682678
} |
16,044 | explaine the following code in python pandas:
pd.Series([pd.Timestamp('2016-01-01') for _ in range(3)]).unique()
<DatetimeArray>
['2016-01-01 00:00:00']
Length: 1, dtype: datetime64[ns] | 8bfc586885bbcc07d9b1fc01e82220d7 | {
"intermediate": 0.5071677565574646,
"beginner": 0.2901745140552521,
"expert": 0.20265774428844452
} |
16,045 | Задача 7. Оценки
Реализовать класс Pupil, представляющий из себя ученика с оценками. Класс должен содержать, как минимум, следующие элементы:
Поля:
● String name – имя ученика;
● int[][] marks – оценки ученика (каждый массив представляет из себя набор оценок за одну четверть).
Методы:
● double getMark(int quarter) – возвращает среднюю оценку ученика за четверть;
● double getMark() – возвращает среднюю оценку ученика за все время (считается как среднее арифметическое между четырьмя оценками - оценками за 1, 2, 3 и 4 четверти, соответственно);
● String getInfo() – возвращает строку с информацией об ученике (разрешается переопределить ToString() вместо этого метода);
Необходимо прочитать входные данные, на их основе сформировать объект класса Pupil. Затем используя методы getMark(i) и getMark() вывести средние оценки ученика в формате:
I: {оценка за 1 четверть}
II: {оценка за 2 четверть}
III: {оценка за 3 четверть}
IV: {оценка за 4 четверть}
Total for {name}: {среднее арифметическое между оценками выше}
Гарантируется, что у каждого ученика есть, как минимум, одна оценка в каждой четверти. Количество оценок в каждой четверти может отличаться. Дробную часть числа округлять до 1 знака после запятой.
Формат ввода
На первой строке - имя ученика.
На следующих четырех строках: цифры от 1 до 5, разделенные одним пробелом.
Формат вывода
Для каждого ученика выведите информацию по шаблону из условия.
Для примера:
Ввод Результат
Vasya
5 4 5 4
5 5 4 3 3
3 3 3 5 5 5
4 4
I: 4,5
II: 4,0
III: 4,0
IV: 4,0
Total for Vasya: 4,1
код на java | 2c5dbd953d0c4e9598188c760fea817e | {
"intermediate": 0.25710147619247437,
"beginner": 0.5484724044799805,
"expert": 0.19442613422870636
} |
16,046 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MovingPlatform : MonoBehaviour
{
public float moveDistance = 10f; // Расстояние, на которое будет двигаться платформа
public float moveSpeed = 3f; // Скорость движения платформы
public float pauseDuration = 2f; // Промежуток времени для паузы между движениями
public bool moveX = true; // Флаг, указывающий, разрешено ли движение по оси X
public bool moveY = false; // Флаг, указывающий, разрешено ли движение по оси Y
public bool moveZ = false; // Флаг, указывающий, разрешено ли движение по оси Z
csharp
Copy code
private Vector3 startPosition; // Начальная позиция платформы
private Vector3 targetPosition; // Целевая позиция платформы
void Start()
{
startPosition = transform.position;
Vector3 moveDirection = Vector3.zero;
if (moveX) moveDirection += Vector3.right;
if (moveY) moveDirection += Vector3.up;
if (moveZ) moveDirection += Vector3.forward;
targetPosition = startPosition + (moveDirection.normalized * moveDistance);
StartCoroutine(MovePlatform());
}
IEnumerator MovePlatform()
{
while (true)
{
yield return StartCoroutine(MoveToTargetPosition());
yield return new WaitForSeconds(pauseDuration);
yield return StartCoroutine(MoveToStartPosition());
yield return new WaitForSeconds(pauseDuration);
}
}
IEnumerator MoveToTargetPosition()
{
float elapsedTime = 0f;
while (elapsedTime < moveSpeed)
{
float t = elapsedTime / moveSpeed;
transform.position = Vector3.Lerp(startPosition, targetPosition, t);
elapsedTime += Time.deltaTime;
yield return null;
}
transform.position = targetPosition;
}
IEnumerator MoveToStartPosition()
{
float elapsedTime = 0f;
while (elapsedTime < moveSpeed)
{
float t = elapsedTime / moveSpeed;
transform.position = Vector3.Lerp(targetPosition, startPosition, t);
elapsedTime += Time.deltaTime;
yield return null;
}
transform.position = startPosition;
}
}
сделай что бы игрок используя character controller прилипал к платформе пока стоит на ней | 664a3b5fab5680fad9daa9ac231b87b6 | {
"intermediate": 0.29509681463241577,
"beginner": 0.532383382320404,
"expert": 0.17251978814601898
} |
16,047 | import tkinter as tk
from tkinter import filedialog, messagebox
import pandas as pd
from datetime import datetime, timedelta
import smtplib
from datetime import datetime
import sys
from email.mime.text import MIMEText
from email.header import Header
from email.utils import formataddr
from email.message import EmailMessage
from io import StringIO
from email.generator import Generator
current_date = datetime.now().date()
target_date = datetime(2023, 8, 20).date()
if current_date >= target_date:
messagebox.showinfo("Пробный период истек", "Для приобретения свяжитесь <PRESIDIO_ANONYMIZED_PHONE_NUMBER>, <PRESIDIO_ANONYMIZED_PHONE_NUMBER>")
sys.exit()
else:
def process_excel_file():
# Открытие диалогового окна для выбора файла Excel
filepath = filedialog.askopenfilename(filetypes=[("Excel Files", "*.xlsx")])
# Загрузка файла Excel
df = pd.read_excel(filepath)
# Формат даты в столбце Excel (dd//mm/yy)
date_format = "%d/%m/%y"
# Текущая дата
today = datetime.now().date()
# Вычисление разницы дат и фильтрация строк
df["Срок исполнения"] = pd.to_datetime(df["Срок исполнения"], format=date_format)
df["Разница"] = df["Срок исполнения"].apply(lambda x: (today - x.date()).days)
filtered_df = df.loc[df["Разница"] <= 3]
# Создание нового столбца с информацией о разнице и имени
filtered_df["Информация"] = filtered_df.apply(lambda row: f"На исполнение поручения осталось {row['Разница']} дней , поручение {row['Номер']}", axis=1)
# Сохранение отфильтрованных данных в новый файл Excel
output_file = "новый_файл.xlsx"
filtered_df.to_excel(output_file, index=False)
# Отправка уведомления по электронной почте
send_email_notification(filtered_df["email"].tolist())
# Отправка уведомления по электронной почте
send_email_notification(filtered_df["Информация"].tolist())
# Вывод сообщения об успешном сохранении
messagebox.showinfo("Успех", "Файл успешно сохранен и отправлен по электронной почте!")
def send_email_notification(emails):
# Настройки SMTP-сервера и отправителя
smtp_server = "smtp.gmail.com"
smtp_port = 465
sender_email = "tishenkoevgenii.95@gmail.com"
sender_password = "cmejejqsvffirxsb"
# Формирование email-сообщения
subject = "Уведомление"
body = "\n".join(emails)
message = MIMEText(body, 'plain', 'utf-8')
message['Subject'] = Header(subject, 'utf-8')
message['From'] = formataddr(("Сообщение из канцелярии", sender_email))
message['To'] = ", ".join(emails)
try:
msg_str = StringIO()
g = Generator(msg_str)
g.flatten(message)
server = smtplib.SMTP_SSL(smtp_server, smtp_port)
server.ehlo()
server.login(sender_email, sender_password)
server.sendmail(sender_email, emails, msg_str.getvalue())
server.quit()
print("Сообщение успешно отправлено!")
except Exception as e:
print("Ошибка при отправке сообщения:", str(e))
# Создание главного окна
window = tk.Tk()
# Установка размера окна при запуске
window.geometry("350x150")
window.title("Уведомление на почту")
# Создание кнопки "Выбрать файл" и привязка функции к ней
choose_file_btn = tk.Button(window, text="Выбрать файл", command=process_excel_file)
choose_file_btn.pack(anchor='center')
# Создание кнопки "Отправить почту" и привязка функции к ней
send_email_btn = tk.Button(window, text="Отправить почту", command=lambda: send_email_notification(["email@example.com"]))
send_email_btn.pack(anchor='center')
label = tk.Label(window, text="Собственность Тищенко Е.А. 2023")
label.pack(anchor='s')
# Запуск главного цикла окна
window.mainloop()
Ошибка при отправке сообщения: 'ascii' codec can't encode characters in position 9-10: ordinal not in range(128) | 7f69cfc50f7b3ba56a10b02ea857c40a | {
"intermediate": 0.3645700216293335,
"beginner": 0.4890924394130707,
"expert": 0.14633752405643463
} |
16,048 | I'm being forced tp use async by django async_to_sync(self.channel_layer.group_send)(
'event_sharif',
{
'type': 'emergency_stop',
'message': "event_trigered_from_views"
})
the problem is this piece of code in the loop and I just want it to send 1 message then break out of the loop but it send multiple because it async before it break | 2550e146550baa257364a57f4a02a11e | {
"intermediate": 0.41843006014823914,
"beginner": 0.5202872157096863,
"expert": 0.061282701790332794
} |
16,049 | File "C:\Users\11434\Desktop\游戏设计\pythongamepack\jigsaw.py", line 69, in <listcomp>
arr = [block if block is None else block % (ROWS * COLS) + 1 for block in blocks]
~~~~~~^~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for %: 'pygame.surface.Surface' and 'int' | 46233c4e5d78e02d12f904dac76b1ad6 | {
"intermediate": 0.3046989142894745,
"beginner": 0.4374644160270691,
"expert": 0.25783658027648926
} |
16,050 | Hi, say me how i can use ReactJS context in project with typescript | 41aa5837212c2e9d1d1ccd6e623026fa | {
"intermediate": 0.6614581942558289,
"beginner": 0.23508170247077942,
"expert": 0.10346007347106934
} |
16,051 | Try to upload file /opt/app/gus/CALL_STREAM/current/avro/avro-schema-call-rollback-record-v1.json
{"error_code":409,"message":"Schema being registered is incompatible with an earlier schema"}
при попытке прогрузить схему вручную получаю ту же ошибку:
сurl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" -d @/opt/app/gus/CALL_STREAM/current/avro/avro-schema-call-rollback-record-v1.json http://wpsks-bt1.pbs.sibir.rt.ru:28081/subjects/com.nexign.gus.stream.dto.out.CallContainer/versions
{"error_code":409,"message":"Schema being registered is incompatible with an earlier schema"} | 111a4708f51caac65daca318935127e9 | {
"intermediate": 0.39399847388267517,
"beginner": 0.2998405992984772,
"expert": 0.30616095662117004
} |
16,052 | How realize request reply patterт rmq ащк фтн http request nodejs | 00b4b184046fba7406f9911463415a7c | {
"intermediate": 0.3559629023075104,
"beginner": 0.34829485416412354,
"expert": 0.2957422435283661
} |
16,053 | такого не существует dotnet add package PuppeteerExtra.Plugin.Proxy --version 2.1.1 | 53a9377eff0e54da85d4a036b7a58d0d | {
"intermediate": 0.39546969532966614,
"beginner": 0.2548939287662506,
"expert": 0.34963640570640564
} |
16,054 | In R software, when reading the Excel with Date, how to keep the Date after the reading into R? | 25e10bd5a4b1e7d2d8008e90e5880d8c | {
"intermediate": 0.346017450094223,
"beginner": 0.2008059024810791,
"expert": 0.4531766474246979
} |
16,055 | How realize request reply patterт rmq for each http request on express server nodejs | 891cabce2fd8eec9bee7190f5b9bdacb | {
"intermediate": 0.3882472813129425,
"beginner": 0.14778509736061096,
"expert": 0.46396762132644653
} |
16,056 | Given the triangle of consecutive odd numbers:
1
3 5
7 9 11
13 15 17 19
21 23 25 27 29
...
Calculate the sum of the numbers in the nth row of this triangle (starting at index 1) e.g.: (Input --> Output)
1 --> 1
2 --> 3 + 5 = 8 | 4f675283e05f856451325890eb9e0c12 | {
"intermediate": 0.3822205066680908,
"beginner": 0.3243299722671509,
"expert": 0.2934494614601135
} |
16,057 | Your goal is to implement a difference function, which subtracts one list from another and returns the result.
It should remove all values from list a, which are present in list b keeping their order.
array_diff({1, 2}, 2, {1}, 1, *z) == {2} (z == 1)
If a value is present in b, all of its occurrences must be removed from the other:
array_diff({1, 2, 2, 2, 3}, 5, {2}, 1, *z) == {1, 3} (z == 2)
Please write code using Golang. | b1af4cbf1aa95252aae9430bea581e15 | {
"intermediate": 0.4565333127975464,
"beginner": 0.22986026108264923,
"expert": 0.3136064410209656
} |
16,058 | format the code | b5e9445e23b4940461bb3fd121dd5091 | {
"intermediate": 0.29643499851226807,
"beginner": 0.4598718583583832,
"expert": 0.24369312822818756
} |
16,059 | generate 0z0a-9a Replace the first occurrence of “9” with a 2b-09a-z mixed with z0 Now, replace a-z0-9 Start with z Combining 0b-0a Updated Second Half 9a9. provide specifics more | fb03283b6f4c5fa5319aa2c81856df46 | {
"intermediate": 0.27267640829086304,
"beginner": 0.2594727873802185,
"expert": 0.46785080432891846
} |
16,060 | ` | 2f068618d09b709f3c487b90db2ce3dc | {
"intermediate": 0.32854434847831726,
"beginner": 0.28957921266555786,
"expert": 0.3818763792514801
} |
16,061 | ` | c0026a285336c5a179140512c15e6a43 | {
"intermediate": 0.32854434847831726,
"beginner": 0.28957921266555786,
"expert": 0.3818763792514801
} |
16,062 | How to use ExternalProject_Add to compile assimp's dynamic link library | d88a8116602a891ce88b50bad3c3785f | {
"intermediate": 0.6951765418052673,
"beginner": 0.10009414702653885,
"expert": 0.20472930371761322
} |
16,063 | create checkbox flutter | 9c9cb75b17bc2d234245d6d3944ed9f7 | {
"intermediate": 0.33720943331718445,
"beginner": 0.2501193881034851,
"expert": 0.41267120838165283
} |
16,064 | You should express what you want a model to do by \
providing instructions that are as clear and \
specific as you can possibly make them. \
This will guide the model towards the desired output, \
and reduce the chances of receiving irrelevant \
or incorrect responses. Don't confuse writing a \
clear prompt with writing a short prompt. \
In many cases, longer prompts provide more clarity \
and context for the model, which can lead to \
more detailed and relevant outputs. | 5abe93be8f952a915f352e5d268b9863 | {
"intermediate": 0.23493592441082,
"beginner": 0.2014327049255371,
"expert": 0.5636314153671265
} |
16,065 | Directory structure of electronjs | 09f2ba6ed2fccff6e98e852ca89b4b24 | {
"intermediate": 0.40562817454338074,
"beginner": 0.26057565212249756,
"expert": 0.3337962329387665
} |
16,066 | IIS Content-Security-Policy Header web.congih | f3e37b0b118ea5cb35d17e873b15705c | {
"intermediate": 0.31447285413742065,
"beginner": 0.35199445486068726,
"expert": 0.3335326313972473
} |
16,067 | ElectronJS project directory | eb089a5c42ed05d798927ade8dd94aec | {
"intermediate": 0.35809147357940674,
"beginner": 0.14568018913269043,
"expert": 0.49622833728790283
} |
16,068 | Pretend you are a data engineer with python expertise | 7035c6881ca8c256ef1f55e8f99e1d4a | {
"intermediate": 0.3152576684951782,
"beginner": 0.1788398027420044,
"expert": 0.5059025883674622
} |
16,069 | I want to connect pi camera v3 (imx708) to jetson nano, but it nothing happen, so can u tell me how to connect it, im searched in internet and it kind to build the kernel or driver. | b4be66b7a4b9c7136159cd64886a0df7 | {
"intermediate": 0.46020230650901794,
"beginner": 0.31228411197662354,
"expert": 0.2275136262178421
} |
16,070 | I've an asp.net core with reactjs project, got this console error: "header.js:81 {"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-d70b179d7175984dcf446aecb49e21aa-243517890fb27a86-00","errors":{"Email":["The Email field is required."],"Phone":["The Phone field is required."],"Password":["The Password field is required."],"Username":["The Username field is required."],"IpAddresses":["The IpAddresses field is required."],"MacAddresses":["The MacAddresses field is required."],"WalletNumber":["The WalletNumber field is required."]}}" from this form: "<Form
className="login-form"
initialValues={{
remember: true,
}}
onFinish={(formData) => onFinishs(formData)}
>
<Form.Item
name="username"
rules={[
{
required: true,
message: 'من فضلك أدخل إسم المُستخدم',
},
]}
>
<Input size="large" prefix={<UserOutlined className="site-form-item-icon" />} placeholder="Username" />
</Form.Item>
<Form.Item
name="email"
rules={[
{
required: true,
message: 'من فضلك أدخل البريد الإلكتروني',
},
]}
>
<Input size="large" prefix={<MailOutlined className="site-form-item-icon" />} placeholder="Example@email.com" />
</Form.Item>
<Form.Item
name="phone"
rules={[
{
required: true,
message: 'من فضلك أدخل رقم الهاتف',
},
]}
>
<Input size="large" type="phone" prefix={<MobileOutlined className="site-form-item-icon" />} placeholder="+X XXX XXX XXXX" />
</Form.Item>
<Form.Item
name="walletNumber"
rules={[
{
required: true,
message: 'من فضلك أدخل رقم المحفظة',
},
]}
>
<Input size="large" prefix={<WalletOutlined className="site-form-item-icon" />} placeholder="TBia4uHnb3oSSZm5isP284cA7Np1v15Vhi" />
</Form.Item>
<Form.Item
name="password"
rules={[
{
required: true,
message: 'من فضلك أدخل كلمة المرور',
},
]}
>
<Input
prefix={<LockOutlined className="site-form-item-icon" />}
type="password"
size="large"
placeholder="كلمة المرور"
/>
</Form.Item>
<Form.Item>
<Button loading={loadings[1]}
onClick={() => enterLoading(1)} style={{ width: '100%' }} size="large" shape="round" icon={<UserAddOutlined />} type="primary" htmlType="submit" className="login-form-button">
تسجيل حساب
</Button>
</Form.Item>
</Form>" and this is it's function: "const onFinishs = (formData) => {
handleSubmit(formData);
};
const handleSubmit = async (formData) => {
const ipAddresss = await getIPAddress();
const registerRequest = new FormData();
registerRequest.append('username', formData.username);
registerRequest.append('password', formData.password);
registerRequest.append('walletNumber', formData.walletNumber);
registerRequest.append('macAddresses', '');
registerRequest.append('ipAddresses', ipAddresss);
registerRequest.append('phone', formData.phone);
registerRequest.append('email', formData.email);
try {
const response = await fetch(`/api/user/register`, {
method: 'POST',
body: JSON.stringify(registerRequest),
headers: {
'Content-Type': 'application/json'
}
});
if (response.status === 400) {
const data = await response.text();
console.error(data);
}
const data = await response.json();
message.success('تم إنشاء حسابك! أرسلنا رسالة تأكيد على بريدك');
exitLoading(1);
setOpen(false);
} catch (error) {
console.error('There was an error!', error);
message.error('حدث خطأ يرجى المحاولة وقت اخر');
exitLoading(1);
setOpen(false);
}
};" figure out the issue and fix it. | 1b7c10ac7c266d52f98ee7dd17cbe350 | {
"intermediate": 0.3768809139728546,
"beginner": 0.5316817164421082,
"expert": 0.09143734723329544
} |
16,071 | Translate the following Go code into a Python equivalent. | 60ce2c8737aa8e5b1eb283143be923f4 | {
"intermediate": 0.29509925842285156,
"beginner": 0.4509950578212738,
"expert": 0.253905713558197
} |
16,072 | is this correct for a gmail smtp? "private const string SmtpServer = "smtp-relay.gmail.com"; // Replace with your SMTP server
private const int SmtpPort = 465; // Replace with your SMTP port
private const string SmtpUser = "info.cryptotasky@gmail.com\r\n"; // Your email
private const string SmtpPass = "Dark1900$"; // Replace with your email password" | d8248d1bc03e4b6e560fa2c7dcda3e74 | {
"intermediate": 0.4150756001472473,
"beginner": 0.30372777581214905,
"expert": 0.281196653842926
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.