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 |
|---|---|---|---|---|---|
/*
* JBoss, Home of Professional Open Source
* Copyright 2014, Red Hat, Inc. and/or its affiliates, 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");
* y... | jboss-developer/jboss-wfk-quickstarts | deltaspike-exception-handling/src/main/java/org/jboss/as/quickstarts/deltaspike/exceptionhandling/jsf/DeltaSpikeExceptionHandler.java | Java | apache-2.0 | 2,430 |
# -*- coding: utf-8 -*-
"""This file contains the airport plist plugin in Plaso."""
from plaso.events import plist_event
from plaso.parsers import plist
from plaso.parsers.plist_plugins import interface
__author__ = 'Joaquin Moreno Garijo (Joaquin.MorenoGarijo.2013@live.rhul.ac.uk)'
class AirportPlugin(interface.P... | ostree/plaso | plaso/parsers/plist_plugins/airport.py | Python | apache-2.0 | 1,452 |
/*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic 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. A copy of the License i... | RachelTucker/ds3_net_sdk | Ds3/Calls/GetS3TargetReadPreferenceSpectraS3Response.cs | C# | apache-2.0 | 1,167 |
toptenants_resource = {
"_links": {
"self": {
"href": "/usagedata/toptenants"
}
},
"_embedded": {
"tenants": [
]
},
}
tenant_resource = {
"ranking": 0,
"tenantId": 0,
"vmsActiveNum": 0,
"ramAllocatedTot": 0,
"vcpuAllocatedTot": 0,
"ram... | attybro/FIWARELab-monitoringAPI | monitoringProxy/model/usagedata_resources.py | Python | apache-2.0 | 424 |
# 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 u... | dmlc/tvm | python/tvm/topi/nn/dilate.py | Python | apache-2.0 | 2,530 |
/*
* Copyright 2016 IBM Corp.
*
* 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... | EclairJS/eclairjs-node | lib/ml/Transformer.js | JavaScript | apache-2.0 | 2,461 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/discovery/model/CreateTagsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ApplicationDiscoveryService::Model;
using namespace Aws::Ut... | awslabs/aws-sdk-cpp | aws-cpp-sdk-discovery/source/model/CreateTagsRequest.cpp | C++ | apache-2.0 | 1,606 |
<?php
/**
* Copyright 2019 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 agre... | googleapis/google-cloud-php-spanner | tests/System/SessionTest.php | PHP | apache-2.0 | 3,173 |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/compute/v1/compute.proto
namespace Google\Cloud\Compute\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* A request message for Instances.GetIamPoli... | googleapis/google-cloud-php-compute | src/V1/GetIamPolicyInstanceRequest.php | PHP | apache-2.0 | 5,095 |
package net.compitek.javakit.database.dao;/**
* Created by Evgene on 04.06.2015.
*/
import net.compitek.javakit.database.domain.News;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;
@Repository("NewsDao")
public class NewsDao extends AbstractDao<Long,News>{
private static fina... | Javakit/Javakit | src/main/java/net/compitek/javakit/database/dao/NewsDao.java | Java | apache-2.0 | 370 |
/*
* 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")... | howepeng/isis | core/metamodel/src/main/java/org/apache/isis/core/metamodel/facetdecorator/help/HelpFacetDecoratorUsingHelpManager.java | Java | apache-2.0 | 2,651 |
<?php
/**
* Copyright 2018 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 agr... | googleworkspace/php-samples | tasks/quickstart/quickstart.php | PHP | apache-2.0 | 3,388 |
/*
* Copyright (C) 2004-2017 ZNC, see the NOTICE file for details.
*
* 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 requi... | evilnet/znc | modules/crypt.cpp | C++ | apache-2.0 | 18,628 |
/**
* 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... | GeLiXin/hadoop | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java | Java | apache-2.0 | 58,538 |
# -*- encoding: utf-8 -*-
#
# 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, so... | NeCTAR-RC/ceilometer | ceilometer/storage/sqlalchemy/migrate_repo/versions/034_drop_dump_tables.py | Python | apache-2.0 | 1,278 |
package com.mossle.api.process;
import java.util.Map;
import com.mossle.api.form.FormDTO;
import com.mossle.core.page.Page;
public class MockProcessConnector implements ProcessConnector {
/**
* 获得启动表单.
*/
public FormDTO findStartForm(String processDefinitionId) {
return null;
}
/*... | vigosser/lemon | src/main/java/com/mossle/api/process/MockProcessConnector.java | Java | apache-2.0 | 3,368 |
/*
* 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 ... | mosoft521/wicket | wicket-core/src/main/java/org/apache/wicket/markup/html/border/Border.java | Java | apache-2.0 | 17,337 |
<meta name="description" content="Letsliftgh is a Multi-level Marketing Company in Ghana.">
<meta name="keywords" content="mlm, matrix, multi-level, marketing, multi-level marketing, business, commission, lets, lift, ghana" />
<link href="img/letsliftgh-fav.png" rel="shortcut icon"> | marthyns/mlmapp | mlm/includes/headtag.php | PHP | apache-2.0 | 290 |
class RenameObjectToChorusObject < ActiveRecord::Migration
def change
rename_table :objects, :chorus_objects
end
end
| jamesblunt/chorus | db/migrate/20150317192400_rename_object_to_chorus_object.rb | Ruby | apache-2.0 | 125 |
/*******************************************************************************
* Copyright 2015 IBM Corp.
*
* 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/li... | kgriesh/appmetrics | probes/socketio-probe.js | JavaScript | apache-2.0 | 5,878 |
package test;
import junit.framework.Test;
import junit.framework.TestSuite;
public class FileRepoTests {
public static Test suite() {
TestSuite suite = new TestSuite(FileRepoTests.class.getName());
// $JUnit-BEGIN$
suite.addTestSuite(test.deployer.FileRepoTest.class);
// $JUnit-END$
return suite;
}
} | joansmith/bnd | biz.aQute.bndlib.tests/src/test/FileRepoTests.java | Java | apache-2.0 | 317 |
// 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... | GabrielBrascher/cloudstack | server/src/main/java/com/cloud/api/query/vo/NetworkOfferingJoinVO.java | Java | apache-2.0 | 8,979 |
package ecs
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distribut... | tklauser/cilium | vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_pipeline.go | GO | apache-2.0 | 5,505 |
// Copyright (C) Copyright 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 25.2.1.1
description: Assignment of function `name` attribute
info: >
[...]
3. Return CreateDynamicFunction(C, NewTarget, "generator", args).
ES6... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/GeneratorFunction/instance-name.js | JavaScript | apache-2.0 | 794 |
var C = (function () {
function C() {
}
C.prototype.x = function () {
return 1;
};
return C;
})();
var D = (function () {
function D() {
}
D.prototype.x = function (v) {
};
return D;
})();
| popravich/typescript | tests/baselines/reference/propertyAndFunctionWithSameName.js | JavaScript | apache-2.0 | 254 |
/*
* 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 ... | cloudera-labs/phoenix | phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/LocalTableState.java | Java | apache-2.0 | 7,986 |
package org.apereo.cas.services;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.io.File;
import java.io.IOException;
import static org.ju... | dodok1/cas | core/cas-server-core-authentication-attributes/src/test/java/org/apereo/cas/services/ReturnAllAttributeReleasePolicyTests.java | Java | apache-2.0 | 1,114 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/CapacityReservationSpecificationResponse.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringS... | aws/aws-sdk-cpp | aws-cpp-sdk-ec2/source/model/CapacityReservationSpecificationResponse.cpp | C++ | apache-2.0 | 3,523 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace postalcodefinder.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Home Page";
return View();
... | TeamArachne/postalcodefinder | postalcodefinder/postalcodefinder/Controllers/HomeController.cs | C# | apache-2.0 | 336 |
var twintyfour=true, $inputbox=$('.timepicker');
var setTimearea=function(meridian){
var $div=$('<div/>'), $input=$('<input type="text"/>');
var lists=['hour', 'min', 'sec'];
$div.clone().addClass('timepicker_wrap').insertAfter($inputbox);
for(var i=0; i< lists.length; i++){
$div.clone().addCla... | sunitha-ramesh/CodeDeployGitHubDemo | codedeploydemopro/scripts/pickerjs.js | JavaScript | apache-2.0 | 5,874 |
=begin
vcenter_create_folder_check.rb
Author: Kevin Morey <kevin@redhat.com>
Description: This method checks to ensure that vcenter_folder_path has been created
-------------------------------------------------------------------------------
Copyright 2016 Kevin Morey <kevin@redhat.com>
Licensed under the Ap... | tjyang/ManageIQ_Essentials | automate/CloudForms_Essentials/Integration/VMware/vCenter/Methods.class/__methods__/vcenter_create_folder_check.rb | Ruby | apache-2.0 | 3,836 |
package com.cardshifter.api.incoming;
import com.cardshifter.api.messages.Message;
/**
* Request to start a new game.
* <p>
* This is sent from the Client to the Server when this player invites another player (including AI) to start a new game of a chosen type.
*/
public class StartGameRequest extends Message {
... | June92/Cardshifter | cardshifter-api/src/main/java/com/cardshifter/api/incoming/StartGameRequest.java | Java | apache-2.0 | 1,025 |
/**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.u2',
name: 'Dialog',
extends: 'foam.u2.Element',
documentation: `This class is a basic dialog container: it has a heading,
a body, and a set of actions. Ge... | jacksonic/vjlofvhjfgm | src/foam/u2/Dialog.js | JavaScript | apache-2.0 | 2,464 |
import orjson
from zerver.lib.send_email import FromAddress
from zerver.lib.test_classes import WebhookTestCase
from zerver.models import Recipient, get_realm, get_user_by_delivery_email
from zerver.webhooks.teamcity.view import MISCONFIGURED_PAYLOAD_TYPE_ERROR_MESSAGE
class TeamCityHookTests(WebhookTestCase):
S... | eeshangarg/zulip | zerver/webhooks/teamcity/tests.py | Python | apache-2.0 | 4,058 |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/channel/v1/service.proto
namespace Google\Cloud\Channel\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request message for [CloudChannelService.L... | googleapis/google-cloud-php-channel | src/V1/ListEntitlementsRequest.php | PHP | apache-2.0 | 6,332 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | openstack/senlin | senlin/db/utils.py | Python | apache-2.0 | 1,415 |
// Copyright 2011 Traceur 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 ... | rwaldron/traceur-todomvc | test/unit/syntax/parser.js | JavaScript | apache-2.0 | 1,265 |
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Lice... | AnshulYADAV007/Lean | Algorithm.Python/IndicatorSuiteAlgorithm.py | Python | apache-2.0 | 10,805 |
/*
* 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... | vineetgarg02/hive | ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/CreateDatabaseHandler.java | Java | apache-2.0 | 3,808 |
/*
Copyright 2016 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... | rajdeepd/kubernetes | pkg/dns/treecache.go | GO | apache-2.0 | 6,249 |
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.
#
# 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... | lcy-seso/models | fluid/neural_machine_translation/rnn_search/no_attention_model.py | Python | apache-2.0 | 4,829 |
/*
* 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 ... | syzer/incubator-tamaya | java7/core/src/main/java/org/apache/tamaya/core/internal/converters/FloatConverter.java | Java | apache-2.0 | 3,020 |
/*
* Copyright 2014 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... | xindongzhang/spring-data-solr | src/test/java/org/springframework/data/solr/repository/cdi/SamplePersonRepositoryImpl.java | Java | apache-2.0 | 854 |
/*
* 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... | strapdata/elassandra | client/rest-high-level/src/test/java/org/elasticsearch/client/WatcherIT.java | Java | apache-2.0 | 11,678 |
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
namespace Roslyn.Utilities
{
internal partial class SpecializedCollections
{
... | binsys/roslyn_java | Src/Compilers/Core/Source/InternalUtilities/SpecializedCollections.Empty.Set.cs | C# | apache-2.0 | 2,500 |
package com.planet_ink.coffee_mud.Behaviors;
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 com.pl... | MaxRau/CoffeeMud | com/planet_ink/coffee_mud/Behaviors/CombatAssister.java | Java | apache-2.0 | 2,475 |
//// [emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts]
class A {
blub = 6;
}
class B extends A {
constructor(public x: number) {
"use strict";
'someStringForEgngInject';
super()
}
}
//// [emitSuperCallBeforeEmitParameterPropertyDeclaration1.js]
var __extends = (this &... | jeremyepling/TypeScript | tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js | JavaScript | apache-2.0 | 917 |
<?php
global $addslashes;
//escape all strings
$rep_name = AT_print($this->rep_name, 'input.text');
$rep_title = AT_print($this->rep_title, 'input.text');
$rep_phone = AT_print($this->rep_phone, 'input.text');
$rep_email = AT_print($this->rep_email, 'input.text');
$rep_address = AT_print($this-... | CaviereFabien/Test | ATutor/themes/themes/default/social/edit_profile/edit_representation.tmpl.php | PHP | apache-2.0 | 2,115 |
/*
* Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*
* 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.... | ocpsoft/rewrite | transform-markup/src/main/java/org/ocpsoft/rewrite/transform/markup/Sass.java | Java | apache-2.0 | 1,903 |
/*
* Copyright 2002-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 ap... | flytreeleft/Json-lib | src/main/java/net/sf/json/filters/FalsePropertyFilter.java | Java | apache-2.0 | 917 |
declare namespace compareVersions {
/**
* Allowed arithmetic operators
*/
type CompareOperator = '>' | '>=' | '=' | '<' | '<=';
}
declare const compareVersions: {
/**
* Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.
* This library supports the full semver spec... | ChromeDevTools/devtools-node-modules | third_party/node_modules/compare-versions/index.d.ts | TypeScript | apache-2.0 | 1,755 |
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | stoksey69/googleads-java-lib | examples/dfp_axis/src/main/java/dfp/axis/v201505/orderservice/GetAllOrders.java | Java | apache-2.0 | 3,244 |
/*
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, ... | fgrzadkowski/kubernetes | pkg/kubelet/kubelet_test.go | GO | apache-2.0 | 151,958 |
#ifndef BOOST_MPL_AUX_PREPROCESSOR_EXT_PARAMS_HPP_INCLUDED
#define BOOST_MPL_AUX_PREPROCESSOR_EXT_PARAMS_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// 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)... | BinSigma/BinClone | lshkit/trunk/3rd-party/boost/boost/mpl/aux_/preprocessor/ext_params.hpp | C++ | apache-2.0 | 3,002 |
package io.dropwizard.testing.junit5;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.dropwizard.Application;
import io.dropwizard.Configuration;
import io.dropwizard.cli.Command;
import io.dropwizard.cli.ServerCommand;
import io.dropwizard.configuration.ConfigurationSourceProvider;
import io.dropwizard.... | dropwizard/dropwizard | dropwizard-testing/src/main/java/io/dropwizard/testing/junit5/DropwizardAppExtension.java | Java | apache-2.0 | 11,112 |
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: William Albenzi (<walbenzi@gmail.com>)
# Copyright:: Copyright 2009-2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
... | martinisoft/chef | lib/chef/knife/role_env_run_list_add.rb | Ruby | apache-2.0 | 2,693 |
/*
* 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 ... | MikeThomsen/nifi | nifi-manifest/nifi-extension-manifest-model/src/main/java/org/apache/nifi/extension/manifest/Stateful.java | Java | apache-2.0 | 1,823 |
/*
Copyright The containerd 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... | nalind/cri-o | utils/fifo/handle.go | GO | apache-2.0 | 2,092 |
/*
* 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/jackrabbit-ocm | src/main/java/org/apache/jackrabbit/ocm/nodemanagement/impl/NodeTypeManagerImpl.java | Java | apache-2.0 | 15,473 |
//===----------------------------------------------------------------------===//
//
// Peloton
//
// tpcc_order_status.cpp
//
// Identification: src/main/tpcc/tpcc_order_status.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===------------------------------------... | wangziqi2016/peloton | src/main/tpcc/tpcc_order_status.cpp | C++ | apache-2.0 | 12,658 |
/*
* Copyright 2000-2016 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... | michaelgallacher/intellij-community | RegExpSupport/src/org/intellij/lang/regexp/RegExpLanguageHosts.java | Java | apache-2.0 | 7,023 |
/*
* 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 ... | newrelic-forks/cassandra | test/unit/org/apache/cassandra/index/sasi/disk/TokenTreeTest.java | Java | apache-2.0 | 19,354 |
//// [staticAsIdentifier.ts]
class C1 {
static static
[x: string]: string;
}
class C2 {
static static
m() {}
}
class C3 {
static static p: string;
}
class C4 {
static static foo() {}
}
//// [staticAsIdentifier.js]
var C1 = /** @class */ (function () {
function C1() {
}
re... | kitsonk/TypeScript | tests/baselines/reference/staticAsIdentifier.js | JavaScript | apache-2.0 | 677 |
// 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;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using Microsoft.CodeAnalysis.Editor.Commands;
usin... | Shiney/roslyn | src/EditorFeatures/Core/Implementation/FindReferences/FindReferencesCommandHandler.cs | C# | apache-2.0 | 7,265 |
/**
* 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... | mycFelix/heron | storm-compatibility/src/java/org/apache/storm/utils/Time.java | Java | apache-2.0 | 7,892 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/macie2/model/AdminStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
n... | awslabs/aws-sdk-cpp | aws-cpp-sdk-macie2/source/model/AdminStatus.cpp | C++ | apache-2.0 | 2,005 |
// Generated by CoffeeScript 1.3.3
(function() {
var InstagramMedia;
InstagramMedia = (function() {
function InstagramMedia(parent) {
this.parent = parent;
}
/*
Basic Media
*/
InstagramMedia.prototype.popular = function(params) {
var credentials;
credentials = this.p... | Rmalnoult/pearlstagram-nodejs | node_modules/instagram-node-lib/lib/class.instagram.media.js | JavaScript | apache-2.0 | 3,838 |
// Package sql provides SQL implementations of the storage interface.
package sql
import (
"database/sql"
"regexp"
"time"
"github.com/Sirupsen/logrus"
"github.com/cockroachdb/cockroach-go/crdb"
// import third party drivers
_ "github.com/go-sql-driver/mysql"
_ "github.com/lib/pq"
_ "github.com/mattn/go-sqli... | xeonx/dex | storage/sql/sql.go | GO | apache-2.0 | 5,357 |
/*
* 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... | msebire/intellij-community | python/src/com/jetbrains/python/psi/impl/references/PyQualifiedReference.java | Java | apache-2.0 | 21,861 |
/*
* Copyright 2002-2012 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 ap... | qobel/esoguproject | spring-framework/spring-core/src/test/java/org/springframework/util/MockLog4jAppender.java | Java | apache-2.0 | 1,524 |
using System.Collections.ObjectModel;
namespace api.Areas.HelpPage.ModelDescriptions
{
public class ComplexTypeModelDescription : ModelDescription
{
public ComplexTypeModelDescription()
{
Properties = new Collection<ParameterDescription>();
}
public Collection<Param... | akeresztesgh/AngularAndWebAPI | api/api/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs | C# | apache-2.0 | 377 |
package openid
import (
"net/http"
"github.com/ory-am/fosite"
"github.com/pkg/errors"
"golang.org/x/net/context"
)
type OpenIDConnectExplicitHandler struct {
// OpenIDConnectRequestStorage is the storage for open id connect sessions.
OpenIDConnectRequestStorage OpenIDConnectRequestStorage
*IDTokenHandleHelpe... | tangfeixiong/go-to-exercise | vendor/github.com/ory-am/fosite/handler/openid/flow_explicit_auth.go | GO | apache-2.0 | 1,197 |
/**
*
* @author greg (at) myrobotlab.org
*
* This file is part of MyRobotLab (http://myrobotlab.org).
*
* MyRobotLab 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... | robojukie/myrobotlab | src/org/myrobotlab/control/opencv/OpenCVFilterErodeGUI.java | Java | apache-2.0 | 2,355 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using... | physhi/roslyn | src/Features/Core/Portable/SolutionCrawler/WorkCoordinator.SemanticChangeProcessor.cs | C# | apache-2.0 | 21,695 |
/*
* Copyright 2013 Wicresoft, Inc. All rights reserved.
*/
package com.cardpay.pccredit.intopieces.model;
import java.util.Date;
import com.wicresoft.jrad.base.database.model.ModelParam;
import com.wicresoft.jrad.base.database.model.BusinessModel;
/**
*
* @author 贺珈
*
*/
@ModelParam(table =... | qkhj/PCCREDIT_QZ | src/java/com/cardpay/pccredit/intopieces/model/QzApplnProcessResult.java | Java | apache-2.0 | 1,730 |
import sys, json
import random, os, subprocess
from twisted.internet import reactor
from twisted.web import server, resource
from twisted.web.static import File
from twisted.python import log
from datetime import datetime
import urllib, urllib2
import logging
import re
from sensei_client import *
PARSER_AGENT_PORT = ... | DataDog/sensei | clients/python/sensei/sensei_ql_proxy.py | Python | apache-2.0 | 3,753 |
/**
* @license
* Copyright 2018 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.auth.twofactor',
name: 'AbstractTOTPAuthService',
extends: 'foam.nanos.auth.twofactor.AbstractOTPAuthService',
abstract: true,
documentation: 'Abstract... | jacksonic/vjlofvhjfgm | src/foam/nanos/auth/twofactor/AbstractTOTPAuthService.js | JavaScript | apache-2.0 | 1,063 |
# -*- coding: utf-8 -*-
#
# Copyright 2013 - Mirantis, 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 requir... | dmitryilyin/mistral | mistral/utils/__init__.py | Python | apache-2.0 | 2,765 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010 Red Hat Inc. and/or its affiliates and other
* contributors as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a full listing of
* individual contributors.
*
* This is free software; you can redistri... | nmldiegues/stibt | infinispan/server/websocket/src/main/java/org/infinispan/server/websocket/CacheListener.java | Java | apache-2.0 | 6,553 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/socket/socks_client_socket.h"
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/sy... | plxaye/chromium | src/net/socket/socks_client_socket.cc | C++ | apache-2.0 | 13,728 |
package lock
import (
"github.com/containers/podman/v3/libpod/lock/file"
)
// FileLockManager manages shared memory locks.
type FileLockManager struct {
locks *file.FileLocks
}
// NewFileLockManager makes a new FileLockManager at the specified directory.
func NewFileLockManager(lockPath string) (Manager, error) {
... | kubernetes-incubator/ocid | vendor/github.com/containers/podman/v3/libpod/lock/file_lock_manager.go | GO | apache-2.0 | 2,518 |
# Copyright 2018 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... | ppwwyyxx/tensorflow | tensorflow/python/distribute/values_test.py | Python | apache-2.0 | 56,467 |
# -------------------------------------------------------------------------- #
# Copyright 2002-2017, OpenNebula Project, OpenNebula Systems #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# no... | unistra/one | src/cloud/ec2/lib/econe_application.rb | Ruby | apache-2.0 | 7,480 |
/*
* 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... | strapdata/elassandra | server/src/test/java/org/elasticsearch/common/lucene/uid/VersionLookupTests.java | Java | apache-2.0 | 5,574 |
/**
* Copyright 2013 Netherlands Forensic Institute
*
* 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... | chengxj/kafka-spout | src/main/java/nl/minvenj/nfi/storm/kafka/KafkaSpout.java | Java | apache-2.0 | 14,268 |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | saratrallapalli/azure-sdk-tools | WindowsAzurePowershell/src/Management.WebSites/Services/WebEntities/Usage.cs | C# | apache-2.0 | 2,879 |
package com.planet_ink.coffee_mud.Behaviors;
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.core.exceptions.ScriptParseException;
import com.planet_ink.coffee_mud.Abilities.interfaces... | Tycheo/coffeemud | com/planet_ink/coffee_mud/Behaviors/ScriptableEverymob.java | Java | apache-2.0 | 7,236 |
//===--- SILGenDecl.cpp - Implements Lowering of ASTs -> SIL for Decls ----===//
//
// 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... | devincoughlin/swift | lib/SILGen/SILGenDecl.cpp | C++ | apache-2.0 | 59,534 |
from __future__ import absolute_import
from django.conf import settings
from django.core.mail import EmailMessage
from typing import Any, Mapping, Optional, Text
from zerver.lib.actions import internal_send_message
from zerver.lib.send_email import FromAddress
from zerver.lib.redis_utils import get_redis_client
from ... | vaidap/zulip | zerver/lib/feedback.py | Python | apache-2.0 | 3,063 |
package com.blogspot.toomuchcoding.book.chapter6._3_VerifyingAtMostTimesOfMethodInvocation;
import com.blogspot.toomuchcoding.book.chapter6.common.TaxService;
import com.blogspot.toomuchcoding.book.chapter6.common.TaxUpdater;
import com.blogspot.toomuchcoding.common.testng.MockitoTestNGListener;
import com.blogspot.to... | davidhuizhou/mockito-cookbook | chapter06/src/test/java/com/blogspot/toomuchcoding/book/chapter6/_3_VerifyingAtMostTimesOfMethodInvocation/TaxUpdaterTestNgTest.java | Java | apache-2.0 | 1,104 |
package com.planet_ink.coffee_mud.Abilities.Spells;
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... | Tycheo/coffeemud | com/planet_ink/coffee_mud/Abilities/Spells/Spell_Feeblemind.java | Java | apache-2.0 | 4,076 |
#!/bin/env python
import os
import re
import sys
ws = re.compile(r'-')
f = open("list.txt")
names = f.readlines()
f.close()
for name in names:
name = name[0:-1]
newname = ""
for token in ws.split(name):
newname += token[0].upper()
newname += token[1:]
cmd = "cp %s %s" % (name,newname)
p... | wh81752/flaka | opt/rename.py | Python | apache-2.0 | 351 |
/*
* 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 ... | supermy/nutch2 | src/plugin/subcollection/src/java/org/apache/nutch/collection/Subcollection.java | Java | apache-2.0 | 5,636 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using S... | physhi/roslyn | src/EditorFeatures/Core/InlineHints/InlineHintsDataTaggerProvider.cs | C# | apache-2.0 | 6,332 |
/*
* 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... | coding0011/elasticsearch | server/src/test/java/org/elasticsearch/rest/action/admin/indices/RestAnalyzeActionTests.java | Java | apache-2.0 | 8,872 |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | roberthafner/flowable-engine | modules/flowable-form-engine/src/main/java/org/activiti/form/engine/impl/persistence/deploy/FormCacheEntry.java | Java | apache-2.0 | 1,359 |
/**
* Copyright 2014-2016 CyberVision, 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 applicabl... | abohomol/kaa | client/client-multi/client-cpp/kaa/channel/IKaaDataDemultiplexer.hpp | C++ | apache-2.0 | 1,385 |
/*
* Copyright 2010 JBoss 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... | psiroky/droolsjbpm-tools | drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/debug/ApplicationDataViewContentProvider.java | Java | apache-2.0 | 4,650 |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | google/CFU-Playground | third_party/tflite-micro/tensorflow/lite/micro/kernels/conv_common.cc | C++ | apache-2.0 | 8,686 |
/*
* Copyright 2015 fdefalco.
*
* 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... | rkboyce/WebAPI | src/main/java/org/ohdsi/webapi/evidence/EvidenceSummary.java | Java | apache-2.0 | 1,145 |