repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
zgagnon/colossus
colossus-metrics/src/test/scala/colossus/metrics/CounterSpec.scala
1330
package colossus.metrics import scala.concurrent.duration._ class CounterSpec extends MetricIntegrationSpec { "Basic Counter" must { "increment" in { val c = new BasicCounter(CounterParams("/foo")) c.increment() c.value().get must equal(1) } "decrement" in { val c = new BasicC...
apache-2.0
mbebenita/shumway.ts
tests/Fidelity/test262/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A24.js
7372
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * Math.atan2, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm * * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A24.js * ...
apache-2.0
GoogleCloudPlatform/prometheus-engine
third_party/prometheus_ui/base/web/ui/react-app/node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js
867
"use strict"; var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property"); _Object$defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var docDedicationRole = { abstract: false, accessibleNameRequired: false, baseConcepts: [], childrenP...
apache-2.0
mre/gollum
vendor/github.com/aws/aws-sdk-go/aws/request/request.go
16481
package request import ( "bytes" "fmt" "io" "net" "net/http" "net/url" "reflect" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/client/metadata" ) // CanceledErrorCode is the error code that will be returned by an // API request that...
apache-2.0
mothpc/immutables
generator-fixture/src/org/immutables/generator/fixture/ForComprehencer.java
975
/* Copyright 2014 Immutables Authors and Contributors 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 applicabl...
apache-2.0
mrgroen/reCAPTCHA
test/javasource/system/proxies/SoapFault.java
6467
// This file was generated by Mendix Business Modeler. // // WARNING: Code you write here will be lost the next time you deploy the project. package system.proxies; import com.mendix.core.Core; import com.mendix.core.CoreException; import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.systemwideinte...
apache-2.0
carynbear/cordova-lib
cordova-lib/src/plugman/plugman.js
8113
/* * * Copyright 2013 Anis Kadri * * 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 ...
apache-2.0
plietar/certificate-transparency
python/ct/cert_analysis/tld_check_test.py
798
#!/usr/bin/env python # coding=utf-8 import mock import unittest from ct.cert_analysis import tld_check def gen_dns_name(name): dns_name = mock.Mock() dns_name.value = name return dns_name EXAMPLE = gen_dns_name("example.com") class TLDCheckTest(unittest.TestCase): @mock.patch('ct.cert_analysis.tld_l...
apache-2.0
babble/babble
include/ruby/lib/ruby/1.8/irb/extend-command.rb
6848
# # irb/extend-command.rb - irb extend command # $Release Version: 0.9.5$ # $Revision: 2906 $ # $Date: 2007-02-01 18:35:06 -0600 (Thu, 01 Feb 2007) $ # by Keiju ISHITSUKA(keiju@ruby-lang.org) # # -- # # # module IRB # # IRB extended command # module ExtendCommandBundle EXCB = ExtendCommand...
apache-2.0
MeRPG/EndHQ-Libraries
src/org/apache/commons/lang3/JavaVersion.java
4582
/* * 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
Ryman/rust
src/test/run-fail/rt-set-exit-status.rs
764
// Copyright 2012-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-MI...
apache-2.0
myxyz/zstack
header/src/main/java/org/zstack/header/zone/ZoneVO.java
287
package org.zstack.header.zone; import org.zstack.header.tag.AutoDeleteTag; import org.zstack.header.vo.EO; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table @EO(EOClazz = ZoneEO.class) @AutoDeleteTag public class ZoneVO extends ZoneAO { }
apache-2.0
fceller/arangodb
3rdParty/boost/1.69.0/libs/geometry/test/algorithms/set_operations/intersection/test_intersection.hpp
12818
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands. // This file was modified by Oracle on 2016, 2017. // Modifications copyright (c) 2016-2017, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on beh...
apache-2.0
jack-moseley/gobblin
gobblin-core/src/main/java/org/apache/gobblin/writer/HiveWritableHdfsDataWriter.java
4568
/* * 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
juvchan/azure-powershell
src/ResourceManager/Dns/Commands.Dns/Records/SetAzureDnsRecordSet.cs
2655
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
apache-2.0
azmodii/aifh
vol1/java-examples/src/main/java/com/heatonresearch/aifh/distance/EuclideanDistance.java
1701
/* * Artificial Intelligence for Humans * Volume 1: Fundamental Algorithms * Java Version * http://www.aifh.org * http://www.jeffheaton.com * * Code repository: * https://github.com/jeffheaton/aifh * Copyright 2013 by Jeff Heaton * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
apache-2.0
wapalxj/Java
javaworkplace/source/src/javax/swing/event/TreeSelectionEvent.java
6867
/* * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.swing.event; import java.util.EventObject; import javax.swing.tree.TreePath; /** * An ...
apache-2.0
enj/origin
vendor/github.com/google/certificate-transparency-go/trillian/ctfe/cert_quota.go
1489
// Copyright 2018 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...
apache-2.0
graetzer/arangodb
3rdParty/V8/v7.9.317/src/torque/type-inference.cc
4361
// Copyright 2019 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. #include "src/torque/type-inference.h" namespace v8 { namespace internal { namespace torque { TypeArgumentInference::TypeArgumentInference( const ...
apache-2.0
ronniehedrick/scapeshift
client/src/components/dashboard/messaging/message-item.js
572
import React, { Component } from 'react'; import cookie from 'react-cookie'; const currentUser = cookie.load('user'); class MessageItem extends Component { render() { return ( <div className={currentUser == this.props.author._id ? 'message current-user' : 'message'}> <span className="message-body"...
apache-2.0
karimull/osc-core
osc-common/src/main/java/org/osc/core/common/alarm/EventType.java
1127
/******************************************************************************* * Copyright (c) Intel Corporation * Copyright (c) 2017 * * 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 ...
apache-2.0
mrinsss/Full-Repo
hizmetuzmani/js/jquery/ui/minified/jquery.effects.bounce.min.js
1686
/* * jQuery UI Effects Bounce 1.8.4 * * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Bounce * * Depends: * jquery.effects.core.js */ (function(e){e.effects.bounce=...
apache-2.0
romartin/dashbuilder
dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/uuid/ClientUUIDGenerator.java
1218
/* * Copyright 2014 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
apache-2.0
lukeiwanski/tensorflow-opencl
tensorflow/compiler/xla/service/hlo_execution_profile.cc
4717
/* 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
heriram/incubator-asterixdb
asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/util/InsertUpsertCheckUtil.java
4591
/* * 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
tootedom/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.java
1679
/* * Copyright 2012-2015 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
apache-2.0
jreichhold/chef-repo
vendor/ruby/2.0.0/gems/chef-0.8.10/lib/chef/resource/bash.rb
972
# # Author:: Adam Jacob (<adam@opscode.com>) # Copyright:: Copyright (c) 2008 Opscode, Inc. # License:: Apache License, Version 2.0 # # 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 # # ht...
apache-2.0
barosl/rust
src/test/compile-fail/no-reuse-move-arc.rs
809
// Copyright 2012-2013 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-MI...
apache-2.0
xiaguangme/demo
07.ElasticSearch_demo/elasticsearch-2.4.0-sources/org/elasticsearch/action/exists/ExistsResponse.java
2095
/* * 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...
apache-2.0
pentaho/big-data-plugin
legacy/src/main/java/org/pentaho/di/ui/hadoop/configuration/HadoopConfigurationsXulDialog.java
6847
/******************************************************************************* * * Pentaho Big Data * * Copyright (C) 2002-2019 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the ...
apache-2.0
glaucio-melo-movile/activemq-artemis
tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer1Test.java
2733
/** * 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
rohmano/azure-powershell
src/ResourceManager/TrafficManager/Commands.TrafficManager2/Utilities/TrafficManagerClient.cs
13911
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
apache-2.0
baslr/ArangoDB
3rdParty/V8/V8-5.0.71.39/test/test262/data/test/language/expressions/compound-assignment/S11.13.2_A4.2_T2.4.js
951
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: The production x /= y is the same as x = x / y es5id: 11.13.2_A4.2_T2.4 description: > Type(x) is different from Type(y) and both types vary between Number (primitive ...
apache-2.0
Mainflux/mainflux-lite
readers/postgres/doc.go
185
// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 // Package postgres contains repository implementations using Postgres as // the underlying database. package postgres
apache-2.0
googleapis/google-api-java-client-services
clients/google-api-services-cloudtasks/v2beta2/1.27.0/com/google/api/services/cloudtasks/v2beta2/model/SetIamPolicyRequest.java
2687
/* * 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
davebarnes97/geode
geode-lucene/src/distributedTest/java/org/apache/geode/cache/lucene/PaginationDUnitTest.java
6287
/* * 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
stianst/keycloak
testsuite/integration-arquillian/tests/other/webauthn/src/main/java/org/keycloak/testsuite/webauthn/authenticators/KcVirtualAuthenticator.java
4009
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
apache-2.0
michaelschiff/druid
processing/src/main/java/org/apache/druid/segment/QueryableIndexColumnSelectorFactory.java
7457
/* * 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
wvdd007/azure-activedirectory-identitymodel-extensions-for-dotnet
tests/System.IdentityModel.Tokens.Jwt.Tests/TokenValidationParametersTests.cs
13012
//----------------------------------------------------------------------- // Copyright (c) Microsoft Open Technologies, Inc. // All Rights Reserved // Apache License 2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may o...
apache-2.0
opsengine/chef
chef/lib/chef/resource/mdadm.rb
1801
# # Author:: Joe Williams (<joe@joetify.com>) # Copyright:: Copyright (c) 2009 Joe Williams # License:: Apache License, Version 2.0 # # 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 # # htt...
apache-2.0
mpimenov/omim
android/src/com/mapswithme/util/statistics/Analytics.java
278
package com.mapswithme.util.statistics; import androidx.annotation.NonNull; public class Analytics { @NonNull private final String mName; public Analytics(@NonNull String name) { mName = name; } @NonNull public String getName() { return mName; } }
apache-2.0
ya7lelkom/googleads-java-lib
modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201411/CreativeSet.java
11556
/** * CreativeSet.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfp.axis.v201411; /** * A creative set is comprised of a master creative and its companion * creatives. */ public class CreativeSet implemen...
apache-2.0
jeremyeder/origin
vendor/k8s.io/kubernetes/pkg/kubelet/cm/container_manager_windows.go
6151
// +build windows /* Copyright 2015 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 agr...
apache-2.0
sarvex/tensorflow
tensorflow/python/framework/experimental/tape.py
2291
# Copyright 2020 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...
apache-2.0
gfyoung/elasticsearch
server/src/main/java/org/elasticsearch/indices/store/IndicesStore.java
21479
/* * 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...
apache-2.0
sll8192/adstar
uikit/src/com/netease/nim/uikit/common/util/string/HexDump.java
4170
package com.netease.nim.uikit.common.util.string; import java.io.IOException; import java.io.StringReader; public class HexDump { class HexTablifier { private int m_row = 8; private String m_pre = ""; private String m_post = "\n"; public HexTablifier() { } public HexTablifier(int row) { this(row, ...
apache-2.0
renzifeng/renzifeng
node_modules/hexo-renderer-marked/node_modules/hexo-util/node_modules/highlight.js/lib/languages/javascript.js
3503
module.exports = function(hljs) { return { aliases: ['js'], keywords: { keyword: 'in of if for while finally var new function do return void else break catch ' + 'instanceof with throw case default try this switch continue typeof delete ' + 'let yield const export super debugger ...
apache-2.0
robhoes/xenadmin
XenAdmin/Dialogs/IscsiChoicesDialog.cs
2854
/* Copyright (c) Citrix Systems 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,...
bsd-2-clause
tribouille/MediaInfoLib
Source/MediaInfo/Audio/File_Aac_Others.cpp
17035
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ //--------------------------------------------------------------------------- // Pre-compilation #inclu...
bsd-2-clause
stgraber/homebrew-core
Formula/highlight.rb
1686
class Highlight < Formula desc "Convert source code to formatted text with syntax highlighting" homepage "http://www.andre-simon.de/doku/highlight/en/highlight.php" url "http://www.andre-simon.de/zip/highlight-4.1.tar.bz2" sha256 "3a4b6aa55b9837ea217f78e1f52bb294dbf3aaf4ccf8a5553cf859be4fbf3907" license "GPL-...
bsd-2-clause
agimofcarmen/xenadmin
XenModel/Utils/PropertyManager.cs
3073
/* Copyright (c) Citrix Systems 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,...
bsd-2-clause
aaryani/CoreTardisTemp
tardis/tardis_portal/tests/slapd.py
13708
""" Utilities for starting up a test slapd server and talking to it with ldapsearch/ldapadd. """ import sys import os import socket import time import subprocess import logging import tempfile from os import path as os_path _log = logging.getLogger("slapd") def quote(s): '''Quotes the " and \ characters in a str...
bsd-3-clause
dinhkhanh/trac
trac/upgrades/db29.py
1969
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.com/license.html. # # This software consists of vo...
bsd-3-clause
chromium/chromium
components/webapps/browser/android/webapps_icon_utils.cc
5443
// Copyright 2020 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/webapps/browser/android/webapps_icon_utils.h" #include "base/android/build_info.h" #include "base/android/jni_android.h" #include "b...
bsd-3-clause
mou4e/zirconium
android_webview/browser/child_frame.cc
881
// Copyright 2015 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 "android_webview/browser/child_frame.h" #include "cc/output/compositor_frame.h" namespace android_webview { ChildFrame::ChildFrame(scoped_ptr<...
bsd-3-clause
dandanwei/spree
frontend/spec/features/coupon_code_spec.rb
3383
require 'spec_helper' describe "Coupon code promotions", type: :feature, js: true do let!(:country) { create(:country, name: "United States of America", states_required: true) } let!(:state) { create(:state, name: "Alabama", country: country) } let!(:zone) { create(:zone) } let!(:shipping_method) { create(:shi...
bsd-3-clause
danakj/chromium
components/test/data/autofill/automated_integration/action_recorder_extension/content/action_handler.js
13663
// Copyright 2016 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. 'use strict'; const LEFT_BUTTON = 0; const RIGHT_BUTTON = 2; /** * Create an editing timer that will execute a command if the timer is not * triggered...
bsd-3-clause
pozdnyakov/chromium-crosswalk
chrome/browser/sync/sync_ui_util_unittest.cc
16605
// 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 <set> #include "base/basictypes.h" #include "base/strings/utf_string_conversions.h" #include "chrome/browser/profiles/profile.h" #include "ch...
bsd-3-clause
blakeembrey/istanbul
test/instrumentation/test-es6-export.js
738
/*jslint nomen: true */ var helper = require('../helper'), code, verifier; if (require('../es6').isExportAvailable()) { module.exports = { 'should cover export statements': function (test) { code = [ 'export function bar() { return 2 }', 'output = bar()' ...
bsd-3-clause
XiaosongWei/chromium-crosswalk
mandoline/services/core_services/application_delegate_factory_default.cc
488
// Copyright 2015 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 "mandoline/services/core_services/application_delegate_factory.h" #include "mojo/shell/public/cpp/application_delegate.h" namespace core_servic...
bsd-3-clause
sqlwang/DeviceManagementSystem
backend/webapp/ext/examples/classic/locale/multi-lang.js
6092
Ext.require([ 'Ext.data.*', 'Ext.tip.QuickTipManager', 'Ext.form.*', 'Ext.grid.Panel' ]); Ext.onReady(function(){ MultiLangDemo = (function() { // get the selected language code parameter from url (if exists) var params = Ext.urlDecode(window.location.search.substring(1));...
bsd-3-clause
joone/chromium-crosswalk
third_party/WebKit/Source/modules/app_banner/AppBannerController.cpp
1442
// Copyright 2015 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 "modules/app_banner/AppBannerController.h" #include "core/EventTypeNames.h" #include "core/dom/Document.h" #include "core/frame/DOMWindow.h" #in...
bsd-3-clause
jason-p-pickering/dhis2-persian-calendar
dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/interpretation/action/PostInterpretation.java
3760
package org.hisp.dhis.light.interpretation.action; /* * Copyright (c) 2004-2017, University of Oslo * 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 ...
bsd-3-clause
bartbresse/MGMT
app/library/Google/Service/YouTube.php
303145
<?php /* * Copyright 2010 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 t...
bsd-3-clause
chromium/chromium
third_party/blink/renderer/core/page/scrolling/overscroll_controller.cc
2829
// Copyright 2016 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 "third_party/blink/renderer/core/page/scrolling/overscroll_controller.h" #include "third_party/blink/renderer/core/frame/visual_viewport.h" #inc...
bsd-3-clause
joone/chromium-crosswalk
third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
21339
/* * Copyright (c) 2010, Google Inc. All rights reserved. * Copyright (C) 2008, 2011 Apple 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 mus...
bsd-3-clause
chromium/chromium
tools/check_grd_for_unused_strings.py
7058
#!/usr/bin/env python # 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. """Without any args, this simply loads the IDs out of a bunch of the Chrome GRD files, and then checks the subset of the code that ...
bsd-3-clause
arthuralee/react-native
Libraries/Network/fetch.js
445
/** * 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 strict * @format */ /* globals Headers, Request, Response */ 'use strict'; // side-effectful require() to put fetch, /...
bsd-3-clause
jason-p-pickering/dhis2-persian-calendar
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementGroupAction.java
3308
package org.hisp.dhis.commons.action; /* * Copyright (c) 2004-2017, University of Oslo * 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 t...
bsd-3-clause
joone/chromium-crosswalk
content/browser/accessibility/accessibility_tree_formatter_win.cc
14081
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/accessibility/accessibility_tree_formatter.h" #include <oleacc.h> #include <stddef.h> #include <stdint.h> #include <string...
bsd-3-clause
taylorjonl/coreclr
tests/src/JIT/jit64/valuetypes/nullable/castclass/castclass/castclass014.cs
1015
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // <Area> Nullable - CastClass </Area> // <Title> Nullable type with castclass expr </Title> // <Description> // checking type of IntPtr using cast expr // </Descrip...
mit
Neurosploit/StratisBitcoinFullNode
src/Stratis.Bitcoin/Interfaces/IBlockStoreQueue.cs
599
using NBitcoin; using Stratis.Bitcoin.Primitives; namespace Stratis.Bitcoin.Interfaces { public interface IBlockStoreQueue : IBlockStore { /// <summary>Adds a block to the saving queue.</summary> /// <param name="chainedHeaderBlock">The block and its chained header pair to be added to pending ...
mit
XrXr/data
packages/ember-data/lib/system/store/container-instance-cache.js
2828
import Ember from 'ember'; /** * The `ContainerInstanceCache` serves as a lazy cache for looking up * instances of serializers and adapters. It has some additional logic for * finding the 'fallback' adapter or serializer. * * The 'fallback' adapter or serializer is an adapter or serializer that is looked up * wh...
mit
edumonti/cocorico
src/Cocorico/MessageBundle/DependencyInjection/Configuration.php
1061
<?php /* * This file is part of the Cocorico package. * * (c) Cocolabs SAS <contact@cocolabs.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cocorico\MessageBundle\DependencyInjection; use Symfony\Component\Config\...
mit
stevemao/mout
tests/spec/random/spec-random.js
678
define(['mout/random/random'], function(random){ describe('random/random', function(){ it('should use Math.random as default PRNG', function () { expect( random.get ).toBe( Math.random ); }); it('should return the value generated by the provided PRNG', function () { ...
mit
aalfson/globalize
test/globalize/destroy_test.rb
855
# encoding: utf-8 require File.expand_path('../../test_helper', __FILE__) class DestroyTest < MiniTest::Spec describe '.destroy_all' do before do @posts = [Post.create(:title => 'title'), Post.create(:title => 'title')] Globalize.with_locale(:ja) do @posts[0].update_attributes(:title => 'タイトル...
mit
AndyButland/Umbraco-CMS
src/umbraco.editorControls/tags/library.cs
11287
using System; using System.Text; using System.Xml; using System.Xml.XPath; using umbraco.BusinessLogic; using umbraco.cms.businesslogic; using umbraco.cms.businesslogic.web; using umbraco.DataLayer; using System.Linq; using System.Collections.Generic; using umbraco.interfaces; namespace umbraco.editorCon...
mit
chjj/bitcoin
src/qt/locale/bitcoin_bg.ts
62375
<TS language="bg" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Double-click to edit address or label</source> <translation>Двоен клик за редакция на адрес или име</translation> </message> <message> <source>Create a new address</source> <translat...
mit
NablaT/TemplateDemo
src/app/core/profile/profile.component.spec.ts
325
/* tslint:disable:no-unused-variable */ import { TestBed, async } from '@angular/core/testing'; import { ProfileComponent } from './profile.component'; describe('Component: Profile', () => { it('should create an instance', () => { let component = new ProfileComponent(); expect(component).toBeTruthy(); });...
mit
pepakam/TelerikAcademy
WebDesign/Slice&Dice/4. HTML5 Everywhere/html5-everywhere-homework/task2_geolocation - v3/scripts/js-webshim/dev/shims/geolocation.js
4747
(function($){ if(navigator.geolocation){return;} var domWrite = function(){ setTimeout(function(){ throw('document.write is overwritten by geolocation shim. This method is incompatible with this plugin'); }, 1); }, id = 0 ; var geoOpts = $.webshims.cfg.geolocation || {}; navigator.geolocation = (func...
mit
AndreyZaets/rita
qza9ukxv9w/model/extension/report/marketing.php
1998
<?php class ModelExtensionReportMarketing extends Model { public function getMarketing($data = array()) { $sql = "SELECT m.marketing_id, m.name AS campaign, m.code, m.clicks AS clicks, (SELECT COUNT(DISTINCT order_id) FROM `" . DB_PREFIX . "order` o1 WHERE o1.marketing_id = m.marketing_id"; if (!empty($data['filt...
mit
wizardbeard/agency-iq
test/helpers/stations_helper_test.rb
75
require 'test_helper' class StationsHelperTest < ActionView::TestCase end
mit
yizhang82/corert
src/System.Private.Reflection.Core/src/System/Reflection/Runtime/TypeInfos/NativeFormat/NativeFormatRuntimeGenericParameterTypeInfoForMethods.UnificationKey.cs
2229
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Reflection; using System.Diagnostics; using System.Collections.Generic; using System.Coll...
mit
tangkun75/jenkins
core/src/main/java/jenkins/model/ParameterizedJobMixIn.java
22003
/* * The MIT License * * Copyright 2014 Jesse Glick. * * 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, mod...
mit
greenaddress/material-dialogs
commons/src/main/java/com/afollestad/materialdialogs/prefs/PrefUtil.java
2798
package com.afollestad.materialdialogs.prefs; import android.content.Context; import android.content.res.TypedArray; import android.content.res.XmlResourceParser; import android.preference.Preference; import android.preference.PreferenceManager; import android.support.annotation.NonNull; import android.support.annotat...
mit
axelitus/fork-ews-managed-api
Enumerations/AvailabilityData.cs
1796
/* * Exchange Web Services Managed API * * Copyright (c) Microsoft Corporation * All rights reserved. * * MIT License * * 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 * wit...
mit
sramzan/bo-sr-stem
node_modules/@uirouter/core/lib-esm/transition/transitionHook.js
8795
/** * @coreapi * @module transition */ /** for typedoc */ import { TransitionHookPhase } from './interface'; import { defaults, noop, silentRejection } from '../common/common'; import { fnToString, maxLength } from '../common/strings'; import { isPromise } from '../common/predicates'; import { is, parse } from '../c...
mit
seuffert/rclone
vendor/github.com/aws/aws-sdk-go/service/mq/service.go
2994
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package mq import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" "github.com/aws/aws-sd...
mit
Vrian7ipx/cascadadev
vendor/league/oauth2-server/src/League/OAuth2/Server/Grant/GrantTypeInterface.php
2124
<?php /** * OAuth 2.0 Grant type interface * * @package php-loep/oauth2-server * @author Alex Bilbie <hello@alexbilbie.com> * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ * @link http://github.com/php-loep/oauth2-server */ namespace...
mit
lokeswaraswamy522/neonet
node_modules/npm-run-all/bin/run-p/main.js
2310
/** * @author Toru Nagashima * @copyright 2016 Toru Nagashima. All rights reserved. * See LICENSE file in root directory for full license. */ "use strict" //------------------------------------------------------------------------------ // Requirements //-------------------------------------------------------------...
mit
deepakprakash/chattic
Godeps/_workspace/src/github.com/julienschmidt/httprouter/router_test.go
9335
// Copyright 2013 Julien Schmidt. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file. package httprouter import ( "errors" "fmt" "net/http" "net/http/httptest" "reflect" "testing" ) type mockResponseWriter struct{} func (m *mockResponseW...
mit
Vegetam/BoostrapPageGenerator4
bootstap 4 alpha 6/ckeditor/plugins/bidi/lang/zh.js
260
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'bidi', 'zh', { ltr: '文字方向從左至右', rtl: '文字方向從右至左' } );
mit
Blueteak/SteamVR_Unity_Toolkit
Assets/VRTK/Scripts/Helper/VRTK_UIGraphicRaycaster.cs
6493
namespace VRTK { using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class VRTK_UIGraphicRaycaster : GraphicRaycaster { public GameObject raycastSource; private struct VRGraphic { ...
mit
SaloGala/angular-es
public/docs/_examples/attribute-directives/ts/app/app.component.ts
184
// #docregion import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: 'app/app.component.html' }) export class AppComponent { } // #enddocregion
mit
juristr/angular
packages/core/test/metadata/resource_loading_spec.ts
6191
/** * @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 */ import {Component} from '../../src/core'; import {clearResolutionOfComponentResourcesQueue, isComponentResourceResol...
mit
yifanjiang/osem
app/controllers/commercials_controller.rb
1655
class CommercialsController < ApplicationController load_resource :conference, find_by: :short_title before_action :set_event load_and_authorize_resource through: :event def new @commercial = @event.commercials.build authorize! :new, @commercial end def edit; end def create @commercial = @e...
mit
YatharthROCK/agar
libraries/processing.py-0202-macosx/examples.py/Topics/AdvancedData/list_example.py
1641
""" * List of objects * based on ArrayListClass Daniel Shiffman. * * This example demonstrates how to use a Python list to store * a variable number of objects. Items can be added and removed * from the list. * * Click the mouse to add bouncing balls. """ balls = [] ballWidth = 48 # Simple bouncing ball cl...
mit
mono/debugger-libs
Mono.Debugger.Soft/Mono.Debugger.Soft/SuspendPolicy.cs
149
namespace Mono.Debugger.Soft { // Keep it in sync with debugger-agent.h public enum SuspendPolicy { None = 0, EventThread = 1, All = 2 } }
mit
ensemblr/llvm-project-boilerplate
include/llvm/projects/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Compress/LZMA_Alone/LzmaBench.cpp
24921
// LzmaBench.cpp #include "StdAfx.h" #include "LzmaBench.h" #ifndef _WIN32 #define USE_POSIX_TIME #define USE_POSIX_TIME2 #endif #ifdef USE_POSIX_TIME #include <time.h> #ifdef USE_POSIX_TIME2 #include <sys/time.h> #endif #endif #ifdef _WIN32 #define USE_ALLOCA #endif #ifdef USE_ALLOCA #ifdef _WIN32 #include <mall...
mit
nice-fungal/ldaptive
lib/messages/compare_request.js
1655
// Copyright 2011 Mark Cavage, Inc. All rights reserved. var assert = require('assert-plus'); var util = require('util'); var LDAPMessage = require('./message'); var Protocol = require('../protocol'); var lassert = require('../assert'); ///--- API function CompareRequest(options) { options = options || {}; as...
mit