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 |
|---|---|---|---|---|---|
import { IServerGroup } from '@spinnaker/core';
import { ICloudFoundrySpace, ICloudFoundryDroplet } from 'cloudfoundry/domain';
import { ICloudFoundryInstance } from 'cloudfoundry/domain/ICloudFoundryInstance';
export interface ICloudFoundryServerGroup extends IServerGroup {
appsManagerUri?: string;
diskQuota: nu... | sgarlick987/deck | app/scripts/modules/cloudfoundry/src/domain/ICloudFoundryServerGroup.ts | TypeScript | apache-2.0 | 1,141 |
/*
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, ... | shashidharatd/kubernetes | cmd/kubeadm/app/master/manifests.go | GO | apache-2.0 | 15,281 |
/*
* 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/incubator-tamaya | code/api/src/test/java/org/apache/tamaya/InvocationRecorder.java | Java | apache-2.0 | 2,591 |
// Package pb provides underlying implementation for qy and mp
package pb
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
// AccessTokenResponse stores the normal result of access token fetching.
type AccessTokenResponse struct {
AccessToken string `json:"access_token"`
ExpiresIn float64 `js... | wmydz1/gowechat | pb/accesstoken.go | GO | apache-2.0 | 1,252 |
/*
* Copyright 2016 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 ap... | dgutierr/kie-wb-common | kie-wb-common-screens/kie-wb-common-project-editor/kie-wb-common-project-editor-backend/src/test/java/org/kie/workbench/common/screens/projecteditor/backend/server/PomEditorServiceImplTest.java | Java | apache-2.0 | 21,647 |
/**
* 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... | drewpope/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RegionReplicaReplicationEndpoint.java | Java | apache-2.0 | 22,360 |
/*
* Copyright 2012-2020 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... | snicoll/initializr | initializr-actuator/src/main/java/io/spring/initializr/actuate/stat/ProjectRequestDocumentFactory.java | Java | apache-2.0 | 5,855 |
// HTMLParser Library - A java-based parser for HTML
// http://htmlparser.org
// Copyright (C) 2006 Claude Duguay
//
// Revision Control Information
//
// $URL: https://svn.sourceforge.net/svnroot/htmlparser/trunk/lexer/src/main/java/org/htmlparser/util/ParserException.java $
// $Author: derrickoswald $
// $Date: 2006-... | patrickfav/tuwien | master/swt workspace/HTMLParser/src/org/htmlparser/util/ParserException.java | Java | apache-2.0 | 1,512 |
package at.jku.sea.cloud.exceptions;
public class ArtifactNotPushOrPullableException extends RuntimeException {
private static final long serialVersionUID = 1L;
public ArtifactNotPushOrPullableException(final long aid) {
super("artifact (id=" + aid + ") references (type, package, project) existing only in WS"... | OnurKirkizoglu/master_thesis | at.jku.sea.cloud/src/main/java/at/jku/sea/cloud/exceptions/ArtifactNotPushOrPullableException.java | Java | apache-2.0 | 328 |
/**
* 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... | tecknowledgeable/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/BootstrapStandby.java | Java | apache-2.0 | 16,024 |
# Copyright 2014 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/LICENSE-2.0
#
# Unless requ... | vishnu-kumar/ec2-api | ec2api/tests/functional/api/test_snapshots.py | Python | apache-2.0 | 10,696 |
#include <stdio.h>
#include "ali_api_core.h"
#include "ali_string_utils.h"
#include "ali_rds.h"
#include "json/value.h"
#include "json/reader.h"
using namespace aliyun;
namespace {
void Json2Type(const Json::Value& value, std::string* item);
void Json2Type(const Json::Value& value, RdsReleaseInstancePublicCon... | zcy421593/aliyun-openapi-cpp-sdk | aliyun-api-rds/2014-08-15/src/ali_rds_release_instance_public_connection.cc | C++ | apache-2.0 | 3,520 |
/**
* This package contains classes for mapping between Particles and Tuples.
*/
package nl.tno.sensorstorm.particlemapper; | sensorstorm/SensorStorm | SensorStorm/src/nl/tno/sensorstorm/particlemapper/package-info.java | Java | apache-2.0 | 128 |
/******************************************************************************
* Copyright 2017 The Apollo 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
... | msbeta/apollo | modules/localization/msf/common/io/velodyne_utility.cc | C++ | apache-2.0 | 6,790 |
/**
* 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... | WANdisco/amplab-hive | ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFAddMonths.java | Java | apache-2.0 | 7,518 |
using System;
using ProtoBuf.Services.Serialization;
namespace ProtoBuf.Services.WebAPI
{
public interface IProtoMetaProvider
{
string GetMetaData(Type type);
TypeMetaData FromJson(byte[] json);
}
} | maingi4/ProtoBuf.Services | ProtoBuf.Services.WebAPI/IProtoMetaProvider.cs | C# | apache-2.0 | 227 |
/*
Copyright 2014 The Kubernetes 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 ag... | bcbroussard/kubernetes | pkg/api/v1beta3/conversion.go | GO | apache-2.0 | 10,116 |
/**
* 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... | alibaba/weex | android/sdk/src/main/java/org/apache/weex/ui/action/GraphicActionAddElement.java | Java | apache-2.0 | 7,884 |
// 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.ResourceManager.V3/Google.Cloud.ResourceManager.V3.GeneratedSnippets/TagKeysClient.TestIamPermissionsRequestObjectSnippet.g.cs | C# | apache-2.0 | 1,856 |
/**
* 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 ... | wyg1990/Mallet | src/main/java/com/intel/mallet/Conf.java | Java | apache-2.0 | 5,783 |
package com.pacoapp.paco.ui;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.android.apps.paco.AccountChooser;
import com.google.android.gms.auth.GooglePlayServicesAvailabilityException;
import com.google.android.gms.auth.UserRecoverableAuthException;
import com.google.android.gms.common.Co... | google/paco | Paco/src/com/pacoapp/paco/ui/SplashActivity.java | Java | apache-2.0 | 14,782 |
/**
*
* Process Editor - Animation Package
*
* (C) 2009, 2010 inubit AG
* (C) 2014 the authors
*
*/
package com.inubit.research.animation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.List;
import net.frapu.code.visualization.Configuration;
import net.frapu.code.visualizat... | bptlab/processeditor | src/com/inubit/research/animation/LayoutingAnimator.java | Java | apache-2.0 | 9,066 |
//CHECKSTYLE:FileLength:OFF
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apa... | MikhailHubanau/pentaho-kettle | engine/src/org/pentaho/di/trans/Trans.java | Java | apache-2.0 | 191,825 |
// Copyright 2007-2016 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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... | jsmale/MassTransit | src/MassTransit.RabbitMqTransport.Tests/ConcurrencyFilter_Specs.cs | C# | apache-2.0 | 2,753 |
# Copyright 2011 OpenStack 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 applicable l... | derekchiang/keystone | keystone/openstack/common/rpc/zmq_receiver.py | Python | apache-2.0 | 1,154 |
/*******************************************************************************
* Copyright (c) 2015-2018 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.
*
*... | deeplearning4j/deeplearning4j | arbiter/arbiter-deeplearning4j/src/main/java/org/deeplearning4j/arbiter/dropout/GaussianNoiseSpace.java | Java | apache-2.0 | 2,098 |
/*
* 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/commons-compress | src/main/java/org/apache/commons/compress/utils/ServiceLoaderIterator.java | Java | apache-2.0 | 2,727 |
package answers.chapter3;
import java.util.stream.IntStream;
public class ForEach06 {
public ForEach06() {
// for文で記述
printEvens();
// IntStream#rangeメソッドでストリームを生成して、使用
printEvensStream1();
// filterメソッドを追加
printEvensStream2();
// メソッド参照を使用
... | gobjapan/LambdaOkeiko | src/answers/chapter3/ForEach06.java | Java | apache-2.0 | 1,304 |
# frozen_string_literal: true
# Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0... | SeleniumHQ/selenium | rb/spec/integration/selenium/webdriver/element_spec.rb | Ruby | apache-2.0 | 19,292 |
"""The Hunter Douglas PowerView integration."""
import asyncio
from datetime import timedelta
import logging
from aiopvapi.helpers.aiorequest import AioRequest
from aiopvapi.helpers.constants import ATTR_ID
from aiopvapi.helpers.tools import base64_to_unicode
from aiopvapi.rooms import Rooms
from aiopvapi.scenes impor... | turbokongen/home-assistant | homeassistant/components/hunterdouglas_powerview/__init__.py | Python | apache-2.0 | 5,873 |
var AddressInSeattleView = function (answerService) {
this.initialize = function () {
// Define a div wrapper for the view (used to attach events)
this.$el = $('<div/>');
var queryAddress = function(evt) {
var geocodeDeferred = $.Deferred();
var geocoder = new google.maps.Geocoder(... | working-wa/whats-my-wage-app | www/js/AddressInSeattleView.js | JavaScript | apache-2.0 | 2,780 |
/*
* Copyright 2014-present Facebook, 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... | dsyang/buck | test/com/facebook/buck/parser/BuildFileSpecTest.java | Java | apache-2.0 | 11,992 |
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace System.Html {
[IgnoreNamespace, Imported(ObeysTypeSystem = true)]
public partial class DOMRectList {
internal DOMRectList() {
}
[IndexerName("__Item"), IntrinsicProperty]
public DOMRect this[int index] {
get {
return ... | n9/SaltarelleWeb | Web/Generated/Html/DOMRectList.cs | C# | apache-2.0 | 642 |
/*
* Copyright 2000-2017 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... | jk1/intellij-community | platform/lang-api/src/com/intellij/execution/runners/ExecutionEnvironmentBuilder.java | Java | apache-2.0 | 8,057 |
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | ahmed-mahran/hue | apps/beeswax/src/beeswax/server/hive_server2_lib.py | Python | apache-2.0 | 38,037 |
"use strict";
var CONST = require('../persistence/sqlconst');
var util = require("util");
var DEFAULT_LIMIT = 50;
var MAX_THRESHOLD = 500;
var knexModule = require("knex");
/**
*
* @param name
* @constructor
*/
function Blog(knexConfig) {
this.knex = knexModule(knexConfig);
}
//DDL Functions
Blog.prototype.dr... | mohan82/myblog-api | persistence/blog.js | JavaScript | apache-2.0 | 2,864 |
<?php
final class DiffusionRepositoryEditEngine
extends PhabricatorEditEngine {
const ENGINECONST = 'diffusion.repository';
private $versionControlSystem;
public function setVersionControlSystem($version_control_system) {
$this->versionControlSystem = $version_control_system;
return $this;
}
pu... | wikimedia/phabricator | src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php | PHP | apache-2.0 | 19,968 |
/*
* Created on 21.07.2015
*/
package com.github.dockerjava.core.command;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.dockerjava.api.model.Frame;
import com.github.dockerjava.core.async.ResultCallbackTemplate;
/**
*
* @author Marcus Linke
*
* @deprecated use {@link com.github.doc... | tejksat/docker-java | docker-java-core/src/main/java/com/github/dockerjava/core/command/AttachContainerResultCallback.java | Java | apache-2.0 | 695 |
package com.orhanobut.wasp;
import android.graphics.Bitmap;
import android.os.Looper;
import android.text.TextUtils;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.orhanobut.wasp.utils.StringUtils;
/**
* This class is responsible of the loading image. It automatically handles the canceli... | imdatcandan/wasp | wasp/src/main/java/com/orhanobut/wasp/InternalImageHandler.java | Java | apache-2.0 | 5,127 |
/*
* 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... | rewardStyle/apache.thrift | lib/cpp/src/thrift/transport/TSocket.cpp | C++ | apache-2.0 | 23,335 |
/*-
*
* * Copyright 2016 Skymind,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
* *
* * ... | dmmiller612/deeplearning4j | deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/conf/graph/MergeVertex.java | Java | apache-2.0 | 6,727 |
/*
* Copyright 2010-2017 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 "license" fil... | chiaming0914/awe-cpp-sdk | aws-cpp-sdk-codedeploy/source/model/ListApplicationRevisionsRequest.cpp | C++ | apache-2.0 | 2,461 |
/*
* 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 ... | Fabryprog/camel | core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/RabbitMQEndpointBuilderFactory.java | Java | apache-2.0 | 115,871 |
from matplotlib.testing.decorators import cleanup
from unittest import TestCase
from nose_parameterized import parameterized
import os
import gzip
from pandas import read_csv
from pyfolio.utils import (to_utc, to_series)
from pyfolio.tears import (create_full_tear_sheet,
create_simple_tea... | quantopian/pyfolio | pyfolio/tests/test_tears.py | Python | apache-2.0 | 4,911 |
/*
* Copyright (c) 2014-2015 University of Ulm
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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... | cha87de/colosseum | app/components/execution/Init.java | Java | apache-2.0 | 1,451 |
/**
* copyright
* Inubit AG
* Schoeneberger Ufer 89
* 10785 Berlin
* Germany
*/
package net.frapu.code.visualization.twf;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Shape;
import java.awt.geom.Rectangle2D;
import java.util.Ha... | bptlab/processeditor | src/net/frapu/code/visualization/twf/ToolErrorConnector.java | Java | apache-2.0 | 3,182 |
/a/lib/tsc.js --w
//// [/user/username/projects/myproject/a.ts]
export interface Point {
name: string;
c: Coords;
}
export interface Coords {
x2: number;
y: number;
}
//// [/user/username/projects/myproject/b.ts]
import { Point } from "./a";
export interface PointWrapper extends Point {
}
//// ... | nojvek/TypeScript | tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js | JavaScript | apache-2.0 | 7,454 |
package com.amqtech.opensource.appintroexample.util;
/**
* Created by andrew on 11/17/16.
*/
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import androidx.fragment.app.Fragment... | PaoloRotolo/AppIntro | example/src/main/java/com/amqtech/opensource/appintroexample/util/FragmentStatePagerAdapter.java | Java | apache-2.0 | 7,938 |
package querqy.rewrite.commonrules.model;
import static java.util.Collections.singletonList;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import querqy.model.*;
import querqy.rewrite.commonrules.AbstractCommonRulesTest;
import querqy.rewrite.commonrules.CommonRulesRewriter;
import querqy.model.I... | renekrie/querqy | querqy-core/src/test/java/querqy/rewrite/commonrules/model/FilterInstructionTest.java | Java | apache-2.0 | 5,024 |
/*
Derby - Class org.apache.derby.iapi.sql.compile.OptimizerPlan
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... | apache/derby | java/org.apache.derby.engine/org/apache/derby/iapi/sql/compile/OptimizerPlan.java | Java | apache-2.0 | 12,716 |
# Copyright (c) 2011-2016 Rackspace US, 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 ... | rackerlabs/lunr | lunr/common/lock.py | Python | apache-2.0 | 5,070 |
// Copyright (c) 2017, TIG All rights reserved.
// Use of this source code is governed by a Apache License 2.0 that can be found in the LICENSE file.
package main
import (
"flag"
"fmt"
"os"
"runtime"
"strings"
"github.com/tiglabs/containerfs/datanode"
"github.com/tiglabs/containerfs/logger"
"github.com/tigla... | ipdcode/containerfs | cmd/datanode/main.go | GO | apache-2.0 | 1,965 |
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 |
/*
* 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... | jbertouch/elasticsearch | core/src/test/java/org/elasticsearch/search/sort/GeoDistanceIT.java | Java | apache-2.0 | 39,991 |
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 |
/*
* Copyright 2019 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 appli... | jayway/rest-assured | rest-assured/src/main/java/io/restassured/config/ParamConfig.java | Java | apache-2.0 | 6,343 |
package config
import (
"fmt"
"os"
"testing"
"github.com/jgsqware/clairctl/test"
"github.com/spf13/viper"
"gopkg.in/yaml.v2"
)
const defaultValues = `
clair:
uri: http://localhost
port: 6060
healthport: 6061
report:
path: reports
format: html
auth:
insecureskipverify: true
clairctl:
ip: ""... | jdel/clairctl | config/config_test.go | GO | apache-2.0 | 2,090 |
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 (C) 2007 The Guava 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 agre... | aiyanbo/guava | guava-tests/test/com/google/common/base/CharsetsTest.java | Java | apache-2.0 | 2,382 |
/*
* 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 |
/*
* Copyright 2016 Yahoo 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 i... | yahoo/athenz | core/zts/src/test/java/com/yahoo/athenz/zts/HostServicesTest.java | Java | apache-2.0 | 1,478 |
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 |
# 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 ... | apache/libcloud | libcloud/test/compute/test_hostvirtual.py | Python | apache-2.0 | 8,559 |
# 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"); you ... | apache/incubator-systemml | src/test/java/org/apache/sysds/test/functions/compress/instructionsSpark/CompressedSparkInstructionsTestSparse.java | Java | apache-2.0 | 1,032 |
/**
* Copyright 2021 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... | rsimha-amp/amphtml | extensions/amp-iframely/0.1/test/test-amp-iframely.js | JavaScript | apache-2.0 | 12,110 |
/*
* 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 |
# Copyright 2013 IBM Corp.
# 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 app... | queria/my-tempest | tempest/api/compute/servers/test_attach_interfaces.py | Python | apache-2.0 | 6,514 |
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 |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... | kylebyerly-hp/grommet | src/js/components/icons/base/DocumentConfig.js | JavaScript | apache-2.0 | 1,979 |
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 2019 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... | kierarad/gocd | config/config-api/src/main/java/com/thoughtworks/go/config/registry/NoPluginsInstalled.java | Java | apache-2.0 | 1,001 |
package org.testng;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.CharacterIterator;
import java.text.StringCharacterIterator... | missedone/testng | src/main/java/org/testng/TestNGAntTask.java | Java | apache-2.0 | 32,705 |
/*
* 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... | naveenhooda2000/elasticsearch | core/src/test/java/org/elasticsearch/index/translog/TranslogTests.java | Java | apache-2.0 | 121,631 |
/**
* 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 |