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 |
|---|---|---|---|---|---|
// ---------------------------------------------------------------------
//
// Copyright (C) 2003 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Pu... | pesser/dealii | tests/bits/cone_01.cc | C++ | lgpl-2.1 | 1,753 |
//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#in... | nuclear-wizard/moose | framework/src/postprocessors/AreaPostprocessor.C | C++ | lgpl-2.1 | 1,109 |
# Import the SlideSet base class
import math
from ..slidesets import RemarkSlideSet
##
# A special set of slides for creating cover page and contents
class MergeCoverSet(RemarkSlideSet):
##
# Extract the valid parameters for this object
@staticmethod
def validParams():
params = RemarkSlideSet.validParams(... | danielru/moose | python/PresentationBuilder/slidesets/MergeCoverSet.py | Python | lgpl-2.1 | 1,395 |
/**
* This component provides a grid holding selected items from a second store of potential
* members. The `store` of this component represents the selected items. The `searchStore`
* represents the potentially selected items.
*
* The default view defined by this class is intended to be easily replaced by derivin... | department-of-veterans-affairs/ChartReview | web-app/js/ext-5.1.0/src/view/MultiSelectorSearch.js | JavaScript | apache-2.0 | 8,477 |
// =================================================================================================
// Copyright 2011 Twitter, Inc.
// -------------------------------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use ... | abel-von/commons | src/java/com/twitter/common/net/UrlResolver.java | Java | apache-2.0 | 15,827 |
/*
* 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 ... | ketralnis/elephant-bird | src/java/com/twitter/elephantbird/pig/piggybank/InvokeForDouble.java | Java | apache-2.0 | 1,672 |
define([
'./addExtensionsRequired',
'./addToArray',
'./ForEach',
'./getAccessorByteStride',
'../../Core/Cartesian3',
'../../Core/Math',
'../../Core/clone',
'../../Core/defaultValue',
'../../Core/defined',
'../../Core/Quaternion',
... | EnquistLab/ffdm-frontend | public/assets/images/Workers/ThirdParty/GltfPipeline/updateVersion.js | JavaScript | apache-2.0 | 36,201 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.... | jkotas/roslyn | src/VisualStudio/Core/Def/Implementation/Workspace/VisualStudioDocumentNavigationService.cs | C# | apache-2.0 | 15,102 |
/*
* 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 ... | tr3vr/jena | jena-arq/src/main/java/org/apache/jena/sparql/expr/E_StrEncodeForURI.java | Java | apache-2.0 | 1,365 |
/*
* 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 ... | apache/flink | flink-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/proxy/KinesisProxyV2Interface.java | Java | apache-2.0 | 2,775 |
cask 'dragthing' do
version '5.9.12'
sha256 '4a351c593aff1c3214613d622a4e81f184e8ae238df6db921dd822efeefe27e6'
# amazonaws.com is the official download host per the vendor homepage
url "https://s3.amazonaws.com/tlasystems/DragThing-#{version}.dmg"
name 'DragThing'
homepage 'http://www.dragthing.com'
lice... | mingzhi22/homebrew-cask | Casks/dragthing.rb | Ruby | bsd-2-clause | 361 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... | exclie/Imagenologia | vendor/zendframework/zendframework/tests/ZendTest/Mvc/Router/Http/TestAsset/DummyRouteWithParam.php | PHP | bsd-3-clause | 1,223 |
require 'spec_helper'
module RailsBestPractices::Core
describe Klasses do
it { should be_a_kind_of Array }
context "Klass" do
context "#class_name" do
it "gets class name without module" do
klass = Klass.new("BlogPost", "Post", [])
expect(klass.class_name).to eq("BlogPost")... | eprislac/guard-yard | vendor/jruby/1.9/gems/rails_best_practices-1.15.7/spec/rails_best_practices/core/klasses_spec.rb | Ruby | mit | 1,109 |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*=============================================================================
**
** Class: ArithmeticException
**
**
** Purpose: Exception class for bad arithmetic conditions!
**
**
============================================... | sekcheong/referencesource | mscorlib/system/arithmeticexception.cs | C# | mit | 1,736 |
// 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.
// Add any internal types that we need to forward from mscorlib.
// These types are required for Desktop to Core s... | nbarbettini/corefx | src/shims/manual/mscorlib.forwards.cs | C# | mit | 3,065 |
<?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\Console\Tests\Style;
use PHPUnit\Framework\TestCase;
... | Teisi/typo3-deploy | vendor/symfony/console/Tests/Style/SymfonyStyleTest.php | PHP | mit | 3,826 |
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace System.ServiceModel.Channels
{
using System.Threading;
enum AsyncReceiveResult
{
Completed,
... | akoeplinger/referencesource | System.ServiceModel/System/ServiceModel/Channels/IMessageSource.cs | C# | mit | 733 |
/*
* Chromaprint -- Audio fingerprinting toolkit
* Copyright (C) 2010 Lukas Lalinsky <lalinsky@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 o... | josephwilk/finger-smudge | vendor/chromaprint/src/chroma_filter.cpp | C++ | epl-1.0 | 1,885 |
<?php
/**
* Schema object for: PaymentMethodQueryRq
*
* @author "Keith Palmer Jr." <Keith@ConsoliByte.com>
* @license LICENSE.txt
*
* @package QuickBooks
* @subpackage QBXML
*/
/**
*
*/
require_once 'QuickBooks.php';
/**
*
*/
require_once 'QuickBooks/QBXML/Schema/Object.php';
/**
*
*/
class Quick... | SayenkoDesign/selectahead | wp-content/plugins/woocommerce-quickbooks-pos-2013/QuickBooks/QBXML/Schema/Object/PaymentMethodQueryRq.php | PHP | gpl-2.0 | 3,453 |
/*
* Copyright (c) 1997, 2013, 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 ... | stain/jdk8u | src/share/classes/javax/swing/text/DefaultStyledDocument.java | Java | gpl-2.0 | 107,201 |
<?php
/**
*
* Amazon payment plugin
*
* @author Valerie Isaksen
* @version $Id: ipnurl.php 8703 2015-02-15 17:11:16Z alatak $
* @package VirtueMart
* @subpackage payment
* Copyright (C) 2004-2015 Virtuemart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* V... | isengartz/food | tmp/install_5662784dc4d75/admin/plugins/vmpayment/amazon/fields/ipnurl.php | PHP | gpl-2.0 | 1,639 |
/////////////////////////////////////////////////////////////////////////////
// Name: src/msw/tbar95.cpp
// Purpose: wxToolBar
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id: tbar95.cpp 58446 2009-01-26 23:32:16Z VS $
// Copyright: (c) Julian Smart
// Licence: ... | radiaku/decoda | libs/wxWidgets/src/msw/tbar95.cpp | C++ | gpl-3.0 | 58,053 |
<?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 ... | enovation/moodle | filter/activitynames/version.php | PHP | gpl-3.0 | 1,206 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | ivesbai/server | vendor/ZendFramework/library/Zend/Json/Server/Exception.php | PHP | agpl-3.0 | 1,173 |
/** Messages for Sinhala (සිංහල)
* Exported from translatewiki.net
*
* Translators:
* - Singhalawap
*/
var I18n = {
on_leave_page: "ඔබගේ වෙනස්කිරීම් අහිමිවනු ඇත"
};
| railsfactory-sriman/knowledgeBase | public/javascripts/i18n/si.js | JavaScript | agpl-3.0 | 235 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | ratliff/server | vendor/ZendFramework/library/Zend/Validate/Db/Abstract.php | PHP | agpl-3.0 | 4,823 |
//===- CodeViewRecordIO.cpp -------------------------------------*- C++ -*-===//
//
// 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
//
//===---------------------------... | root-mirror/root | interpreter/llvm/src/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp | C++ | lgpl-2.1 | 11,857 |
//===-- RISCVFrameLowering.cpp - RISCV Frame Information ------------------===//
//
// 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
//
//===---------------------------... | root-mirror/root | interpreter/llvm/src/lib/Target/RISCV/RISCVFrameLowering.cpp | C++ | lgpl-2.1 | 15,861 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Nest
{
public class FieldDataFilterDescriptor
{
internal FieldDataFilter Filter { get; private set; }
public FieldDataFilterDescriptor()
{
this.Filter = new FieldDataFilter();
}
public FieldDataFilterDescr... | amyzheng424/elasticsearch-net | src/Nest/Domain/Mapping/Descriptors/FieldDataFilterDescriptor.cs | C# | apache-2.0 | 893 |
//Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt.
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
namespace Sce.Atf.Controls
{
/// <summary>
/// Represents a combination of a standard button on th... | SonyWWS/ATF | Framework/Atf.Gui.WinForms/Controls/SplitButton.cs | C# | apache-2.0 | 14,095 |
/*
* Copyright 2000-2013 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... | carrchang/vaadin | uitest/src/com/vaadin/tests/themes/valo/TestIcon.java | Java | apache-2.0 | 1,580 |
//Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq.Expressions;
namespace Sce.Atf.Controls.PropertyEditing
{
/// <summary>
/// Helper to support INotifyPropertyChanged using expression tre... | jethac/ATF | Framework/Atf.Gui/Controls/PropertyEditing/PropertyChangedExtensions.cs | C# | apache-2.0 | 1,642 |
#include "testing/testing.hpp"
#include "coding/trie.hpp"
#include "coding/trie_builder.hpp"
#include "coding/trie_reader.hpp"
#include "coding/byte_stream.hpp"
#include "coding/write_to_sink.hpp"
#include "base/logging.hpp"
#include "std/algorithm.hpp"
#include "std/string.hpp"
#include "std/vector.hpp"
#include "st... | victorbriz/omim | coding/coding_tests/trie_test.cpp | C++ | apache-2.0 | 9,466 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.Host;
namespace Micro... | rgani/roslyn | src/Features/Core/Portable/CodeFixes/FixAllOccurrences/IFixAllGetFixesService.cs | C# | apache-2.0 | 1,008 |
/*
* 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 ... | cleliameneghin/sling | bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/Histogram.java | Java | apache-2.0 | 1,168 |
/*
* 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 ... | hequn8128/flink | flink-runtime/src/main/java/org/apache/flink/runtime/blob/PermanentBlobCache.java | Java | apache-2.0 | 8,721 |
/*
* Copyright (C) 2008 ZXing 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 agr... | kerwinxu/barcodeManager | zxing/zxing.appspot.com/src/com/google/zxing/web/generator/client/EmailGenerator.java | Java | bsd-2-clause | 2,186 |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../../../fixtures/kernel/classes', __FILE__)
describe :method_missing_defined_module, :shared => true do
describe "for a Module with #method_missing defined" do
it "is not called when a defined method is called" do
@object... | dblock/rubinius | spec/ruby/shared/kernel/method_missing.rb | Ruby | bsd-3-clause | 3,792 |
'use strict';
var utils = require('./utils');
var normalizeHeaderName = require('./helpers/normalizeHeaderName');
var PROTECTION_PREFIX = /^\)\]\}',?\n/;
var DEFAULT_CONTENT_TYPE = {
'Content-Type': 'application/x-www-form-urlencoded'
};
function setContentTypeIfUnset(headers, value) {
if (!utils.isUndefined(hea... | MichaelTsao/yanpei | web/js/node_modules/leancloud-realtime/node_modules/axios/lib/defaults.js | JavaScript | bsd-3-clause | 1,867 |
import * as util from 'util';
import assert = require('assert');
import { readFile } from 'fs';
{
// Old and new util.inspect APIs
util.inspect(["This is nice"], false, 5);
util.inspect(["This is nice"], false, null);
util.inspect(["This is nice"], {
colors: true,
depth: 5,
cust... | markogresak/DefinitelyTyped | types/node/v14/test/util.ts | TypeScript | mit | 12,010 |
<?php
function foo($foo, $bar, $foobar) {}
?>
| drBenway/siteResearch | vendor/pdepend/pdepend/src/test/resources/files/issues/067/testParserHandlesParameterOptionalIsFalseForAllParameters_1.php | PHP | mit | 46 |
// package: google.protobuf
// file: type.proto
import * as jspb from "../../index";
import * as google_protobuf_any_pb from "./any_pb";
import * as google_protobuf_source_context_pb from "./source_context_pb";
export class Type extends jspb.Message {
getName(): string;
setName(value: string): void;
clearField... | dsebastien/DefinitelyTyped | types/google-protobuf/google/protobuf/type_pb.d.ts | TypeScript | mit | 7,723 |
package myrcpapp;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;
public class View extends ViewPart {
@Override
public void createPartControl(final Composite parent) {
Text text = new Text(parent, SWT.MULTI | SWT.B... | mcmil/wuff | examples/RcpApp-3/MyRcpApp/src/main/java/myrcpapp/View.java | Java | mit | 435 |
module.exports = require('./lib/rework'); | atomify/atomify-css | test/fixtures/css/node_modules/rework-clone/node_modules/rework/index.js | JavaScript | mit | 42 |
package nsq
import (
"fmt"
"github.com/bitly/nsq/util"
"github.com/bmizerany/assert"
"io/ioutil"
"log"
"os"
"strconv"
"testing"
"time"
)
func TestNsqdToLookupd(t *testing.T) {
log.SetOutput(ioutil.Discard)
defer log.SetOutput(os.Stdout)
topicName := "cluster_test" + strconv.Itoa(int(time.Now().Unix()))
... | josephyzhou/nsq | nsqd/test/cluster_test.go | GO | mit | 3,316 |
<?php
/*
* Copyright 2011 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 agreed to in... | nsberrow/pi.parklands.co.za | wp-content/plugins/googleappslogin-enterprise/core/Google/Signer/PEM.php | PHP | gpl-2.0 | 1,783 |
package org.wordpress.android.ui.notifications.blocks;
import android.content.Context;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.View;
import android.view.animation.DecelerateInterpolator;
import android.widget.TextView;
import org.json.JSONObject;
import org.wordpress.androi... | AftonTroll/WordPress-Android | WordPress/src/main/java/org/wordpress/android/ui/notifications/blocks/UserNoteBlock.java | Java | gpl-2.0 | 7,212 |
package introsde.document.ws;
import introsde.document.model.LifeStatus;
import introsde.document.model.Person;
import java.util.List;
import javax.jws.WebService;
//Service Implementation
@WebService(endpointInterface = "introsde.document.ws.People",
serviceName="PeopleService")
public class PeopleImpl implement... | orlera/introsde | lab09/Server/src/introsde/document/ws/PeopleImpl.java | Java | gpl-3.0 | 1,425 |
/*
* 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 ... | happyjack27/autoredistrict | src/org/apache/commons/math3/linear/FieldDecompositionSolver.java | Java | gpl-3.0 | 3,261 |
<?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 ... | micaherne/moodle | question/type/calculated/lib.php | PHP | gpl-3.0 | 1,284 |
/*
* Copyright 2000-2013 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... | asedunov/intellij-community | platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/task/ToolWindowModuleService.java | Java | apache-2.0 | 4,952 |
package shingle
import (
"container/ring"
"fmt"
"github.com/blevesearch/bleve/analysis"
"github.com/blevesearch/bleve/registry"
)
const Name = "shingle"
type ShingleFilter struct {
min int
max int
outputOriginal bool
tokenSeparator string
fill string
ring *ring.Ri... | pmezard/bleve | analysis/token_filters/shingle/shingle.go | GO | apache-2.0 | 3,459 |
<?php
/** Telugu (తెలుగు)
*
* See MessagesQqq.php for message documentation incl. usage of parameters
* To improve a translation please visit http://translatewiki.net
*
* @ingroup Language
* @file
*
* @author Arjunaraoc
* @author Chaduvari
* @author Jprmvnvijay5
* @author Kaganer
* @author Kiranmayee
* @au... | BRL-CAD/web | wiki/languages/messages/MessagesTe.php | PHP | bsd-2-clause | 376,813 |
package cz.metacentrum.perun.webgui.json.authzResolver;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONObject;
import cz.metacentrum.perun.webgui.client.PerunWebSession;
import cz.metacentrum.perun.webgui.client.UiElements;
import... | zlamalp/perun | perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/json/authzResolver/RemoveAdmin.java | Java | bsd-2-clause | 13,511 |
/*
* kmp_debug.cpp -- debug utilities for the Guide library
*/
//===----------------------------------------------------------------------===//
//
// 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: ... | endlessm/chromium-browser | third_party/llvm/openmp/runtime/src/kmp_debug.cpp | C++ | bsd-3-clause | 3,628 |
# Copyright (c) 2006-2010 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# 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, o... | michalliu/chromium-depot_tools | third_party/pylint/checkers/typecheck.py | Python | bsd-3-clause | 16,288 |
// 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 "components/policy/core/common/cloud/device_management_service.h"
#include <utility>
#include "base/bind.h"
#include "base/compiler_specifi... | 7kbird/chrome | components/policy/core/common/cloud/device_management_service.cc | C++ | bsd-3-clause | 17,300 |
// RUN: %clang_cc1 -verify -fopenmp %s -Wuninitialized
// RUN: %clang_cc1 -verify -fopenmp-simd %s -Wuninitialized
extern int omp_default_mem_alloc;
void xxx(int argc) {
int i, lin, step; // expected-note {{initialize the variable 'lin' to silence this warning}} expected-note {{initialize the variable 'step' to si... | endlessm/chromium-browser | third_party/llvm/clang/test/OpenMP/for_simd_linear_messages.cpp | C++ | bsd-3-clause | 8,731 |
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { dataLoader } from "./DataLoader";
import { JSONParser } from "./JSONParser";
... | cdnjs/cdnjs | ajax/libs/amcharts4/4.10.9/.internal/core/data/DataSource.js | JavaScript | mit | 20,447 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.javascript.drivers;
import java.io.File;
import java.io.FileReader;
import java.io.IOExceptio... | NhlalukoG/android_samsung_j7e3g | vendor/samsung/preloads/UniversalMDMClient/rhino1_7R4/testsrc/org/mozilla/javascript/drivers/JsTestsBase.java | Java | gpl-2.0 | 2,042 |
// PR c++/82293
// { dg-do compile { target c++11 } }
// { dg-options "-Wshadow" }
template <typename>
struct S {
int f{[this](){return 42;}()};
};
int main(){
return S<int>{}.f;
}
| Gurgel100/gcc | gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice24.C | C++ | gpl-2.0 | 187 |
<?php
/**
* This file is automatically @generated by {@link BuildMetadataPHPFromXml}.
* Please don't modify it directly.
*/
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '
[126-9]\\d{4,11}|
3(?:
[0-79]\\d{3,10}|
8[2-9]\\d{2,9}
)
... | ingagecreative/cg | wp-content/plugins/constant-contact-api/vendor/giggsey/libphonenumber-for-php/src/libphonenumber/data/PhoneNumberMetadata_RS.php | PHP | gpl-2.0 | 5,064 |
<?php
/*
* Copyright 2016 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* 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 re... | SheYo/bc | webform_handlers/vendor/jms/serializer/tests/Fixtures/ObjectWithNullProperty.php | PHP | gpl-2.0 | 980 |
// -*- c-basic-offset: 4 -*-
/*
* elementmap.{cc,hh} -- an element map class
* Eddie Kohler
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
* Copyright (c) 2000 Mazu Networks, Inc.
* Copyright (c) 2001 International Computer Science Institute
* Copyright (c) 2008-2009 Meraki, Inc.
*
* Permiss... | NetSys/click | tools/lib/elementmap.cc | C++ | gpl-2.0 | 21,491 |
/*
* Copyright (C) 2005-2009 Team XBMC
* http://www.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.
*
... | j2carv/xbmc-1 | xbmc/linux/DBusUtil.cpp | C++ | gpl-2.0 | 4,822 |
# -*- coding: utf-8 -*-
""" Python API for language and translation management. """
from collections import namedtuple
from django.conf import settings
from django.utils.translation import ugettext as _
from dark_lang.models import DarkLangConfig
# Named tuples can be referenced using object-like variable
# deferen... | louyihua/edx-platform | common/djangoapps/lang_pref/api.py | Python | agpl-3.0 | 1,986 |
/*
* CommandWithArg.java
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public Licen... | maligulzar/Rstudio-instrumented | src/gwt/src/org/rstudio/core/client/CommandWithArg.java | Java | agpl-3.0 | 682 |
/**
* 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... | Guavus/hbase | hbase-common/src/main/java/org/apache/hadoop/hbase/types/OrderedFloat32.java | Java | apache-2.0 | 2,533 |
// 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 "base/run_loop.h"
#include "base/bind.h"
#if defined(OS_WIN)
#include "base/message_loop/message_pump_dispatcher.h"
#endif
namespace base ... | wubenqi/zutils | zutils/base/run_loop.cc | C++ | apache-2.0 | 2,073 |
require 'chef/provisioning/aws_driver/aws_resource'
class Chef::Resource::AwsKeyPair < Chef::Provisioning::AWSDriver::AWSResource
aws_sdk_type AWS::EC2::KeyPair, id: :name
# Private key to use as input (will be generated if it does not exist)
attribute :private_key_path, :kind_of => String
# Public key to use... | tarak/chef-provisioning-aws | lib/chef/resource/aws_key_pair.rb | Ruby | apache-2.0 | 796 |
/*
* Copyright 2003,2004 The Apache Software Foundation
*
* 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 a... | HubSpot/cglib | cglib/src/main/java/net/sf/cglib/proxy/Mixin.java | Java | apache-2.0 | 8,394 |
/**
* Copyright 2007-2016, Kaazing Corporation. 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... | cmebarrow/gateway | transport/http/src/test/java/org/kaazing/gateway/transport/http/bridge/filter/HttpxeProtocolFilterTest.java | Java | apache-2.0 | 66,272 |
/*
* 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 ... | pwong-mapr/incubator-drill | exec/java-exec/src/main/java/org/apache/drill/exec/schema/BackedRecord.java | Java | apache-2.0 | 1,390 |
<?php
/**
*
*
* Created on July 7, 2007
*
* Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
*
* 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 L... | BRL-CAD/web | wiki/includes/api/ApiQueryExtLinksUsage.php | PHP | bsd-2-clause | 7,300 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch10/10.4/10.4.3/10.4.3-1-49gs.js
* @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within a FunctionExpression)
* @noStrict
*/
var f1 = function () {
var f = fun... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch10/10.4/10.4.3/10.4.3-1-49gs.js | JavaScript | bsd-3-clause | 506 |
// Type definitions for riot v2.6.0
// Project: https://github.com/riot/riot
// Definitions by: Boriss Nazarovs <https://github.com/Stubb0rn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace riot {
/**
* Current version number as string
*/
const version: string;
... | smrq/DefinitelyTyped | types/riot/index.d.ts | TypeScript | mit | 12,881 |
<?php
namespace Concrete\Core\StyleCustomizer\Style;
use Core;
use \Concrete\Core\StyleCustomizer\Style\Value\ColorValue;
use Less_Tree_Color;
use Less_Tree_Call;
use Less_Tree_Dimension;
use View;
use Request;
use \Concrete\Core\Http\Service\Json;
class ColorStyle extends Style {
public function render($value =... | LinkedOpenData/challenge2015 | docs/concrete5/updates/concrete5.7.5.1_remote_updater/concrete/src/StyleCustomizer/Style/ColorStyle.php | PHP | mit | 3,566 |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... | ChengXiaoZ/MariaDBserver | storage/tokudb/PerconaFT/src/tests/test_4015.cc | C++ | gpl-2.0 | 5,525 |
<p>Auf dieser Seite können Sie eine Nachricht vorbereiten, die erst zu einem späteren Zeitpunkt verschickt werden soll.
Sie können alle erforderlichen Angaben erfassen - ausser an welche Liste(n) die Nachricht versendet werden soll.
Dies geschieht erst in dem Moment, wo Sie eine vorbereitete Nachricht ta... | washingtonstateuniversity/WSU-Lists | www/admin/help/de/preparemessage.php | PHP | gpl-2.0 | 2,382 |
using System.Web.Mvc;
using System.Web.Routing;
using SmartStore.Web.Framework.Mvc.Routes;
namespace SmartStore.Clickatell
{
public partial class RouteProvider : IRouteProvider
{
public void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute("SmartStore.Clickatell",
"Plu... | Li-Yanzhi/SmartStoreNET | src/Plugins/SmartStore.Clickatell/RouteProvider.cs | C# | gpl-3.0 | 700 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import os
from wptrunner.update.base import Step, StepRunner
from wptrunner.update.update import LoadConfig, SyncFromU... | UK992/servo | tests/wpt/update/update.py | Python | mpl-2.0 | 1,349 |
define([
'css!theme/liveblog',
'tmpl!theme/container',
'tmpl!theme/item/base',
'plugins/wrappup-toggle',
'plugins/scroll-pagination',
'plugins/permanent-link',
'plugins/user-comments'
], function(){
}); | vladnicoara/SDLive-Blog | plugins/livedesk-embed/gui-themes/themes/tageswoche.min.js | JavaScript | agpl-3.0 | 209 |
// Copyright 2016 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package logfwd
import (
"fmt"
"github.com/juju/errors"
"github.com/juju/version"
"gopkg.in/juju/names.v2"
)
// canonicalPEN is the IANA-registered Private Enterprise Number
// assigned to Canonical. Among other things, ... | ericsnowcurrently/juju | logfwd/origin.go | GO | agpl-3.0 | 6,547 |
/**
* 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... | dennishuo/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/amrmproxy/AbstractRequestInterceptor.java | Java | apache-2.0 | 5,223 |
/*
Copyright 2018 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, ... | liyinan926/kubernetes | pkg/kubectl/polymorphichelpers/canbeautoscaled.go | GO | apache-2.0 | 1,298 |
/*
* 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... | jasontedor/elasticsearch-hadoop | mr/src/itest/java/org/elasticsearch/hadoop/integration/rest/ssl/BasicSSLServer.java | Java | apache-2.0 | 5,006 |
/*
* 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.integration;
import org.elasticsearch.ac... | GlenRSmith/elasticsearch | x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/integration/DocumentLevelSecurityRandomTests.java | Java | apache-2.0 | 5,357 |
const url_base = "/permissions-policy/experimental-features/resources/";
window.messageResponseCallback = null;
function setFeatureState(iframe, feature, origins) {
iframe.setAttribute("allow", `${feature} ${origins};`);
}
// Returns a promise which is resolved when the <iframe> is navigated to |url|
// and "load... | chromium/chromium | third_party/blink/web_tests/external/wpt/permissions-policy/experimental-features/resources/common.js | JavaScript | bsd-3-clause | 3,063 |
/** Added to editors of custom graph types */
[System.AttributeUsage(System.AttributeTargets.All, Inherited = false, AllowMultiple = true)]
public class CustomGraphEditorAttribute : System.Attribute {
/** Graph type which this is an editor for */
public System.Type graphType;
/** Name displayed in the inpector */
... | NBurrichter/Brainzzz | UnityGame/Brainz/Assets/AstarPathfindingProject/Editor/CustomGraphEditorAttribute.cs | C# | mit | 551 |
# -*- coding: utf-8 -*-
import os.path
import shutil
import uuid
import re
from django.test import TestCase
from django.contrib.auth.models import User
from mock import patch, Mock, PropertyMock
from docker.errors import APIError as DockerAPIError, DockerException
from readthedocs.projects.models import Project
from... | stevepiercy/readthedocs.org | readthedocs/rtd_tests/tests/test_doc_building.py | Python | mit | 15,211 |
/*
* File: urlstream.cpp
* -------------------
* This file contains the implementation of the iurlstream class.
* Please see urlstream.h for information about how to use these classes.
*
* @author Marty Stepp
* @version 2015/07/05
* - removed static global Platform variable, replaced by getPlatform as needed
*... | shawlu95/SuperWordLadder | lib/StanfordCPPLib/io/urlstream.cpp | C++ | mit | 2,486 |
/**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... | DDTChen/CookieVLC | vlc/contrib/android/live555/liveMedia/QCELPAudioRTPSource.cpp | C++ | gpl-2.0 | 16,387 |
<?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* perm... | ShopwareHackathon/shopware_search_optimization | shopware.php | PHP | agpl-3.0 | 3,731 |
/*
* 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 ... | irudyak/ignite | modules/web-console/web-agent/src/main/java/org/apache/ignite/console/demo/AgentMetadataDemo.java | Java | apache-2.0 | 3,471 |
package org.apache.lucene.search.similarities;
/*
* 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 L... | smartan/lucene | src/main/java/org/apache/lucene/search/similarities/LMDirichletSimilarity.java | Java | apache-2.0 | 3,519 |
import { ThisSideUp32 } from "../../";
export = ThisSideUp32;
| markogresak/DefinitelyTyped | types/carbon__icons-react/lib/this-side-up/32.d.ts | TypeScript | mit | 63 |
// Type definitions for the Facebook Javascript SDK
// Project: https://developers.facebook.com/docs/javascript
// Definitions by: Amrit Kahlon <https://github.com/amritk/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import fb = facebook;
declare var FB: fb.FacebookStatic;
declare namespace face... | subash-a/DefinitelyTyped | facebook-js-sdk/index.d.ts | TypeScript | mit | 2,970 |
var assert = require('assert');
var R = require('..');
describe('add', function() {
it('adds together two numbers', function() {
assert.strictEqual(R.add(3, 7), 10);
});
it('is curried', function() {
var incr = R.add(1);
assert.strictEqual(incr(42), 43);
});
});
| kairyan/ramda | test/add.js | JavaScript | mit | 287 |
import { SendToBack32 } from "../../";
export = SendToBack32;
| markogresak/DefinitelyTyped | types/carbon__icons-react/lib/send-to-back/32.d.ts | TypeScript | mit | 63 |
<?php
namespace CommerceGuys\Intl\Language;
use CommerceGuys\Intl\LocaleResolverTrait;
use CommerceGuys\Intl\Exception\UnknownLanguageException;
/**
* Manages languages based on JSON definitions.
*/
class LanguageRepository implements LanguageRepositoryInterface
{
use LocaleResolverTrait;
/**
* Per-l... | bashrc/hubzilla-debian | src/library/intl/src/Language/LanguageRepository.php | PHP | mit | 2,786 |