code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="/public/font-awesome/css/font-awesome.min.css">
<!-- Enable re... | Java |
#pragma once
#include "dg/enums.h"
#include "json/json.h"
namespace eule{
/**
* @brief Provide a mapping between input file and named parameters
*/
struct Parameters
{
unsigned n; //!< \# of polynomial coefficients in R and Z
unsigned Nx; //!< \# of cells in x -direction
unsigned Ny; //!< \# of cells in ... | Java |
import PartyBot from 'partybot-http-client';
import React, { PropTypes, Component } from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import Heading from 'grommet/components/Heading';
import Box from 'grommet/components/Box';
import Footer from 'grommet/components/Foote... | Java |
# Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attac... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Core.Interfaces
{
public static class IApplicationCommandConstants
{
/// <summary>
/// This application name represents default commands - when there is no
/// ... | Java |
module HealthSeven::V2_3
class QryQ02 < ::HealthSeven::Message
attribute :msh, Msh, position: "MSH", require: true
attribute :qrd, Qrd, position: "QRD", require: true
attribute :qrf, Qrf, position: "QRF"
attribute :dsc, Dsc, position: "DSC"
end
end | Java |
<?php
namespace seregazhuk\tests\Bot\Providers;
use seregazhuk\PinterestBot\Api\Providers\User;
use seregazhuk\PinterestBot\Helpers\UrlBuilder;
/**
* Class ProfileSettingsTest
* @method User getProvider()
*/
class ProfileSettingsTest extends ProviderBaseTest
{
/** @test */
public function it_retrieves_cur... | Java |
//
// Copyright 2014-2015 Amazon.com,
// Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Amazon Software License (the "License").
// You may not use this file except in compliance with the
// License. A copy of the License is located at
//
// http://aws.amazon.com/asl/
//
// or in the "l... | Java |
<wicket:extend>
<div class="row">
<div class="col-md-12">
<h3>Ergebnisse</h3>
<br/>
</div>
</div>
<div class="row">
<div class="col-md-12 result-border">
<div class="row">
<div class="col-md-12">
<h4>
... | Java |
package edu.isep.sixcolors.view.listener;
import edu.isep.sixcolors.model.Config;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* A popup window asking if the player want's to exit Six Colors
*/
public class Exit implements ActionListener {
@Override
pu... | Java |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using gView.Framework.IO;
using gView.Framework.Data;
using gView.Framework.UI;
namespace gView.Framework.UI.Dialogs
{
public partial class FormMetada... | Java |
eslint-plugin-extjs
============
[](https://npmjs.org/package/eslint-plugin-extjs) [](https://travis-ci.org/burnnat/eslint-plugin-extjs) [
| Java |
namespace EgaViewer_v2
{
partial class CustomPictureBox
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | Java |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2019 Marco Antognini (antognini.marco@gmail.com),
// Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied wa... | Java |
namespace StudentClass
{
public class Course
{
public Course(string name)
: this()
{
this.Name = name;
}
public Course()
{
}
public string Name { get; private set; }
public override string ToString()
{
... | Java |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
@interface IDEEditorDocumentValidatedUserInterfaceItem : NSObject <NSValidatedUserInterfaceItem>
{
SEL _action;
long long _tag;
}
@property long ... | 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_112-google-v7) on Thu Mar 02 16:51:04 PST 2017 -->
<title>ResourceTableFactory</title>
<meta name="date" content="2017-03-02">
<link rel="style... | Java |
//Generated by the Argon Build System
/***********************************************************************
Copyright (c) 2006-2011, Skype 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:
- Re... | Java |
export const ic_restaurant_menu_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm12.05-3.19c1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.1-6.12.81-... | Java |
# encoding: UTF-8
module DocuBot::LinkTree; end
class DocuBot::LinkTree::Node
attr_accessor :title, :link, :page, :parent
def initialize( title=nil, link=nil, page=nil )
@title,@link,@page = title,link,page
@children = []
end
def anchor
@link[/#(.+)/,1]
end
def file
@link.sub(/#.+/,'')
end
def ... | Java |
"use strict"
const messages = require("..").messages
const ruleName = require("..").ruleName
const rules = require("../../../rules")
const rule = rules[ruleName]
testRule(rule, {
ruleName,
config: ["always"],
accept: [ {
code: "a { background-size: 0 , 0; }",
}, {
code: "a { background-size: 0 ,0; }... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp... | Java |
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+bash+css-extras+git+php+php-extras+jsx+scss+twig+yaml&plugins=line-highlight+line-numbers */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="l... | Java |
# -*- coding: utf-8 -*-
"""
"""
from datetime import datetime, timedelta
import os
from flask import request
from flask import Flask
import pytz
import db
from utils import get_remote_addr, get_location_data
app = Flask(__name__)
@app.route('/yo-water/', methods=['POST', 'GET'])
def yowater():
payload = re... | Java |
<html>
<head>
<title>Terry George's panel show appearances</title>
<script type="text/javascript" src="../common.js"></script>
<link rel="stylesheet" media="all" href="../style.css" type="text/css"/>
<script type="text/javascript" src="../people.js"></script>
<!--#include virtual="head.txt" -->
</head>
<body>
<!--#... | Java |
{% extends "base.html" %}
{% block title %} new statement
{% endblock title %}
{% load crispy_forms_tags %}
{% block content %}
<h1>Create a new {{ model_name_lower }}!</h1>
{% if request.user.is_anonymous %}
Only signed-in users can create {{ model_name_lower }}s!
{% else %}
{% crispy form form.helper %}
{% endif %}
... | Java |
from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()
import views
urlpatterns = patterns('',
url(r'^pis', views.pis),
url(r'^words', views.words, { 'titles': False }),
url(r'^p... | Java |
var test = require('tap').test;
var CronExpression = require('../lib/expression');
test('Fields are exposed', function(t){
try {
var interval = CronExpression.parse('0 1 2 3 * 1-3,5');
t.ok(interval, 'Interval parsed');
CronExpression.map.forEach(function(field) {
interval.fields[field] = [];
... | 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 |
<?php
use Illuminate\Database\Seeder;
// composer require laracasts/testdummy
use Laracasts\TestDummy\Factory as TestDummy;
class UsersTableSeeder extends Seeder
{
public function run()
{
DB::table('users')->insert([
'name' => 'system',
'email' => 'system@levelup.app',
... | Java |
package br.eti.qisolucoes.contactcloud.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.conf... | Java |
package de.chandre.admintool.security.dbuser.repo;
import java.util.List;
import java.util.Set;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import de.chandre.admintool.security.dbuser.do... | Java |
#! /bin/bash
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder
| Java |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, fillIn } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | inputs/text-input', function (hooks) {
setupRenderingTest(hooks);
hooks.beforeEach(async fun... | Java |
#!/usr/bin/env node
var listCommand = [];
require('./listCommand')(listCommand)
var logDetail = (str) => {
console.log(' > '+str);
}
var printHelp = () => {
var txtHelp = "";
var h = ' ';
var t = ' ';
txtHelp += "\n"+h+"Usage : rider [command] \n";
txtHelp += "\n"+h+"Command List : \n";
var maxText = 0;
... | Java |
<?php
/*
* Arabian language
*/
$lang = [
'albums' => 'Альбомы'
]; | Java |
//
// RSAEncryptor.h
// iOSProject
//
// Created by Alpha on 2017/6/12.
// Copyright © 2017年 STT. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RSAEncryptor : NSObject
/**
* 加密方法
*
* @param str 需要加密的字符串
* @param path '.der'格式的公钥文件路径
*/
+ (NSString *)encryptString:(NSString *)st... | Java |
# Digital ecosystem dashboard
This dashboard was technically and graphically made by [Sebcreation](http://www.sebcreation.com)
## Requirements
This application requires [Node JS](http://nodejs.org/), the streaming build system [gulp.js](http://gulpjs.com/) and the [compass](http://compass-style.org/) ruby gem.
Aft... | Java |
<?php
namespace Hal\Controller;
/*
* File: /app/code/core/system/base_controller.php
* Purpose: Base class from which all controllers extend
*/
class Base_Controller {
protected $action;
public $cache;
public $config;
private $controller;
private $controller_class;
private $controller_filename;
protected ... | Java |
---
title: While We're At It
category: The Guts of FP
order: 1
---
You won't get very far in most imperative languages without the humble `while` loop or one of it's variants such as `for`. Even though for loops are more commonly used, they are just syntactic sugar on while, so let's start there:
{% highlight javascr... | Java |
import { BaseController } from "./BaseController";
import { Route } from "./BaseController";
import * as loadHtml from "./HtmlLoader";
export class MainController extends BaseController
{
main = (): void =>
{
loadHtml.load(this.requestData, '/views/index.html', {});
}
routes: Route[] = [
... | Java |
import React from "react";
import $ from "jquery";
import "bootstrap/dist/js/bootstrap.min";
import "jquery-ui/ui/widgets/datepicker";
import {
postFulltimeEmployer,
postParttimeEmployer,
putFullTimeEmployer,
putParttimeEmployer
} from "../actions/PostData";
import DropDownBtn from "../components/DropDo... | Java |
require 'spec_helper'
describe Character do
before do
@character = Character.new(name: "Walder Frey", page: 'index.html')
end
subject { @character}
it { should respond_to(:name)}
it { should respond_to(:icon)}
it { should respond_to(:page)}
it { should respond_to(:degrees)}
it { should respond_to(... | Java |
package net.sf.jabref.gui.util;
import javafx.concurrent.Task;
/**
* An object that executes submitted {@link Task}s. This
* interface provides a way of decoupling task submission from the
* mechanics of how each task will be run, including details of thread
* use, scheduling, thread pooling, etc.
*/
public inte... | Java |
require 'test_helper'
class Test45sHelperTest < ActionView::TestCase
end
| Java |
---
author: generalchoa
comments: true
date: 2014-01-31 23:22:32+00:00
layout: post
slug: week13-day35b-beefmode
title: Week13 - Day35B - Beefmode
wordpress_id: 1429
categories:
- B
- StrongLifts
tags:
- agile 8
- deadlift
- dips
- incline db press
- plank
- preacher curls
- push-up
- seated db curls
- shoulder shocker... | Java |
package com.mgireesh;
public class Solution extends VersionControl {
public int firstBadVersion(int n) {
int badVersion = 0;
int start = 1;
int end = n;
while (start < end) {
int mid = start + (end - start) / 2;
if (isBadVersion(mid)) {
end = mid;
} else {
start = mid + 1;
}
}
return ... | Java |
<?php
namespace Aurex\Framework\Module\Modules\FormDoctrineModule;
use Symfony\Bridge\Doctrine\Form\DoctrineOrmExtension,
Silex\Provider\TranslationServiceProvider,
Aurex\Framework\Module\ModuleInterface,
Silex\Provider\SessionServiceProvider,
Silex\Provider\FormServiceProvider,
Aurex\Framework\Au... | Java |
<html><!-- Created using the cpp_pretty_printer from the dlib C++ library. See http://dlib.net for updates. --><head><title>dlib C++ Library - matrix_expressions_ex.cpp</title></head><body bgcolor='white'><pre>
<font color='#009900'>// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAM... | Java |
define('exports@*', [], function(require, exports, module){
exports.a = 1;
}); | Java |
package types
// ApiVersion custom ENUM for SDK forward compatibility
type ApiVersion int
const (
ApiV1 ApiVersion = iota
)
// EnvironmentType
// https://docs.coinapi.io/#endpoints-2
type EnvironmentType int
const (
ProdEncrypted EnvironmentType = iota
ProdInsecure
TestEncrypted
TestInsecure
)
// MessageType ... | Java |
require 'rubygems'
require 'bundler'
Bundler.require
require 'sinatra'
set :public_folder, 'static'
get '/' do
File.read(File.join('index.html'))
end
get '/api/' do
#content_type :js
content_type("application/javascript")
response["Content-Type"] = "application/javascript"
#require 'config/initializers/b... | Java |
using System.Threading.Tasks;
using FluentAssertions;
using Histrio.Testing;
using Xunit;
namespace Histrio.Tests.Cell
{
public class When_getting_a_value_from_a_cell : GivenWhenThen
{
[Theory,
InlineData(true),
InlineData(333),
InlineData(new[] {true, true}),
Inline... | Java |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class oscilation : MonoBehaviour {
public float m_speed = 0.008f;
public int m_distance = 45;
private int compteur = 0;
private int compteur2 = 0;
// Use this for initialization
void Start () {
Vector3 yOrigin = transform.l... | Java |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using System.Net;
using System.Web;
using System.Web.Mvc;
using Transit.Models;
namespace Transit.Controllers
{
public class RoutesController : Controller
{
pri... | Java |
/*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) 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
* ... | Java |
jQuery(document).ready(function(){
jQuery('.carousel').carousel()
var FPS = 30;
var player = $('#player')
var pWidth = player.width();
$window = $(window)
var wWidth = $window.width();
setInterval(function() {
update();
}, 1000/FPS);
function update() {
if(keydown.space) {
player.shoot();
}... | Java |
/// <reference path="tsUnit.ts" />
/// <reference path="MockExpression.ts" />
/// <reference path="../src/EventBinding.ts" />
module jsBind {
private fireEvent(elem: any): void {
if (document.createEventObject) {
// IE 9 & 10
var event: any = document.createEventObject();
... | Java |
// Copyright (c) 2015 The original author or authors
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#if UNITY_EDITOR
using SpriterDotNet;
using System;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace S... | Java |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import base64
import json
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from behave import *
@step('I share first element in the history list')
def step_impl(... | Java |
---
layout: link
type: link
link: https://www.bloomberg.com/news/articles/2019-11-05/why-indonesia-failed-to-cash-in-on-the-china-u-s-trade-war
title: "Bloomberg: Why Indonesia Failed to Cash in on the China-U.S. Trade War"
category: links
tags:
- life
- "daily found"
- development
- indonesia
categor... | Java |
import { entryPoint } from '@rpgjs/standalone'
import globalConfigClient from './config/client'
import globalConfigServer from './config/server'
import modules from './modules'
document.addEventListener('DOMContentLoaded', function() {
entryPoint(modules, {
globalConfigClient,
globalConfigServer
... | Java |
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Elements part
//
// Contrib... | Java |
///////////////////////////////////////////////////////////////////////////////
//
// (C) Autodesk, Inc. 2007-2011. All rights reserved.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyrig... | Java |
'use strict';
// Configuring the Articles module
angular.module('about').run(['Menus',
function(Menus) {
// Set top bar menu items
Menus.addMenuItem('mainmenu', 'About Us', 'about', 'left-margin', '/about-us', true, null, 3);
}
]);
| Java |
package cwr;
import java.util.ArrayList;
public class RobotBite
{
//0 = time [state]
//1 = x [state]
//2 = y [state]
//3 = energy [state]
//4 = bearing radians [relative position]
//5 = distance [relative position]
//6 = heading radians [travel]
//7 = velocity [travel]
String name;
long c... | Java |
export default function closest(n, arr) {
let i
let ndx
let diff
let best = Infinity
let low = 0
let high = arr.length - 1
while (low <= high) {
// eslint-disable-next-line no-bitwise
i = low + ((high - low) >> 1)
diff = arr[i] - n
if (diff < 0) {
low = i + 1
} else if (diff > ... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClearScript.Installer.Demo
{
public class Class1
{
}
}
| Java |
/**
* 斐波那契数列
*/
export default function fibonacci(n){
if(n <= 2){
return 1;
}
let n1 = 1, n2 = 1, sn = 0;
for(let i = 0; i < n - 2; i ++){
sn = n1 + n2;
n1 = n2;
n2 = sn;
}
return sn;
}
| Java |
import * as UTILS from '@utils';
const app = new WHS.App([
...UTILS.appModules({
position: new THREE.Vector3(0, 40, 70)
})
]);
const halfMat = {
transparent: true,
opacity: 0.5
};
const box = new WHS.Box({
geometry: {
width: 30,
height: 2,
depth: 2
},
modules: [
new PHYSICS.BoxModu... | Java |
package unit.com.bitdubai.fermat_dmp_plugin.layer.basic_wallet.bitcoin_wallet.developer.bitdubai.version_1.structure.BitcoinWalletBasicWalletAvailableBalance;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.common.exceptions.CantRegisterDebitException;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.bitco... | Java |
// ******************************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTAB... | Java |
<html><body>
<h4>Windows 10 x64 (18363.900)</h4><br>
<h2>_OPENCOUNT_REASON</h2>
<font face="arial"> OpenCount_SkipLogging = 0n0<br>
OpenCount_AsyncRead = 0n1<br>
OpenCount_FlushCache = 0n2<br>
OpenCount_GetDirtyPage = 0n3<br>
OpenCount_GetFlushedVDL = 0n4<br>
OpenCount_InitCachemap1 = 0n5<br>
... | Java |
#ifndef BITMAP_H
#define BITMAP_H
#include <allegro5/allegro.h>
#include <memory>
#include "renderlist.h"
// This class does double duty as a renderable, and a wrapper for allegro bitmap.
class Bitmap;
using BitmapPtr = std::shared_ptr<Bitmap>;
class Bitmap : public Renderable
{
ALLEGRO_BITMAP* bitmap;
floa... | Java |
# BullDawgBeds | Java |
/*
gopm (Go Package Manager)
Copyright (c) 2012 cailei (dancercl@gmail.com)
The MIT License (MIT)
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... | Java |
package org.usfirst.frc.team6135.robot.subsystems;
import java.awt.geom.Arc2D.Double;
import org.usfirst.frc.team6135.robot.RobotMap;
import org.usfirst.frc.team6135.robot.commands.teleopDrive;
import com.kauailabs.navx.frc.AHRS;
import edu.wpi.first.wpilibj.ADXRS450_Gyro;
import edu.wpi.first.wpilibj.RobotDrive;
im... | Java |
module Shopping
class LineItem < ActiveRecord::Base
extend Shopping::AttributeAccessibleHelper
belongs_to :cart
belongs_to :source, polymorphic: true
validate :unique_source_and_cart, on: :create
validate :unpurchased_cart
validates :quantity, allow_nil: true, numericality: {only... | Java |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | Java |
#!/usr/bin/env python
"""
This script is used to run tests, create a coverage report and output the
statistics at the end of the tox run.
To run this script just execute ``tox``
"""
import re
from fabric.api import local, warn
from fabric.colors import green, red
if __name__ == '__main__':
# Kept some files for ... | Java |
using System;
namespace KeyWatcher.Reactive
{
internal sealed class ObservingKeyWatcher
: IObserver<char>
{
private readonly string id;
internal ObservingKeyWatcher(string id) =>
this.id = id;
public void OnCompleted() =>
Console.Out.WriteLine($"{this.id} - {nameof(this.OnCompleted)}");
public vo... | Java |
from baroque.entities.event import Event
class EventCounter:
"""A counter of events."""
def __init__(self):
self.events_count = 0
self.events_count_by_type = dict()
def increment_counting(self, event):
"""Counts an event
Args:
event (:obj:`baroque.entities.ev... | Java |
/*
Fontname: -Adobe-Times-Medium-R-Normal--11-80-100-100-P-54-ISO10646-1
Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved.
Glyphs: 191/913
BBX Build Mode: 0
*/
const uint8_t u8g2_font_timR08_tf[... | Java |
import React from 'react'
import { PlanItineraryContainer } from './index'
const PlanMapRoute = () => {
return (
<div>
<PlanItineraryContainer />
</div>
)
}
export default PlanMapRoute
| Java |
//
// Reliant.h
// Reliant
//
// Created by Michael Seghers on 18/09/14.
//
//
#ifndef Reliant_Header____FILEEXTENSION___
#define Reliant_Header____FILEEXTENSION___
#import "OCSObjectContext.h"
#import "OCSConfiguratorFromClass.h"
#import "NSObject+OCSReliantContextBinding.h"
#import "NSObject+OCSReliantInjection.... | Java |
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | Java |
using System.Diagnostics.CodeAnalysis;
namespace Npoi.Mapper
{
/// <summary>
/// Information for one row that read from file.
/// </summary>
/// <typeparam name="TTarget">The target mapping type for a row.</typeparam>
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
public c... | Java |
const path = require('path');
module.exports = {
lazyLoad: true,
pick: {
posts(markdownData) {
return {
meta: markdownData.meta,
description: markdownData.description,
};
},
},
plugins: [path.join(__dirname, '..', 'node_modules', 'bisheng-plugin-description')],
routes: [{
... | Java |
<?php
namespace WindowsAzure\DistributionBundle\Deployment;
/**
* @author Stéphane Escandell <stephane.escandell@gmail.com>
*/
interface CustomIteratorInterface
{
/**
* @param array $dirs
* @param array $subdirs
*/
public function getIterator(array $dirs, array $subdirs);
} | Java |
import { Injectable } from '@angular/core';
import {Http,Response,ConnectionBackend,Headers,RequestMethod} from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/toPromise';
import{AppHttpUtil} from '../appUtil/httpUtil';
import {AppPermService... | Java |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2013-2016 zilongshanren
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (th... | Java |
// Init ES2015 + .jsx environments for .require()
require('babel-register');
var express = require('express');
var fluxexapp = require('./fluxexapp');
var serverAction = require('./actions/server');
var fluxexServerExtra = require('fluxex/extra/server');
var app = express();
// Provide /static/js/main.js
fluxexServer... | Java |
import numpy as np
class Surface(object):
def __init__(self, image, edge_points3d, edge_points2d):
"""
Constructor for a surface defined by a texture image and
4 boundary points. Choose the first point as the origin
of the surface's coordinate system.
:param image: image a... | Java |
# Sparse Arrays
Internally the V8 engine can represent `Array`s following one of two approaches:
- **Fast Elements**: linear storage for compact keys sets.
- **Dictionary Elements**: hash table storage (more expensive to access on runtime).
If you want V8 to represent your `Array` in the `Fast Elements` form, you ne... | Java |
<?php
return [
/**
*--------------------------------------------------------------------------
* Logging Configuration
*--------------------------------------------------------------------------
*
* Here you may configure the log settings for your application. Out of
* the box, the ap... | Java |
# [Demo](https://keaws.github.io/git-api-client/)
## Install
```
npm i
npm start
```
| Java |
A PvPGNChatParser converts raw messages received from PvPGNChat to ChatMessage objects | Java |
import { fullSrc } from '../element/element';
import { pixels } from '../math/unit';
import { Clone } from './clone';
import { Container } from './container';
import { Image } from './image';
import { Overlay } from './overlay';
import { Wrapper } from './wrapper';
export class ZoomDOM {
static useExisting(element... | Java |
define(function(){
return {"乙":"乚乛",
"人":"亻",
"刀":"刂",
"卩":"㔾",
"尢":"尣𡯂兀",
"巛":"巜川",
"己":"已巳",
"彐":"彑",
"心":"忄",
"手":"扌",
"攴":"攵",
"无":"旡",
"歹":"歺",
"水":"氵氺",
"爪":"爫",
"火":"灬",
"":"户",
"牛":"牜",
"犬":"犭",
"玉":"王",
"疋":"",
"目":"",
"示":"礻",
"玄":"𤣥",
"糸":"糹",
"网":"冈",
"艸":"艹",
"竹":"",
... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.