answer stringlengths 15 1.25M |
|---|
#ifndef <API key>
#define <API key>
#define <API key> 1024
typedef pid_t nc_pid_t;
typedef struct {
int command;
nc_pid_t pid;
int slot;
int fd;
int len;
} nc_channel_msg_t;
/*
typedef struct {
int command;
nc_pid_t pid;
} nc_channel_msg_t;*/
int nc_write_channel(int s, n... |
import json
import pytest
import requests
from globus_sdk.transfer.paging import PaginatedResource
from globus_sdk.transfer.response import <API key>
N = 25
class PagingSimulator:
def __init__(self, n):
self.n = n # the number of simulated items
def simulate_get(
self, path, params=None, header... |
<!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/... |
package org.cucina.sample.engine.client.app;
import org.cucina.engine.client.ProcessEngineFacade;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
import javax.tr... |
using PeNet.FileParser;
namespace PeNet.Header.Net.MetaDataTables
{
public class TypeSpec : AbstractTable
{
public TypeSpec(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes)
: base(peFile, offset, heapSizes, indexSizes)
{
Signature = ReadSize(HeapSi... |
using EmpMan.Data.Infrastructure;
using EmpMan.Model.Models;
namespace EmpMan.Data.Repositories
{
public interface <API key> : IRepository<ProductTag>
{
}
public class <API key> : RepositoryBase<ProductTag>, <API key>
{
public <API key>(IDbFactory dbFactory) : base(dbFactory)
{
... |
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: ./create_cluster.sh bucket-name region"
exit
fi
PROJECT=$(gcloud config get-value project)
BUCKET=$1
REGION=$2
INSTALL=gs://$BUCKET/flights/dataproc/install_on_cluster.sh
# upload install file
sed "s/CHANGE_TO_USER_NAME/$USER/g" install_on_cluster.sh > /tmp/ins... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Protocol;
namespace SuperSocket.QuickStart.CommandFilter
{
[<API key>]
public class QUERY : StringCommandBase
{
publi... |
package com.qiantao.coordinatormenudemo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import com.qiantao.coordinatormenu.CoordinatorMenu;
public class MainActivity extends AppCompatActivity {
private ImageView mHeadIv;
priv... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SharpChan.Extensions.Common;
using SharpChan.Reflection;
using System.IO;
namespace <API key>.CommandLine {
<summary>
Class represents command line arguments for generator.
</summary>
... |
package org.eclipse.jetty.servlet.listener;
import javax.servlet.ServletContextEvent;
import javax.servlet.<API key>;
/**
* IntrospectorCleaner
*
* Cleans a static cache of Methods held by java.beans.Introspector
* class when a context is undeployed.
*
* @see java.beans.Introspector
*/
public class IntrospectorC... |
package com.linkedin.thirdeye.detector.driver;
import static com.linkedin.thirdeye.detector.driver.<API key>.<API key>;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Que... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_51) on Tue Aug 27 20:57:03 WEST 2013 -->
<TITLE>
EventHistory.Event
</TITLE>
<META NAME="date" CONTENT="2013-08-27">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascri... |
package edu.harvard.we99.services;
import edu.harvard.we99.domain.Coordinate;
import edu.harvard.we99.domain.PlateDimension;
import edu.harvard.we99.domain.PlateMap;
import edu.harvard.we99.domain.PlateType;
import edu.harvard.we99.domain.WellMap;
import edu.harvard.we99.domain.WellType;
import edu.harvard.we99.test.Lo... |
package org.devcon.android.adapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.<API key>;
import com.viewpagerindicator.IconPagerAdapter;
import java.util.List;
public class TestFragmentAdapter extends <API key> implements
IconPagerAdapte... |
// file at the top-level directory of this distribution and at
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for unsigned 32-bits integers (`u32` type)
#![doc(primitive = "u32")]
uint_module!(u32, i32, 32) |
package com.coolweather.android;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreat... |
package com.frameworkset.common.poolman.handle;
import com.frameworkset.common.poolman.Record;
import com.frameworkset.common.poolman.sql.<API key>;
import com.frameworkset.common.poolman.util.SQLUtil;
import com.frameworkset.orm.engine.model.SchemaType;
public abstract class RowHandler<T> {
/**
*
* @para... |
<!DOCTYPE html PUBLIC "-
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="" enctype="multipart/form-data" method="post">
<input type="file" name="photo[]" /><br /> <input type="file"
name="photo[]" /><... |
#include "libos.h"
#include "httpc.h"
#include "harbor.h"
#include "listlib.h"
#define HARBOR_TIMEOUT (5)
typedef struct harbor_message_s{
list_head head;
char *msg;
int len;
int msgId;
}harbor_message_t;
typedef struct harbor_s{
list_head sendList;
httpc_t httpc;
char *szURL;
msg_callb... |
/**
* Function.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201601.cm;
/**
* Represents a function where its operator is applied to its argument
* operands
* resulting in a return v... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_45) on Sat Sep 28 14:09:52 CEST 2013 -->
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
Uses of Class org.apache.solr.schema.IndexSchemaFactory (Solr 4.5.0 API)
</TITLE>
<META NAME="date" CONTENT="2013... |
package com.elastisys.scale.commons.net.alerter.http;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import com.elastisys.scale.commons.net.ssl.BasicCredentials;
import com.elastisys.scale.commons.net.ssl.<API key>;
import com.elastisys.scale.commons.net.ss... |
#!/bin/bash
<API key>() {
results=`git diff --name-only HEAD~1`
contains=false
# Turn on for case-insensitive matching
# shopt -s nocasematch
for i in "$results"
do
:
if [[ ("$i" =~ $1) || "${<API key>}" =~ "[force build]" ]]; then
echo "Found a match ... |
#ifndef SettingsUnitH
#define SettingsUnitH
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "CSPIN.h"
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
class TformSettings : public TForm
{
__published: // IDE-managed Components
TGroupBox *GroupBox1;
TLabeledEdi... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_91) on Mon Aug 22 09:59:24 CST 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class play.libs.I18N (Play! API)</title>
<meta name="date" content="2016-08-22">
<link rel="styles... |
'use strict';
// BUILD
// The only purpose of this gulpfile is to build a XOS view and copy the correct files into
// .html => dashboards
// .js (minified and concat) => static/js
// The template are parsed and added to js with angular $templateCache
var gulp = require('gulp');
var ngAnnotate = require('gulp-ng-annotat... |
package esiv3
/*
200 ok object */
type <API key> struct {
/*
Number of NPC ships killed in this system */
NpcKills int32 `json:"npc_kills,omitempty"`
/*
Number of pods killed in this system */
PodKills int32 `json:"pod_kills,omitempty"`
/*
Number of player ships killed in this system ... |
package com.ekingsoft.core.json;
/**
* The <code>JSONString</code> interface allows a <code>toJSONString()</code>
* method so that a class can change the behavior of
* <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
* and <code>JSONWriter.value(</code>Object<code>)</code>. The
* <code>toJSON... |
var NodeRSA = require('node-rsa');
exports.getRandomstring = function(length) {
var text = "";
var possible = "<API key>";
for (var i = 0; i < length; i++)
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
exports.getHash = function(value) {
var crypto = re... |
# Laschia javanica (Holterm.) Sacc. & Trotter SPECIES
# Status
ACCEPTED
# According to
Index Fungorum
# Published in
Syll. fung. (Abellini) 21: 358 (1912)
# Original name
Favolaschia javanica Holterm.
Remarks
null |
$(document).ready(function(){
$("#back").on('click',function(){
movemm(-1);
});
$("#forward").on('click',function(){
movemm(1);
});
});
function movemm(dir) {
var curr = $("#curr").val();
$("#newCurr").val(parseInt(curr) + dir);
$("#movemmfrm").submit();
} |
#!/bin/bash
# Restore a snapshot
# Configuration
REPO=<API key> # Name of snapshot repository
HOST=$1
PORT=$2
SNAPSHOT=$3
if [[ -z $HOST || -z $PORT || -z $SNAPSHOT ]]; then
echo "Usage: bash elastic-restore.sh <hostname> <port> <snapshot name>"
echo "ex. bash elastic-restore.sh localhost 9200 20160822-164139"
... |
OUT = ex1
SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)
CC := mpicc
CFLAGS := -std=c11 -O2 -pedantic -Wall -Wextra -lm $(CFLAGS)
LDFLAGS := $(LDFLAGS)
LDLIBS =
all: $(OUT)
strip: $(OUT)
strip --strip-all $(OUT)
clean:
$(RM) $(OUT) $(OBJ)
.PHONY: all clean |
namespace CJia.Health.Tools
{
partial class WinFrom
{
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true ... |
#ifndef <API key>
#define <API key>
#include "base/memory/singleton.h"
#include "chrome/browser/profiles/<API key>.h"
class LoginUIService;
class Profile;
// Singleton that owns all LoginUIServices and associates them with
// Profiles. Listens for the Profile's destruction notification and cleans up
// the associated L... |
package biz.bsoft.web.controller;
import biz.bsoft.orders.dao.ItemInfoRepository;
import biz.bsoft.orders.dao.OrderRepository;
import biz.bsoft.orders.model.*;
import biz.bsoft.orders.service.OrderService;
import biz.bsoft.users.service.UserService;
import biz.bsoft.web.View;
import biz.bsoft.web.dto.OrderItemError;
im... |
package com.simonov.teamfan.data;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.support.annotation.Nullable;
import android.util.Log;
p... |
package com.assylias.jbloomberg;
import com.bloomberglp.blpapi.Event;
import com.bloomberglp.blpapi.Event.EventType;
import com.bloomberglp.blpapi.Message;
import com.bloomberglp.blpapi.impl.eB;
import java.util.Iterator;
import java.util.List;
import com.bloomberglp.blpapi.impl.iS;
import mockit.Mock;
public class Moc... |
package galvin.swing.editor.style;
import galvin.swing.editor.Editor;
import galvin.swing.editor.EditorDocument;
import galvin.swing.text.DocumentUtils;
import galvin.swing.text.caret.InvisibleCaret;
import galvin.swing.text.style.StyleInfo;
import galvin.swing.text.style.StyleSet;
import galvin.swing.text.style.StyleU... |
<div class="side-bar sticky-top" style="padding-top:90px">
<div class="card">
<div class="card-block">
<div style="padding-top: 1em; padding-bottom:1em">
{% include JB/ads-block.html %}</div>
</div>
</div>
<br />
<div class="card">
<div class="card-block">
<div style="padding-left:1em; paddi... |
layout: post
published: true
title: Vue2
category: web
tags:
- [vue]
excerpt: Vue Vue2.0
html
javascript
<div class="myHighchart" v-if="charBtn">
<div class="tabs">
<el-button>{{chart.money}}</el-button>
<el-button>{{chart.num}}</el-button>
</div>
<vue-highcharts :Highcharts="Highcharts" :options="... |
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include "esp_wifi.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "esp_netif.h"
#include "<API key>.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "freert... |
package com.konkerlabs.platform.registry.data.core.services.publishers;
import com.konkerlabs.platform.registry.business.model.*;
import com.konkerlabs.platform.registry.business.repositories.<API key>;
import com.konkerlabs.platform.registry.business.services.LocationTreeUtils;
import com.konkerlabs.platform.registry.... |
Model = typeof Model == 'undefined' ? {} : Model;
var runnable = function(fw){
cmodel.__reg('models', []);//echo
var modelTools = {
/**
* modelgetter/settermodeltemp
*/
defineProperty:function(property){
Object.defineProperty(this, property,{
get:fun... |
package org.echoice.core.module.jpa;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.springframework.data.jpa.domain.Spec... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_07) on Tue Apr 16 09:12:46 CEST 2013 -->
<title>ext.ojalgo.jexcel.database</title>
<meta name="date" content="2013-04-16">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</... |
(function() {
"use strict";
var parseErrors = [
{"description": "[basx572] Near-specials " + "(Conversion_syntax)", "string": "-9Inf"},
{
"description": "[basx516] The 'baddies' tests from DiagBigDecimal, plus some new ones " +
"(Conversion_syntax)",
"string": "... |
package org.functionalkoans.forscala
import org.functionalkoans.forscala.support.KoanFunSuite
import org.scalatest.Matchers
class AboutApply extends KoanFunSuite with Matchers {
koan("""The apply method is a magical method in Scala, it is a method that doesn't require you
|to leave out the entire method name!""... |
package com.github.lynzabo.codegen.mavenplugin;
*//**
*//*
*//**
*//*
*//**
*//*
*//**
*//*
*//**
*//*
*//**
*//*
*//**
*//*
*//**
*//*
/*
*
* @goal count
*
* @phase process-sources
public class CountMojo extends AbstractMojo
{
private static final... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.<API key>(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
... |
(function($){
function _1(_2,_3){
var w=0;
var b=true;
$(">div.tabs-header ul.tabs li",_2).each(function(){
if(this==_3){
b=false;
}
if(b==true){
w+=$(this).outerWidth(true);
}
});
return w;
};
function _4(_5){
var _6=$(">div.tabs-header",_5);
var _7=0;
$("ul.tabs li",_6).each(function(){
_7+=$(this).outerWidth(true);
... |
#!/usr/bin/env python
"""
builder plugin
Define the plugin base API for builders
for managing virtualenvs of various flavours
"""
import os
import re
import argparse
import subprocess
from collections import namedtuple
from cirrus.configuration import load_configuration
from cirrus.environment import repo_directory
fro... |
// ViewController.h
// TGFaceView
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Mon Jan 15 08:36:52 MST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.wildfly.swarm.config.webservices.PropertyConsumer (BOM: * : All 2018.1.0 API)</tit... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Dec 04 18:43:09 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.swarm.config.messaging.activemq.ExternalJMSQueue (BOM: * : All 2.5.1.Final-SNA... |
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Host;
namespace Microsoft.CodeAnalysis.Editor.Implementation.NavigateTo
{
internal interface <API key> : ILanguageService
{
Task<ImmutableArray<<API ke... |
#include <stdio.h>
#include <mpi.h>
#include "common.h"
char send_buf[MAX_SIZE];
int main(int argc, char **argv){
int i, me, target;
unsigned int size;
double t, t_max;
MPI_Win win;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &me);
MPI_Win_create(&send_buf, sizeof(char)*MAX_SIZE, 1, MPI_INFO_NUL... |
package io.digdag.standards.operator;
import com.google.common.base.Optional;
import com.google.inject.Inject;
import io.digdag.client.config.Config;
import io.digdag.client.config.ConfigElement;
import io.digdag.client.config.ConfigException;
import io.digdag.spi.Operator;
import io.digdag.spi.OperatorContext;
import ... |
package com.googlecode.common.admin.client;
import com.google.gwt.core.client.GWT;
import com.googlecode.common.client.app.AppInjector;
import com.googlecode.common.admin.client.ui.server.ServerBrowsePanel;
import com.googlecode.common.admin.client.ui.system.SystemBrowsePanel;
/**
* Admin DI definitions.
*/
public in... |
const path = require('path');
const { expect } = require('../setup');
const { delay } = require('../lib/mocha-utils');
const cli = require('../lib/cli');
const fs = require('../lib/fs');
const {
PATH_TMP_DIR,
<API key>
} = require('../lib/env');
describe('Project Commands', () => {
const projName = 'test-pr... |
<div id="portfolio-page" class="<API key>">
<div class="container">
<div class="portfolio-nav">
<div id="<API key>" class="<API key>">
<a href="#portfolio"><i class="fa fa-close"></i></a>
</div>
</div>
<div class="portfolio-title">
<h1>Samp... |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "toaster-up";
const pathData = "M0 48q0-7 5-11.5T16 32h480q16 0 16 16t-16 16h-16v224q0 26-18.5 45T416 352v-32q14 0 <API key> 14 9.5 23t22.5 9v32q-26 <API key> 0-11-4.5T0 48zm112 48h288q16 0... |
from mysharky.writers import <API key>
#TODO should be able to pass parameters to conn fn
def mongo_conn(self):
from pymongo import MongoClient
m= MongoClient()['shark']['test']
return m
def mongo_processor(tweet, target_queue):
## TODO: recast datetime
target_queue.put(tweet)
def mongo_... |
(function () {
var initializing = false,
fnTest = /xyz/.test(function () {
var xyz;
}) ? /\b_super\b/ : /.*/;
// The base Class implementation (does nothing)
this.AnalyticsBase = function () {};
// Create a new Class that inherits from this class
AnalyticsBase.extend = function (prop) {
va... |
package com.webcohesion.enunciate.rt;
import com.webcohesion.enunciate.metadata.qname.XmlQNameEnum;
import com.webcohesion.enunciate.metadata.qname.XmlQNameEnumValue;
import com.webcohesion.enunciate.metadata.qname.<API key>;
import javax.xml.bind.annotation.XmlSchema;
import javax.xml.namespace.QName;
import java.lang... |
// IOEventDispatcher.h
// Library: IoT/Devices
// Package: Generated
// Module: IOEventDispatcher
// This file has been generated.
// Warning: All changes to this will be lost when the file is re-generated.
// <API key>: GPL-3.0-only
#ifndef <API key>
#define <API key>
#include "IoT/Devices/IORemoteObject.h"
#include ... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_16) on Thu Oct 02 15:35:30 BST 2008 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
Uses of Class org.springframework.security.afterinvocation.AbstractAclProvider (Spring Security 2.0.4 API)
</... |
# AUTOGENERATED FILE
FROM balenalib/n510-tx2-debian:jessie-run
ENV NODE_VERSION 10.24.0
ENV YARN_VERSION 1.22.4
RUN buildDeps='curl libatomic1' \
&& set -x \
&& for key in \
<API key> \
; do \
gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --batch --keyserver keyserver.p... |
# AUTOGENERATED FILE
FROM balenalib/armv7hf-debian:sid-run
ENV NODE_VERSION 12.22.9
ENV YARN_VERSION 1.22.4
RUN buildDeps='curl libatomic1' \
&& set -x \
&& for key in \
<API key> \
; do \
gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --batch --keyserver keyserver.pgp.c... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="de">
<head>
<title>Uses of Class org.deidentifier.arx.metric.v2.<API key> (ARX Developer Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!
if (loc... |
using System.IO;
using System.IO.Compression;
using System.Threading.Tasks;
using NServiceBus.Logging;
using NServiceBus.MessageMutator;
#region <API key>
public class <API key> : <API key>, <API key>
{
static ILog log = LogManager.GetLogger("<API key>");
public Task MutateOutgoing(<API key> context)
{
... |
require "<API key>"
CodeClimate::TestReporter.start
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'simplecov'
SimpleCov.start do
add_filter "app... |
from math import ceil
def round(valor, n, max_value, precision):
result = int(ceil(valor / (max_value * (precision / n))))
return result
def calcular_mochila(items, pesoMax, precision):
n = len(items)
filtered_items = filter(lambda item: (item[1] <= pesoMax), items)
max_value = reduce(lambda item1, ... |
package certgen.controller.action;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import javax.swing.JOptionPane;
import javax.swing.KeyStroke;
import certgen.model.table.<API key>;
import certgen.util.ImageUtil;
import certgen.view.dialog.<API key>;
import certgen... |
package com.zhuinden.examplegithubclient.util;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Inherited
@Retention(RetentionPolicy.RUNTIME)
public @interface <API key> {
boolean value() default true;
} |
import os
import pandas as pd
from igf_data.utils.seqrunutils import <API key>
def _count_total_reads(data,seqrun_list):
'''
An internal function for counting total reads
required params:
:param data, A dictionary containing seqrun ids a key an read counts as values
:param seqrun_list, A list of sequencing ru... |
package com.yw.monitor.view.holder;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.yw.monitor.view.adapter.InnerViewHolders;
import com.yw.monitor.R;
import com.yw.m... |
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using PixateFreestyleLib;
namespace HelloWorld
{
// The <API key> for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>proxy — Pilot 2 documentation</title>
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_... |
using System;
using System.Collections.Generic;
using Hawk.Core.Utils;
using Hawk.Core.Utils.Plugins;
namespace Hawk.Core.Connectors
{
[Interface( "" )]
public interface IFileConnector:<API key>
{
#region Properties
<summary>
</summary>
string ExtentFileName { get; }
... |
package fr.excilys.formation.bowliwood.main;
import org.junit.Test;
import static org.junit.Assert.fail;
public class <API key> {
@Test
/**
* Failing test. Should be changed for CI.
*/
public void testFailure() {
fail();
}
} |
namespace artm.MvxPlugins.Fetcher.Tests.Common
{
public static class TestCategory
{
public const string Slow = "SLOW";
public const string Internet = "INTERNET";
}
} |
<!-- HTML header for doxygen 1.8.18-->
<!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.9.2"/>
<meta name="viewport" content="width=device-width, initial-s... |
BUCKETNAME=alpha.droneshare.com
export AWS_DEFAULT_PROFILE=3dr
aws s3 mb s3://$BUCKETNAME
aws s3 sync --delete dist s3://$BUCKETNAME
# AngularJS applications prefer to get back index.html for any bad links
cat >s3website.json <<EOF
{
"IndexDocument": {
"Suffix": "index.html"
},
"RoutingRules": [
{
... |
/* $Xorg: save.c,v 1.5 2001/02/09 02:06:01 xorgcvs Exp $ */
/* $XFree86: xc/programs/xsm/save.c,v 3.3 2001/01/17 23:46:30 dawes Exp $ */
#include "xsm.h"
#include "save.h"
#include "saveutil.h"
#include "popup.h"
#include "info.h"
#include "lock.h"
#include "choose.h"
#include <X11/Shell.h>
#include <X11/Xaw/Form.h>
#i... |
# Aspicilia sublapponica (Zahlbr.) Oxner SPECIES
# Status
ACCEPTED
# According to
Index Fungorum
# Published in
Bryologist 82(3): 402 (1979)
# Original name
Lecanora sublapponica Zahlbr.
Remarks
null |
<?php
declare(strict_types=1);
class ThemeController extends Base\ApiController
{
public function getAction()
{
return $this->send($this->model->get());
}
} |
// Code generated by protoc-gen-liverpc v0.1, DO NOT EDIT.
// source: v1/AdminSilent.proto
/*
Package v1 is a generated liverpc stub package.
This code was generated with go-common/app/tool/liverpc/protoc-gen-liverpc v0.1.
It is generated from these files:
v1/AdminSilent.proto
v1/Shield.proto
v1/ShieldMng.p... |
CREATE TABLE "ENTITY_A" (
"ID" NUMBER(9,0) NOT NULL,
"NAME" VARCHAR2(16 BYTE) NOT NULL,
"CREATED_ON" DATE,
"CREATED_BY" VARCHAR2(16 BYTE),
"UPDATED_ON" DATE,
"UPDATED_BY" VARCHAR2(16 BYTE),
"VERSION" NUMBER(9,0),
CONSTRAINT "ENTITY_A_PK" PRIMARY K... |
#! /usr/bin/perl
use strict;
use utf8;
use warnings;
use Bio::SeqIO;
die"perl $0 <cds.fa> > out.fa\n" unless(@ARGV eq 1);
my $in = Bio::SeqIO->new(-file=>"< $ARGV[0]",-format=>"fasta");
while (my $seq = $in->next_seq()){
my $reseq = $seq->revcom;
my $tmp_id = $seq->id;
my $tmp_seq = $seq->seq;
my $re_tm... |
name "ufw"
maintainer "Cloudenablers"
maintainer_email "nagalakshmi.n@cloudenablers.com"
license "Apache 2.0"
description "Installs/Configures ufw"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.7.5"
depends "firewall", ">= 0.9"
%w{ ... |
var http = require('http');
var gen = require('./<API key>');
var fs = require('fs');
var Vinyl = require('vinyl');
var config = {
type: "model",
moduleName: "SampleModule",
dependencyDir: "src/model*.js",
<API key>: true,
destDir: "src/test/specs",
formatContent: true,
dependencyDestDir: "s... |
var a00942 =
[
[ "<API key>", "a00942.html#<API key>", null ],
[ "<API key>", "a00942.html#<API key>", null ]
]; |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-08 11:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '<API key>'),
]
operations = [
migrations.AddField(
model_nam... |
/** @flow */
import ActionType from '../../actions/ActionType'
module.exports = (state = {}, action) => {
switch (action.type) {
case ActionType.Gmail.Label.FETCH_ALL_SUCCESS:
let labelState = {};
action.labels.forEach(label => {
labelState[label.id] = label
});
return labelState;
... |
package eu.reactivesystems.league.impl
import akka.Done
import akka.actor.ActorSystem
import akka.http.scaladsl.Http
import akka.stream.ActorMaterializer
import eu.reactivesystems.league.api.{Club, Game, LeagueService}
import scala.concurrent.Future
import scala.io.StdIn
object LeagueServiceImpl extends LeagueService {... |
"""
Return data to a memcache server
To enable this returner the minion will need the python client for memcache
installed and the following values configured in the minion or master
config, these are the defaults.
.. code-block:: yaml
memcache.host: 'localhost'
memcache.port: '11211'
Alternative configuration ... |
<div *ngIf="contribution">
<br/>
<table>
<tr class="athing">
<td class="ind"></td>
<td valign="top"><!-- Show votes if logged in and not voted--></td>
<td class="default">
<div style="margin-top:2px; margin-bottom: -10px;">
<span cl... |
using System;
using System.Net.Http;
using Akka.Actor;
using QDFeedParser;
using SymbolLookup.Actors.Messages;
using SymbolLookup.YahooFinance;
using Failure = SymbolLookup.Actors.Messages.Failure;
using Newtonsoft.Json;
namespace SymbolLookup.Actors
{
//Actor responsible for fetching a stock
public class Stock... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.