source stringclasses 26
values | date int32 2.02k 2.02k | text stringlengths 54 2.1M | token_count int32 50 1.32M | category stringclasses 3
values |
|---|---|---|---|---|
common_corpus_StackExchange | 2,018 | Type Mismatch during json parsing in flutter
I have a json which is returning as a List. I am trying to parse it but I am getting an error named
_InternalLinkedHashMap' is not a subtype of type 'List'
Here is my code - ... | 520 | code |
common_corpus_StackExchange | 2,018 | drawing from saved svg in jquery signature
I'm using the JQuery UI Signature library to take signatures on websites.
I can capture the signatures OK, but if I try and re-draw the signature (using saved as SVG), it doesn't work.
Console says
"Uncaught SyntaxError: Unexpected token < in JSON at position 0"
JSFiddle
v... | 541 | code |
common_corpus_StackExchange | 2,018 | Calculate the accuracy every epoch in PyTorch
I am working on a Neural Network problem, to classify data as 1 or 0. I am using Binary cross entropy loss to do this. The loss is fine, however, the accuracy is very low and isn't improving. I am assuming I did a mistake in the accuracy calculation. After every epoch, I am... | 7,368 | code |
common_corpus_StackExchange | 2,018 | cors error on netlify client site calling api endpoint
My site domain is example.com. In my client app I have this logic:
api_call('process.env.NODE_ENV' + '/jobs')
so after netlifly deployed the client app I can see it's calling the right api endpoint which is api.example.com. I've also tested it, it's alright. But s... | 559 | code |
common_corpus_Github Open Source | 2,018 | #
# ~/.config/fish/variables.fish
# Dotfiles
#
# Exported variables in fish shell.
#
# Editor
set --export EDITOR_CLI "vim" # vi vim
set --export EDITOR_GUI "code" # atom (vs)code mate mvim subl
set --export CLI_WAIT_FLAG "-f"
set --export GUI_WAIT_FLAG "-w"
# EDITOR or VISUAL, only one defined
# Use EDITOR for non-l... | 755 | code |
common_corpus_Github Open Source | 2,018 | <?php
namespace ITC\Weixin\Payment;
use ITC\Weixin\Payment\Contracts\HashGenerator as HashGeneratorInterface;
/**
* WeChat request signature generator.
*/
class HashGenerator implements HashGeneratorInterface
{
/**
* The hash secret.
*
* @var string
*/
private $secret;
/**
* @... | 220 | code |
common_corpus_StackExchange | 2,018 | How can I remove a bound script from a Google Sheets Spreadsheet?
I have a spreadsheet where I first created a bound script file (via Tools->Script Editor). I then (at a later time) was exploring the File menu and hit Make A Copy. I now get a "Select a project to open" with the original "myAddOns" and "Copy of myAddO... | 238 | code |
common_corpus_StackExchange | 2,018 | Is serialVerionUID really meaningful for Externalized classes?
I've read several of the questions and discussions about how Java controls access to Serializable objects. My question is about an Externalizable object and why the serialVersionUID should affect it. I expect that the answer is going to be at "because the E... | 1,204 | code |
common_corpus_Github Open Source | 2,018 | package com.oficina.saude.controller;
import java.sql.Date;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import or... | 550 | code |
common_corpus_Github Open Source | 2,018 | % File src/library/datasets/man/mtcars.Rd
% Part of the R package, https://www.R-project.org
% Copyright 1995-2018 R Core Team
% Distributed under GPL 2 or later
\name{mtcars}
\docType{data}
\alias{mtcars}
\title{Motor Trend Car Road Tests}
\description{
The data was extracted from the 1974 \emph{Motor Trend} US mag... | 561 | code |
common_corpus_StackExchange | 2,018 | How to perform some actions onclicking different subitems of listview
This is my ItemPriceActivity image:
Here I have used URL of another API which is hosted, as it is ease for me to use this URL because I frequently don't need to change the address so I have used that one. So never mind with the names of hospitals pre... | 766 | code |
common_corpus_Github Open Source | 2,018 | namespace DotNetStarter.Abstractions
{
using System;
/// <summary>
/// All dependency sorts derive from this and remember to create a constructor to pass dependencies
/// <para>This base class supports Type sorting, but not Assembly</para>
/// </summary>
[AttributeUsage(AttributeTargets.Class,... | 212 | code |
common_corpus_Github Open Source | 2,018 | using SendGrid;
using SendGrid.Helpers.Mail;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StockRequestApprovalWeb.Models;
using NLog;
namespace StockRequestApprovalWeb.Services
{
public class MailerService
{
private static Logger logger = LogManager.GetCurrentClassLog... | 356 | code |
common_corpus_Github Open Source | 2,018 | using System;
using System.Linq;
using Spark.Core;
using Spark.Engine.Core;
using Spark.Engine.FhirResponseFactory;
using Spark.Engine.Service.FhirServiceExtensions;
using Spark.Engine.Store.Interfaces;
using Spark.Service;
namespace Spark.Engine.Service.ServiceIntegration
{
public class FhirServiceFactory
{
... | 366 | code |
common_corpus_StackExchange | 2,018 | Vuejs - Child component method run before parent query done running
I'm working on a basic POC app that has a Solr search function on the front that finds products, and then links in the search results use a route to go to a Product detail page.
index.js
import Vue from 'vue'
import Router from 'vue-router'
import Sea... | 1,727 | code |
common_corpus_StackExchange | 2,018 | Python: replace "NA" in column with value from corresponding row value of another column (and vice versa)
I have the following dataframe:
RawTimes_df =
ETime XTime
0 2018-05-21 04:48:22 2018-05-21 05:52:45
1 2018-05-21 02:18:20 2018-05-21 03:19:53
2 2018-05-21 11:02:31 201... | 1,380 | code |
common_corpus_StackExchange | 2,018 | Activity Life Cycle- use in real project
We all know about the Activity lifecycle in Android? We see onCreate() Function in the start when the Activity is inflated. Now, how should we code in order to use the states of the Activity lifecycle properly so that we don't end up coding everything in onCreate()?
By Knowing ... | 277 | code |
common_corpus_Github Open Source | 2,018 | #![cfg(feature = "redshift")]
extern crate rusoto_core;
extern crate rusoto_redshift;
use rusoto_redshift::{Redshift, RedshiftClient, DescribeClustersMessage};
use rusoto_core::Region;
#[test]
fn should_describe_clusters() {
let client = RedshiftClient::simple(Region::UsEast1);
let request = DescribeClustersM... | 101 | code |
common_corpus_USPTO | 2,018 | According to this priority point, the conversion priority is high for a chunk which is stored in a hardware device which is in the activation state (ON). This is because the hardware device is already in the activation state and does not have to be placed in the activation state for the data conversion process, and thu... | 6,934 | general |
common_corpus_USPTO | 2,018 | Patient irradiation treatment plan verification system and method
ABSTRACT
A patient irradiation treatment plan verification system, the system constituted of: a treatment irradiation source arranged to output a treatment irradiation beam; a first detector; and a patient support member arranged to support a patient, ... | 8,690 | general |
common_corpus_Github Open Source | 2,018 | <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Currencies Model
*
* This class handles handles database queries regarding currencies.
*
* @package BitWasp
* @subpackage Models
* @category Currencies
* @author BitWasp
*
*/
class Currencies_model extends C... | 770 | code |
common_corpus_StackExchange | 2,018 | Html chart does not fit a small Android WebView
I have a WebView where Width and Height is 25dp. In this small WebView I want to show a circle digram from Chart.js, but it does not resize to fit the small WebView I have created.
the HTML for the circle chart:
<!doctype html>
<html>
<head>
<script src="chart... | 653 | code |
common_corpus_Github Open Source | 2,018 | import Ws from './Ws'
class Life extends Ws {
constructor (context, dimensions) {
super()
this.context = context
this.$store = this.context.$store
this.dimensions = dimensions
this.state = ''
this._getGrid = this._getGrid.bind(this)
this.start = this.start.bind(this)
this.continue =... | 389 | code |
common_corpus_Github Open Source | 2,018 | <%- include('../../partials/header'); -%>
<%- include('../../partials/nav'); -%>
<section>
<div class="searchBarResults">
<%- include('../../partials/searchBar') -%>
</div>
<div class="main-deck">
<%- include('../../partials/noresults', {recipes: recipes}); -%>
<% recipes.forEach( recipe => { %>
... | 132 | code |
common_corpus_Github Open Source | 2,018 |
use CTypes;
config const debug = false;
class C {
var x: int;
}
proc test() {
var c:unmanaged C?;
on Locales[numLocales-1] {
c = new unmanaged C(1);
}
var cc:unmanaged C? = c;
var loc = __primitive("_wide_get_locale", cc);
var adr = __primitive("_wide_get_addr", cc);
var b = __primitive("... | 666 | code |
common_corpus_Github Open Source | 2,018 | package hk.ust.gmission.services;
import hk.ust.gmission.core.Constants;
import hk.ust.gmission.models.Campaign;
import hk.ust.gmission.models.ModelWrapper;
import retrofit.http.GET;
import retrofit.http.Query;
import rx.Observable;
/**
* Created by bigstone on 22/12/2015.
*/
public interface CampaignService {
... | 128 | code |
common_corpus_Github Open Source | 2,018 | #include "TransformComponent2D.h"
#include "../../utils/log/Log.h"
namespace prx {
TransformComponent2D::TransformComponent2D()
: m_LocalMat(hpm::mat3::identity()),
m_WorldMat(hpm::mat3::identity()),
m_AnchorMat(hpm::mat3::identity()),
m_Position(0.0f),
m_Scale(1.0f),
m_RotationAngle(0.0f),
m_RotationRa... | 513 | code |
common_corpus_StackExchange | 2,018 | MySQL: Delete rows from either of two tables
I have two tables setup like this:
user_users
ID ColA ColB
55 This That
56 Other Stuff
user_meta
ID UserID MetaName MetaValue
1 56 some_name some_value
2 56 other_name other_vaue
3 99 this_too equals_this
So,... | 681 | code |
common_corpus_Github Open Source | 2,018 | # -*- coding: utf-8 -*-
# -------------------------------------------------------------------------
# This is a sample controller
# this file is released under public domain and you can use without limitations
# -------------------------------------------------------------------------
from plugin_introspect import tuto... | 1,445 | code |
common_corpus_Github Open Source | 2,018 | package state
import (
"strconv"
)
// Type state type
type Type uint8
// ToStr convert state.Type into string
func ToStr(state Type) string {
return strconv.Itoa(int(state))
}
// IsReserved check if given state is reserved. These cannot be used for custom states.
// Custom states starts at 11 and ends at 255. cus... | 251 | code |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 118