code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `wl_region` struct in crate `wayland_client`.">
<meta name=... | Java |
package softlayer
import (
"github.com/hashicorp/terraform/helper/resource"
"testing"
)
func TestAccSoftLayerLbLocalShared_Basic(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
resource.TestStep{
Con... | Java |
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
static const int32_t EXT_CONST = 0;
struct ExtType {
uint32_t data;
};
extern "C" {
void consume_ext(ExtType _ext);
} // extern "C"
| Java |
package proxmox
import (
"context"
"github.com/hashicorp/packer-plugin-sdk/multistep"
)
// stepSuccess runs after the full build has succeeded.
//
// It sets the success state, which ensures cleanup does not remove the finished template
type stepSuccess struct{}
func (s *stepSuccess) Run(ctx context.Context, stat... | Java |
// Our current version of MySQL doesn't support `WITH` statements. We're only
// running this a few times, so no need to get fancy. It'll get cached anyway.
const pilotId = `(SELECT id FROM challenges WHERE url_token='pilot')`;
export const up = async function(db: any): Promise<any> {
return db.runSql(`
/* We're... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `ELOOP` constant in crate `libc`.">
<meta name="keywords" c... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `close` fn in crate `libc`.">
<meta name="keywords" content... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `TAG_TWO_B` constant in crate `bincode`.">
<meta name="keyw... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `parse_declared` fn in crate `style`.">
<meta name="keyword... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `GetBooleanv` mod in crate `gleam`.">
<meta name="keywords"... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `GenTextures` fn in crate `servo`.">
<meta name="keywords" ... | Java |
package org.openlca.app.collaboration.navigation.actions;
import java.util.List;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.openlca.app.M;
import org.openlca.app.collaboration.dialogs.SelectCommitDialog;
import org.openlca.app.collaboration.views.CompareView;... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `BLUE` constant in crate `gleam`.">
<meta name="keywords" c... | Java |
<!-- Activity serviceProfessionalServiceEditor -->
<div data-activity="serviceProfessionalServiceEditor"class="Boxes-sm animated">
<app-inline-user-menu data-bind="visible: !isInOnboarding()"></app-inline-user-menu>
<app-onboarding-menu data-bind="visible: isInOnboarding"></app-onboarding-menu>
<div class="... | Java |
/* Copyright (C) 2015, Hsiang Kao (e0e1e) <0xe0e1e@gmail.com>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <openssl/evp.h>
#include "highway/encrypt... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html data-context="Build Apps" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>Update Control API - Legato Docs</title>
<me... | Java |
import React, { Fragment } from 'react';
import { compose, graphql } from 'react-apollo';
import { set } from 'react-redux-values';
import ReduxForm from 'declarative-redux-form';
import { Row, Col } from 'joyent-react-styled-flexboxgrid';
import { Margin } from 'styled-components-spacing';
import { change } from 'redu... | Java |
package main.origo.core.actions;
import main.origo.core.event.NodeContext;
import play.mvc.Action;
import play.mvc.Http;
import play.mvc.Result;
import play.mvc.With;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotatio... | Java |
package zyx.game.components.world.characters;
import java.util.ArrayList;
import org.lwjgl.util.vector.Matrix4f;
import zyx.game.behavior.characters.CharacterAnimationBehavior;
import zyx.game.behavior.player.OnlinePositionInterpolator;
import zyx.game.components.AnimatedMesh;
import zyx.game.components.GameObject;
im... | Java |
/*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "CarbonEngine/Common.h"
#include "CarbonEngine/Core/CoreEvents.h"
#include "CarbonEngine/Core/EventManag... | Java |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use crate::dom::bindings::codegen::Bindings::CSSGroupingRuleBinding::CSSGroupingRuleMethods;
use crate::dom::bindi... | Java |
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright (C) 2010, 2011, 2012, 2013 Pyravlos Team
*
* http://www.strabon.di.uoa.gr/
*/
package org.ope... | Java |
#!/bin/bash
# Automatic build script
# Uses zed and zip command
build_dir="./build"
project="mpdq"
version_file="./src/util.c"
bundled_files="README.md LICENSE"
function build_failed
{
echo "Make returned errors, aborting..."
sed -i -e 's/$version/@VERSION@/g' "$version_file"
exit
}
if test -d $build_dir; then
e... | Java |
CREATE ROLE myautographdbuser;
ALTER ROLE myautographdbuser WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN PASSWORD 'myautographdbpassword';
CREATE TABLE endentities(
id SERIAL PRIMARY KEY,
label VARCHAR NOT NULL,
hsm_handle BIGINT NOT NULL,
signer_id VARCHAR NO... | Java |
package terraform
import (
"bytes"
"errors"
"fmt"
"os"
"reflect"
"sort"
"strings"
"sync"
"testing"
"github.com/davecgh/go-spew/spew"
"github.com/google/go-cmp/cmp"
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/addrs"
"github.com/hashicorp/terraform/internal/configs/configsche... | Java |
// ======================================================================
using System;
using System.Collections.Generic;
using System.Reflection;
using CommandLine;
using CommandLine.Text;
namespace MangaRack.Internals {
/// <summary>
/// Represents a collection of options.
/// </summary>
class Option... | Java |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("placeholder","pt",{title:"Propriedades dos marcadores",toolbar:"Símbolo",name:"Nome do marcador",invalidName:"O marcador não pode estar em branco e n... | Java |
#include <minizinc/solvers/gecode_solverfactory.hh>
#include <minizinc/solvers/gecode_solverinstance.hh>
namespace MiniZinc {
namespace {
void get_wrapper() { static GecodeSolverFactory _gecode_solverfactory; }
} // namespace
GecodeSolverFactoryInitialiser::GecodeSolverFactoryInitialiser() { get_wrapper(); }
} // na... | Java |
UPDATE t2 SET b=271822 WHERE a=1;
UPDATE t2 SET b=28304 WHERE a=2;
UPDATE t2 SET b=221523 WHERE a=3;
UPDATE t2 SET b=146116 WHERE a=4;
UPDATE t2 SET b=282079 WHERE a=5;
UPDATE t2 SET b=406118 WHERE a=6;
UPDATE t2 SET b=139432 WHERE a=7;
UPDATE t2 SET b=447043 WHERE a=8;
UPDATE t2 SET b=457402 WHERE a=9;
UPDATE t2 SET b... | Java |
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
... | Java |
---
layout: "aws"
page_title: "AWS: aws_storagegateway_upload_buffer"
sidebar_current: "docs-aws-resource-storagegateway-upload-buffer"
description: |-
Manages an AWS Storage Gateway upload buffer
---
# aws_storagegateway_upload_buffer
Manages an AWS Storage Gateway upload buffer.
~> **NOTE:** The Storage Gateway ... | Java |
#------------------------------------------------------------------------------
# File: MakerNotes.pm
#
# Description: Read and write EXIF maker notes
#
# Revisions: 11/11/2004 - P. Harvey Created
#------------------------------------------------------------------------------
package Image::ExifTool::Maker... | Java |
# -*- coding: utf-8 -*-
# © 2009 Pexego/Comunitea
# © 2011-2012 Iker Coranti (www.avanzosc.es)
# © 2014 Juanjo Algaz (gutierrezweb.es)
# © 2014-2016 Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0).
{
"name": "Account balance reporting engine",
"version": "8.0.1.2.0",
"auth... | Java |
/*
Copyright (C) 1999 Claude SIMON (http://q37.info/contact/).
This file is part of the Epeios framework.
The Epeios framework is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
... | Java |
/*
* Tanaguru - Automated webpage assessment
* Copyright (C) 2008-2015 Tanaguru.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at you... | Java |
<?php
namespace UpgradeDigital;
/**
* Resource tag count model represents a count of resources grouped by a
* particular tag set e.g. room type.
* PHP version 5
*
* @package Client
* @author Damien Allison <damien@upgrade-digital.com>
* @copyright 2015 Upgrade Digital
* @license https://github.com/Upgrade-... | Java |
# -*- coding:utf-8 -*-
#
#
# Copyright (C) 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, eit... | Java |
/*
* Copyright (C) 2000 - 2021 Silverpeas
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* As a spec... | Java |
# ActivitySim
# Copyright (C) 2014-2015 Synthicity, LLC
# See full license in LICENSE.txt.
import os.path
import numpy as np
import pandas as pd
import pandas.util.testing as pdt
import pytest
from ..activitysim import eval_variables
from .. import mnl
# this is lifted straight from urbansim's test_mnl.py
@pytest.... | Java |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2008 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the addition of ... | Java |
<?php
class order_CancelOrderAction extends f_action_BaseJSONAction
{
/**
* @param Context $context
* @param Request $request
*/
public function _execute($context, $request)
{
$labels = array("");
foreach ($this->getDocumentInstanceArrayFromRequest($request) as $order)
{
if ($order instanceof order_pe... | Java |
#!/bin/sh
echo "Source Statistics:"
wc `find . -regextype posix-basic -iregex '.*\.\(scm\|h\|c\|y\|l\)' | grep -v 'test\/test_eyeball\|CMake\|build\|vendor'`
echo
echo "Commit Count: " `git log | grep '^commit' | wc -l`
echo
| Java |
//
// KPFairPlayAssetResourceLoaderHandler.h
// KALTURAPlayerSDK
//
// Created by Noam Tamim on 09/08/2016.
// Copyright © 2016 Kaltura. All rights reserved.
//
@import AVFoundation;
@interface KPFairPlayAssetResourceLoaderHandler : NSObject <AVAssetResourceLoaderDelegate>
@property (nonatomic, copy) NSString* li... | Java |
/*
* Copyright (C) 2010 Romain Reuillon
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progra... | Java |
DELETE FROM `weenie` WHERE `class_Id` = 42123;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (42123, 'ace42123-warden', 10, '2019-02-10 00:00:00') /* Creature */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (42123, 1, 16) /* ItemType - Creature... | Java |
DELETE FROM `weenie` WHERE `class_Id` = 8946;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (8946, 'scrolllightningstreak6', 34, '2019-02-10 00:00:00') /* Scroll */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (8946, 1, 8192) /* ItemType - Writab... | Java |
DELETE FROM `landblock_instance` WHERE `landblock` = 0xAEC6;
INSERT INTO `landblock_instance` (`guid`, `weenie_Class_Id`, `obj_Cell_Id`, `origin_X`, `origin_Y`, `origin_Z`, `angles_W`, `angles_X`, `angles_Y`, `angles_Z`, `is_Link_Child`, `last_Modified`)
VALUES (0x7AEC6000, 412, 0xAEC60039, 176.253, 15.7705, 118.082... | Java |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-2014 OpenERP (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | Java |
package lila.game
import scala.concurrent.duration._
import lila.db.dsl._
import lila.memo.AsyncCache
import lila.user.UserRepo
final class CrosstableApi(
coll: Coll,
gameColl: Coll,
system: akka.actor.ActorSystem) {
import Crosstable.Result
private val maxGames = 20
def apply(game: Game): Fu[Op... | Java |
package io.fidelcoria.ayfmap.controller;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Component;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
@Component
public class MainController {
@FXML... | Java |
$(function() {
function FirmwareUpdaterViewModel(parameters) {
var self = this;
self.settingsViewModel = parameters[0];
self.loginState = parameters[1];
self.connection = parameters[2];
self.printerState = parameters[3];
self.configPathAvrdude = ko.observable();
... | Java |
/*
************************************************************************
******************* CANADIAN ASTRONOMY DATA CENTRE *******************
************** CENTRE CANADIEN DE DONNÉES ASTRONOMIQUES **************
*
* (c) 2009. (c) 2009.
* Government of Canada ... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Keyword noodle soup</title>
<link rel="stylesheet" href="show.css">
</head>
<body>
<div id="app">
<h1>Loading…</h1>
</div>
<script src="underscore-min.js"></script>
<script src="d3.v3.min.js" charset="utf-8"></script>
... | Java |
# -*- coding: utf-8 -*-
import io
import os
from dlstats.fetchers.bea import BEA as Fetcher
import httpretty
from dlstats.tests.base import RESOURCES_DIR as BASE_RESOURCES_DIR
from dlstats.tests.fetchers.base import BaseFetcherTestCase
import unittest
from unittest import mock
RESOURCES_DIR = os.path.abspath(os.p... | Java |
<!DOCTYPE html>
<html lang="en"
>
<head>
<title>第14課 - forRange with Lists forRange與列表 - 2017Spring 協同產品設計實習 (虎尾科大MDE)</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-widt... | Java |
# frozen_string_literal: true
require 'spec_helper'
describe 'SharedStrings' do
it 'custom_shared_strings_name.xlsx' do
xlsx = OoxmlParser::Parser.parse('spec/workbook/shared_strings/custom_shared_strings_name.xlsx')
expect(xlsx.shared_strings_table.count).to eq(1)
end
end
| Java |
exports.main = function(env){
var capsule = env.capsule;
var mtests = capsule.tests.modules;
var thsocket = capsule.tests.modules.transport.http.socket_srv;
// mtests.http_responder.test(capsule);
// thsocket.test({ 'url' : 'http://localhost:8810/sockethh.js'}, capsule);
var thttp ... | Java |
/*******************************************************************************
* This file is part of Termitaria, a project management tool
* Copyright (C) 2008-2013 CodeSphere S.R.L., www.codesphere.ro
*
* Termitaria is free software; you can redistribute it and/or
* modify it under the terms of th... | Java |
--[[
catfact.lua
Returns cat facts.
Based on a plugin by matthewhesketh.
Copyright 2016 topkecleon <drew@otou.to>
This code is licensed under the GNU AGPLv3. See /LICENSE for details.
]]--
local JSON = require('dkjson')
local HTTP = require('socket.http')
local utilities = require('otouto.utiliti... | Java |
<?php
include_once '../../../../../../lib/defaults.php';
include_once '../fns/place_point_method_page.php';
include_once '../../../../../fns/ApiDoc/trueResult.php';
place_point_method_page('delete', [
[
'name' => 'id',
'description' => 'The ID of the point to delete.',
],
], ApiDoc\trueResult(... | Java |
package de.dvdb.domain.model.social;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "dvdb2_fbsession")
p... | Java |
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Format/SLD/v1.js
* @requires O... | Java |
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | Java |
# -*- coding: utf-8 -*-
import os
import shutil
import sys
import datetime
from invoke import task
from invoke.util import cd
from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer
CONFIG = {
# Local path configuration (can be absolute or relative to tasks.py)
'deploy_path': '..',
# Githu... | Java |
<?php
/**
* This file is part of the Checkbook NYC financial transparency software.
*
* Copyright (C) 2012, 2013 New York City
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either v... | Java |
/*
* _Bullseye.cpp
*
* Created on: Aug 21, 2015
* Author: yankai
*/
#include "_Bullseye.h"
#ifdef USE_OPENCV
#ifdef USE_CUDA
namespace kai
{
_Bullseye::_Bullseye()
{
m_abs = 90;
m_scale1 = 0.25;
m_scale2 = 0.0625;
m_thr1 = 200;
m_thr2 = 255;
}
_Bullseye::~_Bullseye()
{
}
bool _Bullseye::init(void*... | Java |
DELETE FROM `weenie` WHERE `class_Id` = 35548;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (35548, 'ace35548-assassinsdagger', 6, '2019-02-10 00:00:00') /* MeleeWeapon */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (35548, 1, 1) /* ItemType... | Java |
<?php
/**
* SowerPHP
* Copyright (C) SowerPHP (http://sowerphp.org)
*
* Este programa es software libre: usted puede redistribuirlo y/o
* modificarlo bajo los términos de la Licencia Pública General Affero de GNU
* publicada por la Fundación para el Software Libre, ya sea la versión
* 3 de la Licencia, o (a su ... | Java |
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... | Java |
#!/usr/bin/env python
from __future__ import print_function, division
import multiprocessing
import os
import csv
import datetime
import logging
from datetime import datetime
import argparse
import shutil
import math
from glob import glob
import gzip
from shi7 import __version__
from shi7.shi7 import TRUE_FALSE_DICT, ... | Java |
package cn.dlb.bim.ifc.engine.jvm;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactor... | Java |
<div class="modal__header modal__header--flex">
<h3 class="modal__heading">{{ :: 'Monitoring settings' | translate }} <span ng-if="settings.desk" translate>for "{{settings.desk.name}}" Desk</span></h3>
<a href="" class="modal__close icn-btn" sd-hotkey="esc" ng-click="cancel()"><i class="icon-close-small"></i></... | Java |
'use strict';
angular.module('GO.Modules.GroupOffice.Contacts').factory('GO.Modules.GroupOffice.Contacts.Model.ContactGroup', [
'GO.Core.Factories.Data.Model',
function (Model) {
var ContactGroup = GO.extend(Model, function () {
//rename function because this record has a delete attribute on the server
this.... | Java |
<?php
namespace WEEEOpen\TaralloTest\Database;
use PHPUnit\Framework\TestCase;
use WEEEOpen\Tarallo\Database\Database;
use WEEEOpen\Tarallo\Item;
abstract class DatabaseTest extends TestCase {
protected $db = null;
// this cannot be done, PLAIN AND SIMPLE. Even though it comes straight from an example inside docu... | Java |
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: OpenDrive Ltda
# Copyright (c) 2013 Opendrive Ltda
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# cons... | Java |
# Rule 1.4.5
## Summary
This test consists in detecting captcha embedded images and thus defining the applicability of the test.
Human check will be then needed to determine whether the alternative is pertinent.
## Business description
### Criterion
[1.4](http://references.modernisation.gouv.fr/referentiel-techni... | Java |
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using SSCMS.Dto;
using SSCMS.Utils;
namespace SSCMS.Web.Controllers.Admin.Common.Form
{
public partial class LayerImageUploadController
{
[HttpGet, Route(Route)]
public async Task<ActionResult<Options>> Get([FromQuery] SiteRequest r... | Java |
(function() {
'use strict';
var getModulesList = function(modules) {
return modules.map(function(moduleName) {
return {name: moduleName};
});
};
var jsOptimize = process.env.REQUIRE_BUILD_PROFILE_OPTIMIZE !== undefined ?
process.env.REQUIRE_BUILD_PROFILE_OPTIMIZE : ... | Java |
import React from 'react'
import {intlEnzyme} from 'tocco-test-util'
import MenuChildrenWrapper from './MenuChildrenWrapper'
import {StyledMenuChildrenWrapper} from './StyledComponents'
describe('admin', () => {
describe('components', () => {
describe('Navigation', () => {
describe('menuType', () => {
... | Java |
# -*- coding: utf-8 -*-
import time
from datetime import timedelta
class CookieJar:
def __init__(self, pluginname, account=None):
self.cookies = {}
self.plugin = pluginname
self.account = account
def add_cookies(self, clist):
for c in clist:
name = c.split("\t")[5... | Java |
/**
* vinimay
* Vinimay is a decentralised social network focused on giving back control of its data to the user
*
* OpenAPI spec version: 0.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually... | Java |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message ... | Java |
"""
Test scenarios for the review xblock.
"""
import ddt
import unittest
from django.conf import settings
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from nose.plugins.attrib import attr
from lms.djangoapps.courseware.tests.factories import GlobalStaffFactory
from lms.djan... | Java |
/****************************************************************
* *
* Copyright 2001, 2009 Fidelity Information Services, Inc *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
*... | Java |
<div id="page" style="display: none;" data-bind="visible: true, css: { withToolbox: $root.showToolbox, withPreviewFrame: showPreviewFrame }">
<div id="main-edit-area" data-bind="click: function(obj, evt) { $root.selectBlock(null); return true; }, clickBubble: false">
<!-- ko withProperties: { templateMode: 'wysiw... | Java |
#
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the ... | Java |
/*
* opencog/embodiment/Control/Procedure/ComboInterpreter.h
*
* Copyright (C) 2002-2009 Novamente LLC
* All Rights Reserved
* Author(s): Novamente team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by th... | Java |
<?php
/**
* Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved.
*
* AFI-OPAC 2.0 is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the ... | Java |
class WorkAssignmentPlugin < Noosfero::Plugin
def self.plugin_name
"Work Assignment"
end
def self.plugin_description
_("New kind of content for organizations.")
end
def self.can_download_submission?(user, submission)
return unless submission
submission.published? || (user && (submission.aut... | Java |
<?php namespace OniiChan\Domain;
interface Entity
{
/**
* Return an Entity identifier
*
* @return Identifier
*/
public function id();
}
| Java |
/*
* Copyright 2015 Erwin Müller <erwin.mueller@deventm.org>
*
* This file is part of sscontrol-httpd-yourls.
*
* sscontrol-httpd-yourls is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by the
* Free Software Foundation, either ver... | Java |
/**
******************************************************************************
* @file USB_Host/DynamicSwitch_Standalon/Inc/lcd_log_conf.h
* @author MCD Application Team
* @version V1.0.3
* @date 29-January-2016
* @brief LCD Log configuration file.
*************************************... | Java |
// OCC_2dView.h: interface for the OCC_2dView class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_OCC_2dVIEW_H__2E048CC9_38F9_11D7_8611_0060B0EE281E__INCLUDED_)
#define AFX_OCC_2dVIEW_H__2E048CC9_38F9_11D7_8611_0060B0EE281E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#end... | Java |
Title: 40423119_W17作業
Date: 2017-06-15 11:17
Category: HomeWork
Tags: 期末協同查驗與自評
Author: 40423119
1.solvespace 檔案推送
2.solvespace 2D 繪圖 程式碼
3.子模組建立與運用
4.Solvespace 近端零組件繪圖
5.Solvespace 零件轉入 V-rep
6.期末分組專題
7.上傳 Fossil SCM 倉儲
<!-- PELICAN_END_SUMMARY -->
#1. solvespace 檔案推送
<iframe width="560" height="315" src="ht... | Java |
/*
* This file is part of ELKI:
* Environment for Developing KDD-Applications Supported by Index-Structures
*
* Copyright (C) 2019
* ELKI Development Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* t... | Java |
Brimir::Application.routes.draw do
devise_for :users, controllers: { omniauth_callbacks: 'omniauth' }
resources :users
namespace :tickets do
resource :deleted, only: :destroy, controller: :deleted
resource :selected, only: :update, controller: :selected
end
resources :tickets, only: [:index, :show... | Java |
#include <stddef.h>
#include "logger/logger.h"
#include "wrappers.h"
using namespace drivers::i2c;
I2CResult I2CFallbackBus::Write(const I2CAddress address, gsl::span<const uint8_t> inData)
{
const I2CResult systemBusResult = this->_innerBuses.Bus.Write(address, inData);
if (systemBusResult == I2CR... | Java |
<?php
/**
* Soap Handler Class
*
*
* @package Np_Soap
* @subpackage Np_Soap
* @copyright Copyright (C) 2012-2013 S.D.O.C. LTD. All rights reserved.
* @license GNU Affero Public License version 3 or later; see LICENSE.txt
*/
/**
* Np_Db Class Definition
*
* @package Np_Soa... | Java |
DELETE FROM `weenie` WHERE `class_Id` = 20478;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (20478, 'scrollfireprotectionself7', 34, '2019-02-10 00:00:00') /* Scroll */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (20478, 1, 8192) /* ItemType - ... | Java |
# -*- coding: utf-8 -*-
# © 2014 Elico Corp (https://www.elico-corp.com)
# Licence AGPL-3.0 or later(http://www.gnu.org/licenses/agpl.html)
import time
from datetime import datetime
import openerp.addons.decimal_precision as dp
from openerp.osv import fields, osv
from openerp.tools import DEFAULT_SERVER_DATETIME_FOR... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.