repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
glaucio-melo-movile/activemq-artemis
tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java
13643
/** * 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-2.0
thc202/zaproxy
zap/src/main/java/org/zaproxy/zap/extension/ascan/ScanProgressTableModel.java
8127
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2013 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
apache-2.0
jendap/tensorflow
tensorflow/core/kernels/resource_variable_ops.cc
36351
/* 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 applicable law or a...
apache-2.0
plusplusjiajia/hadoop
hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosUtil.java
15526
/** * 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...
apache-2.0
snnn/bazel
src/test/java/com/google/devtools/build/lib/util/GroupedListTest.java
10876
// Copyright 2014 The Bazel 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 appl...
apache-2.0
cpcloud/arrow
cpp/src/arrow/util/utf8_util_benchmark.cc
4809
// 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-2.0
SolidWallOfCode/trafficserver
iocore/net/Connection.cc
10038
/** @file A brief file description @section license License 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 und...
apache-2.0
dlew/RxBinding
rxbinding-design/src/main/java/com/jakewharton/rxbinding/support/design/widget/AppBarLayoutOffsetChangeEventOnSubscribe.java
1263
package com.jakewharton.rxbinding.support.design.widget; import android.support.design.widget.AppBarLayout; import com.jakewharton.rxbinding.internal.MainThreadSubscription; import rx.Observable; import rx.Subscriber; import static com.jakewharton.rxbinding.internal.Preconditions.checkUiThread; final class AppBarLay...
apache-2.0
akosyakov/intellij-community
plugins/maven/maven3-server-common/src/org/jetbrains/idea/maven/server/MavenLeakDetector.java
2091
/* * 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...
apache-2.0
pentaho/big-data-plugin
kettle-plugins/formats/src/main/java/org/pentaho/big/data/kettle/plugins/formats/impl/avro/input/AvroInputMeta.java
2816
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2019-2020 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version...
apache-2.0
kavin256/Derby
java/engine/org/apache/derby/impl/store/raw/data/EncryptContainerUndoOperation.java
5414
/* Derby - Class org.apache.derby.impl.store.raw.data.EncryptContainerUndoOperation 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 licens...
apache-2.0
gs-rezaem/reladomo
reladomo/src/main/java/com/gs/fw/common/mithra/tempobject/tupleextractor/StringTupleExtractor.java
1194
/* Copyright 2016 Goldman Sachs. 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...
apache-2.0
christophd/camel
components/camel-debezium/camel-debezium-postgres/src/main/java/org/apache/camel/component/debezium/DebeziumPostgresComponent.java
2128
/* * 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-2.0
dinfuehr/rust
src/test/compile-fail/borrowck-array-double-move.rs
682
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
apache-2.0
smgoller/geode
geode-core/src/main/java/org/apache/geode/cache/query/security/JavaBeanAccessorMethodAuthorizer.java
8225
/* * 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 not ...
apache-2.0
Addepar/buck
src/com/facebook/buck/remoteexecution/grpc/GrpcCasBlobUploader.java
8463
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
apache-2.0
kageiit/buck
src/com/facebook/buck/command/BuildReport.java
12638
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
apache-2.0
robinpercy/kops
vendor/sigs.k8s.io/controller-runtime/pkg/manager/internal.go
15472
/* 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, ...
apache-2.0
hhu94/Synapse-Repository-Services
lib/models/src/main/java/org/sagebionetworks/repo/model/table/parser/EntityIdParser.java
588
package org.sagebionetworks.repo.model.table.parser; import org.sagebionetworks.repo.model.jdo.KeyFactory; public class EntityIdParser extends AbstractValueParser { @Override public Object parseValueForDatabaseWrite(String value) throws IllegalArgumentException { if(value == null){ throw new IllegalA...
apache-2.0
datalanche/pdf.js
test/unit/cff_parser_spec.js
11829
/* globals describe, it, expect, beforeAll, afterAll, Stream, CFFParser, SEAC_ANALYSIS_ENABLED, CFFIndex, CFFStrings, CFFCompiler */ 'use strict'; describe('CFFParser', function() { function createWithNullProto(obj) { var result = Object.create(null); for (var i in obj) { result[i] = obj[i]...
apache-2.0
tarikgwa/test
html/app/code/Magento/GroupedProduct/Test/Unit/Model/Product/Type/Grouped/PriceTest.php
6503
<?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\GroupedProduct\Test\Unit\Model\Product\Type\Grouped; class PriceTest extends \PHPUnit_Framework_TestCase { /** * @var \Magento\GroupedProduct\Model\Product\Type\Grouped\Price */ p...
apache-2.0
paweljasinski/ironpython3
Src/IronPython/Compiler/PythonGlobalVariableExpression.cs
13584
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution. If ...
apache-2.0
Donnerbart/hazelcast
hazelcast/src/main/java/com/hazelcast/map/listener/EventLostListener.java
1369
/* * Copyright (c) 2008-2018, Hazelcast, Inc. 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 ...
apache-2.0
danmcp/kubernetes
pkg/apiserver/redirect_test.go
1975
/* Copyright 2014 Google Inc. 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 agreed to in ...
apache-2.0
kuujo/onos
apps/virtual/app/src/main/java/org/onosproject/incubator/net/virtual/cli/VirtualPortCompleter.java
2842
/* * Copyright 2016-present Open Networking 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 appli...
apache-2.0
tarikgwa/test
html/app/code/Magento/Checkout/view/frontend/web/js/model/shipping-save-processor.js
885
/** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ /*jshint browser:true*/ /*global define*/ define( [ 'Magento_Checkout/js/model/shipping-save-processor/default' ], function(defaultProcessor) { 'use strict'; var processors = []; ...
apache-2.0
opennetworkinglab/onos
apps/artemis/src/main/java/org/onosproject/artemis/impl/ArtemisDetectorImpl.java
4112
/* * Copyright 2017-present Open Networking 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 appli...
apache-2.0
googleapis/google-api-java-client-services
clients/google-api-services-vision/v1/1.29.2/com/google/api/services/vision/v1/model/Status.java
4412
/* * 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, software distributed under t...
apache-2.0
luomiao/kops
vendor/github.com/gogo/protobuf/test/packed/packed.pb.go
82375
// Code generated by protoc-gen-gogo. // source: packed.proto // DO NOT EDIT! /* Package packed is a generated protocol buffer package. It is generated from these files: packed.proto It has these top-level messages: NinRepNative NinRepPackedNative NinRepNativeUnsafe NinRepPackedNativeUnsafe */ package p...
apache-2.0
HabariMag/bloggenistvielfalt
system/classes/infoobject.php
283
<?php /** * @package Habari * */ /** * Object metadata * */ class InfoObject extends InfoRecords { function __construct ( $params ) { // Don't call the parent constructor if this is read-only foreach ( $params as $key => $value ) { $this->$key = $value; } } } ?>
apache-2.0
apache/maven
maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingResult.java
4330
package org.apache.maven.model.building; /* * 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 Lic...
apache-2.0
snnn/tensorflow
tensorflow/compiler/xla/literal_test.cc
68875
/* 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...
apache-2.0
IronLanguages/ironpython2
Src/StdLib/Lib/test/test_curses.py
15903
# # Test script for the curses module # # This script doesn't actually display anything very coherent. but it # does call (nearly) every method and function. # # Functions not tested: {def,reset}_{shell,prog}_mode, getch(), getstr(), # init_color() # Only called, not tested: getmouse(), ungetmouse() # import os import...
apache-2.0
y-higuchi/onos
apps/scalablegateway/src/main/java/org/onosproject/scalablegateway/impl/SelectGroupHandler.java
7871
/* * Copyright 2016-present Open Networking Laboratory * * 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 appli...
apache-2.0
camunda/camunda-cmmn-model
src/main/java/org/camunda/bpm/model/cmmn/instance/CaseFileItemStartTrigger.java
1196
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
apache-2.0
scouter-project/scouter
scouter.client/src/scouter/client/counter/actions/OpenPastTimeGroupAllViewAction.java
2055
/* * Copyright 2015 the original author or authors. * @https://github.com/scouter-project/scouter * * 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...
apache-2.0
krismcqueen/gateway
service/proxy/src/main/java/org/kaazing/gateway/service/proxy/ProxyServiceHandler.java
10655
/** * Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved. * * 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...
apache-2.0
lsmaira/gradle
subprojects/platform-jvm/src/main/java/org/gradle/jvm/internal/JvmAssembly.java
1747
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
basilgor/gerrit
gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/AccountGroupIncludeByUuidAudit.java
3084
// Copyright (C) 2011 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 ...
apache-2.0
Ngrd/homebrew-versions
Casks/powershell60.rb
1208
cask 'powershell60' do version '6.0.4' sha256 '0c59ff0fcacc957342012f44fcb8db255fd05babd081455edb2648566e2b29cc' url "https://github.com/PowerShell/PowerShell/releases/download/v#{version}/powershell-#{version}-osx.10.12-x64.pkg" appcast 'https://github.com/PowerShell/PowerShell/releases.atom' name 'PowerShe...
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/built-ins/TypedArray/prototype/set/src-typedarray-big-throws.js
1137
// Copyright (C) 2018 Valerie Young. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-%typedarray%.prototype.set-typedarray-offset description: > If typedArray set argument is a Big(U)Int, and target not "Big", throw info: | %TypedArray%.prototype.set( type...
bsd-2-clause
HSI-CH/OpenLayers
src/ol/overlay.js
14588
goog.provide('ol.Overlay'); goog.provide('ol.OverlayPositioning'); goog.provide('ol.OverlayProperty'); goog.require('goog.asserts'); goog.require('goog.dom'); goog.require('goog.dom.TagName'); goog.require('goog.events'); goog.require('goog.style'); goog.require('ol.Coordinate'); goog.require('ol.Map'); goog.require('...
bsd-2-clause
molokov/mezzanine
mezzanine/core/forms.py
6285
from __future__ import unicode_literals from future.builtins import str from datetime import datetime from uuid import uuid4 from django import forms try: from django.forms.widgets import SelectDateWidget except ImportError: # Django 1.8 from django.forms.extras.widgets import SelectDateWidget from djang...
bsd-2-clause
thomaspeklak/rauschen-analyser
config/index.js
507
var format = require("util").format; var defaults = require('./defaults'); var env = process.env.NODE_ENV || 'development'; var overrides = require('./' + env); env.environment = env; for (var key in overrides) { if (overrides.hasOwnProperty(key)) { defaults[key] = overrides[key]; } } var db = defau...
bsd-2-clause
sandor-balazs/nosql-java
mysql/src/test/gatling/simulations/DepartmentGatlingTest.scala
3322
import _root_.io.gatling.core.scenario.Simulation import ch.qos.logback.classic.{Level, LoggerContext} import io.gatling.core.Predef._ import io.gatling.http.Predef._ import org.slf4j.LoggerFactory import scala.concurrent.duration._ /** * Performance test for the Department entity. */ class DepartmentGatlingTest ex...
bsd-2-clause
ky0615/homebrew-cask-1
Casks/tickets.rb
494
cask :v1 => 'tickets' do version '2.5' sha256 '8f2d7879581fb2604158367fb6e7eda8bc9ebf15e97781b69b64355f2832af6e' url 'https://www.irradiatedsoftware.com/download/Tickets.zip' appcast 'http://www.irradiatedsoftware.com/updates/profiles/tickets.php', :sha256 => '24a551412959452baf56b0cba06fdd502057f768...
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/built-ins/TypedArrayConstructors/ctors-bigint/buffer-arg/defined-length-and-offset-sab.js
1327
// Copyright (C) 2016 the V8 project authors. All rights reserved. // Copyright (C) 2017 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-typedarray-buffer-byteoffset-length description: > Return new typedArray from defined length and off...
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/intl402/supportedLocalesOf-locales-arg-coered-to-object.js
1474
// Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 9.2.1_4 description: > Tests that non-objects are converted to objects before canonicalization. author: Norbert Lindenberg includes: [testIntl.js] ---*/ testWithIntlC...
bsd-2-clause
xcezx/homebrew-cask
Casks/iina.rb
1003
cask 'iina' do version '0.0.4' sha256 '1c610b237b63e15d16eb551395c9bf3612b92cf4d365a5d23edd6eecd524f00b' # github.com/lhc70000/iina was verified as official when first introduced to the cask url "https://github.com/lhc70000/iina/releases/download/v#{version}/IINA.v#{version}.zip" appcast 'https://github.com/...
bsd-2-clause
puffdad/homebrew-cask
Casks/boxcryptor.rb
513
cask 'boxcryptor' do version '2.23.939' sha256 '1ded3194ba86e899d803d29cdb9b44a87cf3fcf308b66ddb891cc94155e164c9' url "https://downloads.boxcryptor.com/boxcryptor/mac/Boxcryptor_v#{version}_Installer.dmg" appcast 'https://rink.hockeyapp.net/api/2/apps/7fd6db3e51a977132e3b120c613eaea8', checkpoint: '9...
bsd-2-clause
janiheikkinen/irods
iRODS/lib/core/include/microservice.hpp
13990
/** features: automatic input/output handling automatic factory code generation MICROSERVICE_BEGIN( add, INT, a, INPUT, INT, b, INPUT, INT, c, OUTPUT ALLOC) c = a + b; MICROSERVICE_END MICROSERVICE_BEGIN( concat, STR, a, INPUT OUTPUT, STR, b, INPUT) int al ...
bsd-3-clause
TouK/vumi
vumi/demos/tests/test_hangman.py
8987
# -*- encoding: utf-8 -*- """Tests for vumi.demos.hangman.""" import string from twisted.internet.defer import inlineCallbacks, returnValue from twisted.internet import reactor from twisted.web.server import Site from twisted.web.resource import Resource from twisted.web.static import Data from vumi.demos.hangman i...
bsd-3-clause
tectronics/libopenmetaverse
Programs/WinGridProxy/AboutBox1.cs
3618
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Reflection; using System.Windows.Forms; namespace WinGridProxy { partial class AboutBox1 : Form { public AboutBox1() { InitializeComponent(); th...
bsd-3-clause
youtube/cobalt
third_party/v8/test/mjsunit/es6/default-parameters-destructuring.js
4163
// Copyright 2015 the V8 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. (function TestSloppyEvalScoping() { var x = 1; function f41({[eval("var x = 2; 'a'")]: w}, z = x) { return z; } assertEquals(2, f41({})); asse...
bsd-3-clause
drmateo/pcl
test/segmentation/test_non_linear.cpp
3743
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
bsd-3-clause
bretternst/ServiceStack-mono
src/ServiceStack.ServiceInterface/FluentValidation/Internal/InstanceCache.cs
2523
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
bsd-3-clause
wuhengzhi/chromium-crosswalk
components/sync_sessions/synced_session_tracker.cc
17571
// 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/sync_sessions/synced_session_tracker.h" #include "base/logging.h" #include "base/stl_util.h" #include "base/strings/utf_string_c...
bsd-3-clause
alawnchen/djangoproject.com
fundraising/migrations/0012_auto_20150121_1436.py
480
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fundraising', '0011_donation_campaign_name'), ] operations = [ migrations.AlterField( model_name='donation', ...
bsd-3-clause
timba/NServiceKit
tests/NServiceKit.Common.Tests/Models/TaskQueue.cs
4041
using System; using NUnit.Framework; using NServiceKit.Common.Extensions; using NServiceKit.Logging; using NServiceKit.Text; namespace NServiceKit.Common.Tests.Models { /// <summary>Queue of tasks.</summary> public class TaskQueue { private static readonly ILog Log = LogManager.GetLogger(typeof(TaskQueue)); ...
bsd-3-clause
wangpengpeng/duocaishijia
protected/models/Review.php
7106
<?php /** * This is the model class for table "review". * * The followings are the available columns in table 'review': * @property string $review_id * @property integer $create_at * @property string $content * @property integer $customer_id * @property integer $entity_id * @property integer $entity_pk_value ...
bsd-3-clause
mfurr/Diamondback-Ruby
tests/typing/fail/wrapped_intersection_fail.rb
164
##% f: (String,String) -> String ##% f: (Fixnum,String) -> Fixnum def f(x,y) if Fixnum == x.class then 0 else y end end def g(z) f(z,"hi") + 2 end g("bye")
bsd-3-clause
wisonwang/django-lfs
lfs/tests/products.py
1939
# django imports from django.test import TestCase from django.contrib.auth.models import User # test imports from lfs.tests.utils import DummyRequest # lfs imports from lfs.catalog.models import Product from lfs.catalog.models import Category class ProductsTestCase(TestCase): """ """ def setUp(self): ...
bsd-3-clause
rpavlik/txmpp
src/ssladapter.cc
2992
/* * libjingle * Copyright 2004--2005, Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and...
bsd-3-clause
pwz3n0/xenia
src/xenia/kernel/xsemaphore.cc
1465
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 Ben Vanik. All rights reserved. ...
bsd-3-clause
jayhetee/dask
dask/tests/test_dot.py
1512
import os from functools import partial import re from operator import add, neg import pytest pytest.importorskip("graphviz") from dask.dot import dot_graph, task_label, to_graphviz # Since graphviz doesn't store a graph, we need to parse the output label_re = re.compile('.*\[label=(.*?) shape=.*\]') def get_label(...
bsd-3-clause
flip111/portia
slybot/slybot/validation/schema.py
1712
"""Simple validation of specifications passed to slybot""" from os.path import dirname, join import json import rfc3987 from urlparse import urlparse, parse_qsl from urllib import urlencode from urllib2 import unquote from jsonschema import Draft3Validator, RefResolver, FormatChecker _PATH = dirname(__file__) def...
bsd-3-clause
RomainBrault/scikit-learn
sklearn/svm/base.py
34848
from __future__ import print_function import numpy as np import scipy.sparse as sp import warnings from abc import ABCMeta, abstractmethod from . import libsvm, liblinear from . import libsvm_sparse from ..base import BaseEstimator, ClassifierMixin from ..preprocessing import LabelEncoder from ..utils.multiclass impo...
bsd-3-clause
tomocchino/react
packages/react-devtools-shared/src/inspectedElementMutableSource.js
3762
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import { convertInspectedElementBackendToFrontend, hydrateHelper, inspectElement as inspectElementAPI, } from 'r...
bsd-3-clause
google/skia
tests/CodecAnimTest.cpp
26900
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/codec/SkAndroidCodec.h" #include "include/codec/SkCodec.h" #include "include/codec/SkCodecAnimation.h" #include "include/core/SkBitmap.h" #include "include/c...
bsd-3-clause
kanujhun/myblog
Modules/Contrib.Voting/Services/DefaultFunctionCalculator.cs
5117
using System.Collections.Generic; using System.Linq; using System.Threading; using Contrib.Voting.Events; using Contrib.Voting.Functions; using Contrib.Voting.Models; using Orchard.Caching; using Orchard.ContentManagement; using Orchard.Data; using Orchard.Logging; using Orchard.Services; namespace Contrib.Voting.Ser...
bsd-3-clause
mou4e/zirconium
chrome/common/service_process_util_win.cc
5880
// Copyright (c) 2011 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/common/service_process_util.h" #include "base/callback.h" #include "base/command_line.h" #include "base/files/file_path.h" #include ...
bsd-3-clause
sencha/chromium-spacewalk
chrome/browser/ui/views/download/download_danger_prompt_views.cc
11085
// 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/compiler_specific.h" #include "chrome/browser/download/download_danger_prompt.h" #include "chrome/browser/download/download_stats.h" #inclu...
bsd-3-clause
akutz/go
src/runtime/syscall_windows.go
6989
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import ( "unsafe" ) type callbacks struct { lock mutex ctxt [cb_max]*wincallbackcontext n int } func (c *wincallbackcontext) isCleanst...
bsd-3-clause
selwin/Django-facebook
django_facebook/test_utils/mocks.py
2778
from django.test.client import RequestFactory from open_facebook.api import OpenFacebook, FacebookAuthorization from django.core.handlers.base import BaseHandler class RequestMock(RequestFactory): ''' Didn't see another solution for this. Decided to read some snippets and modded them into the requestfact...
bsd-3-clause
mstriemer/addons-server
src/olympia/addons/admin.py
2598
from django import forms from django.contrib import admin from olympia import amo from . import models class AddonAdmin(admin.ModelAdmin): exclude = ('authors',) list_display = ('__unicode__', 'type', 'status', 'average_rating') list_filter = ('type', 'status') fieldsets = ( (None, { ...
bsd-3-clause
cezarsa/tsuru
cmd/tsurud/token_test.go
2072
// Copyright 2013 tsuru 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 main import ( "bytes" "net/http" "os" "strings" "github.com/tsuru/tsuru/auth" "github.com/tsuru/tsuru/cmd" "github.com/tsuru/tsuru/permission" ...
bsd-3-clause
runekaagaard/django-contrib-locking
django/db/backends/base/features.py
9635
from django.db.utils import ProgrammingError from django.utils.functional import cached_property class BaseDatabaseFeatures(object): gis_enabled = False allows_group_by_pk = False # True if django.db.backends.utils.typecast_timestamp is used on values # returned from dates() calls. needs_datetime_...
bsd-3-clause
scheib/chromium
chrome/test/data/webui/sys_internals/line_chart/unit_label_test.js
2350
// Copyright 2017 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. var LineChartTest = LineChartTest || {}; LineChartTest.UnitLabel = function() { suite('LineChart Label unit test', function() { suiteSetup(function...
bsd-3-clause
ltilve/chromium
components/bookmarks/browser/bookmark_storage.cc
7372
// Copyright 2014 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/bookmarks/browser/bookmark_storage.h" #include "base/bind.h" #include "base/compiler_specific.h" #include "base/files/file_util.h" #...
bsd-3-clause
aYukiSekiguchi/ACCESS-Chromium
ui/views/controls/menu/menu_host.cc
3130
// Copyright (c) 2011 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 "ui/views/controls/menu/menu_host.h" #include "ui/views/controls/menu/menu_controller.h" #include "ui/views/controls/menu/menu_host_root_vie...
bsd-3-clause
google/skia
infra/bots/recipe_modules/gold_upload/api.py
2210
# Copyright 2021 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from recipe_engine import recipe_api import calendar DM_JSON = 'dm.json' class GoldUploadApi(recipe_api.RecipeApi): def upload(self): """Attempt to ...
bsd-3-clause
drmateo/pcl
test/common/test_centroid.cpp
36133
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2012, Willow Garage, Inc. * Copyright (c) 2014-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ar...
bsd-3-clause
JussMee15/cordova-plugin-chrome-apps-system-cpu
system.cpu.js
311
// Copyright (c) 2014 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. var exec = require('cordova/exec'); exports.getInfo = function(callback) { exec(callback, callback, 'ChromeSystemCpu', 'getInfo', []); };
bsd-3-clause
AntonKast/LightZone
lightcrafts/src/com/lightcrafts/ui/datatips/xswing/TableDataTipListener.java
2252
/* Copyright (C) 2005-2011 Fabio Riccardi */ /* * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. 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 mus...
bsd-3-clause
simevidas/cdnjs
ajax/libs/jsonld/0.1.9/jsonld.js
193936
/** * A JavaScript implementation of the JSON-LD API. * * @author Dave Longley * * BSD 3-Clause License * Copyright (c) 2011-2013 Digital Bazaar, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
mit
hack-miniblip/hack-miniblip.github.io
nw-miniblip/javascript/ace-builds/src/snippets/verilog.js
178
define("ace/snippets/verilog",["require","exports","module"], function(require, exports, module) { "use strict"; exports.snippetText =undefined; exports.scope = "verilog"; });
artistic-2.0
jelmersnoeck/gofpdf
util.go
8344
/* * Copyright (c) 2013 Kurt Jung (Gmail: kurt.w.jung) * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND TH...
isc
YatharthROCK/agar
libraries/processing.py-0202-macosx/examples.py/3D/Form/Primitives3D.py
548
""" * Primitives 3D. * * Placing mathematically 3D objects in synthetic space. * The lights() method reveals their imagined dimension. * The box() and sphere() functions each have one parameter * which is used to specify their size. These shapes are * positioned using the translate() function. """ size(640,...
mit
jamalex/kolibri
kolibri/content/management/commands/exportchannel.py
1091
import logging as logger import os from kolibri.tasks.management.commands.base import AsyncCommand from ...utils import paths, transfer logging = logger.getLogger(__name__) class Command(AsyncCommand): def add_arguments(self, parser): parser.add_argument("channel_id", type=str) parser.add_argu...
mit
abhineet123/MDP_Tracking
mexopencv-2.4.11/src/+cv/getBuildInformation.cpp
811
/** * @file getBuildInformation.cpp * @brief mex interface for getBuildInformation * @author Amro * @date 2013 */ #include "mexopencv.hpp" /** * Main entry called from Matlab * @param nlhs number of left-hand-side arguments * @param plhs pointers to mxArrays in the left-hand-side * @param nrhs number of right...
mit
sylvrebos5123/intranet_v2
application/libraries/php-ews/EWSType/BasePermissionType.php
2020
<?php /** * Definition of the BasePermissionType type * * @author James I. Armes <http://www.jamesarmes.net> */ /** * Definition of the BasePermissionType type * * @author James I. Armes <http://www.jamesarmes.net> */ class EWSType_BasePermissionType extends EWSType { /** * UserId property * * @var E...
mit
malaniz/cursoAngular
cl01b/app/scripts/controllers/about.js
310
'use strict'; /** * @ngdoc function * @name cl01bApp.controller:AboutCtrl * @description * # AboutCtrl * Controller of the cl01bApp */ angular.module('cl01bApp') .controller('AboutCtrl', function () { this.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' ]; });
mit
htve/GitlabForChinese
app/models/concerns/protected_ref_access.rb
429
module ProtectedRefAccess extend ActiveSupport::Concern included do scope :master, -> { where(access_level: Gitlab::Access::MASTER) } scope :developer, -> { where(access_level: Gitlab::Access::DEVELOPER) } end def humanize self.class.human_access_levels[self.access_level] end def check_access...
mit
jsakamoto/discutils
src/Ntfs/SecurityDescriptorRecord.cs
2993
// // Copyright (c) 2008-2011, Kenneth Bell // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, m...
mit
FPurchess/blank
vendor/src/github.com/codegangsta/cli/app_test.go
23189
package cli import ( "bytes" "errors" "flag" "fmt" "io" "io/ioutil" "os" "strings" "testing" ) func ExampleApp_Run() { // set args for examples sake os.Args = []string{"greet", "--name", "Jeremy"} app := NewApp() app.Name = "greet" app.Flags = []Flag{ StringFlag{Name: "name", Value: "bob", Usage: "a ...
mit
MTASZTAKI/ApertusVR
plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/parallel/test-stream2-base64-single-char-read-end.js
1859
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
mit
Econa77/fastlane
fastlane/lib/fastlane/actions/create_pull_request.rb
11269
module Fastlane module Actions module SharedValues CREATE_PULL_REQUEST_HTML_URL = :CREATE_PULL_REQUEST_HTML_URL CREATE_PULL_REQUEST_NUMBER = :CREATE_PULL_REQUEST_NUMBER end class CreatePullRequestAction < Action def self.run(params) UI.message("Creating new pull request from '#{...
mit
nilportugues/php-sql-repository
example/AutoGeneratedId/UserId.php
806
<?php /** * Author: Nil Portugués Calderó <contact@nilportugues.com> * Date: 7/02/16 * Time: 18:12. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace NilPortugues\Example\AutoGeneratedId; use NilPortugues\Foundation\Domai...
mit
StephenFluin/angular
packages/common/locales/ewo.ts
1642
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js const u = undefined; fun...
mit
kenzierocks/Sponge
src/main/java/org/spongepowered/mod/mixin/core/item/MixinEnchantment.java
2016
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
mit