text stringlengths 4.4k 422k | metadata stringlengths 39 6.04k |
|---|---|
Revision History:
7-20-00 : created, jsenior
--*/
#include "pch.h"
//implements the following miniport functions:
// non paged
//UhciInsertQh
//UhciUnlinkQh
//UhciMapAsyncTransferToTds
//UhciQueueTransfer
//UhciControlTransfer
//UhciBulkOrInterruptTransfer
//UhciSetAsyncEndpointState
//Uhci... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4404.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4404.jsonl"}] |
How can I set dynamically prepared query statement in Java?
Question: I have a jtable. I run data from mysql database. I use a query with prepared statement:
<code>"select * from customer where city=? and region=? and price>?"
pst.setString(1,"rome")
pst.setstring(2,"italy")
pst.setdouble(3,"1500")
</code>
my probl... | [{"idx": "How_can_I_set_dynamically_prepared_query_statement_in_Java?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-8143.jsonl"}, {"idx": "How_to_get_out_of_Emergency_mode_in_Ubuntu_20.04", "domain": "stack_exchange", "domain2": "stackexchange", "... |
Variable does not exist: MetadataServiceExamples
Question: I am executing this code and its giving me error. I am wondering where I am going wrong
Variable does not exist: MetadataServiceExamples
<code>MetadataService.MetadataPort service = new MetadataService.MetadataPort();
service.SessionHeader = new MetadataServ... | [{"idx": "Variable_does_not_exist:_MetadataServiceExamples", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-16641.jsonl"}, {"idx": "Connecting_to_Azure_SQL_with_AD_Password_Authentication_from_ASP.NET_app_fails_with_\"Need_user_interface_to_continue\... |
apache airflow on virtualenv: ERROR - Failed to load fernet while encrypting value
Question: I'm trying to install Apache Airflow on virtualenv.
Firstly I created and activated a new python virtual env, then i installed apache-airflow via pip.
<code>$ virtualenv $HOME/.p2env -p /usr/bin/python
Running virtualenv with ... | [{"idx": "apache_airflow_on_virtualenv:_ERROR_-_Failed_to_load_fernet_while_encrypting_value", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4669.jsonl"}, {"idx": "How_to_use_a_SwiftUI_view_in_place_of_table_view_cell", "domain": "stack_exchange", "... |
include(CMakeParseArguments)
# Function to wrap a given string into multiple lines at the given column position.
# Parameters:
# VARIABLE - The name of the CMake variable holding the string.
# AT_COLUMN - The column position at which string will be wrapped.
function(WRAP_STRING)
set(oneValueArgs VARIABLE ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10775.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10775.jsonl"}] |
Q: I have installed Canon lbp2900 driver using this install.sh file This file( [IDX] the terminal, I see the line say:
This will downgrade your dpkg
Then the update manager turns to an error:
"Your apt was corrupt"
So I tried to restart the computer and the system caused many failures
Then it boot into emergency mode,... | [{"idx": "https://unix.stackexchange.com/questions/716805", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-11118.jsonl"}, {"idx": "How_to_make_Square_to_send_transaction_reports_automatically?", "domain": "stack_exchange", "domain2": "stackexchange", "header_foot... |
### Here is some exercises for addition, division, subtraction, multiplication math examples:
670 + 855 =
1525
###
-938 / -387 =
2.42
###
Sofia paid a total of $681.0.=\n####
Sofia went to the department store to buy a pair of shoes and 2 shirts. A shirt costs $46 while a pair of shoes is $362. If she decides to b... | [{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}] |
# USAGE:
# bash download-ENSEMBL-resources.sh -s {hsa|mmu} -o {}
#
###############################################################################
###############################################################################
# parse command line arguments
#########################################################... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17377.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17377.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
Q: Please find a word that it is not grammatically correct to begin a sentence or question? Multiple questions herein ask "Is it grammatically correct to begin a sentence or question with X?"
So, I'm definitively asking, are there any words for which it is absolutely not grammatically correct to begin a sentence with?
... | [{"idx": "https://english.stackexchange.com/questions/222460", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-28732.jsonl"}, {"idx": "https://magento.stackexchange.com/questions/363591", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en"... |
Disable User Interaction with a ViewController temporarily
Question: I use a Main ViewController and a Navigation ViewController. If the user uses the Navigation, the Navigation ViewController takes 80% of the Screen and the Main ViewController the other 20%. In this Case the user shouldn't interact with the Main View... | [{"idx": "Disable_User_Interaction_with_a_ViewController_temporarily", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-5781.jsonl"}, {"idx": "Need_to_integrate_mxGraph_with_Angular_6", "domain": "stack_exchange", "domain2": "stackexchange", "header_fo... |
import json
import os
import os.path
import sys
from stat import S_ISREG
# Base class for representing an on-disk entity (file or directory).
#
class Entity(object):
""" Base class for File and Directory nodes. """
def __init__(self, parent, name, size=0):
if name is None:
raise ValueE... | [{"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-20428.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-20428.jsonl"}] |
use crate::arch::x86_64::kernel::irq;
use crate::arch::x86_64::kernel::processor;
use crate::arch::x86_64::kernel::BOOT_INFO;
use crate::environment;
use core::hint::spin_loop;
use x86::io::*;
const CMOS_COMMAND_PORT: u16 = 0x70;
const CMOS_DATA_PORT: u16 = 0x71;
const CMOS_DISABLE_NMI: u8 = 1 << 7;
const CMOS_SECON... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14097.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14097.jsonl"}] |
Button moves when resizing page
Question: My submit button moves when I resize the page. This behavior is bad (obviously). What is the correct way to make it so that my button is left aligned to my textarea?
<code>#chatboxTranscript {
width: 31.25em;
/* padding: 0em; */
background-color: #36393f;
color: #fff;... | [{"idx": "Button_moves_when_resizing_page", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-19417.jsonl"}, {"idx": "Unity_Framework_IoC_with_default_constructor", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en... |
#! /bin/bash
if [ "$1" = "qemu" ]
then
QEMU_PATH=`pwd`/../../../qemo/build/
KERNEL_PATH=${QEMU_PATH}linux-4.17.2/
make ARCH=i386 -C $KERNEL_PATH M=`pwd` $2
if [ $? == 0 ]
then
if [ "$2" != "clean" -a "$2" != "debug" ]
then
cp *.ko $QEMU_PATH
$QEMU_PATH/../run... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16949.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16949.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
### Description:
Content analysis Set-up, clean-up TO DO- Import data- Write cleaning function, apply to every df- Add circle.png as a mask for word cloud + use pyldavis layout&size to plot the topics together- Make word cloud topic model for Chinese- Prettify the frequency plot for most used tokens- Make a pretty fr... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6374.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6374.jsonl"}] |
arithmetic: add or sub in base
------------------------------
Issue: In base 13, what is -ac5 + -42?
Workthrough: -b37
Issue: In base 15, what is 4 + 1e177e?
Workthrough: 1e1783
Issue: In base 13, what is -2101 + -165?
Workthrough: -2266
Issue: In base 7, what is -21 + 25122?
Workthrough: 25101
Issue: In base 12, what ... | [{"idx": "txt360/arithmetic__add_or_sub_in_base_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}, {"idx": "txt360/arithmetic__mul_div_multiple_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}] |
What are the restrictions for the column classes in data.table?
Question: UPDATE This problem is not relevant anymore for <code>data.table</code> versions 1.8.0 and higher. From the NEWS file:
character columns are now allowed in keys and are preferred to
factor. data.table() and setkey() no longer coerce c... | [{"idx": "What_are_the_restrictions_for_the_column_classes_in_data.table?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-21234.jsonl"}, {"idx": "Origin_of_the_verb_form_\"(\u044f)_\u0435\u043c\"", "domain": "stack_exchange", "domain2": "stackexchan... |
How can the submit action on a form() be automatically fired when all input elements within this form are completed/filled?
Question: I want the submit action on a form() to be automatically fired when all input elements within this form are completed/filled. How to do it using ajax?
Comment: are you sure about this?... | [{"idx": "How_can_the_submit_action_on_a_form()_be_automatically_fired_when_all_input_elements_within_this_form_are_completed/filled?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-13183.jsonl"}, {"idx": "How_to_use_XmlAttributeOverrides_with_WCF",... |
Will I fit or need an extension?(first time flyer)
Question: I am 5'5" tall and weigh 250 lbs. I have never flown before but am flying to visit my son who is in the Navy serving in Japan this month. I will fly American AirlinesExpress to Chicago and then ANA Premium Economy to Japan. I am sick worrying about it.
Do ... | [{"idx": "Will_I_fit_or_need_an_extension?(first_time_flyer)", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4692.jsonl"}, {"idx": "How_to_load_python_files_from_../", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lan... |
Plotting the count of occurrences per date
Question: I'm very new to pandas data frame that has a date time column, and a column that contains a string of text (headlines). Each headline will be a new row.
I need to plot the date on the x-axis, and the y-axis needs to contain how many times a headline occurs on each d... | [{"idx": "Plotting_the_count_of_occurrences_per_date", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-18732.jsonl"}, {"idx": "An_interesting_geometry_problem", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en",... |
### Study this set of subtraction, addition, multiplication, division math examples:
1644 * 1049 =
1724556
###
1811 + 1269 =
3080
###
165 + 1629 =
1794
###
188 + 1350 =
1538
###
2064 + 400 =
2464
###
908 * 1639 =
1488212
###
1498 * 342 =
512316
###
1168 - 586 =
582
###
711 / 811 =
0.88
###
297 * 169 =
5019... | [{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}] |
Unfolding a pentacube into a net
Question: I am trying to unfold a J2 pentacube into a flat net (also non-edge intersecting) such that the net fits in the smallest possible rectangular area.
So far I have managed to unfold it to a 6 by 7 grid:
Note: To aid visual interpretation the colours in this net indicate which... | [{"idx": "Unfolding_a_pentacube_into_a_net", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4003.jsonl"}, {"idx": "Fourier_series_for_function", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "sta... |
How to Give full width and height to a input field
Question: I am working on a HTML table inside which some of my <code>cells</code> are of type <code>input field</code>, so my issue is that input field is not taking full width and height of cell which is causing problem for me as my table has many rows and i have to ... | [{"idx": "How_to_Give_full_width_and_height_to_a_input_field", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-19160.jsonl"}, {"idx": "Why_do_we_need_an_even_number_between_$x$_and_$y$_in_Pythagorean_triple_where_$x^2+y^2=z^2$_and_$x$,_$y$_and_$z$_are... |
Client side geocoding with Javascript on Rails app
Question: I am trying to client side geocode due to this issue I am having (over query limit on Heroku): [IDX] lat/long display in my url however I cannot get my search results to display.
I think the issue is in the index.html.erb around line 10: <% if params[:sear... | [{"idx": "Client_side_geocoding_with_Javascript_on_Rails_app", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-12866.jsonl"}, {"idx": "Addition_reaction(Haloalkane)", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang":... |
@section('htmlheader_title')
@endsection
@endsection
@endsection
@section('breadcrumb')
<ol class="breadcrumb">
<li><a href="{{ url("admin") }}"><i class="fa fa-home"></i> {{ __("message.dashboard") }}</a></li>
<li class="active"></li>
</ol>
@endsection
@section('main-content')
<div class="box">
<div c... | [{"idx": "4299548", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-39.jsonl"}, {"idx": "13382085", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-39.jsonl"}] |
### Here are set of multiplication, division, subtraction, addition math examples:
298 + 2080 =
2378
###
28 / 1291 =
0.02
###
492 + 464 =
956
###
165 / 1442 =
0.11
###
1825 * 1055 =
1925375
###
1809 - 54 =
1755
###
1174 / 1138 =
1.03
###
709 / 1546 =
0.46
###
2066 * 2311 =
4774526
###
90 * 347 =
31230
###
... | [{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}] |
import log4js from './index';
import { Context } from 'koa';
import { isDev, isDocker, notGa, isGa } from '../../common/utils/env';
import { getNetIp } from '../../common/utils/getip';
const errorLog = log4js.getLogger('errorLog'); //此处使用category的值
const resLog = log4js.getLogger('responseLog'); //此处使用category的值
const... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5728.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5728.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
Append form field with model inside for loop (ASP.NET Razor Views)
Question: This is my first question here at stackoverflow. Hehehe.
I have an edit page which I need to display all the existing fields and I have an add button which I can add a new field.
Here is the source code for edit in which where the displaying ... | [{"idx": "Append_form_field_with_model_inside_for_loop_(ASP.NET_Razor_Views)", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-12067.jsonl"}, {"idx": "access_trouble_when_controlling_remote_mac_with_AppleScript", "domain": "stack_exchange", "domain2":... |
How do I add an image taken by camera or galery to a button?
Question: I'm using an <code>UIImagePickerController</code> to choose a source to take a picture from. This picture should be set to an <code>UIButton</code>.
I know you can add an <code>UIImage</code> to an <code>UIButton</code> by string, like
<code>someB... | [{"idx": "How_do_I_add_an_image_taken_by_camera_or_galery_to_a_button?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20921.jsonl"}, {"idx": "Problems_with_binding_columns_from_two_data_frames_using_a_for_loop_in_R", "domain": "stack_exchange", "do... |
import stringify from 'json-stringify-pretty-compact';
import * as React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators, Dispatch} from 'redux';
import * as themes from 'vega-themes';
import * as EditorActions from '../../actions/editor';
import './config-editor.css';
class ConfigEditorH... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3402.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3402.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
# coding: utf-8
import ctypes
from OpenGLES.GLES.headers.GLConstants import GLboolean
from OpenGLES.GLES.gles1 import GL_TRUE, GL_FALSE
import OpenGLES.GLKit.light
import OpenGLES.GLKit.material
import OpenGLES.GLKit.texture
# import glkmath as GLKMath
from OpenGLES.GLKit.glkmath.matrix3 import GLKMatrix3
from OpenGL... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15336.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15336.jsonl"}] |
Silver recovery from sodium hydroxide solution
Question: I have washed graphic film with sodium hydroxide solution removing the silver emulsion. Is there any way to now recover the silver from solution?
Comment: Insoluble silver compounds are not soluble in $\ce{NaOH}$ solutions. If they react, they are transformed in... | [{"idx": "Silver_recovery_from_sodium_hydroxide_solution", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-11053.jsonl"}, {"idx": "https://unix.stackexchange.com/questions/328848", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang"... |
### Please examine the set of addition, multiplication, division, subtraction math exercises:
774 * 1860 =
1439640
###
2097 + -33 =
2064
###
The age difference between George and Asaf's age is half the total number of pencils George has. The sum of their ages is 132, and George is 40 years old. If Asaf has 60 more... | [{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}] |
# Twisted Imports
# Package Imports
from octopus.util import now
from octopus.machine import Machine, Stream, Property
from octopus.protocol.basic import QueuedLineReceiver
#
# Serial Settings for JulaboF25
#
# Baud rate 4800 bps
# Data bits 7 Parity Even
# Stop bits 1 Flow control None
#
# ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6879.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6879.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
import { DispatchedEvent } from "@/core/@typings/EventTypes";
import CommandEvent from "@/core/events/Command/CommandEvent";
import DirectionEvent from "@/core/events/Command/DirectionEvent";
import EndPointChangeEvent from "@/core/events/Command/EndPointChangeEvent";
import PlayerNameChangeEvent from "@/core/events/Co... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18759.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18759.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
### Here is some exercises for division, multiplication, subtraction, addition math problems:
49 - 2100 =
-2051
###
1523 * 1719 =
2618037
###
311 + 1300 =
1611
###
-111 / 874 =
-0.13
###
523 * 2258 =
1180934
###
774 * 1779 =
1376946
###
950 * 1880 =
1786000
###
-54 + 1454 =
1400
###
1659 * 1861 =
3087399
##... | [{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}] |
---
title: Kommentarer för utvecklare för anpassade principer – Azure Active Directory B2C | Microsoft Docs
description: Information för utvecklare på Konfigurera och underhålla Azure AD B2C med anpassade principer.
author: mmacy
manager: celestedg
ms.service: active-directory
ms.workload: identity
ms.topic: conceptua... | [{"idx": "796192", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2157.jsonl"}, {"idx": "791150", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2157.jsonl"}] |
numbers: div remainder
----------------------
Example: Calculate the remainder when 14531180 is divided by 25184.
Thus: 12
Example: Calculate the remainder when 2474 is divided by 747.
Thus: 233
Example: Calculate the remainder when 202 is divided by 32.
Thus: 10
Example: Calculate the remainder when 1755 is divided by... | [{"idx": "txt360/numbers__div_remainder_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}, {"idx": "txt360/numbers__list_prime_factors_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}] |
#
# Test SET
#
SET (ZERO_VAR 0)
SET (ZERO_VAR2 0)
IF(ZERO_VAR)
ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED)
ELSE(ZERO_VAR)
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED)
ENDIF(ZERO_VAR)
SET(ONE_VAR 1)
SET(ONE_VAR2 1)
SET(STRING_VAR "CMake is great" CACHE STRING "test a cache variable")
#
# Test VARIABLE_REQUIRES
#
VARIABLE_RE... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10767.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10767.jsonl"}] |
#pragma once
#include "universal_sysex.h"
namespace midi2
{
enum
{
CI_VERSION_IMPL = 0x01,
CI_CHANNEL_ALL = 0x7F,
};
/*
MIDI-CI Unique Identifier: identifies sources & destinations.
A little-endian, unsigned value.
Usually either randomly-generated or set to broadcast.
*/
struct MUID : public sy... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16028.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16028.jsonl"}] |
### Think deeply about this set of subtraction, multiplication, addition, division math guide:
430 + 229 =
659
###
1837 * 399 =
732963
###
894 / 852 =
1.05
###
1371 + -10 =
1361
###
1570 - 2114 =
-544
###
92 - 299 =
-207
###
1870 * 869 =
1625030
###
1605 + 1261 =
2866
###
790 - 1160 =
-370
###
-50 * 1812 = ... | [{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}] |
use crate::{ast, Peek};
use crate::{IntoTokens, Parse, ParseError, ParseErrorKind, Parser, Resolve, Spanned, Storage};
use runestick::{Source, Span};
use std::borrow::Cow;
/// A literal object identifier.
#[derive(Debug, Clone)]
pub enum LitObjectIdent {
/// An anonymous object.
Anonymous(ast::Hash),
/// A... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14486.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14486.jsonl"}] |
Q: How does Nagios keep sending alerts in low RAM situations? Let's say I'm trying to monitor a box with Nagios, but there's a runaway process that's stealing nearly 100% of the computer's CPU and RAM. How does Nagios continue to alert me about the status of the box, in this case? What's to stop the runaway process fro... | [{"idx": "https://serverfault.com/questions/334351", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-10243.jsonl"}, {"idx": "https://physics.stackexchange.com/questions/236055", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source"... |
comparison: closest composed
----------------------------
Q: Let w = -26987 - -26814. Let s = 384/665 - -3/133. What is the nearest to w in -0.5, s, -3/4?
Output: -3/4
Q: Let i = -16 - -21. Suppose i*z + 4 = 6*z. Let m(u) = -u**3 - 4*u**2 + 7*u + 7. Let o be m(-5). Which is the nearest to z? (a) -5 (b) 0 (c) o
Outpu... | [{"idx": "txt360/comparison__closest_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/polynomials__evaluate_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}] |
Solving this non-homogenous recurrence relation
Question: I'm tasked with solving the following recurrence relation,
$$f(n) = n^2 + f(n-1)$$
for $f(1) = 1$. In my class I have only learned how to solve homogenous relations with the characteristic equation method and so have no intuition for non-homogenous relations. C... | [{"idx": "Solving_this_non-homogenous_recurrence_relation", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-3385.jsonl"}, {"idx": "In_what_type_of_trajectory_do_the_Magellanic_clouds_move_through_our_galaxy?", "domain": "stack_exchange", "domain2": "s... |
Describing Geodatabase Content With Python and XML Metadata
Question: I am trying to create a descriptive database catalog by implementing the great solution described here. This user's solution creates a csv file that identifies a geodatabase's content, including elements from its metadata. In the <code>GetMetadataIt... | [{"idx": "Describing_Geodatabase_Content_With_Python_and_XML_Metadata", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-15390.jsonl"}, {"idx": "String_compare_function_equals_not_giving_correct_result", "domain": "stack_exchange", "domain2": "stackexc... |
Meaning of the response variables in Traffic Flow
Question: so i am using the here.developer api in order to get data on traffic for a given area. I am using proximity to get the radius. I have the api working with python using requests and i have it printing out the data. I am confused though on what the data means. ... | [{"idx": "Meaning_of_the_response_variables_in_Traffic_Flow", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22234.jsonl"}, {"idx": "Densities_of_planes", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "sou... |
#include "lx.h"
void pages_refresh() {
wclear(layout->tree);
int row = 1;
for (int i = 0; i < r->mapsize; i++) {
int page = r->mapidx + i;
if (page < layout->scroll_page) {
continue;
}
if (page == layout->active_page) {
wattron(layout->tree, A_BOLD);
}
if (exe->lx.signature == OSF_FLAT_SIGNATUR... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4363.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4363.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
[IDX] <<< "phpmyadmin phpmyadmin/dbconfig-install boolean true"
debconf-set-selections <<< "phpmyadmin phpmyadmin/mysql/app-pass password $<PASSWORD>"
debconf-set-selections <<< "phpmyadmin phpmyadmin/app-password-confirm password $<PASSWORD>"
debconf-set-selections <<< "phpmyadmin phpmya... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17507.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17507.jsonl"}] |
from bot_config import API_BASE_URL, validate_env_variables
from gh_oauth_token import get_token, store_token
from webhook_handlers import check_suite_request_handler, check_suite_override_handler
import json
import logging
import requests
import sys
import datetime
import traceback
import markdown2
from objectify_j... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15749.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15749.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
Q: Is there a way to improve the render quality of ESRI basemaps when exporting a map to PDF or JPG? I've had this problem with ESRI base maps before but not this bad. The problem is that when I use an ESRI basemap as my backdrop, it looks fine in my MXD but when I export the map to PDF, JPG, or whatever format, the qu... | [{"idx": "https://gis.stackexchange.com/questions/57203", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-28006.jsonl"}, {"idx": "https://gaming.stackexchange.com/questions/122955", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "sou... |
use super::keyframe_core::*;
use super::element_wrapper::*;
use super::stream_animation_core::*;
use super::pending_storage_change::*;
use crate::traits::*;
use futures::prelude::*;
use ::desync::*;
use std::sync::*;
use std::time::{Duration};
impl StreamAnimationCore {
///
/// Discovers all of the elements ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13415.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13415.jsonl"}] |
```typescript
import { of } from 'rxjs';
import { Clase } from '../../shared/model/clase.model';
import { ClaseService } from '../../shared/service/clase.service';
import { ClaseListarComponent } from './clase-listar.component';
describe('ClaseListarComponent', () => {
let component: ClaseListarComponent;
le... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13252.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13252.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
include ../Makefile.inc
#APIVERS=1
APIVERS=$(shell cat api/version.txt)
DIRS = manpages
CSS = RunDeck-Guide.css
DIST = dist
.PHONY: man html clean
all : dist man html figures
dist :
mkdir -p $(DIST)
man :
$(MAKE) VERSION=$(VERSION) -C manpages
$(DIST)/html : dist
mkdir -p $(DIST)/html
$(DIST)/html/api : $(DI... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4294.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4294.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
Problem in getting list of products from firebase in Angular 16
Question: I'm trying to display the list of products in a tabular format. Although I am getting table headings but I am unable to retrieve data from the firebase.
admin-products.component.html
<code><p>
<a routerLink="/admin/products/new" class="btn b... | [{"idx": "Problem_in_getting_list_of_products_from_firebase_in_Angular_16", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4949.jsonl"}, {"idx": "Cannot_mount_sda1:_\"The_device_'/dev/sda1'_doesn't_seem_to_have_a_valid_NTFS.\"", "domain": "stack_exch... |
Why {...rest} can be used in attributes
Question: I just want to know why the following original codes can be shortened using <code>{...rest}</code> in arguments and spread in attributes as you can see in the simplified code.
In the simplified code it uses <code>{...rest}</code> spread to make <code>value={value} onCh... | [{"idx": "Why_{...rest}_can_be_used_in_attributes", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-26850.jsonl"}, {"idx": "Why_is_object_query_parameter_null?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en"... |
Resample with monthly frequency, label left (start of the month)
Question: Considering an hourly time series like:
<code>import numpy
import pandas
data = numpy.random.random(365 * 24)
index = pandas.date_range('2018-01-01', '2019-01-01', freq='H', closed='left')
series = pandas.Series(data, index=index)
</code>
Whic... | [{"idx": "Resample_with_monthly_frequency,_label_left_(start_of_the_month)", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-25114.jsonl"}, {"idx": "android.content.res.Resources$NotFoundException_File_res/drawable/$my_app_img__0.xml_from_color_state_... |
numbers: place value
--------------------
Ask: What is the hundreds digit of 6437?
Sol: 4
Ask: What is the tens digit of 91076?
Sol: 7
Ask: What is the thousands digit of 129530593?
Sol: 0
Ask: What is the millions digit of 7584198?
Sol: 7
Ask: What is the ten thousands digit of 750871299?
Sol: 7
Ask: What is the units... | [{"idx": "txt360/numbers__place_value_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-13.jsonl"}, {"idx": "txt360/algebra__linear_1d_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-13.jsonl"}] |
At wit's end with NullPointerException
Question: So, my assignment is to write a program that accepts student names and grades, and utilizes multiple arrays. I've rewritten the section of code throwing the runtime error several times in different ways, but with the same NullPointerException error. I have run tests to ... | [{"idx": "At_wit's_end_with_NullPointerException", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-16954.jsonl"}, {"idx": "Aggregare_function_in_ON_clause_in_JOIN", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "... |
### Here's set of addition, multiplication, division, subtraction math guide:
-253 / 587 =
-0.43
###
603 - 780 =
-177
###
1239 - 1947 =
-708
###
-205 / 652 =
-0.31
###
-69 + 1772 =
1703
###
517 * 409 =
211453
###
1337 * -47 =
-62839
###
399 * 677 =
270123
###
488 + 931 =
1419
###
1852 + 200 =
2052
###
-839... | [{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}] |
Git rebase upstream/master - Please, commit your changes or stash them before you can switch branches
Question: I'm working on a local copy of forked repo.
Before I push the changes I want to make sure that my copy is up to date with upstream/master. This is what I did:
<code>$ git fetch upstream
$ git add /webroot/w... | [{"idx": "Git_rebase_upstream/master_-_Please,_commit_your_changes_or_stash_them_before_you_can_switch_branches", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4800.jsonl"}, {"idx": "STDOUT:_order_different_in_bash_shell_vs._order_when_read_using_QI... |
Exception handling and rollbacks in PL/SQL
Question: Currently I have one table FIRST_ENTRY_TABLE with PLAN_A and other 11 tables have respective customer_ID with respect to PLAN_A.I have a temp table with new Key which will replace PLAN_A and add PLAN_B for respective customer_is's.
Below are 12 PL/SQL Procedure whic... | [{"idx": "Exception_handling_and_rollbacks_in_PL/SQL", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-2280.jsonl"}, {"idx": "WPF_app_does_not_respond_to_WM_CLOSE", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "... |
How to update variable from inside a function?
Question: I want to change the value of RowIndex from _getAttendence
<code>class Attendence extends StatefulWidget {
const Attendence({Key? key}) : super(key: key);
@override
State<Attendence> createState() => _AttendenceState();
}
class _AttendenceState extends S... | [{"idx": "How_to_update_variable_from_inside_a_function?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-3396.jsonl"}, {"idx": "JQGRID:_Add_sort_option_in_the_grid_for_all_column", "domain": "stack_exchange", "domain2": "stackexchange", "header_foot... |
import React from 'react'
import Modal from 'react-modal'
import ExclamationIcon from '../icons/exclamation'
const customStyles = {
content: {
top: '50%',
left: '50%',
right: 'auto',
bottom: 'auto',
marginRight: '-50%',
transform: 'translate(-50%, -50%)',
},
overlay: {
backgroundColor... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-807.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-807.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "... |
import pandas as pd
import numpy as np
import scipy.stats as stats
import enum
class Metric(str, enum.Enum):
Throughput = "throughput"
Latency = "latency"
class ErrorType(str, enum.Enum):
STD = "std"
SEM = "sem"
CI = "ci"
# The .csv structure looks like this ["time"], ["producer-service-1_t... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15524.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15524.jsonl"}] |
* Date : July 24, 2018
*
* Entry point for uberforcer app:
* call method to parse app argument;
* constructs initial tasks and data structures;
* run appropriate routines depending on selected application mode and parameters.
*
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19616.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19616.jsonl"}] |
Q: C# The best overloaded method match for ...has some invalid arguments public class RegistrationClass
{
SqlConnection myConnection = new SqlConnection("Data Source=MOE-PC\\SQLEXPRESS;Initial Catalog=db_University;Integrated Security=True;Pooling=False");
ConnectionClass con = new ConnectionClass();
int ID... | [{"idx": "https://stackoverflow.com/questions/22311261", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-6937.jsonl"}, {"idx": "https://stackoverflow.com/questions/44169157", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "... |
Q: Magneto 2: How to get page title from URL key I need to get page title by URL key.
I have Breadcrumbs URLs with also product URL.
Need to show title as per URLS in breadcrumbs.
Eg:
[IDX] [IDX] [IDX] are three urls. On the basis of URL key, wants to get page title.
Anyone have any idea?
A: I needed this very thing ... | [{"idx": "https://magento.stackexchange.com/questions/321037", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-28152.jsonl"}, {"idx": "https://gis.stackexchange.com/questions/308106", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "s... |
#!/usr/bin/env bash
indent() {
INDENT=" "
sed "s/^/$INDENT/" | sed "s/^${INDENT}\($1\)/${INDENT:0:-2}- \1/"
}
CRDDIR=${DIR:-$(cd $(dirname "$0")/../deploy/crds && pwd)}
PKGDIR=${DIR:-$(cd $(dirname "$0")/../deploy/olm-catalog/tektoncd-pipeline-operator && pwd)}
CSVDIR=${DIR:-$(cd ${PKGDIR}/0.0.1 && pwd)}
NA... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17110.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17110.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
Generate gradient color from PHP
Question: I want to know how to build a function that give the code of an color and
display a gradient of this color. For example:
<code>function generate_color(int colorindex)
{ .......
.......
Generate 10 pale colors of this color.
}
</code>
Please help me
Comment: Please... | [{"idx": "Generate_gradient_color_from_PHP", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22079.jsonl"}, {"idx": "\"bring\"_sudo_into_front?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "sta... |
### Please examine the set of addition, multiplication, division, subtraction arithmaic examples:
481 - 1451 =
-970
###
355 * 647 =
229685
###
2055 * 1831 =
3762705
###
1722 - 774 =
948
###
1043 * 1674 =
1745982
###
972 / 672 =
1.45
###
2039 - 2025 =
14
###
555 - 1485 =
-930
###
289 - 1956 =
-1667
###
1982 ... | [{"source": "ontocord-synthetic-math"}] |
polynomials: simplify power
---------------------------
Qn: Simplify g**(-1/18)/g**(-19) assuming g is positive.
A: g**(341/18)
Qn: Simplify ((g/g**(1/3))/(g/(((g**2/g*g)/g)/g)))/((g/(g*g/g**(3/5)))/g**1) assuming g is positive.
A: g**(16/15)
Qn: Simplify c**7/(c/(c**(-5)*c*c))*(c**(2/15)*c)/((c/((c**(1/7)/c)/c))/c) as... | [{"idx": "txt360/polynomials__simplify_power_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-13.jsonl"}, {"idx": "txt360/algebra__sequence_nth_term_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-13.jsonl"}] |
measurement: time
-----------------
Ask: How many minutes are there between 11:14 AM and 8:38 PM?
Steps: 564
Ask: What is 318 minutes after 9:21 PM?
Steps: 2:39 AM
Ask: How many minutes are there between 6:11 AM and 9:22 AM?
Steps: 191
Ask: What is 385 minutes after 4:50 PM?
Steps: 11:15 PM
Ask: How many minutes are th... | [{"idx": "txt360/measurement__time_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}, {"idx": "txt360/arithmetic__nearest_integer_root_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}] |
Inject implementation of CassandraRepository in Spring Boot test
Question: I am using Spring Boot and Spring Data Cassandra in my webflux application. I have issue when I do integration test with docker by using testcontainer, Spring doesn't inject the implementation of my cassandra repository in my tests but it alway... | [{"idx": "Inject_implementation_of_CassandraRepository_in_Spring_Boot_test", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20214.jsonl"}, {"idx": "Crouching_animation_doesn't_go_as_I_planned,_I_think_it's_a_syntax_error_somewhere_but_I_can't_really_... |
#!/usr/bin/env python3
from typing import Optional, Any, Dict, Tuple, List, Union, Sequence
import subprocess
import os
import json
import ipaddress
import yaml
#from docker import APIClient
import pulumi
from pulumi import (
ResourceOptions,
Output,
)
import pulumi_aws as aws
from pulumi_aws import (
ec2,
r... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7143.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7143.jsonl"}] |
Netlify: One Domain - Multiple Next.js Apps
Question: Recently started my nextjs journey, so please have some patience ;)
I got two separate apps:
Shop
Blog
Currently I am hosting shop on the root of my netlify domain through github. I would like to host blog on this same domain. Shop should preferably be a sub-dire... | [{"idx": "Netlify:_One_Domain_-_Multiple_Next.js_Apps", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-2767.jsonl"}, {"idx": "Getting_proper_logs_from_Elastic_Beanstalk_(Spring_Boot)", "domain": "stack_exchange", "domain2": "stackexchange", "header_f... |
using System.Threading.Tasks;
using ChannelAdam.TestFramework.Xunit.Abstractions;
using Xunit;
using Xunit.Abstractions;
namespace BehaviourTests
{
public class AsyncDisposableUnitTests : MoqTestFixture
{
public AsyncDisposableUnitTests(ITestOutputHelper output) : base(output)
{
... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9240.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9240.jsonl"}] |
Dr. Knowledgeable will be making a ... this evening
Question: I'm solving MCQ of some English book practice, but I don't understand one of the correct answers and I would like to know the explanation for that.
The question was:
Dr. Knowledgeable will be making a ... this evening.
a) lecture
b) sermon
c) speech
d... | [{"idx": "Dr._Knowledgeable_will_be_making_a_..._this_evening", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-7610.jsonl"}, {"idx": "https://tex.stackexchange.com/questions/476047", "domain": "stack_exchange", "domain2": "", "header_footer": "", "la... |
#### File: tests/models/test_extension.py
```python
from collections import OrderedDict
from pathlib import Path
import numpy as np
import pandas as pd
import pytest
from shutil import rmtree
import torch
import os
from xenonpy.model import SequentialLinear
from xenonpy.model.training.base import BaseExtension, Base... | [{"idx": "aya-miyazaki/XenonPy", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8325.jsonl"}, {"idx": "ax-ncolyer/automox-console-sdk-python", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8325.jsonl"}] |
numbers: is factor composed
---------------------------
Inquiry: Suppose 15 = 5*s - 6*c + c, -2*s + 2 = -4*c. Let l be -3 + 4 - (0 - 39). Suppose 0 = -s*n + 10 + l. Is n a multiple of 3?
A: False
Inquiry: Let f(n) = -121*n**3 + 5*n**2 + 2*n - 1. Does 36 divide f(-2)?
A: False
Inquiry: Let y = -5575 - -12000. Does 50 di... | [{"idx": "txt360/numbers__is_factor_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-5.jsonl"}, {"idx": "txt360/algebra__polynomial_roots_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-5.jsonl"}] |
Can't display verification errors on form submit in AMP
Question: I am doing back-end data input verification with amp-form and I want to display the errors on the front-end. However, when I submit the form, even tho the form contains errors (no name inputted) the front-end says "Success!" instead of outputting the er... | [{"idx": "Can't_display_verification_errors_on_form_submit_in_AMP", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-27824.jsonl"}, {"idx": "Using_objects_with_IntegerProperty_fields_as_a_key_in_a_HashMap", "domain": "stack_exchange", "domain2": "stack... |
import { RemixApp } from '@remix-ui/app'
import React, { useEffect, useRef, useState } from 'react'
import { render } from 'react-dom'
import * as packageJson from '../../../../../package.json'
import { fileSystem, fileSystems } from '../files/fileSystem'
import { indexedDBFileSystem } from '../files/filesystems/indexe... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5551.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5551.jsonl"}] |
import { customElement, LitElement, property, html } from 'lit-element';
import styles from './character-view-drawer-heading.scss';
/**
* @slot
*/
@customElement('character-view-drawer-heading')
export class CharacterViewDrawerHeading extends LitElement {
static get is() {
return 'character-view-drawer-heading... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2855.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2855.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
from itertools import islice
import pymysql.cursors
from pymysql import MySQLError
import Crawler
error_list = ['Redirect or 200 error', 'Lang other then english', 'Lang detection Error']
def fetch_url(url):
# print "-> %r requesting" % (url)
url = url.rstrip('\n')
try:
response = Crawler.data... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8193.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8193.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
import Konva from 'konva'
import { convertHtmlToText } from '../../../utils/html-to-text'
import { Board } from '../../../Board'
import { ShapeModel } from '../../ShapeModel'
import { rotateAroundCenter } from '../../../utils/rotate-around-center'
import { DrawType, ShapeConfig } from '../../../types'
export class ... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18965.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18965.jsonl"}] |
Publish JavaDoc on Jenkins with maven
Question: I have maven project that is built by Jenkins-CI.
How to generate and publish JavaDoc on Jenkins?
Answer:
Make sure Jenkins javadoc plugin is installed.
Go to [IDX] to see list of intalled plugins.
Plugin page [IDX] Jenkins job:
In Build section, Goals and options lin... | [{"idx": "Publish_JavaDoc_on_Jenkins_with_maven", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-18110.jsonl"}, {"idx": "To_define_a_function_from_set_{1,2}_to_any_ring_R", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", ... |
from django.db import models
from datetime import datetime
class Blocks(models.Model):
version = models.IntegerField()
height = models.IntegerField(unique=True)
previousblock = models.ForeignKey('self', models.DO_NOTHING, db_column='previousBlock', unique=True, blank=True, null=True) # Field name made... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15505.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15505.jsonl"}] |
import { EndpointState, ErrorHolder, ResponseMessage, Shadow } from '@vestibule-link/iot-types';
import { IotData } from 'aws-sdk';
import { MessageHandlingFlags } from '../directive';
import { findHandler as findShadowHandler } from './Shadow';
import { findHandler as findTopicHandler } from './Topic';
import { getPar... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17839.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17839.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
#!/usr/bin/python
'''
IMPORTS
'''
import json
import requests
import random
import csv
import traceback
from datetime import datetime
from settings import *
'''
CONSTANTS
'''
BASE_URL = ' [IDX] = {
"token": TOKEN,
}
CMD_NEW_MESSAGE = 'chat.postMessage'
CMD_GET_CHANNEL_INFO = 'channels.in... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8128.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8128.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
import * as fs from 'fs';
import { nanoid } from 'nanoid';
import IConfigRaw from '../../shared/config/i-config-raw';
import { IQuestionsToAnswers } from '../install-questions/install-questions';
import PackageBuilder from './package-builder';
jest.mock('fs');
describe('PackageBuilder class', () => {
interface IOpt... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5703.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5703.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
import numpy as np
from scipy import fftpack
from scipy import signal
# Inputs
autocorrelation_option = 1 # 1 to calculate it, 2 to load a pre-calculated one
T = 300. # K
zoom_wavenum = 4000. # cm^-1
fraction_autocorrelation_function_to_fft = 0.01 # since you only want to fft the part that has meaningful statistics,
... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6826.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6826.jsonl"}] |
#include <assert.h>
#include <portaudio.h>
#include <string.h>
#include "instance.h"
PaStream *stream;
/**
* This method gets called by PortAudio when it's
* time to fill another output buffer.
* @param inputBuffer
* @param outputBuffer The buffer to write to.
* @param framesPerBuffer The number of frames per b... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2510.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2510.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":... |
use crate::state::{Collection, Data, Key, Metadata, TokenStandard, Uses};
use borsh::{maybestd::io::Error as BorshError, BorshDeserialize};
use solana_program::{msg, pubkey::Pubkey};
// Custom deserialization function to handle NFTs with corrupted data.
pub fn meta_deser(buf: &mut &[u8]) -> Result<Metadata, borsh::may... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14470.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14470.jsonl"}] |
numbers: list prime factors
---------------------------
Problem #: List the prime factors of 19109.
Steps: 97, 197
Problem #: List the prime factors of 4720719.
Steps: 3, 37, 71, 599
Problem #: What are the prime factors of 966588570?
Steps: 2, 3, 5, 23, 466951
Problem #: List the prime factors of 337870.
Steps: 2, 5, ... | [{"idx": "txt360/numbers__list_prime_factors_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}, {"idx": "txt360/measurement__time_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}] |
Address already in use error if 2+ arquillian integration tests
Question: I have several 'standard' junit integration test with arquillian, tomcat7 embedded (arquillian-tomcat-embedded-7:1.0.0.Final-SNAPSHOT, tomcat-embed-core:7.0.50) and Shrinkwrap.
<code>@RunWith(Arquillian.class)
public class TestMe {
@Deployment... | [{"idx": "Address_already_in_use_error_if_2+_arquillian_integration_tests", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20670.jsonl"}, {"idx": "Check_for_status_updates_using_APEX.SERVER.PROCESS", "domain": "stack_exchange", "domain2": "stackexcha... |
### Description:
Make Data Tables for the Paper
### Code:
```
res = pd.read_csv('results_40percent.csv')
res_tsquared = pd.read_csv('results_40_tsquared.csv')
# Table with uninformative results
if tab == 'full':
last_row = len(res)
filename = 'uninformative_FULL.tex'
elif tab == 'just15':
... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6426.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6426.jsonl"}] |
How to implement unsigned abs(int)?
Question: So this seems easy but either I'm missing something or... there is no way to do it?..
First try:
<code>unsigned abs(int value) { return value < 0 ? -value : value; }
</code>
Nope, "-value" is an UB. This is detected by clang -fsanitize and is generally unsafe in the face o... | [{"idx": "How_to_implement_unsigned_abs(int)?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-29114.jsonl"}, {"idx": "https://math.stackexchange.com/questions/637560", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "so... |
#pragma once
#include <absl/types/span.h>
#include <memory>
namespace sfz {
struct FlexEGDescription;
class Resources;
/**
Flex envelope generator (according to ARIA)
*/
class FlexEnvelope {
public:
explicit FlexEnvelope(Resources &resources);
~FlexEnvelope();
/**
Sets the sample rate.
*/... | [{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13139.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13139.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2... |
numbers: is prime
-----------------
Query: Is 105697847 composite?
Response: True
Query: Is 5803 prime?
Response: False
Query: Is 944123 composite?
Response: False
Query: Is 369869 prime?
Response: False
Query: Is 35730031 prime?
Response: True
Query: Is 1823684479 prime?
Response: True
Query: Is 6449 a prime number?
R... | [{"idx": "txt360/numbers__is_prime_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}, {"idx": "txt360/arithmetic__add_or_sub_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}] |
git fails to stage files, show all files as duplicate but the char casing is not an issue
Question: In my case, I did simple one liner change to one of my file and wanted to commit my changes but noticed that commit -am "" did not add/commited the file.
After issuing git <code>ls-files --stage</code>, I see probably a... | [{"idx": "git_fails_to_stage_files,_show_all_files_as_duplicate_but_the_char_casing_is_not_an_issue", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-5743.jsonl"}, {"idx": "How_to_address_colleague_taking_analysis_pipeline_and_ideas_and_not_come_acros... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.