text
stringlengths
4.4k
422k
metadata
stringlengths
39
6.04k
arithmetic: add or sub ---------------------- Prompt: Work out -5 + -4768342.0986241. Sol: -4768347.0986241 Prompt: Work out 0.02 + -6.1054. Sol: -6.0854 Prompt: Put together -0.05427418 and 2542865. Sol: 2542864.94572582 Prompt: Add together 6 and 0.6834. Sol: 6.6834 Prompt: Add together 196.054 and -192.5189. Sol: 3....
[{"idx": "txt360/arithmetic__add_or_sub_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-3.jsonl"}, {"idx": "txt360/algebra__linear_1d_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-3.jsonl"}]
from fxpt.fx_utils.utils import pathToSlash try: from fxpt.qt.pyside import QtGui except ImportError: QtGui = None try: import maya.cmds as m except ImportError: m = None # style not finished TOOLBAR_BUTTON_STYLE = """ QToolButton:checked{ color: #000000; background-color: #5c5c5c; borde...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7974.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7974.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
$catresult = mysqli_query($conn_vui, $catquery); if (!$catresult) { die('Could not query:' . mysqli_error()); } while ($cat = mysqli_fetch_assoc ($catresult)){ $catdata = array( 'title'=>$cat['name'], 'subtitle'=> $cat['count'], 'link'=>$cat['link'], 'image'=>$cat['thumbnail'],...
[{"idx": "14783039", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5.jsonl"}, {"idx": "14779369", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5.jsonl"}]
mod content; mod header; mod index; mod sidebar; use sycamore::prelude::*; use sycamore_router::{BrowserRouter, Route}; #[derive(Route)] enum Routes { #[to("/")] Index, #[to("/<_>/<_>")] Docs(String, String), #[not_found] NotFound, } #[component(App<G>)] fn app() -> Template<G> { template...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14512.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14512.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
"""The tests for Vacuum device actions.""" import pytest from homeassistant.components.vacuum import DOMAIN from tests.common import ( MockConfigEntry, assert_lists_same, async_mock_service, mock_device_registry, mock_registry, async_get_device_automations, ) @pytest.fixture def device_re...
[{"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-20317.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-20317.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en...
Having a hard time trying to use Retrofit Question: I am trying to get some strings from this nested json using Retrofit. <code>{ "items": [ { "track": { "album": { "artists": [ { "name": "JWestern" } ], "images": [ { ...
[{"idx": "Having_a_hard_time_trying_to_use_Retrofit", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-21971.jsonl"}, {"idx": "CSS_-_Make_text_fit_to_div_width_and_be_responsive", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer":...
Gitolite ACL partition activation with fstab ? Question: I don't understand and i don't find any information about ACL and gitolite. In first intention, i want to install gitosis, which need instalation of <code>apt-get install ACL package</code> for debian, and activation of acl into fstab file. With gitolite, a gre...
[{"idx": "Gitolite_ACL_partition_activation_with_fstab_?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-4582.jsonl"}, {"idx": "Can_only_see_the_traffic_of_the_host_in_Wireshark?", "domain": "stack_exchange", "domain2": "stackexchange", "header_foot...
import { Client, Message } from "discord.js"; import { ICommand } from "../../handlers/commandsHandler"; export class ping implements ICommand { name: string; description: string; constructor() { this.name = "ping"; this.description = "Ping!" } execute(params: {message: Message, cli...
[{"idx": "141261", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16708.jsonl"}, {"idx": "661017", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16708.jsonl"}, {"idx": "2001779", "domain": "software", "domain2": "", "header_foote...
polynomials: evaluate composed ------------------------------ Example: Let k(m) = m**3 - 6*m**2 - 9*m + 9. Let p be (-7)/(7/(-6)) - -1. Calculate k(p). Math A: -5 Example: Let r = -74 - -79. Let q(w) be the third derivative of -w**5/60 + 7*w**4/24 - w**3/6 - 23*w**2. What is q(r)? Math A: 9 Example: Let s be 3/(-5)*150...
[{"idx": "txt360/polynomials__evaluate_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/numbers__gcd_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}]
use super::Config; use super::containers::Container; use config::builders::Source as S; fn find_name(name: &str, cont: &Container, cfg: &Config) -> Result<(), String> { for step in &cont.setup { use config::builders::Builder::*; match step { &Container(ref subname) => { ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14102.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-14102.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
Escaping characters within AMPscript /Javascript hybrid Question: We have added a javascript calendar to a page otherwise coded within ExactTarget using AMPscript.The calendar is fullcalendar.js and was impressed how easily it worked to create our lists of events. Challenges of course appeared only when connecting to ...
[{"idx": "Escaping_characters_within_AMPscript_/Javascript_hybrid", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-7244.jsonl"}, {"idx": "Transistor_setup_for_large_motor_circuit", "domain": "stack_exchange", "domain2": "stackexchange", "header_foote...
```python # coding: utf-8 import datetime from dartcms.utils.fields import RteField from django.db import models @python_2_unicode_compatible class FeedType(models.Model): class Meta: app_label = 'feeds' verbose_name = _('Feed type') verbose_name_plural = _('Feed types') def __st...
[{"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12714.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12714.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en...
Flow Apex Action - return multiple elements? Question: I have a flow and due to the complexity of the logic, I moved some of the logic into apex (However I need to use minimum apex). I'm looping through some records and finding related records (I need only one to be added to the list). And if there are no records foun...
[{"idx": "Flow_Apex_Action_-_return_multiple_elements?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-823.jsonl"}, {"idx": "Unable_to_scaffold_\u201cdatetime\u201d_type_columns_from_MySQL_in_.net_core_3.1", "domain": "stack_exchange", "domain2": "s...
numbers: lcm ------------ Topic: Calculate the least common multiple of 287 and 7749. Key: 7749 Topic: Calculate the least common multiple of 11 and 59. Key: 649 Topic: What is the common denominator of 43/6 and -49/867? Key: 1734 Topic: What is the common denominator of -75/10604 and 59/376? Key: 996776 Topic: Calcula...
[{"idx": "txt360/numbers__lcm_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-3.jsonl"}, {"idx": "txt360/numbers__gcd_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-3.jsonl"}]
### Study this set of division, multiplication, subtraction, addition fundamental math study guide: 842 + 754 = 1596 ### 193 - 905 = -712 ### 259 - 1736 = -1477 ### 750 - 1974 = -1224 ### 2221 + 116 = 2337 ### 1891 + 322 = 2213 ### -202 / 1320 = -0.15 ### 2011 - 1193 = 818 ### 2212 * -58 = -128296 ### 1814 ...
[{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}]
### Here are set of subtraction, addition, division, multiplication arithmaic examples: 2071 - 1139 = 932 ### 595 / 1220 = 0.49 ### 468 / 1227 = 0.38 ### 1084 - 1097 = -13 ### 1910 + 1092 = 3002 ### 2223 * 1939 = 4310397 ### 156 + 2195 = 2351 ### 676 - 1499 = -823 ### 1525 - 2133 = -608 ### 1209 * 11 = 132...
[{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}]
Selecting unique rows in a set of two possibilities Question: The problem itself is simple, but I can't figure out a solution that does it in one query, and here's my "abstraction" of the problem to allow for a simpler explanation: I will let my original explenation stand, but here's a set of sample data and the resul...
[{"idx": "Selecting_unique_rows_in_a_set_of_two_possibilities", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-12406.jsonl"}, {"idx": "How_is_it_possible_for_spammers_to_keep_pestering_me_with_FAKE_domains_when_all_e-mail_sending_providers_have_these...
#!/usr/bin/env python import os import re from functools import reduce import pandas as pd def get_place_names(data_dir): places = [] for fn in os.listdir(data_dir): if not fn.endswith('.xlsx'): continue print('.', fn) fn = os.path.join(data_dir, fn) df = ge...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9829.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9829.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
from amitools.binfmt.BinImage import * from ELFFile import * from ELF import * from ELFReader import ELFReader from DwarfDebugLine import DwarfDebugLine class BinFmtELF: """Handle Amiga m68k binaries in ELF format (usually from AROS)""" def is_image(self, path): """check if a given file is a supported ELF fi...
[{"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19993.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-19993.jsonl"}, {"idx": "", "domain": "software", "domain2": "", "header_footer": "", "lang": "en...
#!/bin/bash source utils.sh sharedir=${AMK}/share cwd=$PWD inputfile='amk.dat' awk '{print $0}' $1 > tmp_file awk 'BEGIN{print "Labels"};NF==4{print $1}' $1 > labels file=tmp_file ## read_input ## elements=${sharedir}/elements createMat.py $file 1 $nA echo "1 $natom" | cat - ConnMat | cat - ConnMat | sprint2.exe > ...
[{"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...
Analog and Digital Output protection? Question: I know it's important to protect analog and digital inputs. My question is should you also protect outputs, both analog and digital? For the inputs, right now I'm using clamping diodes, an MOV, a series resistor, and a series ferrite bead for high frequency noise rejecti...
[{"idx": "Analog_and_Digital_Output_protection?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-15915.jsonl"}, {"idx": "Non-greedy_Oracle_SQL_regexp_replace", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en",...
import { Injectable, HttpException, HttpStatus, Logger } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { FindManyOptions, FindOneOptions } from 'typeorm'; import { DiarioDTO } from '../service/dto/diario.dto'; import { DiarioMapper } from '../service/mapper/diario.mapper'; import { D...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4923.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4923.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
GitLab CI can't access Vault Question: GitLab Community Edition 14.2.7 <code>curl -s -k -X GET [IDX] Vault: Created a secret: <code>vault kv put secret/projects/test/mariadb login=user password=pass</code> Created a policy: <code>vault policy write project-test - <<EOF path "secret/projects/test/*" { capabilities =...
[{"idx": "GitLab_CI_can't_access_Vault", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-22483.jsonl"}, {"idx": "why_CPU_is_utilizing_this_much_when_I_run_xcode", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en...
import { useFormikContext, Field } from 'formik'; import { FormControl } from '@/portainer/components/form-components/FormControl'; import { Input } from '@/portainer/components/form-components/Input'; import { SwitchField } from '@/portainer/components/form-components/SwitchField'; import { TextTip } from '@/portaine...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3212.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3212.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
#### File: wackymaster/Snake-Tensorflow/Evaluate.py ```python import keras import pygame import random import numpy as np from numpy import genfromtxt #file_name = str(input("Enter Model: ")) + '.model' #print("Read CSV from: ", file_name) #fit_model = genfromtxt(file_name, delimiter=',') fit_model = keras.mo...
[{"idx": "wackymaster/Snake-Tensorflow", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8970.jsonl"}, {"idx": "waissbluth/untiler", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8970.jsonl"}]
import { ServiceValues } from '@models/Service'; import archiver from 'archiver'; import fs from 'fs-extra'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import path from 'path'; import { TsconfigPathsPlugin } from 'tsconfig-paths-webpack-plugin'; import { Manifest as WebExtManifest } from 'webextension-polyfil...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6187.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6187.jsonl"}]
// // hash_map_managed.h // // // This is an open addressing hash table. Closed hashing with chaining can be // slow due to lots of malloc calls. The probing is just simple linear // probing. The max load factor is 0.5, in order to maintain reasonable // lookup times. // // This is a hash_map so it is a set o...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4453.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4453.jsonl"}]
#include <iostream> #include <vector> #include <cstdlib> #include <limits> #include <algorithm> #include <unistd.h> const int MAX[5] = {20, 200, 2000, 20000}; using namespace std; *** struct para guardar informações do máximo, mínimo e o f(n) de cada algoritmo que seja usado struct values { int max; int mi...
[{"idx": "1222453", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16716.jsonl"}, {"idx": "8061", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-16716.jsonl"}]
numbers: is factor composed --------------------------- Scenario: Suppose 3*k = -5*n + 3*n + 158, 2*n = -2*k + 104. Does 17 divide (-205)/(-3) - 18/k? →: True Scenario: Let z = -153 - -149. Is (3 + z)/(2/(-332)) a multiple of 8? →: False Scenario: Let y(w) = -1 + 8 + 6*w - 7*w**2 + 6*w**2. Let z = 13 - 7. Does 4 divide...
[{"idx": "txt360/numbers__is_factor_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-3.jsonl"}, {"idx": "txt360/calculus__differentiate_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-3.jsonl"}]
Q: How can I create hindrances to radio waves? How can I create hindrances to radio waves? A: Any conductive material will block any EM radiation, including radio waves. However, the thickness of material required to fully block the radiation depends on the wavelength of the radiation and the properties of the materia...
[{"idx": "https://physics.stackexchange.com/questions/1094", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-10326.jsonl"}, {"idx": "https://salesforce.stackexchange.com/questions/280085", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en...
### Think deeply about this set of multiplication, subtraction, addition, division math exercises: 456 + 1973 = 2429 ### 1655 * 703 = 1163465 ### 2090 - 373 = 1717 ### 328 / 12 = 27.33 ### -893 / -780 = 1.14 ### 380 / 992 = 0.38 ### 830 - 1031 = -201 ### 476 - 299 = 177 ### 1149 * 768 = 882432 ### 1031 / 19...
[{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}]
Q: Can I have different color on half of text using css or js I want to have 2 different colors on text on different halves i.e. upper half of text of different color and other half of other. Like in this image..<|endoftext|>Q: Filling missing values for categorical feature In case of continuous variable, the missing v...
[{"idx": "https://stackoverflow.com/questions/34840419", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-6759.jsonl"}, {"idx": "https://stats.stackexchange.com/questions/175398", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source...
import { input, output, config, build } from "../proc"; import { tokenize, wrap } from "@designto/token"; import { Widget } from "@reflect-ui/core"; import * as toreact from "@designto/react"; import * as tovanilla from "@designto/vanilla"; import * as toflutter from "@designto/flutter"; import { fetch_all_assets, ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3960.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3960.jsonl"}]
#### File: linode-cli/linodecli/configuration.py ```python from __future__ import print_function import argparse try: # python3 import configparser except ImportError: # python2 import ConfigParser as configparser from requests import get import os import sys ENV_TOKEN_NAME='LINODE_CLI_TOKEN' CONFIG_...
[{"idx": "alxbl/linode-cli", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8291.jsonl"}, {"idx": "alyona-vishnoi/python", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8291.jsonl"}]
import { Where } from "./where" import { Table } from "../database-classes/table" import { queryBuilder } from "./base" /** * Builds a standard DELETE query */ export class Delete extends queryBuilder{ /** * * @param where - Where object's field,verb,value params used to filter the rows for deletio...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3146.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-3146.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
extern crate rand; use rand::Rng; use super::super::types::cell::Cell; use super::super::types::grid::Grid; pub fn generate<T>(grid: &mut Grid<T>) where T: Cell + Clone { grid.visit(|grid, cell| { let mut cells: Vec<T> = Vec::new(); if cell.x() < (grid.x() - 1) { cells.push(grid[...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13983.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13983.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
// < [IDX] cardboard_math::*; use cardboard_oogl as oogl; use cardboard_oogl::traits::*; use prelude_plus::*; use crate::globals::SharedGlobals; use crate::input::Key; use crate::profiling::AverageTimeSampler; use crate::renderer::*; const GRID_SIZE: Vec2u32 = vec2(128, 64); // const GRID_SIZE: Vec2u32 = vec2(64, 32)...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13865.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13865.jsonl"}]
import * as fs from 'fs' import * as path from 'path' import { Circuit } from 'snarkjs' const compiler = require('circom') import { str2BigInt } from './utils' import { config } from 'maci-config' import { genBatchUstInputs, compileAndLoadCircuit, } from '../' import { processMessage, } from 'maci-core...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18524.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18524.jsonl"}]
Problems with makeObjectsPerformSelector inside and outside a class? Question: A friend and I are creating a card game for the iPhone, and in these early days of the project, I'm developing a Deck class and a Card class to keep up with the cards. I'm wanting to test the shuffle method of the Deck class, but I am not a...
[{"idx": "Problems_with_makeObjectsPerformSelector_inside_and_outside_a_class?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-8772.jsonl"}, {"idx": "How_to_find_out_if_we_are_using_really_48,_56_or_64_bits_pointers", "domain": "stack_exchange", "do...
Sorting array of different objects Question: <code>myArray = [cat, red ,dog, blue, horse, yellow tiger, green ] </code> How can I sort this array such that colour is displayed first followed by animals like this: <code>myArray = [red, blue, yellow, green, cat, dog, horse, tiger] </code> Comment: Just sort by type Co...
[{"idx": "Sorting_array_of_different_objects", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-76.jsonl"}, {"idx": "Android_-_Communication_between_two_services_in_the_same_application", "domain": "stack_exchange", "domain2": "stackexchange", "header_...
import csv import os import tempfile import unittest import warnings from kbcstorage.buckets import Buckets from kbcstorage.tables import Tables class TestBuckets(unittest.TestCase): def setUp(self): self.buckets = Buckets(os.getenv('KBC_TEST_API_URL'), try: raise ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10951.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10951.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
```c #ifndef CHROMEOS_SERVICES_NETWORK_CONFIG_PUBLIC_CPP_CROS_NETWORK_CONFIG_TEST_HELPER_H_ #define CHROMEOS_SERVICES_NETWORK_CONFIG_PUBLIC_CPP_CROS_NETWORK_CONFIG_TEST_HELPER_H_ #include <memory> #include "base/macros.h" #include "chromeos/network/managed_network_configuration_handler.h" #include "chromeos/network/n...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12611.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12611.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
import { Gamepad } from '../client/gamepad' import { Keyboard } from '../client/keyboard' import { APINotSupportedError } from '../exception/APINotImplementedError' import { DisplayMediaAPINotSupported } from '../exception/DisplayMediaAPINotSupported' import { API, BootOpt, System } from '../system' import { UserMediaA...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-760.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-760.jsonl"}]
### Description: 2.1 Scalars, Vectors, Matrices and Tensors numpy package has a lot of useful stuffs for linear algebra. ### Code: ``` import numpy as np``` ### Output: <empty_output> ### Description: A scalar is a single number. ### Code: ``` x = 1 x``` ### Output: <empty_output> ### Description: A vector...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6606.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-6606.jsonl"}]
numbers: is prime ----------------- Problem #: Is 32589604727 prime? Clarification: False Problem #: Is 34490649 composite? Clarification: True Problem #: Is 239881940299 a composite number? Clarification: True Problem #: Is 61513 composite? Clarification: True Problem #: Is 31481333 a prime number? Clarification: Fals...
[{"idx": "txt360/numbers__is_prime_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}, {"idx": "txt360/numbers__base_conversion_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-11.jsonl"}]
JSON PHP to JSON Python Question: I am converting my php over to python. In my php I have (this has always work with my iPhone app): <code>... $profile = mysql_fetch_array($query_result, MYSQL_ASSOC); $profile_json = array(); $profile_json[] = $profile; echo json_encode(array('success' => 1, 'myProfile' => $profile_j...
[{"idx": "JSON_PHP_to_JSON_Python", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20848.jsonl"}, {"idx": "WMI_query_escape_single_quote", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exc...
Validation method with outliers Question: I have a method for prediction in a regression problem with outliers. I'd like to make a validation of my approach. How to make it considering that I need to have outliers in train and test datasets? Comment: Why do you believe that outliers need to be handled differently from...
[{"idx": "Validation_method_with_outliers", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-2457.jsonl"}, {"idx": "spawn_world_after_gzserver_start", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": ...
import gc import pandas as pd import pytest import scipy import cudf import cugraph # python 3.7. import warnings warnings.filterwarnings("ignore", category=DeprecationWarning) import networkx as nx def compare_series(series_1, series_2): if (len(series_1) != len(series_2)): print("Seri...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11536.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-11536.jsonl"}]
How to change the cell value in a Data Grid when clicked on the cell Question: I have created a Data Grid of 17 columns and 65520 rows for some application in form based application in c#. when ever I click on any of the data grid cell its value should change from 0 to 1. I have gone through the definitions for below ...
[{"idx": "How_to_change_the_cell_value_in_a_Data_Grid_when_clicked_on_the_cell", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-7001.jsonl"}, {"idx": "Applic._Of_derivatives", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "...
MySQL: select all rows where just the name is distinct Question: I'm currently trying to select unique entries in only the name column. I have tried using this query but it will not return prices that are the same as well. I've tried other variations with no success either. <code>SELECT DISTINCT name, price from table...
[{"idx": "MySQL:_select_all_rows_where_just_the_name_is_distinct", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-29189.jsonl"}, {"idx": "Where_can_i_learn_desiging/coding_re-sizable_html_pages_only_using_div_tags?", "domain": "stack_exchange", "doma...
import { Color, colorNewFromRGBA, colorLerp, colorNewCopy, White, colorAdd } from '../Color'; import { lerp } from '../MathHelpers'; function colorNorm(r: number, g: number, b: number, a: number = 255.0): Color { return colorNewFromRGBA(r/255.0, g/255.0, b/255.0, a/255.0); } export interface ColorSet { amb: C...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5954.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-5954.jsonl"}]
Exporting the blend file as a python script Question: I am looking to automate the steps I took to build the model in the blender GUI as a python script. You can think of it like how it would be if blender had a 'export as .py' which I could take and execute to render the model. Blender does spit out some python in ...
[{"idx": "Exporting_the_blend_file_as_a_python_script", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-12098.jsonl"}, {"idx": "How_to_fix_tensor_dimensionality_error_on_pytorch?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer...
import datetime import webob import webob.dec import nova.api import nova.api.openstack.auth import nova.auth.manager from nova import context from nova import db from nova import test class Test(test.TestCase): def setUp(self): def tearDown(self): f.add_user(user) req.h...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8234.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8234.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
Q: nodejs server error with selenium-webdriver Getting below error when starting nodejs server with selenium webdriver ubuntu@ip-10-10-10-193:~/testenvoy$ node app.js /home/ubuntu/testenvoy/node_modules/selenium-webdriver/index.js:115 static createSession(...args) {} ^^^ SyntaxError: Un...
[{"idx": "https://stackoverflow.com/questions/40492582", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-6318.jsonl"}, {"idx": "https://stackoverflow.com/questions/42938782", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "...
Q: My laptop display doesn't work, but does emit a "black light" The display of my laptop, a Dell inspiron 1545 PP41L, all of a sudden didn't show any picture anymore. But it does give of light, but everything is black. What I was doing: Trying to restore the MBR. What does work: External screens, like TV's or PC scre...
[{"idx": "https://superuser.com/questions/1383706", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-7884.jsonl"}, {"idx": "https://superuser.com/questions/1415701", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exch...
* this program; * #include "DRM.h" #include "types.h" #include "misc.h" #include "str.h" #include "printf.h" #include "kiwi_assert.h" #include "coroutines.h" #include "data_pump.h" #include "timer.h" #include "shmem.h" #ifdef DRM_SHMEM_DISABLE void drm_next_task(const char *id); #else #define drm_next_tas...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12935.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12935.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
Pass variable to button vue js laravel Question: I am trying to pass a variable (id) of a specific comment that's in a v-for to a button that's rendered into a blade syntax. I managed to post and get comments but i am currently trying to delete specific ones based on their id. I have been struggling on how to get it t...
[{"idx": "Pass_variable_to_button_vue_js_laravel", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-14066.jsonl"}, {"idx": "How_to_use_3rd_party_method_that_takes_callback_in_webdriverio", "domain": "stack_exchange", "domain2": "stackexchange", "header...
### Study this set of subtraction, division, addition, multiplication math insights: Eva work as a sales clerk. She is paid a salary of 8081 a week plus 2% commission on sales over 4000. Find her gross pay for a week in which her sales are 94005. Step-by-step solution: To calculate Eva's gross pay, we need to add h...
[{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}]
using System.Collections.Generic; using System.Threading.Tasks; using Tellma.Api.Templating; using Tellma.Model.Common; using Xunit; namespace Tellma.Api.Tests { public class TemplexServiceTests { [Theory(DisplayName = "Templex evaluates input to expected value ")] [InlineData("1", 1)] ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9277.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9277.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
Configurações de sistema em classe estática no Entity Framework Question: Estou tentando criar configurações para um sistema. Pensei em uma classe semelhante ao exemplo: Classe: <code>public static class Configuracoes { [DisplayName("Casas Decimais")] [Description("Informa o número de casas decimais que o si...
[{"idx": "Configura\u00e7\u00f5es_de_sistema_em_classe_est\u00e1tica_no_Entity_Framework", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-23759.jsonl"}, {"idx": "mvn_test_fails_because_of_Surefire_JDK_version?", "domain": "stack_exchange", "domain2":...
Q: set matplotlib 3d plot aspect ratio Setting the aspect ratio works for 2d plots: ax = plt.axes() ax.plot([0,1],[0,10]) ax.set_aspect('equal','box') But does not for 3d: ax.plot([0,1],[0,1],[0,10]) ax.set_aspect('equal','box') Is there a different syntax for the 3d case, or it's not implemented? A: If you know...
[{"idx": "https://stackoverflow.com/questions/8130823", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-6146.jsonl"}, {"idx": "https://stackoverflow.com/questions/12974630", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "s...
### Here are set of subtraction, addition, multiplication, division math insights: 1759 * 568 = 999112 ### 27 - 1747 = -1720 ### 1416 + 47 = 1463 ### -538 / 81 = -6.64 ### 2112 - 2325 = -213 ### 1591 - 2044 = -453 ### 2100 * 700 = 1470000 ### -928 / 198 = -4.69 ### 1632 - 1394 = 238 ### 2302 - 2056 = 246 #...
[{"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}, {"source": "ontocord-synthetic-math"}]
comparison: kth biggest ----------------------- Question: What is the smallest value in -3/2, -16, -0.71, 4/55? A: -16 Question: What is the third biggest value in 0.06, -3/2, -1/12, -0.3? A: -0.3 Question: Which is the fourth smallest value? (a) 2/19 (b) 0.5 (c) 2/21 (d) 6.36 (e) 10 (f) 1 A: f Question: Which is...
[{"idx": "txt360/comparison__kth_biggest_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-5.jsonl"}, {"idx": "txt360/numbers__list_prime_factors_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-5.jsonl"}]
Can we use yii1 extensions in yii2 Question: I want to use an auth extension in yii2. I found the same in yii1: [IDX] I use this extension in yii2? Be glad to any suggestions. Answer: Found this as a useful link. I could make some Yii 1.0 extensions work using this.<|endoftext|>Store WebSocket data in mysql Question...
[{"idx": "Can_we_use_yii1_extensions_in_yii2", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-19418.jsonl"}, {"idx": "Store_WebSocket_data_in_mysql", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source":...
arithmetic: mul div multiple ---------------------------- Q=: What is the value of 3/(-1)*2/(-2280)*-20? Calculation: -1/19 Q=: Calculate ((-12)/105)/(2/5). Calculation: -2/7 Q=: -4*35/(-28)*(-18)/15 Calculation: -6 Q=: -4*1*(-5)/(-30)*-6 Calculation: 4 Q=: 4*(-16)/(128/(-16)) Calculation: 8 Q=: What is the value of ((...
[{"idx": "txt360/arithmetic__mul_div_multiple_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-3.jsonl"}, {"idx": "txt360/arithmetic__add_or_sub_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-3.jsonl"}]
import logging import datetime as dt from src.utils import start_logging, read_latest TODAY = dt.datetime.today() _DEBUG = False def _get_list(item, errors='ignore'): """ Return a list from the item passed. If the item passed is a string, put it in a list. If the item is list like, then return it a...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9677.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9677.jsonl"}]
/// internally to parse regular expressions. Lucene converts each regular /// expression to a finite automaton containing a number of determinized /// states. /// /// You can use this parameter to prevent that conversion from /// unintentionally consuming too many resources. You may need to increase...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13870.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13870.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
import React from "react"; interface IWebExampleProps { github?: string; inactive: boolean; launched?: string; title: string; url: string; version?: string; versionLaunched?: string; } export default class WebExample extends React.Component<IWebExampleProps> { static defaultProps = { inactive: false, }; ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1585.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1585.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
/** * \file wasmtime/linker.h * * Wasmtime API for a name-based linker used to instantiate modules. */ #ifndef WASMTIME_LINKER_H #define WASMTIME_LINKER_H #include <wasm.h> #include <wasmtime/error.h> #include <wasmtime/store.h> #include <wasmtime/extern.h> #ifdef __cplusplus extern "C" { #endif /** * \typedef...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12820.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12820.jsonl"}]
measurement: conversion ----------------------- Q-: Convert 4.9039452ns to days. Resolution: 0.000000000000056758625 Q-: How many litres are there in 361.249 millilitres? Resolution: 0.361249 Q-: What is thirteen fifths of a microgram in nanograms? Resolution: 2600 Q-: Convert 605902.8 centuries to millennia. Resolutio...
[{"idx": "txt360/measurement__conversion_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/numbers__gcd_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}]
Draw a shape like this in picture Question: I want to draw a shape like in this picture and type text in it. How can I draw something like this in picture? I can't type text in the left div or right div. Here is my HTML: <code><div id="topline"></div> <div id="main"> <div id="left"></div> <d...
[{"idx": "Draw_a_shape_like_this_in_picture", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-2547.jsonl"}, {"idx": "DeleteCases_depending_on_all_elements", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "so...
How to use PalletB to save record from PalletA without PalletA knowing anything about internals of the saving in substrate and rust Question: I'd like to save a record from PalletA in PalletB by simply passing the raw data and waiting for the return. I have tried following: <code>// ./PalletB/lib.rs pub trait PutInSt...
[{"idx": "How_to_use_PalletB_to_save_record_from_PalletA_without_PalletA_knowing_anything_about_internals_of_the_saving_in_substrate_and_rust", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-11896.jsonl"}, {"idx": "How_to_Split_a_form_in_subsections_...
### Description: Logistic Regression Classification Using Linear RegressionLoad your data. ### Code: ``` from helpers import sample_data, load_data, standardize # load data. height, weight, gender = load_data() # build sampled x and y. seed = 1 y = np.expand_dims(gender, axis=1) X = np.c_[height.reshape(-1), weigh...
[{"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"}]
import I18n from 'i18n-js'; import {View } from 'native-base'; import React from 'react'; import computeStyleSheet from '../../../../ModalStyles'; import FilterContainerComponent, { FilterContainerComponentProps, FilterContainerComponentState } from './FilterContainerComponent'; import DialogModal from '../../../modal...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18929.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-18929.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
*/ /* @(#) $Id$ */ #ifdef DYNAMIC_CRC_TABLE local int crc_table_empty = 1; local uLongf crc_table[256]; local void make_crc_table OF((void)); /* Generate a table for a byte-wise 32-bit CRC calculation on the polynomial: Then adding polynomials one. taking the remainder. out is a one). Th...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4809.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4809.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
/* * rtmodel.h: * * Code generation for model "Parametric". * * * Target selection: grt.tlc */ #ifndef RTW_HEADER_rtmodel_h_ #define RTW_HEADER_rtmodel_h_ /* */ #include "Parametric.h"<|endoftext|>// // ==--== #ifndef _OPCODES_H_ #define _OPCODES_H_ enum ILopcodes { #d...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13046.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13046.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
Stubbing out parameters with pre-existing values in FakeItEasy Question: This is a bit of an odd one. I'm trying to stub a method which has out parameters, I don't care about what the parameters are so I'm ignoring the arguments. It looks like this: <code>List<Foo> ignored; A.CallTo(() => fake.Method(out ignored)) ....
[{"idx": "Stubbing_out_parameters_with_pre-existing_values_in_FakeItEasy", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20712.jsonl"}, {"idx": "Who_is_\"the_author_of_the_Shulchan_Aruch\"_in_this_teshuvah_of_Rashbash?", "domain": "stack_exchange", ...
import os import pickle import pytest import sys from packaging import version import numpy as np import pandas as pd import pandapower as pp import pandapower.networks as pn from pandapower.converter import from_ppc, validate_from_ppc, to_ppc from pandapower.converter.pypower.from_ppc import _branch_to_which, _gen_to...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7198.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-7198.jsonl"}]
import logging import re import shutil import os class LineEdit(object): """Helper for LineEditingFile that keeps track of one edit.""" def __init__(self, search, sub, *sub_args, **kwargs): if len(sub_args) > 0: sub = sub % sub_args flags = kwargs.get('flags', 0) self.patte...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10242.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10242.jsonl"}]
Is it ethical to claim experience with big data when the data isn't a part of the new advertising/social media/retail fad? Question: Obviously most employers, when hiring a data scientist, would prefer experience with big data and/or data science. But what can one safely assume they will acknowledge as experience? Le...
[{"idx": "Is_it_ethical_to_claim_experience_with_big_data_when_the_data_isn't_a_part_of_the_new_advertising/social_media/retail_fad?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-8103.jsonl"}, {"idx": "Ruby_on_Rails_route_for_wildcard_subdomains_t...
#### File: gopro-dashboard-overlay/bin/gopro-dashboard.py ```python import datetime import os from datetime import timedelta from pathlib import Path import progressbar from gopro_overlay import timeseries_process from gopro_overlay.arguments import gopro_dashboard_arguments from gopro_overlay.common import temp_file...
[{"idx": "SECtim/gopro-dashboard-overlay", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8857.jsonl"}, {"idx": "Sein-Jang/R2A", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-8857.jsonl"}]
vertical scrolling with fixed body Question: Here's the deal. I need a lot of pictures in one line. Too many to be on whole width of the site. So i need to apply horizontal scrolling. The problem is the header and footer. I need it to be fixed. <code><div style="background-color: green; height: 80%"> <div style="back...
[{"idx": "vertical_scrolling_with_fixed_body", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-20211.jsonl"}, {"idx": "How_to_get_unique_id_of_a_mouse", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source...
How do I replace a cell's contents when it matches a specific string? Question: I have this line working: <code>access$`Reading Score` <- gsub('NA', '', access$`Reading Score`) </code> However, I'd like to apply the same thing to 20+ more columns. Without having to explicitly write out all 20 column changes, is there ...
[{"idx": "How_do_I_replace_a_cell's_contents_when_it_matches_a_specific_string?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-23956.jsonl"}, {"idx": "Catching_thrown_Enum_Values", "domain": "stack_exchange", "domain2": "stackexchange", "header_foo...
*/ #include <cache.h> #include <console.h> #include <type.h> /* CLIDR Cache Level ID Register */ uint64_t get_value_clidr(void) { uint64_t val = 0; asm volatile("mrs %0, CLIDR_EL1" : "=r" (val)); return val; } /* SCTLR_EL3 Get control Register */ uint64_t get_value_sctlr_el3(void) { uint64_t val = 0; asm vo...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4316.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4316.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
algebra: linear 2d composed --------------------------- What if: Suppose 0 = -5*i - 5*l + 15, -2*l - 8 + 24 = 4*i. Solve o + 30 = -i*v, -v = 197*o - 195*o + 15 for v. Key: -5 What if: Let j = -44 - -44. Let h(v) = v**3 + 2*v**2 + v + 5. Let u be h(j). Solve -d = -3*d + 8, -u*y - 23 = -2*d for y. Key: -3 What if: Suppos...
[{"idx": "txt360/algebra__linear_2d_composed_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}, {"idx": "txt360/polynomials__simplify_power_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-14.jsonl"}]
Q: If I did instead of I had done? The context : Some guys are asking a guy why he chose to do something instead of something else he says "I couldn't do it (because it didn't feel appropriate to him) and I'm pretty sure people would be offended if I did that." So here I don't understand the use of if I did that since ...
[{"idx": "https://ell.stackexchange.com/questions/140017", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-28297.jsonl"}, {"idx": "https://mathematica.stackexchange.com/questions/30785", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en",...
# coding=utf-8 import sys import codecs from functools import wraps from StringIO import StringIO # Message types INFO = u'info' WARN = u'warn' STOP = u'stop' def strip_paint(payload): """ Removes any console specific color characters. Where ``payload`` is a string containing special characters used ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15680.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15680.jsonl"}]
Logarithm of singular matrices Question: I wanted to calculate following quantity: $X=Tr[\rho_1 \log[\rho_2]]$, as in the relative entropy. Here, $\rho_1, \rho_2$ are positive semidefinite matrices with non-orthogonal support (so that the thing does not diverge - terms like $0 \log[0]$ should be taken to zero, which i...
[{"idx": "Logarithm_of_singular_matrices", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-7721.jsonl"}, {"idx": "https://tex.stackexchange.com/questions/535980", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": ...
Nhibernate queryover (or lambda Linq) to add count of subquery in projection Question: given this table <code>TABLE A( IdA NUMERIC PRIMARY KEY ,DescA VARCHAR2(200) ) TABLE B( IdB NUMERIC PRIMARY KEY ,IdA NUMERIC ,DescB VARCHAR2(200) ) </code> i want to select <code>IdA , DescA , Count Of B For Each A </code> into cus...
[{"idx": "Nhibernate_queryover_(or_lambda_Linq)_to_add_count_of_subquery_in_projection", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-13562.jsonl"}, {"idx": "M\u00e9todos_Patch_com_Route_e_Authorize_-_webApi", "domain": "stack_exchange", "domain2":...
numbers: gcd ------------ Task: Calculate the greatest common factor of 1 and 727. Thus: 1 Task: Calculate the greatest common divisor of 35 and 189. Thus: 7 Task: What is the highest common divisor of 88232 and 492? Thus: 164 Task: What is the highest common divisor of 2870 and 9590? Thus: 70 Task: Calculate the highe...
[{"idx": "txt360/numbers__gcd_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-1.jsonl"}, {"idx": "txt360/comparison__closest_train", "domain": "math", "domain2": "", "header_footer": "", "lang": "en", "source": "math-1.jsonl"}]
app.controller('recipeController', function($scope,$timeout,$compile, $ http, API_URL) { // retrieve meals listing from API. // to show in dropdown $ http.get(API_URL + "meals/") $scope.meals = response; // console.log("Meals:", $scope.meals); }); //// loading units $ http.get(API_URL + "units...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15018.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-15018.jsonl"}]
#pragma once #include <memory> #include <tuple> #include <type_traits> #include "scripting/script.h" namespace script_runner_impl { /** * Helper function to get results of script. * * @param script * Script to get results from. * * @param result * Tuple to store results in. */ template <int I, int M, cl...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12973.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-12973.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
import { Reducer } from 'redux'; import { UserType, ActionBaseType } from '../commons/types'; import { put, takeLatest, call, take } from 'redux-saga/effects'; import { api } from '@belooga/belooga-ts-sdk'; import { createUploadFileChannel, getApiPath } from '../utils'; import { createSelector } from 'reselect'; import...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1995.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-1995.jsonl"}]
Significant drop in performance of Math.Round on x64 platform Question: I've noticed a very significant (~15x) drop in performance when using Math.Round to convert double to int while targeting x64 compared to x86. I tested it on 64 bit Windows on Core i7 3770K. Can anyone reproduce it? Is there any good reason why th...
[{"idx": "Significant_drop_in_performance_of_Math.Round_on_x64_platform", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-26468.jsonl"}, {"idx": "Aliasing_struct_and_array_the_C++_way", "domain": "stack_exchange", "domain2": "stackexchange", "header_f...
// #ifndef GENERICPERSISTENTMANAGER_H #define GENERICPERSISTENTMANAGER_H #ifdef _WIN32 #pragma once #endif #include "replay/replayhandle.h" #include "replay/ienginereplay.h" #include "replay/replayutils.h" #include "basethinker.h" #include "utllinkedlist.h" #include "utlstring.h" #include "KeyValues.h" #include "f...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4523.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-4523.jsonl"}]
import os.path as osp from confreader import read_conf_into_dict from org.continuousassurance.swamp.cli import SwampApiWrapper class Delete: try: if config_file and osp.isfile(config_file): else: self.config_file = osp.join(osp.dirname(__file__), ...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9682.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-9682.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2":...
Q: How do I restrict a second admin certain access? Hi I was wondering if there was a way to restrict access to certain plugins for a certain admin. For example. I want to have a second admin on my site, I want them to be able to access all plugins except for one plugin. Is there a way that I can make this happen? A:...
[{"idx": "https://wordpress.stackexchange.com/questions/308489", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en", "source": "stack_exchange-11503.jsonl"}, {"idx": "https://unix.stackexchange.com/questions/335340", "domain": "stack_exchange", "domain2": "", "header_footer": "", "lang": "en",...
Can WinRT use reflection to find and invoke superclass constructor? Question: I have the following Windows Runtime solution setup: In a DLL referenced by my EXE <code>public abstract class BaseClass { public BaseClass(Guid id, string name) { //... } } </code> In the EXE <code>public sealed class Deri...
[{"idx": "Can_WinRT_use_reflection_to_find_and_invoke_superclass_constructor?", "domain": "stack_exchange", "domain2": "stackexchange", "header_footer": "", "lang": "en", "source": "stack_exchange-14856.jsonl"}, {"idx": "How_to_compare_four_different_columns_and_delete_one_of_the_rows_if_they_are_a_duplicate_in_Excel?"...
```common-lisp ;;;; -*- mode: lisp; indent-tabs-mode: nil -*- ;;;; skein-mac.lisp -- implementation of the Skein MAC (in-package :crypto) (defclass skein-mac () ((value :accessor skein-value :initarg :value) (tweak :accessor skein-tweak :initarg :tweak) (cfg :accessor skein-cfg :initarg :cfg) (buffer :acc...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13242.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-13242.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...
# Find Proj # # If it's found it sets PROJ_FOUND to TRUE # and following variables are set: # PROJ_INCLUDE_DIR # PROJ_LIBRARY FIND_PATH(PROJ_INCLUDE_DIR proj_api.h) FIND_LIBRARY(PROJ_LIBRARY NAMES proj proj_i) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(PROJ DEFAULT_M...
[{"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10776.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2": "", "header_footer": "", "lang": "en", "source": "software-10776.jsonl"}, {"idx": "starcoderdata", "domain": "software", "domain2...