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) 2011 Pierre Malarme * * Authors: Pierre Malarme <pmalarme at ulb.ac.be> * * Institution: Laboratory of Image Synthesis and Analysis (LISA) * Faculty of Applied Science * Universite Libre de Bruxelles (U.L.B.) * * Website: http://lisa.ulb.ac.be * * This file <CL...
carlosqueiroz/droid-dicom-viewer
src/be/ac/ulb/lisa/idot/android/dicomviewer/mode/CLUTMode.java
Java
gpl-3.0
1,510
/* * 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 ...
tzulitai/flink
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/StreamFlatMap.java
Java
apache-2.0
1,822
// Copyright 2016 The etcd 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 t...
wjiangjay/origin
vendor/github.com/coreos/etcd/clientv3/integration/kv_test.go
GO
apache-2.0
27,477
/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
xhook/webrtc
video_engine/test/auto_test/android/jni/vie_autotest_jni.cc
C++
bsd-3-clause
3,679
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkPath.h" // Reproduces https://code.google.com/p/chromium/issues/detail?id=279014 static const int kWidth = 640; static cons...
TeamCarbonXtremeARMv6/android_external_skia
gm/stringart.cpp
C++
bsd-3-clause
1,762
'use strict'; function create (env, entries, settings, treatments, profile, devicestatus) { var express = require('express'), app = express( ) ; var wares = require('../middleware/')(env); // set up express app with our options app.set('name', env.name); app.set('version', env.version); // app.se...
johnyburd/cgm-remote-monitor
lib/api/index.js
JavaScript
agpl-3.0
1,687
// Copyright 2006 The Closure Library 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 requ...
metamolecular/closure-library
closure/goog/structs/circularbuffer.js
JavaScript
apache-2.0
5,746
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
jalexvig/tensorflow
tensorflow/contrib/saved_model/python/saved_model/reader_test.py
Python
apache-2.0
4,761
/* * Copyright 2013 The Netty Project * * The Netty Project licenses this file to you 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 ...
wangcy6/storm_app
frame/java/netty-4.1/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheServerCodec.java
Java
apache-2.0
1,572
// Copyright JS Foundation and other contributors, http://js.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 r...
bsdelf/jerryscript
tests/jerry-test-suite/11/11.08/11.08.07/11.08.07-011.js
JavaScript
apache-2.0
691
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
mxOBS/deb-pkg_trusty_chromium-browser
third_party/libc++/trunk/test/utilities/template.bitset/bitset.members/set_one.pass.cpp
C++
bsd-3-clause
1,080
// RUN: %clang_cc1 -fexceptions -fcxx-exceptions -std=c++1z -emit-llvm %s -o - -triple x86_64-linux-gnu | FileCheck %s // CHECK-LABEL: define {{.*}} @_Z11builtin_newm( // CHECK: call {{.*}} @_Znwm( void *builtin_new(unsigned long n) { return __builtin_operator_new(n); } // CHECK-LABEL: define {{.*}} @_Z14builtin_dele...
endlessm/chromium-browser
third_party/llvm/clang/test/CodeGenCXX/cxx1z-noexcept-function-type.cpp
C++
bsd-3-clause
427
// RUN: %clang -g -std=c++11 -S -emit-llvm %s -o - | FileCheck %s template<typename T> struct foo { }; namespace x { // splitting these over multiple lines to make sure the right token is used for // the location template<typename T> using # 42 bar = foo<T*>; } // CHECK: !DIGlobalVariable(name: "bi",{{.*}} type: [[BI...
endlessm/chromium-browser
third_party/llvm/clang/test/CodeGenCXX/debug-info-alias.cpp
C++
bsd-3-clause
1,055
/* * 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 Software Foundation. Oracle designates this * particular file as subject to th...
rokn/Count_Words_2015
testing/openjdk2/jaxp/src/org/w3c/dom/Document.java
Java
mit
45,108
// { dg-options "-std=gnu++11 -lstdc++fs" } // { dg-require-filesystem-ts "" } // Copyright (C) 2014-2015 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 a...
zjh171/gcc
libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_directory.cc
C++
gpl-2.0
1,213
<?php namespace Drupal\search_api\ParamConverter; use Drupal\Core\Config\Entity\ConfigEntityStorageInterface; use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\ParamConverter\EntityConverter; use Drupal\Core\ParamConverter\ParamConverterInterface; use Drupal\Core\Session\AccountInterface; use Drupal\sear...
1ns/project-r2
web/modules/contrib/search_api/src/ParamConverter/SearchApiConverter.php
PHP
gpl-2.0
3,256
<?php /** * @file * Contains \Drupal\views_ui\Tests\CustomBooleanTest. */ namespace Drupal\views_ui\Tests; use Drupal\Component\Utility\SafeMarkup; use Drupal\views\Views; /** * Tests the UI and functionality for the Custom boolean field handler options. * * @group views_ui * @see \Drupal\views\Plugin\views\...
komejo/article-test
web/core/modules/views_ui/src/Tests/CustomBooleanTest.php
PHP
gpl-2.0
6,007
// 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.Immutable; using System.Threading; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft...
mmitche/roslyn
src/Features/CSharp/Portable/Structure/Providers/MetadataAsSource/AbstractMetadataAsSourceStructureProvider.cs
C#
apache-2.0
3,303
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version...
tkafalas/pentaho-kettle
ui/src/main/java/org/pentaho/di/ui/spoon/dialog/GetSQLProgressDialog.java
Java
apache-2.0
3,688
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version...
tkafalas/pentaho-kettle
engine/src/main/java/org/pentaho/di/repository/ExportFeedback.java
Java
apache-2.0
6,051
class AddSshKeyToUsers < ActiveRecord::Migration def self.up add_column :users, :ssh_key, :text end def self.down remove_column :users, :ssh_key end end
fcoury/gitorious
db/migrate/005_add_ssh_key_to_users.rb
Ruby
agpl-3.0
170
// @target: es6 // @module: system export let { toString } = 1; { let { toFixed } = 1; }
Microsoft/TypeScript
tests/cases/compiler/destructuringInVariableDeclarations7.ts
TypeScript
apache-2.0
99
/** * 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-ui/src/main/webapp/app/models/yarn-node.js
JavaScript
apache-2.0
1,348
<?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 ...
parksandwildlife/learning
moodle/lib/tests/fixtures/testable_flexible_table.php
PHP
gpl-3.0
1,440
<?php /** * @file * Contains \Drupal\migrate_drupal\Tests\Table\d7\History. * * THIS IS A GENERATED FILE. DO NOT EDIT. * * @see core/scripts/migrate-db.sh * @see https://www.drupal.org/sandbox/benjy/2405029 */ namespace Drupal\migrate_drupal\Tests\Table\d7; use Drupal\migrate_drupal\Tests\Dump\DrupalDumpBase...
komejo/d8demo-dev
web/core/modules/migrate_drupal/src/Tests/Table/d7/History.php
PHP
mit
1,350
/************************************************************* * * MathJax/jax/output/HTML-CSS/optable/CombDiacritMarks.js * * Copyright (c) 2010-2017 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
benjaminvialle/Markus
vendor/assets/javascripts/MathJax_lib/jax/element/mml/optable/CombDiacritMarks.js
JavaScript
mit
1,080
/* * Copyright (c) 2003, 2010, 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 ...
rokn/Count_Words_2015
testing/openjdk/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/FieldWriter.java
Java
mit
3,997
package com.flyco.dialog.widget; import android.content.Context; import android.graphics.Color; import android.text.TextUtils; import android.util.TypedValue; import android.view.Gravity; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import com.flyco.dialog.l...
mkodekar/FlycoDialog_Master
FlycoDialog_Lib/src/main/java/com/flyco/dialog/widget/MaterialDialog.java
Java
mit
11,600
# (c) 2020, Felix Fontein <felix@fontein.de> # # This file is part of Ansible # # Ansible 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 versio...
dmsimard/ansible
lib/ansible/utils/fqcn.py
Python
gpl-3.0
1,268
// Copyright ©2015 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 mat import ( "math" "gonum.org/v1/gonum/blas" "gonum.org/v1/gonum/blas/blas64" ) var ( symDense *SymDense _ Matrix = symDense _ ...
zhangxiaoyu-zidif/kubernetes
vendor/gonum.org/v1/gonum/mat/symmetric.go
GO
apache-2.0
14,638
class Company include Mongoid::Document embeds_many :staffs end
kcdragon/mongoid
spec/app/models/company.rb
Ruby
mit
69
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * 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 so...
tancredi/draw
www/js/vendor/ace/theme-dreamweaver.js
JavaScript
mit
5,077
// Copyright (C) 2001-2014 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 // Free Software Foundation; either version 3, or (at your op...
xinchoubiology/gcc
libstdc++-v3/testsuite/23_containers/list/operations/1.cc
C++
gpl-2.0
859
// Copyright (C) 2010-2014 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 // Free Software Foundation; either version 3, or (at your op...
sudosurootdev/gcc
libstdc++-v3/testsuite/23_containers/vector/debug/construct3_neg.cc
C++
gpl-2.0
992
// // detail/posix_signal_blocker.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifnd...
jack8z/TODOP
third_party/boost_1_65_1/boost/asio/detail/posix_signal_blocker.hpp
C++
gpl-2.0
1,975
/* -*- 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/ft/tests/ft-test0.cc
C++
gpl-2.0
2,689
<?php /** * @package Joomla.Plugin * @subpackage System.remember * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Joomla! System Remember Me Plugin * ...
bblurock/windwalker-tutorial
plugins/system/remember/remember.php
PHP
gpl-2.0
1,659
// { dg-do compile } // 2006-02-04 Edward Smith-Rowland <3dw4rd@verizon.net> // // Copyright (C) 2006-2014 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...
xinchoubiology/gcc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/21_sph_bessel/compile.cc
C++
gpl-2.0
1,169
# Copyright 2011 Justin Santa Barbara # 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 requ...
jeffrey4l/nova
nova/tests/functional/test_extensions.py
Python
apache-2.0
1,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 ...
dulvac/sling
samples/mail-archive/server/src/test/java/org/apache/sling/mailarchiveserver/util/SubjectLettersEntropy.java
Java
apache-2.0
3,776
/* * 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/extdata/platform/src/test/java/org/apache/ignite/platform/plugin/PlatformTestPlugin.java
Java
apache-2.0
986
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2015 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
DevRaptor/OpenGL_tutorial
visual_libs/glm/glm/gtx/matrix_decompose.hpp
C++
mit
2,715
/* * 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...
akosyakov/intellij-community
plugins/svn4idea/src/org/jetbrains/idea/svn/svnkit/SvnKitManager.java
Java
apache-2.0
8,785
/** * Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior * University * * 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/lic...
alsmadi/CSCI-6617
src/main/java/org/openflow/protocol/statistics/OFQueueStatisticsReply.java
Java
apache-2.0
4,637
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
wangyum/tensorflow
tensorflow/compiler/jit/graphcycles/graphcycles.cc
C++
apache-2.0
11,105
function WPATH(s) { var index = s.lastIndexOf("/"); var path = -1 === index ? "tony.section/" + s : s.substring(0, index) + "/tony.section/" + s.substring(index + 1); return path; } module.exports = [];
brentonhouse/brentonhouse.alloy
test/apps/testing/ALOY-833/_generated/mobileweb/alloy/widgets/tony.section/styles/widget.js
JavaScript
apache-2.0
215
require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../../spec_helper') describe "/<%= table_name %>/edit.<%= default_file_extension %>" do include <%= controller_class_name %>Helper before(:each) do assigns[:<%= file_name %>] = @<%= file_name %> = stub_model(<%= class_name...
tapn2it/attic-antiques
vendor/spree/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/edit_erb_spec.rb
Ruby
bsd-3-clause
1,232
import { errorObject } from './errorObject'; let tryCatchTarget: Function; function tryCatcher(this: any): any { try { return tryCatchTarget.apply(this, arguments); } catch (e) { errorObject.e = e; return errorObject; } } export function tryCatch<T extends Function>(fn: T): T { tryCatchTarget = f...
mo-norant/FinHeartBel
website/node_modules/rxjs/src/util/tryCatch.ts
TypeScript
gpl-3.0
352
<TS language="kk" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Жаңа адрес енгізу</translation> </message> <message> <source>&amp;New</source> <translation>Жаңа</translation> </message> <message>...
sstone/bitcoin
src/qt/locale/bitcoin_kk.ts
TypeScript
mit
9,201
require 'rubygems/command' ## # Installs RubyGems itself. This command is ordinarily only available from a # RubyGems checkout or tarball. class Gem::Commands::SetupCommand < Gem::Command HISTORY_HEADER = /^===\s*[\d.]+\s*\/\s*\d{4}-\d{2}-\d{2}\s*$/ VERSION_MATCHER = /^===\s*([\d.]+)\s*\/\s*\d{4}-\d{2}-\d{2}\s*$...
jmatbastos/rbenv
versions/2.2.3/lib/ruby/2.2.0/rubygems/commands/setup_command.rb
Ruby
mit
13,277
// This file is part of Notepad++ project // Copyright (C)2003 Don HO <don.h@free.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, or (at your ...
firstblade/notepad-plus-plus
PowerEditor/src/ScitillaComponent/columnEditor.cpp
C++
gpl-2.0
11,483
# -*- coding: utf-8 -*- # 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 # ...
mrknmc/storm-mc
storm-multicore/src/dev/resources/tester_spout.rb
Ruby
apache-2.0
1,476
package v1 import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = schema.GroupVersion{Group: "", Version: "v1"} var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme ...
cdrage/kedge
vendor/github.com/openshift/origin/pkg/build/controller/build/defaults/api/v1/register.go
GO
apache-2.0
627
/* Copyright (c) 2005, 2014, 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/MySQLTransientException.java
Java
gpl-2.0
1,682
#!/usr/bin/env python """Show python and pip versions.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os import sys import warnings warnings.simplefilter('ignore') # avoid python version deprecation warnings when using newer pip dependencies try: import pip exc...
thnee/ansible
test/lib/ansible_test/_util/controller/tools/versions.py
Python
gpl-3.0
460
/* Copyright 2020 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, ...
Miciah/origin
vendor/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/internal/atmostevery_test.go
GO
apache-2.0
1,269
/* Copyright 2016 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, ...
Stackdriver/heapster
vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/main.go
GO
apache-2.0
2,228
// // StanfordCoreNLP -- a suite of NLP tools // Copyright (c) 2009-2010 The Board of Trustees of // The Leland Stanford Junior University. 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 ...
heeyounglee/hcoref
src/edu/stanford/nlp/dcoref/ACEMentionExtractor.java
Java
gpl-2.0
10,488
<?php /*************************************************************************************/ /* This file is part of the Thelia package. */ /* */ /* Copyright (c) OpenStudio ...
amirlionor/mythelia
vendor/thelia/core/lib/Thelia/Core/Event/Hook/HookEvent.php
PHP
lgpl-3.0
1,517
/* * 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...
Rygbee/elasticsearch
core/src/main/java/org/elasticsearch/snapshots/Snapshot.java
Java
apache-2.0
13,099
var isArray = Array.isArray; var isPathValue = require("./is-path-value"); var isJsonGraphEnvelope = require("./is-json-graph-envelope"); var isJsonEnvelope = require("./is-json-envelope"); var pathSyntax = require("falcor-path-syntax"); /** * * @param {Object} allowedInput - allowedInput is a map of input styles *...
michaelbpaulson/falcor-1
lib/support/validate-input.js
JavaScript
apache-2.0
1,615
cask 'hostr' do version '0.8.0' sha256 '89e8b6a4d0168fb05520ff9ac1f69d378dade59a883034aaa549398c039faeed' url "https://hostr.co/apps/mac/Hostr-#{version}.zip" appcast 'https://hostr.co/updaters/mac.xml' name 'Hostr' homepage 'https://hostr.co/' app 'Hostr.app' end
jawshooah/homebrew-cask
Casks/hostr.rb
Ruby
bsd-2-clause
281
/////////////////////////////////////////////////////////////////////////////// // Name: src/unix/glx11.cpp // Purpose: code common to all X11-based wxGLCanvas implementations // Author: Vadim Zeitlin // Created: 2007-04-15 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org> // Licence: ...
adouble42/nemesis-current
wxWidgets-3.1.0/src/unix/glx11.cpp
C++
bsd-2-clause
21,265
/* * Copyright (C) 2008-2015 TrinityCore <http://www.trinitycore.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 of the License, or (at your * option) any later ve...
Helias/TrinityCore
src/server/bnetserver/Packets/WoWRealmPackets.cpp
C++
gpl-2.0
8,063
// Copyright 2019 The Kubernetes Authors. // SPDX-License-Identifier: Apache-2.0 package resource import ( "fmt" "log" "strings" "sigs.k8s.io/kustomize/api/filters/patchstrategicmerge" "sigs.k8s.io/kustomize/api/ifc" "sigs.k8s.io/kustomize/api/internal/utils" "sigs.k8s.io/kustomize/api/types" "sigs.k8s.io/ku...
dereknex/kubernetes
vendor/sigs.k8s.io/kustomize/api/resource/resource.go
GO
apache-2.0
11,359
// @target:es6 export default class { static z: string = "Foo"; }
weswigham/TypeScript
tests/cases/conformance/es6/classDeclaration/exportDefaultClassWithStaticPropertyAssignmentsInES6.ts
TypeScript
apache-2.0
72
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
kevin-coder/tensorflow-fork
tensorflow/core/platform/default/mutex.cc
C++
apache-2.0
3,384
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // singleton.cpp // // Copyright (c) 201 5 Robert Ramey, Indiana University (garcia@osl.iu.edu) // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy ...
bureau14/qdb-benchmark
thirdparty/boost/libs/serialization/src/singleton.cpp
C++
bsd-2-clause
1,085
<?php class Swift_Plugins_PopBeforeSmtpPluginTest extends \PHPUnit_Framework_TestCase { public function testPluginConnectsToPop3HostBeforeTransportStarts() { $connection = $this->_createConnection(); $connection->expects($this->once()) ->method('connect'); $plugin = ...
aloha1003/poseitech_assignment
workspace/assignment/vendor/swiftmailer/swiftmailer/tests/unit/Swift/Plugins/PopBeforeSmtpPluginTest.php
PHP
mit
3,143
#! /usr/bin/env ruby # # System User Percentage Metric Plugin # # DESCRIPTION: # Produces Graphite output of sum of %CPU over all processes by user. # E.g., if user joe is running two processes, each using 10% CPU, and # jane is running one process using 50% CPU, output will be: # # joe 20.0 (timestamp) # ja...
intoximeters/sensu-community-plugins
plugins/system/user-pct-usage-metrics.rb
Ruby
mit
1,983
export type from 'test';
wcjohnson/babylon-lightscript
test/fixtures/experimental/export-extensions/default-type-without-flow/actual.js
JavaScript
mit
25
// PR c++/66543 // { dg-do compile { target c++14 } } // { dg-options "-Wunused-but-set-variable" } int main() { auto f = []() { }; [=](auto) { using Foo = decltype(f()); }; }
selmentdev/selment-toolchain
source/gcc-latest/gcc/testsuite/g++.dg/warn/Wunused-var-24.C
C++
gpl-3.0
187
/** * Secure Hash Algorithm with a 1024-bit block size implementation. * * This includes: SHA-512, SHA-384, SHA-512/224, and SHA-512/256. For * SHA-256 (block size 512 bits), see sha256.js. * * See FIPS 180-4 for details. * * @author Dave Longley * * Copyright (c) 2014-2015 Digital Bazaar, Inc. */ (function(...
unki/thallium
public/resources/forge/js/sha512.js
JavaScript
agpl-3.0
18,329
// Copyright 2015 go-dockerclient 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 docker import ( "encoding/base64" "fmt" "io/ioutil" "net/http" "os" "path" "strings" "testing" ) func TestAuthConfigurationSearchPath...
dobbymoodge/origin
vendor/github.com/fsouza/go-dockerclient/auth_test.go
GO
apache-2.0
6,257
///////////////////////////////////////////////////////////////////////////// // Name: src/common/stdstream.cpp // Purpose: Implementation of std::istream and std::ostream derived // wrappers for wxInputStream and wxOutputStream // Author: Jonathan Liu <net147@gmail.com> // Created: 200...
adouble42/nemesis-current
wxWidgets-3.1.0/src/common/stdstream.cpp
C++
bsd-2-clause
6,258
void cphisto(){ TFile * f = new TFile("histos.root") ; TList * l=(TList*)f->Get("histESD") ; cout << l->GetSize() << endl ; TFile fout("sum.root","recreate") ; for(Int_t i=0;i<l->GetSize();i++){ l->At(i)->Write() ; } fout.Close() ; }
akubera/AliPhysics
PWGGA/PHOSTasks/PHOSCalib/cphisto.C
C++
bsd-3-clause
255
// // iWeb - navbar.js // Copyright (c) 2007-2008 Apple Inc. All rights reserved. // var NavBar=Class.create(Widget,{widgetIdentifier:"com-apple-iweb-widget-NavBar",initialize:function($super,instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp) {if(instanceID) {$super(instanceID,widgetPath,sharedPath,...
vrdmr/vrdmr.github.io
www/Scripts/Widgets/Navbar/navbar.js
JavaScript
mit
5,986
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997-2009 Oracle. All rights reserved. * * $Id$ */ package com.sleepycat.db; import com.sleepycat.db.internal.DbEnv; /** Thrown if the version of the Berkeley DB library doesn't match the version that created the database environment....
mxrrow/zaicoin
src/deps/db/java/src/com/sleepycat/db/VersionMismatchException.java
Java
mit
597
package stream import ( "io" "sync" "golang.org/x/net/context" "github.com/Sirupsen/logrus" "github.com/docker/docker/pkg/promise" ) var defaultEscapeSequence = []byte{16, 17} // ctrl-p, ctrl-q // DetachError is special error which returned in case of container detach. type DetachError struct{} func (DetachE...
Originate/exosphere
vendor/github.com/moby/moby/container/stream/attach.go
GO
mit
5,521
app.controller('LayersOverlaysMarkersNestedController', ['$scope', 'leafletData','$timeout', function ($scope, leafletData, $timeout) { var _map; leafletData.getMap().then(function(map){ _map = map; }); angular.extend($scope, { ...
ronnpang1/otocopy
www/lib/angular-leaflet-directive-master/examples/js/controllers/LayersOverlaysMarkersNestedController.js
JavaScript
mit
6,000
<?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; $id = empty($displayData['id']) ? '' : (' id="'...
vyelamanchili/v4ecc
sites/ranjeesh/layouts/joomla/quickicons/icon.php
PHP
gpl-2.0
1,027
// Copyright 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/ui/views/frame/browser_view_layout.h" #include "base/observer_list.h" #include "chrome/browser/profiles/profile.h" #include "chr...
s20121035/rk3288_android5.1_repo
external/chromium_org/chrome/browser/ui/views/frame/browser_view_layout.cc
C++
gpl-3.0
22,355
// PR libgomp/69555 // { dg-do run } __attribute__((noinline, noclone)) void f1 (int y) { int a[y - 2]; int (&c)[y - 2] = a; for (int i = 0; i < y - 2; i++) c[i] = i + 4; #pragma omp target firstprivate (c) { for (int i = 0; i < y - 2; i++) { if (c[i] != i + 4) __builtin_abort (); c[i] = ...
selmentdev/selment-toolchain
source/gcc-latest/libgomp/testsuite/libgomp.c++/pr69555-2.C
C++
gpl-3.0
1,065
// Copyright 2008, 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 conditions ...
SciAps/android-external-gtest
src/gtest-filepath.cc
C++
bsd-3-clause
12,929
using System; namespace umbraco.interfaces { /// <summary> /// The IDataType is a interface used for adding a new Data type to the umbraco backoffice. /// It consists of IdataEditor which provides the Editing UI, the IDataPrevalue which provides prevalues and th their editing UI /// And finally it con...
Nicholas-Westby/Umbraco-CMS
src/umbraco.interfaces/IDataType.cs
C#
mit
1,525
<?php /** * @file * Definition of Drupal\system\Tests\Theme\ThemeEarlyInitializationTest. */ namespace Drupal\system\Tests\Theme; use Drupal\simpletest\WebTestBase; /** * Tests that the theme system can be correctly initialized early in the page * request. * * @group Theme */ class ThemeEarlyInitializationT...
casivaagustin/drupalcon-mentoring
src/core/modules/system/src/Tests/Theme/ThemeEarlyInitializationTest.php
PHP
mit
958
'use strict'; // TODO(matsko): use caching here to speed things up for detection // TODO(matsko): add documentation // by the time... var $$AnimateJsProvider = ['$animateProvider', /** @this */ function($animateProvider) { this.$get = ['$injector', '$$AnimateRunner', '$$jqLite', function($injector, $$Anim...
Aremyst/angular.js
src/ngAnimate/animateJs.js
JavaScript
mit
8,632
/** * Copyright (c) 2010-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */...
theoweiss/openhab
bundles/binding/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/messages/AbstractRequest.java
Java
epl-1.0
2,111
// { dg-options "-Wno-deprecated" } // { dg-do compile } // Copyright (C) 2004, 2007, 2009 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 ...
SanDisk-Open-Source/SSD_Dashboard
uefi/gcc/gcc-4.6.3/libstdc++-v3/testsuite/backward/hash_map/requirements/explicit_instantiation.cc
C++
gpl-2.0
963
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (th...
ivanpogodin/pentaho-kettle
engine/src/org/pentaho/di/core/util/StringPluginProperty.java
Java
apache-2.0
4,028
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "tools/gn/operators.h" #include "base/strings/string_number_conversions.h" #include "tools/gn/err.h" #include "tools/gn/parse_tree.h" #inclu...
GladeRom/android_external_chromium_org
tools/gn/operators.cc
C++
bsd-3-clause
21,965
# Copyright 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. import re from telemetry.core import web_contents def UrlToExtensionId(url): return re.match(r"(chrome-extension://)([^/]+)", url).group(2) class Exte...
7kbird/chrome
tools/telemetry/telemetry/core/extension_page.py
Python
bsd-3-clause
946
<?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\Validator\Tests\Constraints; use Symfony\Component\In...
TonnyORG/ScioTest1
vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/CurrencyValidatorTest.php
PHP
mit
2,676
# Copyright 2011 Red Hat, Inc. # Copyright 2003 Brent Fox <bfox@redhat.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; version 2 of the License. # # This program is distributed in the hop...
lhellebr/spacewalk
client/rhel/rhn-client-tools/src/firstboot-legacy-rhel5/rhn_choose_channel.py
Python
gpl-2.0
2,255
""" ======================= MNIST dataset benchmark ======================= Benchmark on the MNIST dataset. The dataset comprises 70,000 samples and 784 features. Here, we consider the task of predicting 10 classes - digits from 0 to 9 from their raw images. By contrast to the covertype dataset, the feature space is...
Titan-C/scikit-learn
benchmarks/bench_mnist.py
Python
bsd-3-clause
6,977
require 'rails_helper' describe Authentication, :type => :model do let(:authentication) {FactoryGirl.build(:authentication)} skip "add some examples to (or delete) #{__FILE__}" # todo: check loading of oath_data and default_scope end
usmanajmal3/Testing
spec/models/authentication_spec.rb
Ruby
mit
241
package com.intellij.structuralsearch.plugin; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.project.Project; import com.intellij.psi.PsiDocumentManager; import com.intellij.structuralsearch.plugin.ui.Configuration; import com.intellij.structuralsearch.plugin.ui.SearchContext; import com.intel...
caot/intellij-community
platform/structuralsearch/source/com/intellij/structuralsearch/plugin/StructuralSearchAction.java
Java
apache-2.0
1,839
<?php /** * @package Joomla.UnitTest * @subpackage Linkedin * * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ require_once JPATH_PLATFORM . '/joomla/linkedin/people.php'; /** * Test class f...
Nilaksha/sep_2013
tests/unit/suites/platform/linkedin/JLinkedinPeopleTest.php
PHP
gpl-2.0
13,003
/* Copyright (c) 2009 Timothy Wall, All Rights Reserved * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. ...
rozdoum/jna
test/com/sun/jna/PerformanceTest.java
Java
lgpl-2.1
17,543
/* * 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/core/src/test/java/org/apache/ignite/spi/loadbalancing/adaptive/GridAdaptiveLoadBalancingSpiStartStopSelfTest.java
Java
apache-2.0
1,314