code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using LCC.ControlesLCCGestion.filtros;
namespace LCC.WebG... | Java |
"""
Python Blueprint
================
Does not install python itself, only develop and setup tools.
Contains pip helper for other blueprints to use.
**Fabric environment:**
.. code-block:: yaml
blueprints:
- blues.python
"""
from fabric.decorators import task
from refabric.api import run, info
from refa... | Java |
#!/bin/sh
controllerIP=`grep controller /etc/hosts | awk '{print $1}'`
#controllerIP=192.168.122.75
controllerIP=127.0.0.1
echo controllerIP $controllerIP
file=/etc/pike/cinder/cinder.conf
orig=/etc/pike/cinder/.orig-$(basename $file)
jdate=`date "+%Y_%j_%H_%M"`
orig=${orig}${jdate}
if [ ! -e $orig ] ; then
cp -p $... | Java |
var path = require('path'),
fs = require('fs'),
Source = require(hexo.lib_dir + '/core/source'),
config_dir = path.dirname(hexo.configfile),
config = hexo.config;
function testver(){
var ver = hexo.env.version.split('.');
var test = true;
if (ver[0] < 2) test = false;
else if (ver[0] == 2 &... | Java |
<?php
namespace Alcodo\AsyncCss\Commands;
use Alcodo\AsyncCss\Cache\CssKeys;
use Illuminate\Console\Command;
class Show extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'alcodo:asynccss:show';
/**
* The console comm... | Java |
#!/usr/bin/env ruby
$:.unshift File.expand_path('../../../lib', __FILE__)
$stdout.sync = true
require 'philotic'
require 'awesome_print'
class NamedQueueConsumer < Philotic::Consumer
# subscribe to an existing named queue
subscribe_to :test_queue
# use acknowledgements
auto_acknowledge
# REQUEUE the mess... | Java |
# wedding-rsvp
A simple concept for RSVPing to a wedding
### Technologies
* Sinatra
* ActiveRecord
* Postgres
* MVC Structure
| Java |
#include "arrow.h"
/**
* @brief Arrow::Arrow
*/
Arrow::Arrow() : Shape(SHAPES::ARROW) {
}
/**
* @brief Arrow::Arrow
* @param col Colour of the new object
* @param pos Starting point for the new object
*/
Arrow::Arrow(QColor col, QPoint pos) : Shape(SHAPES::ARROW, col, pos) {
}
/**
* @brief Arrow::draw
* Draw... | Java |
const request = require('request-promise');
const oauth = require('./config').auth;
const rootUrl = 'https://api.twitter.com/1.1';
let allItems = [];
/* API methods */
const API = {
/**
* Search for tweets
* @param options {Object} Options object containing:
* - text (Required) : String
* - co... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Extensions
{
public static class IEnumerableExtensions
{
public static T Sum<T>(this IEnumerable<T> enumerable)
{
dynamic sum = 0;
foreach (var element in enumerable)
{
sum... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Fri Sep 09 15:51:56 CST 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>S - 索引</title>
<meta... | Java |
using System;
using System.Collections;
using UnityEngine;
using VRStandardAssets.Common;
using VRStandardAssets.Utils;
namespace VRStandardAssets.ShootingGallery
{
// This script handles a target in the shooter scenes.
// It includes what should happen when it is hit and
// how long before it de... | Java |
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible import __version__
from ansible.errors import AnsibleError
from distutils.version import LooseVersion
from operator import eq, ge, gt
from sys import version_info
try:
from __main__ ... | Java |
//@flow
const {foo, Bar, baz, qux} = require('./jsdoc-exports');
const {
DefaultedStringEnum,
InitializedStringEnum,
NumberEnum,
BooleanEnum,
SymbolEnum,
} = require('./jsdoc-objects');
/** a JSDoc in the same file */
function x() {}
( );
// ^
| Java |
ace.define("ace/mode/tex_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var lang = require("../lib/lang");
var TextHighlightRules = require("./text_highlight_rules").TextHi... | Java |
/**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.contracts.paymentservice.extensibility.v1;
import java.util.List;
import java.util.HashMap;
import java.io.Serializable;
imp... | Java |
module Hello
module Business
module Management
class ResetPassword < Base
attr_reader :password_credential
def initialize(password_credential)
@password_credential = password_credential
end
def update_password(plain_text_password)
if @password_credential... | Java |
#region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2016
// by DotNetNuke 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 restricti... | Java |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | Java |
(function(){
'use strict';
angular
.module('app')
.factory('ceUsers', ceUsers);
ceUsers.$inject = ['$resource'];
function ceUsers ($resource) {
console.log('ok');
return $resource('https://mysterious-eyrie-9135.herokuapp.com/users/:username',
{username: '@username'},
{'update': { me... | Java |
<?php
/**
* Version : 1.2.0
* Author : inc2734
* Author URI : http://2inc.org
* Created : April 17, 2015
* Modified : July 31, 2015
* License : GPLv2 or later
* License URI: license.txt
*/
?>
<div class="container">
<div class="row">
<div class="col-md-9">
<main id="main" role="main">
... | 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 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
using Newtonsoft.Json.Linq;
using ReactNative.Bridge;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace ReactNative.Tests.Bridge
{
... | Java |
using System;
using Machine.Specifications;
namespace FactoryGirl.NET.Specs {
[Subject(typeof(FactoryGirl))]
public class FactoryGirlSpecs : ICleanupAfterEveryContextInAssembly {
[Subject(typeof(FactoryGirl))]
public class When_we_define_a_factory {
Establish context = ()... | Java |
"""
A Pygments lexer for Magpie.
"""
from setuptools import setup
__author__ = 'Robert Nystrom'
setup(
name='Magpie',
version='1.0',
description=__doc__,
author=__author__,
packages=['magpie'],
entry_points='''
[pygments.lexers]
magpielexer = magpie:MagpieLexer
'''
) | Java |
'use strict';
import gulp from 'gulp';
import gutil from 'gulp-util';
import uglify from 'gulp-uglify';
import stylus from 'gulp-stylus';
import watch from 'gulp-watch';
import plumber from 'gulp-plumber';
import cleanCss from 'gulp-clean-css';
import imagemin from 'gulp-imagemin';
import concat from 'gulp-concat';
im... | Java |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEveCorporationMemberSecurityLog extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('corporation_msec_log', function(Blueprint $table)
{
$tab... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>PCAP Report</title>
<!-- B... | Java |
require 'shellwords'
require 'fileutils'
module Hibiki
class Downloading
CH_NAME = 'hibiki'
def initialize
@a = Mechanize.new
@a.user_agent_alias = 'Windows Chrome'
end
def download(program)
infos = get_infos(program)
if infos['episode']['id'] != program.episode_id
R... | Java |
---
date: 2014-10-23
title: Open Source at Facebook
speaker: Patrick Shuff from Facebook
type: Meeting
---
Thursday, 2014-10-23 at 7:00pm in Caldwell Labs 120, Patrick Shuff (an engineer at Facebook) will present "Open Source at Facebook". Description follows:
Facebook serves requests for over 1.3 billion people every... | Java |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About buynowcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... | Java |
require File.dirname(__FILE__) + '/init'
class NamedRouteCollectionTest < Test::Unit::TestCase
def setup
@controller = TestController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@request.host = 'example.com'
ActionController::UrlWriter.def... | Java |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | Java |
import { set } from 'ember-metal';
import { jQuery } from 'ember-views';
import { moduleFor, RenderingTest } from '../../utils/test-case';
import { Component, compile } from '../../utils/helpers';
import { strip } from '../../utils/abstract-test-case';
class AbstractAppendTest extends RenderingTest {
constructor() ... | Java |
<html lang="en">
<head>
<title>ARM Options - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="ARM_002dDependent.html#ARM_002dDepende... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlatRedBall.Content.Scene;
using FlatRedBall;
using FlatRedBall.IO;
namespace EditorObjects.EditorSettings
{
public class AIEditorPropertiesSave
{
public const string Extension = "aiep";
public CameraS... | Java |
pub fn compress(src: &str) -> String {
if src.is_empty() {
src.to_owned()
} else {
let mut compressed = String::new();
let mut chars = src.chars().peekable();
while let Some(c) = chars.peek().cloned() {
let mut counter = 0;
while let Some(n) = chars.peek()... | Java |
require 'spec_helper'
try_spec do
require './spec/fixtures/bookmark'
describe DataMapper::TypesFixtures::Bookmark do
supported_by :all do
before :all do
DataMapper::TypesFixtures::Bookmark.auto_migrate!
end
let(:resource) do
DataMapper::TypesFixtures::Bookmark.create(
... | Java |
import readdirRecursive from "fs-readdir-recursive";
import * as babel from "@babel/core";
import path from "path";
import fs from "fs";
import * as watcher from "./watcher";
export function chmod(src: string, dest: string): void {
try {
fs.chmodSync(dest, fs.statSync(src).mode);
} catch (err) {
console.w... | Java |
namespace WebApiContrib.Formatting.Xlsx.Tests.TestData
{
public class BooleanTestItem
{
public bool Value1 { get; set; }
[ExcelColumn(TrueValue="Yes", FalseValue="No")]
public bool Value2 { get; set; }
public bool? Value3 { get; set; }
[ExcelColumn(TrueValue = "Yes", ... | Java |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ApiBundle\DependencyInjection;
use Sylius\Bundle\ApiBundle\Form\Type\ClientTy... | Java |
<!DOCTYPE html>
<!--Aegis Framework | MIT License | http://www.aegisframework.com/ -->
<html lang="en">
<head>
<title>Bad Request</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html,
body {
width: 100%;
height: 100%;
}
body {
text-a... | Java |
using System.Collections.Generic;
using System;
using UnityEngine;
public class EventService
{
public delegate void EventDelegate<T>(T e) where T : GameEvent;
Dictionary<Type, Delegate> delegates = new Dictionary<Type, Delegate>();
public void AddListener<T>(EventDelegate<T> listener) where T : GameEvent {
Ty... | Java |
(function () {
var g = void 0,
k = !0,
m = null,
o = !1,
p, q = this,
r = function (a) {
var b = typeof a;
if ("object" == b) if (a) {
if (a instanceof Array) return "array";
if (a instanceof Object) return b;
... | Java |
import { Type } from '@ephox/katamari';
// some elements, such as mathml, don't have style attributes
// others, such as angular elements, have style attributes that aren't a CSSStyleDeclaration
const isSupported = (dom: Node): dom is HTMLStyleElement =>
// eslint-disable-next-line @typescript-eslint/unbound-method
... | Java |
del *.o
fasm asm_code.asm asm_code.o
gcc -c mcities.c
gcc -c system/kolibri.c
gcc -c system/stdlib.c
gcc -c system/string.c
gcc -c system/ctype.c
ld -nostdlib -T kolibri.ld -o mcities asm_code.o kolibri.o stdlib.o string.o ctype.o mcities.o
objcopy mcities -O binary
kpack mcities
del *.o
pause | 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 (1.8.0_66-internal) on Tue Dec 08 09:26:31 GMT 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.a... | Java |
<?php
namespace Backend\Modules\MediaLibrary\Actions;
use Backend\Core\Language\Language;
use Backend\Modules\MediaLibrary\Domain\MediaFolder\MediaFolder;
use Backend\Modules\MediaLibrary\Domain\MediaGroup\MediaGroupType;
use Backend\Modules\MediaLibrary\Domain\MediaItem\MediaItemSelectionDataGrid;
use Backend\Module... | Java |
import HomeRoute from 'routes/Home';
describe('(Route) Home', () => {
let _component;
beforeEach(() => {
_component = HomeRoute.component();
});
it('Should return a route configuration object', () => {
expect(typeof HomeRoute).to.equal('object');
});
it('Should define a route... | Java |
using GE.WebUI.ViewModels.Abstracts;
using SX.WebCore.MvcControllers;
namespace GE.WebUI.Controllers
{
public sealed class RssController : SxRssController<VMMaterial>
{
}
} | 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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | Java |
#ifndef __TYPES_H__
#define __TYPES_H__
typedef unsigned char byte;
typedef signed long int intsize;
typedef signed char int8;
typedef signed short int16;
typedef signed int int32;
typedef signed long int int64;
typedef unsigned long int uintsize;
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef ... | Java |
import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './input.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default Page;
| Java |
<script type="text/stache">
<input value:to="H1" value:from="H2" value:bind="H3" on:value="H4"
value:to="H1" value:from="H2" value:bind="H3" on:value="H4">
</script>
<script src="../foo/bar/steal/steal.js">
Component.extend({
tag: 'my-tag',
template: stache(
'<input value:to="H1" value:from="H2" ... | Java |
/****************************************************************************
**
** Name: MicoFileStat.c
**
** Description:
** Implements _fstat, called by Newlib C library file functions
**
** $Revision: $
**
** Disclaimer:
**
** This source code is intended as a design reference which
** illustrates how... | Java |
package uk.org.fyodor.generators;
import com.google.common.collect.HashMultiset;
import com.google.common.collect.Multiset;
import org.junit.Test;
import uk.org.fyodor.BaseTest;
public class PercentageChanceGeneratorTest extends BaseTest {
Multiset<Boolean> results = HashMultiset.create();
@Test
public ... | Java |
var searchData=
[
['clear',['clear',['../d8/d84/a00001.html#a11dc3b617f2fedbb3b499971493b9c4f',1,'ArrayBase']]]
];
| Java |
//
// VTDNearTermDateRelation.h
//
// Copyright (c) 2014 Mutual Mobile (http://www.mutualmobile.com/)
//
// 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 with... | Java |
<h1>Chat</h1> | Java |
h1 {
font-family: 'Noto Sans', sans-serif;
font-size: 30px;
margin: 5px 0px 5px 0px;
color: #444444;
}
h4 {
font-family: 'Noto Sans', sans-serif;
color: #444444;
font-size: 16px;
padding-top: 0;
margin-top: 0;
}
.header {
margin-top: 10px;
margin-bottom: 30px;
}
.ursar-log... | Java |
/*
Copyright 2006 by Sean Luke
Licensed under the Academic Free License version 3.0
See the file "LICENSE" for more information
*/
package ec.app.parity.func;
import ec.*;
import ec.app.parity.*;
import ec.gp.*;
import ec.util.*;
/*
* D31.java
*
* Created: Wed Nov 3 18:31:38 1999
* By: Sean Luke
*/
/*... | Java |
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="robots" content="noindex, nofollow"/>
<script src="../internal.js"></script>
<link rel="stylesheet" href="scrawl.css">
</head>
<body>
<div class="main" id="J_wrap">
<div... | Java |
/*
* @require ../../bower_components/html5-boilerplate/dist/css/normalize.css
* @require ../../bower_components/html5-boilerplate/dist/css/main.css
* @require ../../bower_components/bootstrap/dist/css/bootstrap.css
* @require ../iconfont/iconfont.css
*
*/
/* cover bootstrap style
* ===================== */
.y... | Java |
If you are reporting bug/issue, please provide detailed Repro instructions.
## Repro Steps
1.
2.
## Actual Behavior
## Expected Behavior
## Version Info
SDK Version (version of https://www.nuget.org/packages/Microsoft.ApplicationInsights.AspNetCore) :
.NET Core Version (TargetFramework in your .csproj file) :... | Java |
// Copyright (c) 2015 ZZZ Projects. All rights reserved
// Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
// Website: http://www.zzzprojects.com/
// Feedback / Feature Requests / Issues : http://zzzprojects.uservoice.com/forums/283927
// All ZZZ Projects products: Entity Framework ... | Java |
using System;
using System.Threading.Tasks;
using Orleans;
using Tester.CodeGenTests;
using TestExtensions;
using UnitTests.GrainInterfaces;
using Xunit;
namespace DefaultCluster.Tests.General
{
[TestCategory("CodeGen")]
public class CodeGeneratorTests_AccessibilityChecks : HostedTestClusterEnsureDefaultStart... | Java |
#include "macros.h"
#include "thread.h"
using namespace std;
ndb_thread::~ndb_thread()
{
}
void
ndb_thread::start()
{
thd_ = std::move(thread(&ndb_thread::run, this));
if (daemon_)
thd_.detach();
}
void
ndb_thread::join()
{
ALWAYS_ASSERT(!daemon_);
thd_.join();
}
// can be overloaded by subclasses
void... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../../../">
<title data-ice="title">src/middle_level/shaders/HalfLambertAndWrapLightingShader.js | glboost</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="cs... | Java |
/*jslint node: true, vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 2, maxerr: 50*/
/*global define, $, brackets, Mustache, window, appshell*/
define(function (require, exports, module) {
"use strict";
// HEADER >>
var NodeConnection = brackets.getModule("utils/NodeConnection"),
... | Java |
{% load crispy_forms_tags %}
<div class="auth-wrapper signup-wrapper">
<form role="form" method="post" action="{% url 'create_user' %}">
{% csrf_token %}
<h2>Sign Up</h2>
{{form | crispy }}
<div class="extra-errors"></div>
<button type="submit" class="btn btn-primary" dat... | Java |
'output dimensionalities for each column'
import csv
import sys
import re
import math
from collections import defaultdict
def get_words( text ):
text = text.replace( "'", "" )
text = re.sub( r'\W+', ' ', text )
text = text.lower()
text = text.split()
words = []
for w in text:
if w in words:
continue
wo... | Java |
#include <seqan/sequence.h>
#include <seqan/basic.h>
#include <seqan/find_motif.h>
#include <seqan/file.h>
#include <iostream>
using namespace seqan;
template<typename TString>//String<char>
void countOneMers(TString const& str){
Iterator<TString>::Type StringIterator = begin(str);
Iterator<TString>::Type EndIter... | Java |
/* Default MDL font size */
.wj-control,
.wj-control input {
font-size: 16px;
}
/* Extra padding in grids and listboxes */
.wj-flexgrid .wj-cell {
padding: 6px;
}
.wj-listbox-item {
padding: 6px 10px;
}
/* Backgrounds */
.wj-content,
div[wj-part='cells'] {
background: #ffffff;
color: #212121;
}
.wj-content .... | Java |
package dbfiles
import (
"encoding/csv"
"io"
"github.com/juju/errgo"
)
type Driver interface {
Extention() string
Write(io.Writer, []string) error
Read(io.Reader) ([][]string, error)
}
type CSV struct{}
func (driver CSV) Extention() string {
return "csv"
}
func (driver CSV) Write(writer io.Writer, values [... | Java |
const ASSETS_MODS_LENGTH = 13;//'/assets/mods/'.length;
const CONTENT_TYPES = {
'css': 'text/css',
'js': 'text/javascript',
'json': 'application/json',
'png': 'image/png',
'jpg': 'image/jpeg',
'jpeg': 'image/jpeg',
'html': 'text/html',
'htm': 'text/html'
};
/**
* @type {Map<string, JSZip>}
*/
const jszipCac... | Java |
##
# This code was generated by
# \ / _ _ _| _ _
# | (_)\/(_)(_|\/| |(/_ v1.0.0
# / /
#
# frozen_string_literal: true
require 'spec_helper.rb'
describe 'ExportConfiguration' do
it "can fetch" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
@client.bulkexports.v1.export_... | Java |
<?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 12/18/15
* Time: 11:36 PM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\SchemaOrg\Classes;
use NilPortugues\SchemaOrg\SchemaCl... | Java |
/* micropolisJS. Adapted by Graeme McCutcheon from Micropolis.
*
* This code is released under the GNU GPL v3, with some additional terms.
* Please see the files LICENSE and COPYING for details. Alternatively,
* consult http://micropolisjs.graememcc.co.uk/LICENSE and
* http://micropolisjs.graememcc.co.uk/COPYING
... | Java |
/****************************************************************************************
Copyright (C) 2013 Autodesk, Inc.
All rights reserved.
Use of this software is subject to the terms of the Autodesk license agreement
provided at the time of installation or download, or which otherwise accom... | Java |
export { default as createShallow } from './createShallow';
export { default as createMount } from './createMount';
export { default as createRender } from './createRender';
export { default as findOutermostIntrinsic, wrapsIntrinsicElement } from './findOutermostIntrinsic';
export { default as getClasses } from './getC... | Java |
var expect = require("chai").expect;
var reindeerRace = require("../../src/day-14/reindeer-race");
describe("--- Day 14: (1/2) distance traveled --- ", () => {
it("counts the distance traveled after 1000s", () => {
var reindeerSpecs = [
"Comet can fly 14 km/s for 10 seconds, but then must rest for 127 seco... | Java |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var jsdom = require("jsdom");
var chai_1 = require("chai");
var ColorManager_1 = require("./ColorManager");
describe('ColorManager', function () {
var cm;
var dom;
var document;
var window;
beforeEach(function () {
... | Java |
/**
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java |
// sol2
// The MIT License (MIT)
// Copyright (c) 2013-2021 Rapptz, ThePhD and contributors
// 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 limita... | Java |
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Extensions.IEnumerableExtensions;
using OpenTK;
using osu.Framework.Graphics;... | Java |
package no.nextgentel.oss.akkatools.aggregate
import akka.actor.ActorPath
import akka.persistence.AtLeastOnceDelivery.UnconfirmedWarning
import akka.persistence.{DeleteMessagesFailure, DeleteMessagesSuccess, SaveSnapshotFailure, SaveSnapshotSuccess, SnapshotOffer}
import no.nextgentel.oss.akkatools.persistence.{E... | Java |
<?php
class Admin_Page_Scraper_Facebook extends Admin_Page_Abstract {
public function prepare(CM_Frontend_Environment $environment, CM_Frontend_ViewResponse $viewResponse) {
/** @var Denkmal_Site_Default $site */
$site = $environment->getSite();
$region = $site->hasRegion() ? $site->getReg... | Java |
package mahout;
/**
* Date: 12/11/14
* Time: 8:33 PM
* To change this template use File | Settings | File Templates.
*/
public class AppConstants {
public static final String TEST_FILE = "dataset.csv";
}
| Java |
<!DOCTYPE html>
<html>
<head>
<title>AngularJS</title>
<meta charset="utf-8">
<link href="../content/shared/styles/examples-offline.css" rel="stylesheet">
<link href="../../styles/kendo.common.min.css" rel="stylesheet">
<link href="../../styles/kendo.rtl.min.css" rel="stylesheet">
<link href="..... | Java |
package common
import (
"testing"
"github.com/stretchr/testify/assert"
)
// Matasano 2.1
func Test_Pad_PKCS7(t *testing.T) {
input := []byte("YELLOW SUBMARINE")
received := Pad_PKCS7(input, 4)
expected := []byte("YELLOW SUBMARINE\x04\x04\x04\x04")
assert.Equal(t, expected, received)
} | Java |
using Scripts.Game.Defined.Characters;
using Scripts.Game.Defined.Serialized.Statistics;
using Scripts.Game.Dungeons;
using Scripts.Game.Serialized;
using Scripts.Game.Undefined.Characters;
using Scripts.Model.Acts;
using Scripts.Model.Buffs;
using Scripts.Model.Characters;
using Scripts.Model.Interfaces;
using Script... | Java |
<?xml version="1.0" encoding="utf-8"?>
<!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" xml:lang="en" lang="en">
<head>
<title>Rails::Rack</title>
<meta http-equiv="Content-Type" content="text... | Java |
Unauthenticated REST Interface
==============================
The REST API can be enabled with the `-rest` option.
The interface runs on the same port as the JSON-RPC interface, by default port 8332 for mainnet and port 18332 for testnet.
Supported API
-------------
####Transactions
`GET /rest/tx/<TX-HASH>.<bin|hex... | Java |
package org.jinstagram.auth.model;
import org.jinstagram.http.Request;
import org.jinstagram.http.Verbs;
import java.util.HashMap;
import java.util.Map;
/**
* The representation of an OAuth HttpRequest.
*
* Adds OAuth-related functionality to the {@link Request}
*/
public class OAuthRequest extends Request {
p... | Java |
package tracker.message.handlers;
import elasta.composer.message.handlers.MessageHandler;
import io.vertx.core.eventbus.Message;
import io.vertx.core.json.JsonObject;
/**
* Created by sohan on 2017-07-26.
*/
public interface ReplayMessageHandler extends MessageHandler<JsonObject> {
@Override
void handle(Mes... | Java |
# -*- coding: utf-8 -*-
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
import numpy as np
import csv, gzip, os
from pyqtgraph import Point
class GlassDB:
"""
Database of dispersion coefficients for Schott glasses
+ Corning 7980
"""
def __init__(self, fileName='schott_glasses.csv'):
... | Java |
/*******************************************************************************
*//**
* @mainpage
* @section section1 Introduction:
* Having studied this LAB you will able to: \n
* - Understand the GPIO functions \n
* - Study the programs related to the LCD Display.
*
* @section sec... | Java |
import logging
from urllib.parse import urljoin
import lxml.etree # noqa: S410
import requests
from django.conf import settings as django_settings
from django.utils import timezone
logger = logging.getLogger(__name__)
class ClientError(Exception):
pass
class ResponseParseError(ClientError):
pass
class ... | Java |
#### Scripts
##### CrowdStrikeUrlParse
- Updated the Docker image to: *demisto/python:2.7.18.24398*. | Java |
<?php
namespace Yandex\Locator\Exception;
/**
* Class ServerError
* @package Yandex\Locator\Exception
* @author Dmitry Kuznetsov <kuznetsov2d@gmail.com>
* @license The MIT License (MIT)
*/
class ServerError extends \Yandex\Locator\Exception
{
} | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.