code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
#ifndef TAI_H
#define TAI_H
#ifdef _MSC_VER
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
#include <inttypes.h> /* more portable than stdint.h */
#endif
#ifdef _MSC_VER
#define LL(x) x ## i64
#define ULL(x) x ## ui64
#else
#define LL(x) x ## LL
#define ULL(x) x ## ULL
#endif
struct tai {
ui... | edechter/swipl-devel | src/libtai/tai.h | C | lgpl-2.1 | 771 |
<?php
require_once('../_include.php');
/* Make sure that the user has admin access rights. */
SimpleSAML\Utils\Auth::requireAdmin();
phpinfo();
| dialogik/simplesamlphp | www/admin/phpinfo.php | PHP | lgpl-2.1 | 147 |
/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC ... | cpritam/moose | modules/misc/include/JouleHeating.h | C | lgpl-2.1 | 1,320 |
/**
*
* Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) ... | lucee/unoffical-Lucee-no-jre | source/java/core/src/lucee/runtime/tag/GridUpdate.java | Java | lgpl-2.1 | 5,754 |
// ---------------------------------------------------------------------
//
// Copyright (C) 2000 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Pu... | pesser/dealii | tests/dofs/extract_dofs_by_component_02_mg.cc | C++ | lgpl-2.1 | 2,818 |
/*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Found... | sulabh-msft/sonarqube | server/sonar-server/src/main/java/org/sonar/server/computation/issue/ScmAccountToUserLoader.java | Java | lgpl-3.0 | 2,728 |
<div class="toolbar toolbar-{$toolbar}" role="toolbar">
{if $toolbar == "top" }
<div class="sorter-container">
<span class="amount">{if ($amount > 1)}{intl l="%nb Items" nb="{$amount}"}{else}{intl l="%nb Item" nb="{$amount}"}{/if}</span>
<span class="limiter">
<label for="li... | 40thoughts/WEB-Random-Lab.io | templates/frontOffice/randomlab/includes/toolbar.html | HTML | lgpl-3.0 | 4,610 |
<?php
/**
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/... | linuxboytoo/pocketmine | src/material/item/generic/Stick.php | PHP | lgpl-3.0 | 853 |
---
title: docker/ucp dump-certs
description: Print the public certificates used by this UCP web server
keywords: docker, ucp, cli, dump-certs
---
Print the public certificates used by this UCP web server
## Description
This command outputs the public certificates for the UCP web server running on
this node. By defa... | anweiss/docker.github.io | datacenter/ucp/2.1/reference/cli/dump-certs.md | Markdown | apache-2.0 | 853 |
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... | djoelz/azure-sdk-for-net | src/ComputeManagement/Generated/Models/VirtualMachineCreateParameters.cs | C# | apache-2.0 | 6,700 |
/*
* Copyright 2012 Amadeus s.a.s.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | fbasso/ariatemplates | src/aria/touch/ClickBuster.js | JavaScript | apache-2.0 | 2,140 |
//===--- UnownedTypeInfo.h - Supplemental API for [unowned] -----*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | kentya6/swift | lib/IRGen/UnownedTypeInfo.h | C | apache-2.0 | 1,751 |
<!---
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Licens... | AppGyver/steroids-docs | docs/en/stable/cordova/camera/parameter/cameraError.md | Markdown | apache-2.0 | 1,056 |
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | vvv1559/intellij-community | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/api/statements/expressions/path/GrIndexProperty.java | Java | apache-2.0 | 1,302 |
-------------------------------------------------------------------------------
-- cms catalog
-------------------------------------------------------------------------------
CREATE TABLE CMS_CATALOG(
ID BIGINT NOT NULL,
NAME VARCHAR(50),
CODE VARCHAR(200),
LOGO VARCHAR(200),
TYPE INT,
TEMPLA... | NJU-STP/STP | src/main/resources/dbmigrate/hsql/cms/V0_0_1__cms_catalog.sql | SQL | apache-2.0 | 621 |
package devops
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... | pweil-/origin | vendor/github.com/Azure/azure-sdk-for-go/services/preview/devops/mgmt/2019-07-01-preview/devops/pipelinetemplatedefinitions.go | GO | apache-2.0 | 6,010 |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistri... | tst-mswartz/earthenterprise | earth_enterprise/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc | C++ | apache-2.0 | 14,048 |
drop table if exists ACT_HI_IDENTITYLINK cascade; | dbmalkovsky/flowable-engine | modules/flowable-identitylink-service/src/main/resources/org/flowable/identitylink/service/db/drop/flowable.postgres.drop.identitylink.history.sql | SQL | apache-2.0 | 49 |
#include "tensorflow/core/util/work_sharder.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/lib/core/threadpool.h"
#include "tensorflow/core/platform/port.h"
#include "tensorflow/core/platform/test_benchmark.h"
#include <gtest/gtest.h>
namespace tensorflow {
namespace {
void RunSharding(in... | liyu1990/tensorflow | tensorflow/core/util/work_sharder_test.cc | C++ | apache-2.0 | 1,824 |
package org.keycloak.testsuite.sssd;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;
import javax.ws.rs.core.Response;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.jboss.arquillian.graphene.page... | keycloak/keycloak | testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/SSSDTest.java | Java | apache-2.0 | 9,493 |
//===----------------------------------------------------------------------===//
//
// Peloton
//
// tpch_workload_q1.cpp
//
// Identification: src/main/tpch/tpch_workload_q1.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===--------------------------------------... | yingjunwu/peloton | src/main/tpch/tpch_workload_q6.cpp | C++ | apache-2.0 | 5,803 |
// Boost.Range library
//
// Copyright Neil Groves 2009. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
//
// For more information, see http://www.boost.org/libs/ran... | flingone/frameworks_base_cmds_remoted | libs/boost/libs/range/test/adaptor_test/adjacent_filtered.cpp | C++ | apache-2.0 | 3,662 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis... | OmarTawfik/roslyn | src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter_Yield.cs | C# | apache-2.0 | 1,639 |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | facebook/presto | presto-hive/src/main/java/com/facebook/presto/hive/util/AsyncQueue.java | Java | apache-2.0 | 8,963 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | gingerwizard/elasticsearch | server/src/main/java/org/elasticsearch/search/aggregations/bucket/SingleBucketAggregator.java | Java | apache-2.0 | 952 |
> 编写:[jdneo](https://github.com/jdneo)
> 校对:
# 创建Stub授权器
Sync Adapter框架假定你的Sync Adapter在同步数据时,设备存储会有一个账户,服务器存储端会有登录验证。因此,框架期望你提供一个叫做授权器的组件作为你的Sync Adapter的一部分。该组件会植入Android账户及认证框架,并提供一个标准的接口来处理用户凭据,比如登录信息。
甚至,如果你的应用不使用账户,你仍然需要提供一个授权器组件。如果你不使用账户或者服务器登录,授权器所处理的信息将被忽略,所以你可以提供一个授权器组件,它包括了一个“空”的实现(译者注:也即标题中的Stub)。同时你需要提... | lord19871207/android-training-course-in-chinese | connectivity/sync-adapters/create-authenticator.md | Markdown | apache-2.0 | 9,807 |
---
layout: "docs_api"
version: "1.0.1"
versionHref: "/docs"
path: "api/utility/ionic.EventController/"
title: "ionic.EventController"
header_sub_title: "Utility in module ionic"
doc: "ionic.EventController"
docType: "utility"
---
<div class="improve-docs">
<a href='http://github.com/driftyco/ionic/tree/master/js/u... | thiagofelix/ionic-site | docs/api/utility/ionic.EventController/index.md | Markdown | apache-2.0 | 6,548 |
/*eslint curly:0, no-redeclare:0, quotes:0 */
/*jshint ignore:start */
/*eslint-disable */
global.DEFINE_MODULE('path', (function () {
'use strict'
/*eslint-enable */
const module = {};
const isWindows = require('internal').platform.substr(0, 3) === 'win';
function assertPath (path) {
if (typeof path !... | arangodb/arangodb | js/common/bootstrap/modules/path.js | JavaScript | apache-2.0 | 17,346 |
.btn-up-1{ background: #999;}
.btn-up-1 .fa{ background: #fff; color: #999;}
.navPop-1 .navPop-btn{ background: #999;}
.navPop-1 .navPop-btn .fa{ background: #fff; color: #999;}
.navPop-wrap>div a{
background: #999;
color: #fff;
} | royalwang/saivi | tpl/static/tpl/1117/css/index36.css | CSS | apache-2.0 | 241 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | milleruntime/accumulo | server/monitor/src/main/java/org/apache/accumulo/monitor/util/ParameterValidator.java | Java | apache-2.0 | 1,336 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache/drill | exec/java-exec/src/main/java/org/apache/drill/exec/store/StatisticsRecordWriter.java | Java | apache-2.0 | 1,963 |
import unittest, time, sys, random, math, getpass
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_import as h2i, h2o_util, h2o_browse as h2b, h2o_print as h2p
import h2o_summ
DO_TRY_SCIPY = False
if getpass.getuser()=='kevin' or getpass.getuser()=='jenkins':
DO_TRY_SCIPY = True
DO_MEDIAN = True
... | rowhit/h2o-2 | py/testdir_single_jvm/test_summary2_unifiles.py | Python | apache-2.0 | 10,223 |
// This file was automatically generated on Fri Jun 04 12:51:34 2010
// by libs/config/tools/generate.cpp
// Copyright John Maddock 2002-4.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.... | flingone/frameworks_base_cmds_remoted | libs/boost/libs/config/test/no_cxx11_hdr_typeindex_fail.cpp | C++ | apache-2.0 | 1,145 |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | dabaitu/presto | presto-hive/src/main/java/com/facebook/presto/hive/HiveTypeTranslator.java | Java | apache-2.0 | 7,003 |
#include <assert.h>
#include <limits.h>
#include <stdint.h>
#include "blake2.h"
#include "crypto_generichash_blake2b.h"
#include "private/common.h"
#include "private/implementations.h"
int
crypto_generichash_blake2b(unsigned char *out, size_t outlen,
const unsigned char *in, unsigned long ... | lmctv/pynacl | src/libsodium/src/libsodium/crypto_generichash/blake2b/ref/generichash_blake2b.c | C | apache-2.0 | 3,977 |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | karllessard/tensorflow | tensorflow/core/distributed_runtime/session_mgr_test.cc | C++ | apache-2.0 | 11,186 |
// Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
'jqueryui',
'base/js/utils',
], function(IPython, $, utils) {
"use strict";
var Pager = function (pager_selector, options) {
/**
* Constructor
... | radek1st/spark-notebook | public/ipython/notebook/js/pager.js | JavaScript | apache-2.0 | 5,506 |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | gemmellr/qpid-proton | cpp/examples/simple_recv.cpp | C++ | apache-2.0 | 3,197 |
package org.apache.lucene.search.grouping.term;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache ... | yintaoxue/read-open-source-code | solr-4.7.2/src/org/apache/lucene/search/grouping/term/TermDistinctValuesCollector.java | Java | apache-2.0 | 4,823 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may n... | bitmybytes/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/container/ContainerEventType.java | Java | apache-2.0 | 1,333 |
package com.cardpay.workflow.models;
import com.wicresoft.jrad.base.database.model.BusinessModel;
import com.wicresoft.jrad.base.database.model.ModelParam;
@ModelParam(table = "wf_status_info")
public class WfStatusInfo extends BusinessModel{
/**
*
*/
private static final long serialVersionUID = -9... | zhuyuanyan/PCCredit_TY | src/java/com/cardpay/workflow/models/WfStatusInfo.java | Java | apache-2.0 | 1,453 |
using Nop.Core.Domain.Catalog;
namespace Nop.Services.Catalog
{
/// <summary>
/// Copy product service
/// </summary>
public partial interface ICopyProductService
{
/// <summary>
/// Create a copy of product with all depended data
/// </summary>
/// <param name="pro... | jornfilho/nopCommerce | source/Libraries/Nop.Services/Catalog/ICopyProductService.cs | C# | apache-2.0 | 973 |
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/init.h>
#include <mach/sys_config.h>
#include <mach/gpio.h>
#include <linux/proc_fs.h>
#include "wifi_pm.h"
#define wifi_pm_msg(...) do {printk("[wifi_pm]: "__VA_ARGS__);} while(0)
struct wifi_pm_ops wifi_selec... | indashnet/InDashNet.Open.UN2000 | lichee/linux-3.4/arch/arm/mach-sun7i/rf/wifi_pm.c | C | apache-2.0 | 6,683 |
package org.wso2.developerstudio.datamapper.diagram.custom.util;
import java.util.ArrayList;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.edit.command.AddCommand;
import org.eclipse.emf.edit.command.DeleteCommand;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.ge... | nwnpallewela/developer-studio | datamapper-tool/org.wso2.developerstudio.visualdatamapper.diagram/src/org/wso2/developerstudio/datamapper/diagram/custom/util/ConfigureSplitOperatorDialog.java | Java | apache-2.0 | 4,626 |
/*-------------------------------------------------------------------------
*
* discard.h
* prototypes for discard.c.
*
*
* Copyright (c) 1996-2019, PostgreSQL Global Development Group
*
* src/include/commands/discard.h
*
*-------------------------------------------------------------------------
*/
#ifndef... | 50wu/gpdb | src/include/commands/discard.h | C | apache-2.0 | 475 |
@REM SBT launcher script
@REM
@REM Envioronment:
@REM JAVA_HOME - location of a JDK home dir (mandatory)
@REM SBT_OPTS - JVM options (optional)
@REM Configuration:
@REM sbtconfig.txt found in the SBT_HOME.
@REM ZOMG! We need delayed expansion to build up CFG_OPTS later
@setlocal enabledelayedexpansion
@echo off
... | sameeragarwal/blinkdb_dev | sbt/sbt.bat | Batchfile | apache-2.0 | 1,376 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... | cooldoger/cassandra | test/unit/org/apache/cassandra/db/commitlog/CommitLogTest.java | Java | apache-2.0 | 36,918 |
/*
* Copyright (c) 2018, Adam <Adam@sigterm.info>
* 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. Redistributions of source code must retain the above copyright notice, this
* li... | Sethtroll/runelite | runelite-script-assembler-plugin/src/main/java/net/runelite/script/IndexMojo.java | Java | bsd-2-clause | 2,911 |
cask 'busycontacts' do
version :latest
sha256 :no_check
url 'http://www.busymac.com/download/BusyContacts.zip'
name 'BusyContacts'
homepage 'http://www.busymac.com/busycontacts/index.html'
license :commercial
pkg 'BusyContacts Installer.pkg'
uninstall :pkgutil => 'com.busymac.busycontacts.pkg'
end
| mgryszko/homebrew-cask | Casks/busycontacts.rb | Ruby | bsd-2-clause | 318 |
// Copyright (c) 2016 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing projec... | GrokImageCompression/aom | third_party/libwebm/common/file_util.cc | C++ | bsd-2-clause | 2,723 |
<?php
/**
* @group Kwc_Basic_LinkTag
**/
class Kwc_Basic_LinkTag_Test extends Kwc_TestAbstract
{
public function setUp()
{
parent::setUp('Kwc_Basic_LinkTag_Root');
}
public function testTemplateVars()
{
$c = $this->_root->getComponentById(1100)->getComponent();
$vars = $c-... | yacon/koala-framework | tests/Kwc/Basic/LinkTag/Test.php | PHP | bsd-2-clause | 1,811 |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... | luctrudeau/aom | av1/encoder/x86/error_sse2.asm | Assembly | bsd-2-clause | 3,336 |
Sequel.migration do
def up
end
def down
end
end | future-analytics/cartodb | db/migrate/20150729102936_create_ldap_configuration.rb | Ruby | bsd-3-clause | 55 |
/*
* Copyright (C) 2010, 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... | scheib/chromium | third_party/blink/renderer/modules/webaudio/audio_processing_event.cc | C++ | bsd-3-clause | 3,431 |
// 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 NetworkInformation_h
#define NetworkInformation_h
#include "core/dom/ActiveDOMObject.h"
#include "core/events/EventTarget.h"
#include "core/page/... | hgl888/blink-crosswalk-efl | Source/modules/netinfo/NetworkInformation.h | C | bsd-3-clause | 2,141 |
package edu.gemini.spModel.core
/**
* A type class that combines conversion and construction for convenience.
*/
trait IsoAngle[A] extends ToDegrees[A] with FromDegrees[A] {
def add(a0: A, a1: A): A =
fromDegrees(toDegrees(a0) + toDegrees(a1))
def subtract(a0: A, a1: A): A =
fromDegrees(toDegrees(a0) - ... | arturog8m/ocs | bundle/edu.gemini.spModel.core/src/main/scala/edu/gemini/spModel/core/IsoAngle.scala | Scala | bsd-3-clause | 482 |
package edu.gemini.model.p1.targetio.impl
import edu.gemini.model.p1.immutable.NonSiderealTarget
import edu.gemini.model.p1.targetio.api.{DataSourceError, FileType, TargetWriter}
import java.io.{OutputStream, File}
import edu.gemini.model.p1.targetio.table.{Column, TableWriter}
object NonSiderealWriter extends Target... | arturog8m/ocs | bundle/edu.gemini.model.p1.targetio/src/main/scala/edu/gemini/model/p1/targetio/impl/NonSiderealWriter.scala | Scala | bsd-3-clause | 1,233 |
/*
* Copyright (c) 2013 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... | BIT-SYS/gem5-spm-module | src/dev/pcidev.cc | C++ | bsd-3-clause | 21,256 |
ms.dispatch = function(that) {
var types = {};
that.on = function(type, handler) {
var listeners = types[type] || (types[type] = []);
for (var i = 0; i < listeners.length; i++) {
if (listeners[i].handler == handler) return that; // already registered
}
listeners.push({handler: handler, on: tr... | mapsense/mapsense.js | src/Dispatch.js | JavaScript | bsd-3-clause | 936 |
<!DOCTYPE html>
<!--
Copyright (c) 2013 Samsung Electronics Co., Ltd.
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law... | qiuzhong/crosswalk-test-suite | webapi/tct-filesystem-tizen-tests/filesystem/File_readAsText.html | HTML | bsd-3-clause | 2,371 |
<!DOCTYPE html>
<html debug="true">
<head>
<!--
Loads the resources of ExtJS and OpenLayers.
Use the URL-parameter `extjs` to require a specific
version of Ext, e.g. `LayerOpacity.html?extjs=5.0.1`
-->
<script src="../../examples/include-ext.js"></script>
<script src="http://o... | bentrm/geoext2 | tests/slider/LayerOpacity.html | HTML | bsd-3-clause | 15,498 |
// 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.
#ifndef UI_AURA_CLIENT_VISIBILITY_CLIENT_H_
#define UI_AURA_CLIENT_VISIBILITY_CLIENT_H_
#include "ui/aura/aura_export.h"
namespace aura {
class Wind... | scheib/chromium | ui/aura/client/visibility_client.h | C | bsd-3-clause | 1,214 |
---
id: 5900f3c31000cf542c50fed5
title: 'Problem 86: Cuboid route'
challengeType: 5
forumTopicId: 302200
dashedName: problem-86-cuboid-route
---
# --description--
A spider, S, sits in one corner of a cuboid room, measuring 6 by 5 by 3, and a fly, F, sits in the opposite corner. By travelling on the surfaces of the ro... | raisedadead/FreeCodeCamp | curriculum/challenges/portuguese/10-coding-interview-prep/project-euler/problem-86-cuboid-route.md | Markdown | bsd-3-clause | 2,545 |
###
# Copyright (c) 2002-2005, Jeremiah Fincher
# 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 co... | buildbot/supybot | test/test_ircmsgs.py | Python | bsd-3-clause | 10,535 |
define('b',{});
define('c',{});
define('second',['b', 'c'], function (b, c) {
console.log(b.name);
console.log(c.name);
});
| alkaest2002/gzts-lab | web/app/assets/frameworks/bower_components/r.js/build/tests/lib/stubModules/perModule/expected-second.js | JavaScript | bsd-3-clause | 135 |
// 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 "ppapi/proxy/video_capture_resource.h"
#include <stddef.h>
#include "base/bind.h"
#include "ppapi/c/dev/ppp_video_capture_dev.h"
#include "... | chromium/chromium | ppapi/proxy/video_capture_resource.cc | C++ | bsd-3-clause | 7,527 |
module Head where
{-@ measure hd :: [a] -> a
hd (x:xs) = x
@-}
-- Strengthened constructors
-- data [a] where
-- [] :: [a] -- as before
-- (:) :: x:a -> xs:[a] -> {v:[a] | hd v = x}
{-@ cons :: x:a -> _ -> {v:[a] | hd v = x} @-}
cons x xs = x : xs
{-@ test :: {v:_ | hd v = 0} @-}
test :: [In... | abakst/liquidhaskell | tests/todo/partialmeasureOld.hs | Haskell | bsd-3-clause | 356 |
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs types_solaris.go
// +build amd64,solaris
package syscall
const (
sizeofPtr = 0x8
sizeofShort = 0x2
sizeofInt = 0x4
sizeofLong = 0x8
sizeofLongLong = 0x8
PathMax = 0x400
)
type (
_C_short int16
_C_int int32
_C_long ... | Cofyc/go | src/syscall/ztypes_solaris_amd64.go | GO | bsd-3-clause | 5,643 |
<!DOCTYPE html>
<html>
<head>
<script src="resources/link-highlight-helper.js"></script>
<link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
<style>
#outerDiv {
width: 150px;
}
#outerDiv, #outerDiv div {
padding: 15px;
... | nwjs/chromium.src | third_party/blink/web_tests/compositing/gestures/gesture-tapHighlight-nested-cursor.html | HTML | bsd-3-clause | 1,309 |
var faker = new function () {
function define(obj, name, desc) {
}
if (something) {
define(this, 'base', {});
}
define(a, b, c);
function other () {
define(this, '__proto__', {});
}
};
| alkaest2002/gzts-lab | web/app/assets/frameworks/bower_components/r.js/build/tests/lib/shimFakeDefine/faker.js | JavaScript | bsd-3-clause | 234 |
// Filename: pnmimage_base.h
// Created by: drose (14Jun00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You shoul... | hj3938/panda3d | panda/src/pnmimage/pnmimage_base.h | C | bsd-3-clause | 4,373 |
// Copyright 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.
(function() {
'use strict';
cr.define('cr.translateInternals', function() {
var detectionLogs_ = null;
function detectionLogs() {
if ... | TeamEOS/external_chromium_org | chrome/browser/resources/translate_internals/translate_internals.js | JavaScript | bsd-3-clause | 14,159 |
/*-------------------------------------------------------------------------
* drawElements Quality Program Tester Core
* ----------------------------------------
*
* Copyright 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | endlessm/chromium-browser | third_party/angle/third_party/VK-GL-CTS/src/framework/common/tcuEither.cpp | C++ | bsd-3-clause | 7,576 |
var express = require('../')
, request = require('supertest');
describe('app', function(){
describe('.response', function(){
it('should extend the response prototype', function(done){
var app = express();
app.response.shout = function(str){
this.send(str.toUpperCase());
};
ap... | pkristoff/cnpa-regional-contest-web | vendor/assets/bower_components/express/test/app.response.js | JavaScript | gpl-2.0 | 896 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"),
require("../../... | bobmagicii/atlantis | www/share/js/codemirror-modes/tornado/tornado.js | JavaScript | bsd-2-clause | 2,497 |
/* Copyright (c) 2008-2015, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software. See l... | bgould/avian | classpath/java/lang/ArithmeticException.java | Java | isc | 558 |
--TEST--
Test rename() function : variation - various relative, absolute paths
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') die('skip.. not for Windows');
?>
--FILE--
<?php
/* Prototype : bool rename(string old_name, string new_name[, resource context])
* Descript... | ericpp/hippyvm | test_phpt/ext/standard/file/rename_variation12.phpt | PHP | mit | 2,641 |
// Type definitions for beeper 1.1
// Project: https://github.com/sindresorhus/beeper#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = beeper;
declare function beeper(count?: number, cb?: () => void): void;
declare f... | magny/DefinitelyTyped | types/beeper/index.d.ts | TypeScript | mit | 375 |
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | nicolasbrechet/our-boxen | vendor/bundle/ruby/2.0.0/gems/aws-sdk-1.51.0/lib/aws/elb/load_balancer_collection.rb | Ruby | mit | 5,961 |
--------------------------------
-- @module GridAction
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- returns the grid
-- @function [parent=#GridAction] getGrid
-- @param self
-- @return GridBase#GridBase ret (return value: cc.GridBase)
--------------------------------
... | kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/GridAction.lua | Lua | mit | 776 |
ace.define("ace/theme/kuroir",["require","exports","module","ace/lib/dom"], function(acequire, exports, module) {
exports.isDark = false;
exports.cssClass = "ace-kuroir";
exports.cssText = "\
.ace-kuroir .ace_gutter {\
background: #e8e8e8;\
color: #333;\
}\
.ace-kuroir .ace_print-margin {\
width: 1px;\
background: #e8... | jedfoster/brace | theme/kuroir.js | JavaScript | mit | 2,265 |
/*
* Copyright 2005 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | rokn/Count_Words_2015 | testing/drools-master/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupEventImpl.java | Java | mit | 2,161 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Threading;
using Microsoft.CodeAnalysis.Shared.Collections;
namespace Microsoft.CodeAna... | AlekseyTs/roslyn | src/Features/Core/Portable/Structure/Syntax/AbstractSyntaxTriviaStructureProvider.cs | C# | mit | 760 |
/*
* TCC - Tiny C Compiler
*
* Copyright (c) 2001-2004 Fabrice Bellard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) a... | russpowers/Nim | tinyc/tcc.h | C | mit | 56,025 |
let util = require('../../util');
let Hammer = require('../../module/hammer');
let hammerUtil = require('../../hammerUtil');
/**
* clears the toolbar div element of children
*
* @private
*/
class ManipulationSystem {
constructor(body, canvas, selectionHandler) {
this.body = body;
this.canvas = canvas;
... | AnttiKurittu/kirjuri | views/js/vis-4.18.0/lib/network/modules/ManipulationSystem.js | JavaScript | mit | 38,796 |
<h1>Service components in <code>ng</code></h1>
<div class="component-breakdown">
<div>
<table class="definition-table">
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><a href="api/ng/service/$anchorScroll">$anchorScroll</a></td>
<td><p>When call... | viral810/ngSimpleCMS | web/bundles/sunraangular/js/angular/angular-1.3.3/docs/partials/api/ng/service.html | HTML | mit | 8,622 |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... | ryancanulla/findMe | web/ext/src/layout/component/Component.js | JavaScript | mit | 17,347 |
#include <node.h>
#include "zopfli.h"
#include "zopfli-binding.h"
#include "png/zopflipng.h"
namespace nodezopfli {
using namespace v8;
using namespace node;
NAN_INLINE Nan::NAN_METHOD_RETURN_TYPE ParseArgs(const Nan::FunctionCallbackInfo<v8::Value>& info, ZopfliFormat& format, ZopfliOptions& zopfli_options) {
Zop... | shikun2014010800/manga | web/console/node_modules/node-zopfli/src/zopfli-binding.cc | C++ | mit | 7,865 |
<div id="login" class="login-container" data-ng-controller="LoginCtrl">
<div class="bg-danger text-danger login-error" data-ng-repeat="error in errors"><p>{{ error }}</p></div>
<form class="form-signin" role="form" data-ng-submit="logIn(formdata)" novalidate>
<h2 class="form-signin-heading">TaskBoard - ... | ZM-git/TaskBoard | partials/login.html | HTML | mit | 990 |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the MIT License https://raw.github.com/mit-cml/app-inventor/master/mitlicense.txt
// TODO(user): reconsider visibilities of the abstract base classes in this pac... | AppScale/appinventor | src/com/google/appinventor/client/editor/simple/components/MockImageBase.java | Java | mit | 3,879 |
'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
angular.module('blog.services', []).
value('version', '0.1');
| emidiocroci/angular-workshop | app/04-advanced/js/services.js | JavaScript | mit | 182 |
h1 {
font-size: 30px;
color: blue;
font-weight: bold;
text-align:center;
}
h2 {
text-align:center;
}
button {
margin-left: auto;
margin-right: auto;
display: block;
margin-top: 50px;
font-size: 30px;
}
/* Loader from http://projects.lukehaas.me/css-loaders/#load1 */
.loader... | kived/python-for-android | testapps/testapp_flask/static/style.css | CSS | mit | 1,282 |
---
title: 'Reminder: OpenStack Networking hangout TODAY'
date: 2013-10-29 17:23:20
author: rbowen
---
A reminder that the OpenStack Networking (Part II) hangout will be on Thursday. Brent Eagles (beagles) will be picking up where Dave left off last month, and talking about GRE tunneling, VLANs, and other more advance... | coolsvap/website | source/blog/2013-10-29-reminder-openstack-networking-hangout-today.html.md | Markdown | mit | 594 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Test.Utilities;
using Xunit;
namespa... | mavasani/roslyn | src/EditorFeatures/CSharpTest2/Recommendations/RemoveKeywordRecommenderTests.cs | C# | mit | 3,870 |
<?php
namespace Concrete\Core\Updater\Migrations\Migrations;
use Concrete\Core\Entity\OAuth\RefreshToken;
use Concrete\Core\Updater\Migrations\AbstractMigration;
use Concrete\Core\Updater\Migrations\RepeatableMigrationInterface;
class Version20200203000000 extends AbstractMigration implements RepeatableMigrationInte... | biplobice/concrete5 | concrete/src/Updater/Migrations/Migrations/Version20200203000000.php | PHP | mit | 457 |
//
// DGActivityIndicatorTripleRingsPulseAnimation.h
// DGActivityIndicatorExample
//
// Created by tripleCC on 15/6/28.
// Copyright (c) 2015年 Danil Gontovnik. All rights reserved.
//
#import "DGActivityIndicatorAnimation.h"
@interface DGActivityIndicatorTripleRingsAnimation: DGActivityIndicatorAnimation
@end
| YahyaBagia/YBHud | YBHud/DGActivityIndicatorView/Animations/DGActivityIndicatorTripleRingsAnimation.h | C | mit | 320 |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2015 Google Inc. http://bulletphysics.org
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to an... | blackspotbear/MMDViewer | third-party/bullet3-2.83.7/examples/BasicDemo/BasicExample.h | C | mit | 1,111 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.... | ruben-ayrapetyan/coreclr | src/mscorlib/shared/System/IntPtr.cs | C# | mit | 6,210 |
/**
* videojs-flash
* @version 1.0.0-RC.1
* @copyright 2017 Brightcove, Inc.
* @license Apache-2.0
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(t... | joeyparrish/cdnjs | ajax/libs/videojs-flash/1.0.0-RC.1/videojs-flash.js | JavaScript | mit | 43,823 |
/* Copyright (c) 2006-2007 Christopher J. W. Lloyd
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... | yuhangwang/cocotron | AppKit/NSFontManager.h | C | mit | 4,343 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.