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 |
|---|---|---|---|---|---|
//
// TcpRequestChannel.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2009 Novell, Inc. http://www.novell.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Soft... | edwinspire/VSharp | class/System.ServiceModel/System.ServiceModel.Channels.NetTcp/TcpRequestChannel.cs | C# | lgpl-3.0 | 3,556 |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2010 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundat... | airwzz999/osgearth-for-android | src/osgEarth/SparseTexture2DArray.cpp | C++ | lgpl-3.0 | 16,225 |
/*
* @BEGIN LICENSE
*
* Psi4: an open-source quantum chemistry software package
*
* Copyright (c) 2007-2017 The Psi4 Developers.
*
* The copyrights for code used from other parties are included in
* the corresponding files.
*
* This file is part of Psi4.
*
* Psi4 is free software; you can redistribute it an... | rmcgibbo/psi4public | psi4/src/psi4/cctriples/cache.cc | C++ | lgpl-3.0 | 17,267 |
<?php
class InserFeaturesInProjectMetadata extends AbstractMatecatMigration
{
/**
* Insert features in project metadata, reading from owner_features.
*
* Only operate on projects that were created after the addition of the owner feature to the user,
* so that we avoid strange due to inconsiste... | Ostico/MateCat | migrations/20170113150724_inser_features_in_project_metadata.php | PHP | lgpl-3.0 | 1,022 |
# This file is part of Androguard.
#
# Copyright (c) 2012 Geoffroy Gueguen <geoffroy.gueguen@gmail.com>
# 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://... | flamableconcrete/androguard | androguard/decompiler/dad/control_flow.py | Python | lgpl-3.0 | 13,166 |
/*******************************************************************************************************
This file was created/modified by Hervé PHILIPPE alchiweb[at]gmail.com
********************************************************************************************************
Copyright (C) 2013 Hervé PHILIPPE,... | hultqvist/SharpKit-SDK | Defs/Xdk.Html/dom/DeviceOrientationEventType.cs | C# | lgpl-3.0 | 3,094 |
/**
* Copyright © 2002 Instituto Superior Técnico
*
* This file is part of FenixEdu Academic.
*
* FenixEdu Academic is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License... | gil-l/fenix | src/main/java/org/fenixedu/academic/domain/accessControl/AllAlumniGroup.java | Java | lgpl-3.0 | 3,863 |
/*
* Copyright 2010, 2011, 2012, 2013 mapsforge.org
* Copyright 2016 Andrey Novikov
* Copyright 2017 Gustl22
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation, either version 3 of t... | usrusr/mapsforge | mapsforge-map-writer/src/main/java/org/mapsforge/map/writer/model/OSMTag.java | Java | lgpl-3.0 | 5,490 |
/*
* #%L
* Alfresco Repository
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the... | Alfresco/community-edition | projects/repository/source/java/org/alfresco/repo/workflow/jbpm/JoinEndForkedTokens.java | Java | lgpl-3.0 | 3,578 |
package org.molgenis.data.validation.meta;
import org.molgenis.data.AbstractRepositoryDecorator;
import org.molgenis.data.Repository;
import org.molgenis.data.meta.model.Attribute;
import org.molgenis.data.validation.meta.AttributeValidator.ValidationMode;
import java.util.stream.Stream;
import static java.util.Obje... | jjettenn/molgenis | molgenis-data-validation/src/main/java/org/molgenis/data/validation/meta/AttributeRepositoryValidationDecorator.java | Java | lgpl-3.0 | 1,556 |
package com.javabeast.teltonikia;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import java.io.Serializable;
import java.util.List;
@Data
@Builder
@NoAr... | AJauffre/trackr | domain/src/main/java/com/javabeast/teltonikia/TeltonikaMessage.java | Java | unlicense | 660 |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... | hnafar/IronJS | Src/Tests/ietestcenter/chapter15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-170.js | JavaScript | apache-2.0 | 2,234 |
/*
* 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 |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
// This source code... | hkernbach/arangodb | 3rdParty/rocksdb/v5.6.X/db/db_dynamic_level_test.cc | C++ | apache-2.0 | 17,448 |
/**
* 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 |
package cluster // import "github.com/docker/docker/daemon/cluster"
import (
"context"
"fmt"
"path/filepath"
"strings"
"sync"
"time"
types "github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/daemon/cluster/executor/container"
lncluster "github.com/docker/libnetwork/cluster"
swarmapi "github... | SvenDowideit/docker | daemon/cluster/noderunner.go | GO | apache-2.0 | 11,055 |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | floodlight/loxigen-artifacts | openflowj/gen-src/main/java/org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedCodeSerializerVer14.java | Java | apache-2.0 | 3,612 |
<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 |
/*
* Copyright 2012-2018 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... | hello2009chen/spring-boot | spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/kairos/KairosPropertiesConfigAdapterTests.java | Java | apache-2.0 | 2,222 |
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 |
#!/usr/bin/env node_modules/mocha/bin/mocha
/* jshint node:true */
/* global describe */
/**
* ares.spec.js -- ARES server test suite
*/
var path = require("path"),
fs = require("graceful-fs"),
npmlog = require('npmlog'),
temp = require("temp"),
mkdirp = require("mkdirp"),
rimraf = require("rimraf... | recurve/ares-ecosystem | test/server/ares.spec.js | JavaScript | apache-2.0 | 2,853 |
/*
* 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 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | zhihuij/druid | processing/src/test/java/io/druid/query/groupby/GroupByQueryRunnerFailureTest.java | Java | apache-2.0 | 10,590 |
# 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 |
package com.google.maps.android.data.kml;
import com.google.android.gms.maps.model.LatLng;
import junit.framework.TestCase;
import java.util.ArrayList;
public class KmlLineStringTest extends TestCase {
KmlLineString kmlLineString;
public KmlLineString createSimpleLineString() {
ArrayList<LatLng> co... | stephenmcd/android-maps-utils | library/tests/src/com/google/maps/android/data/kml/KmlLineStringTest.java | Java | apache-2.0 | 2,297 |
/*!
* gulp-csscomb | https://github.com/koistya/gulp-csscomb
* Copyright (c) Konstantin Tarkus (@koistya). See LICENSE.txt
*/
'use strict';
var Comb = require('csscomb');
var fs = require('fs');
var gutil = require('gulp-util');
var path = require('path');
var through = require('through2');
var PluginError = gutil... | athena-github/athena-github.github.io | xiangmuu--weizhan/node_modules/.3.0.8@gulp-csscomb/index.js | JavaScript | apache-2.0 | 2,726 |
/*
* 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 |
/*
* 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 ... | DariusX/camel | core/camel-core/src/test/java/org/apache/camel/processor/RandomLoadBalanceJavaDSLBuilderTest.java | Java | apache-2.0 | 4,322 |
//// [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 |
/*!
* Copyright 2014 Apereo Foundation (AF) Licensed under the
* Educational Community 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... | nicolaasmatthijs/Hilary | node_modules/oae-authentication/lib/strategies/google/rest.js | JavaScript | apache-2.0 | 2,999 |
package integration
import (
"testing"
kapi "k8s.io/kubernetes/pkg/api"
kapierrors "k8s.io/kubernetes/pkg/api/errors"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/apis/batch"
"k8s.io/kubernetes/pkg/apis/extensions"
kclientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset... | chmouel/origin | test/integration/pod_node_constraints_test.go | GO | apache-2.0 | 10,828 |
/*
* Copyright 2010-2016 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... | flofreud/aws-sdk-java | aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/transform/TapeArchiveJsonUnmarshaller.java | Java | apache-2.0 | 4,151 |
<?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 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | Saligia-eva/mobvista_druid | processing/src/test/java/io/druid/query/groupby/orderby/DefaultLimitSpecTest.java | Java | apache-2.0 | 9,169 |
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 |
# Zulip's OpenAPI-based API documentation system is documented at
# https://zulip.readthedocs.io/en/latest/documentation/api.html
#
# This file contains helper functions for generating cURL examples
# based on Zulip's OpenAPI definitions, as well as test setup and
# fetching of appropriate parameter values to use whe... | punchagan/zulip | zerver/openapi/curl_param_value_generators.py | Python | apache-2.0 | 11,278 |
/*
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 |
'use strict';
const fs = require('fs');
const path = require('path');
const async = require('async');
const spawn = require('child_process').spawn;
const clc = require('cli-color');
const allFailed = clc.red.bold;
const allPassed = clc.green;
const failed = clc.yellow;
const passed = (t) => t;
const files = fs.read... | cloudfoundry/nodejs-buildpack | fixtures/with_appdynamics/node_modules/async-hook-jl/test/runner.js | JavaScript | apache-2.0 | 1,239 |
#
# 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 |
#!/usr/bin/env python
#
# Copyright 2017 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 ... | tst-ahernandez/earthenterprise | earth_enterprise/src/fusion/portableglobe/cutter/cgi-bin/geecheck_tests/user_tests/fusion_version_test.py | Python | apache-2.0 | 2,649 |
/*
* 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 ... | asankasanjaya/stratos | dependencies/jclouds/apis/vcloud/1.8.1-stratos/src/test/java/org/jclouds/vcloud/VCloudVersionsApiTest.java | Java | apache-2.0 | 2,778 |
/*
* 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
... | apache/httpcore | httpcore5-h2/src/main/java/org/apache/hc/core5/http2/config/package-info.java | Java | apache-2.0 | 1,270 |
// Copyright 2015, EMC, Inc.
'use strict';
var di = require('di'),
util = require('util');
module.exports = apcObmServiceFactory;
di.annotate(apcObmServiceFactory, new di.Provide('apc-obm-service'));
di.annotate(apcObmServiceFactory,
new di.Inject('Promise', 'OBM.base', '_')
);
function apcObmServiceFactor... | AlaricChan/on-tasks | lib/services/apc-obm-service.js | JavaScript | apache-2.0 | 2,121 |
/**
* 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 2010 OpenStack LLC.
# 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 b... | superstack/nova | nova/tests/api/openstack/test_accounts.py | Python | apache-2.0 | 4,537 |
/*
* 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 | server/src/test-fast/java/com/thoughtworks/go/server/service/ServerVersionInfoBuilderTest.java | Java | apache-2.0 | 4,100 |
/**
* 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 |