answer stringlengths 15 1.25M |
|---|
package org.lua.commons.customapi.javafunctions.handlers;
import org.lua.commons.baseapi.LuaThread;
import org.lua.commons.baseapi.extensions.LuaExtension;
import org.lua.commons.baseapi.types.LuaObject;
import org.lua.commons.customapi.javafunctions.handlers.types.Type;
public interface TypeCastManager extends LuaExte... |
<?php
$loader = require __DIR__ . "/../vendor/autoload.php";
$loader->add('JobQueue\\', __DIR__);
$loader->add('JobQueue\ConsumerCommand\\', __DIR__ . '/Consumers/'); |
const mongoose = require('mongoose')
let literatureSchema = mongoose.Schema({
category: { type: String, required: true},
name: { type: String, required: true },
description: { type: String },
content: { type: String, required: true },
author: { type: mongoose.Schema.Types.ObjectId, required: true, r... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import bottle
import datetime
import time
@bottle.get('/')
def index():
return bottle.static_file('index.html', root='.')
@bottle.get('/stream')
def stream():
bottle.response.content_type = 'text/event-stream'
bottle.response.cache_control = 'no-cache'
while... |
module DocFrac
class Format
attr_reader :format_text, :ext
def initialize(format)
formats = {
:to_rtf => "--to-rtf",
:from_rtf => "--from-rtf",
:to_html => "--to-html",
:from_html => "--from-html",
:to_text => "--to-text",
:from_text => "--from-text"
... |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
namespace CrossJob.Web {
public partial class Projects {
<summary>
UpdatePanel1 control.
</summary>
... |
FILE(REMOVE_RECURSE
"CMakeFiles/geo_transformations"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang)
INCLUDE(CMakeFiles/geo_transformations.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang) |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code... |
// <API key>.h
// <API key>
#import <UIKit/UIKit.h>
@interface <API key> : <API key> <PXLazyInitProtocol, PXLifeCycleProtocol, PXTrackerListener>
@property <API key> *checkoutBuilder;
@property <API key> *pref;
@property <API key> *paymentConfig;
+(void)<API key>;
@end |
#include "dcmtk/config/osconfig.h" // make sure OS specific configuration is included first
#include "dcmtk/dcmrt/seq/drtbldls.h"
<API key>::Item::Item(const OFBool emptyDefaultItem)
: EmptyDefaultItem(emptyDefaultItem),
<API key>(<API key>),
<API key>(<API key>)
{
}
<API key>::Item::Item(const Item ©... |
import { ModuleWithProviders } from '@angular/core';
import { Routes } from '@angular/router';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import { DataService } from '_services/data.service';
import { IDDDProperty } from '_models/_gen/modelInterfaces';
@... |
// Saves options to chrome.storage
function save_options () {
var saveDict = []
var i = 1
$('input').map(function () {
var dict = {
id: 'scbcc' + i,
value: this.value
}
i++
console.log('save: ', dict)
ga('send', 'event', 'setting', 'save', this.value)
saveDict.push(dict)
}).g... |
<?php
namespace Service;
use Core\Service;
use Db\Group\GetInvitations;
use Db\Group\Search;
use Model\Group as GroupModel;
use Db\Group\GetByUserId;
use Db\Group\GetById;
use Db\Group\Store;
class Group extends Service
{
/**
* @param $userId
* @return GroupModel[]
* @throws \Core\Query\NoResultExcep... |
// <auto-generated/>
#nullable disable
namespace Azure.AI.TextAnalytics.Models
{
<summary> The <API key>. </summary>
internal partial class <API key>
{
<summary> Initializes a new instance of <API key>. </summary>
public <API key>()
{
}
<summary> Gets or sets the para... |
class User < ApplicationRecord
attr_accessor :remember_token, :activation_token, :reset_token
before_save :downcase_email
before_create :<API key>
VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-]+(?:\.[a-z\d\-]+)*\.[a-z]+\z/i
validates :email, presence: true, length: { maximum: 255 }, format: { with: VALID_EMAIL_RE... |
'use strict';
module.exports = {
colors: {
black: '#000000',
red: '#D54E53',
green: '#B9CA4A',
yellow: '#E7C547',
blue: '#7AA6DA',
magenta: '#C397D8',
cyan: '#70C0B1',
white: '#EAEAEA',
lightBlack: '#969896',
lightRed: '#D54E53',
lightGreen: '#B9CA4A',
lightYellow: '#E7... |
int reqAuthenticate(const dict &req, int reqid);
int reqUserLogin(const dict &req, int reqid);
int reqUserLogout(const dict &req, int reqid);
int <API key>(const dict &req, int reqid);
int <API key>(const dict &req, int reqid);
int reqUserLogin2(const dict &req, int reqid);
int <API key>(const dict &req, int reqid);
in... |
package orestes.bloomfilter.redis.helper;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.Random;
import java.util.Set;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
import redis.clients.jedis.Pipeline;... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => 'root',
'database' => 'my_mvc_db',
'dbdriver' => 'mysqli',
'dbprefix'... |
#ifndef XNE_H
#define XNE_H
#include "xmsdos.h"
#include "xne_def.h"
class XNE : public XMSDOS
{
Q_OBJECT
public:
enum TYPE
{
TYPE_UNKNOWN=0,
TYPE_EXE,
TYPE_DLL,
TYPE_DRIVER
// TODO Check More
};
explicit XNE(QIODevice *pDevice=nullptr,bool bIsImage=false,qint... |
.mdc-tab-indicator {
display: flex;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.mdc-tab-indicator .<API key> {
border-color: #6200ee;
/* @alternate */
border-color: var(--mdc-theme-primary, #6200ee);
}
.mdc-tab-indicator .<API key> {
color... |
import {
notexist,
isEmpty
} from 'type'
import {
calcHeight,
remove,
dataset
} from 'dom'
describe('dom', () => {
it('calcHeight', () => {
const height = 42
const p = document.createElement('p')
p.id = 'calcHeight-' + (+new Date())
p.style.margin = 0
p.style.padding = 0
p.style.line... |
using UnityEngine;
using System.Collections;
public class EnemyAI : MonoBehaviour {
public Transform Target;
public float TargetDist;
public bool WillChase;
public float WalkingSpeed;
public Vector3 TopPatrolStart;
public Vector3 TopPatrolEnd;
public Vector2 SidePatrolStart;
public Vecto... |
package service
import (
"math"
"math/rand"
"time"
"github.com/rlister/let-me-in/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws"
"github.com/rlister/let-me-in/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/request"
)
// DefaultRetryer implements basic retry logic using exponential backoff ... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.W... |
<TS language="es_UY" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clic derecho para editar dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<... |
module.exports = {
"bonus": {
"type": "object",
"properties": {
"session_id": { "type": "string", "minLength": 2, "maxLength": 50 },
"restaurant_id": { "type": "string", "minLength": 1, "maxLength": 50 }
},
"required": ["session_id", "restaurant_id"]... |
export function Fragment(props, ...children) {
return collect(children);
}
const ATTR_PROPS = '_props';
function collect(children) {
const ch = [];
const push = (c) => {
if (c !== null && c !== undefined && c !== '' && c !== false) {
ch.push((typeof c === 'function' || typeof c === 'obje... |
IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'dw.<API key>'))
EXEC dbo.sp_executesql @statement = N'create view dw.<API key> as select 1 as a'
GO
-- Testi
ALTER VIEW [dw].[<API key>] AS
SELECT
[Tilastovuosi] = f.tilastovuosi
,[Suorituspäivämäärä] = f.suorituspaiva
,[Suoritusvuosi] ... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
destination.factory
'''
from destination.zeus import ZeusDestination
from destination.aws import AwsDestination
from exceptions import AutocertError
from config import CFG
from app import app
class <API key>(AutocertError):
def __init__(self, destination):
... |
<?php
namespace litepubl\comments;
use litepubl\view\Lang;
use litepubl\view\Theme;
class Json extends \litepubl\core\Events
{
public function auth($id, $action)
{
if (!$this->getApp()->options->user) {
return false;
}
$comments = Comments::i();
if (!$comments->itemEx... |
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
// compile by gcc -o syc_m syc_m.c -pthread
// ./syc_m
int MAX = 10;
int count = 1;
pthread_mutex_t mutex;
void print_star(int i)
{
int j;
pthread_mutex_lock(&mutex);
for (j = 1; j <= i; j++)
{
printf("*");
}
// printf(" %d", i)... |
var ItineraryWalkStep = require('./itinerary-walk-step')
var Backbone = window.Backbone
var ItineraryWalkSteps = Backbone.Collection.extend({
model: ItineraryWalkStep
})
module.exports = ItineraryWalkSteps |
.body-wrapper {
margin-top: 55px !important;
}
.jumbotron {
padding-bottom:32px !important;
padding-top: 42px !important;
}
h1, h2, h3, h4 {
font-family: 'Crete Round', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.navbar-brand {
padding-top: 20px;
font-family: 'Crete Round', 'Helvetica Neue', Helvetic... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='content-type' value='text/html;charset=utf8'>
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
<title>hub(1) - git + hub = github</title>
<style type='text/css' media='all'>
/* style: man */
body#manpage {margin:0}
.mp... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.11.14: V8 API Reference Guide</title>
<link href="ta... |
#ifndef <API key>
#define <API key>
/*!\brief Base class for all multiplication expression templates.
// \ingroup math
//
// The MultExpr class serves as a tag for all expression templates that implement mathematical
// multiplications. All classes, that represent a mathematical multiplication (element-wise
// vector m... |
comments: false
type: index
# GitLab basics guides
This section provides resources to help you start working with GitLab and Git by focusing
on the basic features that you will need to use.
This documentation is split into the following groups:
- [GitLab-specific functionality](#gitlab-basics), for basic GitLab feature... |
# <API key>: true
require 'spec_helper'
require 'json'
describe QueueBus::Worker do
it 'proxies to given class' do
hash = { 'bus_class_proxy' => 'QueueBus::Driver', 'ok' => true }
expect(QueueBus::Driver).to receive(:perform).with(hash)
QueueBus::Worker.perform(JSON.generate(hash))
end
it 'uses an ins... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CommaExcess.Algae.Graphics
{
<summary>
Defines a compiled material pass.
</summary>
interface <API key>
{
<summary>
Begins rendering the material pass.
</summary>
void Begi... |
#pragma once
#include <vector>
#include <map>
#include <sstream>
#include <string>
#include "ifcpp/model/GlobalDefines.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingObject.h"
#include "<API key>.h"
class IFCQUERY_EXPORT <API key>;
//ENTITY
class IFCQUERY_EXPORT <API key> : public <API key>
{
publ... |
# General SDN Test Framework
This is a easy-to-use test framework for general purpose in SDN scenario.
## Preliminary
The only requirement for you is a UNIX-like system with docker installed. |
<?php
namespace Sensio\Bundle\<API key>\Tests\Templating;
use Sensio\Bundle\<API key>\Templating\TemplateGuesser;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\KernelInterface;
class TemplateGuesserTest extends \<API key>
{
/**
* @var KernelInterface
*/
private $kernel... |
# coding=utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
from .entity_health import EntityHealth
class PartitionHealth(EntityHealth):
"""Information about the health of a Service Fabric partition.
:param <API ... |
#endregion
namespace RedBadger.Xpf.Graphics
{
public interface IRenderer
{
void <API key>();
void Draw();
IDrawingContext GetDrawingContext(IElement element);
void PreDraw();
}
} |
var stream = require('stream')
, util = require('util')
, co = require('co')
, unresolved = require('./unresolved')
function Readable(opts, sender) {
stream.Readable.call(this, opts);
this._ponySending = unresolved();
var self = this;
function output(data, enc) {
return self._ponySending.then(function... |
# UILoader
Make it easier to track the loading status of your objects.
_v0.7.0_
## Usage
Transform this:
swift
class LameViewController: UIViewController
{
@IBOutlet weak var <API key>: <API key>?
private var <API key> = false
func <API key>() {
self.<API key> = true
self.<API key>?.startAni... |
namespace Dike.Core.Mail
{
using Dike.Core.Configuration;
using Dike.Core.Utils.Extensions;
using System;
<summary>
Represents the e-mail sender configuration. The settings are read from the <see cref="ISettingManager"/>.
</summary>
<seealso cref="Dike.Core.Mail.<API key>" />
public abst... |
<?php namespace JanVince\SmallContactForm\Models;
use Str;
use Model;
use URL;
use October\Rain\Router\Helper as RouterHelper;
use Cms\Classes\Page as CmsPage;
use Cms\Classes\Theme;
use JanVince\SmallContactForm\Models\Settings;
use Log;
use Validator;
use Mail;
use Request;
use Carbon\Carbon;
use View;
use App;
use S... |
package com.weixin.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import... |
// flow-typed signature: <API key>
declare module 'deepclone' {
declare module.exports: any;
} |
'use strict';
describe('E2E testing: Change password', function () {
var constants = require('../../../testConstants');
var loginPage = require('../../pages/loginPage');
var header = require('../../pages/pageHeader');
var changePasswordPage = require('../../pages/changePasswordPage');
var... |
layout: post
title: "Testing with lots of text"
date: 2013-10-03 11:13 AM
Portland in shoreditch Vice, labore typewriter pariatur hoodie fap sartorial Austin. Pinterest literally occupy Schlitz forage. Odio ad blue bottle vinyl, 90's narwhal commodo bitters pour-over nostrud. Ugh est hashtag in, fingerstache adipisicin... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "addressbookpage.h"
#include "addresstablemodel.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include "platformstyle.h"
#include "walletmodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(const PlatformStyle *_pla... |
local console = {
_LICENSE = [[
The MIT License (MIT)
Copyright (c) 2014 Maciej Lopacinski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restri... |
using Shouldly;
using Specify.Samples.Domain.Atm;
using TestStack.BDDfy;
namespace Specify.Samples.Specs.ATM
{
public class CardHasBeenDisabled : ScenarioFor<Atm, <API key>>
{
private Card _card;
public void <API key>()
{
_card = new Card(false, 100);
SUT = new At... |
<section data-ng-controller="<API key>" data-ng-init="findOne()">
<div class="page-header">
<a class="pull-right btn btn-primary" data-ng-click="remove();">
<i class="glyphicon glyphicon-trash"></i>
</a>
<h1>Edit Investment</h1>
</div>
<div class="col-md-12">
<for... |
import os,sys
from trans_rot_coords import *
import numpy as np
from <API key> import *
from <API key> import DS,Grid_Quarts
from orient_struct_2 import OrientDS as OrientDS_2
from orient_struct_3 import OrientDS as OrientDS_3
AU2KCAL = 23.0605*27.2116
R2D = 180.0/3.14159265358979
## np.pi/4.0:
pi4 = 0.7853981633974481... |
import {isNumber} from './is-number.js';
/**
* Check that a given value is a falsy value.
*
* @param {*} a Value to check.
* @return {boolean} `true` if parameter is a falsy value.
*/
export function isFiniteNumber(a) {
return isNumber(a) && isFinite(a);
} |
class <API key> < <API key>
before_action :authenticate_admin!
before_action :set_achievement, only: [:show, :edit, :update, :destroy]
# GET /achievements
# GET /achievements.json
def index
@achievements = Achievement.all
end
# GET /achievements/1
# GET /achievements/1.json
def show
end
# GET ... |
class DistantPoints
def self.solution (n, k)
@max = 2 ** n + 2
points = {}
p = [1, 1]
(k - 1).times do
points[p] = true
p = nextPoint(points)
end
p
end
def self.nextPoint (points)
dMax = 0
nextPoints = []
1.upto(@max - 1) do |x|
1.upto(@max - 1) do |y|
... |
@import url(http://fonts.googleapis.com/css?family=Nixie+One|Poiret+One);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,700,400);
html{
font-family: 'Open Sans', sans-serif;
}
.container1{width: 300px;
margin: 0 auto;
margin-top: 60px;
}
/* login css*/
.containerBG{background-color:... |
<?php
namespace <API key>\ServiceBus\QueryHandler\OrderStatus;
use PlentyConnector\Connector\ServiceBus\Query\<API key>;
use PlentyConnector\Connector\ServiceBus\Query\QueryInterface;
use PlentyConnector\Connector\ServiceBus\QueryHandler\<API key>;
use PlentyConnector\Connector\ServiceBus\QueryType;
use PlentyConnector... |
# -*- coding: utf-8 -*-
# Define your item pipelines here
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
from scrapy.conf import settings
import pymongo
from datetime import datetime
from .models import PQDataModel
class <API key>(object):
def __init__(self):
self.connection = None
de... |
namespace IPCUtilities.IpcPmrep.CommandObjects
{
public class <API key>: AbstractRepoObject
{
private string <API key>;
private string _versionNumber;
private string _folderName;
private string <API key>;
private string _dependencyTypes;
... |
import React, {
Component,
} from 'react'
import {
Image,
View,
ToastAndroid,
ActivityIndicator,
}
from 'react-native'
import PixelRatio from "react-native/Libraries/Utilities/PixelRatio";
class GirlComponent extends Component {
constructor(props) {
super(props);
this.stat... |
# <API key>
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/<API key>`. To experiment with that code, run `bin/console` for an interactive prompt.
TODO: Delete this and the text above, and describe your... |
<?php
header('Content-Type: image/png');
header('X-Content-Quality: '.$_GET['quality']);
readfile($file); |
# <API key>: true
# :reek:UtilityFunction
module RubyRabbitmqJanus
module Janus
module Responses
# Response for RSpec initializer
class RSpec
# Constructor to RSpec response.
# Create a fake response for testing library.
def initialize(type)
path = RubyRabbitmqJanus::... |
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Enactus JMI | Success</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-control" content="max-age=86400">
<meta name="theme-color" c... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet... |
export * from '../common';
export NodeBundle from './NodeBundle';
export CommonJsResolver from './CommonJsResolver'; |
OBJECT=select_srv client
CC=gcc
FLAGS=
.PHONY : TARGET
TARGET:$(OBJECT)
$(OBJECT):%:%.c
$(CC) $< $(FLAGS) -o $@
.PHONY : tag
tag:
ctags -R .
.PHONY : test
test:
make
./select_srv &
./client 127.0.0.1
.PHONY : clean
clean:
-rm $(OBJECT) |
import arrow
import settings
from . import misc
from . import voting
from . import comments
from . import exceptions as exc
def merge_pr(api, urn, pr, votes, total, threshold):
""" merge a pull request, if possible, and use a nice detailed merge commit
message """
pr_num = pr["number"]
pr_title = pr['ti... |
require "spec_helper"
shared_examples "database adapter" do
before do
test_database.run <<-SQL
CREATE SCHEMA foo;
CREATE TABLE foo.persons (
id int,
first_name varchar(255),
last_name varchar(255)
);
SQL
end
after do
test_database.run <<-SQL
DROP SCHEMA ... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Coverage Report</title>
<link title="Style" type="text/css" rel="stylesheet" href="css/main.css"/>
<script type="text/javascript" src="js/popup.js"><... |
from riotwatcher import *
from time import sleep
import logging
log = logging.getLogger('log')
def getTeamOfSummoner( summonerId, game ):
for p in game['participants']:
if p['summonerId'] == summonerId:
return p['teamId']
def <API key>( summonerId, game ):
teamId = getTeamOfSummoner(summoner... |
# DEPRECATION WARNING
This functionality is better provided by:
https://github.com/benmosher/<API key>
I'd suggest using that module instad.
# <API key>
ESLint rules for JavaScript modules.
Installation
`npm install --save-dev <API key>`
Usage
Add the following to your `.eslintrc` file:
js
"plugins": [
"modules"
]
Ru... |
package org.data2semantics.mustard.rdfvault;
import java.util.List;
import java.util.Set;
import org.data2semantics.mustard.kernels.<API key>;
import org.data2semantics.mustard.kernels.FeatureInspector;
import org.data2semantics.mustard.kernels.KernelUtils;
import org.data2semantics.mustard.kernels.data.RDFData;
import... |
<?php
// Enable error reporting to help us debug issues
error_reporting(E_ALL);
// Start PHP sessions
session_start();
require_once('./config.php');
$oToken = json_decode(file_get_contents(APP_URL . 'token.php?key=' . $_GET['key']));
define('APP_TOKEN', $oToken->token);
function doPost($sMethod, $aPost = array())
{
... |
#ifndef GPU_DEF
#define GPU_DEF
#define SHORT_NAN 32767
#define SHORT_MAX 32766
#define GL_INTEROP // Caution!! Need to clear ComputeCache if uncommented
struct TsdfParams
{
float resolution[3];
float volume[3];
float mu;
};
#ifdef _GPU_
#define NUM_BANKS 16
#define LOG_NUM_BANKS 4
#define <API key>(n) ((n)... |
const webpack = require("webpack");
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const <API key> = require("<API key>");
const AssetsPlugin = require("<API key>");
module.exports = {
entry: {
main: path.join(__dirname, "src", "index.js")
},
output: {
path: path.j... |
module Feature.DeleteSpec where
import Test.Hspec
import Test.Hspec.Wai
import Text.Heredoc
import SpecHelper
import PostgREST.Types (DbStructure(..))
import qualified Hasql.Connection as H
import Network.HTTP.Types
spec :: DbStructure -> H.Connection -> Spec
spec struct c = beforeAll resetDb
. around (withApp cfgDe... |
import unittest
from datetime import datetime
import numpy as np
import pandas as pd
from excel_helper.helper import DataSeriesLoader
class <API key>(unittest.TestCase):
def test_simple_CAGR(self):
"""
Basic test case, applying CAGR to a Pandas Dataframe.
:return:
"""
# the t... |
<html><body>
<h4>Windows 10 x64 (18363.836)</h4><br>
<h2><API key></h2>
<font face="arial"> +0x000 <API key> : Ptr64 Void<br>
+0x008 Size : Uint2B<br>
+0x00a Flags : UChar<br>
+0x00b SmallTagIndex : UChar<br>
+0x008 SubSegmentCode : Uint4B<br>
+0x00c PreviousSize : Uint2... |
// This source file is part of appleseed.
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the follow... |
require 'test_helper'
require_relative 'thing'
require_relative 'foo/bar'
module Dibber
class SeederTest < Minitest::Test
def setup
Seeder.seeds_path = File.join(File.dirname(__FILE__), 'seeds')
end
def teardown
Thing.clear_all
Foo::Bar.clear_all
end
def test_process_log
as... |
window.onload=function() {
var start = document.getElementById('start');
start.onclick = function () {
var name = document.getElementById('Name').value;
var id = document.getElementById('Id').value;
var tel = document.getElementById("Tel").value;
if (name == "") {
... |
(function (){
"use strict";
(function() {
var $bordered = $('.bordered');
window.setInterval(function() {
var top = window.pageYOffset || document.documentElement.scrollTop;
if(top > 0) {
$bordered.fadeOut('fast');
} else if(top == 0 && !$bord... |
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div classe="col-md-12">
<h2>Admin home</h2>
<h5>Welcome Admin </h5>
</div>
</div>
... |
\hypertarget{<API key>}{\section{/home/pavm/programming/lib/gft/include/gft\-\_\-gpqueue\-\_\-by\-\_\-\-Falcao.h File Reference}
\label{<API key>}\index{/home/pavm/programming/lib/gft/include/gft\-\_\-gpqueue\-\_\-by\-\_\-\-Falcao.\-h@{/home/pavm/programming/lib/gft/include/gft\-\_\-gpqueue\-\_\-by\-\_\-\-Falcao.\-h}}
... |
package com.hzq.sphinxwebview;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Build;
import android.webkit.WebSettings;
public class WebViewConfig {
} |
describe('$materialPopup service', function() {
beforeEach(module('material.services.popup', 'ngAnimateMock'));
function setup(options) {
var popup;
inject(function($materialPopup, $rootScope) {
$materialPopup(options).then(function(p) {
popup = p;
});
$rootScope.$apply();
});
... |
module.exports = Database;
Array.prototype.contains = function(obj) {
var i = this.length;
while (i
if (this[i] === obj) {
return true;
}
}
return false;
}
String.prototype.replaceAll = function(target, replacement) {
return this.split(target).join(replacement);
};
functi... |
import { getEmailTransport, initializeAdminApp } from './_internal';
import * as functions from 'firebase-functions';
import { District, GroupCreateInput, <API key> } from '@civ/city-council';
import { createRandomString } from './utils';
const app = initializeAdminApp();
const db = app.database();
const auth = app.aut... |
from django.dispatch import Signal
pre_save = Signal(providing_args=['instance', 'action', ])
post_save = Signal(providing_args=['instance', 'action', ])
pre_delete = Signal(providing_args=['instance', 'action', ])
post_delete = Signal(providing_args=['instance', 'action', ]) |
package me.coley.bmf.insn.impl;
import me.coley.bmf.insn.Instruction;
import me.coley.bmf.insn.OpType;
public class CALOAD extends Instruction {
public CALOAD() {
super(OpType.ARRAY, Instruction.CALOAD, 1);
}
} |
class MeetupEvent < ActiveRecord::Base
self.primary_key = "meetup_event_id"
belongs_to :meetup_group, foreign_key: "meetup_group_id"
class << self
def enabled
where(enable_sync: true)
end
def from_api_response(response)
start_time = LocalTime.convert(response['time'].to_i)
end_time... |
<?php
namespace Site\Bundle\PlatformBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class SitePlatformBundle extends Bundle
{
} |
package epsi.md4.com.epsicalendar.activities;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.