code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
/**
* Contains methods for extracting/selecting final multiword candidates.
* @author Valeria Quochi @author Francesca Frontini @author Francesco Rubino
* Istituto di linguistica Computazionale "A. Zampolli" - CNR Pisa - Italy
*
*/
package multiword; | Java |
[](https://travis-ci.org/mircoc/cordova-plugin-settings-hook)
[](https://badge.fury.io/js/cordova-plugin-settings-hook)
[
_<sup><sup>[www.codever.land/bookmarks/t/ngrx](https://www.codever.land/bookmarks/t/ngrx)</sup></sup>_
---
#### [Managing State in Angular 2 - Kyle Cordes - Oct 2016 - 46min](https://www.youtube.com/watch?v=eBLTz8QRg4Q)
_<sup>https://www.youtube.co... | Java |
#include "PerformanceSpriteTest.h"
enum {
kMaxNodes = 50000,
kNodesIncrease = 250,
TEST_COUNT = 7,
};
enum {
kTagInfoLayer = 1,
kTagMainLayer = 2,
kTagMenuLayer = (kMaxNodes + 1000),
};
static int s_nSpriteCurCase = 0;
///////////////////////////////////////////////////////... | Java |
class SparseVector {
unordered_map<int, int> repr;
int size = 0;
public:
SparseVector(vector<int> &nums) {
size = nums.size();
for (int i=0; i<nums.size(); i++) {
if (nums[i] == 0) { continue; }
repr[i] = nums[i];
}
}
// Return the dotPro... | Java |
# Copyright (c) 2016 nVentiveUX
#
# 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, copy, modify, merge, publish,
# distri... | Java |
---
author: viviworld
comments: true
date: 2014-06-01 10:07:00+00:00
layout: post
link: http://www.labazhou.net/2014/06/the-makings-of-a-great-logo/
slug: the-makings-of-a-great-logo
title: 伟大Logo的要素
wordpress_id: 724
categories:
- 设计
tags:
- Amazon
- Disney
- logo
- Path
- Pinterest
- 字体
---
## 在设计品牌时要问自己的6个问题
公司lo... | Java |
<?php
namespace Algolia\SearchBundle;
use Algolia\SearchBundle\TestApp\Entity\Comment;
use Algolia\SearchBundle\TestApp\Entity\Image;
use Algolia\SearchBundle\TestApp\Entity\Post;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Outp... | Java |
module PrintSquare
class CommandRunner
class << self
def run(args)
validate_args(args)
print_square(args[0].to_i)
end
def print_square(number)
size = Math.sqrt(number).to_i
n = number
x = PrintSquare::Vector.new size.even? ? 1 : -1, size, size.even? ? 1 :... | Java |
package com.ripplargames.meshio.meshformats.ply;
import com.ripplargames.meshio.vertices.VertexType;
public class PlyVertexDataType {
private final VertexType vertexType;
private final PlyDataType plyDataType;
public PlyVertexDataType(VertexType vertexType, PlyDataType plyDataType) {
this.vertexT... | 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"><!-- Begin Jekyll SEO tag v2.5.0 -->
<title>Jalil Butrón | Shanghai-based cinematographer</title>
<meta name="generator" content="... | Java |
require 'multi_xml'
require 'ostruct'
require 'roxml'
module WxHelper
module XmlHelper
class Message
def initialize(xml)
hash = parse_xml xml
@source = OpenStruct.new(hash['xml'])
end
def method_missing(method, *args, &block)
@source.send(method.to_s.classify, *args, ... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qarith: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-finmap: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... | Java |
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using P03_FootballBetting.Data.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace P03_FootballBetting.Data.EntitiesConfiguration
{
public class PositionConfig : IEntityTypeConfiguration<Po... | Java |
/**
* @file
* @author Mamadou Babaei <info@babaei.net>
* @version 0.1.0
*
* @section LICENSE
*
* (The MIT License)
*
* Copyright (c) 2016 - 2021 Mamadou Babaei
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwa... | Java |
# v0.6.10
* Original: [Release atom-shell v0.6.10 - electron/electron](https://github.com/electron/electron/releases/tag/v0.6.10)
Changelog:
* Build binary for Mac on OS X 10.8.5.
* OS X 10.8.5 Mac 向けバイナリーをビルドしました
* Mountain Lion 向け
* Fix a possible dead lock when quitting.
* アプリ終了時にデッド ロックする可能性のある問題を修正しました
... | Java |
import asyncio
import email.utils
import json
import sys
from cgi import parse_header
from collections import namedtuple
from http.cookies import SimpleCookie
from urllib.parse import parse_qs, unquote, urlunparse
from httptools import parse_url
from sanic.exceptions import InvalidUsage
from sanic.log import error_l... | Java |
require 'stringio'
require 'highline/import'
module RailsZen
class ChosenAttr
attr_accessor :name, :type, :validator, :type_based_validators, :scope_attr
def initialize(name, type)
@name = name
@type = type
@scope_attr = []
end
def get_user_inputs
get_presence_req
get_t... | Java |
# frozen_string_literal: true
RSpec::Matchers.define :enforce_authorization_api do
expected_error =
{ 'error' => 'User is not authorized to access this resource.' }
match do |actual|
expect(actual).to have_http_status(403)
expect(JSON.parse(actual.body)).to eq(expected_error)
end
failure_message ... | Java |
from .tile import Split, Stack, TileStack
class Tile(Split):
class left(Stack):
weight = 3
priority = 0
limit = 1
class right(TileStack):
pass
class Max(Split):
class main(Stack):
tile = False
class InstantMsg(Split):
class left(TileStack): # or maybe no... | Java |
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You m... | Java |
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BookReviews.UI.Saga
{
public class OrderDetailsRequestSaga :
SagaStateMachine<OrderDetailsRequestSaga>, ISaga
{
static OrderDetailsRequestSaga()
{
Define(Saga);
}
private static vo... | Java |
ActiveRecord::Schema.define(:version => 1) do
create_table :notes, :force => true do |t|
t.string :title
t.text :body
end
end
| Java |
var coords;
var directionsDisplay;
var map;
var travelMode;
var travelModeElement = $('#mode_travel');
// Order of operations for the trip planner (each function will have detailed notes):
// 1) Calculate a user's route, with directions.
// 2) Run a query using the route's max and min bounds to narrow potential result... | Java |
define(['backbone', 'marionette', 'mustache', 'jquery', 'text!templates/ctrldialog.html'],
function(Backbone, Marionette, Mustache, $, template) {
return Marionette.ItemView.extend({
initialize: function(options) {
if (!options.icon_name) {
options.icon_name ... | Java |
export * from './alert.service';
export * from './authentication.service';
export * from './user.service';
export * from './serviceRequest.service'; | Java |
---
title: play on playa (part deux)
date: 2007-01-14 00:00:00 Z
permalink: "/2007/01/14/20070114play-on-playa-part-deux/"
categories:
- Baby E
- Uncategorized
author: Jennifer
layout: post
---
Yes, we had a fun filled [play date](http://www.flickr.com/photos/jenniferandJennifers_photos/?saved=1 "play date")! Oliver a... | Java |
import { InvalidArgumentError } from '../errors/InvalidArgumentError';
import { NotImplementedError } from '../errors/NotImplementedError';
import mustache from 'mustache';
import '../utils/Function';
// The base class for a control
export class Control {
// The constructor of a control
// id: The id of the control
... | Java |
<html><img border=0 src=70786-65-1.txt alt=70786-65-1.txt></img><body>
"x"
"1" "KAZIUS, J, MCGUIRE, R AND BURSI, R. DERIVATION AND VALIDATION OF TOXICOPHORES FOR MUTAGENICITY PREDICTION. J. MED. CHEM. 48: 312-320, 2005"
</body></html>
| Java |
//
// MultibandBank.c
// FxDSP
//
// Created by Hamilton Kibbe on 11/24/13.
// Copyright (c) 2013 Hamilton Kibbe. All rights reserved.
//
#include "MultibandBank.h"
#include "LinkwitzRileyFilter.h"
#include "RBJFilter.h"
#include "FilterTypes.h"
#include <stdlib.h>
// Sqrt(2)/2
#define FILT_Q (0.70... | Java |
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.Serialization;
namespace AutoHelp.domain.Models
{
[DebuggerDisplay("{Fullname}")]
[DataContract]
public class Method : CodeCommentBase
{
[DataMember]
public string ReturnType { get; set; }
[DataMem... | Java |
'use strict';
/* jasmine specs for filters go here */
describe('filter', function() {
}); | Java |
<div id="contenido">
<div class="bloque">
<h2 class="titulo"><strong>Contacto</strong></h2>
<p>Rellene el siguiente formulario si desea ponerse en contacto.</p>
<?php
if(!empty($estado)){
echo $estado;
}
?>
<form action="contacto/" method="post">
<fieldset>
<legend>Datos</legend>... | Java |
!function(n){}(jQuery);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5iYWRyYWZ0LnNjcmlwdC5qcyJdLCJuYW1lcyI6WyIkIiwialF1ZXJ5Il0sIm1hcHBpbmdzIjoiQ0FJQSxTQUFBQSxLQUVBQyIsImZpbGUiOiJuYmFkcmFmdC5zY3JpcHQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBmaWxlXG4gKiBDdXN0b20gc2NyaXB0cyBmb3IgdG... | Java |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... | Java |
require "fog"
module RedmineObjectStorage
module AttachmentPatch
def self.included(base) # :nodoc:
base.extend(ClassMethods)
base.send(:include, InstanceMethods)
base.class_eval do
unloadable
cattr_accessor :context_obj, :objectstorage_bucket_instance, :__objectst... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Chromamboo.Contracts;
using Newtonsoft.Json.Linq;
namespace Chromamboo.Providers.Notification
{
public class AtlassianCiSuiteBuildStatusNotificationProvider : INotificationProvider<... | Java |
namespace SupermarketsChainDB.Data.Migrations
{
using System;
using System.Collections.Generic;
using System.Linq;
using Oracle.DataAccess.Client;
using SupermarketsChainDB.Data;
using SupermarketsChainDB.Models;
public static class OracleToSqlDb
{
private static string Connect... | Java |
# ts3
TeamSpeak 3 ServerQuery API implementation for Node.js
| Java |
^^^^^^^^^^^^^CS171 2015 Homework Assignments
===
Homework assignments for Harvard's [CS171](http://www.cs171.org/2015/index.html) 2015. To receive homework updates on your local machine run:
```
git pull homework master
```
For details on how to submit your work, take a look at [Section 1](https://github.com/CS171/2... | Java |
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
helper_method :current_user
def current_user
@current_user ||= User.find(session[:user_id]) if session[:user_id]
end
def require_login
render_404 unless current_user
end
private
def render_404
rais... | Java |
import { Injectable } from '@angular/core';
import { SyncResult } from 'app/model/syncResult'
import { Log } from 'app/model/log'
import { LogItem } from 'app/model/logItem'
@Injectable()
export class SyncResultService
{
syncResultService : any;
constructor()
{
this.syncResultService = (window as ... | Java |
import * as React from 'react';
import { StandardProps } from '..';
export interface TableProps extends StandardProps<TableBaseProps, TableClassKey> {
component?: React.ReactType<TableBaseProps>;
}
export type TableBaseProps = React.TableHTMLAttributes<HTMLTableElement>;
export type TableClassKey = 'root';
declar... | Java |
hmm = [
"https://media3.giphy.com/media/TPl5N4Ci49ZQY/giphy.gif",
"https://media0.giphy.com/media/l14qxlCgJ0zUk/giphy.gif",
"https://media4.giphy.com/media/MsWnkCVSXz73i/giphy.gif",
"https://media1.giphy.com/media/l2JJEIMLgrXPEbDGM/giphy.gif",
"https://media0.giphy.com/media/dgK22exekwOLm/giphy.gif"... | Java |
/**
* Most of this code is adapated from https://github.com/qimingweng/react-modal-dialog
*/
import React from 'react';
import ReactDOM from 'react-dom';
import EventStack from './EventStack';
import PropTypes from 'prop-types';
const ESCAPE = 27;
/**
* Get the keycode from an event
* @param {Event} event The bro... | Java |
#include "pch.h"
#include "ActalogicApp.h"
TCHAR ActalogicApp::m_szWindowClass[] = _T("Actalogic");
TCHAR ActalogicApp::m_szTitle[] = _T("Actalogic");
ActalogicApp::ActalogicApp():
m_hWnd(NULL),
m_hInstance(NULL),
m_d2d1Manager(),
m_entityFPS(),
m_entityDebugInfoLayer(),
m_entitySceneContainer(this),
m_inputHelper()
... | Java |
import * as React from 'react';
import * as ReactDom from 'react-dom';
import * as strings from 'BarChartDemoWebPartStrings';
import { Version } from '@microsoft/sp-core-library';
import {
BaseClientSideWebPart,
IPropertyPaneConfiguration,
} from '@microsoft/sp-webpart-base';
import { PropertyPaneWebPartInformation... | Java |
package ca.wescook.wateringcans.events;
import ca.wescook.wateringcans.potions.ModPotions;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.client.event.FOVUpdateEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
impor... | Java |
<html><body>
<h4>Windows 10 x64 (18362.449)</h4><br>
<h2>FEATURE_CHANGE_TIME</h2>
<font face="arial"> FEATURE_CHANGE_TIME_READ = 0n0<br>
FEATURE_CHANGE_TIME_MODULE_RELOAD = 0n1<br>
FEATURE_CHANGE_TIME_SESSION = 0n2<br>
FEATURE_CHANGE_TIME_REBOOT = 0n3<br>
FEATURE_CHANGE_TIME_USER_FLAG = 0n128<br>
... | Java |
module Rake
class << self
def verbose?
ENV.include? "VERBOSE" and ["1", "true", "yes"].include? ENV["VERBOSE"]
end
end
end
| 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="ht... | Java |
var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy;
var util = require('util');
var session = require('express-session');
var passport = require('passport');
module.exports = (app, url, appEnv, User) => {
app.use(session({
secret: process.env.SESSION_SECRET,
name: 'freelancalot',... | Java |
const path = require('path');
const express = require('express');
const bodyParser = require('body-parser');
const auth = require('http-auth');
// const basicAuth = require('basic-auth-connect');
const apiHandler = require('./api-handler')
/**
* Installs routes that serve production-bundled client-side assets.
* It i... | Java |
from djblets.cache.backend import cache_memoize
class BugTracker(object):
"""An interface to a bug tracker.
BugTracker subclasses are used to enable interaction with different
bug trackers.
"""
def get_bug_info(self, repository, bug_id):
"""Get the information for the specified bug.
... | Java |
using System;
using System.Linq;
namespace TypeScriptDefinitionsGenerator.Common.Extensions
{
public static class StringExtensions
{
public static string ToCamelCase(this string value)
{
return value.Substring(0, 1).ToLower() + value.Substring(1);
}
public static s... | Java |
package net.zer0bandwidth.android.lib.content.querybuilder;
import android.content.ContentResolver;
import android.support.test.runner.AndroidJUnit4;
import android.test.ProviderTestCase2;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static junit.framework.Assert.assertNull... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.... | Java |
/*
* $QNXLicenseC:
* Copyright 2009, QNX Software Systems.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not reproduce, modify or distribute this software except in
* compliance with the License. You may obtain a copy of the License
* at: http://www.apache.org/licenses/LICE... | Java |
/**
@Generated Pin Manager Header File
@Company:
Microchip Technology Inc.
@File Name:
pin_manager.h
@Summary:
This is the Pin Manager file generated using MPLAB® Code Configurator
@Description:
This header file provides implementations for pin APIs for all pins selected in the GUI.
Ge... | Java |
using System;
namespace DD.Cloud.WebApi.TemplateToolkit
{
/// <summary>
/// Factory methods for creating value providers.
/// </summary>
/// <typeparam name="TContext">
/// The type used as a context for each request.
/// </typeparam>
public static class ValueProvider<TContext>
{
/// <summary>
/// Crea... | Java |
#ifndef COBALT_UTILITY_HPP_INCLUDED
#define COBALT_UTILITY_HPP_INCLUDED
#pragma once
#include <cobalt/utility/compare_floats.hpp>
#include <cobalt/utility/enum_traits.hpp>
#include <cobalt/utility/enumerator.hpp>
#include <cobalt/utility/factory.hpp>
#include <cobalt/utility/hash.hpp>
#include <cobalt/utility/type_in... | Java |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Babylonian</source>
<translation>در مورد Babylonian</translation>
... | Java |
import sys
from stack import Stack
def parse_expression_into_parts(expression):
"""
Parse expression into list of parts
:rtype : list
:param expression: str # i.e. "2 * 3 + ( 2 - 3 )"
"""
raise NotImplementedError("complete me!")
def evaluate_expression(a, b, op):
raise NotImplementedErr... | Java |
namespace TraverseDirectory
{
using System;
using System.IO;
using System.Text;
using System.Xml;
class Program
{
static void Main()
{
using (XmlTextWriter writer = new XmlTextWriter("../../dir.xml", Encoding.UTF8))
{
writer.Formatting = ... | Java |
__history = [{"date":"Fri, 12 Jul 2013 08:56:55 GMT","sloc":9,"lloc":7,"functions":0,"deliveredBugs":0.05805500935039566,"maintainability":67.90674087790423,"lintErrors":3,"difficulty":5.3076923076923075}] | Java |
/**!
*
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
/* eslint-disable */
'use strict';
var path = require('path');
module.exports = function configGrunt(grunt, p) {
grunt.registerTask('test', []);
};
| Java |
// Preprocessor Directives
#define STB_IMAGE_IMPLEMENTATION
// Local Headers
#include "glitter.hpp"
#include "shader.h"
#include "camera.h"
// Console Color
#include "consoleColor.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/gtc/matrix_transform.hpp>
// Standard Headers
//#inc... | Java |
require File.expand_path('../boot', __FILE__)
require 'rails'
# Pick the frameworks you want:
require 'active_model/railtie'
require 'active_job/railtie'
require 'active_record/railtie'
require 'action_controller/railtie'
require 'action_mailer/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'
# requi... | Java |
{{<govuk_template}}
{{$head}}
{{>includes/elements_head}}
{{>includes/elements_scripts}}
{{/head}}
{{$propositionHeader}}
{{>includes/propositional_navigation3}}
{{/propositionHeader}}
{{$headerClass}}with-proposition{{/headerClass}}
{{$content}}
<header class="page-header">
</header>
<main id="page-conta... | Java |
using System.ComponentModel.DataAnnotations;
namespace ContosoUniversity.Web.ViewModels
{
public class TokenViewModel
{
[Required]
[EmailAddress]
public string Email { get; set; }
[Required]
[DataType(DataType.Password)]
public string Password { get; set; }
... | Java |
<?php
session_start();
include_once "base.php";
$rowsPerPage=10;
$offset=2;
$sql = "SELECT area_code,area_desc,active FROM `area` ORDER BY area_code ";
$query = mysql_query($sql);
if(!$query) die('MySQL Error: '.mysql_error());
?>
<div class='form'>
<button onclick="open_menu('area_form');"><s... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class Shop_currency_model</title>
<link rel="stylesheet" href="resources/bootstrap.min.css?08b23951ef4599ca9cbf1f902d0e8290c9653ddd">
<link rel="stylesheet" href="resources/style.css?062e9e59e0b8c44fbaaded5b7ffc21f907b78669">
</head>
<body>
<div id="n... | Java |
require "spec_helper"
describe Time do
describe ".beginning_of_timehop_day" do
subject { time.beginning_of_timehop_day }
context "after 5am" do
let(:time) { Time.parse("2011-11-07 15:15:33") }
let(:beginning_of_timehop_day) { Time.parse("2011-11-07 5:00:00") }
it { should be_within(1.second... | Java |
#PDF Finish
PDF finishing touches tool to add metadata and table of contents.
Generated PDF files, from various programs, may not have complete metadata
and may not have the desired content in the navigation table of contents
available in online readers.
##Usage
There are two usage modes, show and update.
###Show ... | Java |
<?php
use Guzzle\Plugin\Mock\MockPlugin;
use OpenTok\Archive;
use OpenTok\Util\Client;
class ArchiveTest extends PHPUnit_Framework_TestCase {
// Fixtures
protected $archiveData;
protected $API_KEY;
protected $API_SECRET;
protected $archive;
protected $client;
protected static $mockBase... | Java |
package ca.uwo.eng.sel.cepsim.placement
import java.util.{List => JavaList, Set => JavaSet}
import ca.uwo.eng.sel.cepsim.query._
import scala.collection.JavaConversions._
import scala.collection.mutable
/** Companion Placement object */
object Placement {
// ----------------------- for java usage
def apply(vert... | Java |
"use strict";
const util = require("util");
const colors = require("colors");
const consoleLog = console.log;
const consoleWarn = console.warn;
const consoleError = console.error;
const EError = require("../eerror");
function padd(str, length = process.stdout.columns) {
return str + " ".repeat(length - str.length... | Java |
var express = require('express');
var bodyParser = require('body-parser');
var path = require('path');
var url = require('url');
var log4js = require('log4js');
var stashBoxConfig = require('./lib/config');
var pkg = require('./package.json');
var proxy = require('express-http-proxy');
var fileDriver = require('./d... | Java |
require 'active_support/core_ext/array/conversions'
require 'delegate'
module ServiceObject
# Provides a customized +Array+ to contain errors that happen in service layer.
# Also provides a utility APIs to handle errors well in controllers.
# (All array methods are available by delegation, too.)
# errs = Se... | Java |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @author victor li nianchaoli@msn.cn
# @date 2015/10/07
import baseHandler
class MainHandler(baseHandler.RequestHandler):
def get(self):
self.redirect('/posts/last')
| Java |
//
// NSDate+WT.h
// lchSDK
//
// Created by lch on 16/1/12.
// Copyright © 2015年 lch. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDate (WT)
- (BOOL)isThisYear; /** 判断某个时间是否为今年 */
- (BOOL)isYesterday; /** 判断某个时间是否为昨天 */
- (BOOL)isToday; /** 判断某个时间是否为今天 */
/** 字符串时间戳。 */
... | Java |
/**
*
*/
package me.dayler.ai.ami.conn;
import javax.net.SocketFactory;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.NoSuchElementException;
import java.util.Scanner;
import java.util.regex.Pattern;
... | Java |
<!DOCTYPE html>
<html lang="en-us" ng-app="myApp">
<head>
<meta charset="utf-8">
<title>Scope and Interpolation</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- load bootstrap and fontawesome via CDN --... | Java |
// test/main.js
var Parser = require('../src/markdown-parser');
var parser = new Parser();
var parserOptions = new Parser();
var assert = require("assert");
describe('tests', function() {
describe('parsing', function() {
it('bold', function(done) {
parser.parse("**b** __b__", function(err, result) { ... | Java |
import React from "react";
import { connect } from "react-redux";
import { withRouter, Route } from "react-router";
import { Link } from "react-router-dom";
import { Entry } from "../../pages/entry";
class BlogCard extends React.Component {
render() {
return (
<div>
<h2>{this.props.title}</h2>
... | Java |
.page-content .navbar-fixed-bottom,.page-content .navbar-fixed-top{position:relative}.page-content .card-block{padding-left:0;padding-right:0}.page-content .card-block .card-link+.card-link{margin-left:0}.scrollspy-example{position:relative;height:200px;padding:0 20px;overflow:auto;-webkit-box-shadow:0 2px 4px rgba(0,0... | Java |
module.exports = {
stores: process.env.STORES ? process.env.STORES.split(',') : [
'elasticsearch',
'postgresql',
'leveldb'
],
postgresql: {
host: process.env.POSTGRESQL_HOST || 'localhost',
port: process.env.POSTGRESQL_PORT || '5432',
username: process.env.POSTGRESQL_USER || 'postgres',... | 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_20) on Mon Nov 01 20:33:53 CET 2010 -->
<TITLE>
Uses of Class play.libs.WS (Play! API)
</TITLE>
<META NAME="date" CONTENT="2010-11-01">
<LINK REL =... | Java |
import React from 'react';
import { createStore } from 'redux';
import { createBrowserHistory } from 'history';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import rootReducer from '../../src/reducers';
import Routes from '../../src/Routes';
import App from '../../src/containers/App';
cons... | Java |
#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<string.h>
int main(){
int pid1,pid2,pid3,pid4;
int p1[2],p2[2];
char bufr[30],rev[30];
int countL=0,countU=0,i=-1,j=0,countV=0,len;
pipe(p1);
pipe(p2);
if(pid1=fork()==0){
if(pid2=fork()==0){
read(p2[0],bufr,sizeof(bu... | Java |
import appActions from './application'
import todosActions from './todos'
import filterActions from './filter'
import commentsActions from './comments'
import userActions from './user'
export {
appActions,
todosActions,
filterActions,
commentsActions,
userActions
}
export * from './application'
export * fro... | Java |
<link data-turbolinks-track="true" href="http://zebra.easybird.cn//assets/application-9f674e9fd925ff3aca42c05a9a21bdaad56211d8ce90de12ecd1924966593d71.css" media="all" rel="stylesheet">
<script data-turbolinks-track="true" src="http://zebra.easybird.cn//assets/assets/application-ae2722ac77e8668d4e05ad6a5bdd5abd8220... | Java |
package info.yongli.statistic.table;
/**
* Created by yangyongli on 25/04/2017.
*/
public class ColumnTransformer {
}
| Java |
#region License
// Copyright (c) 2009 Sander van Rossen
//
// 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, copy, m... | Java |
# ProductAccess_server
start ```npm run start```
| Java |
import * as R_drop from '../ramda/dist/src/drop';
declare const number: number;
declare const string: string;
declare const boolean_array: boolean[];
// @dts-jest:pass
R_drop(number, string);
// @dts-jest:pass
R_drop(number, boolean_array);
| Java |
/*
Title: Behavioral Finance and Market Behavior
layout: chapter
*/
## Chapter Learning Objectives
### Section 1 - Investor Behavior
- Identify and describe the biases that can affect investor decision making.
- Explain how framing errors can influence investor decision making.
- Identify the factors that can influe... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.