code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
package leafnodes_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/internal/leafnodes" . "github.com/onsi/gomega" "reflect" "runtime" "time" "github.com/onsi/ginkgo/internal/codelocation" Failer "github.com/onsi/ginkgo/internal/failer" "github.com/onsi/ginkgo/types" ) type runnable interf...
starkandwayne/cf-cli
Godeps/_workspace/src/github.com/onsi/ginkgo/internal/leafnodes/shared_runner_test.go
GO
apache-2.0
10,464
// Copyright 2016-2019 Authors of Cilium // // 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 ag...
tgraf/cilium
pkg/policy/config.go
GO
apache-2.0
1,981
package org.wikipedia; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.net.ConnectivityManager...
creaITve/apps-android-tbrc-works
wikipedia/src/main/java/org/wikipedia/Utils.java
Java
apache-2.0
28,052
#include <boost/test/unit_test.hpp> #include <boost/lambda/lambda.hpp> #include <boost/lambda/bind.hpp> #include <iostream> #include <sstream> #include <3rdparty/zookeeper/ZooKeeper.hpp> #include <3rdparty/zookeeper/ZooKeeperWatcher.hpp> #include <3rdparty/zookeeper/ZooKeeperEvent.hpp> using namespace std; using nam...
izenecloud/izenelib
test/3rdparty/zookeeper/t_zookeeper.cpp
C++
apache-2.0
6,019
// Copyright 2022 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
googleapis/google-cloud-dotnet
apis/Google.Cloud.Compute.V1/Google.Cloud.Compute.V1.GeneratedSnippets/RegionInstanceGroupManagersClient.ListPerInstanceConfigsRequestObjectAsyncSnippet.g.cs
C#
apache-2.0
3,764
<?php /* * Copyright 2016 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...
googleapis/discovery-artifact-manager
clients/php/google-api-php-client-services/src/Google/Service/Logging/Resource/OrganizationsSinks.php
PHP
apache-2.0
5,423
/*** Copyright (c) 2008-2012 CommonsWare, 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 w...
alexsh/cw-omnibus
JVM/InterpreterService/src/com/commonsware/abj/interp/InterpreterService.java
Java
apache-2.0
4,412
package com.pacoapp.paco.os; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.pacoapp.paco.R; import com.pacoapp.paco.Use...
hlecuanda/paco
Paco/src/com/pacoapp/paco/os/RingtoneUtil.java
Java
apache-2.0
12,217
#region using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using Tabster.Core.Plugins; using Tabster.Utilities; #endregion namespace Tabster.Plugins { public class PluginInstance { private bool _enabled; private List<Type> _types = new...
GetTabster/Tabster
Tabster/Plugins/PluginInstance.cs
C#
apache-2.0
2,948
package com.beecavegames.common.handlers.admin; import java.io.Serializable; import org.joda.time.DateTime; import lombok.AllArgsConstructor; @AllArgsConstructor public class PlayerBackupMetadata implements Serializable { private static final long serialVersionUID = -485633840234547452L; public long beeId; pu...
sgmiller/hiveelements
core/src/main/java/common/handlers/admin/PlayerBackupMetadata.java
Java
apache-2.0
349
#ifndef AUTOBOOST_MPL_FOR_EACH_HPP_INCLUDED #define AUTOBOOST_MPL_FOR_EACH_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2008 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/...
codemercenary/autowiring
contrib/autoboost/autoboost/mpl/for_each.hpp
C++
apache-2.0
3,170
(function() { function timecode() { return function(seconds) { var seconds = Number.parseFloat(seconds); if (Number.isNaN(seconds)) { return '-:--' }; var wholeSeconds = Math.floor(seconds); var minutes = Math.floor(wh...
sjcliu/bloc-jams-angular
dist/scripts/filters/timecode.js
JavaScript
apache-2.0
692
module RSpec module Matchers module BuiltIn class OperatorMatcher class << self def registry @registry ||= {} end def register(klass, operator, matcher) registry[klass] ||= {} registry[klass][operator] = matcher end ...
sghill/gocd
server/webapp/WEB-INF/rails.new/vendor/bundle/jruby/1.9/gems/rspec-expectations-2.99.2/lib/rspec/matchers/operator_matcher.rb
Ruby
apache-2.0
3,913
/* * Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
redox/OrientDB
core/src/main/java/com/orientechnologies/orient/core/sql/operator/OQueryOperatorOr.java
Java
apache-2.0
2,880
/* * 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 n...
paulgallagher75/activemq-artemis
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java
Java
apache-2.0
32,136
/* * Copyright 2010-2014 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 "l...
rafd123/aws-sdk-net
sdk/src/Services/DirectConnect/Generated/Model/DeleteInterconnectRequest.cs
C#
apache-2.0
1,636
package org.apache.pdfbox.pdmodel.graphics; import org.apache.pdfbox.cos.COSName; import org.apache.pdfbox.pdmodel.common.PDStream; /** * A PostScript XObject. * Conforming readers may not be able to interpret the PostScript fragments. * * @author John Hewson */ public class PDPostScriptXObject extend...
mdamt/PdfBox-Android
library/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDPostScriptXObject.java
Java
apache-2.0
535
# Copyright 2021 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. PYTHON_VERSION_COMPATIBILITY = 'PY2+3' DEPS = [ 'cq', 'properties', 'step', ] def RunSteps(api): api.step('show properties', []) api....
luci/recipes-py
recipe_modules/cq/tests/mode_of_run.py
Python
apache-2.0
825
// Copyright 2016-2017 Authors of Cilium // // 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 ag...
tgraf/cilium
pkg/addressing/ip.go
GO
apache-2.0
4,261
/* * Copyright 2008 biaoping.yin * * 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 l...
bbossgroups/bbossgroups-3.5
bboss-core/src/org/frameworkset/spi/assemble/Context.java
Java
apache-2.0
2,300
// Copyright 2017 Monax Industries Limited // // 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...
benjaminbollen/eris-db
manager/burrow-mint/evm/stack.go
GO
apache-2.0
2,847
/* * 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")...
incodehq/isis
core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/errors/ExceptionModel.java
Java
apache-2.0
6,578
// // Copyright (c) Microsoft and contributors. 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...
AzureAutomationTeam/azure-powershell
src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/SnapshotUpdateMethod.cs
C#
apache-2.0
4,375
import { get } from 'lodash'; class WizardHelper { constructor() {} isScheduleModeEvery(scheduleString) { return !!scheduleString.match(/every\s(\d+)\s(seconds|minutes|hours|days|months|years)/); } isWizardWatcher(watcher) { return get(watcher, 'wizard.chart_query_params'); } getUniqueTagId(name...
elasticfence/kaae
public/pages/watcher_wizard/services/wizard_helper/wizard_helper.js
JavaScript
apache-2.0
414
from django.conf import settings from django.utils.module_loading import import_string from .tracing import DjangoTracing from .tracing import initialize_global_tracer try: # Django >= 1.10 from django.utils.deprecation import MiddlewareMixin except ImportError: # Not required for Django <= 1.9, see: ...
kawamon/hue
desktop/core/ext-py/django_opentracing-1.1.0/django_opentracing/middleware.py
Python
apache-2.0
3,646
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/appstream/model/CreateFleetRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::AppStream::Model; using namespace Aws::Utils::Json; using ...
jt70471/aws-sdk-cpp
aws-cpp-sdk-appstream/source/model/CreateFleetRequest.cpp
C++
apache-2.0
3,638
/** * Get more info at : www.jrebirth.org . * Copyright JRebirth.org © 2011-2013 * Contact : sebastien.bordes@jrebirth.org * * 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...
JRebirth/JRebirth
org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/font/FontItemBase.java
Java
apache-2.0
6,279
/* * Copyright 2012 Martin Winandy * * 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...
yarish/tinylog
tinylog/src/main/java/org/pmw/tinylog/Tokenizer.java
Java
apache-2.0
21,096
// // Copyright 2015 Blu Age Corporation - Plano, Texas // // 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 // // Un...
SummerBatch/SummerBatch
Summer.Batch.Extra/Ebcdic/IEbcdicReaderMapper.cs
C#
apache-2.0
1,853
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/es/model/AutoTune.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace Elastic...
aws/aws-sdk-cpp
aws-cpp-sdk-es/source/model/AutoTune.cpp
C++
apache-2.0
1,529
<?php /************************************************************************/ /* PHP-NUKE: Advanced Content Management System */ /* ============================================ */ /* */ /* Copyright ...
xtoolkit/XMPN
Xtouch/header2.php
PHP
apache-2.0
8,225
// -*- mode: java; c-basic-offset: 2; -*- // Copyright 2009-2011 Google, All Rights reserved // Copyright 2011-2020 MIT, All rights reserved // Released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 package com.google.appinventor.client.wizards; import static com.google.appinvent...
halatmit/appinventor-sources
appinventor/appengine/src/com/google/appinventor/client/wizards/ComponentImportWizard.java
Java
apache-2.0
9,473
/*************************GO-LICENSE-START********************************* * Copyright 2014 ThoughtWorks, 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...
xli/gocd
common/src/com/thoughtworks/go/domain/materials/AgentSubprocessExecutionContext.java
Java
apache-2.0
1,684
package com.wangjie.rapidrouter; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public voi...
wangjiegulu/RapidRouter
library/src/test/java/com/wangjie/rapidrouter/ExampleUnitTest.java
Java
apache-2.0
401
/* * 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 ...
tgroh/incubator-beam
sdks/java/core/src/test/java/org/apache/beam/sdk/coders/ListCoderTest.java
Java
apache-2.0
4,233
config = { "interfaces": { "google.bigtable.v2.Bigtable": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], "non_idempotent": [], }, "retry_params": { "default": { "initial_retry_dela...
dhermes/google-cloud-python
bigtable/google/cloud/bigtable_v2/gapic/bigtable_client_config.py
Python
apache-2.0
2,407
/******************************************************************************* * Copyright 2013 * Ubiquitous Knowledge Processing (UKP) Lab * Technische Universität Darmstadt * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. *...
TitasNandi/Summer_Project
dkpro-similarity-master/dkpro-similarity-algorithms-core-asl/src/main/java/dkpro/similarity/algorithms/package-info.java
Java
apache-2.0
937
/* The copyright in this software is being made available under the BSD * License, included below. This software may be subject to other third party * and contributor rights, including patent rights, and no such rights are * granted under this license. * * Copyright (c) 2010-2012, ITU/ISO/IEC * All rights r...
lheric/GitlHEVCAnalyzer
appgitlhevcdecoder/HM-5.2/source/Lib/TLibDecoder/NALread.cpp
C++
apache-2.0
5,455
/* * 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...
sdnwiselab/onos
apps/openstacknetworking/src/main/java/org/onosproject/openstacknetworking/impl/HostBasedInstancePortManager.java
Java
apache-2.0
6,879
package com.deliveredtechnologies.rulebook.runner.test.rulebooks; /** * Sample POJO rule with no annotations whatsoever. */ public class SampleRuleWithoutRuleAnnotation { }
Clayton7510/RuleBook
rulebook-core/src/test/java/com/deliveredtechnologies/rulebook/runner/test/rulebooks/SampleRuleWithoutRuleAnnotation.java
Java
apache-2.0
176
package play.curator.lock; import java.util.concurrent.TimeUnit; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.framework.recipes.locks.InterProcessLock; import org.apache.curator.framework.recipes.locks.InterProcessSemaphor...
jbaiera/zookeeper-play
src/main/java/play/curator/lock/LockClient.java
Java
apache-2.0
2,027
/* * 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/incubator-shardingsphere
shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/parser/MySQLParserFacade.java
Java
apache-2.0
1,510
# # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may n...
telefonicaid/fiware-cosmos-ambari
ambari-agent/src/main/puppet/modules/hdp/lib/puppet/parser/functions/hdp_host.rb
Ruby
apache-2.0
1,024
/* * Copyright 2015-2025 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...
fengyouchao/fucksocks
src/main/java/sockslib/common/Credentials.java
Java
apache-2.0
1,041
#include <3rdparty/yaml-cpp/node/node.h> #include "nodebuilder.h" #include "nodeevents.h" namespace YAML { Node Clone(const Node& node) { NodeEvents events(node); NodeBuilder builder; events.Emit(builder); return builder.Root(); } }
izenecloud/izenelib
source/3rdparty/yaml-cpp/node.cpp
C++
apache-2.0
272
package com.miaotu.adapter; import android.content.Context; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import com.koushikdutta.urlimageviewhelper.UrlImageViewHelper; impo...
miaotu3/Mitotu
MiaoTu/src/main/java/com/miaotu/adapter/GroupUserAdapter.java
Java
apache-2.0
2,624
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. #nullable enable using System.Collections.Generic; namespace Microsoft.CodeAnalysis.Shared.Extensions { internal static class IAssemblySymbolExtensions...
nguerrera/roslyn
src/Workspaces/Core/Portable/Shared/Extensions/IAssemblySymbolExtensions.cs
C#
apache-2.0
2,282
package com.custardsource.parfait.spring; import java.util.Random; @Profiled public class DelayingBean { private final int delay; public DelayingBean() { this.delay = new Random().nextInt(100); } @Profiled public void doThing() { try { Thread.sleep(delay); } catch (InterruptedException e) { throw...
akshayahn/parfait
parfait-spring/src/test/java/com/custardsource/parfait/spring/DelayingBean.java
Java
apache-2.0
355
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-09-06 01:35 from __future__ import unicode_literals from django.db import migrations, models def load_settings(apps, schema_editor): Setting = apps.get_model("climate_data", "Setting") Setting( name="receiving_data", value="0" ).s...
qubs/data-centre
climate_data/migrations/0014_auto_20160906_0135.py
Python
apache-2.0
506
/* Copyright 2012, Strategic Gains, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
kushalagrawal/RestExpress
src/java/com/strategicgains/restexpress/response/ResponseProcessorResolver.java
Java
apache-2.0
2,010
/** * 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...
kevinearls/camel
examples/camel-example-fhir-osgi/src/test/java/org/apache/camel/example/fhir/osgi/FhirOsgiIT.java
Java
apache-2.0
3,055
/* * 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 ma...
apache/olingo-odata4
samples/tutorials/p11_batch/src/main/java/myservice/mynamespace/web/DemoServlet.java
Java
apache-2.0
3,114
package ingvar.android.processor.service; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; i...
orwir/processor
core/src/main/java/ingvar/android/processor/service/Processor.java
Java
apache-2.0
8,123
/******************************************************************************* * Copyright (c) quickfixengine.org All rights reserved. * * This file is part of the QuickFIX FIX Engine * * This file may be distributed under the terms of the quickfixengine.org * license as defined by quickfixengine.org and ...
Forexware/quickfixj
src/main/java/quickfix/field/OfferSwapPoints.java
Java
apache-2.0
1,279
// Copyright 2017 The Prometheus 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...
GoogleCloudPlatform/prometheus-engine
vendor/github.com/prometheus/prometheus/tsdb/index/postings.go
GO
apache-2.0
16,432
using System; using System.Collections; using System.Collections.Generic; using System.Threading; namespace Restful.Collections.Generic { /// <summary> /// 表示键值对的线程安全泛型集合 /// </summary> /// <typeparam name="TKey">键类型</typeparam> /// <typeparam name="TValue">值类型</typeparam> [Serializable] p...
chinadev/Restful
src/Restful/Restful/Collections/Generic/ThreadSafeDictionary.cs
C#
apache-2.0
4,347
/* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * 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 ...
manolovn/Renderers
sample/src/main/java/com/pedrogomez/renderers/sample/ui/renderers/LiveVideoRenderer.java
Java
apache-2.0
2,132
/* * 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 ...
pivotal-amurmann/geode
geode-core/src/main/java/org/apache/geode/internal/cache/execute/AbstractExecution.java
Java
apache-2.0
17,394
# Copyright 2011 OpenStack Foundation. # All Rights Reserved. # Copyright 2013 Red Hat, 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/licens...
eayunstack/oslo.messaging
oslo/messaging/notify/notifier.py
Python
apache-2.0
11,163
// Copyright 2015 The LUCI 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...
luci/luci-go
server/auth/authdb/validation.go
GO
apache-2.0
4,474
/* * Minimalist Object Storage, (C) 2014 Minio, 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 applica...
flandr/minio
doc.go
GO
apache-2.0
701
#!/usr/bin/env python # Copyright (c) 2015 OpenStack Foundation. # 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/LIC...
chenyujie/hybrid-murano
tools/lintstack.py
Python
apache-2.0
6,700
// Copyright 2018 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...
dropbox/bazel
src/main/java/com/google/devtools/build/lib/skylarkbuildapi/repository/SkylarkOSApi.java
Java
apache-2.0
1,570
package org.hl7.fhir.dstu3.model; /* Copyright (c) 2011+, HL7, 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 copyr...
Gaduo/hapi-fhir
hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Resource.java
Java
apache-2.0
17,114
/** * Copyright 2013 52°North Initiative for Geospatial Open Source Software GmbH * * 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 * ...
52North/OpenSensorSearch
sor-common/src/main/java/org/n52/sor/client/GetMatchingDefinitionsBean.java
Java
apache-2.0
3,262
/* * Copyright 2016 e-UCM (http://www.e-ucm.es/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * This project has received funding from the European Union’s Horizon * 2020 research and innovation programme under grant agreeme...
e-ucm/a2
routes/applications.js
JavaScript
apache-2.0
25,370
//===--- IRGenSIL.cpp - Swift Per-Function IR Generation ------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
codestergit/swift
lib/IRGen/IRGenSIL.cpp
C++
apache-2.0
187,807
/* * Copyright 2022 ThoughtWorks, 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 agr...
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/ArtifactTypeConfigsTest.java
Java
apache-2.0
14,363
<?php /* * This file is part of the Doctrine\OrientDB package. * * (c) Alessandro Nadalin <alessandro.nadalin@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Class Updates * * @package Doctrine\OrientDB *...
spartaksun/orientdb-query
src/Formatter/Query/Updates.php
PHP
apache-2.0
1,400
/* * Copyright 2015-2021 The OpenZipkin 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 a...
openzipkin/zipkin
zipkin-lens/src/components/DiscoverPage/SearchBar/SearchBar.tsx
TypeScript
apache-2.0
8,051
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ml.action; import org.elasticsearch.action.Ac...
nknize/elasticsearch
x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportGetTrainedModelsAction.java
Java
apache-2.0
3,814
// Copyright 2004, 2005, 2006 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/tapestry-5
tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/internal/services/MiddleFilter.java
Java
apache-2.0
802
# # # 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 n...
JingchengDu/hbase
hbase-shell/src/main/ruby/shell.rb
Ruby
apache-2.0
11,986
package io.cattle.platform.process.agent; import io.cattle.platform.agent.util.AgentUtils; import io.cattle.platform.core.constants.StoragePoolConstants; import io.cattle.platform.core.model.Account; import io.cattle.platform.core.model.Agent; import io.cattle.platform.core.model.StoragePool; import io.cattle.platform...
wlan0/cattle
code/iaas/logic/src/main/java/io/cattle/platform/process/agent/AgentRemove.java
Java
apache-2.0
2,106
/** * */ package org.hamster.weixinmp.model.menu; import java.util.List; import org.hamster.weixinmp.dao.entity.menu.WxMenuBtnEntity; /** * @author honey.zhao@aliyun.com * @version Aug 4, 2013 * */ public class WxMenuCreateJson { private List<WxMenuBtnEntity> button; public List<WxMenuBtnEntity> getButton...
Wingo7239/WeixinMultiPlatform
src/main/java/org/hamster/weixinmp/model/menu/WxMenuCreateJson.java
Java
apache-2.0
617
# # 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 us...
chamikaramj/incubator-beam
sdks/python/apache_beam/io/tfrecordio.py
Python
apache-2.0
10,445
package daemon import ( "fmt" "sync" "time" "github.com/docker/docker/pkg/units" ) type State struct { sync.Mutex Running bool Paused bool Restarting bool Pid int ExitCode int StartedAt time.Time FinishedAt time.Time waitChan chan struct{} } func NewState() *State { return &State{ ...
mwhudson/docker
daemon/state.go
GO
apache-2.0
3,937
/* * Copyright 2012-2016 bambooCORE, greenstep of copyright Chen Xin Nien * * 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 * * ...
quangnguyen9x/bamboobsc_quangnv
qcharts-web/src/com/netsteadfast/greenstep/qcharts/action/utils/SelectItemFieldCheckUtils.java
Java
apache-2.0
1,369
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.mskcc.shenkers.control.track; /** * * @author sol */ public enum FileType { BAM, WIG, GTF, BED, FA...
shenkers/CrossBrowse
src/main/java/org/mskcc/shenkers/control/track/FileType.java
Java
apache-2.0
326
import React from 'react'; import { Box, WorldMap } from 'grommet'; export const SelectPlace = () => { const [places, setPlaces] = React.useState(); const onSelectPlace = (place) => { console.log('Selected', place); setPlaces([{ color: 'graph-1', location: place }]); }; return ( <Box align="cent...
HewlettPackard/grommet
src/js/components/WorldMap/stories/SelectPlace.js
JavaScript
apache-2.0
595
/** * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in co...
sheliu/openregistry
openregistry-api/src/main/java/org/openregistry/core/domain/OrganizationalUnit.java
Java
apache-2.0
1,279
package com.github.czyzby.lml.parser.impl.attribute.list; import com.badlogic.gdx.scenes.scene2d.ui.List; import com.github.czyzby.lml.parser.LmlParser; import com.github.czyzby.lml.parser.tag.LmlAttribute; import com.github.czyzby.lml.parser.tag.LmlTag; /** See {@link com.badlogic.gdx.scenes.scene2d.utils.Selection#...
tommyettinger/SquidSetup
src/main/java/com/github/czyzby/lml/parser/impl/attribute/list/RequiredLmlAttribute.java
Java
apache-2.0
1,036
/* * 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/cocoon
blocks/cocoon-portal/cocoon-portal-sitemap/src/main/java/org/apache/cocoon/portal/acting/CopletSetDataAction.java
Java
apache-2.0
3,337
<?php include('dao.php'); global $dbh; $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $data = ''; $id = $_POST['id']; $status = $_POST['status']; if($status == "Failed" || $status == "Rejected"){ $failureReason = $_POST['failureReason']; $sql = $dbh->prepare(...
chebryan/Qsoft-Admin
core/callback_url.php
PHP
apache-2.0
1,383
/*! * ${copyright} */ // Provides the Design Time Metadata for the sap.m.Slider control sap.ui.define([], function () { "use strict"; return { name: { singular: "SLIDER_NAME", plural: "SLIDER_NAME_PLURAL" }, palette: { group: "INPUT", icons: { svg: "sap/m/designtime/Slider.icon.svg...
SAP/openui5
src/sap.m/src/sap/m/designtime/Slider.designtime.js
JavaScript
apache-2.0
709
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using Sys...
slozier/ironpython2
Src/IronPython.Modules/math.cs
C#
apache-2.0
19,692
package org.jrivets.transaction; /** * The interface defines an action which can be executed in * {@link SimpleTransaction} context. * * @author Dmitry Spasibenko * */ public interface Action { /** * Executes the action itself. In case of fail should throw an exception * * @throws Throwabl...
obattalov/jrivets-common
src/main/java/org/jrivets/transaction/Action.java
Java
apache-2.0
891
/* * 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...
duesenklipper/wicket-security-1.4
examples/all_in_one/src/main/java/org/apache/wicket/security/examples/pages/MyUnSecurePage.java
Java
apache-2.0
1,765
/* * Copyright 2019, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.enmasse.admin.model; import io.fabric8.kubernetes.api.model.HasMetadata; import java.util.List; import java.util.Map; public interface AddressSpacePlan extends H...
EnMasseProject/enmasse
api-model/src/main/java/io/enmasse/admin/model/AddressSpacePlan.java
Java
apache-2.0
572
################################################################################ # Copyright (c) 2015-2019 Skymind, Inc. # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at # https://www.apache.org/licenses/LICENSE-2.0. # # Unless...
RobAltena/deeplearning4j
pydl4j/pydl4j/downloader.py
Python
apache-2.0
3,179
package org.carlspring.strongbox.xml.parsers; import org.carlspring.strongbox.url.ClasspathURLStreamHandler; import org.carlspring.strongbox.url.ClasspathURLStreamHandlerFactory; import org.carlspring.strongbox.xml.CustomTagService; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax....
AlexOreshkevich/strongbox
strongbox-configuration/src/main/java/org/carlspring/strongbox/xml/parsers/GenericParser.java
Java
apache-2.0
5,887
var zkUtil = require('../util'); var zkConstants = require('../constants'); var ZK = require('zookeeper').ZooKeeper; /** * @constructor * encapsulate the lock algorithm. I didn't want it exposed in the client. * @param {ZkClient} client client doing the locking. * @param {String} node name of lock. * @param {Fu...
racker/service-registry
node_modules/zookeeper-client/lib/algorithms/lock.js
JavaScript
apache-2.0
6,297
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config'; interface Blob {} declare class IoT1ClickProjec...
chrisradek/aws-sdk-js
clients/iot1clickprojects.d.ts
TypeScript
apache-2.0
20,275
using System.Collections.Generic; using System.Globalization; using System.Linq; using soothsayer.Infrastructure; using soothsayer.Infrastructure.IO; using soothsayer.Migrations; using soothsayer.Scanners; using soothsayer.Scripts; namespace soothsayer { public class OracleMigrator : IMigrator { ...
paybyphone/soothsayer
soothsayer/OracleMigrator.cs
C#
apache-2.0
10,677
package org.apache.uima.casviewer.core.internal; import java.util.List; /** * A node that contains a list of AnnotationObject(s) * */ public class AnnotationObjectsNode { protected List<AnnotationObject> annotationList; public AnnotationObjectsNode () { } public AnnotationObjectsNo...
apache/uima-sandbox
CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/core/internal/AnnotationObjectsNode.java
Java
apache-2.0
717
/* * JBoss, Home of Professional Open Source * Copyright 2012, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
antoinesd/weld-core
impl/src/main/java/org/jboss/weld/injection/producer/ProducerMethodProducer.java
Java
apache-2.0
5,998
package controllers; import play.shaded.ahc.org.asynchttpclient.AsyncHttpClient; import play.shaded.ahc.org.asynchttpclient.BoundRequestBuilder; import play.shaded.ahc.org.asynchttpclient.ListenableFuture; import play.shaded.ahc.org.asynchttpclient.ws.WebSocket; import play.shaded.ahc.org.asynchttpclient.ws.WebSocketL...
play2-maven-plugin/play2-maven-test-projects
play26/java/websocket-example-using-webjars-assets/test/controllers/WebSocketClient.java
Java
apache-2.0
2,469
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. # COM interop utility module import sys import nt from iptest.assert_util import * from iptest.file_util ...
slozier/ironpython2
Src/IronPython/Lib/iptest/cominterop_util.py
Python
apache-2.0
24,101
package com.badlogic.gdx.backends.jglfw; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Graphics.DisplayMode; import com.badlogic.gdx.backends.jglfw.JglfwGraphics.JglfwDisplayMode; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.utils.Array; import java.awt.GraphicsDevice; import java.awt.Graph...
domix/libgdx
backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/JglfwApplicationConfiguration.java
Java
apache-2.0
3,674
package com.xnx3.j2ee.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import static javax.persistence.GenerationType.IDENTITY; import javax.persistence.Id; import javax.persistence.Table; /** * FriendLog entity. @author MyEclipse Persistence Tools *...
xnx3/iw_demo
src/com/xnx3/j2ee/entity/FriendLog.java
Java
apache-2.0
1,858