code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
package org.usfirst.frc369.Robot2017Code.subsystems;
import org.usfirst.frc369.Robot2017Code.Robot;
import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
*
*/
public class LED extends Subsystem {
// Put methods for controlling this subsystem
// here. Call these from Comma... | Java |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Javadoc API documentation for Fresco." />
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>
co... | Java |
var NETKI_PUBAPI_HOST = 'https://pubapi.netki.com';
var NETKI_API_HOST = 'https://api.netki.com';
var SHORTCODES = {
'btc': 'Bitcoin',
'tbtc': 'Bitcoin Testnet',
'ltc': 'Litecoin',
'dgc': 'Dogecoin',
'nmc': 'Namecoin',
'tusd': 'tetherUSD',
'teur': 'tetherEUR',
'tjpy': 'tetherJPY',
'oap': 'Open Asset'... | Java |
<?php
/**
* Cache subsystem library
* @package Cotonti
* @version 0.9.10
* @author Cotonti Team
* @copyright Copyright (c) Cotonti Team 2009-2014
* @license BSD
*/
defined('COT_CODE') or die('Wrong URL');
/**
* Stores the list of advanced cachers provided by the host
* @var array
*/
$cot_cache_drivers = arr... | Java |
#!/bin/bash
set -x
# configure tweaks
mv /tmp/docker-* /etc/apt/apt.conf.d
chown root:root /etc/apt/apt.conf.d/docker-*
chmod 644 /etc/apt/apt.conf.d/docker-*
# make sure we're fully up-to-date
apt-get update && apt-get dist-upgrade -y
reboot
| Java |
/*L
* Copyright Ekagra Software Technologies Ltd.
* Copyright SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cacore-sdk-pre411/LICENSE.txt for details.
*/
package gov.nih.nci.system.webservice;
import gov.nih.nci.system.applicationservice.ApplicationService;
i... | Java |
ls | `cat` | wc -l | wc -c
| Java |
package au.gov.ga.geodesy.sitelog.domain.model;
import javax.validation.constraints.Size;
/**
* http://sopac.ucsd.edu/ns/geodesy/doc/igsSiteLog/contact/2004/baseContactLib.xsd:contactType
*/
public class Contact {
private Integer id;
@Size(max = 200)
protected String name;
@Size(max = 200)
protect... | Java |
namespace Leaderboard
{
public enum SortBy
{
None,
Score,
Rank
}
}
| Java |
#region License Header
// /*******************************************************************************
// * Open Behavioral Health Information Technology Architecture (OBHITA.org)
// *
// * Redistribution and use in source and binary forms, with or without
// * modification, are permitted provided that... | Java |
"""
Commands that are available from the connect screen.
"""
import re
import traceback
from django.conf import settings
from src.players.models import PlayerDB
from src.objects.models import ObjectDB
from src.server.models import ServerConfig
from src.comms.models import Channel
from src.utils import create, logger, ... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_14) on Fri Sep 18 14:09:15 BST 2009 -->
<TITLE>
uk.org.mygrid.cagrid.servicewrapper.service.interproscan.stubs
</TITLE>
<META NAME="date" C... | Java |
package edu.cmu.minorthird.text.gui;
import edu.cmu.minorthird.text.FancyLoader;
import edu.cmu.minorthird.text.TextLabels;
import edu.cmu.minorthird.util.gui.ControlledViewer;
import edu.cmu.minorthird.util.gui.VanillaViewer;
import edu.cmu.minorthird.util.gui.Viewer;
import edu.cmu.minorthird.util.gui.ViewerFrame;
i... | Java |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TupleSections #-}
{-# OP... | Java |
<?php
$modules["recurringinvoices"]["name"] = "Recurring Invoices";
$modules["recurringinvoices"]["version"] = "1.01";
$modules["recurringinvoices"]["description"] =
"This module adds the ability to repeat invoices on a scheduled basis.";
$modules["recurringinvoices"]["requirements"] =
"phpBMS Core v0.9 ... | Java |
/* eslint-disable no-underscore-dangle */
export default function ({
client,
filterQuery,
mustContain,
busy,
encodeQueryAsString,
}) {
return {
listUsers(query) {
const params = filterQuery(
query,
'text',
'limit',
'offset',
'sort',
'sortdir'
)... | Java |
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<div id="container"></div>
<script src="KineticJS/kinetic.js"></script>
<script src="kiigame.js"></script>
<script src="latkazombit.js"></s... | Java |
module.exports = (function () {
var TypeChecker = Cactus.Util.TypeChecker;
var JSON = Cactus.Util.JSON;
var stringify = JSON.stringify;
var object = Cactus.Addon.Object;
var collection = Cactus.Data.Collection;
var gettype = TypeChecker.gettype.bind(TypeChecker);
return {
"null and undefined" : func... | Java |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "mcp_accesslogs".
*
* @property integer $user_id
* @property string $browser
* @property string $ip
* @property string $session
* @property string $intime
* @property string $outtime
*/
class McpAccesslogs extends \yii\db\Active... | Java |
---
title: "Permissions - ACLs"
weight: 3
card:
name: concept_organization
---
There are 3 types of permissions:
+ Read (as code value: 4)
+ Read / Execute (as code value: 5)
+ Read / Write / Execute (as code value: 7)
These permissions can be attached to different objects:
+ Project
+ Workflow
+ Workflow node
... | Java |
/**
* Swedish translation for bootstrap-wysihtml5
*/
(function($){
$.fn.wysihtml5.locale["sv-SE"] = {
font_styles: {
normal: "Normal Text",
h1: "Rubrik 1",
h2: "Rubrik 2",
h3: "Rubrik 3"
},
emphasis: {
bold: "Fet",
ita... | Java |
<?php
namespace Tests\Unit;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
class TextPostTest extends TestCase
{
use RefreshDatabase;
protected $textPost;
public function setup()
{
parent::setUp();
$this->authenticate();
$this->textPost = create('Kno... | Java |
///////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// This example code is from the book:
//
// Object-Oriented Programming with C++ and OSF/Motif
// by
// Douglas Young
// ... | Java |
<?php
namespace Users;
use Zend\EventManager\EventInterface as Event;
use Users\Model\AuthorisationClass as AuthorisationClass;
class Module
{
public function onBootstrap(Event $e)
{
// This method is called once the MVC bootstrapping is complete
$application = $e->getApplication();
$se... | Java |
// RUN: %clang_builtins %s %librt -o %t && %run %t
//===-- ctzti2_test.c - Test __ctzti2 -------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for detail... | Java |
CREATE TABLE test_table(column_integer INTEGER,
column_smallint SMALLINT,
column_numeric_9_2 NUMERIC(9,2),
column_char_9 CHAR(9),
column_varchar_92 VARCHAR(92),
column_date DATE,
column_bit BIT(4),
column_time TIME,
column_timestamp TIMESTAMP,
column_datetime datetime,
monet monetary,
big bigint,
float_num float,
d... | Java |
<?php
/* @var $this yii\web\View */
$this->title = 'My Yii Application';
?>
<div class="bodyParser">
<?=$this->render('table', [
'dataHistory' => $dataHistory
])?>
</div>
| Java |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="la... | Java |
/*
* from: FreeBSD: src/sys/tools/fw_stub.awk,v 1.6 2007/03/02 11:42:53 flz
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: releng/9.3/sys/dev/cxgb/cxgb_t3fw.c 189643 2009-03-10 19:22:45Z gnn $");
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/linker.h>
#incl... | Java |
#!/usr/bin/python
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import os
import subprocess
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import pynacl.p... | Java |
from contextlib import contextmanager
from _pytest.python import FixtureRequest
import mock
from mock import Mock
import pyramid.testing
from webob.multidict import MultiDict
import pyramid_swagger
import pyramid_swagger.tween
import pytest
import simplejson
from pyramid.config import Configurator
from pyramid.interfa... | Java |
// Benchpress: A collection of micro-benchmarks.
var allResults = [ ];
// -----------------------------------------------------------------------------
// F r a m e w o r k
// -----------------------------------------------------------------------------
function Benchmark(string, run) {
this.string = string;
thi... | Java |
#!/usr/bin/perl
# start in the directory with all the files
$argc = @ARGV; # get the number of arguments
if ($argc == 0 ) {
print "msl_Vic2ODL-PDDS-jpg.pl dir multi vic2odl_xsl odl2pds_xsl max \n";
print "prints a set of transcoder (jConvertIIO) commands to test .DAT and .VIC files \n";
print "Output goes... | Java |
/* copyright(C) 2002 H.Kawai (under KL-01). */
#include <stdio.h>
#include <stdlib.h>
int GO_fputc(int c, GO_FILE *stream)
{
if (stream->p >= stream->p1)
abort();
*stream->p++ = c;
/* GOL_debuglog(1, &c); */
return (unsigned char) c;
}
| Java |
import ghcnpy
# Provide introduction
ghcnpy.intro()
# Print Latest Version
ghcnpy.get_ghcnd_version()
# Testing Search Capabilities
print("\nTESTING SEARCH CAPABILITIES")
ghcnpy.find_station("Asheville")
# Testing Search Capabilities
print("\nTESTING PULL CAPABILITIES")
outfile=ghcnpy.get_data_station("USW00003812"... | Java |
{% extends 'magicflatpages/base_content.html' %}
{% load floppyforms %}
{% block js_top %}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block navbar %}
{% endblock navbar %}
{% block footer_area %}
{% endblock footer_area %}
{% block content %}
<div class="popup-content">
<div class="row">
<d... | Java |
// xml_do_read.h see license.txt for copyright and terms of use
#ifndef XML_DO_READ_H
#define XML_DO_READ_H
class TranslationUnit;
class StringTable;
TranslationUnit *xmlDoRead(StringTable &strTable, char const *inputFname);
#endif // XML_DO_READ_H
| Java |
'use strict';
myApp.controller('editProfileController', ['$scope', '$state', 'loadingMaskService', 'CONSTANTS', '$uibModal', '$log', '$rootScope', '$http', function ($scope, $state, loadingMaskService, CONSTANTS, $uibModal, $log, $rootScope, $http) {
var userInfo = JSON.parse(localStorage.getItem(CONSTANTS.LOCAL_... | Java |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | Java |
<?php $deleteStyle = isset($this->existing) ? 'inline' : 'none' ?>
<?php $addStyle = $deleteStyle == 'inline' ? 'none' : 'inline' ?>
<div id="watch-controls">
</div>
<h2><?php $this->o($this->notes[0]->title);?></h2>
<?php $note = null; ?>
<?php foreach ($this->notes as $note): ?>
<div class="note">
<div class... | Java |
/*
* Copyright (c) 2011 Yahoo! Inc. All rights reserved.
*/
YUI.add('master', function(Y, NAME) {
/**
* The master module.
*
* @module master
*/
var DIMENSIONS = {
device: 'smartphone',
region: 'CA',
skin : 'grey'
};
/**
* Constructor for the Controller class.
*
* @class Control... | Java |
/**
* \file PancakeNode.hpp
*
*
*
* \author eaburns
* \date 18-01-2010
*/
#include "search/Node.hpp"
#include "pancake/PancakeTypes.hpp"
#include "pancake/PancakeState.hpp"
#if !defined(_PANCAKE_NODE_H_)
#define _PANCAKE_NODE_H_
typedef Node<PancakeState14, PancakeCost> PancakeNode14;
#endif // !_PANCAKE_NOD... | Java |
//-----------------------------------------------------------------------------
//Cortex
//Copyright (c) 2010-2015, Joshua Scoggins
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redist... | Java |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | Java |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File widgets/fineuploader/WhFineUploader.php | YiiWheels</title>
<script type="text/javascript" src="resources/combi... | Java |
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// godoc: Go Documentation Server
// Web server tree:
//
// http://godoc/ main landing page
// http://godoc/doc/ serve from $GOROOT/doc - spec, mem, etc.
// h... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>QGeoCodingManager — PyQt 5.5.1 Reference Guid... | Java |
{-# LANGUAGE OverloadedStrings #-}
module WildBind.SeqSpec (main,spec) where
import Control.Applicative ((<*>))
import Control.Monad (forM_)
import Control.Monad.IO.Class (liftIO)
import qualified Control.Monad.Trans.State as State
import Data.Monoid ((<>))
import Data.IORef (modifyIORef, newIORef, readIORef)
import T... | Java |
Foursquare Archiver
===================
Archive your Foursquare checkin data locally.
This is a Python script for saving the json data from Foursuare's `checkins`
resource https://developer.foursquare.com/docs/users/checkins .
If you want to generate a heatmap of checkins, see [`csv.py`](./csv.py) and http://crcchec... | Java |
.filebrowser table td { font-size: 10px; }
.filebrowser table a { font-size: 11px; }
.filebrowser thead th.sorted a { padding-right: 13px; }
.filebrowser td { padding: 9px 10px 7px 10px !important; }
.filebrowser td.fb_icon { padding: 6px 5px 5px 5px !important; }
table a.fb_deletelink, table a.fb_renamelink, table a.... | Java |
<?php
return array(
'Status\\V1\\Rpc\\Ping\\Controller' => array(
'GET' => array(
'description' => 'Ping the API for availability and receive a timestamp for acknowledgement.',
'request' => null,
'response' => '{
"ack": "Acknowledge the request with a timestamp"
}',
... | Java |
#include <pulsar/testing/CppTester.hpp>
#include <pulsar/system/Atom.hpp>
using namespace pulsar;
TEST_SIMPLE(TestAtom){
CppTester tester("Testing the Atom class");
Atom H=create_atom({0.0,0.0,0.0},1);
Atom H2=create_atom({0.0,0.0,0.0},1,1);
tester.test_equal("create_atom works",H,H2);
tester... | Java |
<?php
/**
* Created by PhpStorm.
* User: bill
* Date: 13.04.15
* Time: 17:13
*/
namespace app\tests\codeception\unit\modules\mobile\models;
use app\modules\mobile\models\Trip;
use app\tests\codeception\unit\fixtures\TripFixture;
use Codeception\Specify;
use yii\codeception\TestCase;
use MongoDate;
class TripTe... | Java |
<?php
class ReCopyWidget extends CWidget {
public $targetClass='clone'; //Target CSS class target for duplicate
public $limit=0; //The number of allowed copies. Default: 0 is unlimited
public $addButtonId; // Add button id. Set id differently if this widget is called multiple times per page.
publ... | Java |
/**
*============================================================================
* The Ohio State University Research Foundation, The University of Chicago -
* Argonne National Laboratory, Emory University, SemanticBits LLC,
* and Ekagra Software Technologies Ltd.
*
* Distributed under the OSI-approved BSD 3-Clau... | Java |
<?php
namespace PayrollCalculator;
use Zend\ModuleManager\Feature\ConsoleUsageProviderInterface;
use Zend\Console\Adapter\AdapterInterface as Console;
class Module
{
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
public function getAutoloaderConfig()
... | Java |
# -*- coding: utf-8 -*-
"""
eve.io.media
~~~~~~~~~~~~
Media storage for Eve-powered APIs.
:copyright: (c) 2014 by Nicola Iarocci.
:license: BSD, see LICENSE for more details.
"""
class MediaStorage(object):
""" The MediaStorage class provides a standardized API for storing files,
along ... | Java |
<!-- %BD_HTML%/SearchResult.htm -->
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<TITLE>úåöàú àéðèøðè - Takanot File</TITLE>
</HEAD>
<style>
<!--
TR.A_Table {font-color:#3e6ea6; background-color: #f7f9fb; font-size:11;font-family: Arial,}
TR.B_Table {font-c... | Java |
from django.utils.translation import ugettext as _
from django.db import models
from jmbo.models import ModelBase
class Superhero(ModelBase):
name = models.CharField(max_length=256, editable=False)
class Meta:
verbose_name_plural = _("Superheroes")
| Java |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 100 100","xmlns":"http://www.w3.org/2000/svg","path":{"d":"M50.6 52.9c2.6-3.7 5.3-5.6 7.1-8.4 3.2-4.8 3.9-11.6 1.8-16.8-2.1-5.3-7-8.4-12.... | Java |
<?php
namespace common\widgets;
use yii\helpers\VarDumper;
/**
* Created by PhpStorm.
* User: Александр Чернявенко
* Date: 25.11.2014
* Time: 14:09
*/
class PredictionAsset extends \yii\web\AssetBundle
{
public $depends = [
'yii\web\JqueryAsset',
];
public $css = [
];
public $js = ... | Java |
/*@author gihan tharanga*/
#include <iostream>
#include <string>
//video capturing methods
int videoCapturing();
int videoCapOriginal();
/*detect the faces display the frames and number of face*/
int FaceDetector(std::string&);
| Java |
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
''' Processor functions for images '''
import numpy as np
def squeeze_image(img):
''' Return image, remove axes length 1 at end of image shape
For example, an image may have shape (10,20,30,1,1). ... | Java |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__short_rand_postdec_07.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-07.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: Set... | Java |
<?php
namespace VKBansal\Test\Spectrum\Plugin;
class PlugTest extends \PHPUnit_Framework_TestCase{
protected $plugin;
protected $plug;
public function setUp()
{
$this->plugin = $this->getMockForAbstractClass('VKBansal\Spectrum\Plugin\AbstractPlugin');
$this->plugin
->metho... | Java |
<div>
<div class="os-page-commands">
<div class="left" os-imaging>
<button show-if-allowed="specimenResource.updateOpts" class="default" ui-sref="specimen-addedit"
ng-if="!!visit.id && !specimen.reserved && (!specimen.activityStatus || specimen.activityStatus == 'Active')"
ng-switch on="!!sp... | Java |
/*
Copyright (C) 2009-2010 ProFUSION embedded systems
Copyright (C) 2009-2010 Samsung Electronics
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of t... | Java |
<?php
/**
* Yasc.
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
* It is also available through the world-wide-web at this URL:
* http://github.com/nebiros/yasc/raw/master/LICENSE
* If you did not receive a copy of the license and ar... | Java |
//===-- lib/Evaluate/fold-real.cpp ----------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | Java |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
/**
* LoginForm is the model behind the login form.
*/
class LoginForm extends Model
{
public $login;
public $password;
public $rememberMe = true;
private $_user = false;
/**
* @return array the validation rules.
*/
publi... | Java |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#if SK_SUPPORT_GPU
#include "GrReducedClip.h"
#endif
#include "SkClipStack.h"
#include "SkPath.h"
#include "SkRandom.h"
#include "SkRect.h"
#include "SkR... | Java |
<?php
namespace app\models;
use Yii;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
/**
* This is the model class for table "tbl_six_step".
*
* @property integer $six_step_id
* @property integer $atlet_id
* @property string $stage
* @property string $status
*/
class SixStepBiomek... | Java |
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | Java |
using System;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Xml.Serialization;
using JetBat.Client.Entities;
using JetBat.Client.Metadata.Abstract;
using JetBat.Client.Metadata.Definitions;
using JetBat.Client.Metadata.Misc;
using JetBat.Client.Metadata.Simple;
namespace JetB... | Java |
from ..base import BaseTopazTest
class TestMarshal(BaseTopazTest):
def test_version_constants(self, space):
w_res = space.execute("return Marshal::MAJOR_VERSION")
assert space.int_w(w_res) == 4
w_res = space.execute("return Marshal::MINOR_VERSION")
assert space.int_w(w_res) == 8
... | Java |
/*
* Copyright (c) 2007 BUSINESS OBJECTS SOFTWARE LIMITED
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright n... | Java |
##########################################################################
#
# Copyright (c) 2013-2015, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redi... | Java |
import React from 'react';
import 'isomorphic-fetch';
import {RouteHandler} from 'react-router';
import Transmit from 'react-transmit';
import {createStore, combineReducers} from 'redux';
import {Provider} from 'react-redux';
import * as reducers from '../reducers/index';
class AppContainer extends React.Component {
... | Java |
require("../pc.v0");
require("util").puts(JSON.stringify({
"name": "pc",
"version": pc.version,
"description": "property creation for reusable d3.js code.",
"keywords": ["d3", "visualization"],
"homepage": "http://milroc.github.com/pc/",
"author": {"name": "Miles McCrocklin", "url": "http://www.milesmccrocklin.... | Java |
.title {
margin-top: 30px;
vertical-align: top;
}
.title button {
margin-top: 20px;
}
.contents {
margin-top: 100px;
}
.contetns span {
margin-top: 20px;
}
| Java |
package immortal
import (
"os/exec"
"syscall"
"testing"
"time"
)
func TestWatchPidGetpid(t *testing.T) {
ch := make(chan error, 1)
d := &Daemon{}
cmd := exec.Command("go", "version")
cmd.Start()
pid := cmd.Process.Pid
go func() {
d.WatchPid(pid, ch)
ch <- cmd.Wait()
}()
select {
case <-time.After(tim... | Java |
/*
* Author: Kiveisha Yevgeniy
* Copyright (c) 2015 Intel Corporation.
*
* 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 restriction, including
* without limitation the rights to use,... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Tue May 19 11:04:42 CEST 2015 -->
<title>Uses of Interface com.mxgraph.util.svg.ShapeProducer (JGraph X 3.3.0.1 API Specificatio... | Java |
SEEK::Application.configure do
#This holds a secret phrase, used for encrypting private information in the database
#GLOBAL_PASSPHRASE=""
Seek::Config.default :solr_enabled, true
end
| Java |
#pragma once
#include "boxFilter.hpp"
class boxFilter_Separable_VHI_nonVec : public cp::BoxFilterBase
{
protected:
int ksize;
void filter_naive_impl() override;
void filter_omp_impl() override;
void operator()(const cv::Range& range) const override;
public:
boxFilter_Separable_VHI_nonVec(cv::Mat& _src, cv::Mat... | Java |
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia at 2014-11-25
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name... | Java |
/**
* Created on: Mar 13, 2013
*/
package com.tubros.constraints.core.spi.solver
package runtime
import org.junit.runner.RunWith
import org.scalamock.scalatest.MockFactory
import org.scalatest._
import org.scalatest.junit.JUnitRunner
import com.tubros.constraints.api._
/**
* The '''SymbolTableSpec''' type define... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" conte... | Java |
#include "synchronization/Communicator.hpp"
namespace Synchronization
{
Communicator::Communicator()
: _numManagedCons(0),
_numManagedFmus(0)
{
}
size_type Synchronization::Communicator::addFmu(FMI::AbstractFmu* in, vector<FMI::InputMapping> & valuePacking)
{
vec... | Java |
{% load url from future %}
<div class="well">
<h3 class="title">Violence</h3>
<table class="table tabulated-data">
<thead>
<tr>
<th>Group</th>
<th>Monthly Numbers</th>
</tr>
</thead>
<tbody>
<tr>
<td>Girls Cases</td>
<td>{{ violence_numbers_girls|floatformat:0 }}</td>
</tr... | Java |
#!/usr/bin/env python2
from __future__ import print_function
import sys
import os
import urllib
import argparse
import xml.etree.ElementTree as ET
def warn(*msgs):
for x in msgs: print('[WARNING]:', x, file=sys.stderr)
class PDBTM:
def __init__(self, filename):
#self.tree = ET.parse(filename)
#self.root = self... | Java |
{-# LANGUAGE TemplateHaskell #-}
module Data.Comp.Trans.DeriveUntrans (
deriveUntrans
) where
import Control.Lens ( view ,(^.))
import Control.Monad ( liftM )
import Control.Monad.Trans ( lift )
import Data.Comp.Multi ( Alg, cata, (:&:)(..) )
import Language.Haskell.TH
import Data.Comp.Trans.Util
----------... | Java |
from django.template import Library, Node, resolve_variable, TemplateSyntaxError
from django.core.urlresolvers import reverse
register = Library()
@register.simple_tag
def active(request, pattern):
import re
if re.search(pattern, request.get_full_path()):
return 'active'
return '' | Java |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <utility>
#include <vector>
#include "base/feature_list.h"
#include "base/macros.h"
#include "base/optional.h"
#include "b... | Java |
# VIVO: Connect, Share, Discover
[](https://github.com/vivo-project/VIVO/actions?query=workflow%3ABuild) [](https://github.com/vivo-project/VIVO/actions?query=workflow%3ADep... | Java |
#!/bin/bash
# define helpers
source_dir=~/.osx-bootstrap
if [[ ! -f ~/.ssh/id_rsa ]]; then
echo ''
echo '##### Please enter your github username: '
read github_user
echo '##### Please enter your github email address: '
read github_email
# setup github
if [[ $github_user && $github_email ]... | Java |
#if !(NET35 || NET20 || WINDOWS_PHONE)
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Newtonsoft.Json.Utilities
{
internal sealed class DynamicProxyMetaObject<T> : DynamicMetaObject
{
private readonly D... | Java |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Whether to build xhprof as dynamic module */
#define COMPILE_DL_XHPROF 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <inttyp... | Java |
'''
Given a number, find the next higher number using only the digits in the given number.
For example if the given number is 1234, next higher number with same digits is 1243
'''
def FindNext(num):
number = str(num)
length = len(number)
for i in range(length-2,-1,-1):
current = number[i]
... | Java |
package manifest
import (
"encoding/json"
"fmt"
"log"
"reflect"
"regexp"
"strconv"
"strings"
"github.com/fatih/color"
"github.com/servehub/serve/manifest/processor"
"github.com/servehub/utils"
"github.com/servehub/utils/gabs"
)
type Manifest struct {
tree *gabs.Container
}
func (m Manifest) String() st... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.