text stringlengths 4.4k 422k | metadata stringlengths 39 6.04k |
|---|---|
What is the proper way to set my Java Swing application's title in the Gnome top bar?
Question: I'm using the following code to set my Java Swing application's title in Gnome 3's top bar. However, when I run it, I get the warnings shown below the code. Is there a better way to set the application title in code? Ple... | [{"idx": "What_is_the_proper_way_to_set_my_Java_Swing_application's_title_in_the_Gnome_top_bar?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-24064.jsonl"}, {"idx": "How_do_I_use_the_\"targetObj\"_parameter_to_loadSubScript()_in_firefox_extensions... |
*/
import "jasmine";
import { cleanDomAfterEach } from "./dom";
const ID = "clean-dom-after-each-child";
describe("cleanDomAfterEach", () => {
describe("with child in head", () => {
cleanDomAfterEach();
for (const nth of ["first", "second"]) {
it(`should not already be present when adding it (${nth} ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3129.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3129.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
# version 2. See the file "COPYING" for details. #
# #
#----------------------------------------------------------------------------#
#
# $Id$
echo "[date]"
date
echo "[uname]"
uname -a
echo "[uptime]"
uptime
echo "[... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17607.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17607.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
"""
Downloads and clips videos from youtube, rumble, bitchute (using yt-dlp) and clips
the video using ffmpeg.
"""
import os
import shutil
import subprocess
import sys
import time
def _find_video_file_from_stdout(stdout: str) -> Optional[str]:
value = None
# File pattern # 1
needle = '... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9889.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9889.jsonl"}] |
from itertools import chain
from typing import Any, Dict
import numpy as np
import torch
from omegaconf import MISSING, DictConfig, OmegaConf
from pytorch_lightning.loggers import LoggerCollection, TensorBoardLogger
from nemo.collections.asr.data.audio_to_text import FastPitchDataset
from nemo.collections.tts.help... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12389.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12389.jsonl"}] |
How do you verify test assumptions in real world cases, without testing them
Question: We know that, formally, the assumptions of a test cannot be tested, because if we choose what test to use based on the results of the test, the resulting composite test has unknown properties (Type I and II error rates). I think thi... | [{"idx": "How_do_you_verify_test_assumptions_in_real_world_cases,_without_testing_them", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-26187.jsonl"}, {"idx": "Como_apresentar_dados_pelo_DOM_sem_ser_por_tabela", "domain": "stack_exchange", "domain2":... |
Assign values from array to a HTML element using javascript or jquery
Question: In my HTML i have 4 image tags like this
<code> <div id="imgContainer">
<img id = "crystal1" src="assets/images/crystal1.jpg" alt="crystal1">
<img id = "crystal2" src="assets/images/crystal2.jpg" alt="crystal2">
<img id = "cr... | [{"idx": "Assign_values_from_array_to_a_HTML_element_using_javascript_or_jquery", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-25120.jsonl"}, {"idx": "Page_not_found_After_using_UpdateView_class", "domain": "stack_exchange", "domain2": "stackexchan... |
use nom::bytes::complete as bytes;
use nom::{named, take, IResult};
/// This trait defines the physical encodying of the primitive data types
/// (numbers, booleans, and string).
///
/// The trait exists to allow for different encodings (like using LEB128 instead of u32) to be
/// monomorphised at compile time.
/// By... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14430.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14430.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
numbers: is factor composed
---------------------------
Ask: Let x(q) = -7*q. Let r be x(2). Suppose 792 = -25*b + 3*b. Let l = r - b. Does 8 divide l?
Sol: False
Ask: Let u be ((-2)/(-6))/((-18)/2646). Let t = 109 + u. Is 10 a factor of t?
Sol: True
Ask: Let g = 9 + -4. Let j(n) = -41*n**3 - 4 + 0 + g + 151*n**3. Is 3... | [{"idx": "txt360/numbers__is_factor_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}, {"idx": "txt360/numbers__lcm_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}] |
### Please examine the set of division, subtraction, addition, multiplication math problems:
961 * 1498 =
1439578
###
1580 - 417 =
1163
###
818 / 697 =
1.17
###
-758 / 1067 =
-0.71
###
-45 - 1195 =
-1240
###
2100 - 2013 =
87
###
1198 * -77 =
-92246
###
2289 - 751 =
1538
###
-37 + 1671 =
1634
###
-658 / -101... | [{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}] |
java string conversion
Question: I have written following java code. It is throwing array index out of range exception
<code>Exceptions: exception_name = java.lang.ArrayIndexOutOfBoundsException
exception_message = Array index out of range: 1
</code>
Can some resolve this issue plz
<code>public class UnifiedClus1... | [{"idx": "java_string_conversion", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20147.jsonl"}, {"idx": "\u0446\u0438\u043a\u043b_for_of_\u043d\u0435_\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442", "domain": "stack_exchange", "domain2": "stackexc... |
use git2;
use super::*;
use std::collections::{BTreeMap, BTreeSet};
use std::path::Path;
use tracing::{info, span, Level};
pub type KnownViews = BTreeMap<String, BTreeSet<String>>;
pub fn default_from_to(
repo: &git2::Repository,
namespace: &str,
upstream_repo: &str,
filter_spec: &str,
) -> Vec<(Stri... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13983.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13983.jsonl"}] |
### Here's set of subtraction, addition, multiplication, division math insights:
779 * 1857 =
1446603
###
1707 - 1380 =
327
###
763 - 399 =
364
###
894 * 518 =
463092
###
982 * 2126 =
2087732
###
111 / 943 =
0.12
###
20 / 1145 =
0.02
###
-46 + 2272 =
2226
###
1846 * 1959 =
3616314
###
855 - 1724 =
-869
###... | [{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}] |
import { EntityRepository, FindManyOptions, In, Repository } from 'typeorm'
import Currency from '../models/CurrencyModel'
import { IFindCommand } from './commands/common'
import { ICurrencyInfoUpdateCommand } from './commands/currency'
@EntityRepository(Currency)
export default class CurrencyRepository extends Reposi... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18638.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18638.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
Spring data mongodb: mongodb repositories not found when autowired
Question: I have the following stack:
Spring MVC web app
Spring Data MongoDB
When I deploy the webapp and start server (Tomcat 7) I'am getting the following error :
<code>org.springframework.beans.factory.BeanCreationException: Error creating bean wi... | [{"idx": "Spring_data_mongodb:_mongodb_repositories_not_found_when_autowired", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-25889.jsonl"}, {"idx": "Asking_a_user_to_take_money_from_a_checking_account_and_move_it_to_a_savings_account_-_follow-up", "... |
import os.path
from PIL import Image
import numpy as np
from skimage import img_as_float, img_as_uint, img_as_ubyte
from skimage.color.adapt_rgb import adapt_rgb, hsv_value
from skimage.exposure import rescale_intensity, equalize_adapthist
from ocrd import Processor
from ocrd_utils import (
getLogger,
make_fil... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15257.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15257.jsonl"}] |
Q: Prove that a given binary operation on a list that reduces an (arbitrary) pair at a time always results in the same single element (contest question) I believe I have proven part (a), but would like some feedback on whether(and how) this should be made more rigorous (especially at the end), and whether there is a si... | [{"idx": "https://math.stackexchange.com/questions/1388350", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-9376.jsonl"}, {"idx": "https://math.stackexchange.com/questions/1790921", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "so... |
import { Gain } from "../../core/context/Gain";
import { Param } from "../../core/context/Param";
import { connectSeries, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
import { NormalRange, Time } from "../../core/type/Units";
import { optionsFromArguments } from "../../core/util/Defaul... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1798.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1798.jsonl"}] |
XElement parsing from XDocument, far below, repeated
Question: I would like to make my result like this;
<code>// Boo1
// Boo2
// Boo3
// ....
// ..
// .
</code>
Frome here..
<code>//<xliff xmlns:sdl=" [IDX] xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2" sdl: version="1.0">
// <sdl:seg-defs>
// ... | [{"idx": "XElement_parsing_from_XDocument,_far_below,_repeated", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22366.jsonl"}, {"idx": "How_to_open_window_with_html_or_dialog_box_in_middle_view_django", "domain": "stack_exchange", "domain2": "stackex... |
Python - Send Integer or String to Spark-Streaming
Question: I can send my data through CSV file. First, write my random numbers into CSV file then send it, but is it possible to send it directly?
my socket code:
<code>import socket
host = 'localhost'
port = 8080
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | [{"idx": "Python_-_Send_Integer_or_String_to_Spark-Streaming", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-17802.jsonl"}, {"idx": "Joomla_Site_Crashed_-_due_to_RSMembership", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer":... |
an algorithm to find the shortest path between two vertices whose weight is divided by 3?
Question: I am trying to think of an algorithm such that giving a graph $G(V,E)$, and a weight function $w\colon E \to \mathbb{N}_+$ (which means giving every edge in the graph a positive weight), and a source vertex $S$, the alg... | [{"idx": "an_algorithm_to_find_the_shortest_path_between_two_vertices_whose_weight_is_divided_by_3?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-11332.jsonl"}, {"idx": "Ionic_2_unable_to_update_form_value_from_class", "domain": "stack_exchange", ... |
Running window apps from python cgi script
Question: I'm developing small application with web interface for automatic test and upgrade my hardware products. Application uses Apache 2 web server and CGI technology (python language).
At one point I have to run external windows application (TeraTerm Pro for Zmodem file... | [{"idx": "Running_window_apps_from_python_cgi_script", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4067.jsonl"}, {"idx": "How_to_revert_back_from_current_working_directory_in_batch_file?", "domain": "stack_exchange", "domain2": "stackexchange", "h... |
"""Wrapper for Service Management API client."""
from builtins import object
API_NAME = 'servicemanagement'
class ServiceManagementRepositoryClient(_base_repository.BaseRepositoryClient):
"""Service Management API Respository."""
def __init__(self,
cache=None):
"""Const... | [{"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19869.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19869.jsonl"}] |
Categorizing a nested list based on the indices and the length of inner lists
Question: I would like to categorize my nested list based on their respective indices and the length of the inner lists.
For example, if the initial list is as following:
<code>a= [[1,2,3],[4,5,6],[3,4],[2,1],[5,6,7],[1,3,5]]
</code>
I would... | [{"idx": "Categorizing_a_nested_list_based_on_the_indices_and_the_length_of_inner_lists", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-21679.jsonl"}, {"idx": "Codeigniter_:_bootstrap_disabled_changes_to_enabled_after_validation", "domain": "stack_e... |
algebra: sequence next term
---------------------------
Topic: What comes next: 30, 53, 76, 99, 122, 145?
Eval: 168
Topic: What is the next term in 49377, 98758, 148141, 197526, 246913, 296302?
Eval: 345693
Topic: What is the next term in 369, 365, 361, 357, 353, 349?
Eval: 345
Topic: What is next in -10087, -10084, -1... | [{"idx": "txt360/algebra__sequence_next_term_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/numbers__lcm_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}] |
How do I enable syntax highlighting of CUDA .cu files in Visual Studio 2010?
Question: When I edit a <code>.cu</code> file in Microsoft Visual Studio 2010, the editor treats it as a regular text file (there are no colors on keywords such as <code>int</code>, <code>float</code> etc. Closing brackets are not highlighted... | [{"idx": "How_do_I_enable_syntax_highlighting_of_CUDA_.cu_files_in_Visual_Studio_2010?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-24108.jsonl"}, {"idx": "cannot_be_accessed_with_an_instance_reference;_qualify_it_with_a_type_name_instead", "doma... |
from pathlib import Path
import pytest
from manim import MathTex, SingleStringMathTex, Tex, config
def test_MathTex(using_opengl_renderer):
MathTex("a^2 + b^2 = c^2")
assert Path(config.media_dir, "Tex", "3879f6b03bc495cd.svg").exists()
def test_SingleStringMathTex(using_opengl_renderer):
SingleString... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7027.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7027.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
Randomized algorithms and the one time pad
Question: The way I understand it, an algorithm is said to be randomized if it uses randomness as part of its logic (quoting Wikipedia). Now, in the case of encryption algorithms, I assume this means that for the same input, different outputs (i.e. ciphertexts) will be produc... | [{"idx": "Randomized_algorithms_and_the_one_time_pad", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-23138.jsonl"}, {"idx": "VBA_Intermittent_ByRef_Error_-_Format_function", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": ""... |
How can I do to justify a paragraph with Apache POI?
Question: Good day.
I'm using Apache POI 3.15 in order to create a Microsoft Word document in Java.
I cannot found a way to justify a text in a paragrapth.
In a XWPFParagraph there is only BOTH value (of ParagraphAlignment class), but really it adjust a text on left... | [{"idx": "How_can_I_do_to_justify_a_paragraph_with_Apache_POI?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-3116.jsonl"}, {"idx": "How_to_get_all_blobs_with_are_stored_inside_azure_storage_container", "domain": "stack_exchange", "domain2": "stack... |
Can I plot matrix data in Chart::Gnuplot(Perl)?
Question: I need to do gnulot script of "splot '$map' matrix with image" in my perl codes, which means I need like heat map generated from data containing Z values only. I use Chart::Gnuplot but I have no idea how to do that with it. The below codes may not work correctl... | [{"idx": "Can_I_plot_matrix_data_in_Chart::Gnuplot(Perl)?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-24998.jsonl"}, {"idx": "Freeing_objects_in_PHP", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "so... |
jQuery navigation/viewport bug
Question: During UX testing, I've come across a strange bug. When the browser viewport hits 1280px it transitions into a mobile/tablet view. Part of this transition is a jQuery powered navigation bar at the top of the page.
Since implementing the FlexSlider, the jQuery code of the naviga... | [{"idx": "jQuery_navigation/viewport_bug", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-14640.jsonl"}, {"idx": "Which_approach_is_more_memory-efficient_for_cJSON:_Individual_cJSON_objects_or_a_cJSON_array?", "domain": "stack_exchange", "domain2": "... |
Cannot import functions in from one directory's subfolder to other pyhton files in same parent directories sub folders. How do I use init.py files
Question: parent_folder /
subfolder1 /
subsubfolder1/
a.py
b.py
subsubfolder2/
c.py
d.py
e.py
subfolder2 /
subsubfolder2/
f.py
g.py
subfolder3 /
h.py
i.py
g.py
I want to im... | [{"idx": "Cannot_import_functions_in_from_one_directory's_subfolder_to_other_pyhton_files_in_same_parent_directories_sub_folders._How_do_I_use_init.py_files", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-19499.jsonl"}, {"idx": "Quando_eu_devo_usar_... |
polynomials: add
----------------
Q-: Let p(d) = 2*d - 1. Let j(k) = -k + 1 + 2*k - 3*k. Suppose 5*o + 52*b + 15 = 51*b, -5 = 15*o - 5*b. Give o*j(f) - 3*p(f).
A.: -2*f + 1
Q-: Let c(m) = -m**3 + 6*m**2 - 4*m. Let y(v) be the second derivative of -v**5/10 + 13*v**4/12 - 3*v**3/2 + 10*v - 1. Let b = -3 - -9. Determine b... | [{"idx": "txt360/polynomials__add_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-1.jsonl"}, {"idx": "txt360/polynomials__add_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-1.jsonl"}] |
Running string as a Batch file in c#
Question: I'm writing an application that creates a batch file and then run :
I know I can create a Batch file and run it
no problem with that .
What I want to do is :
once I have created the string that makes the file , Is there is any way to execute the string as a Batch file ? ... | [{"idx": "Running_string_as_a_Batch_file_in_c#", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-24311.jsonl"}, {"idx": "Shiny_app_error_when_deployed,_works_locally_(rvest_-->_html_nodes_issue)", "domain": "stack_exchange", "domain2": "stackexchange"... |
Get Azure AD Basic User Profile
Question: I'm trying to get the users basic profile from Azure AD. I have a React Native app authenticating against a Native Azure AD App registration. The <code>access_token</code> I got from that request is used to authenticate against a Web app / Api. The user is shown the propper co... | [{"idx": "Get_Azure_AD_Basic_User_Profile", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22853.jsonl"}, {"idx": "I_can't_understand_why_CSS_Transition_is_not_working_on_keydown", "domain": "stack_exchange", "domain2": "stackexchange", "header_foote... |
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute, NavigationExtras } from '@angular/router';
import { FormGroup } from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { EMPTY, Subscription, Observable } from 'rxjs';
import { exhaustMap, map } from 'rxjs/... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5403.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5403.jsonl"}] |
import { TDNodeType } from '.';
import { ListUtil } from './core/ListUtil';
import { LangUtil } from './core/LangUtil';
import { TDNode } from './TDNode';
export class TreeDoc {
public idMap: { [key: string]: TDNode } = {};
public root: TDNode = new TDNode(this, "root");
public constructor(rootKey = 'root', p... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18267.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18267.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
Q: How to draw orbital elements I'm trying to draw a diagram representing the orbital elements (only the angles) to obtain something like the following:
At the moment I have only drawn the Line of Nodes and the right ascension of the ascending node $\Omega$. I'm having problems in drawing the actual orbit (the circle ... | [{"idx": "https://tex.stackexchange.com/questions/386030", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-7830.jsonl"}, {"idx": "How_to_install_python_libxml2_in_solaris?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en",... |
import sys
import re
def main():
# for website color mapping
tfprof_map = {'inou.fir_tolnast': 'static',
'pass.lnast_ssa' : 'static',
'core.hierarchy' : 'static',
'pass.lnast_tolg' : 'static',
'pass.cprop' : 'static',
... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11929.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11929.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
import { Url } from "url"
import { createHash } from "crypto"
import { Transform } from "stream"
export interface DownloadOptions {
skipDirCreation?: boolean
sha2?: string
}
export class HttpExecutorHolder {
private _ httpExecutor: HttpExecutor
get httpExecutor(): HttpExecutor {
if (this._ httpExecutor ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-893.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-893.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "... |
import config from 'config';
import Joi, { any } from 'joi';
import { createSuitCard, MessageName, Suits } from 'agurk-shared';
import { timeout } from 'rxjs/operators';
import WebSocket from 'ws';
import {
broadcast, on, request, unicast,
} from '../../src/communication/clientCommunication';
import createWebsocket f... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-997.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-997.jsonl"}] |
*/
#include "FLAME.h"
//extern "C" {
#include "RCCE.h"
//}
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
//Change the user name in the path below to yours
#define OUTPUT_PATH "/shared/bamarker/results"
#define OUTPUT_FILE "chol"
void Synch_all() {
RCCE_barrier( &RCCE_COMM_WORLD );
}
//extern "C" ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13153.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13153.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Numerics;
using System.Linq;
using NUnit.Framework;
using Newtonsoft.Json;
using Atma.Math;
// ReSharper disable InconsistentNamin... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9378.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9378.jsonl"}] |
Fell ill - huge gap in time on resume - what do I do?
Question: I'm having some troubles finding work. I'm a good, hard-working and honest worker who has a ton of experience in several areas. I won't list them, but I suspect that my issues with finding work are related to a 10 year break I took. From the moment I left... | [{"idx": "Fell_ill_-_huge_gap_in_time_on_resume_-_what_do_I_do?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-3247.jsonl"}, {"idx": "How_is_quiescent_current_related_to_maximum_load_current_in_an_emitter_follower?", "domain": "stack_exchange", "do... |
import { cloneDeep } from 'lodash'
export const getSortedArray = (selectedData: any[]) => {
selectedData.map((item: any, index: number) => {
if (selectedData[index + 1] && item[0] === selectedData[index + 1][0]) {
selectedData[index].push(selectedData[index + 1][1])
}
if (selectedData[index + 2] &... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-896.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-896.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "... |
export * from "./src/Error/BaseError";
export * from "./src/Error/LogicError";
export * from "./src/Error/DiagnosticError";
export * from "./src/Error/NoRootTypeError";
export * from "./src/Error/UnknownNodeError";
export * from "./src/Error/UnknownTypeError";
export * from "./src/Config";
export * from "./src/Utils/... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3989.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3989.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
Check if loop has any categories?
Question: In my loop, I have ten posts with the following categories (slug): group-a, group-a-first and group-b. The loop/query looks like this:
Post (group-a)
Post (group-b)
Post (group-a-first)
What's the best way to check if those posts has a specific category?
I've tried <code><... | [{"idx": "Check_if_loop_has_any_categories?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-3435.jsonl"}, {"idx": "Jenkins:_How_to_configure_Jenkins_behind_Nginx_reverse_proxy_for_JNLP_slaves_to_connect", "domain": "stack_exchange", "domain2": "stac... |
Oracle SQL Query Performance, Function based Indexes
Question: I have been trying to fine tune a SQL Query that takes 1.5 Hrs to process approx 4,000 error records. The run time increases along with the number of rows.
I figured out there is one condition in my SQL that is actually causing the issue
<code>AND (DECODE ... | [{"idx": "Oracle_SQL_Query_Performance,_Function_based_Indexes", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22906.jsonl"}, {"idx": "How_to_make_a_countdown_timer_in_react_native?", "domain": "stack_exchange", "domain2": "stackexchange", "header_f... |
use rustling::*;
use rustling_ontology_values::dimension::*;
use rustling_ontology_values::helpers;
use rustling_ontology_values::dimension::Precision::*;
use rustling_ontology_moment::{Weekday, Grain};
pub fn rules_datetime(b: &mut RuleSetBuilder<Dimension>) -> RustlingResult<()> {
b.rule_2("intersect",
... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13908.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13908.jsonl"}] |
#include <stdio.h>
#include <GL/glew.h>
#include <SDL/SDL.h>
#include "estk.h"
int
main(int argc, char **argv)
{
esGameInit(400, 300);
esShader shad_red;
if (esShaderLoad(&shad_red,
"demores/red_vert.shader", "demores/red_frag.shader")) {
printf("Cannot load shad_reders!\n");
return 1;
}
static const fl... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4575.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4575.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
*
* Unauthorized use, practice, perform, copy, distribution, reproduction,
* or disclosure of this information in whole or in part is prohibited.
* $File: mATVdrv_cust.cpp $
* $Revision: #1 $
* $DateTime: 2010/12/1 22:29:53 $
* $Change: $
* $Id: mATVdrv_cust.cpp#11 $
* $Author: ky.lin $
/**
* @file mATVdr... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4796.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4796.jsonl"}] |
'''
Simple Plugin
=============
Real simple plugin system meant as a replacement when setuptools/pkg_resources
are not available.
'''
import os
import sys
class Plugin(object):
''' a new style class that
betrays all its sub-classes
'''
pass
class Reception(object):
'''
Singleton class ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6802.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6802.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
numbers: list prime factors composed
------------------------------------
Exercise: Suppose -7*x + 5*x + 6 = 0. List the prime factors of (-2)/(6/(-117)) - x.
Ans: 2, 3
Exercise: Suppose 0 = -6*a + a + 5*h - 10, -2*h = 5*a + 38. List the prime factors of ((13587/a)/(-7))/((-3)/(-6)).
Ans: 647
Exercise: Let c be (0 - -2... | [{"idx": "txt360/numbers__list_prime_factors_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/calculus__differentiate_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}] |
arithmetic: div
---------------
What if: What is -87094462 divided by -45409?
Gives: 1918
What if: Calculate 71973900 divided by -23991300.
Gives: -3
What if: What is -9 divided by 12952?
Gives: -9/12952
What if: Divide 7580 by -2.
Gives: -3790
What if: -11 divided by 1
Gives: -11
What if: Calculate -37 divided by -4.
... | [{"idx": "txt360/arithmetic__div_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-8.jsonl"}, {"idx": "txt360/comparison__pair_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-8.jsonl"}] |
Android custom list item in ListView
Question: I tried to make an simple custom ListView listitem to help me understand how this works but it won't work.
When I use the commented line in my MainActivity.java, everything works (it uses the built-in layout).
But when I try my own layout row_layout instead of the simple_... | [{"idx": "Android_custom_list_item_in_ListView", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-641.jsonl"}, {"idx": "Python_Packages?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_excha... |
Is there a pkgsrc command to "freeze" all installed packages?
Question: I am unaware if there is a specific term for what I mean by "freezing". What I am looking for is a command that is the pkgsrc counterpart to:
the <code>pip freeze</code> command for Python repositories
the <code>brew bundle dump</code> command fr... | [{"idx": "Is_there_a_pkgsrc_command_to_\"freeze\"_all_installed_packages?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-24860.jsonl"}, {"idx": "FORCE_SSL_ADMIN_affecting_subdomains", "domain": "stack_exchange", "domain2": "stackexchange", "header_... |
import React from 'react'
import { Upload, Icon } from 'antd'
import { useSelector, useDispatch } from 'react-redux'
import { useTranslation } from 'react-i18next'
import { Store } from '../../interfaces/store'
import { Popup } from '../../components/ui/Popup/Popup'
import { $do } from '../../actions/actions'
import * ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3175.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3175.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
Spark: How do I write individual row to S3 / HDFS as JPG
Question: I have to write data as individual JPG files (~millions) from PySpark to an S3 bucket.
I tried multiple options:
setup: AWS EMR cluster and Jupyter notebook.
Create a boto3 client in 'foreach' method and write to S3 ==> too slow and inefficient as we ... | [{"idx": "Spark:_How_do_I_write_individual_row_to_S3_/_HDFS_as_JPG", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-18701.jsonl"}, {"idx": "In_MapBox_GL_JS,_how_do_I_prevent_pop-up_labels_from_constantly_showing_up_when_I_don't_want_to_see_them?", "d... |
import LazyLoad from 'react-lazyload';
import * as app from '..';
import * as mui from '@material-ui/core';
import * as React from 'react';
export class SeriesImage extends app.BaseComponent<typeof SeriesImageStyles, {className: string, imageAsync: () => Promise<app.IHttpResult<Blob>>, unreadCount?: number, url: strin... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5868.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5868.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
*/
import React, { Fragment, FunctionComponent, useState } from 'react';
import { FormattedMessage } from '@kbn/i18n/react';
import {
EuiComboBox,
EuiDescribedFormGroup,
EuiFlexGroup,
EuiFlexItem,
EuiFormRow,
EuiLink,
EuiPanel,
EuiSelectable,
EuiSelectableOption,
EuiSpacer,
EuiSwitch,
EuiTitle... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1566.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1566.jsonl"}] |
*/
import { LocalEnvironmentManager } from '../../../extension/fabric/environments/LocalEnvironmentManager';
import { TestUtil } from '../../TestUtil';
import { FabricEnvironmentConnection } from 'ibm-blockchain-platform-environment-v1';
import { FabricConnectionFactory } from '../../../extension/fabric/FabricConnecti... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17756.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17756.jsonl"}] |
import logging
import time
import re
import datetime
from ocs_ci.utility import templating
from ocs_ci.ocs import constants, ocp, platform_nodes
from ocs_ci.ocs.utils import oc_get_all_obc_names
from ocs_ci.ocs.node import get_node_objs, wait_for_nodes_status
from ocs_ci.utility.utils import ceph_health_check
... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10965.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10965.jsonl"}] |
import * as mongoose from "mongoose"
import * as assert from "assert"
import * as debt from "../../../../entities/business/debt/model"
import * as common from "../../../../entities/common/model"
import * as security from "../../../../entities/security/identity/model"
export interface Debtor extends mongoose.Document... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19070.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19070.jsonl"}] |
Combinatorics: number of possible plates with exactly two T's
Question: The question in my Textbook goes like this: Suppose that in a certain Jurisdiction, license plates have 4 (uppercase) letters followed by 3 (0-9) digits: whats the number of plates that have exactly two T's and end with 5?
Thanks in advance!
Comme... | [{"idx": "Combinatorics:_number_of_possible_plates_with_exactly_two_T's", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-3470.jsonl"}, {"idx": "How_to_download_user-provided_Scala_version_using_SBT?", "domain": "stack_exchange", "domain2": "stackexch... |
JAXB marshalling for BigDecimal using fractionDigits
Question: So here's my problem. I'm given an XSD to which my generated XML file should comply. Using the <code>org.apache.cxf.cxf-xjc-plugin</code> maven plugin and an external binding file I generate the source code. But when I'm trying marshall my object the gener... | [{"idx": "JAXB_marshalling_for_BigDecimal_using_fractionDigits", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-5523.jsonl"}, {"idx": "Merge_2_dataframes_on_closest_past_date", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": ... |
"""
Since we only use softmax classifier for specified tokens,
we can ignore representations for tokens that do not have a label
Right now, only work for
1. tagger (each token in a sentence has a categorical label)
2. selective tagger (tokens at selected positions have categorical labels)
3. se... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9608.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9608.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
Invalid date constant: Trying to subset data into date range
Question: I am a novice (and I mean NOVICE) SAS user. I am trying to create a new table within a certain date range, but I am confused why it won't work for me.
I have a column doi (date of incident) in YYYY-MM-DD format. I am trying to create a new table ... | [{"idx": "Invalid_date_constant:_Trying_to_subset_data_into_date_range", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-19499.jsonl"}, {"idx": "print_range,_if_number_is_missing", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer... |
```markdown
---
title: 'Tutorial: Integración de Azure Active Directory con Replicon | Microsoft Docs'
description: Aprenda a configurar el inicio de sesión único entre Azure Active Directory y Replicon.
services: active-directory
documentationCenter: na
author: jeevansd
manager: femila
ms.reviewer: joflore
ms.service... | [{"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12611.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12611.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en... |
Why quasi coherent sheaves?
Question: So i was wondering why one considers quasi-coherent sheaves in algebraic geometry. I have read a lot that they are closely linked to the geometric properties of the underlying space. This means that you can infer something about the geometry of a ringed space by looking at at the ... | [{"idx": "Why_quasi_coherent_sheaves?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22983.jsonl"}, {"idx": "C++\\CLI_-_How_to_set_a_member_function_as_a_handler_to_xmlDocument::Schemas::ValidationEventHandler", "domain": "stack_exchange", "domain2... |
Q: (Driver info: chromedriver=2.9 I am trying to run Selenium tests on Debian 7 but without success.
The error is:
(Driver info: chromedriver=2.9.248316,platform=Linux 3.2.0-4-686-pae x86) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 60.55 seconds Build info: version: ... | [{"idx": "https://stackoverflow.com/questions/22558077", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-6157.jsonl"}, {"idx": "https://stackoverflow.com/questions/19323557", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "... |
#pragma once
#include "synthfunctions.h"
class CModulationMatrix
{
public:
CModulationMatrix(void);
~CModulationMatrix(void);
protected:
// --- the matrix of mod-rows with the worst-case size (every source
// modulates every destination
// This is a double-pointer because it is allocated dyn... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19511.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19511.jsonl"}] |
#### File: edinet_data_collector/bee_dataframes/create_dataframes.py
```python
import pandas as pd
import numpy as np
from datetime import timedelta
from dateutil.relativedelta import relativedelta
import bee_data_cleaning as dc
# haig de buscar el device a reemplazar i per les dates a eliminar les haig de posar a 0
... | [{"idx": "eloigabal/edinet_data_collector", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8455.jsonl"}, {"idx": "elnazazmi/hyda", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8455.jsonl"}] |
use pcsc::{Context, Card, Scope, ShareMode, Protocols, MAX_BUFFER_SIZE, MAX_ATR_SIZE};
use regex::Regex;
use log::{error, warn, info, debug};
use log4rs;
use clap::{App, Arg};
use std::io::{self};
use std::{thread, time};
use std::str;
use emvpt::*;
static mut INTERACTIVE : bool = false;
static mut PIN_OPTION : Optio... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13823.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13823.jsonl"}] |
algebra: linear 1d composed
---------------------------
Given: Let h = 27 - 23. Solve -h*i = 14 + 6 for i.
Ans: -5
Given: Suppose -1 = 3*l - 28. Suppose -3*y = -l, 0*d - 5*d - 5*y = -25. Suppose -7*u - 60 = -5*j - d*u, u - 16 = -j. Solve -5*m - j - 1 = 0 for m.
Ans: -3
Given: Let g = -31191 - -31317. Solve 110*h + g + ... | [{"idx": "txt360/algebra__linear_1d_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}, {"idx": "txt360/numbers__is_factor_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}] |
package objects
import (
"testing"
"github.com/stretchr/testify/assert"
"rogchap.com/v8go"
)
func TestException(t *testing.T) {
iso := v8go.NewIsolate()
defer iso.Dispose()
e := NewException()
global := v8go.NewObjectTemplate(iso)
global.Set("Exception", e.ExportFunction(iso))
ctx := v8go.NewContext(iso, ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13328.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13328.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
# + [markdown] id="ggBjJzpB-o29"
# # Mixup, Manifold Mixup and CutMix
#
# - toc: true
# + id="FFBeGQs48nu0"
#hide
# !pip install -Uqq fastbook
import fastbook
from fastbook import *
path = untar_data(URLs.PETS)
pets = DataBlock(blocks = (ImageBlock, CategoryBlock),
item_tfms=Resize(460),
dls = p... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-414.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-414.jsonl"}] |
import {
Box,
Grid,
Paper,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
Zoom,
} from '@material-ui/core';
import useMediaQuery from '@material-ui/core/useMediaQuery';
import { Skeleton } from '@material-ui/lab';
import { useSelector } from 'react-redux';
import { getTokenImage, ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17893.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17893.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
Use JOIN instead of WHERE OR... IN sub query
Question: Is there a better way to write the query below using JOIN?
<code>SELECT
t1.id
FROM
t1
WHERE
(
t1.date1 >= (UTC_TIMESTAMP() + INTERVAL - 20 Hour)
OR t1.date2 >= (UTC_TIMESTAMP() + INTERVAL - 20 Hour)
OR t1.id2 IN (SELECT id FROM t2)
O... | [{"idx": "Use_JOIN_instead_of_WHERE_OR..._IN_sub_query", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-5648.jsonl"}, {"idx": "https://stackoverflow.com/questions/112482", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", ... |
How can i set fixed shaperenderer rotation in libgdx?
Question: I have a triangle like this;
<code>shapeRenderer.begin(ShapeType.Line);
shapeRenderer.setColor(1, 1, 0, 1);
shapeRenderer.polygon(new float[] { -10, 0, 10, 0, 0, 200 });
shapeRenderer.rotate(0, 0, 1, 1);
shapeRenderer.end();
</code>
and I rotate 1 degree ... | [{"idx": "How_can_i_set_fixed_shaperenderer_rotation_in_libgdx?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20643.jsonl"}, {"idx": "\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f_\u0421hrome_\u0432\u044b\u043f\u043e\u043b\u043d\u04... |
How to use data from db i get with php in javascript?
Question: I have stored links to the images in my database, links being to my hard drive and not http kind of links. I managed to get all that data using php and i want to show all the photos that are linked in my JavaScript carousel, but I have no clue how to use... | [{"idx": "How_to_use_data_from_db_i_get_with_php_in_javascript?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-18189.jsonl"}, {"idx": "List_all_Names_and_Values_of_an_Object", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer":... |
msgstr "Lisens"
#: src/amo/components/AddonMoreInfo.js:81
msgid "Privacy Policy"
msgstr "Personvernbestemmelse"
#: src/amo/components/AddonMoreInfo.js:87
msgid "Read the privacy policy for this add-on"
msgstr "Les personvernbestemmelsen for denne utvidelsen"
#: src/amo/components/AddonReview.js:104
msgid "Write a re... | [{"idx": "7035318", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16710.jsonl"}, {"idx": "814403", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16710.jsonl"}, {"idx": "5545160", "domain": "software", "domain2": "", "header_foot... |
polynomials: expand
-------------------
Ask: Expand (-13 + 31 - 14)*((3 + 1 - 2)*(-5 - 4 + 6) + 2 - 4 + 1)*(4*o - 2*o - 4*o + 3 - 2*o - 3 + (14 - 14 + 3*o)*(2 + 1 - 1)).
Yields: -56*o
Ask: Expand (-3*r + 3*r - 2*r**3)*(-13 + 5 - 3).
Yields: 22*r**3
Ask: Expand -r**4 + 2*r - 2*r + (0*r**3 + 2*r**3 - r**3)*(7*r - 5*r + 7... | [{"idx": "txt360/polynomials__expand_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-5.jsonl"}, {"idx": "txt360/probability__swr_p_sequence_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-5.jsonl"}] |
How to make a Discord.py ping cmd
Question: I tried lots of other peoples solutions and they didn't work.
So, how do I get a ping command that shows the ping in MS?
This is my code and I get no errors whatsoever, tough it just doesn't reply to my CMD.
<code>import os
from keep_alive import keep_alive
from discord.ext ... | [{"idx": "How_to_make_a_Discord.py_ping_cmd", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-18021.jsonl"}, {"idx": "\u0420\u0430\u0431\u043e\u0442\u0430_\u0441_\u043f\u0430\u043f\u043a\u0430\u043c\u0438_\u0447\u0435\u0440\u0435\u0437_\u043a\u043e\u0... |
Dealing with past-EOL release questions
Question:
Possible Duplicate:
Should we allow questions that are about releases which are considered End of Life?
How should we handle new questions regarding past-End-Of-Life releases of ubuntu?
Discussion is welcome!
Comment: Wouldn't a better close reason be "too localized... | [{"idx": "Dealing_with_past-EOL_release_questions", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-15159.jsonl"}, {"idx": "Winservice_C#_and_Quartz.net_v3.7_-_Error_\"ThreadPool_type_'Quartz.Simpl.DefaultThreadPool'_props_could_not_be_configured\"", ... |
Solving a PDE with Boundary and Initial conditions with separation of variables?
Question: I have this problem:
I know how to solve this problems with separation of variables, but I'm in trouble with this specific equation because of the initials conditions.
I'm expecting to have something like that:
$$X(x)=a\cos(ax)... | [{"idx": "Solving_a_PDE_with_Boundary_and_Initial_conditions_with_separation_of_variables?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4003.jsonl"}, {"idx": "Sum_similar_keys_in_an_array_of_objects_In_javascript", "domain": "stack_exchange", "do... |
# # Network Training
# Having implemented and tested all the components of the final networks in steps 1-3, we are now ready to train the network on a large dataset (ImageNet).
# +
import os
import shutil
import gc
import datetime
import pandas as pd
import numpy as np
from copy import deepcopy
from tqdm import tqdm... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10453.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10453.jsonl"}] |
Files are not send through Ajax request, get not "filenames"in the request and gets empty request on the server side
Question: I'm trying to upload files through Ajax call and jQuery. Each <code>input[type="file"]</code> is handled dynamically as you will see on the code below and are created on the <code>change</code... | [{"idx": "Files_are_not_send_through_Ajax_request,_get_not_\"filenames\"in_the_request_and_gets_empty_request_on_the_server_side", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-18029.jsonl"}, {"idx": "Authorize_POST_requests_from_one_app_to_other", ... |
#### File: genome-grist/genome_grist/__main__.py
```python
"Enable python -m genome_grist.click"
import sys
import os
import subprocess
import click
def get_snakefile_path(name):
thisdir = os.path.dirname(__file__)
snakefile = os.path.join(thisdir, "conf", name)
return snakefile
def get_package_configf... | [{"idx": "marisalim/genome-grist", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8676.jsonl"}, {"idx": "marieschade/tf2-object-detection-api-tutorial", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8676.jsonl"}] |
import React from 'react';
import { Text, Icon, CssStyles, IconButton, Column, Row } from '@fxtrot/ui';
import { TranslateIcon, TrashIcon } from '@heroicons/react/outline';
import { useLocale } from '../../translations';
import { useLanguages } from '../atoms';
type Props = {
item: MemoryItem;
onSelect: (item: Mem... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-928.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-928.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "... |
var Slideshow = (function($, window, document, undefined) {
// Default configurations, can be overwritten when the object is created
var defaultConfig = {};
// Constructor
function Slideshow(obj, config, app) {
// Get reference to main Project object
this.app = app;
// Overwri... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14885.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14885.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
Access sprite node by its name
Question: I am currently building an iOS game using Objective-C in SpriteKit.
Each asteroid gets an identifier when they are spawned, using this code:
<code>[self.asteroid setName:[NSString stringWithFormat:@"asteroid-%i", self.asteroidCounter]];
</code>
Now, I want to be able to remove ... | [{"idx": "Access_sprite_node_by_its_name", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-23649.jsonl"}, {"idx": "how_to_work_with_pop_ups_window_in_android_webview", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang"... |
Q: Would anyone care for some processed meat-like substance with a gelatinous glaze? Something sort of magic happened a short time ago, sometimes a graph is worth a thousand flags:
That's right, around March 28, the spam protection layer blocked about 20,000 spam attempts, mostly in the form of suggested edits, while... | [{"idx": "https://meta.stackexchange.com/questions/228043", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-10934.jsonl"}, {"idx": "https://salesforce.stackexchange.com/questions/260837", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en"... |
numbers: gcd
------------
Request: Calculate the highest common factor of 48 and 142.
Workthrough: 2
Request: What is the highest common divisor of 156 and 1365?
Workthrough: 39
Request: What is the greatest common divisor of 188156342 and 176?
Workthrough: 22
Request: Calculate the highest common factor of 191950 and ... | [{"idx": "txt360/numbers__gcd_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/arithmetic__nearest_integer_root_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}] |
What wrong with this example of Active Object pattern in C++?
Question: <code>#include <iostream>
#include <vector>
#include <thread>
#include <mutex>
#include <functional>
#include <any>
#include <condition_variable>
std::vector<std::function<void(std::any)>> functions;
enum FunctionCodes {
EXIT = -1, NOTIFY = ... | [{"idx": "What_wrong_with_this_example_of_Active_Object_pattern_in_C++?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-3055.jsonl"}, {"idx": "Spring,_Mustache_Starter_-_translations", "domain": "stack_exchange", "domain2": "stackexchange", "header_... |
import { Injectable } from '@nestjs/common';
import { ExpressContext, UserInputError } from 'apollo-server-express';
import { User } from 'src/users/dto/user.dto';
import { UsersService } from 'src/users/users.service';
import { AuthLoginInput } from './inputs/login.input';
// import bcryptjs from 'bcryptjs';
import { ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5292.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5292.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
Q: Adding a scale using SDK GXP OpenGeo Suite Followed the tutorial using the OpenGeo suite SDK, and looking at adding a scale to my maps however the tutorial doesn't cover adding widgets only plugins. So I am not sure about how I would add [IDX] wherever I place it fr example the tools section I seem to just get a wh... | [{"idx": "https://gis.stackexchange.com/questions/68808", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-28746.jsonl"}, {"idx": "https://magento.stackexchange.com/questions/355327", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "so... |
#### File: src/python/dataexplorerutil.py
```python
import os
import sys
import argparse
import json
from datetime import timedelta
from azure.kusto.data import KustoClient, KustoConnectionStringBuilder
from azure.mgmt.kusto.models import ReadWriteDatabase
from azure.mgmt.kusto import KustoManagementClient
from azure.... | [{"idx": "sriramndk/azuresamples-sriram", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8890.jsonl"}, {"idx": "sramirez/traffic", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8890.jsonl"}] |
Monopoly game cards
Question: This functionality is for a Monopoly board game. In particular, when the player lands on Chance or Community Chest, a random card is drawn with a particular set of instruction, a bonus could be paid out, or perhaps the player is fined. The two cards are different in that one is a set of ... | [{"idx": "Monopoly_game_cards", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-24161.jsonl"}, {"idx": "Interpretation_of_the_Random_Schr\u00f6dinger_Equation", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en",... |
arithmetic: simplify surd
-------------------------
Task: Simplify (-1*sqrt(100)*-1)/((sqrt(330)/(sqrt(11)*2 - sqrt(11)))/sqrt(6)).
A.: 2*sqrt(5)
Task: Simplify (-5*4*sqrt(171)*-1)/(sqrt(900)*1 - -3*sqrt(225)).
A.: 4*sqrt(19)/5
Task: Simplify -4*(sqrt(475)*2)**2 + (-2*sqrt(475))**2 + -5.
A.: -5705
Task: Simplify 3 + 4 ... | [{"idx": "txt360/arithmetic__simplify_surd_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/algebra__linear_1d_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}] |
#### File: examples/banana/main.py
```python
import autograd.numpy as np
import pickle as pk
import os
from ubvi.components import Gaussian
from ubvi.optimization import adam as ubvi_adam
from ubvi.inference import UBVI, BBVI
from ubvi.autograd import logsumexp
def logp(X):
b = 0.1
x = X[:,0]
y = X[:,1]
... | [{"idx": "trevorcampbell/ubvi", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8939.jsonl"}, {"idx": "trejsu/shaper", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8939.jsonl"}] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.