answer stringlengths 15 1.25M |
|---|
#ifndef <API key>
#define <API key>
#include <functional>
#include <map>
#include <string>
#include <ncurses.h>
#include "minibus/io/i_display.h"
#include "minibus/io/key.h"
#include "minibus/widgets/hotkeys.h"
#include "minibus/widgets/widget.h"
using namespace std;
namespace minibus {
class HotkeysSelect : public Hot... |
package hackerrank;
import java.io.*;
public class Solution {
/**
* popup sorting (assent)
* @param integers
* @return
*/
public static int[] sortPopup(int[] integers){
int [] sortedIntegers = new int[integers.length];
System.arraycopy(integers,0,sortedIntegers,0,integers.len... |
#!/bin/bash
. $(dirname $0)/../testenv.sh
source=$(curl -s -H "accept: text/uri-list" ${occi_srv}/collections/compute/ | head -1)
target=$(curl -s -H "accept: text/uri-list" ${occi_srv}/collections/network/ | head -1)
id=/store/mylinks/json/networkinterfaces/$(uuidgen)
content=$(cat <<EOF
{
"links": [
{
... |
package com.bjlx.QinShihuang.core;
import com.bjlx.QinShihuang.core.formatter.account.FavoriteFormatter;
import com.bjlx.QinShihuang.core.formatter.account.UserInfoFormatter;
import com.bjlx.QinShihuang.core.formatter.account.VoteFormatter;
import com.bjlx.QinShihuang.core.formatter.activity.<API key>;
import com.bjlx.... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Demo1.Models
{
public class BlogModel
{
public string Title { get; set; }
public string Content { get; set; }
}
} |
package source;
public enum TopEnum {
FOO, BAR
} |
package com.ctrip.framework.cs.configuration;
import com.ctrip.framework.cs.configuration.Configuration;
import com.ctrip.framework.cs.configuration.<API key>;
import com.ctrip.framework.cs.configuration.<API key>;
import com.ctrip.framework.cs.util.IOUtils;
import org.junit.Assert;
import org.junit.Test;
import java.i... |
package net.cpollet.itinerants.web.context;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.neo4j.repository.config.<API key>;
import org.springframework.transaction.annotation.<API key>;
@Configuration
@<API k... |
veneer("veneer-timer", {
events: {
remove: function(e){ clearTimeout(e.target._timer); },
update: function(e){
var elm=e.target,
delay = +elm.interval || 80 ,
code=elm.getAttribute("onchange");
if(!code) return;
elm.cancel=function(){clearInterval(elm._timer);};
... |
<?php
namespace Magento\Bundle\Pricing\Price;
use Magento\Catalog\Pricing\Price\RegularPrice;
/**
* Bundle tier prices model
*/
class TierPrice extends \Magento\Catalog\Pricing\Price\TierPrice implements <API key>
{
/**
* @var bool
*/
protected $filterByBasePrice = false;
/**
* @var float|f... |
package avans.ivh11a1.facturatie.domain.billing.State;
import avans.ivh11a1.facturatie.domain.billing.Invoice;
import java.util.Date;
public class PendingState implements State {
@Override
public void doAction(Invoice i) {
i.setState(InvoiceState.PAID);
i.setDatePayed(new Date());
}
@Ove... |
// UIImage+Alpha.h
// Free for personal or commercial use, with or without modification.
// NOTE: TitaniumCalendar modified to convert from Category to
// new Class name since iPhone seems to have some issues with Categories
// of built in Classes
// Helper methods for adding an alpha layer to an image
@interface UIIma... |
package cz.cesnet.meta.pbs;
public class TextWithCount implements Comparable<TextWithCount> {
private String text;
private int pocet;
public TextWithCount(String text, int pocet) {
this.text = text;
this.pocet = pocet;
}
@Override
public int compareTo(TextWithCount o) {
r... |
package com.nortal.lorque;
/**
* @author Vassili Jakovlev
*/
public enum QueryStatus {
SUBMITTED, CANCELLED, RUNNING, COMPLETED, FAILED, CALLBACK_FAILED;
} |
package bayesGame.ui;
import javax.swing.JPanel;
public class ResolutionSelection extends JPanel {
} |
package org.vaadin.appbase.event;
import lombok.extern.slf4j.Slf4j;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.<API key>;
import com.google.common.eventbus.<API key>;
import org.springframework.stereotype.Component;
import org.vaadin.spring.UIScope;
@Component
@UIScope
@Slf4j
public c... |
// YR_NewArtsAuthModel.h
// Artand
#import "YR_BaseModel.h"
@class <API key>;
@interface YR_NewArtsAuthModel : YR_BaseModel
@property (nonatomic, copy) NSString *type;
//@property (nonatomic, strong) <API key> *extral;
@end |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Mon Mar 03 10:44:38 EST 2014 -->
<title>Uses of Class org.hibernate.type.<API key> (Hibernate JavaDocs)</title>
<meta name="date" content="2014-03-03">
<link rel="stylesheet" type="text/css" href="../../../... |
"""This exists only as a test harness for examining slightly non-trivial coverage output."""
import sys
from collections import defaultdict
def calculate_answer(a, b):
return a * b
def the_answer():
return calculate_answer(
6,
7,
) |
package info.ipeanut.youngnews.ui.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import info.ipeanut.youngnews.ui.base.BaseFragment;
public class VoteFragment extends BaseFragment {
@Nullabl... |
require 'test_helper'
class <API key> < ActionController::TestCase
setup do
@plant = plants(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:plants)
end
test "should get new" do
get :new
assert_response :success
end
test "should creat... |
FROM fedora
RUN dnf -y update && dnf install -y make git golang <API key> \
# storage deps
btrfs-progs-devel \
device-mapper-devel \
# gpgme bindings deps
libassuan-devel gpgme-devel \
ostree-devel \
gnupg \
# OpenShift deps
which tar wget hostname util-linux bsdtar socat ethtool dev... |
package dao
import (
"bytes"
"context"
xsql "database/sql"
"fmt"
"strconv"
"time"
"go-common/app/job/main/coupon/model"
"go-common/library/database/sql"
"go-common/library/xstr"
"github.com/pkg/errors"
)
const (
_updateStateSQL = "UPDATE `coupon_info_%02d` SET `state` ... |
package ru.stqa.pft.addressbook.Task9.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class NavigationHelper extends BaseHelper {
public NavigationHelper(WebDriver wd) {
super(wd);
}
public void gotoHomePage() {
if (isElementPresent(By.id("maintable"))... |
package com.github.jankroken.commandline.error;
import com.github.jankroken.commandline.ParseResult;
import com.github.jankroken.commandline.domain.<API key>;
import com.github.jankroken.commandline.domain.<API key>;
import com.github.jankroken.commandline.domain.<API key>;
import org.junit.jupiter.api.Test;
import sta... |
# ssh-tunnel-server
## Variables
# Source ports list
SOURCE_PORTS="22 80"
# Remote ports (a kind of prefix), example (calculation): $REMOTE_PORTS + $SOURCE_PORT = 10022
REMOTE_PORTS=10000
# Remote server bind to (e.g 0.0.0.0)
REMOTE_BIND=localhost
REMOTE_HOST=remote.example.com
REMOTE_USER=robot
## Initial (master) ser... |
require 'pathname'
Puppet::Type.type(:x509_cert).provide(:openssl) do
desc 'Manages certificates with OpenSSL'
commands :openssl => 'openssl'
def self.private_key(resource)
file = File.read(resource[:private_key])
if resource[:authentication] == :dsa
OpenSSL::PKey::DSA.new(file, resource[:password])... |
package com.orbitz.monitoring.lib.processor;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import junit.framework.TestCase;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.spi.LoggingEvent;
import org.mockito.Mockito;
import com.orbitz.monitoring.api.Attri... |
using Owin;
namespace <API key>
{
public partial class Startup
{
public void ConfigureAuth(IAppBuilder app)
{
// Enable the application to use a cookie to store information for the signed in user
// and to use a cookie to temporarily store information about a user logging... |
package org.hl7.fhir.instance.model.valuesets;
// Generated on Tue, Jul 14, 2015 17:35-0400 for FHIR v0.5.0
import org.hl7.fhir.instance.model.EnumFactory;
public class <API key> implements EnumFactory<<API key>> {
public <API key> fromCode(String codeString) throws <API key> {
if (codeString == null || "".equals... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_22) on Tue Nov 16 12:39:13 CET 2010 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
org.resthub.core.service (RESThub framework 1.0 API)
</TITLE>
<META NAME="date" CONTENT="2010-11-16">
<LINK REL ="... |
import type { Country } from './utils/countries';
import { noop } from 'lodash';
import React, { PureComponent } from 'react';
import classNames from 'classnames';
import Emoji from '../Emoji/Emoji';
import { <API key> } from '@dlghq/react-l10n';
import { getCountryName } from '@dlghq/country-codes';
import styles from... |
// UIImage+Alpha.h
// Free for personal or commercial use, with or without modification.
// NOTE: BUGO modified to convert from Category to
// new Class name since iPhone seems to have some issues with Categories
// of built in Classes
// Helper methods for adding an alpha layer to an image
@interface UIImageAlpha : NS... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>FlexBox Testing</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/gene.css" type="text/css">
<link rel="stylesheet" href="css/normalize.css">
<style>
.header{border:1px solid #f52b63; backg... |
-- CHECKS LAST.FM TRACK DATA
-- Gets LAST.FM TRACK IDs with mixradio artist name/track name OR musicbrainz artist/track ID.
-- API Parameters: artist/release names and musicbrainz artist/release IDs (when available)
-- API REQUEST: http://ws.audioscrobbler.com/2.0/?method=track.getinfo&api_key=API_KEY&artis... |
package com.orionplatform.file_system.directories;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import com.orionplatform.core.abstraction.OrionService;
import com.orionplatform.file_system.FileSystemService;
public class DirectoryService extends OrionService
{
public stat... |
#!/usr/bin/env python
from subprocess import Popen, PIPE
from sys import argv
__autor__ = "Jose Jiménez"
__email__ = "jjimenezlopez@gmail.com"
__date__ = "2012/05/03"
if len(argv) == 1 or len(argv) > 2:
print 'Wrong execution format.'
print 'Correct format: any2utf /path/to/the/files'
exit(0)
path = argv[1]... |
package org.ssase.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.math.BigDecimal;
import java.util.*;
public class Data {
static int startIndex = 0;
static String prefix = "/Users/tao/research/analysis/results/";
//"/Users/tao/research/experiments-data/f... |
[](# "werdlists/http-security")
| _Folder Name_ | _Description of Contents_
|:
| [<API key>](<API key>.txt) | Abnormal HTTP traff... |
webpackHotUpdate(3,[
function(module, exports, __webpack_require__) {
var React = __webpack_require__(2);
var ReactDOM = __webpack_require__(158);
var bootstrap = __webpack_require__(159);
var formStyle = {
marginTop: '20%'
};
var buttonStyle = {
width: '100%'
};
var smal... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (1.8.0_25) on Fri Jul 24 14:21:34 CEST 2015 -->
<title>Uses of Package com.robocorp2.API</title>
<meta name="date" content="2015-07-24">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<scrip... |
#include "envoy/config/core/v3/base.pb.h"
#include "common/network/address_impl.h"
#include "common/network/listener_impl.h"
#include "common/network/utility.h"
#include "test/common/network/<API key>.h"
#include "test/mocks/network/mocks.h"
#include "test/mocks/server/mocks.h"
#include "test/test_common/environment.h"... |
package org.openestate.io.is24_xml.xml;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class Adapter23
extends XmlAdapter<String, Long>
{
public Long unmarshal(String value) {
return (org.openestate.io.is24_xml.Is24XmlUtils.parseZahl5(value));
}
public String marshal(Long value) {
... |
import React, { Component } from 'react';
import { CardDeck, Card, CardText, CardBlock, CardTitle} from 'reactstrap';
class About extends Component {
render() {
return (
<div>
<CardDeck>
<Card>
<CardBlock>
<C... |
package de.visorapp.visor.threads;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.util.Log;
import de.visorapp.visor.BitmapRenderer;
import de.visorapp.visor.NativeYuvDecoder;
public class BitmapCreateThread implements Runnab... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (version 1.7.0_11) on Mon Apr 07 19:10:16 CEST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Class at.irian.ankor.ref.match.pattern.<API key> (Ankor - Project 0.2-SNAPSHOT API)</tit... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice.Leetcode.Array
{
class <API key>
{
public static void Main(string[] args)
{
int[] nums = { 4, 5, 6, 7, 0, 1, 2 };
<API key> a = new <API key>();
int result... |
<?php
/**
* Register a PHP function to resource method matching method_name
*
* @phpstub
*
* @param resource $server
* @param string $method_name
* @param string $function
*
* @return bool
*/
function <API key>($server, $method_name, $function)
{
} |
using System;
namespace Talifun.Commander.Command.Video
{
public static class GravityExtensions
{
public static string GetOverlayPosition(this Gravity gravity)
{
switch (gravity)
{
case Gravity.NorthWest:
return "{0}:{1}";
... |
# <API key>
Instructions:
1. For linux Install Mono ->
bash
rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=<API key>"
bash
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
bash
yum -y install mono-complete-5.8.0.127-0.xamarin.3.epel7.x86_64
1. If py... |
var assert = require('assert');
var BaseStrategy = require('../..').restartStrategies.BaseStrategy;
var Supervisor = require('../..').Supervisor;
describe('BaseStrategy', function() {
describe('process()', function() {
it('should error emit an error to the sup', function(done) {
var sup = new Supervisor(Bas... |
type: post97
title: Processing Units
categories: XAP97NET
parent: <API key>.html
weight: 300
{{<wbr>}}
The processing unit is the unit of packaging and deployment in the GigaSpaces XAP platform. This section details the anatomy and details of the processing unit. It describes the various processing unit types, explain... |
package com.snowplowanalytics.iglu.schemaddl.jsonschema.json4s
// json4s
import org.json4s._
import org.json4s.jackson.JsonMethods.parse
import com.snowplowanalytics.iglu.schemaddl.jsonschema.Schema
import com.snowplowanalytics.iglu.schemaddl.jsonschema.ToSchema
import com.snowplowanalytics.iglu.schemaddl.jsonschema.pr... |
# encoding: utf-8
require 'nokogumbo'
require 'minitest/autorun'
def parse_test(test_data)
test = { script: :both }
index = /(?:^#errors\n|\n#errors\n)/ =~ test_data
abort "Expected #errors in\n#{test_data}" if index.nil?
skip_amount = $~[0].length
# Omit the final new line
test[:data] = test_data[0...index... |
play2-doma-sample
==============
bundle/sbt-doma-plugin.zipScala-2.10sbt-0.13<br>
<br>
See also: https://github.com/hina0118/sbt-doma-plugin |
package org.granite.rest.handler;
import java.util.List;
public class SubListResponse<V> {
private final int totalCount;
private final List<V> responseValues;
public SubListResponse(int totalCount, List<V> responseValues) {
this.totalCount = totalCount;
this.responseValues = responseValues;
}
public i... |
#!/bin/bash
## <API key>: Apache-2.0
set -e
KW_SERVER_PATH=$KW_PATH/server
KW_CLIENT_PATH=$KW_PATH/client
export KLOCWORK_LTOKEN=/tmp/ltoken
echo "$KW_SERVER_IP;$KW_SERVER_PORT;$KW_USER;$KW_LTOKEN" > $KLOCWORK_LTOKEN
mkdir -p $CI_PROJECT_DIR/klocwork
log_file=$CI_PROJECT_DIR/klocwork/build.log
make clean > /dev/null
$K... |
namespace RefAndPointer._NullRef
{
using System;
using System.Runtime.CompilerServices;
unsafe static class NullReference
{
public static ref T Null<T>() => ref Unsafe.AsRef<T>((void*)0);
public static bool IsNull<T>(ref T x) => Unsafe.AsPointer(ref x) == (void*)0;
}
class Progra... |
package com.tim.smartparking;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.Button;
public class Chistop... |
/**
*
* @file writer
* @author chosen0ne(louzhenlin86@126.com)
* @date 2015/01/19 17:08:01
*/
#include "protos/Sample.pb.h"
#include <string>
#include <iostream>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
int fd, count;
char buf[1024];
count = a... |
import ClipboardJS from "clipboard";
import {add, formatISO, set} from "date-fns";
import ConfirmDatePlugin from "flatpickr/dist/plugins/confirmDate/confirmDate";
import $ from "jquery";
import tippy, {hideAll} from "tippy.js";
import <API key> from "../templates/<API key>.hbs";
import <API key> from "../templates/no_a... |
package jet.bpm.engine.model;
public class EndEvent extends AbstractElement {
private final String errorRef;
public EndEvent(String id) {
this(id, null);
}
public EndEvent(String id, String errorRef) {
super(id);
this.errorRef = errorRef;
}
public String getErrorRef() {
... |
/**
* @desc
* @date 201685
*/
package tk.cpusoft.common.util.response.AppManage;
import java.util.HashMap;
import java.util.Map;
import tk.cpusoft.common.base.BaseModel;
/**
* @desc
* @date 201685-10:07:41
*/
public class AppReply extends BaseModel{
/**
* @desc
* @date 201685-10:10:19
*/
pr... |
/**
* @fileoverview Class representing inputs with connections on a rendered block.
*/
/**
* Class representing inputs with connections on a rendered block.
* @class
*/
goog.module('Blockly.blockRendering.InputConnection');
const object = goog.require('Blockly.utils.object');
const {Connection} = goog.require('Blo... |
package org.swtk.commons.dict.wordnet.indexbyid.instance.p0.p6; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.TreeMap; import org.swtk.common.dict.dto.wordnet.IndexNoun; import com.trimc.blogger.commons.utils.GsonUtils; public final class <API key> { private st... |
package com.wgt.umeng.activity;
import com.umeng.message.UmengRegistrar;
import com.wgt.umeng.R;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.EditText;
public class MainActivity extends BascActivity {
private final String TAG = "MainActivity";
private St... |
using FlatBuffers;
using Nostradamus.Networking;
using System.Collections.Generic;
using System.Linq;
namespace Nostradamus
{
public sealed class SimulatorSnapshot : ISnapshotArgs
{
public List<ActorSnapshot> Actors = new List<ActorSnapshot>();
#region ISnapshotArgs
ISnapshotArgs ISnapsh... |
namespace Aggregator.ConsoleApp
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.TeamFoundation.Server;
using Microsoft.TeamFoundation.WorkItemTrac... |
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using QuickGraph;
using System;
using System.Diagnostics.Contracts;
using Windows.UI.Xaml;
using Windows.Foundation;
namespace GraphSharp.Algorithms.Layout.Compound.FDP
{
public partial class <API key><TVertex, TEdge, TGraph>
where T... |
// <API key>.h
// KeyBoard
#import <UIKit/UIKit.h>
@interface <API key> : <API key>
@end |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict //EN">
<html>
<head>
<title>Save/Delete in Ebean</title>
<link rel="shortcut icon" href="/image/favicon.ico" >
<link rel="stylesheet" type="text/css" href="/static/v2style.css" >
<!
<link rel="stylesheet" type="text/css" href="/css/100/basestyle|syntaxhighlighter" >
<... |
package com.sxj.SeeWeather.modules.ui.about;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import com.sxj.SeeWeather.R;
public class AboutFragment extends PreferenceFragment implements Preference.<API key> {
@Override public void onCreate(Bundle savedI... |
package me.tatarka.lens.autovalue.sample;
import com.google.auto.value.AutoValue;
import me.tatarka.lens.IntLens;
import me.tatarka.lens.autovalue.AutoValueLenses;
@AutoValue
public abstract class Person {
public static Person create(int age) {
return new AutoValue_Person(age);
}
public static Lense... |
package my.work.stock.system.shiro;
import my.work.stock.system.domain.entity.UserInfo;
import my.work.stock.system.domain.service.UserInfoService;
import org.apache.shiro.authc.<API key>;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.... |
(function() {
'use strict';
angular
.module('facilitymgmtApp')
.config(stateConfig);
stateConfig.$inject = ['$stateProvider'];
function stateConfig($stateProvider) {
$stateProvider.state('account', {
abstract: true,
parent: 'app'
});
}
})(); |
## Treebank Statistics (UD_Chinese)
This relation is universal.
There are 4 language-specific subtypes of `case`: [case:aspect](), [case:dec](), [case:pref](), [case:suff]().
3218 nodes (3%) are attached to their parents as `case`.
3201 instances of `case` (99%) are right-to-left (child precedes parent).
Average distan... |
package org.openecard.sal.protocol.genericcryptography;
import iso.std.iso_iec._24727.tech.schema.<API key>;
import iso.std.iso_iec._24727.tech.schema.<API key>;
import iso.std.iso_iec._24727.tech.schema.DIDScopeType;
import iso.std.iso_iec._24727.tech.schema.DIDStructureType;
import iso.std.iso_iec._24727.tech.schema.... |
__author__ = 'Dzmitry'
def test_login(app):
app.session.login("administrator", "root")
assert app.session.is_logged_in_as("administrator") |
// <API key>.h
// CustomCell
#import <UIKit/UIKit.h>
@interface <API key> : <API key>
@end |
/*global define*/
define([
'../Core/Color',
'../Core/defined',
'../Core/destroyObject',
'../Core/PixelFormat',
'../Renderer/ClearCommand',
'../Renderer/PixelDatatype',
'../Renderer/RenderState',
'../Renderer/ShaderSource',
'../Shaders/AdjustTranslu... |
'use strict';
var util = require('util');
var path = require('path');
var fork = require('child_process').fork;
var Configstore = require('configstore');
var request = require('request');
var chalk = require('chalk');
var semver = require('semver');
var proxyServer = process.env.HTTPS_PROXY
|| process.env.https_pro... |
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Security.Cryptography;
using System.Threading.Tasks;
using LtiLibrary.NetCore.Common;
using LtiLibrary.NetCore.Lti.v1;
using LtiLibrary.NetCore.OAuth;
namespace LtiLibrary.NetCore.Clients
{
<summary>
Base class for LTI client helpe... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Typography from 'material-ui/Typography';
const styleSheet = () => ({
base: {
display: 'flex',
width: '100',
alignItems: 'center',
backgroundColor: 'transparent',
color: 'inherit'... |
#include <stdio.h>
#include <dlpack/dlpack.h>
DLManagedTensor given;
void display(DLManagedTensor a) {
puts("On C side:");
int i;
int ndim = a.dl_tensor.ndim;
printf("data = %p\n", a.dl_tensor.data);
printf("ctx = (device_type = %d, device_id = %d)\n",
(int) a.dl_tensor.ctx.device_type,
(i... |
package com.cabinetms.notice.web;
import com.cabinetms.client.MediaCommand;
import com.cabinetms.common.Constants;
import com.cabinetms.notice.entity.CabinetmsNotice;
import com.cabinetms.notice.service.<API key>;
import com.cabinetms.terminal.entity.CabinetmsTerminal;
import com.cabinetms.terminal.service.<API key>;
i... |
package com.cognizant.cognizantits.qcconnection.qcupdation;
import com4j.Com4jObject;
import com4j.DISPID;
import com4j.GUID;
import com4j.IID;
import com4j.NativeType;
import com4j.ReturnValue;
import com4j.VTID;
@IID("{<API key>}")
public abstract interface IFactoryProvider
extends Com4jObject
{
@DISPID(24)
@VT... |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="popup.css"/>
</head>
<body style="min-width:300px">
INSTRUCTIONS:
<br>
- To set preferences, right click on this icon, and select "options".
<br>
- To scan an element in the DOM manually, right click on the element and select "scan this element"
</body>
</html> |
{{template "layout/head.html" .}}
{{template "layout/top.html" .}}
<div class="clearfix" style="height:40px;"></div>
<div class="main-sm">
<h1></h1>
<h3></h3>
<div id="error-span"></div>
<div class="clearfix" style="height:10px;"></div>
<div class="green-box" style="width... |
var styleImpassable = new ol.style.Style({
text: new ol.style.Text({
font: '12px Calibri,sans-serif',
fill: new ol.style.Fill({color: "#000000"}),
stroke: new ol.style.Stroke({color: "#ffff00", width: 2})
}),
image: new ol.style.Icon({
scale: 1,
anchor: [0.5, 0.5],
... |
Function deployment based on https://github.com/Azure-Samples/<API key>
## How to deploy
bash
../../../gradlew <API key> |
package main
import (
"encoding/json"
"flag"
"fmt"
"gopkg.in/mgo.v2/bson"
"os"
"path/filepath"
"strings"
"time"
"github.com/apache/thrift/lib/go/thrift"
"github.com/go-kit/kit/log"
thriftclient "github.com/banerwai/micros/command/contact/client/thrift"
"github.com/banerwa... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import urlparse
from scrapy import log
from scrapy.http import Request
from base.base_wolf import Base_Wolf
class Wolf(Base_Wolf):
def __init__(self, *args, **kwargs):
super(Wolf, self).__init__(*args, **kwargs)
self.name = 'henbt'
self... |
package org.aja.tej.examples.spark.rdd.dataOrganization.partitioner
import org.aja.tej.utils.TejUtils
import org.apache.spark.{HashPartitioner, SparkContext}
/*
RDD is distributed this means it is split on some number of parts. Each of this partitions is potentially on different
machine. Hash partitioner with arument n... |
package com.github.flyinghe.tools;
import java.io.Serializable;
import java.util.List;
public class PageBean<T> implements Serializable {
private static final long serialVersionUID = 1L;
private Integer pageCode;
private Integer pageRecord;
private Long totalRecord;
private Integer indexNo;//5 1 2 3... |
// Code generated by go-bindata.
// sources:
// config/config.go
// config/local.local
// DO NOT EDIT!
package config
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
)
func bindataRead(data []byte, name string) ([]byte, error) {
gz, e... |
<!DOCTYPE html>
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media="all"/>
<link rel="stylesheet" href="../../../../../aui/... |
## Minio/
( / )
|||
|:
||16|
||4|
||N / 2|
||N / 2+1 |
|||
|:
|Web| 5GB|
Limits of S3 API
|||
|:
|||
|||
|| 5 TB |
|| 0 B |
|PUT| 5 GB |
|Part| 10,000|
|Part |5MB5GB. part0B5GB|
|list partspart| 1000|
|list objectsobject| 1000|
|list multipart uploadsmultipart uploads| 1000|
AWS S3APIminio[github](https://github.c... |
package io.quarkus.smallrye.jwt.runtime.auth;
import java.util.function.Consumer;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.eclipse.microprofile.jwt.JsonWebToken;
import org.jboss.logging.Logger;
import io.quarkus.security.<API key>;
import io.quarkus.security.identity.<A... |
package io.quarkus.spring.security.runtime.interceptor.check;
import java.lang.reflect.Method;
import io.quarkus.arc.Arc;
import io.quarkus.security.ForbiddenException;
import io.quarkus.security.<API key>;
import io.quarkus.security.identity.SecurityIdentity;
import io.quarkus.security.spi.runtime.MethodDescription;
i... |
import template from './footer.html';
import controller from './footer.controller';
import './footer.styl';
let footerComponent = {
restrict: 'E',
bindings: {},
template,
controller,
controllerAs: 'vm'
};
export default footerComponent; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.