code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
<?php
namespace SMW;
use SMWQueryResult;
use Title;
/**
* Printer for embedded data.
*
* Embeds in the page output the contents of the pages in the query result set.
* Printouts are ignored: it only matters which pages were returned by the query.
* The optional "titlestyle" formatting parameter can be used to ... | owen-kellie-smith/mediawiki | wiki/extensions/SemanticMediaWiki/includes/queryprinters/EmbeddedResultPrinter.php | PHP | mit | 3,564 |
require File.dirname(__FILE__) + '/../spec_helper'
require 'mspec/guards/conflict'
describe Object, "#conflicts_with" do
before :each do
ScratchPad.clear
end
it "does not yield if Object.constants includes any of the arguments" do
Object.stub!(:constants).and_return(["SomeClass", "OtherClass"])
conf... | timfel/mspec | spec/guards/conflict_spec.rb | Ruby | mit | 1,789 |
# -*- encoding: ascii-8bit -*-
require File.expand_path('../../../spec_helper', __FILE__)
with_feature :encoding do
# TODO: add IO
describe "Encoding.compatible? String, String" do
describe "when the first's Encoding is valid US-ASCII" do
before :each do
@str = "abc".force_encoding Encoding::US... | askl56/rubyspec | core/encoding/compatible_spec.rb | Ruby | mit | 13,521 |
<?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\Component\Mailer\Bridge\Amazon\Tests\Transport;
use PHPUnit\Fra... | localheinz/symfony | src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesApiTransportTest.php | PHP | mit | 4,500 |
function makeData() {
"use strict";
return [makeRandomData(10), makeRandomData(10)];
}
function run(svg, data, Plottable) {
"use strict";
var largeX = function(d, i){
d.x = Math.pow(10, i);
};
var bigNumbers = [];
deepCopy(data[0], bigNumbers);
bigNumbers.forEach(largeX);
var dataseri... | iobeam/plottable | quicktests/overlaying/tests/functional/formatter.js | JavaScript | mit | 3,212 |
JsonRoutes.add('post', '/' + Meteor.settings.private.stripe.webhookEndpoint, function (req, res) {
Letterpress.Services.Buy.handleEvent(req.body);
JsonRoutes.sendResult(res, 200);
}); | FleetingClouds/Letterpress | server/api/webhooks-api.js | JavaScript | mit | 187 |
'use strict';
var spawn = require('child_process').spawn;
var os = require('os');
var pathlib = require('path');
var fs = require('fs');
var net = require('net');
var crypto = require('crypto');
var which = require('which');
var pathOpenSSL;
var tempDir = process.env.PEMJS_TMPDIR || (os.tmpdir || os.tmpDir) ... | rishigb/NodeProject_IOTstyle | socketIo/VideoLiveStreamSockets/node_modules/exprestify/node_modules/pem/lib/pem.js | JavaScript | mit | 24,288 |
<?php
namespace Neos\Eel\Tests\Unit;
/*
* This file is part of the Neos.Eel package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/
... | neos/eel | Tests/Unit/Helper/DateHelperTest.php | PHP | mit | 7,259 |
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import argparse
import zipfile
from os import getcwd, listdir, makedirs, mkdir, rename
from os.path import isdir, isfile, join
from shutil import move, rmtree
from sys import exit as sys_exit
from sys import path
path.append("..")
from platfor... | mseroczynski/platformio | scripts/mbed_to_package.py | Python | mit | 3,667 |
<?php
namespace Concrete\Core\Attribute;
use Concrete\Core\Attribute\Key\SearchIndexer\SearchIndexerInterface;
interface AttributeKeyInterface
{
/**
* @return int
*/
public function getAttributeKeyID();
/**
* @return string
*/
public function getAttributeKeyHandle();
/**
... | jaromirdalecky/concrete5 | concrete/src/Attribute/AttributeKeyInterface.php | PHP | mit | 678 |
'''tzinfo timezone information for GMT_minus_0.'''
from pytz.tzinfo import StaticTzInfo
from pytz.tzinfo import memorized_timedelta as timedelta
class GMT_minus_0(StaticTzInfo):
'''GMT_minus_0 timezone definition. See datetime.tzinfo for details'''
zone = 'GMT_minus_0'
_utcoffset = timedelta(seconds=0)
... | newvem/pytz | pytz/zoneinfo/GMT_minus_0.py | Python | mit | 367 |
<?php
$loader = require __DIR__.'/../vendor/autoload.php';
$loader->add('Namshi\\JOSE\\Test', __DIR__);
define('TEST_DIR', __DIR__);
define('SSL_KEYS_PATH', 'file://'.TEST_DIR.DIRECTORY_SEPARATOR);
| DevKhater/symfony2-testing | vendor/namshi/jose/tests/bootstrap.php | PHP | mit | 200 |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_nodes_scenarios.py | Python | mit | 543 |
<?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\Component\Lock\Tests\Store;
use Symfony\Component\Cache\Traits\... | mpdude/symfony | src/Symfony/Component/Lock/Tests/Store/AbstractRedisStoreTest.php | PHP | mit | 3,693 |
<?php
class PSU_Student_Finaid_Application_Factory {
public function fetch_by_pidm_aidy_seqno( $pidm, $aidy, $seqno ) {
$args = array(
'pidm' => $pidm,
'aidy' => $aidy,
'seqno' => $seqno,
);
$where = array(
'rcrapp1_pidm = :pidm',
'rcrapp1_aidy_code = :aidy',
'rcrapp1_seq_no = :seqno',
);
... | jbthibeault/plymouth-webapp | lib/PSU/Student/Finaid/Application/Factory.php | PHP | mit | 1,109 |
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Recharge</title>
<!-- Load Roboto font -->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,700&subset=latin,latin-ext' rel='stylesheet' type='text/... | ankushrgv/tollbooth-management-system | tb_management1/laxmi/includes/head_recharge.php | PHP | mit | 1,662 |
<?php
return [
'Names' => [
'af' => 'Tiếng Afrikaans',
'af_NA' => 'Tiếng Afrikaans (Namibia)',
'af_ZA' => 'Tiếng Afrikaans (Nam Phi)',
'ak' => 'Tiếng Akan',
'ak_GH' => 'Tiếng Akan (Ghana)',
'am' => 'Tiếng Amharic',
'am_ET' => 'Tiếng Amharic (Ethiopia)',
... | derrabus/symfony | src/Symfony/Component/Intl/Resources/data/locales/vi.php | PHP | mit | 30,213 |
/** @license React v16.3.0
* react-dom-test-utils.development.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
if (process.env.NODE_ENV !== "production") {
(functi... | ahocevar/cdnjs | ajax/libs/react-dom/16.3.0/cjs/react-dom-test-utils.development.js | JavaScript | mit | 36,533 |
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Formatting;
namespace RefactoringEssentials.CSharp.CodeRefactorings
{
[ExportCodeRefactoringProvid... | mrward/RefactoringEssentials | RefactoringEssentials/CSharp/CodeRefactorings/Synced/ConvertCoalescingToConditionalExpressionCodeRefactoringProvider.cs | C# | mit | 2,856 |
// DOM elements
var $source;
var $photographer;
var $save;
var $textColor;
var $logo;
var $crop;
var $logoColor;
var $imageLoader;
var $imageLink;
var $imageLinkButton;
var $canvas;
var canvas;
var $qualityQuestions;
var $copyrightHolder;
var $dragHelp;
var $filename;
var $fileinput;
var $customFilename;
// Constants
... | mcclatchy/lunchbox | www/js/waterbug.js | JavaScript | mit | 18,520 |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package time_test
import (
"testing"
"time"
)
func TestVersion3(t *testing.T) {
t.Skip("gccgo does not use the zip file")
time.ForceZipFileForTesting(true... | paranoiacblack/gcc | libgo/go/time/zoneinfo_test.go | GO | gpl-2.0 | 1,871 |
/*
* Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwar... | isaacl/openjdk-jdk | test/javax/print/attribute/TestUnsupportedResolution.java | Java | gpl-2.0 | 3,739 |
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | md-5/jdk10 | test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadState/thrstat003/libthrstat003.cpp | C++ | gpl-2.0 | 1,327 |
<?php
namespace Drupal\node\Plugin\views\row;
use Drupal\Core\Entity\EntityDisplayRepositoryInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\views\Plugin\views\row\RssPluginBase;
/**
* Plugin which performs a node_view on the resulting object
* and formats it as an RSS item.
*
* @ViewsRow... | enslyon/ensl | core/modules/node/src/Plugin/views/row/Rss.php | PHP | gpl-2.0 | 4,982 |
/* This file is part of the KDE project
Copyright (C) 2006-2007 Alfredo Beaumont Sainz <alfredo.beaumont@gmail.com>
2009 Jeremias Epperlein <jeeree@web.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as pu... | yxl/emscripten-calligra-mobile | plugins/formulashape/elements/TokenElement.cpp | C++ | gpl-2.0 | 12,060 |
<?php
/**
* Customer booking notification
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action( 'woocommerce_email_header', $email_heading ); ?>
<?php echo wpautop( wptexturize( $notification_message ) ); ?>
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px so... | snappermorgan/radaralley | wp-content/plugins/woocommerce-bookings/templates/emails/customer-booking-notification.php | PHP | gpl-2.0 | 2,299 |
<?php
/**
* @file
* Contains \Drupal\Console\Command\Generate\RouteSubscriber.
*/
namespace Drupal\Console\Command\Generate;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Command\Shared\... | lian-rr/Ecommerse-Drupal | vendor/drupal/console/src/Command/Generate/RouteSubscriberCommand.php | PHP | gpl-2.0 | 4,403 |
#!/usr/bin/python
#
# Copyright 2010, 2011 wkhtmltopdf authors
#
# This file is part of wkhtmltopdf.
#
# wkhtmltopdf 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 3 of the License, or
#... | anouschka42/starktheatreprod | sites/all/libraries/wkhtmltopdf-0.12.0/scripts/sourcefix.py | Python | gpl-2.0 | 4,292 |
<?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\Component\HttpKernel\DependencyInjection;
use Symfony\Component... | nmacd85/drupal-nicoledawn | vendor/symfony/http-kernel/DependencyInjection/FragmentRendererPass.php | PHP | gpl-2.0 | 2,526 |
// license:BSD-3-Clause
// copyright-holders:Ville Linde
// TMS320C82 Master Processor core execution
#include "emu.h"
#include "tms32082.h"
#define OP_LINK() ((m_ir >> 27) & 0x1f)
#define OP_RD() ((m_ir >> 27) & 0x1f)
#define OP_RS() ((m_ir >> 22) & 0x1f)
#define OP_BASE() ((m_ir >> 22) & 0x1f)
#define OP_SIMM15() ... | johnparker007/mame | src/devices/cpu/tms32082/mp_ops.cpp | C++ | gpl-2.0 | 40,621 |
<?php
/* Copyright 2014 Sutherland Boswell (email : sutherland.boswell@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it ... | trocvuong/izzfeed_us | wp-content/plugins/video-thumbnails/php/providers/class-youku-thumbnails.php | PHP | gpl-2.0 | 3,248 |
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* 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.
*
* ... | notspiff/xbmc | xbmc/cores/DllLoader/exports/util/EmuFileWrapper.cpp | C++ | gpl-2.0 | 5,290 |
from __future__ import print_function, unicode_literals
from praw.internal import _to_reddit_list
from .helper import PRAWTest, betamax
class InternalTest(PRAWTest):
def test__to_reddit_list(self):
output = _to_reddit_list('hello')
self.assertEqual('hello', output)
def test__to_reddit_list_wi... | dmarx/praw | tests/test_internal.py | Python | gpl-3.0 | 1,261 |
/**
* @license @product.name@ JS v@product.version@ (@product.date@)
*
* Money Flow Index indicator for Highstock
*
* (c) 2010-2019 Grzegorz Blachliński
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../indicators/mfi.src.js';
| blue-eyed-devil/testCMS | externals/highcharts/es-modules/masters/indicators/mfi.src.js | JavaScript | gpl-3.0 | 258 |
// { dg-options "-std=gnu++14" }
// { dg-do compile }
// Copyright (C) 2015-2016 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Fre... | selmentdev/selment-toolchain | source/gcc-latest/libstdc++-v3/testsuite/experimental/memory/observer_ptr/requirements.cc | C++ | gpl-3.0 | 2,725 |
package nomad
import (
"fmt"
"time"
"github.com/armon/go-metrics"
"github.com/hashicorp/nomad/nomad/structs"
)
// Periodic endpoint is used for periodic job interactions
type Periodic struct {
srv *Server
}
// Force is used to force a new instance of a periodic job
func (p *Periodic) Force(args *structs.Period... | mkuzmin/terraform | vendor/github.com/hashicorp/nomad/nomad/periodic_endpoint.go | GO | mpl-2.0 | 1,256 |
<?php
/**
*@package plugins.inletArmada
*/
class InletArmadaPlugin extends KalturaPlugin implements IKalturaObjectLoader, IKalturaEnumerator
{
const PLUGIN_NAME = 'inletArmada';
public static function getPluginName()
{
return self::PLUGIN_NAME;
}
/**
* @param string $baseClass
* @param string $enumValue... | ratliff/server | plugins/transcoding/inlet_armada/InletArmadaPlugin.php | PHP | agpl-3.0 | 2,348 |
require 'spec_helper'
describe Spree::Admin::OverviewController do
include AuthenticationWorkflow
context "loading overview" do
let(:user) { create_enterprise_user(enterprise_limit: 2) }
before do
controller.stub spree_current_user: user
end
context "when user owns only one enterprise" do
... | levent/openfoodnetwork | spec/controllers/spree/admin/overview_controller_spec.rb | Ruby | agpl-3.0 | 2,772 |
<?php
return array(
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simpl... | ixmid/snipe-it | resources/lang/fil/pagination.php | PHP | agpl-3.0 | 547 |
////////////////////////////////////////////////////////////////////////////////
// Test case file for checkstyle.
// Created: 2001
////////////////////////////////////////////////////////////////////////////////
package com . puppycrawl
.tools.
checkstyle.checks.whitespace.nowhitespacebefore;
/**
* C... | AkshitaKukreja30/checkstyle | src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/nowhitespacebefore/InputNoWhitespaceBeforeDefault.java | Java | lgpl-2.1 | 5,995 |
/*
* 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... | abbeyj/sonarqube | server/sonar-server/src/main/java/org/sonar/server/metric/ws/MetricsWs.java | Java | lgpl-3.0 | 1,515 |
require_dependency 'user_query'
class UsersController < ApplicationController
def index
if params[:followed_by] || params[:followers_of]
if params[:followed_by]
users = User.find(params[:followed_by]).following
elsif params[:followers_of]
users = User.find(params[:followers_of]).follo... | jcoady9/hummingbird | app/controllers/users_controller.rb | Ruby | apache-2.0 | 5,020 |
/*
* 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 ... | nikhilvibhav/camel | core/camel-core/src/test/java/org/apache/camel/component/seda/SedaSizeTest.java | Java | apache-2.0 | 1,588 |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... | zhencui/azure-powershell | src/ResourceManager/Insights/Commands.Insights/OutputClasses/PSLocalizableString.cs | C# | apache-2.0 | 1,909 |
/*
Copyright 2017 The Kubernetes Authors.
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, ... | maxamillion/origin | vendor/k8s.io/kubernetes/test/e2e/apimachinery/webhook.go | GO | apache-2.0 | 38,059 |
//>>built
define("dgrid/extensions/nls/zh-cn/columnHider",{popupLabel:"\u663e\u793a\u6216\u9690\u85cf\u5217"}); | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/dgrid/extensions/nls/zh-cn/columnHider.js | JavaScript | apache-2.0 | 111 |
"""
Telstra API platform for notify component.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/notify.telstra/
"""
import logging
import requests
import voluptuous as vol
from homeassistant.components.notify import (
BaseNotificationService, ATTR_TI... | MungoRae/home-assistant | homeassistant/components/notify/telstra.py | Python | apache-2.0 | 3,404 |
package git4idea.repo;
import com.intellij.openapi.application.PluginPathManager;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.io.FileUtilRt;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vcs.VcsTestUtil;
import com.intellij.util.Function;
import com.in... | ivan-fedorov/intellij-community | plugins/git4idea/tests/git4idea/repo/GitRepositoryReaderTest.java | Java | apache-2.0 | 5,931 |
/*
* 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 ... | charles-cooper/idylfin | src/org/apache/commons/math3/optim/nonlinear/scalar/ObjectiveFunctionGradient.java | Java | apache-2.0 | 1,648 |
/*
* Copyright 2000-2014 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... | ThiagoGarciaAlves/intellij-community | platform/testFramework/src/com/intellij/psi/codeStyle/arrangement/AbstractRearrangerTest.java | Java | apache-2.0 | 11,297 |
/*
* 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 ... | zimmermatt/flink | flink-tests/src/test/java/org/apache/flink/test/classloading/jar/CheckpointingCustomKvStateProgram.java | Java | apache-2.0 | 7,468 |
/*
* 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 ... | WangTaoTheTonic/flink | flink-java/src/test/java/org/apache/flink/api/common/operators/CollectionExecutionIterationTest.java | Java | apache-2.0 | 5,782 |
<?php
final class PhabricatorPeopleProfileEditController
extends PhabricatorPeopleProfileController {
public function handleRequest(AphrontRequest $request) {
$viewer = $this->getViewer();
$id = $request->getURIData('id');
$user = id(new PhabricatorPeopleQuery())
->setViewer($viewer)
->wi... | phacility/phabricator | src/applications/people/controller/PhabricatorPeopleProfileEditController.php | PHP | apache-2.0 | 3,029 |
// Copyright 2015 RedHat, Inc.
// Copyright 2015 CoreOS, 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... | jgsqware/clairctl | vendor/github.com/coreos/go-systemd/sdjournal/journal_test.go | GO | apache-2.0 | 1,951 |
// Code generated by "go generate gonum.org/v1/gonum/unit; DO NOT EDIT.
// Copyright ©2019 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package unit
import (
"fmt"
"testing"
)
func TestCapacitanceFormat(t *testing.T... | pweil-/origin | vendor/gonum.org/v1/gonum/unit/capacitance_test.go | GO | apache-2.0 | 916 |
/*
Copyright 2015 The Kubernetes 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 ag... | klucar/pachyderm | vendor/k8s.io/kubernetes/pkg/apis/extensions/deep_copy_generated.go | GO | apache-2.0 | 48,982 |
require 'rubygems'
require 'minitest/autorun'
require 'rdoc/ri'
require 'rdoc/markup'
require 'tmpdir'
require 'fileutils'
class TestRDocRIStore < MiniTest::Unit::TestCase
def setup
RDoc::TopLevel.reset
@tmpdir = File.join Dir.tmpdir, "test_rdoc_ri_store_#{$$}"
@s = RDoc::RI::Store.new @tmpdir
@to... | racker/omnibus | source/ruby-1.9.2-p180/test/rdoc/test_rdoc_ri_store.rb | Ruby | apache-2.0 | 7,781 |
/*
* 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... | TiVo/kafka | trogdor/src/main/java/org/apache/kafka/trogdor/rest/TaskStopping.java | Java | apache-2.0 | 1,713 |
// +build go1.9
// Copyright 2019 Microsoft Corporation
//
// 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 appl... | pweil-/origin | vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/servicefabric/servicefabric/models.go | GO | apache-2.0 | 148,564 |
/*
* 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... | ollie314/kafka | clients/src/test/java/org/apache/kafka/common/metrics/JmxReporterTest.java | Java | apache-2.0 | 5,954 |
/**
* Copyright 2017 The AMP HTML 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 require... | donttrustthisbot/amphtml | ads/inabox/frame-overlay-helper.js | JavaScript | apache-2.0 | 3,755 |
/*
* Copyright 2019 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | mminella/spring-cloud-data | spring-cloud-dataflow-core/src/main/java/org/springframework/cloud/dataflow/core/TaskManifest.java | Java | apache-2.0 | 2,150 |
/*
* 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... | mmaracic/elasticsearch | test/framework/src/main/java/org/elasticsearch/test/store/MockFSIndexStore.java | Java | apache-2.0 | 5,321 |
/*
* Copyright 2017 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 app... | jhrcek/kie-wb-common | kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/resources/DMNSVGViewFactory.java | Java | apache-2.0 | 2,348 |
// Copyright 2015 The Hugo 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 ... | coderzh/hugo | utils/utils.go | GO | apache-2.0 | 1,295 |
// 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.IO;
using System.Linq;
using System.Reflection.Metadata;
using System.Reflection.Portabl... | physhi/roslyn | src/Compilers/Core/Rebuild/Extensions.cs | C# | apache-2.0 | 1,272 |
package water.deploy;
import java.io.*;
import java.util.*;
import java.util.Map.Entry;
import java.util.jar.*;
import javassist.*;
import water.*;
import water.api.DocGen;
import water.util.Utils;
public class LaunchJar extends Request2 {
static final int API_WEAVER = 1;
static public DocGen.FieldDoc[] DOC_FIEL... | rowhit/h2o-2 | src/main/java/water/deploy/LaunchJar.java | Java | apache-2.0 | 4,106 |
binomial_fit.coef() | madmax983/h2o-3 | h2o-docs/src/booklets/v2_2015/source/GLM_Vignette_code_examples/glm_model_output_20.py | Python | apache-2.0 | 19 |
#!/usr/bin/env python
import os
import sys
from macholib.MachOStandalone import MachOStandalone
from macholib.util import strip_files
def standaloneApp(path):
if not os.path.isdir(path) and os.path.exists(
os.path.join(path, 'Contents')):
raise SystemExit('%s: %s does not look like an app bun... | timeyyy/PyUpdater | pyupdater/vendor/PyInstaller/lib/macholib/macho_standalone.py | Python | bsd-2-clause | 718 |
/**
* Sticky Notes
*
* An open source lightweight pastebin application
*
* @package StickyNotes
* @author Sayak Banerjee
* @copyright (c) 2014 Sayak Banerjee <mail@sayakbanerjee.com>. All rights reserved.
* @license http://www.opensource.org/licenses/bsd-license.php
* @link http://sayakba... | solitaryr/sticky-notes | public/assets/pbr/js/stickynotes.js | JavaScript | bsd-2-clause | 10,960 |
/*******************************************************************************
* Copyright (c) 2013, Daniel Murphy
* 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 ... | Latertater/jbox2d | jbox2d-serialization/src/main/java/org/jbox2d/serialization/SerializationResult.java | Java | bsd-2-clause | 2,130 |
cask 'media-center' do
version '23.00.20'
sha256 '70042295e59a0114900ca475cb2ab46d8c8793c58dbb429542ce4129614e5f25'
url "http://files.jriver.com/mediacenter/channels/v#{version.major}/stable/MediaCenter#{version.no_dots}.dmg"
name 'JRiver Media Center'
homepage 'https://www.jriver.com/'
app "Media Center ... | klane/homebrew-cask | Casks/media-center.rb | Ruby | bsd-2-clause | 773 |
<?php
class Kwc_Trl_DateHelper_DateTime_Component extends Kwc_Abstract
{
}
| kaufmo/koala-framework | tests/Kwc/Trl/DateHelper/DateTime/Component.php | PHP | bsd-2-clause | 75 |
// Copyright 2021 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 <stdint.h>
#include "base/test/task_environment.h"
#include "media/base/svc_scalability_mode.h"
#include "media/base/video_codecs.h"
#include "m... | nwjs/chromium.src | third_party/blink/renderer/platform/peerconnection/rtc_video_encoder_factory_test.cc | C++ | bsd-3-clause | 4,887 |
# -*- coding: utf-8 -*-
# Unit tests for cache framework
# Uses whatever cache backend is set in the test settings file.
from __future__ import unicode_literals
import copy
import os
import re
import shutil
import tempfile
import threading
import time
import unittest
import warnings
from django.conf import settings
... | weiawe/django | tests/cache/tests.py | Python | bsd-3-clause | 85,300 |
#include <pcl/features/rops_estimation.h>
#include <pcl/io/pcd_io.h>
int main (int argc, char** argv)
{
if (argc != 4)
return (-1);
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ> ());
if (pcl::io::loadPCDFile (argv[1], *cloud) == -1)
return (-1);
pcl::PointIndicesPtr in... | drmateo/pcl | doc/tutorials/content/sources/rops_feature/rops_feature.cpp | C++ | bsd-3-clause | 2,148 |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) University College London (UCL).
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR ... | NifTK/MITK | Plugins/org.mitk.gui.qt.cmdlinemodules/src/internal/QmitkUiLoader.cpp | C++ | bsd-3-clause | 2,060 |
description("This tests that page scaling does not affect mouse event pageX and pageY coordinates.");
var html = document.documentElement;
var div = document.createElement("div");
div.style.width = "100px";
div.style.height = "100px";
div.style.backgroundColor = "blue";
var eventLog = "";
function appendEventLog() ... | modulexcite/blink | LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js | JavaScript | bsd-3-clause | 1,651 |
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... | AlexJeng/react | src/modern/class/__tests__/ReactES6Class-test.js | JavaScript | bsd-3-clause | 11,780 |
// 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 "ash/shell.h"
#include <algorithm>
#include <string>
#include "ash/accelerators/accelerator_controller.h"
#include "ash/accelerators/accele... | mohamed--abdel-maksoud/chromium.src | ash/shell.cc | C++ | bsd-3-clause | 43,179 |
/* Main.java -- a standalone viewer for Java applets
Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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 Founda... | shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/libjava/classpath/tools/gnu/classpath/tools/appletviewer/Main.java | Java | bsd-3-clause | 9,974 |
// 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.
#include <stdint.h>
#include <stdio.h>
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/logging.... | js0701/chromium-crosswalk | sync/tools/testserver/run_sync_testserver.cc | C++ | bsd-3-clause | 3,925 |
// 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 "content/browser/plugin_loader_posix.h"
#include <stddef.h>
#include <stdint.h>
#include "base/at_exit.h"
#include "base/bind.h"
#include "... | js0701/chromium-crosswalk | content/browser/plugin_loader_posix_unittest.cc | C++ | bsd-3-clause | 13,212 |
// 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 "media/audio/scoped_loop_observer.h"
#include "base/bind.h"
#include "base/synchronization/waitable_event.h"
namespace media {
ScopedLoopO... | timopulkkinen/BubbleFish | media/audio/scoped_loop_observer.cc | C++ | bsd-3-clause | 1,340 |
<?php
/**
* PHP configuration based AclInterface implementation
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copy... | jcu-eresearch/Edgar | webapplication/lib/Cake/Controller/Component/Acl/PhpAcl.php | PHP | bsd-3-clause | 13,365 |
// Copyright 2018 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 "skia/ext/fontmgr_default.h"
#include "third_party/skia/include/core/SkFontMgr.h"
namespace {
SkDEBUGCODE(bool g_factory_called;)
// This... | nwjs/chromium.src | skia/ext/fontmgr_default.cc | C++ | bsd-3-clause | 873 |
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System.IO;
namespace CefSharp
{
//TODO: Eval naming for this interface, not happy with this name
public interface IResourceHandler
... | joshvera/CefSharp | CefSharp/IResourceHandler.cs | C# | bsd-3-clause | 844 |
from __future__ import absolute_import
from ..model import Model
from ..core.properties import (Any, Dict, String)
class ImageSource(Model):
""" A base class for all image source types. """
_args = ('url', 'extra_url_vars')
url = String(default="", help="""
tile service url (example: http://c.tile.op... | phobson/bokeh | bokeh/models/images.py | Python | bsd-3-clause | 617 |
// Copyright 2018 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.
package org.chromium.chromecast.shell;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.net.U... | ric2b/Vivaldi-browser | chromium/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastWebContentsView.java | Java | bsd-3-clause | 4,548 |
require 'test/unit'
require 'rails/version' # For getting the rails version constants
require 'active_support/vendor' # For loading I18n
require 'mocha'
require 'net/http'
require File.dirname(__FILE__) + '/../lib/recaptcha'
class RecaptchaVerifyTest < Test::Unit::TestCase
def setup
ENV['RECAPTCHA_PRIVATE_KEY']... | augustf/wtgsite | vendor/plugins/recaptcha/test/verify_recaptcha_test.rb | Ruby | mit | 3,213 |
<?php
namespace DoctrineBundle\Tests\DependencyInjection\Fixtures\Bundles\XmlBundle\Entity;
class Test
{
} | boutell/SillyCMS | src/vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Tests/DependencyInjection/Fixtures/Bundles/XmlBundle/Entity/Test.php | PHP | mit | 108 |
// Copyright 2011 Daniel James.
// 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)
#include <boost/core/lightweight_test.hpp>
#include <boost/limits.hpp>
#include <boost/static_assert.hpp>
#include <boost/type_traits... | davehorton/drachtio-server | deps/boost_1_77_0/libs/unordered/test/unordered/allocator_traits.cpp | C++ | mit | 11,069 |
<?php
class CM_Paging_StreamSubscribe_User extends CM_Paging_StreamSubscribe_Abstract {
/**
* @param CM_Model_User $user
*/
public function __construct(CM_Model_User $user) {
$source = new CM_PagingSource_Sql('`id`', 'cm_stream_subscribe', '`userId` = ' . $user->getId());
parent::__c... | alexispeter/CM | library/CM/Paging/StreamSubscribe/User.php | PHP | mit | 347 |
require 'fastlane_core'
require 'credentials_manager'
module Snapshot
class Options
def self.available_options
output_directory = (File.directory?("fastlane") ? "fastlane/screenshots" : "screenshots")
@options ||= [
FastlaneCore::ConfigItem.new(key: :workspace,
... | NicholasFFox/fastlane | snapshot/lib/snapshot/options.rb | Ruby | mit | 13,252 |
//---------------------------------------------------------------------
// <copyright file="JsonLightUtils.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//--------------------------------------... | hotchandanisagar/odata.net | test/FunctionalTests/Tests/DataOData/Tests/OData.TDD.Tests/Common/JsonLight/JsonLightUtils.cs | C# | mit | 1,894 |
require "test_helper"
class MaintainingRepoSubscriptionsTest < ActionDispatch::IntegrationTest
fixtures :repos
def triage_the_sandbox
login_via_github
visit "/"
click_link "issue_triage_sandbox"
click_button "I Want to Triage: bemurphy/issue_triage_sandbox"
end
test "subscribing to a repo" do... | colinrubbert/codetriage | test/integration/maintaining_repo_subscriptions_test.rb | Ruby | mit | 1,192 |
// Generated by CoffeeScript 1.3.3
(function() {
define(["smog/server", "smog/notify", "templates/connect"], function(server, notify, templ) {
return {
show: function() {
$('#content').html(templ());
$('#connect-modal').modal({
backdrop: false
});
return $('#connec... | wearefractal/smog | public/js/routes/index.js | JavaScript | mit | 911 |
//---------------------------------------------------------------------
// <copyright file="StreamReferenceValueReaderJsonLightTests.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//------------... | hotchandanisagar/odata.net | test/FunctionalTests/Tests/DataOData/Tests/OData.Reader.Tests/JsonLight/StreamReferenceValueReaderJsonLightTests.cs | C# | mit | 23,505 |
package cmd
import (
"bytes"
"fmt"
"github.com/smira/aptly/aptly"
"github.com/smira/aptly/deb"
"github.com/smira/aptly/query"
"github.com/smira/aptly/utils"
"github.com/smira/commander"
"github.com/smira/flag"
"os"
"path/filepath"
"text/template"
)
func aptlyRepoInclude(cmd *commander.Command, args []strin... | bsundsrud/aptly | cmd/repo_include.go | GO | mit | 7,511 |
/**
* Creates a new instance of Emitter.
* @class
* @returns {Object} Returns a new instance of Emitter.
* @example
* // Creates a new instance of Emitter.
* var Emitter = require('emitter');
*
* var emitter = new Emitter();
*/
class Emitter {
/**
* Adds a listener to the collection for the specified eve... | sinfin/folio | vendor/assets/bower_components/emitter-es6/src/index.js | JavaScript | mit | 3,401 |