text
stringlengths
4.4k
422k
metadata
stringlengths
39
6.04k
Can you give an example in a formal definition? Question: I would like to give an example in a formal definition. My concern is, by giving an example, I am implicitly demonstrating that the definition is not precise/clear enough. Is it acceptable to give an example in a formal definition? Comment: Actually, formal def...
[{"idx": "Can_you_give_an_example_in_a_formal_definition?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-12791.jsonl"}, {"idx": "Is_the_quotient_map_$X\\to_X/G$_a_covering_map?", "domain": "stack_exchange", "domain2": "stackexchange", "header_foote...
### Think deeply about this set of subtraction, division, multiplication, addition math problems: 1771 + 1820 = 3591 ### 2073 - 473 = 1600 ### 1253 - 1458 = -205 ### -157 / 958 = -0.16 ### 713 * 921 = 656673 ### 1247 / 1297 = 0.96 ### 211 + 893 = 1104 ### 471 / -208 = -2.26 ### 1333 * -34 = -45322 ### -414 ...
[{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}]
### Description: ### Code: ``` drive.mount('/content/drive') # import os for file manipulation import os # import pandas for tabular or dataframe management import pandas as pd # create variable for path to the folder that stores our data base_path = '/content/drive/My Drive/DWDM_material' # load data from test.cs...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6442.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6442.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
How can I add a coloured, random, ragged brush stroke to a black and white graphic in Paint.net? Question: I have a black and white photo and I want to add a sweeping brush stroke wash in colour across it so that you can see the B&W information through the colour. A second possibility is to do a colour gradient (I hop...
[{"idx": "How_can_I_add_a_coloured,_random,_ragged_brush_stroke_to_a_black_and_white_graphic_in_Paint.net?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-7787.jsonl"}, {"idx": "https://superuser.com/questions/1607717", "domain": "stack_exchange", "...
Crafting a Cracked Dusty Rose Prism Ioun Stone - Required Creator Level? Question: Cracked Dusty Rose Prism Ioun Stone's Construction Requirements seem like they may be inaccurate for the cracked and flawed versions. It indicates the cost for all three is 2500 gp, and it indicates the required caster level for all t...
[{"idx": "Crafting_a_Cracked_Dusty_Rose_Prism_Ioun_Stone_-_Required_Creator_Level?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-5373.jsonl"}, {"idx": "https://sharepoint.stackexchange.com/questions/282639", "domain": "stack_exchange", "domain2": ...
Q: pgfplots: Adding vertical lines with labels to a graph I wanted to replicate the following graph in latex. I'm using the pgfplots package. The main areas I'm struggling with is how to implement vertical lines with labels, how to make the tick-marker on the y-axis be absolute (i.e. have no negatives) and how to prese...
[{"idx": "https://tex.stackexchange.com/questions/492611", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-7251.jsonl"}, {"idx": "Making_a_macro_in_excel_to_highlight_cells_that_are_bigger_than_a_control_cell", "domain": "stack_exchange", "domain2": "stackexchange...
comparison: kth biggest ----------------------- Problem: What is the biggest value in 3, -0.4, 0, 2/13, -394, 0.28? Compute: 3 Problem: What is the second biggest value in 1, -22, -1/24, -16, 1/5, -1, 2/5? Compute: 2/5 Problem: What is the third smallest value in -44.64, -1/2, -270? Compute: -1/2 Problem: What is the s...
[{"idx": "txt360/comparison__kth_biggest_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/polynomials__collect_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}]
Did Biden underperform the polls because some voters changed their minds after being polled? Question: Polls leading up to the election showed Biden with a commanding lead, averaged between 7 and 9 points depending on your source. But the result was Biden by 4.5. I have a theory that some Republicans may have told a p...
[{"idx": "Did_Biden_underperform_the_polls_because_some_voters_changed_their_minds_after_being_polled?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-21730.jsonl"}, {"idx": "How_do_you_monitor_the_progress_of_dd?", "domain": "stack_exchange", "doma...
/// <reference types="chrome"/> import { Injectable } from '@angular/core'; import ChromePromise from 'chrome-promise'; import { Window } from './window'; import { getCopy } from './utils'; // TODO resolve workaround // temp workaround for buggy chromep api calls import { Tab } from './tab'; // end of workaround c...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1143.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1143.jsonl"}]
* */ /* Functions that relate on PKCS12 Bag packet parsing. */ #include <gnutls_int.h> #include <gnutls_datum.h> #include <gnutls_global.h> #include <gnutls_errors.h> #include <common.h> #include "x509_int.h" /** * gnutls_pkcs12_bag_init: * * This function will initialize a PKCS12 bag structure. PKCS12 Bags ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13149.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13149.jsonl"}]
Q: Continuity of the function $F(y)=\int\limits_0^{+\infty}ye^{-(x-y)^4}dx$ $$F(y)=\int\limits_0^{+\infty}ye^{-(x-y)^4}dx,\text{while } y>0 $$ My attempt: We have $D = [0;+\infty)\times (0;+\infty)$, but let's consider $\overline D = [0;+\infty)\times [\delta;+\infty), \delta > 0$. As $ye^{-(x-y)^4}$ is continuous on $...
[{"idx": "https://math.stackexchange.com/questions/2764889", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-9169.jsonl"}, {"idx": "https://math.stackexchange.com/questions/3802584", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "so...
#!/bin/bash set -x function compile { build=$1 mkdir $build cd $build cmake .. -G"Unix Makefiles" -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wall -funroll-loops -finline-functions $2" -DCMAKE_EXE_LINKER_FLAGS="-static -static-libgcc -static-libstdc++" rc=$?; if [[ $rc != 0 ]]; then ex...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17203.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-17203.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
In Kali, when I try to install some packages I get the deletion of other packages Question: I am having an issue with the installation of some packages with kali linux. After introducing the command for an installation(not with every single one, but it happens) I get a suggestion where I'm suggested to delete packages...
[{"idx": "In_Kali,_when_I_try_to_install_some_packages_I_get_the_deletion_of_other_packages", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-18500.jsonl"}, {"idx": "TikZ:_complement_mark_at_coordinate", "domain": "stack_exchange", "domain2": "stackex...
TextView in menu is always null after orientation change Question: I have a TextView functioning as a notification badge on a menu item. The problem is that the findViewById method always returns null after an orientation change, so when I try to modify its visibility with setVisibility it throws a NullPointerExceptio...
[{"idx": "TextView_in_menu_is_always_null_after_orientation_change", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-21682.jsonl"}, {"idx": "Organizar_palavras_acentuadas_em_uma_lista", "domain": "stack_exchange", "domain2": "stackexchange", "header_f...
Q: A closed form expression for $\int_0^{\infty} (t^2+t^4)^n e^{-t^2-t^4}\,dt$ I was doing some computations for research purposes, which led me to this integral: $$I(n) = \int_0^{\infty} (t^2+t^4)^n e^{-t^2-t^4}\,dt.$$ This is very suggestively written so as to employ a parametric differentiation technique as so: $$\l...
[{"idx": "https://math.stackexchange.com/questions/865639", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-29004.jsonl"}, {"idx": "Why_do_I_have_to_turn_off_my_(non-cellular)_iPad_before_takeoff?", "domain": "stack_exchange", "domain2": "stackexchange", "header_f...
import * as tsa from 'ts-simple-ast'; import * as vscode from 'vscode'; import { ProjectManager } from './ProjectManager'; import { getChildren, getNodeInSelection, getNodeName } from './AstUtil'; import { Settings, readSettings } from './extension'; import { AstTreeItem } from './AstTreeItem'; /** * internal state o...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1834.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1834.jsonl"}]
namespace CGAL { /*! \ingroup PkgSDGLinf This class is equivalent to the `Segment_Delaunay_graph_hierarchy_2` class, but it uses `Segment_Delaunay_graph_Linf_2<Gt,DS>` at every level of the hierarchy (instead of `Segment_Delaunay_graph_2<Gt,DS>` at each level of `Segment_Delaunay_graph_hierarchy_2`). The `Segment_De...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2494.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2494.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute, ParamMap, Router } from '@angular/router'; import { TranslateService } from '@ngx-translate/core'; import { Subject } from 'rxjs'; import { filter, map, switchMap, ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4952.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4952.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
Codeception "ErrorException array to string conversion" with Laravel and Lang::get() Question: I've already opened an issue on Codeception Github Repository so if you want to stay update on there you're welcome. By the way I'll explain my problem even here, maybe someone has got the solution. Basically when you write ...
[{"idx": "Codeception_\"ErrorException_array_to_string_conversion\"_with_Laravel_and_Lang::get()", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-17512.jsonl"}, {"idx": "ANDROID_-_how_to_display_JSONArray_into_textview", "domain": "stack_exchange", "...
Q: Removed page_cache folder and admin cache page not working I removed the whole folder var/page_cache and now my admin page and cache page are not working anymore. I made a new folder page_cache but no difference. I can not refresh (no button anymore) and empty cache (noting happens when I push the button). How can I...
[{"idx": "https://magento.stackexchange.com/questions/186317", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-28848.jsonl"}, {"idx": "https://gaming.stackexchange.com/questions/306576", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en",...
### Description: Logistic RegressionLogistic regression is a classification method. Its main goal is learning a function that __returns a yes or no answer__when presented as input a so-called __feature__ vector. As an example, suppose we are given a dataset, such as the one below:| Class| Feature1 | Feature2 ||---| |...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6552.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6552.jsonl"}]
#### File: flask-/blog/models.py ```python from datetime import datetime from flask_login import UserMixin,current_user from blog import db,login_manager,app from itsdangerous import TimedJSONWebSignatureSerializer as Serializer @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id))...
[{"idx": "saheedniyi02/flask-", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8841.jsonl"}, {"idx": "sahilramani/StockAnalyzer", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8841.jsonl"}, {"idx": "Sadeeptha-B/recipe-app-api", "...
#!/usr/bin/env python from mc_pipeline.generate_mc_pipeline import create_motion_detection_class import os.path import errno from arcana.repository.basic import BasicRepo from mc_pipeline.utils import ( guess_scan_type, local_motion_detection, inputs_generation) import argparse import pickle as pkl from arcana.proc...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10996.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10996.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
""" Copyright 2014 University of Florida. All rights reserved. Use of this source code is governed by the license found in the LICENSE file. For instructions on how to use this script please refer to doc/README_bedpostx.md """ from nipype.workflows.dmri.fsl.dti import create_bedpostx_pipeline import nipype.pipeline...
[{"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-20378.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-20378.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en...
import * as jwt from 'jsonwebtoken'; interface IJwtUserPayload { id: string } export default class UserTokenService { constructor( private readonly privateKey: string, private readonly tokenExpirationTime: number ) { this.privateKey = privateKey; this.tokenExpirationTime = tokenExpirationTime; ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3296.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3296.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
nodejs: how to run tests and then build dockerfile Question: I am trying to create a basic CI CD Pipeline, I am trying to create batch file to run tests and then execute the docker build. here is my basic batch file <code>@ECHO OFF call npm run test call docker build -t my-docker-file . PAUSE</code> how can I know i...
[{"idx": "nodejs:_how_to_run_tests_and_then_build_dockerfile", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-13536.jsonl"}, {"idx": "Convert_number_of_weeks_in_decimal_to_fraction", "domain": "stack_exchange", "domain2": "stackexchange", "header_foo...
/* eslint-disable complexity */ import { ApiLevel, assertPointerEvents, focus, isDisabled, isElementType, setLevelRef, } from '../utils' import {getUIValue, setUISelection} from '../document' import {EventType} from '../event' import {Config} from '../setup' import type { pointerKey, pointerState, Po...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-954.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-954.jsonl"}]
import io import json from copy import deepcopy from ..optimizer import AcceleratedOptimizer from ..scheduler import AcceleratedScheduler class HfDeepSpeedConfig: """ A `weakref` of this object is stored in the module's globals to be able to access the config from areas where `from_pretrained` and `_get_re...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6998.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6998.jsonl"}]
import shutil import tempfile import subprocess import logging import re from packstack.installer.utils.shell import block_fmt from packstack.installer.exceptions import (ScriptRuntimeError, NetworkError) from packstack.installer.utils.strings import mask_string class Fa...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15676.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15676.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
import "./Checkbox"; import { Checkbox } from "./Checkbox"; import { Key } from "@/constants"; import { elementUpdated, fixture, fixtureCleanup, oneEvent } from "@open-wc/testing-helpers"; describe("Checkbox component", () => { let element: Checkbox; afterEach(fixtureCleanup); beforeEach(async () => { elemen...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2016.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-2016.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
comparison: closest ------------------- Question: Which is the closest to 1/27? (a) 1/17 (b) 2 (c) 5 (d) -3/4 Result: a Question: Which is the closest to -2? (a) -3 (b) -0.5 (c) -728/11 (d) 1.1 Result: a Question: Which is the nearest to 1? (a) 1.43 (b) -14 (c) -2/29 Result: a Question: Which is the nearest ...
[{"idx": "txt360/comparison__closest_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-9.jsonl"}, {"idx": "txt360/arithmetic__nearest_integer_root_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-9.jsonl"}]
#### File: ximalaya_crawler/models/__init__.py ```python from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow from datetime import datetime db = SQLAlchemy() ma = Marshmallow() class TimeStampMixin(object): create_time = db.Column(db.DateTime, nullable=False, default=datetime.utcnow)...
[{"idx": "anribras/ximalaya_crawler", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8303.jsonl"}, {"idx": "AnonymScholar/SpMT", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8303.jsonl"}]
node.js + socket.io: auction website development Question: I am currently working on an auction script using node.js and socket.io.But site was developed by using PHP & MySQL. Here I'm using node.js + socket.io for auction bidding process only. The site will have 500-1000 logged in users viewing a single page during t...
[{"idx": "node.js_+_socket.io:_auction_website_development", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-2839.jsonl"}, {"idx": "Linq_where_with_strange_condition", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang"...
use hal::{pass, image, memory, pso}; use hal::format::Format; use metal::*; // The boolean indicates whether this is a depth format pub fn map_format(format: Format) -> Option<(MTLPixelFormat, bool)> { use hal::format::SurfaceType::*; use hal::format::ChannelType::*; // TODO: more formats match format...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13852.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13852.jsonl"}]
import React from 'react'; import { Typography } from 'antd'; import classNames from 'classnames'; import { IFormData } from 'Components/Views/HCardBuilder'; import { STRINGS_PREVIEW } from 'configs/strings'; import defaultAvatar from 'assets/images/avatar_default.png'; import styles from './BuilderPreview.module.scss...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5598.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5598.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
########################################################################## # v0.3 - bm - Tue Nov 21 10:13:37 CET 2017 # - corect mane for the update_delay_corner typical_delay # v0.2 - bm - Fri Mar 18 08:41:33 CET 2016 # - rename 'PD_default' to 'PD_core' amd add 'PD_pad' # v0.1 - bm - Tue Jan 19 13:14:48 CET 2016...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16406.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16406.jsonl"}]
Merging accounts - 4 days, no replies or emails Question: I've been trying to merge two of my SO accounts (for personal reasons). I filled in the form (from one account and then the other), but I've received no verification emails. Not sure what usual workflow (not even an automated confirmation email) for this is, bu...
[{"idx": "Merging_accounts_-_4_days,_no_replies_or_emails", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20060.jsonl"}, {"idx": "Multiple_resolutions_for_HLS_transcoding_using_FFMPEG_in_Node_Js", "domain": "stack_exchange", "domain2": "stackexchang...
Using k Nearest Neighbour & Dynamic Time Warping for keyword spotting Question: As stated in the title, I am currently researching a method using k-NN, specifically, as either an alternative or as a supplement to the DTW algorithm in keyword spotting based on MFCC. I have read through various answers on this forum (ma...
[{"idx": "Using_k_Nearest_Neighbour_&_Dynamic_Time_Warping_for_keyword_spotting", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22091.jsonl"}, {"idx": "Problem_filtering_data_dynamically_in_Fullcalendar", "domain": "stack_exchange", "domain2": "stac...
polynomials: coefficient named ------------------------------ Q: Express (1 - 1 + 2*o)*(17 + 20*o - 1152*o**2 - 17 + 888*o**2 + 2*o) in the form u*o**3 + f*o**2 + t*o + m and give u. Yields: -528 Q: Rearrange -18*b - b**2 - 6*b - 14*b**3 + 94*b - 80*b to m*b**3 + u*b**2 + j*b + x and give j. Yields: -10 Q: Rearrange -3...
[{"idx": "txt360/polynomials__coefficient_named_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-13.jsonl"}, {"idx": "txt360/numbers__is_prime_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-13.jsonl"}]
### Study this set of subtraction, addition, division, multiplication math insights: 2253 * 2144 = 4830432 ### 490 - 1960 = -1470 ### 1693 - 2234 = -541 ### 1388 + 2035 = 3423 ### 111 * 525 = 58275 ### 1535 + 504 = 2039 ### 951 - 1919 = -968 ### -10 / 644 = -0.02 ### 739 + 1531 = 2270 ### 2210 - 1362 = 848...
[{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}]
import numpy as np '''Calculates the Habitability Zone of a star based on the Kopparapu et al (2003) equations. These equations are only valid for stars between 2600 K < Teff < 7200 K.''' class HabitabilityCalculator: sun_luminosity = 1. G = 6.674e-11 # m3 kg-1 s-2 ## ## Stellar flux coefficients (tab...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11688.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11688.jsonl"}]
algebra: linear 1d composed --------------------------- What if: Let i(g) = -g**2 - 4*g + 8. Let l be i(-5). Suppose l = 6*x - 5*x. Suppose x*q = 2 + 31. Solve -3 = -2*p - q for p. Hence: -4 What if: Let o(y) = 4*y**2 + 7*y - 1. Let z be o(-3). Let w(v) = -v**3 + 15*v**2 - 14*v + 16. Let j be w(z). Suppose j - 8 = 4*t....
[{"idx": "txt360/algebra__linear_1d_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}, {"idx": "txt360/arithmetic__simplify_surd_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}]
numbers: place value -------------------- Ask: What is the units digit of 23050? Ans: 0 Ask: What is the thousands digit of 1482752914? Ans: 2 Ask: What is the hundreds digit of 3064709? Ans: 7 Ask: What is the ten thousands digit of 37932? Ans: 3 Ask: What is the units digit of 967? Ans: 7 Ask: What is the ten million...
[{"idx": "txt360/numbers__place_value_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/arithmetic__add_sub_multiple_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}]
import os from kivy.lang import Builder from kivy.metrics import dp Window.size = (800, 600) Window.minimum_width, Window.minimum_height = Window.size from kivymd.uix.screen import MDScreen class LoginScreen(MDScreen): shift_x_email = NumericProperty(0) shift_x_password = NumericProperty(0) shift_x_...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12335.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12335.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
/* This package provides protobuf golang bindings for Model Driven Telemetry (MDT) messages and gRPC service definitions as well as wrapper code to facilitate unmarshalling GPB encoded content from routers. MDT provides a mechanism for an external entity to subscribe to a data set defined in a YANG model and receive p...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13305.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13305.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
Q: Why can't I access a protected member from an instance of a base class? Let's say I have this code: class foo{ protected: int a; }; class bar : public foo { public: void copy_a_from_foo(foo& o){ a = o.a; // Error } void copy_a_from_bar(bar& o){ a = o.a; // OK } }; int main(){ bar x; foo y...
[{"idx": "https://stackoverflow.com/questions/29439925", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-6693.jsonl"}, {"idx": "https://stackoverflow.com/questions/10126968", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "...
Creating table with cumulative values Question: I have table like first table on the picture. It's information about banks deals on the FX market on daily basis (buy minus sell). I would like to calculate cumulative results like on the second table. The number of banks and their names, also as date are not fixed. I'm...
[{"idx": "Creating_table_with_cumulative_values", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-8383.jsonl"}, {"idx": "jQuery_datapicker_appearing_behind_twitter_bootstrap_modal", "domain": "stack_exchange", "domain2": "stackexchange", "header_foote...
```markdown **Namespace:**&nbsp;<a href="3ab486cc-fe31-1c1d-2711-62118c2afbf2.md">System.Reflection</a><br />**Assembly:**&nbsp;Boondoggle.System.Reflection (in Boondoggle.System.Reflection.dll) Version: 0.1.0-alpha ## Syntax **C#**<br /> ``` C# } ``` **VB**<br /> ``` VB Get ``` **C++**<br /> ``` C++ public...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13246.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13246.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
""" Ancillary tests, not distributed in the package. Just to make sure this content syncing stuff works. Really quick n' dirty. You can run these tests with: django test example_project.content.tests """ import json import os from wjordpress.factories import WPSiteFactory from wjordpress.models import WPPost ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11353.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11353.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
import validate from './index.validate'; import type { APIHandler } from 'lib/server/api'; import type { ServerNewsPost } from 'lib/server/news'; import { getClientNewsPost } from 'lib/server/news'; import stories from 'lib/server/stories'; import getStoryByUnsafeID from 'lib/server/stories/getStoryByUnsafeID'; import ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18437.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18437.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
```python from baldrick.config import Config, load, loads GLOBAL_TOML = """ [tool.baldrick] [tool.baldrick.plugin1] setting1 = 'a' setting2 = 'b' [tool.baldrick.plugin2] setting3 = 1 """ REPO_TOML = """ [tool.testbot] [tool.testbot.plugin1] setting2 = 'c' [tool.testbot.plugin2] setting3 = 4 setting4 = 1.5 [tool....
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12690.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12690.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
# In this notebook, we use the Likelihood class for a process without any systematics. # ## 0. Preparations # + import sys import os madminer_src_path = "/Users/felixkling/Documents/GitHub/madminer" sys.path.append(madminer_src_path) import logging import numpy as np import time import matplotlib # %matplotlib i...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-312.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-312.jsonl"}]
How do you describe something being encircled by a collection of things which get progressively concentrated towards the centre? Question: Is there a particular word which accurately describes a collection of things that encircle another thing uniformly, with their concentration and population growing towards the cent...
[{"idx": "How_do_you_describe_something_being_encircled_by_a_collection_of_things_which_get_progressively_concentrated_towards_the_centre?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4710.jsonl"}, {"idx": "Generalizing_compile-time_and_run-time_...
How to play the dynamic correctly? Question: Is there any rule of thumb for how loud/quiet the dynamics should be played? Like, when I see "pp" I know to play it softer than "mf" or "f", for example, but I have no way of knowing if I'm playing it soft enough, or if I'm making it different enough to when I play"p". Is...
[{"idx": "How_to_play_the_dynamic_correctly?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-10032.jsonl"}, {"idx": "https://math.stackexchange.com/questions/3993715", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "so...
ClassRoll and Constructor methods Question: <code>public class Exams { private int score1 = 0; private int score2 = 0; private int score3 = 0; public void setScore1(int sc){ score1 = sc; } public void setScore2(int sc){ score2 = sc; } public void setScore3(int sc){ score3 = sc; } public int getScore...
[{"idx": "ClassRoll_and_Constructor_methods", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-2844.jsonl"}, {"idx": "Why_won't_my_background_show_within_div_container?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lan...
numbers: round number --------------------- Case: What is -1134.381 rounded to the nearest 10? Calculation: -1130 Case: What is -1.70392 rounded to two dps? Calculation: -1.7 Case: Round -0.0000153264 to 7 decimal places. Calculation: -0.0000153 Case: Round -4732193 to the nearest 10000. Calculation: -4730000 Case: Rou...
[{"idx": "txt360/numbers__round_number_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}, {"idx": "txt360/numbers__list_prime_factors_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}]
// much of this code comes from electron-toaster and was modified to include custome icons var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); } } } /** * Reply app that user clicked or notification is closing * @param {*} isAuto - true...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14784.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14784.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
"""Rules engine for firewall rules.""" from builtins import object import itertools import threading from google.cloud.forseti.common.gcp_type import firewall_rule from google.cloud.forseti.scanner.audit import rules as scanner_rules class Error(Exception): """Base error class for the module.""" class...
[{"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19869.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19869.jsonl"}]
### Here is some exercises for division, multiplication, subtraction, addition math insights: 84 + 584 = 668 ### 1570 - 1954 = -384 ### -404 / -312 = 1.29 ### 160 / 338 = 0.47 ### -96 + 2267 = 2171 ### 1266 * 568 = 719088 ### -220 / 1301 = -0.17 ### 252 + 169 = 421 ### 650 + 1410 = 2060 ### -518 / 182 = -2...
[{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}]
Q: what will happen if i supply 12v with stall current of 3 amps dc motor with 24volt and limit the current at 1 amp? I have 12 volt dc motor with 3 amp stall current 133 rpm and 8.8 kgf tourque. I supply the motor with 12 volts and when I measure its current it was 2 amps with 133 rpm. I need to make it faster as I us...
[{"idx": "https://electronics.stackexchange.com/questions/222185", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-27603.jsonl"}, {"idx": "https://askubuntu.com/questions/1338941", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "sour...
# # E84 Robosat Guide # ### This notebook is adapted from [IDX] ### Prelude # Sanity check your ENV variables passed into the docker below (see README): # !echo $DESIRED_ZOOM_LEVEL # !echo $PUBLIC_IP # This notebook starts with a tanzania-latest.osm.pbf file. It is an OpenStreetMap file that represents all of Tanz...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-471.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-471.jsonl"}]
namespace Caravel.Errors { /// <summary> /// Error class represents the application error model. /// All errors should use this class in order to provide consistency. /// </summary> public sealed record Error { /// <summary> /// Unique error code. /// </summary> p...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9352.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9352.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
OSX Netinstall Custom Image Question: I've been searching for a clear method to create a custom Netinstall image of Sierra for a while without success. My goal is to have two administrator accounts by default and some packages (e.g. Slack, Firefox, iTerm2 ...) incorporated with the installation. I've tried different m...
[{"idx": "OSX_Netinstall_Custom_Image", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-15316.jsonl"}, {"idx": "Coefficients_of_$1,x,x^2$_in_$((\\cdots_(x-2)^2-2)^2-2)^2\\cdots_)-2)^2$", "domain": "stack_exchange", "domain2": "stackexchange", "header_...
geb.error.PageInstanceNotInitializedException Question: I am new in using Geb and Cucumber for grails and I am following this tutorial [IDX] has been fine up until I made a Page class and used it in my step definition. I ran the test and this error showed up. <code>Error running forked test-app: Instance of page clas...
[{"idx": "geb.error.PageInstanceNotInitializedException", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-8020.jsonl"}, {"idx": "Why_does_WriteFile_call_ReadFile_and_how_do_I_avoid_it?", "domain": "stack_exchange", "domain2": "stackexchange", "header_...
import _ from 'lodash'; import moment from 'moment'; import {Component, DebugElement} from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { PickerController, Picker, Item, Form } from 'ionic-angular'; import { MultiPicker } from '../../../src/components/multi-picker/multi-pi...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-883.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-883.jsonl"}]
#pragma once #include <string> #include <tuple> #include <vector> #include <bitset> #include <unordered_map> #include <cassert> #include <climits> #include <new> #include "filesystem.h" #include "utility.h" #include "string_view.h" #ifdef FEATURE_PAL #include "pal_mstypes.h" #endif namespace netcoredbg { using Util...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19354.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19354.jsonl"}]
""" Manages classification class and feature ids. """ __version__ = "$Revision: 1.20 $" import codecs import gzip class IdSet: """ A mapping from strings to id integers. This class is used for defining the ids for classes and features of machine learning systems. """ def __init__(self, firstNumbe...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11096.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11096.jsonl"}]
Проблема с background Question: Столкнулся с такой проблемой - если открывать сайт не на полный экран, то при прокрутке вправо - фона просто нет, не могу понять с чем связано. <code>.firstscreen { min-height: 800px; background: url(../img/bg/mainscreen.jpg) center center/cover no-repeat; padding: 39px 0 62px 0; </code...
[{"idx": "\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430_\u0441_background", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-21205.jsonl"}, {"idx": "Keyboard_not_working_while_entering_root_password(Linux)", "domain": "stack_exchange", "domain2": "s...
LDAP connection problem with self-signed cert Question: The code I am using: <code># Create LDAPObject instance conn = ldap.initialize(url) conn.protocol_version=ldap.VERSION3 conn.simple_bind_s(binddn,bindpw) # This raises: # ldap.SERVER_DOWN: {'info': 'error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:ce...
[{"idx": "LDAP_connection_problem_with_self-signed_cert", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-21312.jsonl"}, {"idx": "Should_the_stack_pointer_point_to_the_value_on_the_top,_or_the_the_position_where_the_next_value_should_be?", "domain": "...
### Please examine the set of division, multiplication, subtraction, addition math examples: 29 * 459 = 13311 ### 1993 + 1646 = 3639 ### 104 + 442 = 546 ### 729 / 1170 = 0.62 ### 927 - 1104 = -177 ### 883 - 1187 = -304 ### 491 + 102 = 593 ### 1745 - 1745 = 0 ### 620 * 1728 = 1071360 ### 1827 - 1747 = 80 ##...
[{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}]
algebra: polynomial roots ------------------------- Given: Find q such that -2*q**2 - 9844*q - 58992 = 0. Result: -4916, -6 Given: Solve -5*l**2 + 20311105*l - 40622190 = 0 for l. Result: 2, 4062219 Given: Find r such that 2*r**2/5 - 66*r/5 + 324/5 = 0. Result: 6, 27 Given: Find m such that 3*m**3 + 8040*m**2 + 5394831...
[{"idx": "txt360/algebra__polynomial_roots_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}, {"idx": "txt360/polynomials__collect_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}]
Include java libraries into own library Question: I created a little framework for myself which I want to use in multiple projects. I also want the distributed jar-file to include all external libraries so that my projects just need to include my library to access all external libraries. I need this to simplify updati...
[{"idx": "Include_java_libraries_into_own_library", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20467.jsonl"}, {"idx": "How_do_I_end_a_string_in_'_'?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "sou...
Interface at the class or function level? Question: I have been falling into a pattern lately where I have been defining routines that rely on an interface defined by a function that is specified as a parameter to the routine. (The language is C#, but this can be applied to any language with first-class functions.) Fo...
[{"idx": "Interface_at_the_class_or_function_level?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4893.jsonl"}, {"idx": "Using_Kendo_MultiSelect_with_Kendo_UI_Grid_in_ASP.NET_MVC", "domain": "stack_exchange", "domain2": "stackexchange", "header_fo...
How do I plot data on different x-axes and scales with d3.js? And keep it linked for brushes/tooltips? Question: I have the following data (mpg and hp from mtcars): <code>[{"mpg":21,"hp":110},{"mpg":21,"hp":110},{"mpg":22.8,"hp":93},{"mpg":21.4,"hp":110},{"mpg":18.7,"hp":175},{"mpg":18.1,"hp":105},{"mpg":14.3,"hp":245...
[{"idx": "How_do_I_plot_data_on_different_x-axes_and_scales_with_d3.js?_And_keep_it_linked_for_brushes/tooltips?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22368.jsonl"}, {"idx": "Binary_Search_Using_a_Recursive_Function", "domain": "stack_exch...
"""Common configure functions for interface""" # Python import logging from ipaddress import IPv4Address # Unicon def config_extended_acl( device, acl_name, permission=None, protocol=None, src_ip=None, src_step=None, src_wildcard=None, dst_ip=None, dst_step=None, dst_wildc...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12447.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12447.jsonl"}]
calculus: differentiate ----------------------- Part A: Find the third derivative of 66156*h**3*r + 2999*h**2*r - h**2 - 5*r wrt h. Soln: 396936*r Part A: Find the second derivative of 5577422*i**2 + 809695*i wrt i. Soln: 11154844 Part A: What is the second derivative of -293705*s**3 + s**2 + 8593800*s? Soln: -1762230*...
[{"idx": "txt360/calculus__differentiate_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-1.jsonl"}, {"idx": "txt360/polynomials__expand_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-1.jsonl"}]
<?php if (isset($_SESSION["user"])) { // Nếu người dùng chưa đăng nhập thì chuyển hướng website sang trang đăng nhập echo "<script> alert('Bạn chưa đăng nhập!');window.location.href='login.php'</script>"; }else { if (isset($_SESSION["admin_level"])) { // Ngược lại nếu đã đăng nhập $admin_level = $_SESSION["admin...
[{"idx": "11822705", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16816.jsonl"}, {"idx": "11837303", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16816.jsonl"}, {"idx": "11803911", "domain": "software", "domain2": "", "header_...
Replacing values and converting to numeric using data.table Question: Suppose I have the following data (it's messy, I know, but bear with me): <code>a <- c("Table Title", rep(NA, 10)) b <- c("Characteristic", "Year 1", "", "Year 2", "", "Year 3", "", "Year 4", "", "Year 5", "") c <- c("All", "40", "%", "20", "%", "12...
[{"idx": "Replacing_values_and_converting_to_numeric_using_data.table", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-25750.jsonl"}, {"idx": "How_to_update_Helm_chart_/_Kubernetes_manifests_without_\"latest\"_tags?", "domain": "stack_exchange", "dom...
# import python from abc import ABC from netaddr import IPNetwork # import genie from genie.conf.base.attributes import AttributesHelper from genie.conf.base.cli import CliConfigBuilder from genie.conf.base.config import CliConfig from genie.libs.conf.ospf import Ospf from genie.libs.conf.isis import Isis from genie.l...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9546.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9546.jsonl"}]
import { NgModule } from '@angular/core'; import { RouterModule, Routes, Router } from '@angular/router'; import { HomePageComponent } from '../home-page/home-page.component'; import { AppRoutingService } from './app-routing.service'; const routes: Routes = [ { path: '', component: HomePageComponent }, ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18843.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18843.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
Sending mail from inside docker container Question: I am completely new do Docker, and a total n00b to linux, so apologies if this sounds silly. I have gotten a docker system up and running on Digital Ocean, and its working nicely. I am using a pre-built Mirth Connect docker and this runs beautifully and I can do all ...
[{"idx": "Sending_mail_from_inside_docker_container", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20255.jsonl"}, {"idx": "Como_gravar_uma_v\u00e1riavel_std::vector>_em_um_arquivo_txt?", "domain": "stack_exchange", "domain2": "stackexchange", "head...
Q: How to save extra fields on registration using custom user model in DRF + django-rest-auth Using Django REST Framework (DRF), with django-rest-auth, I created a custom user model with one extra field. My aim is to use the django-rest-auth registration endpoint to register a new user in one request, and thus sending ...
[{"idx": "https://stackoverflow.com/questions/53969386", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-6749.jsonl"}, {"idx": "https://stackoverflow.com/questions/18107541", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "...
numbers: gcd ------------ Exercise: What is the highest common factor of 54 and 44199? Explanation: 27 Exercise: Calculate the highest common factor of 29600 and 259. Explanation: 37 Exercise: What is the greatest common factor of 6 and 609? Explanation: 3 Exercise: What is the greatest common factor of 217713100 and 1...
[{"idx": "txt360/numbers__gcd_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/comparison__kth_biggest_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}]
lpt LP11 line printer 19-Jan-07 RMS Added UNIT_TEXT flag 07-Jul-05 RMS Removed extraneous externs 19-May-03 RMS Revised for new conditional compilation scheme 29-Sep-02 RMS Added vector change/display support New data structures 30-May-02 ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19567.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19567.jsonl"}]
import asyncio import aio http import json from events_service.models import Event, EventsProvider class ImportEvents(Command): """ Import events from IT KPI Site """ def __init__(self, app): super().__init__('import', app) def run(self, app, args): loop.run_until_complete(self...
[{"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-20069.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-20069.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en...
Is it possible to setup a DataGrid (SWF) to resize to the optimal size? Question: Where "optimal size" is "all rows and columns are visible, but not more". (e.g. no dark gray background is visible) Edit: To clarify: I dont want to auto resize the columns. I have fixed width columns and rows. I want to have the whole c...
[{"idx": "Is_it_possible_to_setup_a_DataGrid_(SWF)_to_resize_to_the_optimal_size?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-24968.jsonl"}, {"idx": "Do_any_Oracle_.NET_connectors_provide_the_line_number_of_SQL_errors?", "domain": "stack_exchang...
KivyMD: Widget Text is not updating no matter how it is tried Question: first off I'm only learning Python and Kivy for a very short time, so that explains why the code surely looks not well structured to you. I am open to suggestions, but I'm actually here with a concrete problem in Kivy/KivyMD. Also I'm sure you thi...
[{"idx": "KivyMD:_Widget_Text_is_not_updating_no_matter_how_it_is_tried", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-21950.jsonl"}]
use crate::pag; use timely::dataflow::ProbeHandle; use timely::dataflow::operators::probe::Probe; use timely::dataflow::channels::pact::Pipeline; use timely::dataflow::operators::generic::OutputHandle; use timely::dataflow::operators::generic::operator::Operator; use timely::dataflow::Scope; use timely::dataflow::Stre...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13558.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13558.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
How do I transform the list? Question: Say I have a list like the one below. <code>['butter', 'potatos', 'cheese', ['butter', 'potatos'], ['butter', 'cheese'], ['potatos', 'cheese']] </code> How can I change the list to one below where the two words combinations becomes one word? <code>['butter', 'potatos', 'cheese'...
[{"idx": "How_do_I_transform_the_list?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22278.jsonl"}, {"idx": "Asymptotics_and_logarithmic_exponents", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source...
numbers: base conversion ------------------------ Statement: Convert -d (base 14) to base 8. Soln: -15 Statement: What is -216124 (base 9) in base 7? Soln: -1045330 Statement: 305340 (base 9) to base 2 Soln: 101100001101001111 Statement: What is 101154 (base 13) in base 6? Soln: 12002120 Statement: Convert 202200 (base...
[{"idx": "txt360/numbers__base_conversion_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}, {"idx": "txt360/numbers__base_conversion_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-10.jsonl"}]
Q: lenovo g710 usb not working I have an issue with my USB ports, all ports have power but are not working. $ lsusb $ lsusb -v Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceSubClass 0 bMaxPacketSize0 64 idProduct ...
[{"idx": "https://askubuntu.com/questions/1210162", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-27975.jsonl"}, {"idx": "https://askubuntu.com/questions/149054", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exch...
A problem with cjkutf8 and pst-eucl Question: The following MWE cannot be compiled. You can see the error messages by yourself. <code>\documentclass[pstricks,border=12pt]{standalone} \usepackage{CJKutf8} \usepackage{pst-eucl} \def\kor#1{% \begin{CJK}{UTF8}{mj} #1% \end{CJK}} \begin{document} \begin{pspicture}(7,8) ...
[{"idx": "A_problem_with_cjkutf8_and_pst-eucl", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-3597.jsonl"}, {"idx": "echo_SQL_PDO_object_in_php_foreach_loop", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en",...
r"""Tool to convert a JAX function to serialized representations. This script is meant to be used as part of a genrule that converts a JAX program into an IR that can be consumed by another system (e.g. a compiler). Convert to HLO ============== For example, you can generate an HLO proto for the XLA compiler. The HL...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7930.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7930.jsonl"}]
#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_INTERNAL_WAIT_FOR_CONSISTENCY_H #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_INTERNAL_WAIT_FOR_CONSISTENCY_H #include "google/cloud/bigtable/admin/bigtable_table_admin_connection.h" namespace google { namespace cloud { namespace bigtable_admin_internal { GOOGLE_CLOUD_C...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16214.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16214.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
* */ /** * \mainpage SMC SRAM Example * * \section Purpose * * This example shows how to configure the Static Memory Controller (SMC) * for SRAM, and do write and read operations to check the configuration. * * \section Requirements * * This package can be used with SAM evaluation kits. * * \section Descr...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15946.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15946.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
import { Flobro } from '../src' import { UUID } from '../src/domain/interfaces/custom-types' import { Link } from '../src/domain/models/builder/link' import { Block } from '../src/domain/models/builder/block' import { LinkSocket } from '../src/domain/models/builder/link.socket' import { DEFAULT_BLOCK_CAN_DELETE, DE...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18099.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18099.jsonl"}]
#[cfg(not(target_os = "fuchsia"))] mod not_fuchsia; #[cfg(not(target_os = "fuchsia"))] pub use not_fuchsia::{hard_coded_security_context, Hoist, HostOvernet, DEFAULT_ASCENDD_PATH}; #[cfg(target_os = "fuchsia")] mod fuchsia; #[cfg(target_os = "fuchsia")] pub use fuchsia::Hoist; use anyhow::Error; use fidl_fuchsia_over...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13472.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13472.jsonl"}]
use super::namepart::{Category, NamePart}; use phf::phf_set; static VOWELLESS_SURNAMES: [&str; 4] = ["Ng", "Lv", "Mtz", "Hdz"]; static SINGLE_LETTER_CONJUNCTIONS: [&str; 4] = ["e", "y", "E", "Y"]; // Uncapitalized list should match UNCAPITALIZED_PARTICLES in `namecase.rs` // // Unfortunately, the duplication between...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13380.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13380.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
numbers: base conversion ------------------------ Situation: What is 36005 (base 8) in base 14? Calculation: 5857 Situation: Convert 1120223 (base 4) to base 2. Calculation: 1011000101011 Situation: -4646 (base 7) to base 14 Calculation: -896 Situation: What is 233624 (base 7) in base 9? Calculation: 63742 Situation: W...
[{"idx": "txt360/numbers__base_conversion_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-12.jsonl"}, {"idx": "txt360/numbers__div_remainder_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-12.jsonl"}]
import nmap # Création de l'objet scanner = nmap.PortScanner() # Input & Cast ip_addr = input("Target IP : ") type(ip_addr) # Display Options resp = input("""\n Options : 1)SYN ACK Scan 2)Comprehensive Scan \n""") # Scan de port : SYN if resp == '1': print("Nmap Version: ", scanner...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9855.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9855.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...