answer stringlengths 15 1.25M |
|---|
__global__ void /*{kernel_name}*/(/*{parameters}*/)
{
int _tid_ = threadIdx.x + blockIdx.x * blockDim.x;
if (_tid_ < /*{num_threads}*/)
{
/*{execution}*/
_result_[_tid_] = /*{block_invocation}*/;
}
} |
<?php
namespace Puli\Manager\Tests\Api\Package;
use Exception;
use <API key>;
use Puli\Manager\Api\Environment;
use Puli\Manager\Api\Package\InstallInfo;
use Puli\Manager\Api\Package\Package;
use Puli\Manager\Api\Package\PackageFile;
use Puli\Manager\Api\Package\PackageState;
use RuntimeException;
use Webmozart\Express... |
#!/usr/bin/env python2.7
import sys
for line in open(sys.argv[1]):
cut=line.split('\t')
if len(cut)<11: continue
print ">"+cut[0]
print cut[9]
print "+"
print cut[10] |
#ifndef <API key>
#define <API key>
#include <type_traits>
#include <memory>
namespace cxxu {
template <typename T>
struct <API key> : std::false_type
{
typedef T element_type;
static
element_type& deref(element_type& e)
{ return e; }
static
const element_type& deref(const element_type& e)
{... |
package by.itransition.dpm.service;
import by.itransition.dpm.dao.BookDao;
import by.itransition.dpm.dao.UserDao;
import by.itransition.dpm.entity.Book;
import by.itransition.dpm.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import o... |
<scri
<!DOCTYPE html>
<html lang="fr" itemscope="" itemtype="http://schema.org/Blog">
<head> <script>
if (window.parent !== window) {
if (typeof btoa !== "function") {
window.btoa = function (input) {
var str = String(input);
for (var block, charCode, idx = 0, map = chars, out... |
/**
* getRoles - get all roles
*
* @api {get} /roles Get all roles
* @apiName GetRoles
* @apiGroup Role
*
*
* @apiSuccess {Array[Role]} raw Return table of roles
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* [
* {
* "id": 1,
* "name": "Administrator",
* ... |
#include "icu.h"
#include "unicode/uspoof.h"
#define GET_SPOOF_CHECKER(_data) <API key>* _data; \
<API key>(self, <API key>, &<API key>, _data)
VALUE <API key>;
VALUE rb_mChecks;
VALUE <API key>;
typedef struct {
VALUE rb_instance;
USpoofChecker* service;
} <API key>;
static voi... |
layout: sieutv
title: it 227
tags: [ittv]
thumb_re: q7t1227
{% include q7t1 key="227" %} |
import { Component } from 'react';
import format from '../components/format';
import parse from 'date-fns/parse';
import getDay from 'date-fns/get_day';
import Media from 'react-media';
import Page from '../layouts/Page';
import TimelineView from '../components/TimelineView';
import ListView from '../components/ListVie... |
title: 3.5HDD/USB3.0/2.0TB/ HD-SG2.0U3WH-D6,980
author:
layout: post
date: 2016-06-10 23:00:10
permalink: /pc/<API key>.0u3wh-d-nttx-6980.html
categories:
- HDD
<div class="img-bg2 img_L">
<a href="//px.a8.net/svt/ejp?a8mat=ZYP6S+8IMA3E+S1Q+BWGDT&a8ejpredirect=//nttxstore.jp/_II_EL15275362" target="_blank"><img b... |
Explanation:
[home.js](https://github.com/vlad3489/ExampleOfCode/blob/master/home.js) - fragment code from project "Moe Misto"
[opening.js](https://github.com/vlad3489/ExampleOfCode/blob/master/opening.cs) - code from game |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "util/vulkan.h"
#include "util/window.h"
int main() {
// Create an instance of vulkan
createInstance("Vulkan");
setupDebugging();
getDevice();
openWindow();
createCommandPool();
createCommandBuffer();
... |
import { <API key> } from 'vue';
import { showModal } from '../../../modal/modal.service';
import { User } from '../../../user/user.model';
import { GameBuild } from '../../build/build.model';
import { Game } from '../../game.model';
import { GamePackage } from '../package.model';
interface <API key> {
game: Game;
... |
SET DEFINE OFF;
ALTER TABLE AFW_04_CONTX_ETEND ADD (
CONSTRAINT <API key>
FOREIGN KEY (REF_CONTX)
REFERENCES AFW_04_CONTX (REF_FIL_ARIAN)
ON DELETE CASCADE
ENABLE VALIDATE)
/ |
// detail/<API key>.hpp
#ifndef <API key>
#define <API key>
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#include <lslboost/asio/detail/config.hpp>
#if defined(BOOST_ASIO_HAS_IOCP)
#include <lslboost/utility/addressof.hpp>
#include <lslboost/asio/detail/bin... |
package Rakudobrew::ShellHook::Sh;
use strict;
use warnings;
use 5.010;
use File::Spec::Functions qw(catdir splitpath);
use FindBin qw($RealBin $RealScript);
use Rakudobrew::Variables;
use Rakudobrew::Tools;
use Rakudobrew::VersionHandling;
use Rakudobrew::ShellHook;
use Rakudobrew::Build;
sub get_init_code {
my $p... |
module.exports = (req, res, next) => {
req.context = req.context || {};
next();
}; |
'use strict';
angular.module('achan.previewer').service('imagePreviewService', function () {
var source;
var ImagePreviewService = {
render: function (scope, element) {
element.html('<img src="' + source + '" class="img-responsive" />');
},
forSource: function (src) {
source = src;
ret... |
require 'spec_helper'
describe Group do
# Check that gems are installed
# Acts as Taggable on gem
it { should have_many(:base_tags).through(:taggings) }
# Check that appropriate fields are accessible
it { should <API key>(:name) }
it { should <API key>(:description) }
it { should <API key>(:public) }
it... |
#ifndef DIMACSGENERATOR_H
#define DIMACSGENERATOR_H 1
#include <vector>
#include <fstream>
#include "cnfclause.h"
#include "cnfformula.h"
#include "satgenerator.h"
/** A very very basic DIMACS parser. Only parses for cnf formulas. */
class DimacsGenerator : public SatGenerator{
private:
std::string filename;
pu... |
# -*- coding: utf-8 -*-
# Keyak v2 implementation by Jos Wetzels and Wouter Bokslag
# hereby denoted as "the implementer".
# Based on Keccak Python and Keyak v2 C++ implementations
# by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni,
# For more information, feedback or questions, please refer to:
from StringI... |
layout: post
title: Summer Sailing
excerpt: Random photos of summer sailing and favorite anchorages.
categories: 2016-LakeSuperior
date: 2016-07-27
published: true
image:
ogimage: "2016/DSCF3171.jpg"
images-array:
- path: 2016/DSCF3080.jpg
label:
- path: 2016/DSCF3095.jpg
label:
- path: 2016/DSCF3096.jpg
... |
package deliver
import (
"testing"
"net/http"
"net/http/httptest"
"reflect"
)
func TestMiddlewareBasic(t *testing.T) {
d := New()
d.Use(<API key>(func(res Response, req *Request, next func()) {
res.Send("Hello")
}))
response, body := testMiddleware(t, d)
expect(t, body, "Hell... |
import _plotly_utils.basevalidators
class <API key>(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="bordercolor", parent_name="sankey.hoverlabel", **kwargs
):
super(<API key>, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,... |
ARG IMAGE_VERSION=release-0.11.3
FROM datosgobar/portal-base:$IMAGE_VERSION
MAINTAINER Leandro Gomez<lgomez@devartis.com>
ARG PORTAL_VERSION
ENV CKAN_HOME /usr/lib/ckan/default
ENV CKAN_DIST_MEDIA /usr/lib/ckan/default/src/ckanext-gobar-theme/ckanext/gobar_theme/public/user_images
ENV CKAN_DEFAULT /etc/ckan/default
WOR... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace jaytwo.Common.Futures.Numbers
{
public static class MathUtility
{
public static double StandardDeviation(IEnumerable<double> data)
{
var average = data.Average();
var <API key> ... |
using FFImageLoading.Forms.Sample.WinPhoneSL.Resources;
namespace FFImageLoading.Forms.Sample.WinPhoneSL
{
<summary>
Provides access to string resources.
</summary>
public class LocalizedStrings
{
private static AppResources _localizedResources = new AppResources();
public AppResourc... |
package com.aws.global.dao;
import java.util.ArrayList;
import com.aws.global.classes.Pizza;
import com.aws.global.common.base.BaseDAO;
import com.aws.global.mapper.PizzaRowMapper;
public class PizzaDAO extends BaseDAO{
//SQL Statement when user adds a pizza to his inventory
public void addPizza(String pizzaNam... |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "DataStatistic.h"
#import "TalkingData.h"
#import "TalkingDataSMS.h"
FOUNDATION_EXPORT double <API key>;
FOUNDATION_EXPORT const unsigned char <API key>[]; |
var test = require('./tape')
var mongojs = require('../index')
test('should export bson types', function (t) {
t.ok(mongojs.Binary)
t.ok(mongojs.Code)
t.ok(mongojs.DBRef)
t.ok(mongojs.Double)
t.ok(mongojs.Long)
t.ok(mongojs.MinKey)
t.ok(mongojs.MaxKey)
t.ok(mongojs.ObjectID)
t.ok(mongojs.ObjectId)
t... |
class SuchStreamingBot
class << self
def matches? text
!!(text =~ /hello world/)
end
end
end |
package com.instaclick.filter;
/**
* Defines a behavior that should be implement by all filter
*
* @author Fabio B. Silva <fabio.bat.silva@gmail.com>
*/
public interface DataFilter
{
/**
* Adds the given {@link Data} if it does not exists
*
* @param data
*
* @return <b>TRUE</b> if the t... |
#include <bits/stdc++.h>
using namespace std;
int count_consecutive(string &s, int n, int k, char x) {
int mx_count = 0;
int x_count = 0;
int curr_count = 0;
int l = 0;
int r = 0;
while (r < n) {
if (x_count <= k) {
if (s[r] == x)
x_count++;
r++;
... |
# Expectacle
[ is a small wrapper of `pty`/`expect`.
It can send commands (command-list) to hosts (including network devices etc)
using telnet/ssh session.
Expectacle is portable (instead of less feature).
Because it depends on only standard modules (YAML, ERB, PTY... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>font-image test</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../<API key>/br... |
using BaxterWorks.B2.Exceptions;
using BaxterWorks.B2.Types;
namespace BaxterWorks.B2.Extensions
{
public static class BucketExtensions
{
public static Bucket GetOrCreateBucket(this ServiceStackB2Api client, CreateBucketRequest request)
{
try
{
return clie... |
.favorites-container{
margin-top: 16px;
min-height: 350px;
padding-bottom: 30px;
font-family: Helvetica, Verdana;
border-radius: 2px;
background: rgba(255,255,255,0.8);
border: solid 2px rgba(255,255,255,0.3);
-webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
-moz-box-shadow: 2px 2px ... |
package com.github.ptitnoony.components.fxtreemap;
import java.beans.<API key>;
import java.util.List;
/**
*
* @author ahamon
*/
public interface MapData {
/**
* Data type that represents whether a data is represents a single object
* (ie LEAF) or an aggregation of objects (ie NODE)
*/
enum Da... |
# Potrubi
gemName = 'potrubi'
#requireList = %w(mixin/bootstrap)
#requireList.each {|r| require_relative "#{gemName}/#{r}"}
__END__ |
import numpy as np
import warnings
from .._explainer import Explainer
from packaging import version
torch = None
class PyTorchDeep(Explainer):
def __init__(self, model, data):
# try and import pytorch
global torch
if torch is None:
import torch
if version.parse(torch.... |
using Lemonade.Data.Entities;
namespace Lemonade.Data.Commands
{
public interface IUpdateFeature
{
void Execute(Feature feature);
}
} |
# We borrow heavily from the kernel build setup, though we are simpler since
# we don't have Kconfig tweaking settings on us.
# The implicit make rules have it looking for RCS files, among other things.
# We instead explicitly write all the rules we care about.
# It's even quicker (saves ~200ms) to pass -r on the comma... |
/*
Misojs Codemirror component
*/
var m = require('mithril'),
basePath = "external/codemirror/",
pjson = require("./package.json");
// Here we have a few fixes to make CM work in node - we only setup each,
// if they don't already exist, otherwise we would override the browser
global.document = globa... |
<?php
namespace Oro\Bundle\AttachmentBundle\Tests\Unit\Entity;
use Oro\Bundle\AttachmentBundle\Entity\File;
use Oro\Bundle\UserBundle\Entity\User;
use Oro\Component\Testing\Unit\EntityTestCaseTrait;
use Oro\Component\Testing\Unit\EntityTrait;
use Symfony\Component\HttpFoundation\File\File as ComponentFile;
class FileTe... |
require 'json_diff/version'
# Provides helper methods to compare object trees (like those generated by JSON.parse)
# and generate a list of their differences.
module JSONDiff
# Generates an Array of differences between the two supplied object trees with Hash roots.
# @param a [Hash] the left hand side of the compar... |
<html>
<head>
<meta http-equiv="Page-Enter" content="revealTrans(Duration=4,Transition=12)">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="language" content="en" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width"/>
<met... |
import { observable, action } from 'mobx';
import Fuse from 'fuse.js';
import Activity from './../utils/Activity';
import noop from 'lodash/noop';
import uniqBy from 'lodash/uniqBy';
const inactive = Activity(500);
export default class Story {
@observable keyword = '';
@observable allStories = [];
@observable st... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
import curses
from . import docs
from .content import SubmissionContent, SubredditContent
from .page import Page, PageController, logged_in
from .objects import Navigator, Color, Command
from .exceptions import TemporaryFileError
class <API key... |
#include <zombye/core/game.hpp>
#include <zombye/gameplay/<API key>.hpp>
#include <zombye/gameplay/game_states.hpp>
#include <zombye/gameplay/gameplay_system.hpp>
#include <zombye/gameplay/states/menu_state.hpp>
#include <zombye/gameplay/states/play_state.hpp>
#include <zombye/gameplay/state_component.hpp>
#include <zo... |
'use strict';
const Schemas = require('../server/schemas');
const Code = require('code');
const Lab = require('lab');
const expect = Code.expect;
const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
describe('server/schemas.todoSchema', () => {
it('validates object', (done) => {... |
package mil.nga.geopackage.extension.rtree;
import org.junit.Test;
import java.sql.SQLException;
import mil.nga.geopackage.<API key>;
/**
* Test RTree Extension from a created database
*
* @author osbornb
*/
public class <API key> extends <API key> {
/**
* Constructor
*/
public <API key>() {
}... |
#ifndef MESSAGEFILE_H
#define MESSAGEFILE_H
#include "xmlserializable.h"
#include <QList>
#include <QByteArray>
#include <QImage>
#include "messagekey.h"
#include "messagetypemix.h"
namespace Velasquez
{
class DrawingElement;
}
namespace MoodBox
{
#define <API key> ".mbm"
#define MESSAGE_TIMESTAMP ... |
# Feathers-Vue
> A Vue 2 and FeathersJS 2 fullstack app with authentication, email verification, and email support.&
## About
This project uses [Feathers](http://feathersjs.com). An open source web framework for building modern real-time applications and Vue 2 with Server Side Rendering.
This project is not finished bu... |
/**
* @module popoff/overlay
*
* Because overlay-component is hopelessly out of date.
* This is modern rewrite.
*/
const Emitter = require('events').EventEmitter;
const inherits = require('inherits');
const extend = require('xtend/mutable');
module.exports = Overlay;
/**
* Initialize a new `Overlay`.
*
* @para... |
#!/usr/bin/env python
import os
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Test label reading from an MNI tag file
# The current directory must be writeable.
try:
fname = "mni-tagtest.tag"
channel = open(fname, "wb")
channel.close()
... |
<div class="commune_descr limited">
<p>
Gasville-Oisème est
une commune localisée dans le département de l'Eure-et-Loir en Centre. Elle totalisait 1 176 habitants en 2008.</p>
<p>La commune propose quelques équipements sportifs, elle propose entre autres un centre d'équitation et une boucle de randonnée.<... |
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// copies or substantial portions of... |
if (isset($_POST['upload'])) {
$target = "../img".basename($_FILES['image']['name']);
$image = $_FILES['image']['name'];
$msg = "";
$sql = "UPDATE user SET avatar='$image' WHERE id='$id'";
mysqli_query($conn, $sql);
if (move_uploaded_file($_FILES['image']['tmp_name'], $target)) {
$msg = "Uploaded file."... |
namespace Jello.Nodes
{
public abstract class TerminalNode<T> : Node<T> where T : class
{
public override INode GetSingleChild()
{
return null;
}
}
} |
module Dotify
class Version
# The Checkup class is responsible for
# reaching out to Rubygems.org and retrieving
# the latest gem version.
class Checker
class << self
attr_reader :result, :resp
end
def self.<API key>!
@result = (latest == Version.build.level)
en... |
#include "irc.h"
#include "net.h"
#include "strlcpy.h"
#include "base58.h"
using namespace std;
using namespace boost;
int nGotIRCAddresses = 0;
void ThreadIRCSeed2(void* parg);
#pragma pack(push, 1)
struct ircaddr
{
struct in_addr ip;
short port;
};
#pragma pack(pop)
string EncodeAddress(const CService& addr)
... |
package fyskam.fyskamssngbok;
import android.app.Activity;
import android.app.ActionBar;
import android.app.Fragment;
import android.support.v4.app.<API key>;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.content.SharedPreferences;
import android.content.res... |
/* surface_tool.h */
/* This file is part of: */
/* GODOT ENGINE */
/* a copy of this software and associated documentation files (the */
/* "Software"), ... |
#pragma once
class Menu : public QWidget
{
private:
QGridLayout layout;
QPushButton play_single;
QPushButton play_2v2;
QPushButton play_multi;
public:
Menu(Window *window, Game *game);
}; |
import uuid
from uqbar.objects import new
from supriya.patterns.Pattern import Pattern
class EventPattern(Pattern):
CLASS VARIABLES
__slots__ = ()
SPECIAL METHODS
def <API key>(self, expr, state=None):
import supriya.patterns
if not isinstance(expr, supriya.patterns.Event):
e... |
// Compute the edit distance between the two given strings
exports.getEditDistance = function(a, b){
if(a.length == 0) return b.length;
if(b.length == 0) return a.length;
var matrix = [];
// increment along the first column of each row
var i;
for(i = 0; i <= b.length; i++){
matrix[i] = [i];
}
// inc... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace <API key>
{
class Program
{
static bool checknum(string s)
{
return (s.Contains("1") || s.Contains("2") || s.Contains("3") || s.Contains("4") || s.Contains("5... |
//! \file ArcSG.cs
//! \date 2018 Feb 01
//! \brief 'fSGX' multi-frame image container.
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit persons to whom... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace track_downloader
{
class Program
{
static void Main(string[] args)
{
string[] blacklisted = Console.ReadLine().Split();
List<string> filenames = R... |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import GroupPage from './GroupPage.js';
import GroupNotFoundPage from './GroupNotFoundPage.js';
const Group = ({ isValid, groupId }) => (isValid ? <GroupPage groupId={groupId} /> : <GroupNotFoundPage groupId={groupId} />);
Group.propTypes ... |
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using SimplePersistence.Example.Console.Models.Logging;
using SimplePersistence.Example.Console.UoW.EF.Mapping;
namespace SimplePersistence.Example.Console.UoW.EF.Migrations
{
public sealed class Configuration : <API key><ConsoleDbContext>... |
class CreateItineraries < ActiveRecord::Migration
def change
create_table :itineraries do |t|
t.references :user
t.timestamps null: false
end
end
end |
// node-vcdiff
#ifndef VCDIFF_H_
#define VCDIFF_H_
#include <memory>
#include <string>
#include <node.h>
#include <node_object_wrap.h>
#include <uv.h>
#include <v8.h>
namespace open_vcdiff {
class <API key>;
}
class VcdCtx : public node::ObjectWrap {
public:
enum class Mode {
ENCODE,
DECODE,
};
enum clas... |
import assert from 'assert'
import {
THREAD_COUNT,
CURSOR_BUFFER_SIZE,
<API key>,
} from './constants'
import {
InputCursor,
<API key>,
StoredEventPointer,
} from './types'
const <API key> = (threadArray: Array<number>): void => {
assert.strictEqual(
threadArray.length,
THREAD_COUNT,
'Cursor m... |
layout: post
title: Week 1 Review
## Weekly Review (8/30/15)
It's Sunday afternoon on the 30th of August, and I've finally managed to set this Jekyll thing up, which means I can now talk about my time in the class this past week! Hooray!
Besides being the only class I have on Mondays, Wednesdays, and Fridays, Object Or... |
'use strict'
let
ugly = require('gulp-uglify')
,gulp = require('gulp')
,watch = require('gulp-watch')
,plumber = require('gulp-plumber')
,newer = require('gulp-newer')
,stylus = require('gulp-stylus')
,jade = require('gulp-jade')
,concat = require('gulp-concat')
,rename = require('gulp-rename')
,runSequence = require('... |
<section class="user-job-wrapper">
<user-job-header></user-job-header>
<div class="main-title primary" ng-show="!ctrl.hasInvoice && ctrl.showStatus">
<div class="job-owner-header">
<!-- Choose candidate -->
<div ng-show="!ctrl.accepted && !ctrl.will_perform">
<h2>... |
<!DOCTYPE html PUBLIC "-
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_3.js"></script>
<script type="text/javascript" sr... |
<?php
require_once __DIR__.'/../../../vendor/autoload.php';
require 'templates/base.php';
session_start();
$client = new Google_Client();
$client->setApplicationName("Slide-Summarizer");
if ($credentials_file = <API key>()) {
// set the location manually
$client->setAuthConfig($credentials_file);
$crede... |
#include <yage/physics/particlebody.h>
#include <cmath>
namespace yage
{
ParticleBody::ParticleBody(const Vector2d &position, double mass,
const Vector2d &velocity, bool gravity)
: Body(position, mass, velocity, gravity)
{
}
void ParticleBody::applyForce(const Vector2d &force)
{
force... |
#ifndef <API key>
#define <API key>
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#... |
package hu.autsoft.nytimes.exception;
public class OkHttpException extends RuntimeException {
public OkHttpException(Throwable cause) {
super(cause);
}
} |
const Lib = require("../src/main");
const assert = require("assert");
describe("plain object output", function () {
context("for `JSON.stringify` serializable objects", function () {
it("should have resembling structure", function () {
const obj1 = { a: 1, b: "b", c: true };
const res = Lib.write(obj1... |
#include "GameCtrl.h"
char title[16][30]=
{
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,1,1,1,1,1,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,1,0,1,1,1,1,1,0},
{0,1,0,0,0,0,0,1,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0},
{0,1... |
require 'simplecov'
$VERBOSE = nil #FIXME
SimpleCov.start
require 'minitest/autorun'
require 'minitest/pride'
require_relative '../lib/cw'
class TestNumbers < MiniTest::Test
ROOT = File.expand_path File.dirname(__FILE__) + '/../'
def setup
@dsl = CW::Dsl.new
end
def teardown
@dsl = nil
end
def <API ... |
package se.leiflandia.lroi.utils;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import se.leiflandia.lroi.auth.model.AccessToken;
import se.leiflandia.lroi.auth.model.UserCredentials;
publ... |
#ifndef BACKEND_GEO_H
#define BACKEND_GEO_H
#include "potracelib.h"
int page_geojson(FILE *fout, potrace_path_t *plist, int as_polygons);
#endif /* BACKEND_GEO_H */ |
docker run -d \
--name=sickbeard \
-v $(pwd)/data:/data \
-v $(pwd)/config/config.ini:/app/config.ini \
-p 8081:8081 \
chamunks/<API key>:latest |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Xml.Linq;
using Reportz.Scripting.Attributes;
using Reportz.Scripting.Classes;
using Reportz.Scripting.Interfaces;
namespace Reportz.Scripting.Commands
{
[ScriptElementAlias("execute-script")]
public class <... |
(function () {
'use strict';
angular
.module('crimes.routes')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider'];
function routeConfig($stateProvider) {
$stateProvider
.state('crimes', {
abstract: true,
url: '/crimes',
template: '<ui-view/>'
})
.... |
#import "NSObject.h"
// Not exported
@interface GQDWPColumn : NSObject
{
long long mIndex;
float mWidth;
float mSpacing;
_Bool mHasSpacing;
}
+ (const struct StateSpec *)stateForReading;
- (float)spacing;
- (_Bool)hasSpacing;
- (float)width;
- (long long)index;
- (int)<API key>:(struct _xmlTextReader *)... |
// AppDelegate.h
// discovery
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <<API key>>
@property (strong, nonatomic) UIWindow *window;
@end |
<?php
if( $kind = ic_get_post( 'kind' ) ) {
if( $kind == 'c' || $kind == 'cod' ) { $sym = '#'; $kind = 'cod'; }
else if( $kind == 'l' || $kind == 'loc' ) { $sym = '@'; $kind = 'loc'; }
else if( $kind == 's' || $kind == 'str' ) { $sym = '*'; $kind = 'str'; }
else if( $kind == 'u' || $kind == 'usr' ) { $s... |
class IssueTrackerService < Service
validate :one_issue_tracker, if: :activated?, on: :manual_change
default_value_for :category, 'issue_tracker'
# Pattern used to extract links from comments
# Override this method on services that uses different patterns
# This pattern does not support cross-project referenc... |
/**
* Compile sass files to css using compass
*/
module.exports = {
dev: {
options: {
config: 'config.rb',
environment: 'development'
}
},
}; |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cognito.Stripe.Classes
{
public class FileUpload : BaseObject
{
public override string Object { get { return "file_upload"; } }
public string Purpose { get; set; }
public int Size { get; set; ... |
class ChangeIntegerLimits < ActiveRecord::Migration
def change
change_column :projects, :<API key>, :integer, limit: 8
change_column :projects, :total_eligible_cost, :integer, limit: 8
end
end |
<?php
exit;
include_once "config/config.php";
include_once "engine/fhq_class_security.php";
include_once "engine/fhq_class_database.php";
include_once "engine/fhq_class_mail.php";
if(!isset($_GET['email']))
{
echo "not found parametr ?email=";
exit;
};
$email = $_GET['email'];
echo "send to mail: ".$email."<br>";
$... |
<?php
/**
*
* @author thiago
*/
interface ConsoleFactory {
public function <API key>();
public function create_console_sony();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.