code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from .local import Local # noqa
from .production import Production # noqa
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import app as celery_app
| Java |
// Copyright 2014 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.
#ifndef ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_
#define ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_
#include "ash/system/audio/audio_observer.h"
#include "ash/system/tray/tray... | Java |
module Text.OpenGL.Xml.ReadRegistry (
readRegistry,
parseRegistry,
PreProcess
) where
import Prelude hiding ((.), id)
import Control.Category
import Text.OpenGL.Types
import Text.OpenGL.Xml.Pickle()
import Text.OpenGL.Xml.PreProcess
import Text.XML.HXT.Core
type PreProcess = Bool
-- TODO RelaxNG valid... | Java |
//
// CEDestinySDK.h
// CEDestinySDK
//
// Created by Caleb Eades on 11/12/15.
// Copyright (c) 2015 Caleb Eades. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for CEDestinySDK.
FOUNDATION_EXPORT double CEDestinySDKVersionNumber;
//! Project version string for CEDestinySDK.
FOUNDATIO... | Java |
/**
* History.js Core
* @author Benjamin Arthur Lupton <contact@balupton.com>
* @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com>
* @license New BSD License <http://creativecommons.org/licenses/BSD/>
*/
(function(window,undefined){
"use strict";
// =============================================... | Java |
require 'spree_auto_invoice'
require 'rails'
module SpreeAutoInvoice
class Railtie < Rails::Railtie
rake_tasks do
require '../tasks/spree_auto_invoice.rake'
end
end
end
| Java |
<?php
use librarys\helpers\utils\String;
?>
<!-- 文章正文 下面部分 -->
<div class="a_info neinf">
<div>
<div class="a_rea a_hop">
<h2>
<span><a href="http://jb.9939.com/article_list.shtml">更多文章>></a></span>
与“<font style="color:#F00"><?php echo String::cutString($title, ... | Java |
// Copyright 2019 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 "components/optimization_guide/hints_processing_util.h"
#include "components/optimization_guide/proto/hint_cache.pb.h"
#include "components/opti... | Java |
// Copyright (c) 2014 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 "chrome/browser/ui/extensions/settings_api_bubble_helpers.h"
#include <utility>
#include "build/build_config.h"
#include "chrome/browser/ex... | Java |
package org.broadinstitute.hellbender.engine;
import org.broadinstitute.barclay.argparser.CommandLineProgramProperties;
import org.broadinstitute.hellbender.cmdline.TestProgramGroup;
/**
* A Dummy / Placeholder class that can be used where a {@link GATKTool} is required.
* DO NOT USE THIS FOR ANYTHING OTHER THAN TE... | Java |
// Standard system includes
#include <assert.h>
#include <errno.h> // -EINVAL, -ENODEV
#include <netdb.h> // gethostbyname
#include <sys/poll.h>
#include <sys/types.h> // connect
#include <sys/socket.h> // connect
#include <trace.h>
#define MY_TRACE_PREFIX "EthernetServer"
extern "C" {
#include "string.h"
}
#... | Java |
'use strict';
module.exports = function (Logger, $rootScope) {
return {
restrict: 'A',
scope: {
hasRank: '='
},
link: function ($scope, elem, attrs) {
$rootScope.$watch('currentUser', function () {
Logger.info('Checking for rank: ' + $scope.... | Java |
/*
* Created on 02/04/2005
*
* JRandTest package
*
* Copyright (c) 2005, Zur Aougav, aougav@hotmail.com
* 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... | Java |
/*
* Copyright (c) 2011 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | Java |
Spree.user_class.class_eval do
belongs_to :supplier, class_name: 'Spree::Supplier', optional: true
has_many :variants, through: :supplier
def supplier?
supplier.present?
end
def supplier_admin?
spree_roles.map(&:name).include?("supplier_admin")
end
def market_maker?
has_admin_role?
end
... | Java |
# Possible discounts:
# - Node (administer inline with nodes)
# - Bulk amounts on nodes
# - User
# - Group of users
# - Order (this is more-or-less a voucher)
# - Shipping costs
# Possible amounts:
# - Percentage
# - Fixed amount
# Flag indicating if a discount can be combined with other discounts.
# Boolean "offer" to... | Java |
// Copyright © 2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Threading.Tasks;
namespace CefSharp.Test
{
public static class WebBrowserTestExtensions
{
public static Task... | Java |
<?php
use yii\db\Migration;
class m160407_113339_vraagenAndAwnserFixjes extends Migration
{
public function safeUp()
{
$this->alterColumn('vraag', 'text', 'blob');
$this->alterColumn('antwoord', 'text', 'blob');
}
public function safeDown()
{
$this->alterColumn('vraag', '... | Java |
#ifndef CTRL_PARTITION_H
#define CTRL_PARTITION_H
#include <wx/panel.h>
//#include <wx/sizer.h>
enum CTRL_STATE
{
S_IDLE,
S_LEFT_SLIDER,
S_RIGHT_SLIDER,
S_MOVE
};
class wxPartition : public wxPanel
{
static const int slider_width = 10;
int slider_left_pos;
int slider_right_p... | Java |
Title: Music API Server说明文档
Date: 2014-06-24 12:56
Update: 2014-07-02 20:36
Tags: 音乐服务, API
音乐服务的api通用接口,目前已支持的音乐服务:
* 虾米
* 专辑
* 歌曲列表
* 精选集
* 网易云音乐
* 专辑
* 歌曲列表
* 歌单
仓库地址: [mawenbao/music-api-server](https://github.com/mawenbao/music-api-server)
## 安装(debian/ubuntu)
首先检查`GOPATH`变量是否正确设置,如果未设... | Java |
<?php
use SerializerKit\XmlSerializer;
class XmlSerializerTest extends PHPUnit_Framework_TestCase
{
function test()
{
$xmls = new XmlSerializer;
$string = $xmls->encode(array(
'title' => 'War and Peace',
'isbn' => 123123123,
'authors' => array(
... | Java |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command w... | Java |
#![allow(missing_docs)]
use downcast_rs::Downcast;
use na::{DVector, RealField};
use ncollide::query::ContactId;
use crate::detection::ColliderContactManifold;
use crate::material::MaterialsCoefficientsTable;
use crate::object::{BodyHandle, BodySet, ColliderHandle};
use crate::solver::{ConstraintSet, IntegrationParam... | Java |
/**
* @file
* Money is a value object representing a monetary value. It does not use
* floating point numbers, so it avoids rounding errors.
* The only operation that may cause stray cents is split, it assures that no
* cents vanish by distributing as evenly as possible among the parts it splits into.
*
* Money ... | Java |
#include "Shape.h"
#include "DynBase.h"
//#include <iostream>
using std::cout;
using std::endl;
Shape::~Shape()
{
cout << "~Shape ..." << endl;
}
void Circle::Draw()
{
cout << "Circle::Draw() ..." << endl;
}
Circle::~Circle()
{
cout << "~Circle ..." << endl;
}
void Square::Draw()
{
cout << "Square::Draw() ..."... | Java |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
'use strict';
import {
IContentsModel
} from 'jupyter-js-services';
import {
Message
} from 'phosphor-messaging';
import {
PanelLayout
} from 'phosphor-panel';
import {
Widget
} from 'phosphor-widget';
im... | Java |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
n... | Java |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "solicitud_prestamo".
*
* @property integer $SPRE_ID
* @property string $PE_RUT
* @property string $SPRE_DESCRIPCION
* @property string $SPRE_FECHA
* @property string $SPRE_ESTADO
* @property string $SPRE_TEXTO
*
* @property Perso... | Java |
% File: api.pl
% Purpose: prolog api for elf application
% Author: Roger Evans
% Version: 1.0
% Date: 21/12/2013
%
% (c) Copyright 2013, University of Brighton
% application api from prolog
nimrodel(Model, Title, String) :-
nimrodel(['-model', Model, '-title', Title, Stri... | Java |
@(message: String,books : List[models.Book], conditions : List[models.Condition],
requests : List[models.CurrentRequest], bookSelected : Long , price : String ,conditionSelected : Long )
@implicitFieldConstructor = @{ helper.FieldConstructor(twitterBootstrapInput.render) }
@main("My Requests") {
<div clas... | Java |
---
title: "8차 천일 결사 1차 백일 기도 정진 56일째"
date: 2014-05-18 08:01:52
tags:
- 8000th
- 8-100th
- 56th
---
#수행일지
남에 마음에 노력하기 위한 저 자신을 봅니다. 어릴때 부모님 특히 엄마를 볼 수 있는 시간이 부족해서 전 사랑고파병이 있습니다. 그래서 누구든지 그 사람의 마음에 들기 위해서 무의식적으로 노력하고 있는 저를 봅니다. 이것을 알아차리니 이제 남의 마음에 들지 않기 위해서 노력하고 있는 저를 봅니다. 저는 양 극단을 헤메이고 있습니다. 부처님이 말씀하신 마음... | Java |
<?php
namespace app\models;
use app\models\query\ActionQuery;
use app\models\query\CommentQuery;
use Yii;
use yii\db\ActiveRecord;
/**
* This is the model class for table "comment".
*
* @property integer $id
* @property integer $action_id
* @property string $content
*
* @property Action $action
*/
class Comm... | Java |
<!DOCTYPE html>
<html lang='en'>
<head>
<title>Ligs and Pseudo Test</title>
<link href="b.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<p data-a="hello ">Hello world how are you today?</p>
<p>This is a test of the use of ligatures to encode icons in a fun and cool way. ... | 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 "chrome/browser/net/sdch_dictionary_fetcher.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/message_loop.h"
#in... | Java |
<?php
use yii\helpers\Html;
use mdm\admin\models\Assignment;
use backend\models\UserBackend;
use yii\base\Object;
$user = new UserBackend();
$list = UserBackend::find()->where([])->asArray()->all();
//print_r($list);
//echo "<br>";
$euserId = "";
for($i=0;$i<count($list);$i++){
$tmpId = $list[$i]["id"];
$assign... | Java |
C Copyright (c) 2007-2017 National Technology & Engineering Solutions of
C Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
C NTESS, the U.S. Government retains certain rights in this software.
C
C Redistribution and use in source and binary forms, with or without
C modification, are permitted provi... | Java |
<!--
Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
-->
<div *ngIf="pending"
class="btn spinner">
<material-spinner></material-spinner>
</div>
<materi... | Java |
package de.uni.freiburg.iig.telematik.wolfgang.properties.check;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import de.invation.code.toval.graphic.component.DisplayFrame;
import de.invation.code.toval.graphic.util.SpringUtilities;
import de.uni.freiburg.iig.telematik.sepia.petrinet.cpn.properties.cwn.CW... | Java |
/*
* Zorbage: an algebraic data hierarchy for use in numeric processing.
*
* Copyright (c) 2016-2021 Barry DeZonia 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 so... | Java |
import matplotlib.pyplot as plt
import numpy as np
import scalpplot
from scalpplot import plot_scalp
from positions import POS_10_5
from scipy import signal
def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'):
frames = np.asarray(frames)
if offset == None:
offset = np.max(np.std(frame... | Java |
package main
import (
"encoding/json"
"fmt"
"log"
"time"
"github.com/boltdb/bolt"
)
type Entry struct {
Id string `json:"id"`
Url string `json:"url"`
Subreddit string `json:"subreddit"`
}
//InitDB initializes the BoltDB instance and loads in the database file.
func InitDB() {
... | Java |
@import url(http://fonts.useso.com/css?family=Raleway:200,500,700,800);
@font-face {
font-family: 'icomoon';
src:url('../fonts/icomoon.eot?yrquyl');
src:url('../fonts/icomoon.eot?#iefixyrquyl') format('embedded-opentype'),
url('../fonts/icomoon.woff?yrquyl') format('woff'),
url('../fonts/icomoon.ttf?yrquyl... | Java |
package eu.monnetproject.sim.entity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import eu.monnetproject.util.Logger;
import eu.monnetproject.label.LabelExtractor;
import eu.monnetproject.label.LabelEx... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="all,follow">
<meta name="googlebot" content="index,follow,snippet,archive">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Universal - All In 1 Template</title>
<meta name=... | Java |
/*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@generated from zgels_gpu.cpp normal z -> d, Fri Jul 18 17:34:16 2014
*/
#include "common_magma.h"
/**
Purpose
-------
Solves t... | Java |
<?php
use AudioDidact\GlobalFunctions;
/**
* Returns Pug rendered HTML for the User page, either view or edit
*
* @param $webID string webID of the user's page to be rendered
* @param $edit boolean true if the user is logged in and viewing their own page
* @param null|string $verifyEmail null or string if the us... | Java |
{% for reply in replies %}
<div class="cell reply from_{{ reply.member_num }}">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="48" valign="top">
<a href="/member/{{ reply.created_by }}">{{ reply.member|avatar:"normal"|safe }}</a>
</td... | Java |
/*!
* \file dcxtab.cpp
* \brief blah
*
* blah
*
* \author David Legault ( clickhere at scriptsdb dot org )
* \version 1.0
*
* \b Revisions
*
* © ScriptsDB.org - 2006
*/
#include "defines.h"
#include "Classes/dcxtab.h"
#include "Classes/dcxdialog.h"
/*!
* \brief Constructor
*
* \param... | Java |
package uk.ac.soton.ecs.comp3204.l3;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagLayout;
import java.io.IOException;
import javax.swing.JPanel;
import org.openimaj.content.slideshow.Slide;
import org.openimaj.content.slideshow.SlideshowApplication;
import ... | Java |
package com.salesforce.dva.argus.service.mq.kafka;
import com.fasterxml.jackson.databind.JavaType;
import java.io.Serializable;
import java.util.List;
public interface Consumer {
<T extends Serializable> List<T> dequeueFromBuffer(String topic, Class<T> type, int timeout, int limit);
<T extends Serializable>... | Java |
# -*- encoding: binary -*-
require "./test/exec"
require "tmpdir"
require "fileutils"
require "net/http"
module TestFreshSetup
include TestExec
def setup
setup_mogilefs
end
def setup_mogilefs(plugins = nil)
@test_host = "127.0.0.1"
setup_mogstored
@tracker = TCPServer.new(@test_host, 0)
@... | Java |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('setlist', '0012_remove_show_leg'),
]
operations = [
migrations.CreateModel(
name='Show2',
fields=[
... | Java |
{-# Language OverloadedStrings #-}
module XMonad.Actions.XHints.Render where
import XMonad hiding (drawString)
import Data.Text (Text)
import qualified Data.Text as T
import Foreign.C
import Graphics.X11.Xlib.Types
import qualified Data.Text.Foreign as TF
import qualified Data.ByteString as BS
import Codec.Binary.UTF8... | Java |
// An object that encapsulates everything we need to run a 'find'
// operation, encoded in the REST API format.
var Parse = require('parse/node').Parse;
import { default as FilesController } from './Controllers/FilesController';
// restOptions can include:
// skip
// limit
// order
// count
// include
// ... | Java |
<?php
use yii\bootstrap\Html;
/**
* @var $this \yii\web\View
* @var $content string
*/
?>
<?php $this->beginContent('@app/views/layouts/base.php') ?>
<div class="wrap">
<?= $this->render('//shared/admin_panel') ?>
<?= $this->render('//shared/header') ?>
<a class="logo" href="/">
... | Java |
<h1 id="title_header"></h1>
<div id="calendar" class="{{ css_classes }}">
</div>
| Java |
package com.github.paulp.optional
import scala.collection._
import mutable.HashSet
case class Options(
options: Map[String, String],
args: List[String],
rawArgs: List[String]
)
case class ArgInfo(short: Char, long: String, isSwitch: Boolean, help: String)
object Options
{
private val ShortOption = """-(\w)""... | Java |
/*-
* Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
* Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... | Java |
{% load applicationcontent_tags i18n %}
{% include "base/widget/_base_begin.html" %}
<div id="{{ widget.fe_identifier }}" class="{{ widget.render_base_classes }}" {% if widget.enter_effect_style != 'disabled' %}data-aos="{{ widget.enter_effect_style }}"{% endif %}{% if widget.enter_effect_duration %}data-aos-duration... | Java |
<?php
/*=========================================================================
MIDAS Server
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved.
69328 Lyon, FRANCE.
See Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILIT... | Java |
package eu.monnetproject.util;
import java.util.*;
/**
* Utility function to syntactically sugar properties for OSGi.
* This allows you to create a property map as follows
* <code>Props.prop("key1","value1")</code><br/>
* <code> .prop("key2","value2")</code>
*/
public final class Props {
public static Props... | Java |
#!/usr/bin/env python
import sys
from os.path import *
import os
from pyflann import *
from copy import copy
from numpy import *
from numpy.random import *
import unittest
class Test_PyFLANN_nn(unittest.TestCase):
def setUp(self):
self.nn = FLANN(log_level="warning")
#################################... | Java |
# -*- coding: utf-8 -*-
from collections import OrderedDict
import locale
from optparse import make_option
from verify.management.commands import VerifyBaseCommand
from verify.models import *
from verify.politici_models import *
from django.db.models import Q, Count
__author__ = 'guglielmo'
class Command(VerifyBase... | Java |
#ifndef __KIDS_CONFIG_H_
#define __KIDS_CONFIG_H_
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#define NLIMIT_NORMAL 0
#define NLIMIT_NETWORKSTORE 1
#define NLIMIT_PUBSUB 2
struct LimitConfig {
int hard_limit_bytes;
int soft_limit_bytes;
int soft_limit_seconds;
};
struct StoreConfi... | Java |
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2016. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | Java |
package sdp
func (s Session) appendAttributes(attrs Attributes) Session {
for _, v := range attrs {
if v.Value == blank {
s = s.AddFlag(v.Key)
} else {
s = s.AddAttribute(v.Key, v.Value)
}
}
return s
}
// Append encodes message to Session and returns result.
//
// See RFC 4566 Section 5.
func (m *Messa... | Java |
<?php
if(!class_exists('AbstractQueuedJob')) return;
/**
* A Job for running a external link check for published pages
*
*/
class CheckLinksJob extends AbstractQueuedJob implements QueuedJob {
public function getTitle() {
return _t('CheckLinksJob.TITLE', 'Checking for broken links');
}
public function getJ... | Java |
// Copyright 2010-2016, Google 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... | Java |
#!/usr/bin/env python
from distutils.core import setup
setup(name='django-modeltranslation',
version='0.4.0-alpha1',
description='Translates Django models using a registration approach.',
long_description='The modeltranslation application can be used to '
'translate dynamic con... | Java |
<div class="row">
<div class="col-xs-12">
<div class="box">
<?= \yii\grid\GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
'idadvert',
[
'label' => 'title',
... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>DHAIR2: PatientAssociate Class Reference</title>
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
<link href="../../tabs.css" rel="stylesheet" type="text/... | 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=iso-8859-1" />
<title>Border Properties</title>
<style type="text/css">
<!--
.style1 {
... | Java |
#include "stdfx.h"
//#include "tfxparam.h"
#include "trop.h"
//===================================================================
class PremultiplyFx : public TStandardRasterFx {
FX_PLUGIN_DECLARATION(PremultiplyFx)
TRasterFxPort m_input;
public:
PremultiplyFx() { addInputPort("Source", m_input); }
~Premul... | Java |
/* $NetBSD: proc.h,v 1.8 1996/11/25 22:09:11 gwr Exp $ */
/*
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1.... | Java |
// Copyright 2020 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 "ash/components/phonehub/multidevice_setup_state_updater.h"
#include "ash/components/phonehub/pref_names.h"
#include "ash/components/phonehub/ut... | Java |
/*
* jQuery File Upload Plugin JS Example 8.9.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global $, window */
$(function () {
'use strict';
// Initializ... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
<title>DataTables example</titl... | Java |
module Spree
module Admin
class AuthorsController < ResourceController
def index
params[:q] ||= {}
params[:q][:deleted_at_null] ||= "1"
@search = @authors.ransack(params[:q])
@authors = @search.result.page(params[:page]).per(Spree::Config[:admin_products_per_page])
@... | Java |
/*
* Copyright (c) 2006, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* ceil(x)
* Return x rounded toward -inf to integral value
* Method:
* Bit twiddling.
* Exception:
* Inexact flag raised if x not equal to ceil(x).
*/
#... | Java |
.aui-base {
} | Java |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | Java |
<?php namespace xp\runtime;
/**
* Wrap code passed in from the command line.
*
* @see https://wiki.php.net/rfc/group_use_declarations
* @test xp://net.xp_framework.unittest.runtime.CodeTest
*/
class Code {
private $fragment, $imports;
/**
* Creates a new code instance
*
* @param string $input
... | Java |
#!/usr/bin/python
# Copyright (c) 2009, Purdue University
# 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 notice, this
# list ... | Java |
#!/usr/bin/env python
import sys
import hyperdex.client
from hyperdex.client import LessEqual, GreaterEqual, Range, Regex, LengthEquals, LengthLessEqual, LengthGreaterEqual
c = hyperdex.client.Client(sys.argv[1], int(sys.argv[2]))
def to_objectset(xs):
return set([frozenset(x.items()) for x in xs])
assert c.put('kv... | Java |
<?php
namespace yiicms\components\core;
# Websun template parser, version 0.1.80
# http://webew.ru/articles/3609.webew
/*
0.1.80 - allowed_extensions option implemented
0.1.71 - replaced too new array declaration [] with array() - keeping PHP 5.3 compatibility
0.1.70 - added :^N and :^i
0.1.60 - __construct() a... | Java |
/* Since the td elements are the ones that actually get colored, don't bother
with the row itself. */
.HighlightMe td {
background-color: hsl(36, 100%, 75%) !important;
}
/* Turn the transparent boxes white */
.HighlightMe .notstarted {
background-color: white;
}
| Java |
/*!
* speedt
* Copyright(c) 2015 speedt <13837186852@qq.com>
* BSD 3 Licensed
*/
'use strict';
var utils = require('speedt-utils');
var Service = function(app){
var self = this;
// TODO
self.serverId = app.getServerId();
self.connCount = 0;
self.loginedCount = 0;
self.logined = {};
};
module.exports = Serv... | Java |
//===----------------------------------------------------------------------===//
//
// 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 |
/*=========================================================================
Program: Advanced Normalization Tools
Module: $RCSfile: itkANTSImageRegistrationOptimizer.h,v $
Language: C++
Date: $Date: 2009/04/22 01:00:17 $
Version: $Revision: 1.44 $
Copyright (c) ConsortiumOfANTS. All rights reserved... | Java |
#!/bin/bash
# AUTHOR: Léo Perrin <leoperrin@picarresursix.fr>
# Time-stamp: <2013-04-16 22:35:22 leo>
# Append a pdf to the end of another.
if (( $# < 1 ))
then
echo "Usage:"
echo " concat-pdf.sh 1.pdf 2.pdf"
echo "Creates a pdf called 1-2.pdf made of the concatenation of the"\
"content of 1.pd... | Java |
# intelengine
## Introduction
intelengine aims to be an information gathering and exploitation architecture,
it is based on the use of transforms, that convert one data type into
another. For instance, a simple transform would be obtaining a list of
domains from an IP address or a location history from a twitter nick... | Java |
module Watir
module RowContainer
# Returns a row in the table
# * index - the index of the row
def [](index)
assert_exists
TableRow.new(self, :ole_object, @o.rows.item(index))
end
def strings
assert_exists
rows_memo = []
@o.rows.each do |row|
c... | Java |
<?php
namespace PragmaRX\Health\Checkers;
use GuzzleHttp\Client as Guzzle;
use Illuminate\Support\Str;
use PragmaRX\Health\Support\LocallyProtected;
use PragmaRX\Health\Support\Result;
class ServerVars extends Base
{
protected $response;
protected $errors;
/**
* Check resource.
*
* @retur... | Java |
<aside class="main-sidebar">
<section class="sidebar">
<?= dmstr\widgets\Menu::widget(
[
'options' => ['class' => 'sidebar-menu'],
'items' => [
['label' => 'Menu', 'options' => ['class' => 'header']],
['label' => 'Home', '... | Java |
// Copyright 2019 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 "chrome/browser/optimization_guide/optimization_guide_web_contents_observer.h"
#include "chrome/browser/optimization_guide/chrome_hints_manager.... | Java |
// GLFW Engine.
// -----------------------------------------------------------------------------
// Copyright (C) 2011, ZEUS project (See authors)
//
// This program is open source and distributed under the New BSD License. See
// license for more detail.
// -------------------------------------------------------------... | Java |
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <fo... | Java |
#include "farversion.hpp"
#define PLUGIN_BUILD 37
#define PLUGIN_DESC L"File names case conversion for Far Manager"
#define PLUGIN_NAME L"FileCase"
#define PLUGIN_FILENAME L"FileCase.dll"
#define PLUGIN_AUTHOR FARCOMPANYNAME
#define PLUGIN_VERSION MAKEFARVERSION(FARMANAGERVERSION_MAJOR,FARMANAGERVERSION_MINOR,FARMANAG... | Java |
// Copyright (c) 2013 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 "chrome/browser/renderer_host/pepper/device_id_fetcher.h"
#include "base/file_util.h"
#include "base/prefs/pref_service.h"
#include "base/st... | Java |
exports.dbname = "lrdata";
exports.dbuser = "lrdata";
exports.dbpassword = "test";
exports.lfmApiKey = 'c0db7c8bfb98655ab25aa2e959fdcc68';
exports.lfmApiSecret = 'aff4890d7cb9492bc72250abbeffc3e1';
exports.tagAgeBeforeRefresh = 14; // In days
exports.tagFetchFrequency = 1000; // In milliseconds
| Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.