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 |
|---|---|---|---|---|---|
"use strict";
var Metatags = require("lib/metatags/Metatags");
describe("Metatags", function() {
var metatags;
describe("instantiation", function() {
describe("when pairs are NOT provided", function() {
function instantiateMetatagsWithoutPairs() {
return new Metatags();... | sylnp0201/brisket | spec/client/metatags/MetatagsSpec.js | JavaScript | apache-2.0 | 2,630 |
java.lang.Integer[] arr = new java.lang.Integer[]{1, 2, 3};
print(new java.lang.Integer[]{1, 2, 3});
print(org.codehaus.groovy.runtime.DefaultGroovyMethods.asType("dg", java.lang.Object.class));
| consulo/consulo-groovy | testdata/refactoring/convertGroovyToJava/codeBlock/safeCast.java | Java | apache-2.0 | 195 |
/**
* 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... | siyuanh/apex-malhar | library/src/test/java/com/datatorrent/lib/db/jdbc/JdbcPojoPollableOpeartorTest.java | Java | apache-2.0 | 9,540 |
package com.badlogic.gdx.tests.lwjgl3;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.Graphics.DisplayMode;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowAdapter;
import com.badlogic.gdx.... | alex-dorokhov/libgdx | tests/gdx-tests-lwjgl3/src/com/badlogic/gdx/tests/lwjgl3/MultiWindowTest.java | Java | apache-2.0 | 3,716 |
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */
/* vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 ... | glycerine/vj | src/js-1.8.5/js/src/nanojit/njconfig.cpp | C++ | apache-2.0 | 3,724 |
/**
* 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... | onders86/camel | platforms/spring-boot/components-starter/camel-kubernetes-starter/src/main/java/org/apache/camel/component/kubernetes/job/springboot/KubernetesJobComponentConfiguration.java | Java | apache-2.0 | 2,184 |
/*******************************************************************************
* 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 thi... | yssharma/pig-on-drill | exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/FloatConvertFrom.java | Java | apache-2.0 | 2,050 |
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... | Ant-Droid/android_frameworks_base_OLD | packages/SystemUI/src/com/android/systemui/statusbar/phone/PlatformVelocityTracker.java | Java | apache-2.0 | 2,033 |
/*
* Copyright 2000-2016 Vaadin 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 or agreed to... | Darsstar/framework | shared/src/main/java/com/vaadin/shared/ui/dd/DragEventType.java | Java | apache-2.0 | 690 |
#!/usr/bin/env python
"""
split_file.py [-o <dir>] <path>
Take the file at <path> and write it to multiple files, switching to a new file
every time an annotation of the form "// BEGIN file1.swift" is encountered. If
<dir> is specified, place the files in <dir>; otherwise, put them in the
current directory.
"""
impo... | khizkhiz/swift | utils/split_file.py | Python | apache-2.0 | 1,030 |
# typed: false
# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "brew --version" do
it "prints the Homebrew's version", :integration_test do
expect { brew_sh "--version" }
.to output(/^Homebrew #{Regexp.escape(HOMEBREW_VERSION)}\n/o).to_stdout
.and not_to_output.to_std... | vitorgalvao/brew | Library/Homebrew/test/cmd/--version_spec.rb | Ruby | bsd-2-clause | 358 |
ο»Ώ/* Copyright (c) Citrix Systems, 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... | GaborApatiNagy/xenadmin | XenAdmin/Diagnostics/Problems/PoolProblem/HAEnabledProblem.cs | C# | bsd-2-clause | 3,391 |
class Libdvdnav < Formula
desc "DVD navigation library"
homepage "https://www.videolan.org/developers/libdvdnav.html"
url "https://download.videolan.org/pub/videolan/libdvdnav/6.0.0/libdvdnav-6.0.0.tar.bz2"
sha256 "f0a2711b08a021759792f8eb14bb82ff8a3c929bf88c33b64ffcddaa27935618"
bottle do
cellar :any
... | moderndeveloperllc/homebrew-core | Formula/libdvdnav.rb | Ruby | bsd-2-clause | 1,046 |
// 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.
#ifndef ASH_COMMON_SYSTEM_TRAY_THROBBER_VIEW_H_
#define ASH_COMMON_SYSTEM_TRAY_THROBBER_VIEW_H_
#include "base/macros.h"
#include "ui/gfx/geometry/si... | ssaroha/node-webrtc | third_party/webrtc/include/chromium/src/ash/common/system/tray/throbber_view.h | C | bsd-2-clause | 1,714 |
#!/usr/bin/env python
##
# OOIPLACEHOLDER
#
# Copyright 2014 Raytheon Co.
##
from mi.core.log import get_logger
from mi.core.versioning import version
from mi.dataset.dataset_driver import DataSetDriver
from mi.dataset.dataset_parser import DataSetDriverConfigKeys
from mi.dataset.parser.mmp_cds_base import MmpCdsParse... | janeen666/mi-instrument | mi/dataset/driver/dosta_abcdjm/mmp_cds/dosta_abcdjm_mmp_cds_recovered_driver.py | Python | bsd-2-clause | 1,067 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: easyrtc_rates.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.j... | ash24mish/easyrtc | docs/client_html_docs/easyrtc_rates.js.html | HTML | bsd-2-clause | 14,511 |
// 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/chromeos/contacts/google_contact_store.h"
#include <algorithm>
#include "base/bind.h"
#include "base/files/file_path.h"
#in... | espadrine/opera | chromium/src/chrome/browser/chromeos/contacts/google_contact_store.cc | C++ | bsd-3-clause | 15,152 |
/************************************************************************************
* configs/stm3240g-eval/src/up_selectsram.c
* arch/arm/src/board/up_selectsram.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and bi... | gcds/project_xxx | nuttx/configs/stm3240g-eval/src/up_selectsram.c | C | bsd-3-clause | 7,923 |
// 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.
#ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_
#define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_
#include "base/comp... | SaschaMester/delicium | chrome/browser/browser_process_platform_part_chromeos.h | C | bsd-3-clause | 3,544 |
// 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.
//
// CRX filesystem is a filesystem that allows an extension to read its own
// package directory tree. See ppapi/examples/crxfs for example.
//
// IMPLE... | chromium/chromium | ppapi/proxy/isolated_file_system_private_resource.h | C | bsd-3-clause | 2,637 |
<?php
/**
* Copyright 2007 Google Inc.
*
* 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 agr... | ychen820/microblog | y/google-cloud-sdk/platform/google_appengine/php/sdk/google/appengine/api/memcache/memcache_service_pb.php | PHP | bsd-3-clause | 107,999 |
/* claqr0.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of... | UCSantaCruzComputationalGenomicsLab/clapack | SRC/claqr0.c | C | bsd-3-clause | 27,282 |
<!--
INSTEAD OF EDITING THIS HTML FILE, USE OUR CONTROLLER GENERATOR:
http://developers.airconsole.com/tools/airconsole-controls/ctrl-generator/controller.html
!-->
<html>
<head>
<script type="text/javascript" src="../button/button.js"></script>
<script type="text/javascript" src="fake-airconsol... | PeteE/roro | python/robot_server/airconsole-controls/examples/button.html | HTML | bsd-3-clause | 2,251 |
/**
* 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 should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file cullableObject.h
* @au... | chandler14362/panda3d | panda/src/pgraph/cullableObject.h | C | bsd-3-clause | 3,812 |
# $Id$
from module_base import ModuleBase
from module_mixins import FilenameViewModuleMixin
import module_utils
import vtk
class stlWRT(FilenameViewModuleMixin, ModuleBase):
def __init__(self, module_manager):
# call parent constructor
ModuleBase.__init__(self, module_manager)
# need to... | nagyistoce/devide | modules/writers/stlWRT.py | Python | bsd-3-clause | 2,674 |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... | endlessm/chromium-browser | third_party/llvm/libcxx/test/std/experimental/func/func.searchers/func.searchers.boyer_moore_horspool/hash.pred.pass.cpp | C++ | bsd-3-clause | 6,467 |
/*
* Copyright (c) 2015 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 contributin... | jacklicn/webm.libvpx | vp9/common/mips/msa/vp9_convolve8_vert_msa.c | C | bsd-3-clause | 30,217 |
// Copyright (c) 2015, Outercurve Foundation.
// 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
// ... | simonegli8/Websitepanel | WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VpsDetailsNetwork.ascx.cs | C# | bsd-3-clause | 10,694 |
// Copyright 2016 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 <stddef.h>
#include "base/numerics/safe_conversions.h"
#include "media/filters/h264_parser.h"
// Entry point for LibFuzzer.
extern "C" int LLVM... | axinging/chromium-crosswalk | media/filters/h264_parser_fuzzertest.cc | C++ | bsd-3-clause | 1,481 |
__version__=''' $Id'''
__doc__='''basic tests.'''
from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, printLocation
setOutDir(__name__)
import unittest
def getrc(defns,depth=1):
from sys import getrefcount, _getframe
f = _getframe(depth)
G0 = f.f_globals
L = f.f_locals
if L is not G... | mattjmorrison/ReportLab | tests/test_rl_accel.py | Python | bsd-3-clause | 6,284 |
/* Return codes: 1 - ok, 0 - ignore, other - error. */
static int
arch_get_scno(struct tcb *tcp)
{
return upeek(tcp->pid, PT_ORIG_P0, &tcp->scno) < 0 ? -1 : 1;
}
| Distrotech/strace | linux/bfin/get_scno.c | C | bsd-3-clause | 163 |
// 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 CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGE_FILTER_H_
#define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGE_FILTER_H_
#include "ipc/ipc_chann... | zcbenz/cefode-chromium | content/common/indexed_db/indexed_db_message_filter.h | C | bsd-3-clause | 977 |
"""
Create SQL statements for QuerySets.
The code in here encapsulates all of the SQL construction so that QuerySets
themselves do not have to (and could be backed by things other than SQL
databases). The abstraction barrier only works one way: this module has to know
all about the internals of models in order to get ... | gannetson/django | django/db/models/sql/query.py | Python | bsd-3-clause | 92,461 |
/* ISO C9x compliant stdint.h for Microsoft Visual Studio
* Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
*
* Copyright (c) 2006-2008 Alexander Chemeris
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | sswen/ntirpc | ntirpc/misc/stdint.h | C | bsd-3-clause | 7,457 |
badnode
=======
Report if the node version we're using is bad.
| keybase/node-client | node_modules/keybase-installer/node_modules/badnode/README.md | Markdown | bsd-3-clause | 64 |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | endlessm/chromium-browser | third_party/protobuf/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc | C++ | bsd-3-clause | 11,927 |
<?php
namespace React\Tests\ChildProcess;
use React\ChildProcess\Process;
use React\EventLoop\Timer\Timer;
abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
{
abstract public function createLoop();
public function testGetEnhanceSigchildCompatibility()
{
$process = new Proces... | handsomegyr/ent | vendor/react/react/tests/ChildProcess/AbstractProcessTest.php | PHP | bsd-3-clause | 9,667 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Terminology test: default</title>
</head>
<body its-annotators-ref="text-analysis|file:///tools.xml#T1" >
<p>We need a new <span its-annotators-ref="terminology|http://example.com/term-tool#T2" its-term="YeS" its-term-info-ref="#TDPV" i... | cr/fxos-certsuite | web-platform-tests/tests/conformance-checkers/html-its/terminology/html/terminology5html.html | HTML | mpl-2.0 | 388 |
/************************************************************************************[SimpSolver.h]
Copyright (c) 2006, Niklas Een, Niklas Sorensson
Copyright (c) 2007-2010, Niklas Sorensson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation ... | YosysHQ/yosys | libs/minisat/SimpSolver.h | C | isc | 10,801 |
<?php
/**
* this file is part of magerun
*
* @author Tom Klingenberg <https://github.com/ktomk>
*/
namespace N98\Util\Console\Helper\Table\Renderer;
use DOMDocument;
use DOMElement;
use DOMException;
use RuntimeException;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class XmlRenderer
*
* @packa... | tkn98/n98-magerun | src/N98/Util/Console/Helper/Table/Renderer/XmlRenderer.php | PHP | mit | 4,542 |
const fs = require('fs');
const _ = require('lodash');
const cache = require('./state/cache');
const broadcast = cache.get('broadcast');
const apiKeysFile = __dirname + '/../SECRET-api-keys.json';
// on init:
const noApiKeysFile = !fs.existsSync(apiKeysFile);
if(noApiKeysFile)
fs.writeFileSync(
apiKeysFile,
... | WXLWEB/gekko | web/apiKeyManager.js | JavaScript | mit | 1,067 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Concurrent::ErlangActor::EnvironmentConstants::Or
— Concurrent Ruby
</title>
<link rel="stylesheet" href="../../../css/style.css" type="text/css" />
<l... | lucasallan/concurrent-ruby | docs/master/Concurrent/ErlangActor/EnvironmentConstants/Or.html | HTML | mit | 7,397 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var locale = {
placeholder: 'Zeit auswΓ€hlen'
};
exports['default'] = locale;
module.exports = exports['default']; | yhx0634/foodshopfront | node_modules/antd/lib/time-picker/locale/de_DE.js | JavaScript | mit | 200 |
import { ServerActions } from './ServerActions';
import { AuthTokenProvider } from './AuthTokenProvider';
import { RepoInfo } from './RepoInfo';
import { Query } from '../api/Query';
/**
* Firebase connection. Abstracts wire protocol and handles reconnecting.
*
* NOTE: All JSON objects sent to the realtime c... | tipographo/tipographo.github.io | node_modules/@firebase/database/dist/src/core/PersistentConnection.d.ts | TypeScript | mit | 6,330 |
<!DOCTYPE html>
<html class="minimal">
<title>Canvas test: 2d.fillStyle.parse.invalid.name-3</title>
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="minimal.2d.fillStyle.parse.invalid.name-2.html" title="2d.fillStyle.parse.invalid.name-2">
<link rel="next" href="mi... | corbanbrook/webgl-2d | test/philip.html5.org/tests/minimal.2d.fillStyle.parse.invalid.name-3.html | HTML | mit | 1,103 |
--TEST--
Bug #60227 (header() cannot detect the multi-line header with CR), \0 before \n
--FILE--
<?php
header("X-foo: e\n foo");
header("X-Foo6: e\0Set-Cookie: ID=\n123\n d");
echo 'foo';
?>
--EXPECTF--
Warning: Header may not contain NUL bytes in %s on line %d
foo
--EXPECTHEADERS--
X-foo: e
foo
| xhava/hippyvm | test_phpt/ext/standard/general_functions/bug60227_3.phpt | PHP | mit | 298 |
/*
* Copyright (C) 2014 MediaSift Ltd.
*
* 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, publ... | marekjm/served | src/served/request_parser_impl.hpp | C++ | mit | 5,847 |
package pluginerror
import "fmt"
// SSLValidationHostnameError replaces x509.HostnameError when the server has
// SSL certificate that does not match the hostname.
type SSLValidationHostnameError struct {
Message string
}
func (e SSLValidationHostnameError) Error() string {
return fmt.Sprintf("Hostname does not ma... | odlp/antifreeze | vendor/github.com/cloudfoundry/cli/api/plugin/pluginerror/ssl_validation_hostname_error.go | GO | mit | 360 |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
namespace Microsoft.Zelig.CodeGeneration.IR
{
using System;
using System.Collections.Generic;
using Microsoft.Zelig.MetaData;
using Microsoft.Zelig.MetaData.Normalized;
using Microsoft.Zelig.Runtime.TypeSystem;
//////////... | smaillet-ms/llilum | Zelig/Zelig/CompileTime/CodeGenerator/IntermediateRepresentation/ByteCode/ByteCodeConverter.cs | C# | mit | 15,055 |
// 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.Collections.Generic;
using Microsoft.Cci.Extensions.CSharp;
namespace Microsoft.Cci.Writers.CSharp
{
... | mmitche/buildtools | src/Microsoft.Cci.Extensions/Writers/CSharp/CSDeclarationWriter.Properties.cs | C# | mit | 4,516 |
#!/bin/sh
set -e
set -x
dd if=/dev/zero of=EMPTY bs=1M || :
rm EMPTY
| d-adler/packer-templates | scripts/vyos/minimize.sh | Shell | mit | 71 |
// Type definitions for babyparse
// Project: https://github.com/Rich-Harris/BabyParse
// Definitions by: Charles Parker <https://github.com/cdiddy77>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module BabyParse {
interface Static {
/**
* Parse a csv string or a csv ... | UzEE/DefinitelyTyped | babyparse/babyparse.d.ts | TypeScript | mit | 5,026 |
module Sass
# An exception class that keeps track of
# the line of the Sass template it was raised on
# and the Sass file that was being parsed (if applicable).
#
# All Sass errors are raised as {Sass::SyntaxError}s.
#
# When dealing with SyntaxErrors,
# it's important to provide filename and line numbe... | xvhfeng/blog-source | vendor/cache/ruby/2.4.0/gems/sass-3.4.24/lib/sass/error.rb | Ruby | mit | 6,777 |
$(document).ready(function() {
$('#servicio_ingreso').select2({
width: '60%',
placeholder:'Seleccione...',
allowClear:true
});
$("#fecha_inicio").datepicker().mask("99-99-9999");
$("#fecha_fin").datepicker().mask("99-99-9999");
$("#emitir_informe").click(function() {
if... | jishisv/sipernes | web/bundles/minsalseguimiento/js/SecIngreso/reporte_list.js | JavaScript | mit | 2,150 |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-error-$rootScope-inprog-production</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="app.js"></script>
</head>
<body ng-app="app">
<button ng-click="foc... | viral810/ngSimpleCMS | web/bundles/sunraangular/js/angular/angular-1.3.16/docs/examples/example-error-$rootScope-inprog/index-production.html | HTML | mit | 431 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
*
* Take a screenshot of the current viewport. To get the screenshot of the whole page
* use the action command `saveScreenshot`
*
* @returns {String} screenshot The screenshot as a base64 encoded PNG.
*
* @see https://w3c.git... | deep0892/jitendrachatbot | node_modules/webdriverio/build/lib/protocol/screenshot.js | JavaScript | mit | 586 |
//---------------------------------------------------------------------------//
// Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// Distributed under 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
//
// See http://boos... | nginnever/zogminer | tests/deps/boost/compute/algorithm/partition_copy.hpp | C++ | mit | 2,316 |
/*
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... | rch/flask-openshift | wsgi/container/pkgs/sencha/static/ext-4.2.2.1144/src/fx/Animator.js | JavaScript | mit | 13,072 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespac... | JasonYang-MSFT/azure-sdk-for-net | src/SDKs/Batch/dataPlane/Client/Src/Azure.Batch/GeneratedProtocol/Models/JobManagerTask.cs | C# | mit | 12,597 |
/*!
* OOUI v0.27.2
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011β2018 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2018-06-06T16:16:14Z
*/
/**
* WikimediaUI Base v0.10.0
* Wikimedia Foundation user interface base variables
*/
.oo-ui-el... | joeyparrish/cdnjs | ajax/libs/oojs-ui/0.27.2/oojs-ui-core-wikimediaui.css | CSS | mit | 68,761 |
%include "asm/vesa.inc"
[section .text]
[BITS 16]
vesa:
.getcardinfo:
mov ax, 0x4F00
mov di, VBECardInfo
int 0x10
cmp ax, 0x4F
je .edid
mov eax, 1
ret
.edid:
cmp dword [.required], 0 ;if both required x and required y are set, forget this
jne near .findmode
mov ax, 0x4F15
mov bl, 1
mov di, VBEEDID
int 0x10... | alexzhang2015/redox | src/asm/vesa.asm | Assembly | mit | 4,846 |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Originally based on the Bartok code base.
//
using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.Zelig.MetaData.Importer
{
public sealed class MetaDataMethodImpl : MetaDataObject,
IMetaDataNorma... | jkotas/llilum | Zelig/Zelig/CompileTime/MetaData/Importer/MetaDataMethodImpl.cs | C# | mit | 4,489 |
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
sat_elim_eqs.h
Abstract:
Helper class for eliminating eqs.
Author:
Leonardo de Moura (leonardo) 2011-05-27.
Revision History:
--*/
#ifndef SAT_ELIM_EQS_H_
#define SAT_ELIM_EQS_H_
#include"sat_types.h"
namespace sat {
class solver;
... | seahorn/z3 | src/sat/sat_elim_eqs.h | C | mit | 813 |
#
# Author:: Adam Jacob (<adam@opscode.com>)
# Copyright:: Copyright (c) 2009 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# 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
#
# htt... | higanworks/chef-with-ruby_precise-x86_64 | lib/ruby/gems/1.9.1/gems/chef-10.16.0/lib/chef/knife/client_reregister.rb | Ruby | mit | 1,540 |
require "spec_helper"
describe Mongoid::Relations::AutoSave do
describe ".auto_save" do
before(:all) do
Person.autosave(Person.relations["account"].merge!(autosave: true))
end
after(:all) do
Person.reset_callbacks(:save)
end
let(:person) do
Person.new
end
context "w... | bjori/mongoid | spec/mongoid/relations/auto_save_spec.rb | Ruby | mit | 6,065 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.apache.commons.math3.util.IntegerSequence.Incrementor.MaxCountExceededCallback ... | asampley/FactorioRatioAssistant | src/commons-math3-3.6.1/docs/apidocs/org/apache/commons/math3/util/class-use/IntegerSequence.Incrementor.MaxCountExceededCallback.html | HTML | mit | 9,339 |
/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockitousage.matchers;
import static org.mockito.AdditionalMatchers.*;
import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
import java.math.BigDecimal;
import jav... | GeeChao/mockito | test/org/mockitousage/matchers/MatchersTest.java | Java | mit | 20,347 |
function substr(str, start, len) {
// discuss at: http://phpjs.org/functions/substr/
// version: 909.322
// original by: Martijn Wieringa
// bugfixed by: T.Wild
// improved by: Onno Marsman
// improved by: Brett Zamir (http://brett-zamir.me)
// revised by: Theriault
// note: Handles rare Un... | grshane/monthofmud | web/themes/custom/mom/node_modules/phpjs/functions/strings/substr.js | JavaScript | mit | 4,106 |
#include "Variant.h"
#include "split.h"
#include <string>
#include <sstream>
#include <iostream>
using namespace std;
using namespace vcflib;
int main(int argc, char** argv) {
if (argc != 2) {
cerr << "usage: " << argv[0] << " <vcf file>" << endl
<< "outputs a VCF stream in which 'long' non... | benranco/SNPpipeline | tools/vcflib/src/vcfcleancomplex.cpp | C++ | mit | 2,263 |
.domainDetailLogoContainer {width:20%; float:left;}
.domainDetailTabsContainer {width:75%; float:right;}
.logoWhiteness {margin:2px; background:#fff;} /* solid white behind logo, but a margin of 1 so 'edited' creates a border around the image */
.domainList th {text-align:left;}
.domainList th.alignRight {text-align:... | speedaddictcycles/speedaddictcycles | extensions/admin/sites.css | CSS | mit | 787 |
// stdafx.cpp : source file that includes just the standard includes
// NETGeographic.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
| JanEicken/MA | libs/GeographicLib-1.43/dotnet/NETGeographicLib/stdafx.cpp | C++ | mit | 204 |
/*
* Copyright (c) 2014 The FreeBSD Foundation.
* All rights reserved.
*
* Portions of this software were developed by Konstantin Belousov
* under sponsorship from the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... | kishoredbn/barrelfish | lib/libc/sys/sigtimedwait.c | C | mit | 2,080 |
module Jekyll
class PluginManager
attr_reader :site
# Create an instance of this class.
#
# site - the instance of Jekyll::Site we're concerned with
#
# Returns nothing
def initialize(site)
@site = site
end
# Require all the plugins which are allowed.
#
# Returns no... | yanz67/yanz67.github.io | vendor/cache/ruby/2.0.0/gems/jekyll-3.1.1/lib/jekyll/plugin_manager.rb | Ruby | mit | 2,953 |
{% extends "blog/blog_post_list.html" %}
{% load mezzanine_tags comment_tags keyword_tags rating_tags i18n disqus_tags %}
{% block meta_title %}{{ blog_post.meta_title }}{% endblock %}
{% block meta_keywords %}{% metablock %}
{% keywords_for blog_post as tags %}
{% for tag in tags %}{% if not forloop.first %}, {% end... | Sikilabs/sikilabs | pages/templates/blog/blog_post_detail.html | HTML | mit | 4,285 |
//
// NSDictionary+Stripe.h
// Stripe
//
// Created by Jack Flintermann on 10/15/15.
// Copyright Β© 2015 Stripe, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (Stripe)
- (nullable NSDictionary *)stp_dictionaryByRemovingNullsValidatingRequiredFields:(nonnull NSArray *)requ... | thrifty-p2p/thrifty-client | ios/Pods/Stripe/Stripe/NSDictionary+Stripe.h | C | mit | 377 |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
(function (factory) {
if (typeof module === 'object' && ty... | Spect-AR/Spect-AR | node_modules/node_modules/ionic-angular/umd/transitions/transition-ios.js | JavaScript | mit | 9,772 |
/* Copyright (c) 2006-2015 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/XML/VersionedOGC.js
*/
/**
* ... | usgin/NGDSDataExplorer | static/lib/ol2-master/lib/OpenLayers/Format/OWSCommon.js | JavaScript | mit | 2,414 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Tests\Component\HttpFoundation\File;
use Symfony\Component\Http... | gaetanHautecoeur/Welcomebac | vendor/symfony/tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php | PHP | mit | 4,233 |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_MACNOTIFICATIONHANDLER_H
#define BITCOIN_QT_MACNOTIFICATIONHANDLER_H
#include <QObject>
/** Macintosh-sp... | UdjinM6/dash | src/qt/macnotificationhandler.h | C | mit | 810 |
.p-multiselect {
display: inline-flex;
cursor: pointer;
position: relative;
user-select: none;
}
.p-multiselect-trigger {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.p-multiselect-label-container {
overflow: hidden;
flex: 1 1 auto;
cursor... | cdnjs/cdnjs | ajax/libs/primeng/10.0.3/resources/components/multiselect/multiselect.css | CSS | mit | 1,552 |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'div', 'km', {
IdInputLabel: 'Id',
advisoryTitleInputLabel: 'α
αααβααΎαβααααΉααααΆ',
cssClassInputLabel: 'Stylesheet Classes',
edit: 'αα Div',
inlineS... | braverokmc79/macaronics-spring-one | web04/src/main/webapp/WEB-INF/views/ckeditor/plugins/div/lang/km.js | JavaScript | epl-1.0 | 883 |
/**
* Copyright (c) 2014,2019 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is av... | Snickermicker/smarthome | extensions/binding/org.eclipse.smarthome.binding.astro/src/main/java/org/eclipse/smarthome/binding/astro/internal/job/DailyJobSun.java | Java | epl-1.0 | 4,833 |
<?php //$Id: upgradelib.php,v 1.9.2.10 2010/01/25 00:59:22 mjollnir_ Exp $
/*
* This file is used for special upgrade functions - for example groups and gradebook.
* These functions must use SQL and database related functions only- no other Moodle API,
* because it might depend on db structures that are not yet pr... | nagyistoce/moodle-Teach-Pilot | lib/db/upgradelib.php | PHP | gpl-2.0 | 30,325 |
/*
Copyright (c) 1998 Red Hat Software
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, distribu... | bennoleslie/pkg-config | popt/popthelp.c | C | gpl-2.0 | 8,226 |
/* Copyright (C) 2013 Maxim Zakharov. All rights reserved.
Copyright (C) 2003-2012 DataPark Ltd. All rights reserved.
Copyright (C) 2000-2002 Lavtech.com corp. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as p... | Letractively/dataparksearch | src/searchd.c | C | gpl-2.0 | 66,076 |
/* linux/spi/ads7846.h */
/* Touchscreen characteristics vary between boards and models. The
* platform_data for the device's "struct device" holds this information.
*
* It's OK if the min/max values are zero.
*/
#define MAX_12BIT ((1<<12)-1)
enum ads7846_filter {
ADS7846_FILTER_OK,
ADS7846_FILTER_REPEAT,
AD... | gilou811/Archos_OPENAOS_Kernel_ICS | include/linux/spi/ads7846.h | C | gpl-2.0 | 2,125 |
/* @(#)clnt_simple.c 2.2 88/08/01 4.0 RPCSRC */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
* media and as a part of the software program in whole or part. Users
* may copy or modify Sun RPC without charge, but are not... | rhuitl/uClinux | uClibc/libc/inet/rpc/clnt_simple.c | C | gpl-2.0 | 4,716 |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Qtopia - 4.1.2 Release Notes</title>
<link href="classic.css" rel="stylesheet" type="text/css" />
<... | liuyanghejerry/qtextended | doc/html/release-4-1-2.html | HTML | gpl-2.0 | 7,821 |
using System;
using Server;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "a hydra corpse" )]
public class Hydra : BaseCreature
{
[Constructable]
public Hydra()
: base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a hydra";
Body = 0x109;
BaseSoundID = 0x16A;
Se... | jackuoll/Pre-AOS-RunUO | Scripts/Mobiles/Monsters/ML/Blighted Grove/Hydra.cs | C# | gpl-2.0 | 2,107 |
/*
* pcic.c: MicroSPARC-IIep PCI controller support
*
* Copyright (C) 1998 V. Roganov and G. Raiko
*
* Code is derived from Ultra/PCI PSYCHO controller support, see that
* for author info.
*
* Support for diverse IIep based platforms by Pete Zaitcev.
* CP-1200 by Eric Brower.
*/
#include <linux/kernel.h>
#in... | holyangel/LGE_G3 | arch/sparc/kernel/pcic.c | C | gpl-2.0 | 24,782 |
// 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... | ikoula/cloudstack | api/src/org/apache/cloudstack/acl/APILimitChecker.java | Java | gpl-2.0 | 1,259 |
/* Support for opening stores named in URL syntax.
Copyright (C) 2001,02 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundat... | joshumax/hurd | libstore/url.c | C | gpl-2.0 | 3,038 |
/*
bParse
Copyright (c) 2006-2009 Charlie C & Erwin Coumans http://gamekit.googlecode.com
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 anyone to use this sof... | liquidmetal/bananaman | jni/gfx/bullet/bChunk.cpp | C++ | gpl-2.0 | 1,965 |
/* Measure bzero functions.
Copyright (C) 2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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... | SanDisk-Open-Source/SSD_Dashboard | uefi/userspace/glibc/benchtests/bench-bzero.c | C | gpl-2.0 | 856 |
#if !defined(_AMDGPU_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _AMDGPU_TRACE_H_
#include <linux/stringify.h>
#include <linux/types.h>
#include <linux/tracepoint.h>
#include <drm/drmP.h>
#undef TRACE_SYSTEM
#define TRACE_SYSTEM amdgpu
#define TRACE_INCLUDE_FILE amdgpu_trace
TRACE_EVENT(amdgpu_bo_create,
... | zhjwpku/gsoc | drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | C | gpl-2.0 | 5,041 |
<?php
require_once dirname(__FILE__) . '/config.php';
require_once dirname(__FILE__) . '/views/header.tpl.php';
?>
<pre>
<?php
$CDCService = new QuickBooks_IPP_Service_ChangeDataCapture();
// What types of objects do you want to get?
$objects = array(
'Customer',
'Invoice',
);
// The date they should hav... | kuldeep89/160515 | testapp/docs/partner_platform/app_ipp_v3/example_cdc.php | PHP | gpl-2.0 | 1,245 |
/*
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* 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 not... | VentureROM-Legacy/android_kernel_lge_d85x | drivers/staging/prima/CORE/SME/src/pmc/pmc.c | C | gpl-2.0 | 90,050 |
/********************************************************************************
* Nepenthes
* - finest collection -
*
*
*
* Copyright (C) 2005 Paul Baecher & Markus Koetter
*
* This program is free software; you can redistribute it and/or
* modify it unde... | jrwren/nepenthes | nepenthes-core/src/Responder.cpp | C++ | gpl-2.0 | 1,124 |
/*
* Copyright (C) 2015 Team XBMC
* http://kodi.tv
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This P... | ironman771/xbmc | xbmc/pictures/PictureScalingAlgorithm.cpp | C++ | gpl-2.0 | 2,771 |
/*
* This file is part of the coreboot project.
*
* Copyright 2015 Google Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distribute... | BTDC/coreboot | src/mainboard/google/smaug/romstage.c | C | gpl-2.0 | 1,626 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.