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 |
|---|---|---|---|---|---|
/*
* Copyright (C) 2007-2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of con... | mogoweb/webkit_for_android5.1 | webkit/Source/WebCore/bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp | C++ | apache-2.0 | 2,606 |
package liquibase.database;
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.expectLastCall;
import static org.easymock.EasyMock.replay;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.ut... | foxel/liquibase | liquibase-core/src/test/java/liquibase/database/AbstractJdbcDatabaseTest.java | Java | apache-2.0 | 8,833 |
#ifndef CERT_TRANS_UTIL_READ_PRIVATE_KEY_H_
#define CERT_TRANS_UTIL_READ_PRIVATE_KEY_H_
#include <openssl/evp.h>
#include <string>
#include "util/statusor.h"
namespace cert_trans {
util::StatusOr<EVP_PKEY*> ReadPrivateKey(const std::string& file);
util::StatusOr<EVP_PKEY*> ReadPublicKey(const std::string& file);
... | rhamilto/origin | vendor/github.com/google/certificate-transparency/cpp/util/read_key.h | C | apache-2.0 | 397 |
package run
import (
"archive/tar"
"bytes"
"fmt"
"io"
"strings"
"github.com/docker/engine-api/types"
"github.com/docker/engine-api/types/container"
"github.com/docker/go-connections/nat"
"github.com/golang/glog"
"github.com/openshift/origin/pkg/oc/bootstrap/docker/dockerhelper"
"github.com/openshift/origi... | ashetty1/kedge | vendor/github.com/openshift/origin/pkg/oc/bootstrap/docker/run/run.go | GO | apache-2.0 | 8,854 |
<?php
/**
* @version $Id: formatter.php 2325 2012-08-13 17:46:48Z btowles $
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2013 RocketTheme, LLC
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*
* Rockettheme Gantry Template uses the Joomla Framework (... | devxive/nawala-rdk | src/lib_gantry/facets/menu/themes/touch/formatter.php | PHP | apache-2.0 | 1,098 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.sql.expression.function.scalar.date... | ern/elasticsearch | x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/datetime/DatePart.java | Java | apache-2.0 | 5,417 |
// Copyright 2011 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 ast
import (
"go/token"
"sort"
"strconv"
)
// SortImports sorts runs of consecutive import lines in import blocks in f.
// It also removes duplicat... | cyberroadie/go | src/go/ast/import.go | GO | bsd-3-clause | 4,958 |
module Sass::Script::Tree
# The parse tree node for a literal scalar value. This wraps an instance of
# {Sass::Script::Value::Base}.
#
# List literals should use {ListLiteral} instead.
class Literal < Node
# The wrapped value.
#
# @return [Sass::Script::Value::Base]
attr_reader :value
# C... | jmatbastos/rbenv | versions/2.2.3/lib/ruby/gems/2.2.0/gems/sass-3.4.19/lib/sass/script/tree/literal.rb | Ruby | mit | 1,014 |
/*
* Copyright 2008 Freescale Semiconductor, 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; either version 2 of the License, or (at your
* option) any later version.
*/
#in... | felixhaedicke/nst-kernel | src/arch/powerpc/platforms/86xx/pic.c | C | gpl-2.0 | 1,899 |
/*
* 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 ... | kaituo/sedge | trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/string/RegexMatch.java | Java | mit | 3,296 |
/**
* Transforms object or iterable to map. Iterable needs to be in the format acceptable by the `Map` constructor.
*
* map = toMap( { 'foo': 1, 'bar': 2 } );
* map = toMap( [ [ 'foo', 1 ], [ 'bar', 2 ] ] );
* map = toMap( anotherMap );
*
*/
export default function toMap<T>(data: Record<string, T> | Array<[st... | markogresak/DefinitelyTyped | types/ckeditor__ckeditor5-utils/v27/src/tomap.d.ts | TypeScript | mit | 365 |
/*
,adPPYba, 88 88 8b,dPPYba, ,adPPYba, 8b,dPPYba,
a8" "" 88 88 88P' "8a a8" "8a 88P' `"8a
8b 88 88 88 d8 8b d8 88 88
"8a, ,aa "8a, ,a88 88b, ,a8" "8a, ,a8" 88 88
`"Ybbd8"' `"YbbdP'Y8 88`YbbdP"' `"YbbdP"' 88 88
... | raymercb/devsulabs | web/css/normalizar.css | CSS | mit | 7,421 |
(function ($, Drupal, window) {
"use strict";
/**
* Attach the tableResponsive function to Drupal.behaviors.
*/
Drupal.behaviors.tableResponsive = {
attach: function (context, settings) {
var $tables = $(context).find('table.responsive-enabled').once('tableresponsive');
if ($tables.length) {
for (va... | teenatt1992/pmidemo | sites/all/modules/responsive_tables/js/tableresponsive.js | JavaScript | gpl-2.0 | 5,554 |
<?php
/**
* Abstract send email
*
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files m... | xplico/CapAnalysis | www/lib/Cake/Network/Email/AbstractTransport.php | PHP | gpl-2.0 | 1,766 |
/*
Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/J is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors.
There are special exceptions to the terms and conditions of the GPLv2 as it is appl... | swankjesse/mysql-connector-j | src/com/mysql/jdbc/exceptions/jdbc4/MySQLSyntaxErrorException.java | Java | gpl-2.0 | 1,719 |
<?php
if ( ( is_single() || is_page() ) && 'et_full_width_page' === get_post_meta( get_the_ID(), '_et_pb_page_layout', true ) )
return;
if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="sidebar">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div> <!-- end #sidebar -->
<?php endif; ?> | gwpdev/udofb | wp-content/themes/udof2015/sidebar.php | PHP | gpl-2.0 | 291 |
// 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 "content/shell/browser/shell_content_browser_client.h"
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/files/file.... | s20121035/rk3288_android5.1_repo | external/chromium_org/content/shell/browser/shell_content_browser_client.cc | C++ | gpl-3.0 | 15,870 |
///////////////////////////////////////////////////////////////////////////////
// Copyright 2015 John Maddock. 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/multiprecision/mpfr.hpp>
#include <... | gwq5210/litlib | thirdparty/sources/boost_1_60_0/libs/multiprecision/test/test_nothrow_mpfr.cpp | C++ | gpl-3.0 | 1,382 |
/*
This file is part of netcdf-4, a netCDF-like interface for HDF5, or a
HDF5 backend for netCDF, depending on your point of view.
This file handles the nc4 attribute functions.
Remember that with atts, type conversion can take place when writing
them, and when reading them.
Copyright 2003-2005, University Corporati... | MengbinZhu/pfldp | ropp-7.0/netcdf-4.1.3/libsrc4/nc4attr.c | C | gpl-3.0 | 25,049 |
<?php
/*
@version v5.20.16 12-Jan-2020
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,... | evltuma/moodle | lib/adodb/drivers/adodb-sqlite3.inc.php | PHP | gpl-3.0 | 10,353 |
<?php
namespace PhpOffice\PhpSpreadsheet\Worksheet;
use Iterator;
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
use PhpOffice\PhpSpreadsheet\Exception;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
/**
* @implements Iterator<string, Column>
*/
class ColumnIterator implements Iterator
{
/**... | collectiveaccess/pawtucket2 | vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnIterator.php | PHP | gpl-3.0 | 4,460 |
import mock
import pytest
import yaml
import inspect
import collections
from ansible.module_utils.six import string_types
from ansible.modules.cloud.openstack import os_server
class AnsibleFail(Exception):
pass
class AnsibleExit(Exception):
pass
def params_from_doc(func):
'''This function extracts th... | britcey/ansible | test/units/modules/cloud/openstack/test_os_server.py | Python | gpl-3.0 | 6,519 |
/* { dg-options "-O2 -fdump-tree-fre3-details" } */
typedef enum
{
} UErrorCode;
class UnicodeString
{
public:
UnicodeString ();
virtual ~UnicodeString ();
};
class A
{
UnicodeString &m_fn1 (UnicodeString &, int &p2, UErrorCode &) const;
};
UnicodeString::UnicodeString () {}
UnicodeString &
A::m_fn1 (UnicodeStri... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/g++.dg/ipa/devirt-40.C | C++ | gpl-3.0 | 452 |
// Copyright 2012 Software Freedom Conservancy. 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 req... | isaksky/selenium | javascript/remote/ui/sessioncontainer.js | JavaScript | apache-2.0 | 12,232 |
using System;
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.NRefactory.TypeSystem;
namespace CoreLib.Plugin {
/// <summary>
/// Used to deterministically order members. It is assumed that all members belong to the same type.
/// </summary>
public class MemberOrderer : IComparer<IMember> {
... | x335/SaltarelleCompiler | Runtime/CoreLib.Plugin/MemberOrderer.cs | C# | apache-2.0 | 2,116 |
package test;
import org.testng.annotations.Test;
/**
* This used to create a StackOverflowError.
*/
public class StaticTest {
@Test
public void test() {
}
@Test
public static class InnerStaticClass extends StaticTest {
}
} | s2oBCN/testng | src/test/java/test/StaticTest.java | Java | apache-2.0 | 240 |
#pragma once
#include "geometry/point2d.hpp"
namespace graphics
{
template <typename T>
class Path
{
private:
vector<m2::Point<T> > m_pts;
public:
void reset(m2::Point<T> const & pt)
{
m_pts.clear();
m_pts.push_back(pt);
}
void lineRel(m2::Point<T> const & pt)
{
... | sidorov-panda/omim | graphics/path.hpp | C++ | apache-2.0 | 714 |
package com.marshalchen.common.uimodule.superlistview;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.widget.GridView;
import android.widget.ListAdapter;
import com.marshalchen.common.uimodule.R;
/**
* Created by kent... | cymcsg/UltimateAndroid | deprecated/UltimateAndroidNormal/UltimateAndroidUi/src/com/marshalchen/common/uimodule/superlistview/SuperGridview.java | Java | apache-2.0 | 3,271 |
/* Essentials */
html, body {
height: 100%;
margin: 0;
padding: 0;
font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
background: white;
font-size: 12px;
}
label, input, button, select, textarea {
font-size: 12px;
font-weight: normal;
line-height: 20px;
}
select, textarea, input... | callmeyan/lemon | webapp/s/mossle/css/layout3.css | CSS | apache-2.0 | 9,578 |
/*
* 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 ... | xsm110/Apache-Beam | sdks/java/core/src/test/java/org/apache/beam/sdk/coders/CoderTest.java | Java | apache-2.0 | 3,407 |
# Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org>
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# License: BSD 3 clause
import numpy as np
import scipy as sp
from scipy import ndimage
from nose.tools import assert_equal, assert_true
from numpy.testing import assert_raises
from sklearn... | toastedcornflakes/scikit-learn | sklearn/feature_extraction/tests/test_image.py | Python | bsd-3-clause | 11,187 |
// 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 CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_
#define CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_
typedef struct _GtkButton GtkButton;
typedef stru... | androidarmv6/android_external_chromium_org | chrome/browser/ui/gtk/first_run_dialog.h | C | bsd-3-clause | 1,687 |
// 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/ui/idle_logout_dialog_view.h"
#include "ash/shell.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include... | ThinkingBridge/platform_external_chromium_org | chrome/browser/chromeos/ui/idle_logout_dialog_view.cc | C++ | bsd-3-clause | 6,885 |
/*
* 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... | strahanjen/strahanjen.github.io | elasticsearch-master/core/src/main/java/org/elasticsearch/common/io/stream/FilterStreamInput.java | Java | bsd-3-clause | 2,063 |
// Type definitions for Chance 1.0.16
// Project: http://chancejs.com
// Definitions by: Chris Bowdon <https://github.com/cbowdon>
// Brice BERNARD <https://github.com/brikou>
// Carlos Sanchez <https://github.com/cafesanu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyp... | AgentME/DefinitelyTyped | types/chance/index.d.ts | TypeScript | mit | 7,513 |
import { Keystone } from '@keystonejs/keystone';
import { KnexAdapter } from '@keystonejs/adapter-knex';
import { Text, Checkbox, Password } from '@keystonejs/fields';
const keystone = new Keystone({
adapter: new KnexAdapter(),
});
keystone.createList('Test', {
fields: {
name: { type: Text },
... | markogresak/DefinitelyTyped | types/keystonejs__fields/keystonejs__fields-tests.ts | TypeScript | mit | 463 |
module Serverspec
module Type
class Cgroup < Base
attr_accessor :subsystem
def method_missing(meth)
if @subsystem.nil?
@subsystem = meth.to_s
return self
else
param = "#{@subsystem}.#{meth.to_s}"
ret = backend.run_command("cgget -n -r #{param} #{... | gauravve/serverspec | lib/serverspec/type/cgroup.rb | Ruby | mit | 484 |
// 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.Runtime.InteropServices;
using System.Security;
namespace Microsoft.Win32.SafeHandles
{
... | iamjasonp/corefx | src/System.IO.Pipes/src/Microsoft/Win32/SafeHandles/SafePipeHandle.cs | C# | mit | 849 |
# frozen_string_literal: true
# copied from https://github.com/collectiveidea/delayed_job/blob/master/spec/delayed/backend/test.rb
require "ostruct"
# An in-memory backend suitable only for testing. Tries to behave as if it were an ORM.
module Delayed
module Backend
module Test
class Job
attr_acce... | Erol/rails | activejob/test/support/delayed_job/delayed/backend/test.rb | Ruby | mit | 3,098 |
// Type definitions for redux-batched-actions 0.1
// Project: https://github.com/tshelburne/redux-batched-actions
// Definitions by: Chad Burggraf <https://github.com/ChadBurggraf>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Action, Reducer } from 'redux';
export as namespace ReduxBatc... | chrismbarr/DefinitelyTyped | redux-batched-actions/index.d.ts | TypeScript | mit | 669 |
/*
* drivers/video/tegra/host/host1x/host1x_channel.h
*
* Tegra Graphics Host Channel
*
* Copyright (c) 2011, NVIDIA Corporation.
*
* 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; eithe... | timduru/tf101-kernel-tegra | drivers/video/tegra_NEW/host/host1x/host1x_channel.h | C | gpl-2.0 | 1,451 |
// { dg-options "-std=gnu++0x" }
// 2010-09-27 Paolo Carlini <paolo.carlini@oracle.com>
// Copyright (C) 2010-2013 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 Publ... | skristiansson/eco32-gcc | libstdc++-v3/testsuite/20_util/uses_allocator/value.cc | C++ | gpl-2.0 | 1,735 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2012 Red Hat
*/
#include <linux/module.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_file.h>
#include <drm/drm_gem_shmem_helper.h>
#include <drm/drm_managed.h>
#include <drm/drm_ioctl.h>
#incl... | apopple/linux | drivers/gpu/drm/udl/udl_drv.c | C | gpl-2.0 | 3,045 |
/* POSIX compatible FILE stream write function.
Copyright (C) 2008-2014 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
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 Softw... | wkritzinger/asuswrt-merlin | release/src/router/wget/lib/stdio-write.c | C | gpl-2.0 | 7,422 |
Then %r{I should see an image with a path of "([^"]*)"} do |path|
page.should have_css("img[src^='#{path}']")
end
Then %r{^the file at "([^"]*)" is the same as "([^"]*)"$} do |web_file, path|
expected = IO.read(path)
actual = if web_file.match %r{^https?://}
Net::HTTP.get(URI.parse(web_file))
else
visi... | samn/spectral-workbench | webserver/vendor/plugins/paperclip/features/step_definitions/html_steps.rb | Ruby | gpl-3.0 | 384 |
type='TrueType'
name='Calligrapher-Regular'
desc={'Ascent':899,'Descent':-234,'CapHeight':731,'Flags':32,'FontBBox':'[-50 -234 1328 899]','ItalicAngle':0,'StemV':70,'MissingWidth':800}
up=-200
ut=20
cw={
'\x00':800,'\x01':800,'\x02':800,'\x03':800,'\x04':800,'\x05':800,'\x06':800,'\x07':800,'\x08':800,'\t':800,'\n':8... | sesuncedu/bitcurator | tools/py3fpdf/attic/font/calligra.py | Python | gpl-3.0 | 2,763 |
(function() {
var BATCH_DRAW_STOP_TIME_DIFF = 500;
var now =(function() {
if (Kinetic.root.performance && Kinetic.root.performance.now) {
return function() {
return Kinetic.root.performance.now();
};
}
else {
return function() {
... | kimadactyl/NoiseEater | public/js/vendor/kineticjs/src/Animation.js | JavaScript | gpl-3.0 | 9,374 |
// test for iterating over function properties
var d = "";
function f(a,b) {}
f.c = "Foo";
for (i in f) d+=i;
result = d == "c";
| lancernet/Espruino | tests/test_iterate_function_object_props_for_in.js | JavaScript | mpl-2.0 | 134 |
<%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %>
<%inherit file="../main.html" />
<%namespace name='static' file='/static_content.html'/>
<%block name="bodyclass">register verification-process is-not-verified step-confirmation</%block>
<%block name="pagetit... | olexiim/edx-platform | lms/templates/verify_student/reverification_confirmation.html | HTML | agpl-3.0 | 3,158 |
// @(#)root/roostats:$Id$
// Author: Kyle Cranmer
/*************************************************************************
* Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | perovic/root | roofit/roostats/inc/RooStats/BernsteinCorrection.h | C | lgpl-2.1 | 1,926 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.sql.qa.security;
import org.elasticsearch.com... | nknize/elasticsearch | x-pack/plugin/sql/qa/server/security/src/test/java/org/elasticsearch/xpack/sql/qa/security/CliSelectIT.java | Java | apache-2.0 | 871 |
// Copyright (C) 2009 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 applicable ... | gracefullife/gerrit | gerrit-server/src/main/java/com/google/gerrit/server/auth/ldap/LdapType.java | Java | apache-2.0 | 3,163 |
// Copyright 2014 The Crashpad 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 ... | scheib/chromium | third_party/crashpad/crashpad/compat/non_win/winnt.h | C | bsd-3-clause | 8,032 |
# Fixtures were created for acts_as_adjency_list, but now we have nested set, so we need to rebuild it after import
Taxon.rebuild!
Taxon.all.each{|t| t.send(:set_permalink); t.save}
| rafarubert/loja | vendor/spree/db/sample/taxons.rb | Ruby | bsd-3-clause | 182 |
describe "Complex#rationalize" do
it "raises RangeError if self has non-zero imaginary part" do
lambda { Complex(1,5).rationalize }.should raise_error(RangeError)
end
it "raises RangeError if self has 0.0 imaginary part" do
lambda { Complex(1,0.0).rationalize }.should raise_error(RangeError)
end
it ... | digitalextremist/rubinius | spec/ruby/core/complex/rationalize_spec.rb | Ruby | bsd-3-clause | 1,113 |
#!/usr/bin/env bash
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of ... | 7anner/grpc | tools/jenkins/run_full_performance.sh | Shell | bsd-3-clause | 3,096 |
YUI.add('datatable-body', function(Y) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isArray,
... | bootcdn/cdnjs | ajax/libs/yui/3.5.0pr4/datatable-body/datatable-body.js | JavaScript | mit | 32,017 |
<?php
namespace Drupal\Tests\language\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;
/**
* Tests existence of language local tasks.
*
* @group language
*/
class LanguageLocalTasksTest extends LocalTaskIntegrationTestBase {
protected function setUp() {
$this->directoryList = array(
... | windtrader/drupalvm-d8 | web/core/modules/language/tests/src/Unit/Menu/LanguageLocalTasksTest.php | PHP | gpl-2.0 | 1,291 |
/*
* Copyright 2010 Tilera Corporation. 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 published by the Free Software Foundation, version 2.
*
* This program is distributed in the hope that it will ... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/arch/tile/lib/cacheflush.c | C | gpl-2.0 | 770 |
/*
* originally written by: Kirk Reiser <kirk@braille.uwo.ca>
* this version considerably modified by David Borowski, david575@rogers.com
*
* Copyright (C) 1998-99 Kirk Reiser.
* Copyright (C) 2003 David Borowski.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of t... | mericon/Xp_Kernel_LGH850 | virt/drivers/staging/speakup/speakup_ltlk.c | C | gpl-2.0 | 6,157 |
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a... | insbadia-dawm8/gitteam | proyecto/controllers/admin/AdminSupplyOrdersController.php | PHP | mit | 96,247 |
/**
* Parse JavaScript SDK v1.10.1
*
* The source tree of this library can be found at
* https://github.com/ParsePlatform/Parse-SDK-JS
*/
(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 wi... | seogi1004/cdnjs | ajax/libs/parse/1.10.2/parse.js | JavaScript | mit | 460,269 |
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a... | insbadia-dawm8/gitteam | proyecto/classes/Delivery.php | PHP | mit | 3,194 |
<?php
namespace Sabre\CardDAV;
use Sabre\DAV;
/**
* Parses the addressbook-query report request body.
*
* Whoever designed this format, and the CalDAV equivalent even more so,
* has no feel for design.
*
* @copyright Copyright (C) 2007-2014 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot... | zzottel/hubzilla | vendor/sabre/dav/lib/Sabre/CardDAV/AddressBookQueryParser.php | PHP | mit | 6,043 |
Meteor.publish('settings', function() {
var options = {};
if(!isAdminById(this.userId)){
options = _.extend(options, {
fields: {
mailChimpAPIKey: false,
mailChimpListId: false
}
});
}
return Settings.find({}, options);
});
Meteor.publish('invites', function(){
if(canViewBy... | UCSC-MedBook/MedBook-Telescope3 | webapp/server/publications/other.js | JavaScript | mit | 400 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Functions to load the test cases ("koans") that make up the
Path to Enlightenment.
'''
import io
import unittest
# The path to enlightenment starts with the following:
KOANS_FILENAME = 'koans.txt'
def filter_koan_names(lines):
'''
Strips leading and traili... | haroldtreen/python_koans | runner/path_to_enlightenment.py | Python | mit | 1,482 |
(function(){var d=window.AmCharts;d.AmRadarChart=d.Class({inherits:d.AmCoordinateChart,construct:function(a){this.type="radar";d.AmRadarChart.base.construct.call(this,a);this.cname="AmRadarChart";this.marginRight=this.marginBottom=this.marginTop=this.marginLeft=0;this.radius="35%";d.applyTheme(this,a,this.cname)},initC... | ahocevar/cdnjs | ajax/libs/amcharts/3.19.5/radar.js | JavaScript | mit | 6,454 |
#
# Makefile for the drm device driver. This driver provides support for the
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
ccflags-y := -Iinclude/drm
radeon-y := radeon_drv.o radeon_cp.o radeon_state.o radeon_mem.o radeon_irq.o r300_cmdbuf.o r600_cp.o
radeon-$(CONFIG_COMPAT) += radeon_ioc32.o
... | pichina/linux-bcache | drivers/gpu/drm/radeon/Makefile | Makefile | gpl-2.0 | 357 |
/*
* Compressed RAM block device
*
* Copyright (C) 2008, 2009, 2010 Nitin Gupta
*
* This code is released using a dual license strategy: BSD/GPL
* You can choose the licence that better fits your requirements.
*
* Released under the terms of 3-clause BSD License
* Released under the terms of GNU General Publi... | PRJosh/kernel_motorola_msm8916 | drivers/staging/zram/zram_drv.c | C | gpl-2.0 | 24,872 |
/*
* User-space Probes (UProbes)
*
* 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 of the License, or
* (at your option) any later version.
*
* This program is distribut... | HarveyHunt/linux | kernel/events/uprobes.c | C | gpl-2.0 | 51,206 |
<?php
if ($classes) {
$classes = ' class="'. $classes . ' "';
}
?>
<?php if( theme_get_setting('mothership_poorthemers_helper') ){ ?>
<!-- comment.tpl.php -->
<?php } ?>
<article<?php print $classes; ?><?php print $attributes; ?>>
<?php print render($title_prefix); ?>
<?php if ($title): ?>
<h3<?php print $ti... | alexdbrown/gabbin-gosling | themes/mothership/mothership/templates/comment.tpl.php | PHP | gpl-2.0 | 1,386 |
@CHARSET "ISO-8859-1";
/* ----- Strip Panel ------- */
.ug-videoskin-right-title-only .ug-strip-panel{
background-color:#232323;
}
/* ----- Thumb Wrapper ------- */
.ug-videoskin-right-title-only .ug-thumb-wrapper{
background-color:#232323;
border-bottom:1px solid #393939;
width:360px;
height:60px;
cursor:poi... | silverboxdev/shottsyarts.com | wp-content/plugins/unitegallery/unitegallery-plugin/themes/video/skin-right-title-only.css | CSS | gpl-2.0 | 2,958 |
/* tc-i386.c -- Assemble Intel syntax code for ix86/x86-64
Copyright (C) 2009-2015 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS 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 Softwa... | a0u/binutils-gdb | gas/config/tc-i386-intel.c | C | gpl-2.0 | 26,445 |
/* Common hooks for Adapteva Epiphany
Copyright (C) 1994-2013 Free Software Foundation, Inc.
Contributed by Embecosm on behalf of Adapteva, Inc.
This file is part of GCC.
GCC 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 Sof... | atgreen/gcc | gcc/common/config/epiphany/epiphany-common.c | C | gpl-2.0 | 1,543 |
/*
** $Id: lobject.c,v 1.97 2003/04/03 13:35:34 roberto Exp $
** Some generic functions over Lua objects
** See Copyright Notice in lua.h
*/
#include <ctype.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#define lobject_c
#include "lua.h"
#include "ldo.h"
#include "lmem.h"
#include "lobject.h"
#incl... | kidmaple/CoolWall | user/lua/src/lobject.c | C | gpl-2.0 | 4,994 |
/***********************************************************************
filename: CEGUIForwardRefs.h
created: 21/2/2004
author: Paul D Turner
purpose: Forward declares all core system classes
*************************************************************************/
/*******************************************... | gorkinovich/DefendersOfMankind | dependencies/include/cegui/CEGUIForwardRefs.h | C | gpl-3.0 | 5,430 |
SET PATH=%PATH%;..\..\lib
Debug\qt_example.exe
| batmancn/MyLife | works/SipWrapper/sipstack/resiprocate-1.7/tfm/contrib/cppunit/examples/qt/run.bat | Batchfile | gpl-3.0 | 47 |
// Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package org.pantsbuild.tools.jar;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;
import java.util.jar.Attributes.Name;
import ja... | cevaris/pants | src/java/org/pantsbuild/tools/jar/Main.java | Java | apache-2.0 | 17,907 |
// (C) Copyright 2015 Martin Dougiamas
//
// 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... | gethanos/leoapp | www/core/components/fileuploader/services/delegate.js | JavaScript | apache-2.0 | 8,373 |
/**
* Copyright 2016 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... | DistroScale/amphtml | test/functional/utils/test-bytes.js | JavaScript | apache-2.0 | 4,931 |
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include "cmockery.h"
#include "../auth.c"
#ifdef ENABLE_GSS
/* Unit tests for check_valid_until_for_gssapi() function */
void
test_checkValidUntilForGssapi1(void **state)
{
int result = -1;
Port *port = (Port *) malloc(sizeof(Port));
port->user_na... | rubikloud/gpdb | src/backend/libpq/test/auth_test.c | C | apache-2.0 | 3,458 |
/*
Copyright 2019 The Knative 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, soft... | knative-sandbox/net-gateway-api | vendor/knative.dev/pkg/reconciler/testing/hooks.go | GO | apache-2.0 | 5,679 |
require 'cxxstdlib'
require 'exceptions'
require 'formula'
require 'keg'
require 'tab'
require 'bottles'
require 'caveats'
require 'cleaner'
require 'formula_cellar_checks'
require 'install_renamed'
require 'cmd/tap'
require 'hooks/bottles'
require 'debrew'
class FormulaInstaller
include FormulaCellarChecks
def s... | dalguji/homebrew | Library/Homebrew/formula_installer.rb | Ruby | bsd-2-clause | 19,071 |
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
/**
*/
if (!defined('IN_PHPBB'))
{
exit;... | kivi8/ars-poetica | www/forum/language/en/help_faq.php | PHP | bsd-3-clause | 28,732 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Layout Test: parsing grid-area with valid values</title>
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#propdef-grid-area">
<meta name="assert" content="g... | scheib/chromium | third_party/blink/web_tests/external/wpt/css/css-grid/parsing/grid-area-valid.html | HTML | bsd-3-clause | 3,782 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scrolling Logo/Thumbnail Slider Demo - Jssor Slider, Carousel, Slideshow with Javascript Source Code</title>
</head>
<body style="font-family:Arial, Verdana;background-color:#f... | bhdm/wzc | src/Wzc/MainBundle/Resources/public/JssorSlider/demos-no-jquery/scrolling-logo-thumbnail-slider.source.html | HTML | mit | 7,712 |
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Snapping & Splitting</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
.olControlEditingToolbar .olControlModifyFeature... | spatindsaongo/geos | web/js/openlayers/examples/snap-split.html | HTML | mit | 10,359 |
/*******************************************************************************
* Copyright 2018 Intel 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.o... | honix/godot | thirdparty/oidn/mkl-dnn/src/cpu/gemm/s8x8s32/jit_avx512_core_u8_copy_sum_at_kern.cpp | C++ | mit | 76,165 |
// ======================================================================== //
// Copyright 2009-2019 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | Paulloz/godot | thirdparty/oidn/common/tensor.h | C | mit | 2,439 |
export { ColorSwitch20 as default } from "../../";
| georgemarshall/DefinitelyTyped | types/carbon__icons-react/es/color-switch/20.d.ts | TypeScript | mit | 51 |
loadIonicon('<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M248.03 116.81l24.68-24.678 19.232 19.234-24.678 24.677zM176 125.7c-45.3 0-82.3 37-82.3 82.3 0 17.5 5.5 33.7 14.9 47 15.3-13 33.9-22.6 54.7-27.6l13.2-16.6c13.6-17.1 30.7-30.2 50.8-38.9 6.1-2.6 12.4-4.8 19-6.6-14... | sashberd/cdnjs | ajax/libs/ionicons/4.0.0-6/ionicons/svg/md-partly-sunny.js | JavaScript | mit | 791 |
export { ChemistryReference20 as default } from "../../";
| markogresak/DefinitelyTyped | types/carbon__icons-react/es/chemistry--reference/20.d.ts | TypeScript | mit | 58 |
// 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 "base/time/time.h"
#include "chrome/browser/extensions/activity_log/activity_action_constants.h"
#include "chrome/browser/extensions/activity_log... | qtekfun/htcDesire820Kernel | external/chromium_org/chrome/browser/extensions/activity_log/uma_policy_unittest.cc | C++ | gpl-2.0 | 8,976 |
/*
* checkgridheader.{cc,hh} -- element checks Grid header for correctness
* (checksums, lengths)
* Douglas S. J. De Couto
* from checkipheader.{cc,hh} by Robert Morris
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a
... | NetSys/click | elements/grid/checkgridheader.cc | C++ | gpl-2.0 | 2,941 |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Block data types and constants. Directly include this file only to
* break include dependency loop.
*/
#ifndef __LINUX_BLK_TYPES_H
#define __LINUX_BLK_TYPES_H
#include <linux/types.h>
#include <linux/bvec.h>
#include <linux/ktime.h>
struct bio_set;
struct bio;
struct bi... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/include/linux/blk_types.h | C | gpl-2.0 | 13,164 |
/*
* Adaptec AAC series RAID controller driver
* (c) Copyright 2001 Red Hat Inc.
*
* based on the old aacraid driver that is..
* Adaptec aacraid device driver for Linux.
*
* Copyright (c) 2000-2010 Adaptec, Inc.
* 2010-2015 PMC-Sierra, Inc. (aacraid@pmc-sierra.com)
* 2016-2017 Microsemi Corp. (... | bw-oss/linux | drivers/scsi/aacraid/linit.c | C | gpl-2.0 | 59,827 |
/* $XFree86: xc/lib/GL/dri/dri_util.h,v 1.1 2002/02/22 21:32:52 dawes Exp $ */
/**
* \file dri_util.h
* DRI utility functions definitions.
*
* This module acts as glue between GLX and the actual hardware driver. A DRI
* driver doesn't really \e have to use any of this - it's optional. But, some
* useful stuff i... | yuyuyu101/VirtualBox-NetBSD | src/VBox/Additions/x11/x11include/mesa-7.2/src/mesa/drivers/dri/common/dri_util.h | C | gpl-2.0 | 15,844 |
#!/usr/bin/python
#
# Copyright (c) 2017 Zim Kalinowski, <zikalino@microsoft.com>
# Copyright (c) 2019 Matti Ranta, (@techknowlogick)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
AN... | ilpianista/ansible | test/support/integration/plugins/modules/azure_rm_mariadbdatabase_info.py | Python | gpl-3.0 | 6,304 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | michael-milette/moodle | lib/ddl/tests/ddl_test.php | PHP | gpl-3.0 | 110,551 |
// @(#)root/ged:$Id$
// Author: Carsten Hof 16/08/04
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | mhuwiler/rootauto | gui/ged/inc/TH1Editor.h | C | lgpl-2.1 | 9,040 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.