row_id
int64 0
48.4k
| init_message
stringlengths 1
342k
| conversation_hash
stringlengths 32
32
| scores
dict |
|---|---|---|---|
43,977
|
is there are command line in windows 10 to exec like action in context menu “Next desktop background” - next random
|
545c363a8bdb907cf7cdfd8d7062b391
|
{
"intermediate": 0.2777363061904907,
"beginner": 0.367698609828949,
"expert": 0.3545650839805603
}
|
43,978
|
Hi
|
6d59ec4df26d4c708a5ce4968232616f
|
{
"intermediate": 0.33010533452033997,
"beginner": 0.26984941959381104,
"expert": 0.400045245885849
}
|
43,979
|
//@version=5
strategy("Fibonacci Strategy with Adjustable Stops and Take Profits", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=1)
// Input for the lookback period
herculesPeriod = input(14, title="Hercules Period")
// Inputs for the Fibonacci retracement levels
pythagorasLevel = input(0.382, title="Pythagoras Level")
euclidLevel = input(0.618, title="Euclid Level")
archimedesLevel = input(0.5, title="Archimedes Level")
// Input for the second Fibonacci level multiplier
secondFiboMultiplier = input(1.5, title="Second Fibonacci Multiplier")
// Inputs for the LSMA indicator
pythagoreanTheoryLength = input(32, title="Pythagorean Theory Length")
lsmaOffset = input(0, title="LSMA Offset")
// Inputs for adjustable take profit and stop loss levels
takeProfit1Multiplier = input(1.0, title="Take Profit 1 Multiplier")
takeProfit2Multiplier = input(1.0, title="Take Profit 2 Multiplier")
stopLoss1Multiplier = input(1.0, title="Stop Loss 1 Multiplier")
stopLoss2Multiplier = input(1.0, title="Stop Loss 2 Multiplier")
// Calculate the highest and lowest price during the lookback period
highestHigh = ta.highest(high, herculesPeriod)
lowestLow = ta.lowest(low, herculesPeriod)
// Calculate the Fibonacci retracement levels
takeProfitLevel1 = lowestLow + (highestHigh - lowestLow) * pythagorasLevel * takeProfit1Multiplier
stopLossLevel1 = highestHigh * stopLoss1Multiplier // Changed to highestHigh
entryLevel1 = lowestLow + (highestHigh - lowestLow) * archimedesLevel
// Calculate the second Fibonacci retracement levels using the adjustable multiplier
takeProfitLevel2 = lowestLow + (highestHigh - lowestLow) * pythagorasLevel * secondFiboMultiplier * takeProfit2Multiplier
stopLossLevel2 = lowestLow + (highestHigh - lowestLow) * euclidLevel * secondFiboMultiplier * stopLoss2Multiplier
entryLevel2 = lowestLow + (highestHigh - lowestLow) * archimedesLevel * secondFiboMultiplier
// Calculate the LSMA indicator
lsma = ta.linreg(close, pythagoreanTheoryLength, lsmaOffset)
lsma2 = ta.linreg(lsma, pythagoreanTheoryLength, lsmaOffset)
eq = lsma - lsma2
zlsma = lsma + eq
var float breakEvenPrice = na
var float fiboLevelStopPrice = na
// Trading logic
if (ta.crossover(close, entryLevel1) and close > zlsma)
strategy.entry("Buy", strategy.long, comment="Entry")
breakEvenPrice := entryLevel1
if (ta.crossover(close, takeProfitLevel1))
strategy.close("Buy", qty_percent = 50, comment="Take Profit 1")
fiboLevelStopPrice := takeProfitLevel1
if (not na(breakEvenPrice))
if (close > breakEvenPrice)
stopLossLevel1 := breakEvenPrice
if (ta.crossover(close, takeProfitLevel2))
strategy.close("Buy", qty_percent = 50, comment="Take Profit 2")
stopLossLevel1 := fiboLevelStopPrice
if (ta.crossunder(close, stopLossLevel1)) strategy.close("Buy", qty_percent = 50, comment="Stop Loss 1")
if (ta.crossunder(close, stopLossLevel2)) strategy.close("Buy", comment="Full Stop Loss")
// Plot the position size
plotshape(series=strategy.position_size, title="Position Size", location=location.belowbar)
исправьте код пожалйуста
|
06c4cbe3083e468b76fe31a985ceb5bf
|
{
"intermediate": 0.27932271361351013,
"beginner": 0.36265915632247925,
"expert": 0.358018159866333
}
|
43,980
|
is there are command line in windows 10 to exec like action in context menu “Next desktop background” - next random
|
49bec912388f6d3c34fbbd877cc6349b
|
{
"intermediate": 0.2804465889930725,
"beginner": 0.37663400173187256,
"expert": 0.34291937947273254
}
|
43,981
|
build me a rag application dockerized with open source model llama
|
3ac7ddedf4bec29b9fe167abfed5ee37
|
{
"intermediate": 0.37373223900794983,
"beginner": 0.228064626455307,
"expert": 0.39820313453674316
}
|
43,982
|
Generate a hard mathemtical expression.
|
71b949dd764b3588c92d9c4c73b2f412
|
{
"intermediate": 0.2388923168182373,
"beginner": 0.2254573553800583,
"expert": 0.5356503129005432
}
|
43,983
|
#include <iostream> using namespace std; int findBinHelper(unsigned int n, int num_zeros, int num_ones) { if (num_zeros > num_ones) return 0; if (n == 0) return 1; return findBinHelper(n - 1, num_zeros + 1, num_ones) + findBinHelper(n - 1, num_zeros, num_ones + 1); } int findBin(unsigned int n) { if (n <= 0) return 0; return findBinHelper(n, 0, 0);
explains what this recursive program do and how does it work
|
623b422ccef790823671a704b750ecb3
|
{
"intermediate": 0.3336542844772339,
"beginner": 0.3372178077697754,
"expert": 0.32912787795066833
}
|
43,984
|
how to get idrac version through ipmi or from ism
|
4a975190884bb40aad6c6f67a4061348
|
{
"intermediate": 0.42476731538772583,
"beginner": 0.20219658315181732,
"expert": 0.37303608655929565
}
|
43,985
|
Write an advanced math AI solver, In Python with calc and sympy.
|
182d9ec5c8055a24c0aa3e86857cd732
|
{
"intermediate": 0.2131282389163971,
"beginner": 0.1790606677532196,
"expert": 0.6078110337257385
}
|
43,986
|
Write an advanced math AI solver, In Python with calc and sympy.
Full code, no examples.
|
e8b3a7dae7436eb31b2f4a2999889ccb
|
{
"intermediate": 0.2512257695198059,
"beginner": 0.3352924883365631,
"expert": 0.41348177194595337
}
|
43,987
|
I need to translate the following into german:
|
b42b270ef77e7c8c4cbdeb5dae9d4083
|
{
"intermediate": 0.3181571662425995,
"beginner": 0.27430418133735657,
"expert": 0.40753862261772156
}
|
43,988
|
Write an advanced math AI solver, In Python with calc and sympy. Use print(), so that it's actually usable for me.
Full code, no examples.
|
ef25831ad880598d3c88add0b2607815
|
{
"intermediate": 0.2425253540277481,
"beginner": 0.40663325786590576,
"expert": 0.3508414328098297
}
|
43,989
|
how to put a wheel installation in requirmeents.txt
|
f5c76f7a712afb20f21bda0f599c6d72
|
{
"intermediate": 0.36437901854515076,
"beginner": 0.3631342649459839,
"expert": 0.27248674631118774
}
|
43,990
|
could you explain what I would have to learn to learn calculus? I'm an 10th grader in 3rd quarter of high school in Algebra 2/Trigonometry in the USA if that helps you understanding what my current knowledge is.
|
53749d92253ea10f64c4d3610553aa72
|
{
"intermediate": 0.34164243936538696,
"beginner": 0.4487459063529968,
"expert": 0.2096116691827774
}
|
43,991
|
I am making a c++ SDL based game engine, currently finalized the Audio Manager and I am about to do the commit, Is this a good commit message and description?
Add audio manager
- Audio support using SDL Mixer X:
Repo: https://github.com/WohlSoft/SDL-Mixer-X/
Homepage: https://wohlsoft.github.io/SDL-Mixer-X/
Docs: https://wohlsoft.github.io/SDL-Mixer-X/SDL_mixer_ext.html
|
3a205468def99b2995fe6c143522a3b5
|
{
"intermediate": 0.5268614292144775,
"beginner": 0.2707778811454773,
"expert": 0.20236070454120636
}
|
43,992
|
what could potentially cause core dumped in the 2 fucntions below
void Merge(int arr[], int low, int mid, int high) {
//Use 'temp' as an array of size high-low+1, for temporary memory.
//If you haven't taken 103 yet, you are not expected to understand this.
int *temp = new int[high-low+1];
int i = low, j = mid+1, k = 0;
while (i <= mid || j <= high){
if (arr[i] < arr[j] || j > high){
temp[k] = arr[i];
i++;
} else{
temp[k] = arr[j];
j++;
}
k++;
}
for (int k=0; k < high-low+1;k++){
arr[k+low] = temp[k];
}
//Your code here.
delete [] temp;
}
void MergeSort(int arr[], int low, int high) {
if (low < high){
int mid = (low + (high - low)) / 2;
MergeSort(arr, low, mid);
MergeSort(arr, mid + 1, high);
Merge(arr,low, mid, high);
}
}
|
8436a1552b4b2c412dad5d73b1305c6c
|
{
"intermediate": 0.40146398544311523,
"beginner": 0.34260961413383484,
"expert": 0.2559264600276947
}
|
43,993
|
bot
Type an input and press Enter
|
9881b5cb60ca01eff2c831e3173b8aae
|
{
"intermediate": 0.3593486249446869,
"beginner": 0.286220520734787,
"expert": 0.35443082451820374
}
|
43,994
|
кнопки слишком большие, как сделать чтобы были в размер относительно всего остального
<div class="col-6 d-flex flex-direction-column col-m-12 order-m-1">
<div class="row row-prop">
<div class="col-6 text-uppercase color-gray">Сумма к оплате</div>
<div class="col-6 text-right f24 strong">${amount} ${currencySymbol}</div>
</div>
<div class="row mt-auto">
<div class="col-6"><a href="${cancelUrl}" class="ui-btn">Отменить</a></div>
<div class="col-6">
<button id="btnPay" type="submit" class="ui-btn ui-btn--primary">Оплатить</button>
</div>
</div>
</div>
|
a98f7d77ba783523c287f98097360610
|
{
"intermediate": 0.29885929822921753,
"beginner": 0.5269965529441833,
"expert": 0.17414416372776031
}
|
43,995
|
#include <iostream>
#include <ctime>
using namespace std;
void MergeSort(int arr[], int low, int high);
void Merge(int arr[], int low, int mid, int high) {
//Use 'temp' as an array of size high-low+1, for temporary memory.
//If you haven't taken 103 yet, you are not expected to understand this.
int *temp = new int[high-low+1];
int i = low, j = mid+1;
int k = 0;
while (i <= mid && j <= high){
if (arr[i] < arr[j]){
temp[k] = arr[i];
i++;
} else{
temp[k] = arr[j];
j++;
}
k++;
}
while (i <= mid){
temp[k++] = arr[i++];
}
while (j <= high){
temp[k++] = arr[j++];
}
for (int k=0; k < high-low+1;k++){
arr[k+low] = temp[k];
}
//Your code here.
delete[] temp;
}
void MergeSort(int arr[], int low, int high) {
if (low < high){
int mid = (high - low) / 2;
MergeSort(arr, low, mid);
MergeSort(arr, mid + 1, high);
Merge(arr,low, mid, high);
}
}
//Do NOT change the main function or InsertionSort.
//But if you do anyway for testing purposes, make sure to change it back
//and VERIFY you still pass the submission tests.
void InsertionSort(int arr[], int len) {
for (int i = 1; i < len; i++) {
int j = i;
while (j > 0 && arr[j] < arr[j-1]) {
int temp = arr[j-1];
arr[j-1] = arr[j];
arr[j] = temp;
j--;
}
}
}
int main(int argc, char* argv[]) {
int n;
clock_t start;
double durationI = 0, durationM = 0;
cin >> n;
int *arr = new int[n];
int *backup = new int[n];
for (int i = 0; i < n; i++) {
if (n < 100) cin >> arr[i];
else arr[i] = n-i;
backup[i] = arr[i];
}
start = clock();
MergeSort(arr, 0, n-1);
durationM += ( clock() - start ) / (double) CLOCKS_PER_SEC;
if (n < 100) {
for (int i = 0; i < n; i++) cout << arr[i] << " ";
cout << endl;
}
for (int j = 0; j < n; j++) arr[j] = backup[j];
start = clock();
InsertionSort(arr, n);
durationI += ( clock() - start ) / (double) CLOCKS_PER_SEC;
if (n >= 100) {
cout << "MergeSort on " << n << " elements took " << durationM << " seconds." << endl;
cout << "InsertionSort took " << durationI << " seconds." << endl;
}
delete [] arr;
delete [] backup;
return 0;
}
what problem with merge sort function that cause segmentation fault for this program when run with: 8 1 2 3 4 5 6 7 8
|
2b25f3a0fb27de52cd303a2db92198c1
|
{
"intermediate": 0.3432031273841858,
"beginner": 0.4866459369659424,
"expert": 0.17015087604522705
}
|
43,996
|
A - Assignment, T - Task, TR - Task Result, R - Result, AR - Assignment Result
AR:
A:
You are given by a JSON interpretation of the recipe, for example:
{"meals":[{"idMeal":"52772","strMeal":"Teriyaki Chicken Casserole","strDrinkAlternate":null,"strCategory":"Chicken","strArea":"Japanese","strInstructions":"Preheat oven to 350\u00b0 F. Spray a 9x13-inch baking pan with non-stick spray.\r\nCombine soy sauce, \u00bd cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.\r\nMeanwhile, stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.\r\nPlace the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.\r\n*Meanwhile, steam or cook the vegetables according to package directions.\r\nAdd the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving. Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce. Enjoy!","strMealThumb":"https:\/\/www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg","strTags":"Meat,Casserole","strYoutube":"https:\/\/www.youtube.com\/watch?v=4aZr5hZXP_s","strIngredient1":"soy sauce","strIngredient2":"water","strIngredient3":"brown sugar","strIngredient4":"ground ginger","strIngredient5":"minced garlic","strIngredient6":"cornstarch","strIngredient7":"chicken breasts","strIngredient8":"stir-fry vegetables","strIngredient9":"brown rice","strIngredient10":"","strIngredient11":"","strIngredient12":"","strIngredient13":"","strIngredient14":"","strIngredient15":"","strIngredient16":null,"strIngredient17":null,"strIngredient18":null,"strIngredient19":null,"strIngredient20":null,"strMeasure1":"3\/4 cup","strMeasure2":"1\/2 cup","strMeasure3":"1\/4 cup","strMeasure4":"1\/2 teaspoon","strMeasure5":"1\/2 teaspoon","strMeasure6":"4 Tablespoons","strMeasure7":"2","strMeasure8":"1 (12 oz.)","strMeasure9":"3 cups","strMeasure10":"","strMeasure11":"","strMeasure12":"","strMeasure13":"","strMeasure14":"","strMeasure15":"","strMeasure16":null,"strMeasure17":null,"strMeasure18":null,"strMeasure19":null,"strMeasure20":null,"strSource":null,"strImageSource":null,"strCreativeCommonsConfirmed":null,"dateModified":null}]}
Your assignment is broken to several task that will analyse, structure and enhance recipe by health analysis for allergens and possible intolerancies.
Structure of the result recipe needs to be this:
{
_id: string | undefined;
name: string;
instructions: string[];
thumbnail: string;
video: string;
ingredients: {
image: string;
name: string,
measure: string,
}[];
engineSource: FoodDataSources;
tags: string[];
allergens: {
name: string;
type: ‘Allergy’ | ‘Intolerance’;
ingredient: {
name: string;
index: number; // Index of object in Recipe Ingredients
}
short_description: string;
lowercase: string;
AI_processed: boolean; // Set true if this is added by LLM Model
}[];
}
T1:
Structure input recipe into intermediate recipe result following the expected recipe structure
TR1.1:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":[], // Will be generated in analysis Task
"allergens":[] // Will be generated in analysis Task
}
T2: Take structured recipe from previous task and enhance this recipe by it's analysis.
TR2.1: First round of analysis showed that this recipe is usually served for Lunch or Dinner, it contains Chicken meat and is rather easy to cook (under 30 minues). Therefore, your recipe is upgraded with relevant tags:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":["Lunch", "Dinner", "Easy"], // Will be generated in analysis Task
"allergens":[] // Will be generated in analysis Task
}
TR2.2: Second round of analysis showed that this recipe contains several allergens as ingredients, for example:
Wheat: Wheat Allergy, Celiac Disease, Non-Celiac Gluten Sensitivity
Soy: Soy Allergy
Therefore updated recipe is:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":[], // Will be generated in analysis Task
"allergens":[{
"name": "Wheat Allergy",
"type": "Allergy",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Soy sauce is usually made with wheat, soybeans, salt and water.",
"lowercase": "wheat Allergy",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "CSoy sauce is usually made with wheat which contains gluten that is main allergen of Celiac Disease.",
"lowercase": "celiac disease",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Contains soy, a common source of intolerance.",
"lowercase": "soy",
"AI_processed": false
}]
}
R: Result of assignment 1 after all tasks is following:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":[], // Will be generated in analysis Task
"allergens":[{
"name": "Wheat Allergy",
"type": "Allergy",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Soy sauce is usually made with wheat, soybeans, salt and water.",
"lowercase": "wheat Allergy",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "CSoy sauce is usually made with wheat which contains gluten that is main allergen of Celiac Disease.",
"lowercase": "celiac disease",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Contains soy, a common source of intolerance.",
"lowercase": "soy",
"AI_processed": false
}]
}
A2:
You are given by a JSON interpretation of the recipe, for example:
{"meals":[{"idMeal":"53046","strMeal":"Portuguese custard tarts","strDrinkAlternate":null,"strCategory":"Dessert","strArea":"Portuguese","strInstructions":"STEP 1\r\nRoll the pastry\r\nMix the flour and icing sugar, and use this to dust the work surface. Roll the pastry out to make a 45 x 30cm rectangle. Roll up lengthways to create a long sausage shape.\r\n\r\nSTEP 2\r\nCutting pastry into rounds\r\nCut the pastry into 24 wheels, about 1-2cm thick.\r\n\r\nSTEP 3\r\nRoll out each pastry portion\r\nRoll each wheel lightly with the rolling pin to fit 2 x 12-hole non-stick fairy cake tins.\r\n\r\nSTEP 4\r\nPress pastry into the tin\r\nPress the pastry circles into the tins and mould into the tins to make thin cases. Chill until needed.\r\n\r\nSTEP 5\r\nMake the infused syrup\r\nHeat the oven to 220C\/fan 200C\/gas 7. Make a sugar syrup by bringing the sugar, 200ml water, lemon zest and cinnamon stick to the boil. Reduce until syrupy, allow to cool, then remove the cinnamon and lemon. Whisk the eggs, egg yolks and cornflour until smooth in another large pan.\r\n\r\nSTEP 6\r\nMaking custard\r\nHeat the milk and vanilla pod seeds in a separate pan until just below the boil. Gradually pour the hot milk over the eggs and cornflour, then cook on a low heat, continually whisking.\r\n\r\nSTEP 7\r\nAdd syrup to custard\r\nAdd the cooled sugar syrup to the custard and whisk until thickened slightly.\r\n\r\nSTEP 8\r\nPour custard into the tins\r\nPour the custard through a sieve. Pour into the pastry cases and bake for 15 minutes until the pastry is golden and the custard has darkened.\r\n\r\nSTEP 9\r\ncool and dust with icing sugar\r\nCool completely in the tins then sift over icing sugar and ground cinnamon to serve.\r\n\r\n\r\n\r\n ","strMealThumb":"https:\/\/www.themealdb.com\/images\/media\/meals\/vmz7gl1614350221.jpg","strTags":null,"strYoutube":"https:\/\/www.youtube.com\/watch?v=lWLCxui1Mw8","strIngredient1":"Plain Flour","strIngredient2":"Icing Sugar","strIngredient3":"Puff Pastry","strIngredient4":"Caster Sugar","strIngredient5":"Lemon Zest","strIngredient6":"Cinnamon","strIngredient7":"Eggs","strIngredient8":"Egg Yolks","strIngredient9":"Corn Flour","strIngredient10":"Whole Milk","strIngredient11":"Vanilla","strIngredient12":"Cinnamon","strIngredient13":"","strIngredient14":"","strIngredient15":"","strIngredient16":"","strIngredient17":"","strIngredient18":"","strIngredient19":"","strIngredient20":"","strMeasure1":"2 tbs","strMeasure2":"2 tbs","strMeasure3":"375g","strMeasure4":"250g","strMeasure5":"2 strips","strMeasure6":"1 Stick","strMeasure7":"2","strMeasure8":"4","strMeasure9":"50g","strMeasure10":"500ml","strMeasure11":"Pod of","strMeasure12":"To serve","strMeasure13":" ","strMeasure14":" ","strMeasure15":" ","strMeasure16":" ","strMeasure17":" ","strMeasure18":" ","strMeasure19":" ","strMeasure20":" ","strSource":"https:\/\/www.olivemagazine.com\/recipes\/baking-and-desserts\/portuguese-custard-tarts\/","strImageSource":null,"strCreativeCommonsConfirmed":null,"dateModified":null}]}
Your assignment is broken to several task that will analyse, structure and enhance recipe by health analysis for allergens and possible intolerancies.
AR:
|
410e5d496de8689ded11be1c7bf0c12a
|
{
"intermediate": 0.3679802417755127,
"beginner": 0.35547423362731934,
"expert": 0.2765454947948456
}
|
43,997
|
change this to a textpad file - Dim username As String = Environment.UserName ' Replace with the username you want to check
Dim groupName As String = "AppAccess FG Toolkit" ' Replace with the name of the AD group you want to check
Dim isMember As Boolean = IsUserMemberOfGroup(username, groupName)
If isMember Then
MessageBox.Show("Login Successful. Welcome " & username.ToUpper & "!")
' Show or hide forms as needed
Main.Visible = True
Me.Visible = False
' Write to the log file
Dim logFile As String = "\\youngs3\IT\JG-APPS\FG-Toolkit\accounts-logged.txt"
If System.IO.File.Exists(logFile) Then
Using objWriter As New System.IO.StreamWriter(logFile, True)
objWriter.WriteLine($"{LOGIN_TEXT.Text} {DateTime.Now} {fullversion}")
End Using
End If
Else
|
992da94f4da2fcd40174286b36188a68
|
{
"intermediate": 0.2978629171848297,
"beginner": 0.47993916273117065,
"expert": 0.22219787538051605
}
|
43,998
|
A - Assignment, T - Task, TR - Task Result, R - Result, AR - Assignment Result
AR:
A:
You are given by a JSON interpretation of the recipe, for example:
{"meals":[{"idMeal":"52772","strMeal":"Teriyaki Chicken Casserole","strDrinkAlternate":null,"strCategory":"Chicken","strArea":"Japanese","strInstructions":"Preheat oven to 350\u00b0 F. Spray a 9x13-inch baking pan with non-stick spray.\r\nCombine soy sauce, \u00bd cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.\r\nMeanwhile, stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.\r\nPlace the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.\r\n*Meanwhile, steam or cook the vegetables according to package directions.\r\nAdd the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving. Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce. Enjoy!","strMealThumb":"https:\/\/www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg","strTags":"Meat,Casserole","strYoutube":"https:\/\/www.youtube.com\/watch?v=4aZr5hZXP_s","strIngredient1":"soy sauce","strIngredient2":"water","strIngredient3":"brown sugar","strIngredient4":"ground ginger","strIngredient5":"minced garlic","strIngredient6":"cornstarch","strIngredient7":"chicken breasts","strIngredient8":"stir-fry vegetables","strIngredient9":"brown rice","strIngredient10":"","strIngredient11":"","strIngredient12":"","strIngredient13":"","strIngredient14":"","strIngredient15":"","strIngredient16":null,"strIngredient17":null,"strIngredient18":null,"strIngredient19":null,"strIngredient20":null,"strMeasure1":"3\/4 cup","strMeasure2":"1\/2 cup","strMeasure3":"1\/4 cup","strMeasure4":"1\/2 teaspoon","strMeasure5":"1\/2 teaspoon","strMeasure6":"4 Tablespoons","strMeasure7":"2","strMeasure8":"1 (12 oz.)","strMeasure9":"3 cups","strMeasure10":"","strMeasure11":"","strMeasure12":"","strMeasure13":"","strMeasure14":"","strMeasure15":"","strMeasure16":null,"strMeasure17":null,"strMeasure18":null,"strMeasure19":null,"strMeasure20":null,"strSource":null,"strImageSource":null,"strCreativeCommonsConfirmed":null,"dateModified":null}]}
Your assignment is broken to several task that will analyse, structure and enhance recipe by health analysis for allergens and possible intolerancies.
Structure of the result recipe needs to be this:
{
_id: string | undefined;
name: string;
instructions: string[];
thumbnail: string;
video: string;
ingredients: {
image: string;
name: string,
measure: string,
}[];
engineSource: FoodDataSources;
tags: string[];
allergens: {
name: string;
type: ‘Allergy’ | ‘Intolerance’;
ingredient: {
name: string;
index: number; // Index of object in Recipe Ingredients
}
short_description: string;
lowercase: string;
AI_processed: boolean; // Set true if this is added by LLM Model
}[];
}
T1:
Structure input recipe into intermediate recipe result following the expected recipe structure
TR1.1:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":[], // Will be generated in analysis Task
"allergens":[] // Will be generated in analysis Task
}
T2: Take structured recipe from previous task and enhance this recipe by it's analysis.
TR2.1: First round of analysis showed that this recipe is usually served for Lunch or Dinner, it contains Chicken meat and is rather easy to cook (under 30 minues). Therefore, your recipe is upgraded with relevant tags:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":["Lunch", "Dinner", "Easy"], // Will be generated in analysis Task
"allergens":[] // Will be generated in analysis Task
}
TR2.2: Second round of analysis showed that this recipe contains several allergens as ingredients, for example:
Wheat: Wheat Allergy, Celiac Disease, Non-Celiac Gluten Sensitivity
Soy: Soy Allergy
Therefore updated recipe is:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":[], // Will be generated in analysis Task
"allergens":[{
"name": "Wheat Allergy",
"type": "Allergy",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Soy sauce is usually made with wheat, soybeans, salt and water.",
"lowercase": "wheat Allergy",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "CSoy sauce is usually made with wheat which contains gluten that is main allergen of Celiac Disease.",
"lowercase": "celiac disease",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Contains soy, a common source of intolerance.",
"lowercase": "soy",
"AI_processed": false
}]
}
R: Result of assignment 1 after all tasks is following:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":[], // Will be generated in analysis Task
"allergens":[{
"name": "Wheat Allergy",
"type": "Allergy",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Soy sauce is usually made with wheat, soybeans, salt and water.",
"lowercase": "wheat Allergy",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "CSoy sauce is usually made with wheat which contains gluten that is main allergen of Celiac Disease.",
"lowercase": "celiac disease",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Contains soy, a common source of intolerance.",
"lowercase": "soy",
"AI_processed": false
}]
}
A2:
You are given by a JSON interpretation of the recipe, for example:
{"meals":[{"idMeal":"53046","strMeal":"Portuguese custard tarts","strDrinkAlternate":null,"strCategory":"Dessert","strArea":"Portuguese","strInstructions":"STEP 1\r\nRoll the pastry\r\nMix the flour and icing sugar, and use this to dust the work surface. Roll the pastry out to make a 45 x 30cm rectangle. Roll up lengthways to create a long sausage shape.\r\n\r\nSTEP 2\r\nCutting pastry into rounds\r\nCut the pastry into 24 wheels, about 1-2cm thick.\r\n\r\nSTEP 3\r\nRoll out each pastry portion\r\nRoll each wheel lightly with the rolling pin to fit 2 x 12-hole non-stick fairy cake tins.\r\n\r\nSTEP 4\r\nPress pastry into the tin\r\nPress the pastry circles into the tins and mould into the tins to make thin cases. Chill until needed.\r\n\r\nSTEP 5\r\nMake the infused syrup\r\nHeat the oven to 220C\/fan 200C\/gas 7. Make a sugar syrup by bringing the sugar, 200ml water, lemon zest and cinnamon stick to the boil. Reduce until syrupy, allow to cool, then remove the cinnamon and lemon. Whisk the eggs, egg yolks and cornflour until smooth in another large pan.\r\n\r\nSTEP 6\r\nMaking custard\r\nHeat the milk and vanilla pod seeds in a separate pan until just below the boil. Gradually pour the hot milk over the eggs and cornflour, then cook on a low heat, continually whisking.\r\n\r\nSTEP 7\r\nAdd syrup to custard\r\nAdd the cooled sugar syrup to the custard and whisk until thickened slightly.\r\n\r\nSTEP 8\r\nPour custard into the tins\r\nPour the custard through a sieve. Pour into the pastry cases and bake for 15 minutes until the pastry is golden and the custard has darkened.\r\n\r\nSTEP 9\r\ncool and dust with icing sugar\r\nCool completely in the tins then sift over icing sugar and ground cinnamon to serve.\r\n\r\n\r\n\r\n ","strMealThumb":"https:\/\/www.themealdb.com\/images\/media\/meals\/vmz7gl1614350221.jpg","strTags":null,"strYoutube":"https:\/\/www.youtube.com\/watch?v=lWLCxui1Mw8","strIngredient1":"Plain Flour","strIngredient2":"Icing Sugar","strIngredient3":"Puff Pastry","strIngredient4":"Caster Sugar","strIngredient5":"Lemon Zest","strIngredient6":"Cinnamon","strIngredient7":"Eggs","strIngredient8":"Egg Yolks","strIngredient9":"Corn Flour","strIngredient10":"Whole Milk","strIngredient11":"Vanilla","strIngredient12":"Cinnamon","strIngredient13":"","strIngredient14":"","strIngredient15":"","strIngredient16":"","strIngredient17":"","strIngredient18":"","strIngredient19":"","strIngredient20":"","strMeasure1":"2 tbs","strMeasure2":"2 tbs","strMeasure3":"375g","strMeasure4":"250g","strMeasure5":"2 strips","strMeasure6":"1 Stick","strMeasure7":"2","strMeasure8":"4","strMeasure9":"50g","strMeasure10":"500ml","strMeasure11":"Pod of","strMeasure12":"To serve","strMeasure13":" ","strMeasure14":" ","strMeasure15":" ","strMeasure16":" ","strMeasure17":" ","strMeasure18":" ","strMeasure19":" ","strMeasure20":" ","strSource":"https:\/\/www.olivemagazine.com\/recipes\/baking-and-desserts\/portuguese-custard-tarts\/","strImageSource":null,"strCreativeCommonsConfirmed":null,"dateModified":null}]}
Your assignment is broken to several task that will analyse, structure and enhance recipe by health analysis for allergens and possible intolerancies.
AR:
|
0fccff28bfcabf3b9e0267334bb8165c
|
{
"intermediate": 0.3679802417755127,
"beginner": 0.35547423362731934,
"expert": 0.2765454947948456
}
|
43,999
|
Create An Api For Temp Mail
Here Is How This Api Should Work
How it works:
Generate any email address by using our domain names.
Sign up on sites that require confirmation by email.
The site sends email to the address you specify.
The message comes to our SMTP server, processed and added to the database.
You make a request to the API with login and domain part of email address and get a list of emails etc.
Request API with message ID to get JSON formatted message with body, subject, date, attachments, etc. Or get raw message as arrived in base64 encoding.
|
73a149c6bbf5834e0bff57a52493f354
|
{
"intermediate": 0.4772895574569702,
"beginner": 0.25121650099754333,
"expert": 0.27149394154548645
}
|
44,000
|
A - Assignment, T - Task, TR - Task Result, R - Result, AR - Assignment Result
AR:
A:
You are given by a JSON interpretation of the recipe, for example:
{"meals":[{"idMeal":"52772","strMeal":"Teriyaki Chicken Casserole","strDrinkAlternate":null,"strCategory":"Chicken","strArea":"Japanese","strInstructions":"Preheat oven to 350\u00b0 F. Spray a 9x13-inch baking pan with non-stick spray.\r\nCombine soy sauce, \u00bd cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.\r\nMeanwhile, stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.\r\nPlace the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.\r\n*Meanwhile, steam or cook the vegetables according to package directions.\r\nAdd the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving. Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce. Enjoy!","strMealThumb":"https:\/\/www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg","strTags":"Meat,Casserole","strYoutube":"https:\/\/www.youtube.com\/watch?v=4aZr5hZXP_s","strIngredient1":"soy sauce","strIngredient2":"water","strIngredient3":"brown sugar","strIngredient4":"ground ginger","strIngredient5":"minced garlic","strIngredient6":"cornstarch","strIngredient7":"chicken breasts","strIngredient8":"stir-fry vegetables","strIngredient9":"brown rice","strIngredient10":"","strIngredient11":"","strIngredient12":"","strIngredient13":"","strIngredient14":"","strIngredient15":"","strIngredient16":null,"strIngredient17":null,"strIngredient18":null,"strIngredient19":null,"strIngredient20":null,"strMeasure1":"3\/4 cup","strMeasure2":"1\/2 cup","strMeasure3":"1\/4 cup","strMeasure4":"1\/2 teaspoon","strMeasure5":"1\/2 teaspoon","strMeasure6":"4 Tablespoons","strMeasure7":"2","strMeasure8":"1 (12 oz.)","strMeasure9":"3 cups","strMeasure10":"","strMeasure11":"","strMeasure12":"","strMeasure13":"","strMeasure14":"","strMeasure15":"","strMeasure16":null,"strMeasure17":null,"strMeasure18":null,"strMeasure19":null,"strMeasure20":null,"strSource":null,"strImageSource":null,"strCreativeCommonsConfirmed":null,"dateModified":null}]}
Your assignment is broken to several task that will analyse, structure and enhance recipe by health analysis for allergens and possible intolerancies.
Structure of the result recipe needs to be this:
{
_id: string | undefined;
name: string;
instructions: string[];
thumbnail: string;
video: string;
ingredients: {
image: string;
name: string,
measure: string,
}[];
engineSource: FoodDataSources;
tags: string[];
allergens: {
name: string;
type: ‘Allergy’ | ‘Intolerance’;
ingredient: {
name: string;
index: number; // Index of object in Recipe Ingredients
}
short_description: string;
lowercase: string;
AI_processed: boolean; // Set true if this is added by LLM Model
}[];
}
T1:
Structure input recipe into intermediate recipe result following the expected recipe structure
TR1.1:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":[], // Will be generated in analysis Task
"allergens":[] // Will be generated in analysis Task
}
T2: Take structured recipe from previous task and enhance this recipe by it's analysis.
TR2.1: First round of analysis showed that this recipe is usually served for Lunch or Dinner, it contains Chicken meat and is rather easy to cook (under 30 minues). Therefore, your recipe is upgraded with relevant tags:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":["Lunch", "Dinner", "Easy"], // Will be generated in analysis Task
"allergens":[] // Will be generated in analysis Task
}
TR2.2: Second round of analysis showed that this recipe contains several allergens as ingredients, for example:
Wheat: Wheat Allergy, Celiac Disease, Non-Celiac Gluten Sensitivity
Soy: Soy Allergy
Therefore updated recipe is:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":[], // Will be generated in analysis Task
"allergens":[{
"name": "Wheat Allergy",
"type": "Allergy",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Soy sauce is usually made with wheat, soybeans, salt and water.",
"lowercase": "wheat Allergy",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "CSoy sauce is usually made with wheat which contains gluten that is main allergen of Celiac Disease.",
"lowercase": "celiac disease",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Contains soy, a common source of intolerance.",
"lowercase": "soy",
"AI_processed": false
}]
}
R: Result of assignment 1 after all tasks is following:
{
"_id":"",
"name":"Teriyaki Chicken Casserole",
"instructions":[
"Preheat oven to 350° F.",
"Spray a 9x13-inch baking pan with non-stick spray.",
"Combine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.",
"Stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.",
"Place the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.",
"*Meanwhile, steam or cook the vegetables according to package directions.",
"Add the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving.",
"Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce."
],
"thumbnail":"https://www.themealdb.com\/images\/media\/meals\/wvpsxx1468256321.jpg",
"video":"https://www.youtube.com\/watch?v=4aZr5hZXP_s",
"ingredients":[
{
"image":"",
"name":"soy sauce",
"measure":"3⁄4 cup"
},
{
"image":"",
"name":"water",
"measure":"1/2 cup"
},
{
"image":"",
"name":"brown sugar",
"measure":"1/4 cup"
},
{
"image":"",
"name":"ground ginger",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"minced garlic",
"measure":"1/2 teaspoon"
},
{
"image":"",
"name":"cornstarch",
"measure":"4 Tablespoons"
},
{
"image":"",
"name":"chicken breasts",
"measure":"2"
},
{
"image":"",
"name":"stir-fry vegetables",
"measure":"1 (12 oz.)"
},
{
"image":"",
"name":"brown rice",
"measure":"3 cups"
}
],
"engineSource":"FoodDataCentral",
"tags":[], // Will be generated in analysis Task
"allergens":[{
"name": "Wheat Allergy",
"type": "Allergy",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Soy sauce is usually made with wheat, soybeans, salt and water.",
"lowercase": "wheat Allergy",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "CSoy sauce is usually made with wheat which contains gluten that is main allergen of Celiac Disease.",
"lowercase": "celiac disease",
"AI_processed": false
},
{
"name": "Celiac Disease",
"type": "Intolerance",
"ingredient": {
"name": "soy sauce",
"index": 0
},
"short_description": "Contains soy, a common source of intolerance.",
"lowercase": "soy",
"AI_processed": false
}]
}
A2:
You are given by a JSON interpretation of the recipe, for example:
{"meals":[{"idMeal":"53046","strMeal":"Portuguese custard tarts","strDrinkAlternate":null,"strCategory":"Dessert","strArea":"Portuguese","strInstructions":"STEP 1\r\nRoll the pastry\r\nMix the flour and icing sugar, and use this to dust the work surface. Roll the pastry out to make a 45 x 30cm rectangle. Roll up lengthways to create a long sausage shape.\r\n\r\nSTEP 2\r\nCutting pastry into rounds\r\nCut the pastry into 24 wheels, about 1-2cm thick.\r\n\r\nSTEP 3\r\nRoll out each pastry portion\r\nRoll each wheel lightly with the rolling pin to fit 2 x 12-hole non-stick fairy cake tins.\r\n\r\nSTEP 4\r\nPress pastry into the tin\r\nPress the pastry circles into the tins and mould into the tins to make thin cases. Chill until needed.\r\n\r\nSTEP 5\r\nMake the infused syrup\r\nHeat the oven to 220C\/fan 200C\/gas 7. Make a sugar syrup by bringing the sugar, 200ml water, lemon zest and cinnamon stick to the boil. Reduce until syrupy, allow to cool, then remove the cinnamon and lemon. Whisk the eggs, egg yolks and cornflour until smooth in another large pan.\r\n\r\nSTEP 6\r\nMaking custard\r\nHeat the milk and vanilla pod seeds in a separate pan until just below the boil. Gradually pour the hot milk over the eggs and cornflour, then cook on a low heat, continually whisking.\r\n\r\nSTEP 7\r\nAdd syrup to custard\r\nAdd the cooled sugar syrup to the custard and whisk until thickened slightly.\r\n\r\nSTEP 8\r\nPour custard into the tins\r\nPour the custard through a sieve. Pour into the pastry cases and bake for 15 minutes until the pastry is golden and the custard has darkened.\r\n\r\nSTEP 9\r\ncool and dust with icing sugar\r\nCool completely in the tins then sift over icing sugar and ground cinnamon to serve.\r\n\r\n\r\n\r\n ","strMealThumb":"https:\/\/www.themealdb.com\/images\/media\/meals\/vmz7gl1614350221.jpg","strTags":null,"strYoutube":"https:\/\/www.youtube.com\/watch?v=lWLCxui1Mw8","strIngredient1":"Plain Flour","strIngredient2":"Icing Sugar","strIngredient3":"Puff Pastry","strIngredient4":"Caster Sugar","strIngredient5":"Lemon Zest","strIngredient6":"Cinnamon","strIngredient7":"Eggs","strIngredient8":"Egg Yolks","strIngredient9":"Corn Flour","strIngredient10":"Whole Milk","strIngredient11":"Vanilla","strIngredient12":"Cinnamon","strIngredient13":"","strIngredient14":"","strIngredient15":"","strIngredient16":"","strIngredient17":"","strIngredient18":"","strIngredient19":"","strIngredient20":"","strMeasure1":"2 tbs","strMeasure2":"2 tbs","strMeasure3":"375g","strMeasure4":"250g","strMeasure5":"2 strips","strMeasure6":"1 Stick","strMeasure7":"2","strMeasure8":"4","strMeasure9":"50g","strMeasure10":"500ml","strMeasure11":"Pod of","strMeasure12":"To serve","strMeasure13":" ","strMeasure14":" ","strMeasure15":" ","strMeasure16":" ","strMeasure17":" ","strMeasure18":" ","strMeasure19":" ","strMeasure20":" ","strSource":"https:\/\/www.olivemagazine.com\/recipes\/baking-and-desserts\/portuguese-custard-tarts\/","strImageSource":null,"strCreativeCommonsConfirmed":null,"dateModified":null}]}
Your assignment is broken to several task that will analyse, structure and enhance recipe by health analysis for allergens and possible intolerancies.
AR:
|
bec3764de9583e096eae4f62127801b3
|
{
"intermediate": 0.3679802417755127,
"beginner": 0.35547423362731934,
"expert": 0.2765454947948456
}
|
44,001
|
write a code to find fibonacci number in tcl
|
9b5755c6051a4fa5b69f4565042f25c9
|
{
"intermediate": 0.26825711131095886,
"beginner": 0.16995517909526825,
"expert": 0.5617877244949341
}
|
44,002
|
I am making a C++ SDL based game engine, currently finalising everything, I already have the AudioManager, the SoundEffect and the Music classes done and probably working, and I am about to close the commit, but something crossed my mind, both the SoundEffect and the Music have method in common only by name, the implementation is different, should I add an interface class to join them together or not needed?
SoundEffect common with Music:
int GetVolume() const;
void SetVolume(int volume);
void Play(int loops = 0);
void PlayFadeIn(int ms, int loops = 0); //inverted parameter order because of loops being optional
void Pause();
void Resume();
void Stop();
void StopFadeOut(int ms);
SoundEffect specifics:
int GetChannel() const;
void SetChannel(int channel);
Music common with SoundEffect
int GetVolume() const;
void SetVolume(int volume);
void Play(int loops = -1);
void PlayFadeIn(int loops, int ms);
void Pause();
void Resume();
void Stop();
void StopFadeOut(int ms);
Music specifics:
double GetTempo() const;
void SetTempo(double tempo);
double GetSpeed() const;
void SetSpeed(double speed);
double GetPitch() const;
void SetPitch(double pitch);
double GetDuration() const;
bool IsPlaying() const;
bool IsFading() const;
std::string GetTitleTag() const;
std::string GetArtistTag() const;
std::string GetAlbumTag() const;
void SetEffectPanning(uint8_t left, uint8_t right);
void SetEffectDistance(uint8_t distance);
void SetEffectPosition(int16_t angle, uint8_t distance);
void RemoveEffects();
|
e6f7682c2a8a438d2f4014a8966a3c59
|
{
"intermediate": 0.5284461975097656,
"beginner": 0.3920976519584656,
"expert": 0.07945618033409119
}
|
44,003
|
API documentation
https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/
11 API endpoints
Use the gradio_client Python library or the @gradio/client Javascript package to query the demo via API.
copy
$ pip install gradio_client
Endpoints
api_name: /upvote_last_response
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
null, # Literal[] in 'parameter_10' Dropdown component
api_name="/upvote_last_response"
)
print(result)
Return Type(s)
# str representing output in 'value_3' Textbox component
api_name: /downvote_last_response
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
null, # Literal[] in 'parameter_10' Dropdown component
api_name="/downvote_last_response"
)
print(result)
Return Type(s)
# str representing output in 'value_3' Textbox component
api_name: /flag_last_response
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
null, # Literal[] in 'parameter_10' Dropdown component
api_name="/flag_last_response"
)
print(result)
Return Type(s)
# str representing output in 'value_3' Textbox component
api_name: /regenerate
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
"Crop", # Literal['Crop', 'Resize', 'Pad', 'Default'] in 'Preprocess for non-square image' Radio component
api_name="/regenerate"
)
print(result)
Return Type(s)
(
# Tuple[str | Dict(file: filepath, alt_text: str | None) | None, str | Dict(file: filepath, alt_text: str | None) | None] representing output in 'LLaVA Chatbot' Chatbot component,
# str representing output in 'value_3' Textbox component,
# filepath representing output in 'value_11' Image component,
)
api_name: /http_bot
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
null, # Literal[] in 'parameter_10' Dropdown component
0, # float (numeric value between 0.0 and 1.0) in 'Temperature' Slider component
0, # float (numeric value between 0.0 and 1.0) in 'Top P' Slider component
0, # float (numeric value between 0 and 1024) in 'Max output tokens' Slider component
api_name="/http_bot"
)
print(result)
Return Type(s)
# Tuple[str | Dict(file: filepath, alt_text: str | None) | None, str | Dict(file: filepath, alt_text: str | None) | None] representing output in 'LLaVA Chatbot' Chatbot component
api_name: /clear_history
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
api_name="/clear_history"
)
print(result)
Return Type(s)
(
# Tuple[str | Dict(file: filepath, alt_text: str | None) | None, str | Dict(file: filepath, alt_text: str | None) | None] representing output in 'LLaVA Chatbot' Chatbot component,
# str representing output in 'value_3' Textbox component,
# filepath representing output in 'value_11' Image component,
)
api_name: /add_text
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
"Hello!!", # str in 'parameter_3' Textbox component
"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png", # filepath in 'parameter_11' Image component
"Crop", # Literal['Crop', 'Resize', 'Pad', 'Default'] in 'Preprocess for non-square image' Radio component
api_name="/add_text"
)
print(result)
Return Type(s)
(
# Tuple[str | Dict(file: filepath, alt_text: str | None) | None, str | Dict(file: filepath, alt_text: str | None) | None] representing output in 'LLaVA Chatbot' Chatbot component,
# str representing output in 'value_3' Textbox component,
# filepath representing output in 'value_11' Image component,
)
api_name: /http_bot_1
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
null, # Literal[] in 'parameter_10' Dropdown component
0, # float (numeric value between 0.0 and 1.0) in 'Temperature' Slider component
0, # float (numeric value between 0.0 and 1.0) in 'Top P' Slider component
0, # float (numeric value between 0 and 1024) in 'Max output tokens' Slider component
api_name="/http_bot_1"
)
print(result)
Return Type(s)
# Tuple[str | Dict(file: filepath, alt_text: str | None) | None, str | Dict(file: filepath, alt_text: str | None) | None] representing output in 'LLaVA Chatbot' Chatbot component
api_name: /add_text_1
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
"Hello!!", # str in 'parameter_3' Textbox component
"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png", # filepath in 'parameter_11' Image component
"Crop", # Literal['Crop', 'Resize', 'Pad', 'Default'] in 'Preprocess for non-square image' Radio component
api_name="/add_text_1"
)
print(result)
Return Type(s)
(
# Tuple[str | Dict(file: filepath, alt_text: str | None) | None, str | Dict(file: filepath, alt_text: str | None) | None] representing output in 'LLaVA Chatbot' Chatbot component,
# str representing output in 'value_3' Textbox component,
# filepath representing output in 'value_11' Image component,
)
api_name: /http_bot_2
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
null, # Literal[] in 'parameter_10' Dropdown component
0, # float (numeric value between 0.0 and 1.0) in 'Temperature' Slider component
0, # float (numeric value between 0.0 and 1.0) in 'Top P' Slider component
0, # float (numeric value between 0 and 1024) in 'Max output tokens' Slider component
api_name="/http_bot_2"
)
print(result)
Return Type(s)
# Tuple[str | Dict(file: filepath, alt_text: str | None) | None, str | Dict(file: filepath, alt_text: str | None) | None] representing output in 'LLaVA Chatbot' Chatbot component
api_name: /load_demo_refresh_model_list
copy
from gradio_client import Client
client = Client("https://liuhaotian-llava-1-6.hf.space/--replicas/z1wes/")
result = client.predict(
api_name="/load_demo_refresh_model_list"
)
print(result)
Return Type(s)
# Literal[] representing output in 'value_10' Dropdown component
|
49c0e8e30665cd2829f969ecbd974965
|
{
"intermediate": 0.354551762342453,
"beginner": 0.43549844622612,
"expert": 0.20994976162910461
}
|
44,004
|
is there are command line in windows 10 to exec "Next desktop background" - next random
|
81b98e664b070a96b274d470039fa9ec
|
{
"intermediate": 0.2728489935398102,
"beginner": 0.3377092480659485,
"expert": 0.38944175839424133
}
|
44,005
|
model = models.Sequential()
model.add(layers.Conv2D(32, (3, 3), activation='relu', input_shape=(128, 128, 3)))
model.add(layers.MaxPooling2D((2, 2)))
model.add(layers.Conv2D(64, (3, 3), activation='relu'))
model.add(layers.MaxPooling2D((2, 2)))
model.add(layers.Flatten())
model.add(layers.Dense(64, activation='relu'))
model.add(layers.Dropout(0.2))
model.add(layers.Dense(1, activation='sigmoid'))
# Компиляция модели
model.compile(optimizer='adam',
loss='binary_crossentropy',
metrics=['accuracy']) Как сделать метрику логлосс?
|
23e4542111d305b53275760aca0148f9
|
{
"intermediate": 0.25038447976112366,
"beginner": 0.1725797951221466,
"expert": 0.5770357251167297
}
|
44,006
|
pydantic dict with specific required keys
|
61d76ed3eacf5f32c4ff6523c9af412e
|
{
"intermediate": 0.385336309671402,
"beginner": 0.31460320949554443,
"expert": 0.300060510635376
}
|
44,007
|
У меня есть приложение, которое общается с драйвером и меняет байты. Из минусов - оно работает, если запущен один экземпляр l2.bin, а я могу запустить максимум 2 экземпляра. Нужно, чтобы программа отслеживала новые pid процессов l2.bin. Если появляется новый процесс - производится его патчинг. Помни, что я могу запустить максимум 2 процесса. Следовательно, если 2 процесса запущено, то отслеживать новые не нужно, если один процесс закроется, нужно следить за процессами и быть готовым, что запустится второй
#include <iostream>
#include <iomanip>
#include <future>
#include <algorithm>
#include <string>
#include <memory>
#include <mutex>
#include <vector>
#include <Windows.h>
#include <TlHelp32.h>
#include "driver_code.h"
class MemoryPatcher {
HANDLE driver_handle;
DWORD pid;
std::mutex print_mutex;
std::uintptr_t turnback_patch_address = 0;
bool is_patched_to_31 = false;
public:
MemoryPatcher(HANDLE driverHandle, DWORD processId) : driver_handle(driverHandle), pid(processId) {}
bool apply_patch(const std::string& patch_name, const std::vector<BYTE>& sequence, const std::vector<BYTE>& patch, std::uintptr_t start_address, std::uintptr_t end_address, int target_occurrence = 1) {
std::lock_guard<std::mutex> guard(print_mutex);
std::cout << "[+] Attempting to apply " << patch_name << " patch\n";
int occurrence_count = 0;
auto current_address = start_address;
while (current_address < end_address) {
auto found_address = driver::find_memory_sequence(driver_handle, pid, sequence, current_address, end_address);
if (found_address != 0) {
occurrence_count++;
if (occurrence_count == target_occurrence) {
std::cout << "[+] " << patch_name << " sequence found at: 0x" << std::uppercase << std::hex << found_address << std::dec << "\n";
if (driver::replace_memory_sequence(driver_handle, found_address, patch)) {
std::cout << "[+] " << patch_name << " sequence has been successfully replaced!\n";
if (patch_name == "turnback" && occurrence_count == target_occurrence) {
turnback_patch_address = found_address;
std::cout << "[+] vision address set to: 0x" << std::hex << turnback_patch_address << std::dec << "\n";
}
return true;
}
else {
std::cout << "[-] Failed to apply " << patch_name << ".\n";
return false;
}
}
current_address = found_address + sequence.size();
}
else {
break;
}
}
std::cout << "[-] " << patch_name << " sequence not found.\n";
return false;
}
void toggle_vision() {
std::lock_guard<std::mutex> guard(print_mutex);
if (turnback_patch_address == 0) {
std::cout << "[-] vision address is not set.\n";
return;
}
std::vector<BYTE> new_patch;
std::string vision_state_before_toggle = is_patched_to_31 ? "OFF -" : "ON +";
if (is_patched_to_31) {
new_patch = { 0x00, 0x00, 0x00, 0x73, 0x00, 0x74, 0x00, 0x61, 0x00, 0x74, 0x00, 0x20, 0x00, 0x66, 0x00, 0x70, 0x00, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0x00, 0x6D, 0x00, 0x6F, 0x00, 0x64, 0x00, 0x65, 0x00, 0x20, 0x00, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
} else {
new_patch = { 0x00, 0x00, 0x00, 0x73, 0x00, 0x74, 0x00, 0x61, 0x00, 0x74, 0x00, 0x20, 0x00, 0x66, 0x00, 0x70, 0x00, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0x00, 0x6D, 0x00, 0x6F, 0x00, 0x64, 0x00, 0x65, 0x00, 0x20, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
}
if (driver::replace_memory_sequence(driver_handle, turnback_patch_address, new_patch)) {
is_patched_to_31 = !is_patched_to_31;
std::string vision_state_after_toggle = is_patched_to_31 ? "OFF -" : "ON +";
std::cout << "[+] vision " << vision_state_after_toggle << "\n";
}
else {
std::cout << "[-] failed to toggle Vision.\n";
}
}
};
int main() {
setlocale(LC_ALL, "Russian");
std::cout << "\n"
" /\\ o o o\\ \n"
" /o \\ o o o\\_______\n"
"< >------> o /| Zonner сосать\n"
" \\ o/ o /_____/o| , ,__\n"
" \\/______/ |oo| c'' \)? \n"
" | o |o/ ''''\n"
" |_______|/\n" << std::endl;
auto pid = ProcessHelper::getProcessId(L"l2.bin");
if (pid == 0) {
std::cout << "[-] Failed to find l2.bin.\n";
std::cin.get();
return 1;
}
HANDLE driver_handle = CreateFile(L"\\\\.\\MotorolaDriver", GENERIC_READ, 0, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
if (driver_handle == INVALID_HANDLE_VALUE) {
std::cout << "[-] Failed to create our driver handle.\n";
std::cin.get();
return 1;
}
if (driver::attach_to_process(driver_handle, pid)) {
std::cout << "[+] Attachment successful.\n";
}
else {
std::cout << "[-] Failed to attach to process.\n";
std::cin.get();
return 1;
}
MemoryPatcher patcher(driver_handle, pid);
std::vector<BYTE> page_up_down_bytes = { 0x44, 0x00, 0x65, 0x00, 0x62, 0x00, 0x75, 0x00, 0x67, 0x00, 0x4D, 0x00, 0x65, 0x00, 0x6E, 0x00, 0x75, 0x00, 0x2E, 0x00, 0x75, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0x69, 0x00, 0x78, 0x00, 0x65, 0x00, 0x64, 0x00, 0x44, 0x00, 0x65, 0x00, 0x66, 0x00, 0x61, 0x00, 0x75, 0x00, 0x6C, 0x00, 0x74, 0x00, 0x43, 0x00, 0x61, 0x00, 0x6D, 0x00, 0x65, 0x00, 0x72, 0x00, 0x61, 0x00, 0x20, 0x00, 0x44, 0x00, 0x6F, 0x00, 0x77, 0x00, 0x6E, 0x00, 0x00, 0x00, 0x46, 0x00, 0x69, 0x00, 0x78, 0x00, 0x65, 0x00, 0x64, 0x00, 0x44, 0x00, 0x65, 0x00, 0x66, 0x00, 0x61, 0x00, 0x75, 0x00, 0x6C, 0x00, 0x74, 0x00, 0x43, 0x00, 0x61, 0x00, 0x6D, 0x00, 0x65, 0x00, 0x72, 0x00, 0x61, 0x00, 0x20, 0x00, 0x55, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4B, 0x00, 0x65, 0x00, 0x79, 0x00, 0x62, 0x00, 0x6F, 0x00, 0x61, 0x00, 0x72, 0x00, 0x64, 0x00, 0x50, 0x00, 0x65, 0x00, 0x72, 0x00, 0x6D, 0x00, 0x61, 0x00, 0x6E, 0x00, 0x65, 0x00, 0x6E, 0x00, 0x74, 0x00, 0x4D, 0x00, 0x6F, 0x00, 0x76, 0x00, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
std::vector<BYTE> page_up_down_patch = { 0x44, 0x00, 0x65, 0x00, 0x62, 0x00, 0x75, 0x00, 0x67, 0x00, 0x4D, 0x00, 0x65, 0x00, 0x6E, 0x00, 0x75, 0x00, 0x2E, 0x00, 0x75, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4C, 0x00, 0x32, 0x00, 0x52, 0x00, 0x65, 0x00, 0x73, 0x00, 0x74, 0x00, 0x61, 0x00, 0x72, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x00, 0x68, 0x00, 0x6F, 0x00, 0x77, 0x00, 0x20, 0x00, 0x70, 0x00, 0x61, 0x00, 0x72, 0x00, 0x74, 0x00, 0x69, 0x00, 0x63, 0x00, 0x6C, 0x00, 0x65, 0x00, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4B, 0x00, 0x65, 0x00, 0x79, 0x00, 0x62, 0x00, 0x6F, 0x00, 0x61, 0x00, 0x72, 0x00, 0x64, 0x00, 0x50, 0x00, 0x65, 0x00, 0x72, 0x00, 0x6D, 0x00, 0x61, 0x00, 0x6E, 0x00, 0x65, 0x00, 0x6E, 0x00, 0x74, 0x00, 0x4D, 0x00, 0x6F, 0x00, 0x76, 0x00, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
std::vector<BYTE> turnback_bytes = { 0x00, 0x00, 0x00, 0x73, 0x00, 0x74, 0x00, 0x61, 0x00, 0x74, 0x00, 0x20, 0x00, 0x66, 0x00, 0x70, 0x00, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x00, 0x75, 0x00, 0x72, 0x00, 0x6E, 0x00, 0x42, 0x00, 0x61, 0x00, 0x63, 0x00, 0x6B, 0x00, 0x00, 0x00, 0x00, 0x00 };
std::vector<BYTE> turnback_patch = { 0x00, 0x00, 0x00, 0x73, 0x00, 0x74, 0x00, 0x61, 0x00, 0x74, 0x00, 0x20, 0x00, 0x66, 0x00, 0x70, 0x00, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0x00, 0x6D, 0x00, 0x6F, 0x00, 0x64, 0x00, 0x65, 0x00, 0x20, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
// Асинхронно применяем патчи
auto pageUpDownPatchFuture = std::async(std::launch::async, &MemoryPatcher::apply_patch, &patcher, "page up - page down", page_up_down_bytes, page_up_down_patch, 0x00000000, 0x7FFFFFFF, 1);
auto turnBackPatchFuture = std::async(std::launch::async, &MemoryPatcher::apply_patch, &patcher, "turnback", turnback_bytes, turnback_patch, 0x0000000, 0x7FFFFFFF, 2);
// Ожидаем завершения
pageUpDownPatchFuture.wait();
turnBackPatchFuture.wait();
std::cout << "\n[+] Waiting for vision action...\n";
// Цикл для отслеживания нажатия кнопки колесика мыши
while (true) {
Sleep(100); // задержка для снижения загрузки CPU
if ((GetAsyncKeyState(VK_MBUTTON) & 0x8000) != 0) {
patcher.toggle_vision();
Sleep(340); // чтобы избежать ложных нажатий
}
}
CloseHandle(driver_handle);
std::cin.get();
return 0;
}
|
628a8346bfca02cdd05b71a453476b88
|
{
"intermediate": 0.27437272667884827,
"beginner": 0.4268629848957062,
"expert": 0.29876425862312317
}
|
44,008
|
I am making a c++ sdl based game engine, currently doing the EventManager, help me design it:
OK I got this in mind, this is my design:
I want to make a pub/sub pattern, EventManager is going to follow an event-driven architecture, there will be event producers that are just using the SDL backend so the producers will be implicitly, the consumers will subscribe to an event, I don't know if it will be the Event object or an specific sub class of the Event, this is the part that need to be worked on. Then the Event class will be an abstract class that will be sub-divided into the specific SDL_Event classes.
This is my diagram:
->EventManager
- Publish?
- Subscribe?
- PollEvent?
->Event (similar to SDL_Event but without being an union of events)
->SDL_CommonEvent common common event data
-> ...
->SDL_DisplayEvent display display event data
-> ...
->SDL_WindowEvent window window event data
-> ...
->SDL_KeyboardEvent key keyboard event data
-> ...
->SDL_TextEditingEvent edit text editing event data
-> ...
->SDL_TextInputEvent text text input event data
-> ...
->SDL_MouseMotionEvent motion mouse motion event data
-> ...
->SDL_MouseButtonEvent button mouse button event data
-> SDL_MOUSEBUTTONDOWN
-> SDL_MOUSEBUTTONUP
->SDL_MouseWheelEvent wheel mouse wheel event data
-> ...
->SDL_JoyAxisEvent jaxis joystick axis event data
-> ...
->SDL_JoyBallEvent jball joystick ball event data
-> ...
->SDL_JoyHatEvent jhat joystick hat event data
-> ...
->SDL_JoyButtonEvent jbutton joystick button event data
-> ...
->SDL_JoyDeviceEvent jdevice joystick device event data
-> ...
->SDL_ControllerAxisEvent caxis game controller axis event data
-> ...
->SDL_ControllerButtonEvent cbutton game controller button event data
-> ...
->SDL_ControllerDeviceEvent cdevice game controller device event data
-> ...
->SDL_AudioDeviceEvent adevice audio device event data (>= SDL 2.0.4)
-> ...
->SDL_QuitEvent quit quit request event data
-> ...
->SDL_UserEvent user custom event data
-> ...
->SDL_SysWMEvent syswm system dependent window event data
-> ...
->SDL_TouchFingerEvent tfinger touch finger event data
-> ...
->SDL_MultiGestureEvent mgesture multi finger gesture data
-> ...
->SDL_DollarGestureEvent dgesture multi finger gesture data
-> ...
->SDL_DropEvent drop drag and drop event data
-> ...
Maybe some of them shouldn't be needed, but those will be Event sub classes of the main Event Class.
An example of its usage will be like this:
The InputManager will subscribe to the input events, and work it out in its Update function.
Originally the Input Manager Update method is like this:
void InputManager::Update()
{
SDL_Event event;
while (SDL_PollEvent(&event))
{
switch (event.type)
{
case SDL_MOUSEBUTTONUP: // this will
{
//...
}
case SDL_MOUSEBUTTONDOWN:
{
//...
}
case SDL_CONTROLLERDEVICEADDED:
{
//...
}
case SDL_CONTROLLERDEVICEREMOVED:
{
//...
}
case SDL_CONTROLLERBUTTONDOWN:
case SDL_CONTROLLERBUTTONUP:
{
//...
}
}
}
}
Now it will change that there won't be any SDL, now there could be two alternatives, on this.
1) Using an Event::PollEvent method. (simpler but inefficient)
2) Automatically recieve an event and when the Update is called do it. (complex and needs a queue event or similar to deal with it?)
I prefer the 2nd option, using the Event class as a base class where every other event is derived, and EventManager will use a queue with mutex locks, so it will change like this:
void EventManager::Update()
{
//Add events from the SDL_PollEvent source.
//Push top event of the queue to the subscribers.
//Remove event from the queue
}
void InputManager::Update()
{
//Receive the event from the publisher (event manager)
//Handle the event
}
Now, the fields of an Event class could have priority, and maybe type depending of which alternative to follow, which one do you think is a better way on this:
1) Event -> MouseButtonEvent -> type = MouseButtonEventEnum::MOUSEBUTTONDOWN or type = MouseButtonEventEnum::MOUSEBUTTONUP
2) Event -> MouseButtonEvent -> MouseButtonDownEvent
-> MouseButtonUpEvent
|
d04cf1ba621fc4f8f6633fc1ef71724c
|
{
"intermediate": 0.44611385464668274,
"beginner": 0.36999931931495667,
"expert": 0.18388685584068298
}
|
44,009
|
how to find and delete duplicated images automatically if they dont have the same name
|
6ac426e40e201a6bde7dae9c9e4f20f1
|
{
"intermediate": 0.1859796941280365,
"beginner": 0.12557195127010345,
"expert": 0.6884483695030212
}
|
44,010
|
how to represent a fraction in lua
|
a3c96b4dd912b332285490285ee222a4
|
{
"intermediate": 0.30782753229141235,
"beginner": 0.22270824015140533,
"expert": 0.4694643020629883
}
|
44,011
|
How can I respond to a coworker message where we share numbers
|
9d1e17105d18d26969a5c40156681cbe
|
{
"intermediate": 0.39356622099876404,
"beginner": 0.3828369975090027,
"expert": 0.22359682619571686
}
|
44,012
|
below is my html code which idCount is numberic.
write js code for finding by id.
<div class="message-content" id="response-${idCount}">
|
8b3309e58d82d61c753da7b2631ff0d9
|
{
"intermediate": 0.43526965379714966,
"beginner": 0.26529550552368164,
"expert": 0.2994349002838135
}
|
44,013
|
class template instantiation user-defined move constructor
|
88df36d50377b8761d396fd292b90553
|
{
"intermediate": 0.28104841709136963,
"beginner": 0.5351716876029968,
"expert": 0.18377992510795593
}
|
44,014
|
I talked with you in another instance and you helped me decide the name of a rpg game engine, we went by the name of Ulfr, what does this means and why?
|
31e301bde0ee511e680be21e2b1f05c5
|
{
"intermediate": 0.370504230260849,
"beginner": 0.30373415350914,
"expert": 0.325761616230011
}
|
44,015
|
Hi, I have four unsigned integers, and, given a threshold, I would like to understand if the ratio between the minimum of them and the others can be thought as a integer ratio, or it has an integer plus half ratio, like 2.5. In C++, to check if the ratio is integer, I am using fmodf, however I would like to introduce even half ratio. Can you please suggest how to do?
|
c4abb05a000a3eccdf72bf3465edf306
|
{
"intermediate": 0.4471946358680725,
"beginner": 0.17132897675037384,
"expert": 0.38147643208503723
}
|
44,016
|
I am making a C++ sdl based game engine, currently doing the EventManager and the event system, this is what I have now:
Here’s a broad overview of how the classes and their methods could be structured within your event-driven system. This structure is designed to maintain clarity, flexibility, and separation of concerns while leveraging C++ features for efficient and effective event management.
### EventManager
class EventManager {
public:
void Subscribe(EventType type, std::function<void(std::shared_ptr<Event>)> handler);
void Publish(std::shared_ptr<Event> event);
void Update(); // Processes the event queue and dispatches events
private:
std::mutex queueMutex;
std::queue<std::shared_ptr<Event>> eventQueue;
std::map<EventType, std::vector<std::function<void(std::shared_ptr<Event>)>>> subscribers;
};
In this setup:
- Subscribe allows different parts of the game engine (e.g., InputManager) to subscribe to specific event types with a callback function.
- Publish adds events to the queue. In a real-time game, you’d likely call this method in response to SDL events or other input sources.
- Update is called every game loop iteration to dispatch and clear processed events. It ensures thread-safe access to the event queue.
### Event Base Class and Subclasses
class Event {
public:
virtual ~Event() = default;
virtual EventType GetType() const = 0;
// Common event data and methods
protected:
int priority;
};
class MouseButtonEvent : public Event {
public:
EventType GetType() const override { return EventType::MouseButton; }
// Mouse button event-specific data and methods
};
class KeyboardEvent : public Event {
public:
EventType GetType() const override { return EventType::Keyboard; }
// Keyboard event-specific data and methods
};
// Additional Event subclasses follow the same pattern.
In this structure:
- Each Event subclass implements GetType(), returning its specific EventType. It allows EventManager to correctly dispatch the event to subscribers interested in that type.
- You can extend the hierarchy with more event types as needed, following the same pattern.
### Usage with InputManager (Consumer Example)
class InputManager {
public:
InputManager(EventManager& eventManager) {
// Subscribe to specific event types
eventManager.Subscribe(EventType::Keyboard, [this](std::shared_ptr<Event> event){ this->HandleKeyboardEvent(std::static_pointer_cast<KeyboardEvent>(event)); });
}
void HandleKeyboardEvent(std::shared_ptr<KeyboardEvent> event) {
// Process the keyboard event
}
// Other event handling methods
};
In this example:
- InputManager subscribes to events by providing a lambda that wraps its handling method. For events it is interested in, it casts the Event pointer to the correct type using std::static_pointer_cast.
- This pattern can be repeated for other managers or game components that need to respond to specific events.
Now my question is, is there a way to change the EventType here, that it would be an Enum, to an alternative that uses " an Event or any of its sub-classes", so giving flexibility to the user to create their own event deriving from Event, and also EventManager supporting those events?
|
44ae00220598c07d76094f8154978eb0
|
{
"intermediate": 0.4065302312374115,
"beginner": 0.2743659019470215,
"expert": 0.3191039264202118
}
|
44,017
|
Here's an extract from a reddit personals ad:
|
9d1109d5e74c21aa46da32fb8594d0f7
|
{
"intermediate": 0.3157458007335663,
"beginner": 0.3524579703807831,
"expert": 0.331796258687973
}
|
44,018
|
Write JS code for a window that asks you to select whether to install Windows 8 or Windows 10. Once you choose one, it will take you to a loading bar. Once the loading bar reaches 100%, it will take you to a screen where you have to register a username and password.
|
2a1c704469a19b22bfda3639e12a2d01
|
{
"intermediate": 0.3389036953449249,
"beginner": 0.37512558698654175,
"expert": 0.28597065806388855
}
|
44,019
|
Make a Pygame code for a loading bar, with text above that says “Booting Windows…”
|
7d2b3d999adddcb8e970777fdf5ef89d
|
{
"intermediate": 0.43698129057884216,
"beginner": 0.25277748703956604,
"expert": 0.3102411925792694
}
|
44,020
|
Write me a nix file that I can add packages to and call nix shell to use them
|
3e309cd74fe6e94c124a65472b06d37f
|
{
"intermediate": 0.44810187816619873,
"beginner": 0.23884239792823792,
"expert": 0.31305575370788574
}
|
44,021
|
check this:
def _blocksum_pairwise(clr, fields, transforms, clr_weight_name, regions, span):
"""
calculates block summary for a collection of
rectangular regions defined as pairwise combinations
of all regions.
Return:
a dictionary of block-wide sums for all "fields":
keys are (i,j)-like, where i and j are 0-based indexes of
"regions", and a combination of (i,j) defines rectangular block.
Note:
Input pixels are assumed to be "symmetric-upper", and "regions"
to be sorted according to the order of chromosomes in "clr", thus
i < j.
"""
lo, hi = span
bins = clr.bins()[:]
pixels = clr.pixels()[lo:hi]
pixels = cooler.annotate(pixels, bins, replace=False)
pixels["r1"] = assign_supports(pixels, regions, suffix="1")
pixels["r2"] = assign_supports(pixels, regions, suffix="2")
# pre-filter asymetric pixels only that have notnull weights
if clr_weight_name is None:
pixels = pixels.dropna(subset=["r1", "r2"])
else:
pixels = pixels.dropna(
subset=["r1", "r2", clr_weight_name + "1", clr_weight_name + "2"]
)
pixels = pixels[pixels["r1"] != pixels["r2"]]
# apply transforms, e.g. balancing etc
for field, t in transforms.items():
pixels[field] = t(pixels)
# pairwise-combinations of regions define asymetric pixels-blocks
pixel_groups = pixels.groupby(["r1", "r2"])
return {
(int(i), int(j)): group[fields].sum(skipna=False)
for (i, j), group in pixel_groups
}
allow alternate reductions for aggregation across diagonals #507
for example, standard deviation (or variance) instead of sum/mean.
how would you add that to the current function
|
1b4f5ffcf8b553e37ff7995ddb8e9649
|
{
"intermediate": 0.43998250365257263,
"beginner": 0.23445464670658112,
"expert": 0.32556283473968506
}
|
44,022
|
python script to connect to snowflake read, write, transform
|
82f1b88b5aaa6cf806f1d3c6ff453518
|
{
"intermediate": 0.3743685185909271,
"beginner": 0.3214038014411926,
"expert": 0.30422770977020264
}
|
44,023
|
can you solve this leetcode problem using heap in python
Given an array of meeting time intervals intervals where intervals[i] = [starti, endi], return the minimum number of conference rooms required.
|
6a1d31d7ef910cccf4181fbcb5357296
|
{
"intermediate": 0.40977126359939575,
"beginner": 0.18271856009960175,
"expert": 0.4075101613998413
}
|
44,024
|
Write python code for an investment calculator,
|
9d1057011b462f163ef7c9f0a6698679
|
{
"intermediate": 0.3515079617500305,
"beginner": 0.2825782001018524,
"expert": 0.36591386795043945
}
|
44,025
|
is there any way to scrap data from website but also adding extention in chrome first because that website will not work without chrome. So what strategy you use and i preferred PHP first then python
|
fee9dc780a9ec7d24b5467cb91a24fdb
|
{
"intermediate": 0.5516662001609802,
"beginner": 0.20956991612911224,
"expert": 0.23876383900642395
}
|
44,026
|
write a PHP code to send a Message in Mattermost Channel i am using Self Hosted Mattermost and my mattermost link is connect.fotorender.co.uk
|
3a06c1e9d82251a539df1a04a72ca436
|
{
"intermediate": 0.4788365066051483,
"beginner": 0.31018781661987305,
"expert": 0.21097569167613983
}
|
44,027
|
write a PHP code to send a Message in Mattermost Channel i am using Self Hosted Mattermost and my mattermost link is connect.fotorender.co.uk
|
0883376a7ae58ea26371482ae8b014d8
|
{
"intermediate": 0.4788365066051483,
"beginner": 0.31018781661987305,
"expert": 0.21097569167613983
}
|
44,028
|
write a PHP code to send a Message in Mattermost Channel i am using Self Hosted Mattermost and my mattermost link is connect.fotorender.co.uk
|
93890ebe1a3bf8da6a81ea636799cb81
|
{
"intermediate": 0.4788365066051483,
"beginner": 0.31018781661987305,
"expert": 0.21097569167613983
}
|
44,029
|
for(size_t i=0; i < users.size(); i++ ){
this loop iterate through a vecotr, why is it declare size_t instean of int
|
07d0f70e7c17b2cfdd2381eade60a7f1
|
{
"intermediate": 0.14345955848693848,
"beginner": 0.7604619860649109,
"expert": 0.09607846289873123
}
|
44,030
|
How do I open a file directory on the native machine's file explorer? (Like mac, it would be windows) In java? I can't use desktop.open because I'm in a headless environment
|
96c2e0767778098f1be6716120d3e7f9
|
{
"intermediate": 0.5639244914054871,
"beginner": 0.17478160560131073,
"expert": 0.2612939774990082
}
|
44,031
|
InputStream reader = Runtime.getRuntime().exec("open " + FileUtils.getExternalFile("/saves").getAbsolutePath().replace(" ", "\\ ")).getErrorStream();
Im getting The files /Users/eboschert/Library/Application\ and /Users/eboschert/eclipse-workspace/Valence/Support/valence/saves do not exist.Shutting down!
|
8a8ae9e94abc898517562e4fd7392a81
|
{
"intermediate": 0.5129470825195312,
"beginner": 0.27336084842681885,
"expert": 0.21369203925132751
}
|
44,032
|
Hello
|
68f664c7aff7bf3afeafe12b1a462af5
|
{
"intermediate": 0.3123404085636139,
"beginner": 0.2729349136352539,
"expert": 0.4147246778011322
}
|
44,033
|
str to printable bytes in Python3 ? I want this incomplete_key_hex = '34415102f3be22c6f83343be762e2d' to be converted for subbmition as incomplete_key_hex = b'34415102f3be22c6f83343be762e2d'
|
6cfb5646b637e5495fd137c0fb88041d
|
{
"intermediate": 0.474749356508255,
"beginner": 0.3185326159000397,
"expert": 0.2067180722951889
}
|
44,034
|
explain how this works
def maxlist(A):
if len(A) == 1:
return A[0]
else:
m=maxlist(A[1:])
if A[0] > m:
return A[0]
else:
return m
|
23ba45337225c5b14f7157c473a487a3
|
{
"intermediate": 0.32140639424324036,
"beginner": 0.4415210783481598,
"expert": 0.23707254230976105
}
|
44,035
|
Memberlist={}
Transactions={}
#Enter Details
Numberofmembers=int(input())
for n in range (Numberofmembers):
details=input().split(",")
Memberlist[n]=[details[0],details[1].lower(),details[2]]
#[0] is Name, [1] is Email, [2] is Phone
#Enter Transactions
Numberoftransactions=int(input())
for n in range(Numberoftransactions):
details=input().split(",")
Transactions[n]=[float(details[0]),float(details[1]),float(details[2])]
print(Transactions)
#[0] is Member ID, [1] is Rental fee, [2] is Coupon discount amount
id=int(input())
n=0
Totalpayment=0
Coupon=0
User={}
for key, value in Transactions:
if value[0]==id:
n+=1
Totalpayment+=value[1]
Coupon+=value[2]
User[key]=value
print(f"Rental Summary for Member: {Memberlist[id][0]} ({Memberlist[id][1]} | {Memberlist[id][2]})")
print(f"Total Rental Transactions: {n}\nTotal Rental Fee: ${Totalpayment}\nTotal Discount Amount: ${Coupon}\nNet Payment Amount: ${Totalpayment-Coupon}\nAverage Rental Fee per Transaction: ${Totalpayment/n}\n\n")
print(f"Applied Coupon(s):")
for key, value in User:
print(f"{key}: ${value}")
|
f8f56af654e80aae380c708cf465b877
|
{
"intermediate": 0.3280000686645508,
"beginner": 0.43360450863838196,
"expert": 0.23839539289474487
}
|
44,036
|
Hi, I have a degree in computer science. Currently I am learning web technologies, more specifically - how to work with sockets, by writing http server from scratch on Python and its' packages socket, urllib, sys and other, if necessary. Can you give me an example for this?
|
e7120e42eb285b9ee1f2e00961ba8423
|
{
"intermediate": 0.6499608755111694,
"beginner": 0.23150309920310974,
"expert": 0.11853604763746262
}
|
44,037
|
please edit the following English for me: How can we explore these quality measures to get maximal values from them?
Can we develop a measure to improve healthcare quality?
|
f339c58b5d760d56a35ee594d4e9e818
|
{
"intermediate": 0.28279492259025574,
"beginner": 0.2388506382703781,
"expert": 0.4783543646335602
}
|
44,038
|
hi
|
b4eea4bb75b63cdd0cbd305e3c501877
|
{
"intermediate": 0.3246487081050873,
"beginner": 0.27135494351387024,
"expert": 0.40399640798568726
}
|
44,039
|
i want to generate plaintexts like this -> plaintext = b'0123456789ABCDEF' but they needs to be random on Python
|
ab1f4d99c65fd9562772149cc4b59537
|
{
"intermediate": 0.43699684739112854,
"beginner": 0.15583419799804688,
"expert": 0.4071689248085022
}
|
44,040
|
Check if the category is ‘Task_work’
if (current.category == 'Task_work') {
// Reference the related task record
var taskGR = new GlideRecord('task');
if (taskGR.get(current.task)) { // Assuming ‘task’ is the reference field to the task table
// Set the Cost Center value from the related task record to the task_card record
current.cost_center = taskGR.cost_center;
}
}
my requirement is modified according to your script, but Cost center is being populated on after I save the record(time_card). It has to update the cost center while creating itself.
|
8b0a3968047346bb3c1ffa41ed37bc7e
|
{
"intermediate": 0.3360690176486969,
"beginner": 0.328239381313324,
"expert": 0.3356916010379791
}
|
44,041
|
In servicenow, We have requirement that whenever any incident prompted to P1 or P2 . In Service Portal in Banner we got a message that we are following these incidents "incident_number - short description"
|
388a16d0a8df03dd1245e4aad92f5e6d
|
{
"intermediate": 0.22851413488388062,
"beginner": 0.28326988220214844,
"expert": 0.4882158935070038
}
|
44,042
|
In servicenow, We have requirement that whenever any incident prompted to P1 or P2 . In Service Portal in Banner we got a message that we are following these incidents “incident_number - short_description”
|
ddbaa69f0faa90e25cdd6ffea09d3e86
|
{
"intermediate": 0.21798820793628693,
"beginner": 0.30058205127716064,
"expert": 0.4814298152923584
}
|
44,043
|
In servicenow, looking for a way that I create a form using record producer in servicenow and after submission, the form will be generated and send out as pdf form to a designated email,
|
418ebd118fcf619b4d6aff83c882343d
|
{
"intermediate": 0.4812820851802826,
"beginner": 0.22569701075553894,
"expert": 0.29302090406417847
}
|
44,044
|
check this:
build stats CLI that will report pairtools-like stats:
nnz per region (cis); per pair of regions ("trans"); in total
fraction of contacts per region; per pair of regions ("trans"); in total
distance decay: % of contacts by distance ranges
cis2trans, cis and trans per region and in total
I put "trans" in quotation marks because it can be in cis (in terms of chromosomes) but between different regions.
User can provide a single region to get its properties of only this one.
Suggested API:
cooltools stats input.cool --view regions.txt --nproc 10
Additional options:
--chrom-subset
--yaml/--no-yaml
Maybe also:
--cis2trans-only
--nnz-only
--decay-only
--fraction-only
--cis-only to remove the stats between regions (may reduce computations)
--trans-only to calculate only trans stats and ignore all the cis ones
and also this:
Implementation idea: go through pixel chunks and collect stats per chunk - perhaps some code from PairCounter in pairtools can be reused!
this is the code the are referring to as pairtools-like:
@cli.command()
@click.argument("input_path", type=str, nargs=-1, required=False)
@click.option("-o", "--output", type=str, default="", help="output stats tsv file.")
@click.option(
"--merge",
is_flag=True,
help="If specified, merge multiple input stats files instead of calculating"
" statistics of a .pairs/.pairsam file. Merging is performed via summation of"
" all overlapping statistics. Non-overlapping statistics are appended to"
" the end of the file. Supported for tsv stats with single filter.",
)
@click.option(
"--with-chromsizes/--no-chromsizes",
is_flag=True,
default=True,
help="If enabled, will store sizes of chromosomes from the header of the pairs file"
" in the stats file.",
)
@click.option(
"--yaml/--no-yaml",
is_flag=True,
default=False,
help="Output stats in yaml format instead of table. ",
)
@click.option(
"--bytile-dups/--no-bytile-dups",
default=False,
help="If enabled, will analyse by-tile duplication statistics to estimate"
" library complexity more accurately."
" Requires parent_readID column to be saved by dedup (will be ignored otherwise)"
" Saves by-tile stats into --output_bytile-stats stream, or regular output if --output_bytile-stats is not provided.",
)
@click.option(
"--output-bytile-stats",
default="",
required=False,
help="output file for tile duplicate statistics."
" If file exists, it will be open in the append mode."
" If the path ends with .gz or .lz4, the output is bgzip-/lz4c-compressed."
" By default, by-tile duplicate statistics are not printed."
" Note that the readID and parent_readID should be provided and contain tile information for this option.",
)
# Filtering options:
@click.option(
"--filter",
default=None,
required=False,
multiple=True,
help="Filters with conditions to apply to the data (similar to `pairtools select`). "
"For non-YAML output only the first filter will be reported. "
"""Example: pairtools stats --yaml --filter 'unique:(pair_type=="UU")' --filter 'close:(pair_type=="UU") and (abs(pos1-pos2)<10)' test.pairs """,
)
@click.option(
"--engine",
default="pandas",
required=False,
help="Engine for regular expression parsing. "
"Python will provide you regex functionality, while pandas does not accept custom funtctions and works faster. ",
)
@click.option(
"--chrom-subset",
type=str,
default=None,
required=False,
help="A path to a chromosomes file (tab-separated, 1st column contains "
"chromosome names) containing a chromosome subset of interest. "
"If provided, additionally filter pairs with both sides originating from "
"the provided subset of chromosomes. This operation modifies the #chromosomes: "
"and #chromsize: header fields accordingly.",
)
@click.option(
"--startup-code",
type=str,
default=None,
required=False,
help="An auxiliary code to execute before filtering. "
"Use to define functions that can be evaluated in the CONDITION statement",
)
@click.option(
"-t",
"--type-cast",
type=(str, str),
default=(),
multiple=True,
help="Cast a given column to a given type. By default, only pos and mapq "
"are cast to int, other columns are kept as str. Provide as "
"-t <column_name> <type>, e.g. -t read_len1 int. Multiple entries are allowed.",
)
@common_io_options
def stats(
input_path, output, merge, bytile_dups, output_bytile_stats, filter, **kwargs
):
"""Calculate pairs statistics.
INPUT_PATH : by default, a .pairs/.pairsam file to calculate statistics.
If not provided, the input is read from stdin.
If --merge is specified, then INPUT_PATH is interpreted as an arbitrary number
of stats files to merge.
The files with paths ending with .gz/.lz4 are decompressed by bgzip/lz4c.
"""
stats_py(
input_path,
output,
merge,
bytile_dups,
output_bytile_stats,
filter,
**kwargs,
)
def stats_py(
input_path, output, merge, bytile_dups, output_bytile_stats, filter, **kwargs
):
if merge:
do_merge(output, input_path, **kwargs)
return
if len(input_path) == 0:
raise ValueError(f"No input paths: {input_path}")
instream = fileio.auto_open(
input_path[0],
mode="r",
nproc=kwargs.get("nproc_in"),
command=kwargs.get("cmd_in", None),
)
outstream = fileio.auto_open(
output,
mode="w",
nproc=kwargs.get("nproc_out"),
command=kwargs.get("cmd_out", None),
)
if bytile_dups and not output_bytile_stats:
output_bytile_stats = outstream
if output_bytile_stats:
bytile_dups = True
header, body_stream = headerops.get_header(instream)
cols = headerops.extract_column_names(header)
# Check necessary columns for reporting by-tile stats:
if bytile_dups and "parent_readID" not in cols:
logger.warning(
"No 'parent_readID' column in the file, not generating duplicate stats."
)
bytile_dups = False
# Define filters and their properties
first_filter_name = "no_filter" # default filter name for full output
if filter is not None and len(filter) > 0:
first_filter_name = filter[0].split(":", 1)[0]
if len(filter) > 1 and not kwargs.get("yaml", False):
logger.warn(
f"Output the first filter only in non-YAML output: {first_filter_name}"
)
filter = dict([f.split(":", 1) for f in filter])
else:
filter = None
stats = PairCounter(
bytile_dups=bytile_dups,
filters=filter,
startup_code=kwargs.get("startup_code", ""), # for evaluation of filters
type_cast=kwargs.get("type_cast", ()), # for evaluation of filters
engine=kwargs.get("engine", "pandas"),
)
# Collecting statistics
for chunk in pd.read_table(body_stream, names=cols, chunksize=100_000):
stats.add_pairs_from_dataframe(chunk)
if kwargs.get("with_chromsizes", True):
chromsizes = headerops.extract_chromsizes(header)
stats.add_chromsizes(chromsizes)
if bytile_dups:
stats.save_bytile_dups(output_bytile_stats)
# save statistics to file ...
stats.save(
outstream,
yaml=kwargs.get("yaml", False), # format as yaml
filter=first_filter_name
if not kwargs.get("yaml", False)
else None, # output only the first filter if non-YAML output
)
if instream != sys.stdin:
instream.close()
if outstream != sys.stdout:
outstream.close()
if __name__ == "__main__":
stats()
with all this information write a long description of the project. Must include all technical details.
|
f3455f660316bc861b6bfdf8c0aba908
|
{
"intermediate": 0.37053415179252625,
"beginner": 0.2735554575920105,
"expert": 0.35591045022010803
}
|
44,045
|
What this code is doiing? Part of a challenge : import time
import numpy as np
import socket
import base64
# This might be useful with the exploitation of the device at some point!
#import lascar
HOST = '0.0.0.0' # This must be changed to the corresponding value of the live instance
PORT = 1337 # This must be changed to the corresponding value of the live instance
# This function is used to decode the base64 transmitted power trace (which is a NumPy array)
# The function should only be called for the response of the 1. option and on the data received
# after we send the plaintext (as seen in the example code below)
def b64_decode_trace(leakage):
byte_data = base64.b64decode(leakage)
return np.frombuffer(byte_data) # convert binary data into a NumPy array
# This function is used to communicate with the remote machine (Laptop-2) via socket
def connect_to_socket(option, data):
# Initialize a socket connection
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST, PORT))
resp_1 = s.recv(1024)
s.sendall(option)
resp_2 = s.recv(1024) # Receive response
# Send the data
# option one: binary plaintext
# option two: Hex encoded AES KEY
s.sendall(data)
# Receive response
# option one: receive base64 encoded binary data
# that represented the power traces as a Numpy array
# option two: receive an ASCII Message
# (if the key is correct the flag will be returned)
resp_data = b''
while True:
temp_data = s.recv(8096)
if not temp_data:
break
resp_data += temp_data
s.close()
# The print commands can be used for debugging in order to observe the responses
# The following print commands can be commented out.
print(resp_1.decode('ascii'))
print(option)
print(resp_2.decode('ascii'))
print(data)
#print(resp_data)
return resp_data
# Sample binary plaintext
plaintext = b'0123456789ABCDEF'
# Example use of option 1
print("Option 1:")
leakage = connect_to_socket(b'1', plaintext)
power_trace = b64_decode_trace(leakage)
print("Length of power trace: {}".format(power_trace.shape))
#print(power_trace) # Outputs the NumPy array that represents the power trace.
# Always use a delay between each connection
# in order to have a stable connection
time.sleep(0.1)
# Sample HEX encoded AES KEY
KEY = b'00112233445566778899AABBCCDDEEFF'
print("\nOption 2:")
# Example use of option 2
response = connect_to_socket(b'2', KEY)
print(response)
|
e284dedb0fcbcc362c153f0ce51bdcc9
|
{
"intermediate": 0.5047789812088013,
"beginner": 0.39078038930892944,
"expert": 0.10444062948226929
}
|
44,046
|
A group of hikers need to make it to the top of a mountain. They can only move forward by either hopping over one rock or two rocks at a time. How many different ways can they reach the summit of the mountain, given that there are n rocks to hop over?
Example 1:
Input: n = 2
Output: 2
Explanation: There are two ways to reach the summit of the mountain.
0. Hopping over one rock, then one more rock
0. Hopping over two rocks at once
Example 2:
Input: n = 3
Output: 3
Explanation: There are three ways to reach the summit of the mountain.
please do it in javascript
|
a6edf66ed3e77bd61d422f43059b8204
|
{
"intermediate": 0.41139647364616394,
"beginner": 0.33152034878730774,
"expert": 0.25708314776420593
}
|
44,047
|
how to add # Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
|
81299bbd4a9aa59c86e15e3e2ccd043e
|
{
"intermediate": 0.3555106818675995,
"beginner": 0.3216414451599121,
"expert": 0.3228478729724884
}
|
44,048
|
shmget 0666 flag , what does it do?
|
e09c0e7d3b47eeb6b9338751984bc9e1
|
{
"intermediate": 0.43272873759269714,
"beginner": 0.19233933091163635,
"expert": 0.3749319314956665
}
|
44,049
|
Make a powershell script taking a directory dir_name from command line. The script should find and delete files with names from a list [file1, file2, file3] and any extension recursively in all subdirectories under dir_name.
|
9387186e9aacce959fde20443c3c4609
|
{
"intermediate": 0.41687941551208496,
"beginner": 0.21254849433898926,
"expert": 0.37057211995124817
}
|
44,050
|
Make a powershell script taking a directory dir_name from command line. The script should find and delete files with names from a list [file1, file2, file3] and any extension recursively in all subdirectories under dir_name.
|
431c551d2ae2ab34056a4d0d06e3c5ac
|
{
"intermediate": 0.40515294671058655,
"beginner": 0.21609953045845032,
"expert": 0.37874752283096313
}
|
44,051
|
Hi There, please be a senior sapui5 developer and ansower my question with working code example.
|
55f829da0b22fa2b5357d112d18f21ef
|
{
"intermediate": 0.40850746631622314,
"beginner": 0.2731282711029053,
"expert": 0.31836429238319397
}
|
44,052
|
check this code:
import re
import logging
logging.basicConfig(level=logging.INFO)
import warnings
from functools import partial
import numpy as np
import pandas as pd
import cooler
from skimage.filters import threshold_li, threshold_otsu
from ..lib._query import CSRSelector
from ..lib import peaks, numutils
from ..lib.checks import is_compatible_viewframe, is_cooler_balanced
from ..lib.common import make_cooler_view, pool_decorator
def get_n_pixels(bad_bin_mask, window=10, ignore_diags=2):
"""
Calculate the number of "good" pixels in a diamond at each bin.
"""
N = len(bad_bin_mask)
n_pixels = np.zeros(N)
loc_bad_bin_mask = np.zeros(N, dtype=bool)
for i_shift in range(0, window):
for j_shift in range(0, window):
if i_shift + j_shift < ignore_diags:
continue
loc_bad_bin_mask[:] = False
if i_shift == 0:
loc_bad_bin_mask |= bad_bin_mask
else:
loc_bad_bin_mask[i_shift:] |= bad_bin_mask[:-i_shift]
if j_shift == 0:
loc_bad_bin_mask |= bad_bin_mask
else:
loc_bad_bin_mask[:-j_shift] |= bad_bin_mask[j_shift:]
n_pixels[i_shift : (-j_shift if j_shift else None)] += (
1 - loc_bad_bin_mask[i_shift : (-j_shift if j_shift else None)]
)
return n_pixels
def insul_diamond(
pixel_query,
bins,
window=10,
ignore_diags=2,
norm_by_median=True,
clr_weight_name="weight",
):
"""
Calculates the insulation score of a Hi-C interaction matrix.
Parameters
----------
pixel_query : RangeQuery object <TODO:update description>
A table of Hi-C interactions. Must follow the Cooler columnar format:
bin1_id, bin2_id, count, balanced (optional)).
bins : pandas.DataFrame
A table of bins, is used to determine the span of the matrix
and the locations of bad bins.
window : int
The width (in bins) of the diamond window to calculate the insulation
score.
ignore_diags : int
If > 0, the interactions at separations < `ignore_diags` are ignored
when calculating the insulation score. Typically, a few first diagonals
of the Hi-C map should be ignored due to contamination with Hi-C
artifacts.
norm_by_median : bool
If True, normalize the insulation score by its NaN-median.
clr_weight_name : str or None
Name of balancing weight column from the cooler to use.
Using raw unbalanced data is not supported for insulation.
"""
lo_bin_id = bins.index.min()
hi_bin_id = bins.index.max() + 1
N = hi_bin_id - lo_bin_id
sum_counts = np.zeros(N)
sum_balanced = np.zeros(N)
if clr_weight_name is None:
# define n_pixels
n_pixels = get_n_pixels(
np.repeat(False, len(bins)), window=window, ignore_diags=ignore_diags
)
else:
# calculate n_pixels
n_pixels = get_n_pixels(
bins[clr_weight_name].isnull().values,
window=window,
ignore_diags=ignore_diags,
)
# define transform - balanced and raw ('count') for now
weight1 = clr_weight_name + "1"
weight2 = clr_weight_name + "2"
transform = lambda p: p["count"] * p[weight1] * p[weight2]
for chunk_dict in pixel_query.read_chunked():
chunk = pd.DataFrame(chunk_dict, columns=["bin1_id", "bin2_id", "count"])
diag_pixels = chunk[chunk.bin2_id - chunk.bin1_id <= (window - 1) * 2]
if clr_weight_name:
diag_pixels = cooler.annotate(diag_pixels, bins[[clr_weight_name]])
diag_pixels["balanced"] = transform(diag_pixels)
valid_pixel_mask = ~diag_pixels["balanced"].isnull().values
i = diag_pixels.bin1_id.values - lo_bin_id
j = diag_pixels.bin2_id.values - lo_bin_id
for i_shift in range(0, window):
for j_shift in range(0, window):
if i_shift + j_shift < ignore_diags:
continue
mask = (
(i + i_shift == j - j_shift)
& (i + i_shift < N)
& (j - j_shift >= 0)
)
sum_counts += np.bincount(
i[mask] + i_shift, diag_pixels["count"].values[mask], minlength=N
)
if clr_weight_name:
sum_balanced += np.bincount(
i[mask & valid_pixel_mask] + i_shift,
diag_pixels["balanced"].values[mask & valid_pixel_mask],
minlength=N,
)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
if clr_weight_name:
score = sum_balanced / n_pixels
else:
score = sum_counts / n_pixels
if norm_by_median:
score /= np.nanmedian(score)
return score, n_pixels, sum_balanced, sum_counts
@pool_decorator
def calculate_insulation_score(
clr,
window_bp,
view_df=None,
ignore_diags=None,
min_dist_bad_bin=0,
is_bad_bin_key="is_bad_bin",
append_raw_scores=False,
chunksize=20000000,
clr_weight_name="weight",
verbose=False,
nproc=1,
map_functor=map,
):
"""Calculate the diamond insulation scores for all bins in a cooler.
Parameters
----------
clr : cooler.Cooler
A cooler with balanced Hi-C data.
window_bp : int or list of integers
The size of the sliding diamond window used to calculate the insulation
score. If a list is provided, then a insulation score if calculated for each
value of window_bp.
view_df : bioframe.viewframe or None
Viewframe for independent calculation of insulation scores for regions
ignore_diags : int | None
The number of diagonals to ignore. If None, equals the number of
diagonals ignored during IC balancing.
min_dist_bad_bin : int
The minimal allowed distance to a bad bin to report insulation score.
Fills bins that have a bad bin closer than this distance by nans.
is_bad_bin_key : str
Name of the output column to store bad bins
append_raw_scores : bool
If True, append columns with raw scores (sum_counts, sum_balanced, n_pixels)
to the output table.
clr_weight_name : str or None
Name of the column in the bin table with weight.
Using unbalanced data with `None` will avoid masking "bad" pixels.
verbose : bool
If True, report real-time progress.
nproc : int, optional
How many processes to use for calculation. Ignored if map_functor is passed.
map_functor : callable, optional
Map function to dispatch the matrix chunks to workers.
If left unspecified, pool_decorator applies the following defaults: if nproc>1 this defaults to multiprocess.Pool;
If nproc=1 this defaults the builtin map.
Returns
-------
ins_table : pandas.DataFrame
A table containing the insulation scores of the genomic bins
"""
if view_df is None:
view_df = make_cooler_view(clr)
else:
# Make sure view_df is a proper viewframe
try:
_ = is_compatible_viewframe(
view_df,
clr,
check_sorting=True,
raise_errors=True,
)
except Exception as e:
raise ValueError("view_df is not a valid viewframe or incompatible") from e
# check if cooler is balanced
if clr_weight_name:
try:
_ = is_cooler_balanced(clr, clr_weight_name, raise_errors=True)
except Exception as e:
raise ValueError(
f"provided cooler is not balanced or {clr_weight_name} is missing"
) from e
bin_size = clr.info["bin-size"]
# check if ignore_diags is valid
if ignore_diags is None:
try:
ignore_diags = clr._load_attrs(
clr.root.rstrip("/") + f"/bins/{clr_weight_name}"
)["ignore_diags"]
except:
raise ValueError(
f"ignore_diags not provided, and not found in cooler balancing weights {clr_weight_name}"
)
elif isinstance(ignore_diags, int):
pass # keep it as is
else:
raise ValueError(f"ignore_diags must be int or None, got {ignore_diags}")
if np.isscalar(window_bp):
window_bp = [window_bp]
window_bp = np.array(window_bp, dtype=int)
bad_win_sizes = window_bp % bin_size != 0
if np.any(bad_win_sizes):
raise ValueError(
f"The window sizes {window_bp[bad_win_sizes]} has to be a multiple of the bin size {bin_size}"
)
# Calculate insulation score for each region separately.
# Using try-clause to close mp.Pool properly
# Apply get_region_insulation:
job = partial(
_get_region_insulation,
clr,
is_bad_bin_key,
clr_weight_name,
chunksize,
window_bp,
min_dist_bad_bin,
ignore_diags,
append_raw_scores,
verbose,
)
ins_region_tables = map_functor(job, view_df[["chrom", "start", "end", "name"]].values)
ins_table = pd.concat(ins_region_tables)
return ins_table
def _get_region_insulation(
clr,
is_bad_bin_key,
clr_weight_name,
chunksize,
window_bp,
min_dist_bad_bin,
ignore_diags,
append_raw_scores,
verbose,
region,
):
"""
Auxilary function to make calculate_insulation_score parallel.
"""
# XXX -- Use a delayed query executor
nbins = len(clr.bins())
selector = CSRSelector(
clr.open("r"), shape=(nbins, nbins), field="count", chunksize=chunksize
)
# Convert window sizes to bins:
bin_size = clr.info["bin-size"]
window_bins = window_bp // bin_size
# Parse region and set up insulation table for the region:
chrom, start, end, name = region
region = [chrom, start, end]
region_bins = clr.bins().fetch(region)
ins_region = region_bins[["chrom", "start", "end"]].copy()
ins_region.loc[:, "region"] = name
ins_region[is_bad_bin_key] = (
region_bins[clr_weight_name].isnull() if clr_weight_name else False
)
if verbose:
logging.info(f"Processing region {name}")
if min_dist_bad_bin:
ins_region = ins_region.assign(
dist_bad_bin=numutils.dist_to_mask(ins_region[is_bad_bin_key])
)
# XXX --- Create a delayed selection
c0, c1 = clr.extent(region)
region_query = selector[c0:c1, c0:c1]
for j, win_bin in enumerate(window_bins):
with warnings.catch_warnings():
warnings.simplefilter("ignore", RuntimeWarning)
# XXX -- updated insul_diamond
ins_track, n_pixels, sum_balanced, sum_counts = insul_diamond(
region_query,
region_bins,
window=win_bin,
ignore_diags=ignore_diags,
clr_weight_name=clr_weight_name,
)
ins_track[ins_track == 0] = np.nan
ins_track = np.log2(ins_track)
ins_track[~np.isfinite(ins_track)] = np.nan
ins_region[f"log2_insulation_score_{window_bp[j]}"] = ins_track
ins_region[f"n_valid_pixels_{window_bp[j]}"] = n_pixels
if min_dist_bad_bin:
mask_bad = ins_region.dist_bad_bin.values < min_dist_bad_bin
ins_region.loc[mask_bad, f"log2_insulation_score_{window_bp[j]}"] = np.nan
if append_raw_scores:
ins_region[f"sum_counts_{window_bp[j]}"] = sum_counts
ins_region[f"sum_balanced_{window_bp[j]}"] = sum_balanced
return ins_region
def find_boundaries(
ins_table,
min_frac_valid_pixels=0.66,
min_dist_bad_bin=0,
log2_ins_key="log2_insulation_score_{WINDOW}",
n_valid_pixels_key="n_valid_pixels_{WINDOW}",
is_bad_bin_key="is_bad_bin",
):
"""Call insulating boundaries.
Find all local minima of the log2(insulation score) and calculate their
chromosome-wide topographic prominence.
Parameters
----------
ins_table : pandas.DataFrame
A bin table with columns containing log2(insulation score),
annotation of regions (required),
the number of valid pixels per diamond and (optionally) the mask
of bad bins. Normally, this should be an output of calculate_insulation_score.
view_df : bioframe.viewframe or None
Viewframe for independent boundary calls for regions
min_frac_valid_pixels : float
The minimal fraction of valid pixels in a diamond to be used in
boundary picking and prominence calculation.
min_dist_bad_bin : int
The minimal allowed distance to a bad bin to be used in boundary picking.
Ignore bins that have a bad bin closer than this distance.
log2_ins_key, n_valid_pixels_key : str
The names of the columns containing log2_insulation_score and
the number of valid pixels per diamond. When a template
containing `{WINDOW}` is provided, the calculation is repeated
for all pairs of columns matching the template.
Returns
-------
ins_table : pandas.DataFrame
A bin table with appended columns with boundary prominences.
"""
if min_dist_bad_bin:
ins_table = pd.concat(
[
df.assign(dist_bad_bin=numutils.dist_to_mask(df[is_bad_bin_key]))
for region, df in ins_table.groupby("region")
]
)
if "{WINDOW}" in log2_ins_key:
windows = set()
for col in ins_table.columns:
m = re.match(log2_ins_key.format(WINDOW=r"(\d+)"), col)
if m:
windows.add(int(m.groups()[0]))
else:
windows = set([None])
min_valid_pixels = {
win: ins_table[n_valid_pixels_key.format(WINDOW=win)].max()
* min_frac_valid_pixels
for win in windows
}
dfs = []
index_name = ins_table.index.name # Store the name of the index and soring order
sorting_order = ins_table.index.values
ins_table.index.name = "sorting_index"
ins_table.reset_index(drop=False, inplace=True)
for region, df in ins_table.groupby("region"):
df = df.sort_values(["start"]) # Force sorting by the bin start coordinate
for win in windows:
mask = (
df[n_valid_pixels_key.format(WINDOW=win)].values
>= min_valid_pixels[win]
)
if min_dist_bad_bin:
mask &= df.dist_bad_bin.values >= min_dist_bad_bin
ins_track = df[log2_ins_key.format(WINDOW=win)].values[mask]
poss, proms = peaks.find_peak_prominence(-ins_track)
ins_prom_track = np.zeros_like(ins_track) * np.nan
ins_prom_track[poss] = proms
if win is not None:
bs_key = f"boundary_strength_{win}"
else:
bs_key = "boundary_strength"
df[bs_key] = np.nan
df.loc[mask, bs_key] = ins_prom_track
dfs.append(df)
df = pd.concat(dfs)
df = df.set_index("sorting_index") # Restore original sorting order and name
df.index.name = index_name
df = df.loc[sorting_order, :]
return df
def _insul_diamond_dense(mat, window=10, ignore_diags=2, norm_by_median=True):
"""
Calculates the insulation score of a Hi-C interaction matrix.
Parameters
----------
mat : numpy.array
A dense square matrix of Hi-C interaction frequencies.
May contain nans, e.g. in rows/columns excluded from the analysis.
window : int
The width of the window to calculate the insulation score.
ignore_diags : int
If > 0, the interactions at separations < `ignore_diags` are ignored
when calculating the insulation score. Typically, a few first diagonals
of the Hi-C map should be ignored due to contamination with Hi-C
artifacts.
norm_by_median : bool
If True, normalize the insulation score by its NaN-median.
Returns
-------
score : ndarray
an array with normalized insulation scores for provided matrix
"""
if ignore_diags:
mat = mat.copy()
for i in range(-ignore_diags + 1, ignore_diags):
numutils.set_diag(mat, np.nan, i)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
N = mat.shape[0]
score = np.nan * np.ones(N)
for i in range(0, N):
lo = max(0, i + 1 - window)
hi = min(i + window, N)
# nanmean of interactions to reduce the effect of bad bins
score[i] = np.nanmean(mat[lo : i + 1, i:hi])
if norm_by_median:
score /= np.nanmedian(score)
return score
def _find_insulating_boundaries_dense(
clr,
window_bp=100000,
view_df=None,
clr_weight_name="weight",
min_dist_bad_bin=2,
ignore_diags=None,
):
"""Calculate the diamond insulation scores and call insulating boundaries.
Parameters
----------
clr : cooler.Cooler
A cooler with balanced Hi-C data. Balancing weights are required
for the detection of bad_bins.
window_bp : int
The size of the sliding diamond window used to calculate the insulation
score.
view_df : bioframe.viewframe or None
Viewframe for independent calculation of insulation scores for regions
clr_weight_name : str
Name of the column in bin table that stores the balancing weights.
min_dist_bad_bin : int
The minimal allowed distance to a bad bin. Do not calculate insulation
scores for bins having a bad bin closer than this distance.
ignore_diags : int
The number of diagonals to ignore. If None, equals the number of
diagonals ignored during IC balancing.
Returns
-------
ins_table : pandas.DataFrame
A table containing the insulation scores of the genomic bins and
the insulating boundary strengths.
"""
if view_df is None:
view_df = make_cooler_view(clr)
else:
# Make sure view_df is a proper viewframe
try:
_ = is_compatible_viewframe(
view_df,
clr,
check_sorting=True,
raise_errors=True,
)
except Exception as e:
raise ValueError("view_df is not a valid viewframe or incompatible") from e
bin_size = clr.info["bin-size"]
# check if cooler is balanced
if clr_weight_name:
try:
_ = is_cooler_balanced(clr, clr_weight_name, raise_errors=True)
except Exception as e:
raise ValueError(
f"provided cooler is not balanced or {clr_weight_name} is missing"
) from e
# check if ignore_diags is valid
if ignore_diags is None:
ignore_diags = clr._load_attrs(
clr.root.rstrip("/") + f"/bins/{clr_weight_name}"
)["ignore_diags"]
elif isinstance(ignore_diags, int):
pass # keep it as is
else:
raise ValueError(f"provided ignore_diags {ignore_diags} is not int or None")
window_bins = window_bp // bin_size
if window_bp % bin_size != 0:
raise ValueError(
f"The window size ({window_bp}) has to be a multiple of the bin size {bin_size}"
)
ins_region_tables = []
for chrom, start, end, name in view_df[["chrom", "start", "end", "name"]].values:
region = [chrom, start, end]
ins_region = clr.bins().fetch(region)[["chrom", "start", "end"]]
is_bad_bin = np.isnan(clr.bins().fetch(region)[clr_weight_name].values)
# extract dense Hi-C heatmap for a given "region"
m = clr.matrix(balance=clr_weight_name).fetch(region)
with warnings.catch_warnings():
warnings.simplefilter("ignore", RuntimeWarning)
ins_track = _insul_diamond_dense(m, window_bins, ignore_diags)
ins_track[ins_track == 0] = np.nan
ins_track = np.log2(ins_track)
bad_bin_neighbor = np.zeros_like(is_bad_bin)
for i in range(0, min_dist_bad_bin):
if i == 0:
bad_bin_neighbor = bad_bin_neighbor | is_bad_bin
else:
bad_bin_neighbor = bad_bin_neighbor | np.r_[[True] * i, is_bad_bin[:-i]]
bad_bin_neighbor = bad_bin_neighbor | np.r_[is_bad_bin[i:], [True] * i]
ins_track[bad_bin_neighbor] = np.nan
ins_region["bad_bin_masked"] = bad_bin_neighbor
ins_track[~np.isfinite(ins_track)] = np.nan
ins_region[f"log2_insulation_score_{window_bp}"] = ins_track
poss, proms = peaks.find_peak_prominence(-ins_track)
ins_prom_track = np.zeros_like(ins_track) * np.nan
ins_prom_track[poss] = proms
ins_region[f"boundary_strength_{window_bp}"] = ins_prom_track
ins_region[f"boundary_strength_{window_bp}"] = ins_prom_track
ins_region_tables.append(ins_region)
ins_table = pd.concat(ins_region_tables)
return ins_table
def insulation(
clr,
window_bp,
view_df=None,
ignore_diags=None,
clr_weight_name="weight",
min_frac_valid_pixels=0.66,
min_dist_bad_bin=0,
threshold="Li",
append_raw_scores=False,
chunksize=20000000,
verbose=False,
nproc=1,
):
"""Find insulating boundaries in a contact map via the diamond insulation score.
For a given cooler, this function (a) calculates the diamond insulation score track,
(b) detects all insulating boundaries, and (c) removes weak boundaries via an automated
thresholding algorithm.
Parameters
----------
clr : cooler.Cooler
A cooler with balanced Hi-C data.
window_bp : int or list of integers
The size of the sliding diamond window used to calculate the insulation
score. If a list is provided, then a insulation score if done for each
value of window_bp.
view_df : bioframe.viewframe or None
Viewframe for independent calculation of insulation scores for regions
ignore_diags : int | None
The number of diagonals to ignore. If None, equals the number of
diagonals ignored during IC balancing.
clr_weight_name : str
Name of the column in the bin table with weight
min_frac_valid_pixels : float
The minimal fraction of valid pixels in a diamond to be used in
boundary picking and prominence calculation.
min_dist_bad_bin : int
The minimal allowed distance to a bad bin to report insulation score.
Fills bins that have a bad bin closer than this distance by nans.
threshold : "Li", "Otsu" or float
Rule used to threshold the histogram of boundary strengths to exclude weak
boundaries. "Li" or "Otsu" use corresponding methods from skimage.thresholding.
Providing a float value will filter by a fixed threshold
append_raw_scores : bool
If True, append columns with raw scores (sum_counts, sum_balanced, n_pixels)
to the output table.
verbose : bool
If True, report real-time progress.
nproc : int, optional
How many processes to use for calculation
Returns
-------
ins_table : pandas.DataFrame
A table containing the insulation scores of the genomic bins
"""
# Create view:
if view_df is None:
# full chromosomes:
view_df = make_cooler_view(clr)
else:
# Make sure view_df is a proper viewframe
try:
_ = is_compatible_viewframe(
view_df,
clr,
# must be sorted for pairwise regions combinations
# to be in the upper right of the heatmap
check_sorting=True,
raise_errors=True,
)
except Exception as e:
raise ValueError("view_df is not a valid viewframe or incompatible") from e
if threshold == "Li":
thresholding_func = lambda x: x >= threshold_li(x)
elif threshold == "Otsu":
thresholding_func = lambda x: x >= threshold_otsu(x)
else:
try:
thr = float(threshold)
thresholding_func = lambda x: x >= thr
except ValueError:
raise ValueError(
"Insulating boundary strength threshold can be Li, Otsu or a float"
)
# Calculate insulation score:
ins_table = calculate_insulation_score(
clr,
view_df=view_df,
window_bp=window_bp,
ignore_diags=ignore_diags,
min_dist_bad_bin=min_dist_bad_bin,
append_raw_scores=append_raw_scores,
clr_weight_name=clr_weight_name,
chunksize=chunksize,
verbose=verbose,
nproc=nproc,
)
# Find boundaries:
ins_table = find_boundaries(
ins_table,
min_frac_valid_pixels=min_frac_valid_pixels,
min_dist_bad_bin=min_dist_bad_bin,
)
for win in window_bp:
strong_boundaries = thresholding_func(
ins_table[f"boundary_strength_{win}"].values
)
ins_table[f"is_boundary_{win}"] = strong_boundaries
return ins_table
explain me this:
@agalitsyna just to understand this commit-- is multithreaded insulation on chunks a todo item, and the current multithreading wouldn't help beyond nproc = # of chromosomes?
I'm not sure we've ever discussed multi threaded insulation by chunks, but I totally agree it's a great idea.
|
86f9f1896ec07f357075b6618df63c42
|
{
"intermediate": 0.39920684695243835,
"beginner": 0.3080196976661682,
"expert": 0.2927735149860382
}
|
44,053
|
Hi There, please be a senior sapui5 developer and ansower my question with working code example.
|
148cab1645b4cb2a5d59ec835accc6b1
|
{
"intermediate": 0.40850746631622314,
"beginner": 0.2731282711029053,
"expert": 0.31836429238319397
}
|
44,054
|
Example our system, ITAM Licensing caculated SAM with category is server have total is 814.
So, I want check what is conditions to caculated CI is Software Asset Management?
|
8307a3751692f990818e9e04191f8b11
|
{
"intermediate": 0.3448452949523926,
"beginner": 0.36271044611930847,
"expert": 0.29244428873062134
}
|
44,055
|
I have a React IMask plugin library and use its masked input however I need to be able to set the value of the value attribute of the input inside of that component. How can I do it?
|
e74e87cc68c9248375f26407895e9dc4
|
{
"intermediate": 0.7709535956382751,
"beginner": 0.12034837156534195,
"expert": 0.10869810730218887
}
|
44,056
|
What's net.ipv4.tcp_challenge_ack_limit ?
|
ec687ca66df5b317c01c28a343bc7e14
|
{
"intermediate": 0.3062308728694916,
"beginner": 0.2688845098018646,
"expert": 0.4248845875263214
}
|
44,057
|
i use stream in client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": message}],
stream=True,
)
how can get full text?
|
8c50d95442d8639fa932007cb536280b
|
{
"intermediate": 0.4077923893928528,
"beginner": 0.25583064556121826,
"expert": 0.33637693524360657
}
|
44,058
|
How to remove all the characters and special symbol from string python
|
3a91c480c62c382cfb37953a3d1e1393
|
{
"intermediate": 0.38368847966194153,
"beginner": 0.19847150146961212,
"expert": 0.41783997416496277
}
|
44,059
|
how to fix can you say: mport-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/426.
|
fdee5c9661b1f4da24b978c49bb682a9
|
{
"intermediate": 0.45094096660614014,
"beginner": 0.24467727541923523,
"expert": 0.30438175797462463
}
|
44,060
|
i have below function. when calling this function the first print is not working? and return me <generator object ask_openai at 0x0000013128BD8190>
def ask_openai(farmer='', message='', req='', make_daily_check=False, user_daily_check_response=False):
print('iam in the ask openai', make_daily_check)
if make_daily_check is True:
# sys_message = 'You are a rice plant having a conversation with your farmer.'
# message = ('In order to daily checkup, ask your farmer a question to understand your appearance condition,'
# ' so that if you have a problem or illness, you can advise your farmer to help you grow.')
sys_message = 'تو یک گیاه برنج هستی که با کشاورزت مکالمه میکنی.'
message = ('به منظور چکاپ روزانه, از کشاورزت سوال میکنی تا در مورد '
'وضع ظاهری خودت بدونی تا در صورت مشاهده مشکل توسط کشاورزت بتونی به کشاورزت برای رفع مشکل کمک کنی.')
messages = [
{"role": "system", "content": sys_message},
{"role": "user", "content": message},
]
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=messages,
temperature=1,
top_p=1,
frequency_penalty=0,
presence_penalty=0,
stream=False,
# max_tokens=600,
)
print('Iam here')
return response.choices[0].message.content
elif user_daily_check_response is not False:
sys_message = f"""تو یک گیاه برنج هستی که با کشاورزت مکالمه میکنی. تو باید اطلاعات دقیق و درستی به کشاورزت برای مراقبت از خودت ارائه بدی. سنسورهایی در مزرعه در حال مانیتور کردن تو هستن که به تو امکان احساس کردن میدهند و تو میتونی از این سنسور ها برای بیان حال حاضر خود استفاده کنی.
داده های حال سنسورها.
رطوبت خاک:{req.POST.get('soil_moisture')}%
دمای خاک:{req.POST.get('soil_temp')}°C
دمای هوا:{req.POST.get('air_temp')}°C
رطوبت هوا:{req.POST.get('air_humidity')}%
هدایت الکتریکی خاک:{req.POST.get('soil_EC')}mS/cm
اطلاعات کاشت:
منطقه کاشت: ایران, مازندران
سن (از زمان کاشت):{req.POST.get('age')}روز
{f"روش کاشت:{req.POST.get('planting_method')}" if req.POST.get('planting_method') is not None else ""}
{f"مرحله رشد گیاه در زمان کاشت:{req.POST.get('stage_of_plant')}" if req.POST.get('stage_of_plant') is not None else ""}
soil field capacity:{req.POST.get('field_capacity')}%
soil texture:{req.POST.get('soil_texture')}%
زمان حال:{req.POST.get('now_date')}
پیش بینی هواشناسی:
{req.POST.get('forecast_1')}
{req.POST.get('forecast_2')}
{req.POST.get('forecast_3')}
{req.POST.get('forecast_4')}
{req.POST.get('forecast_5')}"""
messages = [
{"role": "system", "content": sys_message},
{"role": "assistant", "content": message},
{"role": "user", "content": user_daily_check_response}
]
response = client.chat.completions.create(
model="gpt-3.5-turbo",
# model="gpt-4-0125-preview",
messages=messages,
temperature=1,
top_p=1,
frequency_penalty=0,
presence_penalty=0,
stream=True,
# max_tokens=600,
)
full_response = ''
for chunk in response:
full_response += chunk.choices[0].delta.content or ""
yield chunk.choices[0].delta.content or ""
daily_check = DailyCheckMessage.objects.get(farmer=farmer, farm_id=req.COOKIES['farm_id'],
created_at=datetime.datetime.now().date())
daily_check.user_response = user_daily_check_response
daily_check.ai_response = full_response
daily_check.save()
else:
sys_message = f"""تو یک گیاه برنج هستی که با کشاورزت مکالمه میکنی. تو باید اطلاعات دقیق و درستی به کشاورزت برای مراقبت از خودت ارائه بدی. سنسورهایی در مزرعه در حال مانیتور کردن تو هستن که به تو امکان احساس کردن میدهند و تو میتونی از این سنسور ها برای بیان حال حاضر خود استفاده کنی.
داده های حال سنسورها.
رطوبت خاک:{req.POST.get('soil_moisture')}%
دمای خاک:{req.POST.get('soil_temp')}°C
دمای هوا:{req.POST.get('air_temp')}°C
رطوبت هوا:{req.POST.get('air_humidity')}%
هدایت الکتریکی خاک:{req.POST.get('soil_EC')}mS/cm
اطلاعات کاشت:
منطقه کاشت: ایران, مازندران
سن (از زمان کاشت):{req.POST.get('age')}روز
{f"روش کاشت:{req.POST.get('planting_method')}" if req.POST.get('planting_method') is not None else ""}
{f"مرحله رشد گیاه در زمان کاشت:{req.POST.get('stage_of_plant')}" if req.POST.get('stage_of_plant') is not None else ""}
soil field capacity:{req.POST.get('field_capacity')}%
soil texture:{req.POST.get('soil_texture')}%
زمان حال:{req.POST.get('now_date')}
پیش بینی هواشناسی:
{req.POST.get('forecast_1')}
{req.POST.get('forecast_2')}
{req.POST.get('forecast_3')}
{req.POST.get('forecast_4')}
{req.POST.get('forecast_5')}"""
messages = [
{"role": "system", "content": sys_message},
{"role": "user", "content": message},
# {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
# {"role": "user", "content": "Where was it played?"}
]
response = client.chat.completions.create(
model="gpt-3.5-turbo",
# model="gpt-4-0125-preview",
messages=messages,
temperature=1,
top_p=1,
frequency_penalty=0,
presence_penalty=0,
stream=True,
# max_tokens=600,
)
full_response = ''
for chunk in response:
full_response += chunk.choices[0].delta.content or ""
yield chunk.choices[0].delta.content or ""
ChatHistory.objects.create(farm_id=req.COOKIES['farm_id'], farmer=farmer, message=message, response=response)
|
75f7961e1a95981b6ba8cf05b7098888
|
{
"intermediate": 0.20155248045921326,
"beginner": 0.673184871673584,
"expert": 0.12526260316371918
}
|
44,061
|
UI macros is not working for new teams but working fine for old teams
|
6c23dced0422e02cd07648f5c9ae7a12
|
{
"intermediate": 0.19885866343975067,
"beginner": 0.5707576274871826,
"expert": 0.2303837090730667
}
|
44,062
|
hi
|
e077b4eec01aa1ce33ea7fa0db48c263
|
{
"intermediate": 0.3246487081050873,
"beginner": 0.27135494351387024,
"expert": 0.40399640798568726
}
|
44,063
|
Hi there, please be a senior JS developer in SAPUI5. And answer my questions with working code example.
|
9b746b1a09adcde5bc7e6562e8b8fc4d
|
{
"intermediate": 0.46048033237457275,
"beginner": 0.32488372921943665,
"expert": 0.2146359384059906
}
|
44,064
|
this is part of my html code. i want use for persian text so must rtl but i can set to rtl.
<style>
body, html {
height: 100%;
}
.main {
flex-grow: 1;
overflow-y: auto;
}
.messages-box {
flex: 1;
overflow-y: auto;
}
.messages-list {
padding-left: 0;
}
.message {
margin-bottom: 15px;
list-style: none;
border-radius: 5px;
box-shadow: 20px 20px 100px 5px grey;
--r: 25px; /* the radius */
--t: 30px; /* the size of the tail */
padding: calc(2 * var(--r) / 3);
-webkit-mask: radial-gradient(var(--t) at var(--_d) 0, #0000 98%, #000 102%) var(--_d) 100%/calc(100% - var(--r)) var(--t) no-repeat,
conic-gradient(at var(--r) var(--r), #000 75%, #0000 0) calc(var(--r) / -2) calc(var(--r) / -2) padding-box,
radial-gradient(50% 50%, #000 98%, #0000 101%) 0 0/var(--r) var(--r) space padding-box;
{#background: linear-gradient(135deg, #00A000, #1384C5) border-box;#}{#color: #fff;#}
}
.message-text {
padding: 10px;
border-radius: 5px;
direction: rtl;
}
.sent {
background-color: #34c759;
align-self: flex-end;
direction: rtl;
{# background: linear-gradient(135deg, #00cc00, #2f6ee0) border-box;#}
}
.received {
background-color: #f1f0f0;
align-self: flex-start;
direction: rtl;
{# background: linear-gradient(135deg, #2f6ee0, #00cc00) border-box;#}
}
.message-form {
display: flex;
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 10px;
background-color: #f8f9fa;
}
.message-input {
flex: 1;
border-radius: 5px;
border-right: none;
}
.btn-send {
border-radius: 5px;
}
.chat-container {
height: 100%;
display: flex;
flex-direction: column;
}
.left {
--_d: 0%;
border-left: var(--t) solid #0000;
margin-right: var(--t);
place-self: start;
}
.right {
--_d: 100%;
border-right: var(--t) solid #0000;
margin-left: var(--t);
place-self: end;
}
.overlay {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.9);
overflow-x: hidden;
transition: 0.5s;
}
.overlay-content {
position: relative;
top: 25%;
width: 100%;
text-align: center;
margin-top: 30px;
overflow-y: auto;
}
.overlay a {
padding: 8px;
text-decoration: none;
font-size: 36px;
color: #818181;
display: block;
transition: 0.3s;
}
.overlay a:hover, .overlay a:focus, .overlay b:hover, .overlay b:focus {
color: #f1f1f1;
}
.overlay .closebtn {
position: absolute;
top: 20px;
right: 45px;
font-size: 60px;
}
@media screen and (max-height: 450px) {
.overlay a {
font-size: 20px
}
.overlay .closebtn {
font-size: 40px;
top: 15px;
right: 35px;
}
}
</style>
{% endblock %}
{% block content %}
<div class="chat-container">
<div class="card flex-grow-1 main">
<div class="card-header bg-primary text-white"><span style="font-size:30px;cursor:pointer"
onclick="openNav()">☰ menu</span></div>
<div id="myNav" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<div class="overlay-content">
<a href="{% url '/' %}">خانه</a>
{% if user.is_authenticated %}
<b>{{ user.name }}</b>
<a href="/logout/">خروج</a>
{% else %}
<div class="card-header bg-primary text-white">
<a style="color: yellow" href="/login/">Login</a>
{# <a style="color: yellow;" href="register">Register</a>#}
{% endif %}
{% if history %}
<a href="/chat/">چت</a>
{% endif %}
{% for history in history_list %}
<a class="h6" href="/chat/{{ history.created_at__date }}/">{{ history.persian_date }}</a>
{% endfor %}
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Clients</a>
<a href="#">Contact</a>
</div>
</div>
{# <span style="font-size:30px;cursor:pointer" onclick="openNav()">☰ open</span>#}
<div class="card-body messages-box">
<ul class="list-unstyled messages-list">
{% if ai_notification is True and history is False %}
<li class="message received">
<div class="message-text">
<div class="message-sender">
<b>AI Rice</b>
</div>
<div class="message-content" id="notification">
{{ daily_checkup_messages }}
</div>
</div>
</li>
{% elif daily_checkup_messages is not False %}
<li class="message received left">
<div class="message-text">
<div class="message-sender">
<b>AI Rice</b>
</div>
<div class="message-content">
{{ daily_checkup_messages.ai_message | safe }}
</div>
</div>
</li>
<li class="message sent right">
<div class="message-text">
<div class="message-sender">
<b>You</b>
</div>
<div class="message-content">
{{ daily_checkup_messages.user_response | safe }}
</div>
</div>
</li>
<li class="message received left">
<div class="message-text">
<div class="message-sender">
<b>AI Rice</b>
</div>
<div class="message-content">
{{ daily_checkup_messages.ai_response | safe }}
</div>
</div>
</li>
{% endif %}
{% for chat in chats %}
{% if chat.farmer == request.user %}
{% if chat.message %}
<li class="message sent right">
<div class="message-text">
<div class="message-sender">
<b>You</b>
</div>
<div class="message-content">
{{ chat.message | safe }}
</div>
</div>
</li>
{% endif %}
<li class="message received left">
<div class="message-text">
<div class="message-sender">
<b>AI Rice</b>
</div>
<div class="message-content">
{{ chat.response | safe }}
</div>
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
<br><br>
<br><br>
</div>
{% if history is not True %}
<form class="message-form">
{% csrf_token %}
<div class="input-group">
<input type="text" class="form-control message-input" placeholder="Type your message...">
<div class="input-group-append">
<button type="submit" class="btn btn-primary btn-send">Send</button>
</div>
</div>
</form>
{% else %}
{% endif %}
</div>
|
0b9fe83e546b442f47aef16752739528
|
{
"intermediate": 0.349663108587265,
"beginner": 0.5223920941352844,
"expert": 0.12794481217861176
}
|
44,065
|
the const api used to be a link but i have now changed it to be a json file. Adjust the code to work with a json directly instead of url: import { createContext, useContext, useEffect, useReducer } from "react";
import axios from "axios";
import reducer from "../Reducer/productReducer";
const AppContext = createContext();
const API = "../context/products.json";
const initialState = {
isLoading: false,
isError: false,
products: [],
featureProducts: [],
isSingleLoading: false,
singleProduct: {},
};
const AppProvider = ({ children }) => {
const [state, dispatch] = useReducer(reducer, initialState);
const getProducts = async (url) => {
dispatch({ type: "SET_LOADING" });
try {
const res = await axios.get(url);
const products = await res.data;
dispatch({ type: "SET_API_DATA", payload: products });
} catch (error) {
dispatch({ type: "API_ERROR" });
}
};
// my 2nd api call for single product
const getSingleProduct = async (url) => {
dispatch({ type: "SET_SINGLE_LOADING" });
try {
const res = await axios.get(url);
const singleProduct = await res.data;
dispatch({ type: "SET_SINGLE_PRODUCT", payload: singleProduct });
} catch (error) {
dispatch({ type: "SET_SINGLE_ERROR" });
}
};
useEffect(() => {
getProducts(API);
}, []);
return (
<AppContext.Provider value={{ ...state, getSingleProduct }}>
{children}
</AppContext.Provider>
);
};
// custom hooks
const useProductContext = () => {
return useContext(AppContext);
};
export { AppProvider, AppContext, useProductContext };
|
382fc72fc55db9ad868b681f12ef5e6d
|
{
"intermediate": 0.5039355158805847,
"beginner": 0.2715991735458374,
"expert": 0.22446532547473907
}
|
44,066
|
my react images keep getting alt after a few minutes in after runnning npm run dev. For example the logo will just dissappear and am left with the alt: import React from 'react'
import { NavLink } from "react-router-dom";
import styled from "styled-components";
import { useCartContext } from "../context/cart_context";
import { FiShoppingCart } from "react-icons/fi";
import Nav from "./Nav";
const Header = () => {
const { total_item } = useCartContext();
return (
<MainHeader>
<div id='stars'></div>
<div id='stars2'></div>
<div id='stars3'></div>
<div id='title'>
<NavLink to="/">
<img src="images/shop_logo.png" width="150" alt="my logo img" className="logo" />
</NavLink>
<Nav />
<div>
<NavLink to="/cart" className="navbar-link cart-trolley--link">
<FiShoppingCart className="cart-trolley" size={30} />
<span className="cart-total--item text-lg"> {total_item} </span>
</NavLink>
</div>
</div>
</MainHeader>
);
};
const MainHeader = styled.header`
padding: 0 10rem;
height: 10rem;
display: flex;
justify-content: space-between;
align-items: center;
position: absolute;
border-radius: 0 0 50px 50px;
width: 100%;
background: radial-gradient(ellipse at bottom, #8E2DE2 20%, #4A00E0 100%);
overflow: hidden;
z-index: 1;
}
.cart-trolley--link {
position: relative;
}
.cart-trolley {
position: relative;
font-size: 3.2rem;
z-index: 1;
}
.cart-total--item {
position: absolute;
top: -10px;
right: -10px;
z-index: 2;
font-size: 14px !important;
border-radius: 10%;
width: 16px;
height: 16px;
line-height:16px;
display: block;
text-align: center;
color: white !important;
}
}
.logo {
height: 11rem;
}
#stars {
width: 1px;
height: 1px;
background: transparent;
box-shadow: 1244px 1842px #FFF , 1762px 1625px #FFF , 1152px 1813px #FFF , 769px 1736px #FFF , 174px 15px #FFF , 1611px 569px #FFF , 344px 1657px #FFF , 1002px 912px #FFF , 1205px 217px #FFF , 1270px 351px #FFF , 1425px 1882px #FFF , 83px 643px #FFF , 426px 566px #FFF , 934px 982px #FFF , 1983px 916px #FFF , 1178px 1902px #FFF , 1299px 219px #FFF , 403px 923px #FFF , 1243px 409px #FFF , 1584px 1092px #FFF , 1649px 664px #FFF , 1285px 1906px #FFF , 1177px 1039px #FFF , 852px 1477px #FFF , 937px 950px #FFF , 1670px 314px #FFF , 486px 409px #FFF , 1888px 1421px #FFF , 1944px 1410px #FFF , 1277px 1479px #FFF , 1755px 944px #FFF , 1618px 935px #FFF , 738px 1821px #FFF , 200px 911px #FFF , 866px 1876px #FFF , 442px 145px #FFF , 1459px 1918px #FFF , 75px 1306px #FFF , 932px 1523px #FFF , 1594px 1695px #FFF , 653px 1992px #FFF , 1385px 468px #FFF , 993px 1149px #FFF , 659px 1124px #FFF , 1197px 1641px #FFF , 209px 1945px #FFF , 1425px 799px #FFF , 1887px 1014px #FFF , 1734px 1720px #FFF , 78px 92px #FFF , 628px 1944px #FFF , 1212px 792px #FFF , 792px 1689px #FFF , 374px 1402px #FFF , 196px 1649px #FFF , 73px 986px #FFF , 815px 209px #FFF , 197px 1999px #FFF , 1285px 756px #FFF , 82px 1961px #FFF , 1274px 336px #FFF , 1479px 1950px #FFF , 1673px 1970px #FFF , 1089px 178px #FFF , 735px 645px #FFF , 1244px 1062px #FFF , 4px 1657px #FFF , 974px 452px #FFF , 247px 569px #FFF , 1929px 1691px #FFF , 1443px 970px #FFF , 880px 1263px #FFF , 371px 1995px #FFF , 988px 124px #FFF , 1150px 1668px #FFF , 705px 120px #FFF , 639px 479px #FFF , 1437px 1181px #FFF , 747px 962px #FFF , 1765px 1050px #FFF , 273px 463px #FFF , 703px 699px #FFF , 608px 626px #FFF , 1974px 1320px #FFF , 728px 714px #FFF , 1003px 936px #FFF , 15px 768px #FFF , 56px 256px #FFF , 252px 1639px #FFF , 1407px 1502px #FFF , 430px 1905px #FFF , 23px 1701px #FFF , 851px 1750px #FFF , 1828px 744px #FFF , 207px 1038px #FFF , 1382px 1686px #FFF , 1116px 1395px #FFF , 911px 719px #FFF , 1935px 806px #FFF , 1901px 1238px #FFF , 1455px 410px #FFF , 1594px 1662px #FFF , 1979px 797px #FFF , 219px 438px #FFF , 199px 81px #FFF , 166px 1270px #FFF , 1889px 299px #FFF , 527px 184px #FFF , 1995px 448px #FFF , 1554px 1183px #FFF , 1766px 783px #FFF , 605px 1460px #FFF , 1240px 869px #FFF , 1377px 447px #FFF , 52px 445px #FFF , 974px 1114px #FFF , 743px 418px #FFF , 1924px 677px #FFF , 1144px 508px #FFF , 1193px 1965px #FFF , 363px 379px #FFF , 1697px 331px #FFF , 1370px 1593px #FFF , 582px 1865px #FFF , 408px 430px #FFF , 1495px 1846px #FFF , 313px 1336px #FFF , 1414px 862px #FFF , 669px 327px #FFF , 1617px 34px #FFF , 715px 105px #FFF , 248px 536px #FFF , 315px 889px #FFF , 1793px 573px #FFF , 196px 779px #FFF , 1626px 246px #FFF , 1114px 1857px #FFF , 1113px 1011px #FFF , 1447px 1993px #FFF , 1659px 767px #FFF , 733px 1801px #FFF , 1755px 1663px #FFF , 823px 666px #FFF , 219px 1352px #FFF , 1497px 1170px #FFF , 474px 1129px #FFF , 1635px 1856px #FFF , 351px 272px #FFF , 551px 1227px #FFF , 1773px 1182px #FFF , 832px 22px #FFF , 1924px 737px #FFF , 247px 162px #FFF , 97px 1885px #FFF , 1864px 718px #FFF , 717px 296px #FFF , 1066px 99px #FFF , 726px 1011px #FFF , 106px 140px #FFF , 343px 673px #FFF , 667px 1197px #FFF , 1096px 1104px #FFF , 1102px 1281px #FFF , 490px 533px #FFF , 770px 588px #FFF , 1027px 771px #FFF , 1284px 122px #FFF , 1493px 1710px #FFF , 1845px 1489px #FFF , 966px 1568px #FFF , 1651px 27px #FFF , 1996px 1364px #FFF , 1028px 1049px #FFF , 396px 1071px #FFF , 449px 1735px #FFF , 147px 297px #FFF , 919px 676px #FFF , 400px 372px #FFF , 1540px 1038px #FFF , 1987px 16px #FFF , 189px 1765px #FFF , 323px 635px #FFF , 224px 1289px #FFF , 1083px 751px #FFF , 1557px 1071px #FFF , 89px 1679px #FFF , 1164px 964px #FFF , 844px 560px #FFF , 1625px 1498px #FFF , 1499px 751px #FFF , 814px 668px #FFF , 893px 401px #FFF , 1691px 1373px #FFF , 466px 788px #FFF , 298px 1140px #FFF , 782px 341px #FFF , 1060px 999px #FFF , 631px 1855px #FFF , 1035px 1971px #FFF , 1493px 1290px #FFF , 274px 1626px #FFF , 1418px 503px #FFF , 1003px 1539px #FFF , 1207px 1989px #FFF , 1673px 1032px #FFF , 1381px 284px #FFF , 1832px 1486px #FFF , 1845px 132px #FFF , 340px 1152px #FFF , 1914px 820px #FFF , 21px 19px #FFF , 1749px 945px #FFF , 726px 707px #FFF , 787px 1025px #FFF , 710px 1149px #FFF , 1834px 1235px #FFF , 569px 354px #FFF , 1877px 100px #FFF , 1120px 1965px #FFF , 60px 503px #FFF , 1323px 1548px #FFF , 1054px 434px #FFF , 1218px 1330px #FFF , 740px 638px #FFF , 1621px 617px #FFF , 1989px 530px #FFF , 480px 376px #FFF , 1747px 1277px #FFF , 1037px 1130px #FFF , 969px 1316px #FFF , 1783px 1840px #FFF , 1514px 1915px #FFF , 56px 1320px #FFF , 1153px 625px #FFF , 437px 715px #FFF , 375px 365px #FFF , 287px 926px #FFF , 730px 1116px #FFF , 979px 823px #FFF , 1128px 1798px #FFF , 1708px 584px #FFF , 137px 1471px #FFF , 1387px 696px #FFF , 1427px 975px #FFF , 1949px 1485px #FFF , 1781px 854px #FFF , 101px 408px #FFF , 1082px 1736px #FFF , 1305px 1889px #FFF , 1108px 622px #FFF , 385px 1756px #FFF , 341px 1850px #FFF , 317px 183px #FFF , 1171px 1976px #FFF , 570px 25px #FFF , 1044px 1327px #FFF , 348px 746px #FFF , 1450px 6px #FFF , 402px 79px #FFF , 1674px 1898px #FFF , 1779px 809px #FFF , 5px 777px #FFF , 1264px 556px #FFF , 1522px 260px #FFF , 837px 763px #FFF , 1206px 1685px #FFF , 1135px 816px #FFF , 828px 864px #FFF , 1393px 547px #FFF , 1627px 1025px #FFF , 390px 1698px #FFF , 137px 1664px #FFF , 261px 851px #FFF , 957px 889px #FFF , 671px 739px #FFF , 893px 1417px #FFF , 1488px 223px #FFF , 418px 1459px #FFF , 1770px 433px #FFF , 1491px 1256px #FFF , 1903px 18px #FFF , 1688px 1482px #FFF , 746px 631px #FFF , 1622px 1411px #FFF , 414px 1343px #FFF , 1596px 1376px #FFF , 1270px 428px #FFF , 1393px 69px #FFF , 1902px 1499px #FFF , 701px 138px #FFF , 186px 593px #FFF , 873px 1272px #FFF , 367px 1831px #FFF , 1517px 36px #FFF , 1580px 1133px #FFF , 1763px 741px #FFF , 609px 66px #FFF , 786px 1643px #FFF , 1947px 1272px #FFF , 1604px 1037px #FFF , 1636px 609px #FFF , 1310px 530px #FFF , 1874px 476px #FFF , 290px 1901px #FFF , 1314px 1789px #FFF , 1028px 1491px #FFF , 799px 1040px #FFF , 1638px 798px #FFF , 416px 226px #FFF , 1039px 604px #FFF , 712px 225px #FFF , 512px 532px #FFF , 1960px 1530px #FFF , 82px 191px #FFF , 954px 482px #FFF , 270px 990px #FFF , 1232px 371px #FFF , 1535px 508px #FFF , 1348px 933px #FFF , 235px 621px #FFF , 1163px 597px #FFF , 1628px 1461px #FFF , 596px 1538px #FFF , 754px 1564px #FFF , 267px 1929px #FFF , 1987px 1741px #FFF , 1495px 1427px #FFF , 1340px 1620px #FFF , 1618px 720px #FFF , 34px 1045px #FFF , 1432px 451px #FFF , 667px 1734px #FFF , 988px 1182px #FFF , 739px 1887px #FFF , 1154px 1440px #FFF , 1742px 1700px #FFF , 1358px 1045px #FFF , 395px 293px #FFF , 290px 630px #FFF , 249px 1618px #FFF , 1687px 888px #FFF , 1157px 186px #FFF , 1978px 1287px #FFF , 1891px 1884px #FFF , 1433px 237px #FFF , 793px 1216px #FFF , 1640px 173px #FFF , 1317px 68px #FFF , 101px 964px #FFF , 876px 1956px #FFF , 1466px 118px #FFF , 1183px 918px #FFF , 1219px 1895px #FFF , 1801px 94px #FFF , 921px 98px #FFF , 1223px 1135px #FFF , 265px 257px #FFF , 1639px 70px #FFF , 1432px 1796px #FFF , 715px 1117px #FFF , 64px 609px #FFF , 1959px 1465px #FFF , 1003px 1863px #FFF , 583px 690px #FFF , 1387px 184px #FFF , 978px 1954px #FFF , 641px 1079px #FFF , 476px 303px #FFF , 800px 1814px #FFF , 1075px 1600px #FFF , 86px 1723px #FFF , 224px 161px #FFF , 499px 273px #FFF , 247px 507px #FFF , 1012px 956px #FFF , 267px 1519px #FFF , 1573px 1022px #FFF , 365px 8px #FFF , 1117px 1270px #FFF , 1085px 136px #FFF , 1295px 1975px #FFF , 982px 1609px #FFF , 1374px 1458px #FFF , 1716px 64px #FFF , 210px 1879px #FFF , 1759px 171px #FFF , 888px 122px #FFF , 818px 551px #FFF , 328px 867px #FFF , 1813px 564px #FFF , 202px 383px #FFF , 1087px 1007px #FFF , 1882px 1469px #FFF , 1297px 34px #FFF , 1997px 886px #FFF , 503px 1531px #FFF , 22px 629px #FFF , 39px 1372px #FFF , 1647px 594px #FFF , 175px 1268px #FFF , 1973px 1627px #FFF , 824px 1300px #FFF , 565px 669px #FFF , 1518px 202px #FFF , 1303px 1706px #FFF , 1854px 1942px #FFF , 680px 1155px #FFF , 1100px 760px #FFF , 346px 532px #FFF , 469px 1131px #FFF , 2000px 1145px #FFF , 1115px 999px #FFF , 1758px 719px #FFF , 990px 1965px #FFF , 1437px 696px #FFF , 244px 1880px #FFF , 1349px 130px #FFF , 413px 1312px #FFF , 1614px 249px #FFF , 1942px 1132px #FFF , 111px 1711px #FFF , 1676px 477px #FFF , 627px 956px #FFF , 1085px 1333px #FFF , 1314px 956px #FFF , 610px 1716px #FFF , 1784px 1864px #FFF , 1235px 28px #FFF , 1658px 739px #FFF , 1995px 149px #FFF , 1493px 24px #FFF , 595px 148px #FFF , 1065px 856px #FFF , 1648px 829px #FFF , 519px 1469px #FFF , 629px 327px #FFF , 1368px 1614px #FFF , 946px 426px #FFF , 1024px 1746px #FFF , 294px 1744px #FFF , 1998px 1712px #FFF , 1388px 1376px #FFF , 372px 382px #FFF , 1388px 1461px #FFF , 1074px 61px #FFF , 1332px 649px #FFF , 621px 1174px #FFF , 54px 1765px #FFF , 632px 1061px #FFF , 1501px 21px #FFF , 1027px 38px #FFF , 1710px 179px #FFF , 524px 1993px #FFF , 1313px 484px #FFF , 1832px 1708px #FFF , 471px 1404px #FFF , 824px 1231px #FFF , 896px 1852px #FFF , 1240px 1195px #FFF , 1735px 835px #FFF , 1433px 1723px #FFF , 134px 254px #FFF , 1398px 901px #FFF , 775px 830px #FFF , 1542px 1756px #FFF , 1999px 1037px #FFF , 1163px 1870px #FFF , 1294px 1761px #FFF , 1014px 321px #FFF , 760px 746px #FFF , 389px 1470px #FFF , 1102px 567px #FFF , 1425px 383px #FFF , 1553px 1825px #FFF , 1128px 1415px #FFF , 1498px 1738px #FFF , 612px 1161px #FFF , 161px 784px #FFF , 1649px 731px #FFF , 326px 480px #FFF , 332px 192px #FFF , 415px 1264px #FFF , 1036px 1056px #FFF , 827px 688px #FFF , 1235px 1900px #FFF , 272px 237px #FFF , 356px 351px #FFF , 538px 799px #FFF , 1075px 1806px #FFF , 1858px 537px #FFF , 631px 934px #FFF , 425px 78px #FFF , 1167px 173px #FFF , 1621px 417px #FFF , 74px 1929px #FFF , 1206px 595px #FFF , 371px 84px #FFF , 1176px 1119px #FFF , 1852px 77px #FFF , 1005px 17px #FFF , 176px 253px #FFF , 1907px 695px #FFF , 774px 998px #FFF , 983px 777px #FFF , 837px 1639px #FFF , 1641px 1346px #FFF , 1778px 1247px #FFF , 604px 201px #FFF , 258px 1955px #FFF , 816px 796px #FFF , 282px 931px #FFF , 920px 1677px #FFF , 1038px 178px #FFF , 1507px 1697px #FFF , 178px 1519px #FFF , 1045px 1272px #FFF , 319px 1182px #FFF , 557px 1708px #FFF , 1741px 1161px #FFF , 1303px 422px #FFF , 269px 538px #FFF , 210px 370px #FFF , 13px 544px #FFF , 1037px 60px #FFF , 1237px 370px #FFF , 1845px 1677px #FFF , 1097px 1797px #FFF , 575px 1309px #FFF , 695px 760px #FFF , 35px 792px #FFF , 675px 257px #FFF , 1774px 1750px #FFF , 1057px 1895px #FFF , 236px 6px #FFF , 696px 521px #FFF , 1031px 1323px #FFF , 217px 387px #FFF , 1005px 1432px #FFF , 1615px 1175px #FFF , 252px 1431px #FFF , 1594px 1502px #FFF , 1098px 374px #FFF , 1849px 1292px #FFF , 1669px 339px #FFF , 657px 1120px #FFF , 1425px 692px #FFF , 1881px 1117px #FFF , 464px 931px #FFF , 1081px 117px #FFF , 68px 764px #FFF , 569px 949px #FFF , 740px 1561px #FFF , 1065px 1344px #FFF , 671px 519px #FFF , 752px 1296px #FFF , 565px 808px #FFF , 1540px 510px #FFF , 1585px 909px #FFF , 814px 1916px #FFF , 332px 1827px #FFF , 9px 303px #FFF , 1992px 111px #FFF , 1437px 443px #FFF , 267px 1920px #FFF , 838px 267px #FFF , 916px 996px #FFF , 1008px 1815px #FFF , 1877px 1006px #FFF , 86px 1041px #FFF , 478px 906px #FFF , 419px 1854px #FFF , 691px 1026px #FFF , 866px 286px #FFF , 1223px 744px #FFF , 249px 1574px #FFF , 785px 159px #FFF , 949px 1038px #FFF , 1036px 1172px #FFF , 872px 1180px #FFF , 1182px 912px #FFF , 671px 1632px #FFF , 1185px 1978px #FFF , 1132px 160px #FFF , 64px 190px #FFF , 164px 1165px #FFF , 1448px 230px #FFF , 1760px 1151px #FFF , 1531px 1645px #FFF , 438px 1554px #FFF , 814px 774px #FFF , 260px 359px #FFF , 1052px 1644px #FFF , 842px 1854px #FFF , 896px 383px #FFF , 1205px 42px #FFF , 881px 1054px #FFF , 610px 1665px #FFF , 7px 608px #FFF , 1021px 699px #FFF , 1022px 652px #FFF , 205px 580px #FFF , 873px 239px #FFF , 1084px 1415px #FFF , 1843px 879px #FFF , 169px 726px #FFF , 1667px 966px #FFF , 1264px 866px #FFF , 449px 1008px #FFF , 1814px 1611px #FFF , 562px 2px #FFF , 236px 773px #FFF , 531px 236px #FFF , 137px 1615px #FFF , 63px 190px #FFF , 560px 666px #FFF , 627px 1863px #FFF , 1528px 1982px #FFF , 1923px 1175px #FFF , 1359px 1281px #FFF , 847px 437px #FFF , 799px 553px #FFF , 521px 496px #FFF , 770px 1252px #FFF , 366px 936px #FFF , 1737px 1678px #FFF , 820px 1640px #FFF , 1722px 606px #FFF , 1862px 361px #FFF , 417px 1467px #FFF , 715px 158px #FFF , 1861px 1271px #FFF , 879px 1182px #FFF , 1779px 1827px #FFF , 1077px 1667px #FFF , 1232px 665px #FFF , 550px 1761px #FFF , 1278px 1625px #FFF , 1805px 731px #FFF , 1747px 796px #FFF , 1240px 1645px #FFF , 1423px 1752px #FFF , 1045px 1380px #FFF , 799px 1806px #FFF , 959px 710px #FFF , 1104px 1917px #FFF , 1676px 189px #FFF , 1457px 1023px #FFF , 491px 1412px #FFF , 1656px 1466px #FFF , 395px 133px #FFF , 242px 1050px #FFF , 1873px 781px #FFF , 1867px 744px #FFF , 64px 169px #FFF , 1366px 742px #FFF , 1749px 588px #FFF , 1018px 1990px #FFF , 4px 1651px #FFF , 1344px 1838px #FFF , 1713px 178px #FFF , 1159px 826px #FFF , 232px 1530px #FFF , 1429px 1899px #FFF , 1408px 1413px #FFF , 1912px 554px #FFF , 642px 1140px #FFF , 43px 1604px #FFF , 642px 1857px #FFF , 237px 1115px #FFF , 433px 1307px #FFF , 1767px 11px #FFF , 20px 862px #FFF , 654px 882px #FFF , 654px 1690px #FFF , 410px 410px #FFF , 41px 1445px #FFF , 755px 1307px #FFF , 630px 1593px #FFF , 1589px 1517px #FFF , 726px 226px #FFF , 1250px 105px #FFF , 1303px 347px #FFF , 557px 1023px #FFF , 1546px 1189px #FFF , 209px 438px #FFF , 1391px 638px #FFF , 824px 547px #FFF , 1541px 291px #FFF , 1691px 1716px #FFF , 939px 840px #FFF , 1163px 934px #FFF , 848px 1898px #FFF , 16px 485px #FFF , 908px 1063px #FFF , 1818px 1783px #FFF , 27px 1103px #FFF , 630px 441px #FFF , 1698px 471px #FFF , 1853px 958px #FFF , 174px 1652px #FFF;
animation: animStar 50s linear infinite;
}
#stars:after {
content: " ";
position: absolute;
top: 2000px;
width: 1px;
height: 1px;
background: transparent;
box-shadow: 1244px 1842px #FFF , 1762px 1625px #FFF , 1152px 1813px #FFF , 769px 1736px #FFF , 174px 15px #FFF , 1611px 569px #FFF , 344px 1657px #FFF , 1002px 912px #FFF , 1205px 217px #FFF , 1270px 351px #FFF , 1425px 1882px #FFF , 83px 643px #FFF , 426px 566px #FFF , 934px 982px #FFF , 1983px 916px #FFF , 1178px 1902px #FFF , 1299px 219px #FFF , 403px 923px #FFF , 1243px 409px #FFF , 1584px 1092px #FFF , 1649px 664px #FFF , 1285px 1906px #FFF , 1177px 1039px #FFF , 852px 1477px #FFF , 937px 950px #FFF , 1670px 314px #FFF , 486px 409px #FFF , 1888px 1421px #FFF , 1944px 1410px #FFF , 1277px 1479px #FFF , 1755px 944px #FFF , 1618px 935px #FFF , 738px 1821px #FFF , 200px 911px #FFF , 866px 1876px #FFF , 442px 145px #FFF , 1459px 1918px #FFF , 75px 1306px #FFF , 932px 1523px #FFF , 1594px 1695px #FFF , 653px 1992px #FFF , 1385px 468px #FFF , 993px 1149px #FFF , 659px 1124px #FFF , 1197px 1641px #FFF , 209px 1945px #FFF , 1425px 799px #FFF , 1887px 1014px #FFF , 1734px 1720px #FFF , 78px 92px #FFF , 628px 1944px #FFF , 1212px 792px #FFF , 792px 1689px #FFF , 374px 1402px #FFF , 196px 1649px #FFF , 73px 986px #FFF , 815px 209px #FFF , 197px 1999px #FFF , 1285px 756px #FFF , 82px 1961px #FFF , 1274px 336px #FFF , 1479px 1950px #FFF , 1673px 1970px #FFF , 1089px 178px #FFF , 735px 645px #FFF , 1244px 1062px #FFF , 4px 1657px #FFF , 974px 452px #FFF , 247px 569px #FFF , 1929px 1691px #FFF , 1443px 970px #FFF , 880px 1263px #FFF , 371px 1995px #FFF , 988px 124px #FFF , 1150px 1668px #FFF , 705px 120px #FFF , 639px 479px #FFF , 1437px 1181px #FFF , 747px 962px #FFF , 1765px 1050px #FFF , 273px 463px #FFF , 703px 699px #FFF , 608px 626px #FFF , 1974px 1320px #FFF , 728px 714px #FFF , 1003px 936px #FFF , 15px 768px #FFF , 56px 256px #FFF , 252px 1639px #FFF , 1407px 1502px #FFF , 430px 1905px #FFF , 23px 1701px #FFF , 851px 1750px #FFF , 1828px 744px #FFF , 207px 1038px #FFF , 1382px 1686px #FFF , 1116px 1395px #FFF , 911px 719px #FFF , 1935px 806px #FFF , 1901px 1238px #FFF , 1455px 410px #FFF , 1594px 1662px #FFF , 1979px 797px #FFF , 219px 438px #FFF , 199px 81px #FFF , 166px 1270px #FFF , 1889px 299px #FFF , 527px 184px #FFF , 1995px 448px #FFF , 1554px 1183px #FFF , 1766px 783px #FFF , 605px 1460px #FFF , 1240px 869px #FFF , 1377px 447px #FFF , 52px 445px #FFF , 974px 1114px #FFF , 743px 418px #FFF , 1924px 677px #FFF , 1144px 508px #FFF , 1193px 1965px #FFF , 363px 379px #FFF , 1697px 331px #FFF , 1370px 1593px #FFF , 582px 1865px #FFF , 408px 430px #FFF , 1495px 1846px #FFF , 313px 1336px #FFF , 1414px 862px #FFF , 669px 327px #FFF , 1617px 34px #FFF , 715px 105px #FFF , 248px 536px #FFF , 315px 889px #FFF , 1793px 573px #FFF , 196px 779px #FFF , 1626px 246px #FFF , 1114px 1857px #FFF , 1113px 1011px #FFF , 1447px 1993px #FFF , 1659px 767px #FFF , 733px 1801px #FFF , 1755px 1663px #FFF , 823px 666px #FFF , 219px 1352px #FFF , 1497px 1170px #FFF , 474px 1129px #FFF , 1635px 1856px #FFF , 351px 272px #FFF , 551px 1227px #FFF , 1773px 1182px #FFF , 832px 22px #FFF , 1924px 737px #FFF , 247px 162px #FFF , 97px 1885px #FFF , 1864px 718px #FFF , 717px 296px #FFF , 1066px 99px #FFF , 726px 1011px #FFF , 106px 140px #FFF , 343px 673px #FFF , 667px 1197px #FFF , 1096px 1104px #FFF , 1102px 1281px #FFF , 490px 533px #FFF , 770px 588px #FFF , 1027px 771px #FFF , 1284px 122px #FFF , 1493px 1710px #FFF , 1845px 1489px #FFF , 966px 1568px #FFF , 1651px 27px #FFF , 1996px 1364px #FFF , 1028px 1049px #FFF , 396px 1071px #FFF , 449px 1735px #FFF , 147px 297px #FFF , 919px 676px #FFF , 400px 372px #FFF , 1540px 1038px #FFF , 1987px 16px #FFF , 189px 1765px #FFF , 323px 635px #FFF , 224px 1289px #FFF , 1083px 751px #FFF , 1557px 1071px #FFF , 89px 1679px #FFF , 1164px 964px #FFF , 844px 560px #FFF , 1625px 1498px #FFF , 1499px 751px #FFF , 814px 668px #FFF , 893px 401px #FFF , 1691px 1373px #FFF , 466px 788px #FFF , 298px 1140px #FFF , 782px 341px #FFF , 1060px 999px #FFF , 631px 1855px #FFF , 1035px 1971px #FFF , 1493px 1290px #FFF , 274px 1626px #FFF , 1418px 503px #FFF , 1003px 1539px #FFF , 1207px 1989px #FFF , 1673px 1032px #FFF , 1381px 284px #FFF , 1832px 1486px #FFF , 1845px 132px #FFF , 340px 1152px #FFF , 1914px 820px #FFF , 21px 19px #FFF , 1749px 945px #FFF , 726px 707px #FFF , 787px 1025px #FFF , 710px 1149px #FFF , 1834px 1235px #FFF , 569px 354px #FFF , 1877px 100px #FFF , 1120px 1965px #FFF , 60px 503px #FFF , 1323px 1548px #FFF , 1054px 434px #FFF , 1218px 1330px #FFF , 740px 638px #FFF , 1621px 617px #FFF , 1989px 530px #FFF , 480px 376px #FFF , 1747px 1277px #FFF , 1037px 1130px #FFF , 969px 1316px #FFF , 1783px 1840px #FFF , 1514px 1915px #FFF , 56px 1320px #FFF , 1153px 625px #FFF , 437px 715px #FFF , 375px 365px #FFF , 287px 926px #FFF , 730px 1116px #FFF , 979px 823px #FFF , 1128px 1798px #FFF , 1708px 584px #FFF , 137px 1471px #FFF , 1387px 696px #FFF , 1427px 975px #FFF , 1949px 1485px #FFF , 1781px 854px #FFF , 101px 408px #FFF , 1082px 1736px #FFF , 1305px 1889px #FFF , 1108px 622px #FFF , 385px 1756px #FFF , 341px 1850px #FFF , 317px 183px #FFF , 1171px 1976px #FFF , 570px 25px #FFF , 1044px 1327px #FFF , 348px 746px #FFF , 1450px 6px #FFF , 402px 79px #FFF , 1674px 1898px #FFF , 1779px 809px #FFF , 5px 777px #FFF , 1264px 556px #FFF , 1522px 260px #FFF , 837px 763px #FFF , 1206px 1685px #FFF , 1135px 816px #FFF , 828px 864px #FFF , 1393px 547px #FFF , 1627px 1025px #FFF , 390px 1698px #FFF , 137px 1664px #FFF , 261px 851px #FFF , 957px 889px #FFF , 671px 739px #FFF , 893px 1417px #FFF , 1488px 223px #FFF , 418px 1459px #FFF , 1770px 433px #FFF , 1491px 1256px #FFF , 1903px 18px #FFF , 1688px 1482px #FFF , 746px 631px #FFF , 1622px 1411px #FFF , 414px 1343px #FFF , 1596px 1376px #FFF , 1270px 428px #FFF , 1393px 69px #FFF , 1902px 1499px #FFF , 701px 138px #FFF , 186px 593px #FFF , 873px 1272px #FFF , 367px 1831px #FFF , 1517px 36px #FFF , 1580px 1133px #FFF , 1763px 741px #FFF , 609px 66px #FFF , 786px 1643px #FFF , 1947px 1272px #FFF , 1604px 1037px #FFF , 1636px 609px #FFF , 1310px 530px #FFF , 1874px 476px #FFF , 290px 1901px #FFF , 1314px 1789px #FFF , 1028px 1491px #FFF , 799px 1040px #FFF , 1638px 798px #FFF , 416px 226px #FFF , 1039px 604px #FFF , 712px 225px #FFF , 512px 532px #FFF , 1960px 1530px #FFF , 82px 191px #FFF , 954px 482px #FFF , 270px 990px #FFF , 1232px 371px #FFF , 1535px 508px #FFF , 1348px 933px #FFF , 235px 621px #FFF , 1163px 597px #FFF , 1628px 1461px #FFF , 596px 1538px #FFF , 754px 1564px #FFF , 267px 1929px #FFF , 1987px 1741px #FFF , 1495px 1427px #FFF , 1340px 1620px #FFF , 1618px 720px #FFF , 34px 1045px #FFF , 1432px 451px #FFF , 667px 1734px #FFF , 988px 1182px #FFF , 739px 1887px #FFF , 1154px 1440px #FFF , 1742px 1700px #FFF , 1358px 1045px #FFF , 395px 293px #FFF , 290px 630px #FFF , 249px 1618px #FFF , 1687px 888px #FFF , 1157px 186px #FFF , 1978px 1287px #FFF , 1891px 1884px #FFF , 1433px 237px #FFF , 793px 1216px #FFF , 1640px 173px #FFF , 1317px 68px #FFF , 101px 964px #FFF , 876px 1956px #FFF , 1466px 118px #FFF , 1183px 918px #FFF , 1219px 1895px #FFF , 1801px 94px #FFF , 921px 98px #FFF , 1223px 1135px #FFF , 265px 257px #FFF , 1639px 70px #FFF , 1432px 1796px #FFF , 715px 1117px #FFF , 64px 609px #FFF , 1959px 1465px #FFF , 1003px 1863px #FFF , 583px 690px #FFF , 1387px 184px #FFF , 978px 1954px #FFF , 641px 1079px #FFF , 476px 303px #FFF , 800px 1814px #FFF , 1075px 1600px #FFF , 86px 1723px #FFF , 224px 161px #FFF , 499px 273px #FFF , 247px 507px #FFF , 1012px 956px #FFF , 267px 1519px #FFF , 1573px 1022px #FFF , 365px 8px #FFF , 1117px 1270px #FFF , 1085px 136px #FFF , 1295px 1975px #FFF , 982px 1609px #FFF , 1374px 1458px #FFF , 1716px 64px #FFF , 210px 1879px #FFF , 1759px 171px #FFF , 888px 122px #FFF , 818px 551px #FFF , 328px 867px #FFF , 1813px 564px #FFF , 202px 383px #FFF , 1087px 1007px #FFF , 1882px 1469px #FFF , 1297px 34px #FFF , 1997px 886px #FFF , 503px 1531px #FFF , 22px 629px #FFF , 39px 1372px #FFF , 1647px 594px #FFF , 175px 1268px #FFF , 1973px 1627px #FFF , 824px 1300px #FFF , 565px 669px #FFF , 1518px 202px #FFF , 1303px 1706px #FFF , 1854px 1942px #FFF , 680px 1155px #FFF , 1100px 760px #FFF , 346px 532px #FFF , 469px 1131px #FFF , 2000px 1145px #FFF , 1115px 999px #FFF , 1758px 719px #FFF , 990px 1965px #FFF , 1437px 696px #FFF , 244px 1880px #FFF , 1349px 130px #FFF , 413px 1312px #FFF , 1614px 249px #FFF , 1942px 1132px #FFF , 111px 1711px #FFF , 1676px 477px #FFF , 627px 956px #FFF , 1085px 1333px #FFF , 1314px 956px #FFF , 610px 1716px #FFF , 1784px 1864px #FFF , 1235px 28px #FFF , 1658px 739px #FFF , 1995px 149px #FFF , 1493px 24px #FFF , 595px 148px #FFF , 1065px 856px #FFF , 1648px 829px #FFF , 519px 1469px #FFF , 629px 327px #FFF , 1368px 1614px #FFF , 946px 426px #FFF , 1024px 1746px #FFF , 294px 1744px #FFF , 1998px 1712px #FFF , 1388px 1376px #FFF , 372px 382px #FFF , 1388px 1461px #FFF , 1074px 61px #FFF , 1332px 649px #FFF , 621px 1174px #FFF , 54px 1765px #FFF , 632px 1061px #FFF , 1501px 21px #FFF , 1027px 38px #FFF , 1710px 179px #FFF , 524px 1993px #FFF , 1313px 484px #FFF , 1832px 1708px #FFF , 471px 1404px #FFF , 824px 1231px #FFF , 896px 1852px #FFF , 1240px 1195px #FFF , 1735px 835px #FFF , 1433px 1723px #FFF , 134px 254px #FFF , 1398px 901px #FFF , 775px 830px #FFF , 1542px 1756px #FFF , 1999px 1037px #FFF , 1163px 1870px #FFF , 1294px 1761px #FFF , 1014px 321px #FFF , 760px 746px #FFF , 389px 1470px #FFF , 1102px 567px #FFF , 1425px 383px #FFF , 1553px 1825px #FFF , 1128px 1415px #FFF , 1498px 1738px #FFF , 612px 1161px #FFF , 161px 784px #FFF , 1649px 731px #FFF , 326px 480px #FFF , 332px 192px #FFF , 415px 1264px #FFF , 1036px 1056px #FFF , 827px 688px #FFF , 1235px 1900px #FFF , 272px 237px #FFF , 356px 351px #FFF , 538px 799px #FFF , 1075px 1806px #FFF , 1858px 537px #FFF , 631px 934px #FFF , 425px 78px #FFF , 1167px 173px #FFF , 1621px 417px #FFF , 74px 1929px #FFF , 1206px 595px #FFF , 371px 84px #FFF , 1176px 1119px #FFF , 1852px 77px #FFF , 1005px 17px #FFF , 176px 253px #FFF , 1907px 695px #FFF , 774px 998px #FFF , 983px 777px #FFF , 837px 1639px #FFF , 1641px 1346px #FFF , 1778px 1247px #FFF , 604px 201px #FFF , 258px 1955px #FFF , 816px 796px #FFF , 282px 931px #FFF , 920px 1677px #FFF , 1038px 178px #FFF , 1507px 1697px #FFF , 178px 1519px #FFF , 1045px 1272px #FFF , 319px 1182px #FFF , 557px 1708px #FFF , 1741px 1161px #FFF , 1303px 422px #FFF , 269px 538px #FFF , 210px 370px #FFF , 13px 544px #FFF , 1037px 60px #FFF , 1237px 370px #FFF , 1845px 1677px #FFF , 1097px 1797px #FFF , 575px 1309px #FFF , 695px 760px #FFF , 35px 792px #FFF , 675px 257px #FFF , 1774px 1750px #FFF , 1057px 1895px #FFF , 236px 6px #FFF , 696px 521px #FFF , 1031px 1323px #FFF , 217px 387px #FFF , 1005px 1432px #FFF , 1615px 1175px #FFF , 252px 1431px #FFF , 1594px 1502px #FFF , 1098px 374px #FFF , 1849px 1292px #FFF , 1669px 339px #FFF , 657px 1120px #FFF , 1425px 692px #FFF , 1881px 1117px #FFF , 464px 931px #FFF , 1081px 117px #FFF , 68px 764px #FFF , 569px 949px #FFF , 740px 1561px #FFF , 1065px 1344px #FFF , 671px 519px #FFF , 752px 1296px #FFF , 565px 808px #FFF , 1540px 510px #FFF , 1585px 909px #FFF , 814px 1916px #FFF , 332px 1827px #FFF , 9px 303px #FFF , 1992px 111px #FFF , 1437px 443px #FFF , 267px 1920px #FFF , 838px 267px #FFF , 916px 996px #FFF , 1008px 1815px #FFF , 1877px 1006px #FFF , 86px 1041px #FFF , 478px 906px #FFF , 419px 1854px #FFF , 691px 1026px #FFF , 866px 286px #FFF , 1223px 744px #FFF , 249px 1574px #FFF , 785px 159px #FFF , 949px 1038px #FFF , 1036px 1172px #FFF , 872px 1180px #FFF , 1182px 912px #FFF , 671px 1632px #FFF , 1185px 1978px #FFF , 1132px 160px #FFF , 64px 190px #FFF , 164px 1165px #FFF , 1448px 230px #FFF , 1760px 1151px #FFF , 1531px 1645px #FFF , 438px 1554px #FFF , 814px 774px #FFF , 260px 359px #FFF , 1052px 1644px #FFF , 842px 1854px #FFF , 896px 383px #FFF , 1205px 42px #FFF , 881px 1054px #FFF , 610px 1665px #FFF , 7px 608px #FFF , 1021px 699px #FFF , 1022px 652px #FFF , 205px 580px #FFF , 873px 239px #FFF , 1084px 1415px #FFF , 1843px 879px #FFF , 169px 726px #FFF , 1667px 966px #FFF , 1264px 866px #FFF , 449px 1008px #FFF , 1814px 1611px #FFF , 562px 2px #FFF , 236px 773px #FFF , 531px 236px #FFF , 137px 1615px #FFF , 63px 190px #FFF , 560px 666px #FFF , 627px 1863px #FFF , 1528px 1982px #FFF , 1923px 1175px #FFF , 1359px 1281px #FFF , 847px 437px #FFF , 799px 553px #FFF , 521px 496px #FFF , 770px 1252px #FFF , 366px 936px #FFF , 1737px 1678px #FFF , 820px 1640px #FFF , 1722px 606px #FFF , 1862px 361px #FFF , 417px 1467px #FFF , 715px 158px #FFF , 1861px 1271px #FFF , 879px 1182px #FFF , 1779px 1827px #FFF , 1077px 1667px #FFF , 1232px 665px #FFF , 550px 1761px #FFF , 1278px 1625px #FFF , 1805px 731px #FFF , 1747px 796px #FFF , 1240px 1645px #FFF , 1423px 1752px #FFF , 1045px 1380px #FFF , 799px 1806px #FFF , 959px 710px #FFF , 1104px 1917px #FFF , 1676px 189px #FFF , 1457px 1023px #FFF , 491px 1412px #FFF , 1656px 1466px #FFF , 395px 133px #FFF , 242px 1050px #FFF , 1873px 781px #FFF , 1867px 744px #FFF , 64px 169px #FFF , 1366px 742px #FFF , 1749px 588px #FFF , 1018px 1990px #FFF , 4px 1651px #FFF , 1344px 1838px #FFF , 1713px 178px #FFF , 1159px 826px #FFF , 232px 1530px #FFF , 1429px 1899px #FFF , 1408px 1413px #FFF , 1912px 554px #FFF , 642px 1140px #FFF , 43px 1604px #FFF , 642px 1857px #FFF , 237px 1115px #FFF , 433px 1307px #FFF , 1767px 11px #FFF , 20px 862px #FFF , 654px 882px #FFF , 654px 1690px #FFF , 410px 410px #FFF , 41px 1445px #FFF , 755px 1307px #FFF , 630px 1593px #FFF , 1589px 1517px #FFF , 726px 226px #FFF , 1250px 105px #FFF , 1303px 347px #FFF , 557px 1023px #FFF , 1546px 1189px #FFF , 209px 438px #FFF , 1391px 638px #FFF , 824px 547px #FFF , 1541px 291px #FFF , 1691px 1716px #FFF , 939px 840px #FFF , 1163px 934px #FFF , 848px 1898px #FFF , 16px 485px #FFF , 908px 1063px #FFF , 1818px 1783px #FFF , 27px 1103px #FFF , 630px 441px #FFF , 1698px 471px #FFF , 1853px 958px #FFF , 174px 1652px #FFF;
}
#stars2 {
width: 2px;
height: 2px;
background: transparent;
box-shadow: 1004px 1970px #FFF , 1957px 788px #FFF , 137px 1278px #FFF , 1368px 843px #FFF , 536px 313px #FFF , 342px 936px #FFF , 368px 1746px #FFF , 1019px 1424px #FFF , 115px 30px #FFF , 1893px 1976px #FFF , 284px 1896px #FFF , 1184px 1958px #FFF , 1567px 135px #FFF , 481px 323px #FFF , 739px 1384px #FFF , 1248px 149px #FFF , 1617px 96px #FFF , 981px 1075px #FFF , 555px 1174px #FFF , 1390px 1610px #FFF , 1802px 113px #FFF , 948px 970px #FFF , 1144px 1258px #FFF , 909px 1435px #FFF , 172px 322px #FFF , 980px 518px #FFF , 1077px 1428px #FFF , 1234px 366px #FFF , 977px 1455px #FFF , 1032px 424px #FFF , 626px 586px #FFF , 873px 1379px #FFF , 1737px 393px #FFF , 218px 687px #FFF , 181px 778px #FFF , 1719px 20px #FFF , 1666px 1614px #FFF , 359px 388px #FFF , 213px 1229px #FFF , 1262px 960px #FFF , 1616px 222px #FFF , 1807px 1178px #FFF , 291px 1832px #FFF , 1260px 1609px #FFF , 1473px 914px #FFF , 1414px 624px #FFF , 389px 386px #FFF , 1746px 407px #FFF , 552px 710px #FFF , 1876px 461px #FFF , 1079px 144px #FFF , 925px 1342px #FFF , 1284px 715px #FFF , 224px 207px #FFF , 1590px 1844px #FFF , 957px 1518px #FFF , 699px 1348px #FFF , 1680px 1353px #FFF , 367px 1938px #FFF , 1482px 1055px #FFF , 84px 934px #FFF , 766px 792px #FFF , 1197px 1642px #FFF , 1543px 944px #FFF , 1776px 665px #FFF , 1004px 161px #FFF , 1732px 168px #FFF , 195px 1891px #FFF , 145px 137px #FFF , 479px 1426px #FFF , 917px 399px #FFF , 1203px 290px #FFF , 1648px 1320px #FFF , 587px 1751px #FFF , 599px 313px #FFF , 229px 193px #FFF , 1928px 383px #FFF , 821px 1112px #FFF , 117px 1623px #FFF , 922px 228px #FFF , 1618px 579px #FFF , 280px 1411px #FFF , 1333px 233px #FFF , 38px 1619px #FFF , 1710px 1935px #FFF , 651px 1362px #FFF , 856px 1649px #FFF , 1925px 1793px #FFF , 535px 1695px #FFF , 1417px 1700px #FFF , 565px 1986px #FFF , 736px 1457px #FFF , 59px 225px #FFF , 511px 1478px #FFF , 1501px 292px #FFF , 735px 1812px #FFF , 36px 1864px #FFF , 49px 1717px #FFF , 25px 762px #FFF , 788px 419px #FFF , 497px 135px #FFF , 1071px 1767px #FFF , 258px 1674px #FFF , 891px 930px #FFF , 235px 1676px #FFF , 1057px 9px #FFF , 699px 246px #FFF , 154px 337px #FFF , 1361px 385px #FFF , 343px 41px #FFF , 627px 1024px #FFF , 1288px 876px #FFF , 1634px 101px #FFF , 1062px 844px #FFF , 2px 811px #FFF , 939px 839px #FFF , 369px 1110px #FFF , 374px 632px #FFF , 265px 1575px #FFF , 401px 1645px #FFF , 815px 9px #FFF , 1353px 1697px #FFF , 685px 489px #FFF , 1058px 1741px #FFF , 746px 121px #FFF , 473px 1358px #FFF , 1240px 1575px #FFF , 1122px 929px #FFF , 1188px 1080px #FFF , 496px 379px #FFF , 346px 1215px #FFF , 1427px 193px #FFF , 1014px 13px #FFF , 1906px 920px #FFF , 800px 922px #FFF , 862px 1977px #FFF , 1723px 71px #FFF , 906px 654px #FFF , 664px 1431px #FFF , 1024px 1431px #FFF , 1726px 1321px #FFF , 1749px 1626px #FFF , 1265px 1801px #FFF , 1052px 1825px #FFF , 1268px 1365px #FFF , 1058px 139px #FFF , 1232px 765px #FFF , 1073px 1857px #FFF , 584px 623px #FFF , 1978px 1596px #FFF , 525px 584px #FFF , 1994px 1075px #FFF , 509px 766px #FFF , 1818px 380px #FFF , 1812px 715px #FFF , 1380px 483px #FFF , 95px 915px #FFF , 960px 1991px #FFF , 1685px 1418px #FFF , 900px 1225px #FFF , 108px 1016px #FFF , 932px 1105px #FFF , 1181px 716px #FFF , 41px 551px #FFF , 1077px 1564px #FFF , 1106px 1671px #FFF , 1448px 392px #FFF , 1451px 88px #FFF , 597px 1323px #FFF , 1718px 33px #FFF , 1952px 1464px #FFF , 1489px 2000px #FFF , 763px 483px #FFF , 1835px 1755px #FFF , 1985px 1665px #FFF , 1941px 1823px #FFF , 1721px 1400px #FFF , 1544px 554px #FFF , 252px 1996px #FFF , 1497px 1090px #FFF , 985px 1276px #FFF , 853px 1506px #FFF , 1585px 621px #FFF , 1547px 461px #FFF , 1020px 754px #FFF , 1961px 217px #FFF , 676px 1526px #FFF , 1759px 1140px #FFF , 86px 752px #FFF , 792px 1871px #FFF , 353px 1373px #FFF , 1834px 726px #FFF , 1654px 739px #FFF , 487px 1182px #FFF , 1321px 937px #FFF , 246px 787px #FFF , 538px 506px #FFF , 455px 1297px #FFF , 615px 1662px #FFF , 578px 215px #FFF;
animation: animStar 100s linear infinite;
}
#stars2:after {
content: " ";
position: absolute;
top: 2000px;
width: 2px;
height: 2px;
background: transparent;
box-shadow: 1004px 1970px #FFF , 1957px 788px #FFF , 137px 1278px #FFF , 1368px 843px #FFF , 536px 313px #FFF , 342px 936px #FFF , 368px 1746px #FFF , 1019px 1424px #FFF , 115px 30px #FFF , 1893px 1976px #FFF , 284px 1896px #FFF , 1184px 1958px #FFF , 1567px 135px #FFF , 481px 323px #FFF , 739px 1384px #FFF , 1248px 149px #FFF , 1617px 96px #FFF , 981px 1075px #FFF , 555px 1174px #FFF , 1390px 1610px #FFF , 1802px 113px #FFF , 948px 970px #FFF , 1144px 1258px #FFF , 909px 1435px #FFF , 172px 322px #FFF , 980px 518px #FFF , 1077px 1428px #FFF , 1234px 366px #FFF , 977px 1455px #FFF , 1032px 424px #FFF , 626px 586px #FFF , 873px 1379px #FFF , 1737px 393px #FFF , 218px 687px #FFF , 181px 778px #FFF , 1719px 20px #FFF , 1666px 1614px #FFF , 359px 388px #FFF , 213px 1229px #FFF , 1262px 960px #FFF , 1616px 222px #FFF , 1807px 1178px #FFF , 291px 1832px #FFF , 1260px 1609px #FFF , 1473px 914px #FFF , 1414px 624px #FFF , 389px 386px #FFF , 1746px 407px #FFF , 552px 710px #FFF , 1876px 461px #FFF , 1079px 144px #FFF , 925px 1342px #FFF , 1284px 715px #FFF , 224px 207px #FFF , 1590px 1844px #FFF , 957px 1518px #FFF , 699px 1348px #FFF , 1680px 1353px #FFF , 367px 1938px #FFF , 1482px 1055px #FFF , 84px 934px #FFF , 766px 792px #FFF , 1197px 1642px #FFF , 1543px 944px #FFF , 1776px 665px #FFF , 1004px 161px #FFF , 1732px 168px #FFF , 195px 1891px #FFF , 145px 137px #FFF , 479px 1426px #FFF , 917px 399px #FFF , 1203px 290px #FFF , 1648px 1320px #FFF , 587px 1751px #FFF , 599px 313px #FFF , 229px 193px #FFF , 1928px 383px #FFF , 821px 1112px #FFF , 117px 1623px #FFF , 922px 228px #FFF , 1618px 579px #FFF , 280px 1411px #FFF , 1333px 233px #FFF , 38px 1619px #FFF , 1710px 1935px #FFF , 651px 1362px #FFF , 856px 1649px #FFF , 1925px 1793px #FFF , 535px 1695px #FFF , 1417px 1700px #FFF , 565px 1986px #FFF , 736px 1457px #FFF , 59px 225px #FFF , 511px 1478px #FFF , 1501px 292px #FFF , 735px 1812px #FFF , 36px 1864px #FFF , 49px 1717px #FFF , 25px 762px #FFF , 788px 419px #FFF , 497px 135px #FFF , 1071px 1767px #FFF , 258px 1674px #FFF , 891px 930px #FFF , 235px 1676px #FFF , 1057px 9px #FFF , 699px 246px #FFF , 154px 337px #FFF , 1361px 385px #FFF , 343px 41px #FFF , 627px 1024px #FFF , 1288px 876px #FFF , 1634px 101px #FFF , 1062px 844px #FFF , 2px 811px #FFF , 939px 839px #FFF , 369px 1110px #FFF , 374px 632px #FFF , 265px 1575px #FFF , 401px 1645px #FFF , 815px 9px #FFF , 1353px 1697px #FFF , 685px 489px #FFF , 1058px 1741px #FFF , 746px 121px #FFF , 473px 1358px #FFF , 1240px 1575px #FFF , 1122px 929px #FFF , 1188px 1080px #FFF , 496px 379px #FFF , 346px 1215px #FFF , 1427px 193px #FFF , 1014px 13px #FFF , 1906px 920px #FFF , 800px 922px #FFF , 862px 1977px #FFF , 1723px 71px #FFF , 906px 654px #FFF , 664px 1431px #FFF , 1024px 1431px #FFF , 1726px 1321px #FFF , 1749px 1626px #FFF , 1265px 1801px #FFF , 1052px 1825px #FFF , 1268px 1365px #FFF , 1058px 139px #FFF , 1232px 765px #FFF , 1073px 1857px #FFF , 584px 623px #FFF , 1978px 1596px #FFF , 525px 584px #FFF , 1994px 1075px #FFF , 509px 766px #FFF , 1818px 380px #FFF , 1812px 715px #FFF , 1380px 483px #FFF , 95px 915px #FFF , 960px 1991px #FFF , 1685px 1418px #FFF , 900px 1225px #FFF , 108px 1016px #FFF , 932px 1105px #FFF , 1181px 716px #FFF , 41px 551px #FFF , 1077px 1564px #FFF , 1106px 1671px #FFF , 1448px 392px #FFF , 1451px 88px #FFF , 597px 1323px #FFF , 1718px 33px #FFF , 1952px 1464px #FFF , 1489px 2000px #FFF , 763px 483px #FFF , 1835px 1755px #FFF , 1985px 1665px #FFF , 1941px 1823px #FFF , 1721px 1400px #FFF , 1544px 554px #FFF , 252px 1996px #FFF , 1497px 1090px #FFF , 985px 1276px #FFF , 853px 1506px #FFF , 1585px 621px #FFF , 1547px 461px #FFF , 1020px 754px #FFF , 1961px 217px #FFF , 676px 1526px #FFF , 1759px 1140px #FFF , 86px 752px #FFF , 792px 1871px #FFF , 353px 1373px #FFF , 1834px 726px #FFF , 1654px 739px #FFF , 487px 1182px #FFF , 1321px 937px #FFF , 246px 787px #FFF , 538px 506px #FFF , 455px 1297px #FFF , 615px 1662px #FFF , 578px 215px #FFF;
}
#stars3 {
width: 3px;
height: 3px;
background: transparent;
box-shadow: 181px 638px #FFF , 930px 1062px #FFF , 738px 1848px #FFF , 1698px 1571px #FFF , 1238px 1523px #FFF , 376px 273px #FFF , 1092px 1330px #FFF , 175px 222px #FFF , 1326px 823px #FFF , 311px 801px #FFF , 1365px 961px #FFF , 260px 1675px #FFF , 1419px 145px #FFF , 928px 210px #FFF , 1021px 1052px #FFF , 826px 1721px #FFF , 1845px 612px #FFF , 1125px 1529px #FFF , 1696px 131px #FFF , 1762px 1391px #FFF , 220px 704px #FFF , 1699px 475px #FFF , 781px 946px #FFF , 1702px 228px #FFF , 77px 1476px #FFF , 280px 1928px #FFF , 1492px 1847px #FFF , 1848px 1402px #FFF , 362px 796px #FFF , 1655px 126px #FFF , 1375px 1048px #FFF , 1711px 1380px #FFF , 152px 566px #FFF , 592px 643px #FFF , 1495px 801px #FFF , 1100px 1894px #FFF , 54px 579px #FFF , 753px 1022px #FFF , 113px 1529px #FFF , 471px 312px #FFF , 1080px 1528px #FFF , 375px 1604px #FFF , 137px 421px #FFF , 1705px 1023px #FFF , 1481px 1544px #FFF , 1746px 1073px #FFF , 1548px 1030px #FFF , 336px 1759px #FFF , 452px 1550px #FFF , 525px 1982px #FFF , 1441px 234px #FFF , 1495px 164px #FFF , 1973px 279px #FFF , 407px 1032px #FFF , 952px 1655px #FFF , 489px 686px #FFF , 2px 1318px #FFF , 516px 1603px #FFF , 871px 832px #FFF , 1683px 951px #FFF , 879px 725px #FFF , 357px 1576px #FFF , 364px 1566px #FFF , 1961px 1840px #FFF , 2000px 435px #FFF , 1294px 493px #FFF , 13px 1747px #FFF , 836px 483px #FFF , 1462px 998px #FFF , 1353px 1010px #FFF , 924px 399px #FFF , 185px 208px #FFF , 1634px 1263px #FFF , 724px 1566px #FFF , 671px 1407px #FFF , 189px 1134px #FFF , 1665px 170px #FFF , 1118px 209px #FFF , 1634px 1843px #FFF , 1077px 181px #FFF , 50px 1300px #FFF , 515px 117px #FFF , 416px 682px #FFF , 1366px 1087px #FFF , 172px 286px #FFF , 1422px 1014px #FFF , 1562px 1032px #FFF , 875px 1508px #FFF , 1290px 492px #FFF , 924px 864px #FFF , 735px 23px #FFF , 289px 627px #FFF , 139px 1388px #FFF , 1182px 597px #FFF , 1634px 41px #FFF , 764px 1131px #FFF , 1563px 632px #FFF , 546px 1040px #FFF , 1870px 173px #FFF , 1843px 662px #FFF;
animation: animStar 150s linear infinite;
}
#stars3:after {
content: " ";
position: absolute;
top: 2000px;
width: 3px;
height: 3px;
background: transparent;
box-shadow: 181px 638px #FFF , 930px 1062px #FFF , 738px 1848px #FFF , 1698px 1571px #FFF , 1238px 1523px #FFF , 376px 273px #FFF , 1092px 1330px #FFF , 175px 222px #FFF , 1326px 823px #FFF , 311px 801px #FFF , 1365px 961px #FFF , 260px 1675px #FFF , 1419px 145px #FFF , 928px 210px #FFF , 1021px 1052px #FFF , 826px 1721px #FFF , 1845px 612px #FFF , 1125px 1529px #FFF , 1696px 131px #FFF , 1762px 1391px #FFF , 220px 704px #FFF , 1699px 475px #FFF , 781px 946px #FFF , 1702px 228px #FFF , 77px 1476px #FFF , 280px 1928px #FFF , 1492px 1847px #FFF , 1848px 1402px #FFF , 362px 796px #FFF , 1655px 126px #FFF , 1375px 1048px #FFF , 1711px 1380px #FFF , 152px 566px #FFF , 592px 643px #FFF , 1495px 801px #FFF , 1100px 1894px #FFF , 54px 579px #FFF , 753px 1022px #FFF , 113px 1529px #FFF , 471px 312px #FFF , 1080px 1528px #FFF , 375px 1604px #FFF , 137px 421px #FFF , 1705px 1023px #FFF , 1481px 1544px #FFF , 1746px 1073px #FFF , 1548px 1030px #FFF , 336px 1759px #FFF , 452px 1550px #FFF , 525px 1982px #FFF , 1441px 234px #FFF , 1495px 164px #FFF , 1973px 279px #FFF , 407px 1032px #FFF , 952px 1655px #FFF , 489px 686px #FFF , 2px 1318px #FFF , 516px 1603px #FFF , 871px 832px #FFF , 1683px 951px #FFF , 879px 725px #FFF , 357px 1576px #FFF , 364px 1566px #FFF , 1961px 1840px #FFF , 2000px 435px #FFF , 1294px 493px #FFF , 13px 1747px #FFF , 836px 483px #FFF , 1462px 998px #FFF , 1353px 1010px #FFF , 924px 399px #FFF , 185px 208px #FFF , 1634px 1263px #FFF , 724px 1566px #FFF , 671px 1407px #FFF , 189px 1134px #FFF , 1665px 170px #FFF , 1118px 209px #FFF , 1634px 1843px #FFF , 1077px 181px #FFF , 50px 1300px #FFF , 515px 117px #FFF , 416px 682px #FFF , 1366px 1087px #FFF , 172px 286px #FFF , 1422px 1014px #FFF , 1562px 1032px #FFF , 875px 1508px #FFF , 1290px 492px #FFF , 924px 864px #FFF , 735px 23px #FFF , 289px 627px #FFF , 139px 1388px #FFF , 1182px 597px #FFF , 1634px 41px #FFF , 764px 1131px #FFF , 1563px 632px #FFF , 546px 1040px #FFF , 1870px 173px #FFF , 1843px 662px #FFF;
}
#title {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
}
#title span {
background: -webkit-linear-gradient(white, #38495a);
-webkit-background-clip: text;
}
@keyframes animStar {
from {
transform: translateY(0px);
}
to {
transform: translateY(-2000px);
}
}
`;
export default Header;
|
7799d0fe6c996c041ed97b5ac8025e59
|
{
"intermediate": 0.40800851583480835,
"beginner": 0.4242132604122162,
"expert": 0.16777817904949188
}
|
44,067
|
hi
|
03fbb0647b9c27a730926a217a5a9978
|
{
"intermediate": 0.3246487081050873,
"beginner": 0.27135494351387024,
"expert": 0.40399640798568726
}
|
44,068
|
Teach me python in a fastest way
|
99b42cb1fe7c72966d9cb7e4c85aae75
|
{
"intermediate": 0.34354907274246216,
"beginner": 0.2507473826408386,
"expert": 0.40570348501205444
}
|
44,069
|
HI!
|
0202b98a8c06309b2e198240449317aa
|
{
"intermediate": 0.3374777138233185,
"beginner": 0.2601830065250397,
"expert": 0.40233927965164185
}
|
44,070
|
Teach me python as a layman
|
c8e381a88a391bc0c8edbfceeb301708
|
{
"intermediate": 0.3027915060520172,
"beginner": 0.38206055760383606,
"expert": 0.31514790654182434
}
|
44,071
|
What's size_t in C?
|
2685ed55a0b9584002d03e5db8a79534
|
{
"intermediate": 0.27817246317863464,
"beginner": 0.4137442409992218,
"expert": 0.30808329582214355
}
|
44,072
|
As per the requirement, I need to capture the "Operational Status" change information in Business Service table string field.
I am able to get the answer in script include, but when I try to take that response in Client script it is not working.
var OptnlStusInfo = ' ';
var ga = new GlideAjax('ReferenceDataUtilAsync'); //script include name
ga.addParam('sysparm_name', 'getBusinessServiceOperationStatusChoice'); //function in script include
ga.addParam('sysparm_operationalStatus', newValue);
ga.addParam('sysparm_loggedinuser',loggedInUsr);
ga.getXMLAnswer(StatusInfo);
function StatusInfo(response)
{
OptnlStusInfo = response;
//.responseXML.documentElement.getAttribute("OptnlStusInfo");
}
When I print the return result in script include it is giving expected result.
I am facing issue when I call that response in client script.
Please help me on this .
|
f017934522a902e0284d70ba4f20a42d
|
{
"intermediate": 0.429502934217453,
"beginner": 0.39239588379859924,
"expert": 0.17810116708278656
}
|
44,073
|
Give me an example of getsockopt so_rcvbuf on Linux in C. Answer shortly
|
6aeec823b10b615ed4f576fe4958ab69
|
{
"intermediate": 0.4694051742553711,
"beginner": 0.3137867748737335,
"expert": 0.216808021068573
}
|
44,074
|
How to update choice field dynamically, when i try to use below syntax it is creating duplicate record.
current.setValue(FieldName, displayName);
please suggest me here Thanks.
|
2787faf40915d2f0f1ae026aa0ead1a5
|
{
"intermediate": 0.47947341203689575,
"beginner": 0.20424795150756836,
"expert": 0.3162786662578583
}
|
44,075
|
Hi
|
bb575eb3f34602eccf5ac43cc8ac9e11
|
{
"intermediate": 0.33010533452033997,
"beginner": 0.26984941959381104,
"expert": 0.400045245885849
}
|
44,076
|
In servicenow
How to update choice field dynamically, when i try to use below syntax it is creating duplicate record.
current.setValue(FieldName, displayName);
please suggest me here Thanks.
|
02c0fc54eb88f90da99c9c416b735658
|
{
"intermediate": 0.510712742805481,
"beginner": 0.22401466965675354,
"expert": 0.2652726173400879
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.