repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
steveloughran/hadoop-mapreduce
src/java/org/apache/hadoop/mapred/join/CompositeRecordReader.java
13132
/** * 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
jlowdermilk/test-infra
vendor/cloud.google.com/go/pubsub/not_go18.go
1459
// Copyright 2018 Google LLC // // 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
q474818917/solr-5.2.0
solr/core/src/java/org/apache/solr/schema/EnumField.java
16238
package org.apache.solr.schema; /* * 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...
apache-2.0
hippich/typescript
tests/baselines/reference/overloadAssignmentCompat.js
664
// ok - overload signatures are assignment compatible with their implementation var Accessor = (function () { function Accessor() { } return Accessor; })(); function attr(nameOrMap, value) { if (nameOrMap && typeof nameOrMap === "object") { // handle map case return new Access...
apache-2.0
stephanrauh/AngularFaces
AngularFaces_2.0/incubator/AngularFaces-widgets/src/main/java/de/beyondjava/angularFaces/flavors/kendo/puiPanel/PuiPanel.java
3559
/** * (C) 2013-2014 Stephan Rauh http://www.beyondjava.net * * 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 3 of the License, or * (at your option) any later version. * ...
apache-2.0
jozef-slezak/cn-infra
vendor/github.com/gogo/protobuf/test/mapsproto2/combos/unsafeunmarshaler/mapsproto2pb_test.go
27470
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: combos/unsafeunmarshaler/mapsproto2.proto /* Package proto2_maps is a generated protocol buffer package. It is generated from these files: combos/unsafeunmarshaler/mapsproto2.proto It has these top-level messages: FloatingPoint CustomMap AllMaps AllM...
apache-2.0
gillyb/sensitive
sense/installedPlugins/sense/api_server/api.js
925
const _ = require("lodash"); 'use strict'; /** * * @param name */ function Api(name) { this.globalRules = {}; this.endpoints = {}; this.name = name; } (function (cls) { cls.addGlobalAutocompleteRules = function (parentNode, rules) { this.globalRules[parentNode] = rules; }; cls.addEndpointDescript...
apache-2.0
knoguchi/druid
core/src/test/java/org/apache/druid/collections/CombiningIteratorTest.java
4030
/* * 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
Alluxio/alluxio
core/common/src/main/java/alluxio/uri/Authority.java
2652
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
apache-2.0
ZENLIX/LaraShop
laravel/vendor/laravelrus/localized-carbon/src/lang/da/units.php
262
<?php return array( "second" => "sekund|sekunder", "minute" => "minut|minutter", "hour" => "time|timer", "day" => "dag|dage", "week" => "uge|uger", "month" => "måned|måneder", "year" => "år|år", );
apache-2.0
pavlovml/tensorflow
tensorflow/models/rnn/seq2seq.py
38326
"""Library for creating sequence-to-sequence models.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow.python.platform from six.moves import xrange # pylint: disable=redefined-builtin import tensorflow as tf from tensorflow.models.rnn i...
apache-2.0
Subasinghe/ode
bpel-compiler/src/main/java/org/apache/ode/bpel/elang/xpath10/compiler/XPath10ExpressionCompilerImpl.java
5252
/* * 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
michaelgallacher/intellij-community
python/openapi/src/com/jetbrains/python/newProject/PyFrameworkProjectGenerator.java
897
/* * 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
chirino/fabric8
fabric/fabric-boot-commands/src/main/java/io/fabric8/boot/commands/support/ProfileCompleter.java
2389
/** * Copyright 2005-2015 Red Hat, Inc. * * Red Hat 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 r...
apache-2.0
ardnaxelarak/kubernetes
test/e2e/framework/framework.go
32612
/* 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 agreed to in writing, ...
apache-2.0
agileowl/tapestry-5
tapestry-core/src/main/java/org/apache/tapestry5/annotations/CleanupRender.java
1628
// Copyright 2006, 2007, 2009 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
apache-2.0
aws/aws-sdk-cpp
aws-cpp-sdk-chime/source/model/ChannelMessagePersistenceType.cpp
2212
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/chime/model/ChannelMessagePersistenceType.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespac...
apache-2.0
aws/aws-sdk-cpp
aws-cpp-sdk-iot/source/model/StopThingRegistrationTaskRequest.cpp
546
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/iot/model/StopThingRegistrationTaskRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::IoT::Model; using namespace Aws::Utils::Json; usin...
apache-2.0
drognanar/roslyn
src/Features/Core/Portable/DesignerAttributes/IRemoteDesignerAttributeService.cs
415
// 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.Threading.Tasks; namespace Microsoft.CodeAnalysis.DesignerAttributes { internal interface IRemoteDesignerAttributeService { Tas...
apache-2.0
tboyce1/home-assistant
homeassistant/components/ffmpeg_motion/binary_sensor.py
3673
"""Provides a binary sensor which is a collection of ffmpeg tools.""" import haffmpeg.sensor as ffmpeg_sensor import voluptuous as vol from homeassistant.components.binary_sensor import ( DEVICE_CLASS_MOTION, PLATFORM_SCHEMA, BinarySensorEntity, ) from homeassistant.components.ffmpeg import ( CONF_EXTR...
apache-2.0
daiqiquan/framework-base
core/java/android/nfc/cardemulation/HostNfcFService.java
11013
/* * Copyright (C) 2015 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 app...
apache-2.0
daedalusz/SMEdit
jo_sm/src/jo/sm/ui/BegPanel.java
5315
/** * Copyright 2014 * SMEdit https://github.com/StarMade/SMEdit * SMTools https://github.com/StarMade/SMTools * * 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....
apache-2.0
im-qq/GCache
src/io/ganguo/app/gcache/interfaces/Cache.java
1988
package io.ganguo.app.gcache.interfaces; import io.ganguo.app.gcache.Config; /** * 缓存接口 * <p/> * Created by zhihui_chen on 14-8-5. */ public interface Cache { /** * 缓存配置 * * @param config * @return */ public void config(Config config); /** * 初始化缓存 */ public void initialize(); /** * 使缓存失效...
apache-2.0
ed-/python-solumclient
solumclient/tests/builder/test_client.py
1091
# Copyright 2014 - Noorul Islam K M # # 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 w...
apache-2.0
intuit/QuickBooks-V3-PHP-SDK
src/XSD2PHP/test/data/expected/ubl2.0/oasis/names/specification/ubl/schema/xsd/CommonAggregateComponents_2/DebitNoteLine.php
409
<?php namespace oasis\names\specification\ubl\schema\xsd\CommonAggregateComponents_2; /** * @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 * @xmlType DebitNoteLineType * @xmlName DebitNoteLine * @var oasis\names\specification\ubl\schema\xsd\CommonAggregateComponents_2\DebitN...
apache-2.0
jt70471/aws-sdk-cpp
aws-cpp-sdk-eventbridge/source/model/PutEventsRequest.cpp
1123
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/eventbridge/model/PutEventsRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::EventBridge::Model; using namespace Aws::Utils::Json; usin...
apache-2.0
KarimAllah/nova
nova/tests/test_api.py
21924
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
apache-2.0
kris-nova/kubicorn
vendor/github.com/pkg/term/term_test.go
1717
package term import ( "testing" "github.com/pkg/term/termios" "time" ) // assert that Term implements the same method set across // all supported platforms var _ interface { Available() (int, error) Buffered() (int, error) Close() error DTR() (bool, error) Flush() error RTS() (bool, error) Read(b []byte) (...
apache-2.0
wiltonlazary/arangodb
3rdParty/iresearch/core/search/prefix_filter.hpp
3741
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 by EMC Corporation, All Rights Reserved /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may obtain a...
apache-2.0
Zeverin/geonetworking
asn1-uper/src/main/java/net/gcdc/asn1/uper/Asn1EncodingException.java
372
package net.gcdc.asn1.uper; public class Asn1EncodingException extends Exception { private static final long serialVersionUID = 1L; public Asn1EncodingException(String message) { super(message); } public Asn1EncodingException(String extraMessage, Asn1EncodingException cause) { super(...
apache-2.0
AerialX/rust-rt-minimal
src/librustc_typeck/variance.rs
53585
// Copyright 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-MIT or ...
apache-2.0
project-ncl/pnc
rest-api/src/test/java/org/jboss/pnc/client/RemoteCollectionTest.java
2510
/** * JBoss, Home of Professional Open Source. * Copyright 2014-2022 Red Hat, Inc., and individual 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...
apache-2.0
BigBoss424/portfolio
v8/development/node_modules/graphql-compose/lib/type/json.js
1423
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _graphqlTypeJson = _interopRequireDefault(require("graphql-type-json")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = _graphqlTypeJson.defaul...
apache-2.0
RyanLamansky/open-travel
Connexions.Travel.React/ParsedToReact.ts
1119
import * as React from "react"; /** A server-side-sanitized HTML component. */ export interface IParsed { IsUnsafe?: boolean; } export interface ITextElement extends IParsed { Content: string; } export interface IElement extends IParsed { Name: string; Children?: IParsed[]; Attributes?: IAttribute[]; } export...
apache-2.0
dongjoon-hyun/tensorflow
tensorflow/contrib/signal/python/kernel_tests/window_ops_test.py
4116
# 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 applica...
apache-2.0
apache/curator
curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/CuratorCacheBuilder.java
1870
/** * 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
frodenas/kubernetes
test/e2e/common/init_container.go
18252
/* 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, ...
apache-2.0
christophd/camel
dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HBaseEndpointBuilderFactory.java
44431
/* * 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
dpalou/moodlemobile2
src/addon/mod/workshop/providers/offline.ts
29972
// (C) Copyright 2015 Moodle Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
apache-2.0
delkyd/oreva
odata-core/src/main/java/org/odata4j/format/json/JsonFeedFormatWriter.java
3622
package org.odata4j.format.json; import javax.ws.rs.core.UriBuilder; import javax.ws.rs.core.UriInfo; import org.odata4j.core.OEntity; import org.odata4j.producer.EntitiesResponse; /** * Write an RSS Feed in JSON format */ public class JsonFeedFormatWriter extends JsonFormatWriter<EntitiesResponse> { ...
apache-2.0
benfinke/ns_python
nssrc/com/citrix/netscaler/nitro/resource/config/system/__init__.py
864
__all__ = ['systembackup', 'systemcmdpolicy', 'systemcollectionparam', 'systemcore', 'systemcountergroup', 'systemcounters', 'systemdatasource', 'systementity', 'systementitydata', 'systementitytype', 'systemeventhistory', 'systemfile', 'systemglobal_auditnslogpolicy_binding', 'systemglobal_auditsyslogpolicy_binding', ...
apache-2.0
lshain-android-source/tools-idea
platform/platform-impl/src/com/intellij/openapi/application/impl/LaterInvocator.java
12483
/* * Copyright 2000-2009 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
BaixiangLiu/fudanweixin
weixin/src/test/java/edu/fudan/weixin/kafka/ProducerTest.java
1280
package edu.fudan.weixin.kafka; import java.util.HashMap; import java.util.Map; import java.util.Properties; import java.util.Random; import kafka.javaapi.producer.Producer; import kafka.producer.KeyedMessage; import kafka.producer.ProducerConfig; import org.junit.Test; import com.alibaba.fastjson.JSON; imp...
apache-2.0
hamadata/aws-sdk-ruby
aws-sdk-core/spec/aws/ec2/client_spec.rb
3560
require 'spec_helper' module Aws module EC2 describe Client do describe 'request ids' do it 'populates request ids in the response context' do client = Client.new(stub_responses: true) client.handle(step: :send) do |context| context.http_response.signal_done( ...
apache-2.0
NightOwl888/lucenenet
src/Lucene.Net/Codecs/Lucene41/Lucene41PostingsWriter.cs
28935
using Lucene.Net.Diagnostics; using Lucene.Net.Index; using System; using System.Runtime.CompilerServices; namespace Lucene.Net.Codecs.Lucene41 { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this wo...
apache-2.0
vroyer/elassandra
server/src/main/java/org/elasticsearch/tasks/LoggingTaskListener.java
2054
/* * 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
jacksonic/vjlofvhjfgm
src/foam/swift/Protocol.js
2033
/** * @license * Copyright 2017 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.swift', name: 'Protocol', flags: ['swift'], requires: [ 'foam.swift.ProtocolMethod', 'foam.swift.Outputter' ], properties: [ { class: 'S...
apache-2.0
rancher/go-machine-service
handlers/create_test.go
6280
package handlers import ( "strings" "testing" "github.com/rancher/go-rancher/v3" ) type MockMachineOperations struct { client.HostClient } func (c *MockMachineOperations) ById(id string) (*client.Host, error) { // Return nil to indicate a 404 return nil, nil } func TestBuildMachineNoEngineOptsCreateCommand(t...
apache-2.0
geoparser/geolocator-1.0
geo-locator/src/edu/cmu/geoparser/nlp/ner/StanfordCRF/CRF_Learn.java
4604
/** * 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 use t...
apache-2.0
grandquista/rethinkdb
src/buffer_cache/page_cache.hpp
25419
// Copyright 2010-2014 RethinkDB, all rights reserved. #ifndef BUFFER_CACHE_PAGE_CACHE_HPP_ #define BUFFER_CACHE_PAGE_CACHE_HPP_ #include <functional> #include <map> #include <set> #include <unordered_map> #include <utility> #include <vector> #include "buffer_cache/block_version.hpp" #include "buffer_cache/cache_acco...
apache-2.0
zmap/zlint
v3/lints/mozilla/lint_e_prohibit_dsa_usage.go
2044
/* * ZLint Copyright 2021 Regents of the University of Michigan * * 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
ultratendency/hbase
hbase-common/src/main/java/org/apache/hadoop/hbase/ChoreService.java
15693
/** * * 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"); ...
apache-2.0
madecoste/swarming
appengine/components/components/ereporter2/on_error.py
3185
# Copyright 2014 The Swarming Authors. All rights reserved. # Use of this source code is governed by the Apache v2.0 license that can be # found in the LICENSE file. """Manages user reports. These are DB stored reports, vs logservice based reports. This is for events like client failure or non exceptional server fail...
apache-2.0
shakuzen/spring-boot
spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/springbootfeatures/resttemplate/RestTemplateProxyCustomizer.java
2107
/* * Copyright 2012-2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
apache-2.0
Ryman/rust
src/test/run-pass/traits-default-method-macro.rs
666
// Copyright 2012 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
larsrh/libisabelle
modules/pide/2018/src/main/scala/PIDE/text.scala
6051
/* Title: Pure/PIDE/text.scala Author: Fabian Immler, TU Munich Author: Makarius Basic operations on plain text. */ package isabelle import scala.collection.mutable import scala.util.Sorting object Text { /* offset */ type Offset = Int /* range -- with total quasi-ordering */ obj...
apache-2.0
doodelicious/cas
support/cas-server-support-ws-sts/src/main/java/org/apereo/cas/support/saml/SamlAssertionRealmCodec.java
1877
package org.apereo.cas.support.saml; import org.apache.cxf.sts.token.realm.SAMLRealmCodec; import org.apache.wss4j.common.saml.SAMLKeyInfo; import org.apache.wss4j.common.saml.SamlAssertionWrapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.security.cert.X509Certificate; /** * This is {@li...
apache-2.0
apache/commons-bcel
src/main/java/org/apache/bcel/util/ClassStack.java
1376
/* * 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
keith-turner/accumulo
shell/src/main/java/org/apache/accumulo/shell/commands/CreateUserCommand.java
3240
/* * 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
entityresolution/Entity_Resolution_Service_Intermediary_OSGi
src/main/java/com/wcohen/ss/api/StringDistanceTeacher.java
1902
package com.wcohen.ss.api; /** * Train a StringDistanceLearner and return the learned * StringDistance, using some unspecified source of information to * train the learner. * */ public abstract class StringDistanceTeacher { final public StringDistance train(StringDistanceLearner learner) { // TFIDF-style 'tr...
apache-2.0
dotty-staging/dotty
tests/pos-macros/i13095/Macro_1.scala
176
import scala.quoted.* inline def testMacro = ${ test } def test(using Quotes): Expr[Unit] = import quotes.reflect.* assert(!Symbol.noSymbol.isDefinedInCurrentRun) '{}
apache-2.0
krahman/snowplow
3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/adapters/registry/MailchimpAdapterSpec.scala
13129
/* * Copyright (c) 2012-2014 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apach...
apache-2.0
prigaux/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DynamicFlowModelBuilder.java
2769
package org.apereo.cas.web.flow.configurer; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import org.springframework.webflow.engine.model.AbstractActionModel; import org.springframework.webflow.engine.model.Abs...
apache-2.0
MykolaB/gatling
gatling-core/src/test/scala/io/gatling/core/util/ShardSpec.scala
3321
/** * Copyright 2011-2017 GatlingCorp (http://gatling.io) * * 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
happyday517/nutz
test/org/nutz/ioc/json/AopJsonIocTest.java
920
package org.nutz.ioc.json; import static org.junit.Assert.*; import org.junit.Test; import org.nutz.Nutzs; import org.nutz.ioc.Ioc; import org.nutz.ioc.IocLoader; import org.nutz.ioc.impl.NutIoc; import org.nutz.ioc.json.pojo.Mammal; import org.nutz.ioc.loader.json.JsonLoader; public class AopJsonIocTest...
apache-2.0
miyurud/siddhi
modules/siddhi-core/src/main/java/org/wso2/siddhi/core/window/Window.java
16663
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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 * * Unles...
apache-2.0
wchrisjohnson/battleschool
lib/battleschool/printing.py
6842
from ansible.callbacks import call_callback_module from ansible.callbacks import display from ansible.callbacks import DefaultRunnerCallbacks from ansible.color import ANSIBLE_COLOR, stringc import pprint pp = pprint.PrettyPrinter() def colorize(lead, num, color): """ Print 'lead' = 'num' in 'color' """ if ...
apache-2.0
GoogleCloudPlatform/buildpacks
builders/testdata/generic/java/hello_quarkus_maven/src/main/java/hello/Hello.java
868
// Copyright 2020 Google LLC // // 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
aws/aws-sdk-cpp
aws-cpp-sdk-sagemaker/source/model/ModelPackageType.cpp
2277
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/sagemaker/model/ModelPackageType.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace Aws::Ut...
apache-2.0
yugangw-msft/azure-sdk-for-net
sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineListResponse.cs
1573
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Linq; namespace Azure.Analytics.Synapse.Artifacts.Models { /// <summary> A list of pipeline resources. </summary> ...
apache-2.0
yohanakh/gigaspaces-wiki-jekyll
_plugins/currentneturl.rb
879
module Jekyll class CurrentNetUrl < Liquid::Tag def initialize(tag_name, text, tokens) super @class_name = text.strip end def get_current_version(context) versionDir = context.environments.first["page"]["url"].split("/")[1] if !versionDir.nil? if versionDir.start_with?("x...
apache-2.0
mml/kubernetes
pkg/util/iptables/iptables.go
20872
/* Copyright 2014 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
jayantgolhar/Hadoop-0.21.0
mapred/src/contrib/fairscheduler/src/java/org/apache/hadoop/mapred/FairSchedulerServlet.java
13800
/** * 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
Tycheo/coffeemud
com/planet_ink/coffee_mud/Abilities/Druid/Chant_SummonRain.java
5105
package com.planet_ink.coffee_mud.Abilities.Druid; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import ...
apache-2.0
javier-ruiz-b/docker-rasppi-images
raspberry-google-home/env/lib/python3.7/site-packages/oauthlib/openid/connect/core/endpoints/pre_configured.py
5370
# -*- coding: utf-8 -*- """ oauthlib.openid.connect.core.endpoints.pre_configured ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of various endpoints needed for providing OpenID Connect servers. """ from __future__ import absolute_import, unicode_literals from oauthlib.oauth2.r...
apache-2.0
apache/pdfbox
preflight/src/test/java/org/apache/pdfbox/preflight/TestValidDirectory.java
3219
/***************************************************************************** * * 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 th...
apache-2.0
andreagenso/java2scala
test/J2s/java/openjdk-6-src-b27/jdk/src/share/native/sun/font/FontInstanceAdapter.cpp
10390
/* * Copyright (c) 1999, 2007, 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 ...
apache-2.0
src-code/amphtml
ads/ads.extern.js
13073
/** * Copyright 2016 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
apache-2.0
ascoders/woku
src/common/home/index.js
373
ctrl.$onEnter = function (param, rs, rj) { document.title = '我酷游戏' avalon.vmodels.global.menu.current = '' avalon.vmodels.global.menu.dark = true } ctrl.$onRendered = function () { initCreateAppForm() initCreateAppModal() listen() } ctrl.$onBeforeUnload = function () { // 菜单变白色 avalon....
apache-2.0
mpgerstl/tEFMA
ch/javasoft/smx/ops/matrix/IntMatrixOperations.java
7646
/* * ============================================================================= * Simplified BSD License, see http://www.opensource.org/licenses/ * ----------------------------------------------------------------------------- * Copyright (c) 2008-2009, Marco Terzer, Zurich, Switzerland * All rights reserved. *...
bsd-2-clause
hanxue/linuxbrew
Library/Homebrew/rubocops/formula_desc_cop.rb
4370
require_relative "./extend/formula_cop" require_relative "../extend/string" module RuboCop module Cop module FormulaAudit # This cop audits `desc` in Formulae # # - Checks for existence of `desc` # - Checks if size of `desc` > 80 class DescLength < FormulaCop def audit_formu...
bsd-2-clause
mtakayuki/homebrew-fonts
Casks/font-niconne.rb
360
cask 'font-niconne' do version '1.002' sha256 'dc70580a25914aeec39a9460b7858ee08eb4ad0bbbcd1d7c9cb888a6ea989a27' url 'https://googlefontdirectory.googlecode.com/hg-history/67342bc472599b4c32201ee4a002fe59a6447a42/ofl/niconne/Niconne-Regular.ttf' homepage 'http://www.google.com/fonts/specimen/Niconne' license...
bsd-2-clause
mshossain110/LaravelAdmin
config/chunk-upload.php
1232
<?php return [ /* * The storage config */ 'storage' => [ /* * Returns the folder name of the chunks. The location is in storage/app/{folder_name} */ 'chunks' => 'chunks', 'disk' => 'local', ], 'clear' => [ /* * How old chunks we shoul...
bsd-2-clause
mfikes/homebrew-core
Formula/sphinx-doc.rb
7622
class SphinxDoc < Formula include Language::Python::Virtualenv desc "Tool to create intelligent and beautiful documentation" homepage "https://www.sphinx-doc.org/" url "https://files.pythonhosted.org/packages/d5/75/e2a582a0ce014dce99cab62f251c179712cb6c4377705deb7c9b474e4f35/Sphinx-2.4.4.tar.gz" sha256 "b4c7...
bsd-2-clause
Jebwizard/TFTrees
src/perl/aaron/TruthTrees/BranchTerminator.java
3548
package perl.aaron.TruthTrees; import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.Set; import perl.aaron.TruthTrees.logic.AtomicStatement; import perl.aaron.TruthTrees.logic.Decomposable; import perl.aaron.TruthTrees.logic.Negation; import perl.aaron.TruthTrees.logic.Statement; public class...
bsd-2-clause
MG-RAST/pipeline
bin/index_subset_seq.py
4870
#!/usr/bin/env python import os import sys import subprocess as sub from Bio import SeqIO from optparse import OptionParser __doc__ = """ Given a parent sequence file and one or more children sequence files (the child containing a subset of the parents sequences), return a sorted list of the record numbers of child w...
bsd-2-clause
Pushjet/Pushjet-Android
gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/core/org/gradle/initialization/DefaultGradleLauncher.java
7366
/* * Copyright 2009 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...
bsd-2-clause
mtakayuki/homebrew-fonts
Casks/font-knewave.rb
360
cask 'font-knewave' do version '1.001' sha256 'ed3bac761d755b89ab3082c844d4a623d63c7d6eef85d22ba1fb6c680e6a4436' url 'https://googlefontdirectory.googlecode.com/hg-history/67342bc472599b4c32201ee4a002fe59a6447a42/ofl/knewave/Knewave-Regular.ttf' homepage 'http://www.google.com/fonts/specimen/Knewave' license...
bsd-2-clause
eripa/ba_checker
vendor/github.com/jawher/mow.cli/commands.go
10743
package cli import ( "bytes" "flag" "fmt" "strings" "text/tabwriter" ) /* Cmd represents a command (or sub command) in a CLI application. It should be constructed by calling Command() on an app to create a top level command or by calling Command() on another command to create a sub command */ type Cmd struct { ...
bsd-2-clause
fblackburn/ol3
test/spec/ol/featureloader.test.js
3165
goog.provide('ol.test.featureloader'); goog.require('ol.events'); goog.require('ol.VectorTile'); goog.require('ol.featureloader'); goog.require('ol.format.GeoJSON'); goog.require('ol.format.MVT'); goog.require('ol.proj'); goog.require('ol.source.Vector'); describe('ol.featureloader', function() { describe('ol.fea...
bsd-2-clause
ganeshgore/myremolab
server/src/build/lib.linux-i686-2.7/voodoo/sessions/manager.py
6042
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2005 onwards University of Deusto # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # # This software consists of contributions made by many individuals, # list...
bsd-2-clause
flada-auxv/homebrew-cask
Casks/dungeon-crawl-stone-soup-tiles.rb
325
cask :v1 => 'dungeon-crawl-stone-soup-tiles' do version '0.16.1' sha256 '3fb69a2de46b051da86ad7c038ef91b8364a3c79ec8699c6120d2d041fe8bd6a' url "https://crawl.develz.org/release/stone_soup-#{version}-tiles-macos.zip" homepage 'http://crawl.develz.org' license :gpl app 'Dungeon Crawl Stone Soup - Tiles.app'...
bsd-2-clause
mtakayuki/homebrew-fonts
Casks/font-khand.rb
636
cask 'font-khand' do version '2.000' sha256 '668910b4cd3487a5bbf93f6dd7259914c1596eec7fef28b08877abdbb7775226' url 'https://github.com/itfoundry/khand/releases/download/v2.000/khand-2_000.zip' appcast 'https://github.com/itfoundry/khand/releases.atom', checkpoint: '7ffb8f16e434382ed985ceea0992822e2ea...
bsd-2-clause
qPCR4vir/orange3
Orange/data/sql/filter.py
4861
from .. import filter class IsDefinedSql(filter.IsDefined): def to_sql(self): sql = " AND ".join([ '%s IS NOT NULL' % column for column in self.columns ]) if self.negate: sql = 'NOT (%s)' % sql return sql class SameValueSql(filter.SameValue): ...
bsd-2-clause
npenin/jint
Jint/Native/Undefined.cs
183
namespace Jint.Native { public static class Undefined { public static JsValue Instance = JsValue.Undefined; public static string Text = "undefined"; } }
bsd-2-clause
Alex-Code/yii2
framework/db/Query.php
52691
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\db; use Yii; use yii\base\Component; use yii\base\InvalidArgumentException; use yii\helpers\ArrayHelper; use yii\base\InvalidConfigException; /** * Que...
bsd-3-clause
stephens2424/php
testdata/fuzzdir/corpus/ext_openssl_tests_bug61124.php
103
<?php var_dump(openssl_decrypt('kzo w2RMExUTYQXW2Xzxmg==', 'aes-128-cbc', 'pass', false, 'pass'));
bsd-3-clause
metaplinius/still-lambda
pyglet/graphics/__init__.py
26077
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
bsd-3-clause
openxal/openxal
core/test/src/xal/schemas/AllTests.java
386
package xal.schemas; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class) @SuiteClasses({ DeviceMappingTest.class, HardwareStatusTest.class, MainTest.class, ModelConfigTest.class, OpticsTest.class, TableGroupTest.class,...
bsd-3-clause
daejunpark/jsaf
tests/tizen_tests/AddrBook_get1.js
643
/******************************************************************************* Copyright (c) 2013, S-Core. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. **********************************************************************...
bsd-3-clause