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 |
|---|---|---|---|---|---|
/*
* Copyright (C) 2011 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 to ... | 0359xiaodong/tess-two | eyes-two/src/com/googlecode/eyesfree/textdetect/HydrogenTextDetector.java | Java | apache-2.0 | 6,584 |
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | gameduell/kythe | third_party/grpc/src/python/src/grpc/_adapter/_datatypes.py | Python | apache-2.0 | 2,884 |
/* Copyright 2016 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... | karllessard/tensorflow | tensorflow/core/kernels/segment_reduction_ops_gpu.cu.cc | C++ | apache-2.0 | 11,228 |
// Copyright 2016 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 applicabl... | Deren-Liao/google-cloud-visualstudio | GoogleCloudExtension/GoogleCloudExtension/CloudExplorerSources/Gce/WindowsInstanceItem.cs | C# | apache-2.0 | 1,400 |
package com.bazaarvoice.emodb.sor.core;
import com.bazaarvoice.emodb.sor.api.Audit;
import com.bazaarvoice.emodb.sor.api.PurgeStatus;
/**
* Interface responsible for Async purge jobs for DataStore
*/
public interface DataStoreAsync {
/**
* starts a purge job on table
*/
String purgeTableAsync(Stri... | billkalter/emodb | sor/src/main/java/com/bazaarvoice/emodb/sor/core/DataStoreAsync.java | Java | apache-2.0 | 469 |
/*
* 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... | elastic/elasticsearch-hadoop | mr/src/test/java/org/elasticsearch/hadoop/serialization/WritableValueReaderTest.java | Java | apache-2.0 | 2,836 |
/**
* 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 | heron/statemgrs/src/cpp/statemgr/heron-zkstatemgr.cpp | C++ | apache-2.0 | 35,286 |
/*
* 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... | Jimexist/presto | presto-main/src/main/resources/webapp/assets/utils.js | JavaScript | apache-2.0 | 14,579 |
# ----------------------------------------------------------------------------
# Copyright 2014 Nervana Systems 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.o... | ml-lab/neon | neon/datasets/synthetic.py | Python | apache-2.0 | 4,940 |
// ----------------------------------------------------------------------------------
//
// 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... | devigned/azure-powershell | src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.ServiceClientAdapter/BMSAPIs/ContainerAPIs.cs | C# | apache-2.0 | 5,146 |
/* ************************************************************************
* Copyright 2013 Advanced Micro Devices, 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... | kknox/clBLAS | src/library/blas/functor/functor_xscal.cc | C++ | apache-2.0 | 10,020 |
//-----------------------------------------------------------------------
// <copyright file="RealMessageEnvelope.cs" company="Akka.NET Project">
// Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
// Copyright (C) 2013-2015 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyrigh... | ashic/akka.net | src/core/Akka.TestKit/RealMessageEnvelope.cs | C# | apache-2.0 | 1,040 |
// 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... | kou/arrow | js/src/ipc/writer.ts | TypeScript | apache-2.0 | 20,460 |
/*
* 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 ... | gianm/druid | indexing-service/src/main/java/org/apache/druid/indexing/overlord/SingleTaskBackgroundRunner.java | Java | apache-2.0 | 15,280 |
"""Support for getting information from Arduino pins."""
import logging
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.components import arduino
from homeassistant.const import CONF_NAME
from homeassistant.helpers.entity import Entity
import homeassistant.helpe... | fbradyirl/home-assistant | homeassistant/components/arduino/sensor.py | Python | apache-2.0 | 1,767 |
/*
* Copyright 2014 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 ... | sdgdsffdsfff/drools-wb | drools-wb-screens/drools-wb-guided-dtree-editor/drools-wb-guided-dtree-editor-client/src/main/java/org/drools/workbench/screens/guided/dtree/client/widget/factories/ActionUpdateFactoryHelper.java | Java | apache-2.0 | 1,475 |
package org.batfish.representation.cisco;
import com.google.common.collect.ImmutableSet;
import java.util.LinkedList;
import java.util.List;
import org.batfish.datamodel.acl.AclLineMatchExpr;
import org.batfish.datamodel.acl.OrMatchExpr;
public class IcmpTypeObjectGroup extends ObjectGroup {
private List<IcmpTypeO... | dhalperi/batfish | projects/batfish/src/main/java/org/batfish/representation/cisco/IcmpTypeObjectGroup.java | Java | apache-2.0 | 743 |
package com.intellij.plugin.buck.actions;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.DumbAwareAction;
import com.intellij.openapi.project.Project;
import com.intellij.plugin.buck.build.BuckBuildCommandHandler;
import com.intellij.plug... | edelron/buck_idea_plugin | src/com/intellij/plugin/buck/actions/BuckUninstallAction.java | Java | apache-2.0 | 1,560 |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | techhtml/amphtml | extensions/amp-auto-ads/0.1/test/test-ad-network-config.js | JavaScript | apache-2.0 | 7,709 |
#
# Copyright 2008-2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
module Amazon
module Coral
class HttpDelegationHelper
def self.add_delegation_token(delegate_identity, request_identity)
token = ""
first = true
delegate_identity.each do |k,v|
... | bizo/aws-tools | emr/elastic-mapreduce-ruby-20130708/amazon/coral/httpdelegationhelper.rb | Ruby | apache-2.0 | 578 |
/*
* handler_interface.cpp - handler interface
*
* Copyright (c) 2014-2015 Intel 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.apache.org/licenses/... | chivakker/libxcam | xcore/handler_interface.cpp | C++ | apache-2.0 | 11,719 |
# Copyright 2014 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | dhermes/gcloud-python | storage/google/cloud/storage/__init__.py | Python | apache-2.0 | 1,504 |
/*
* Copyright 2002-2005 Sascha Weinreuter
*
* 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... | jk1/intellij-community | plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/support/jaxen/PsiDocumentNavigator.java | Java | apache-2.0 | 11,462 |
/*
* 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... | alexksikes/elasticsearch | src/main/java/org/elasticsearch/index/mapper/internal/SourceFieldMapper.java | Java | apache-2.0 | 17,336 |
/*
Copyright 2019 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, ... | enisoc/kubernetes | staging/src/k8s.io/component-base/metrics/legacyregistry/registry.go | GO | apache-2.0 | 3,420 |
/*
* 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... | ebyhr/presto | lib/trino-parquet/src/main/java/io/trino/parquet/predicate/Predicate.java | Java | apache-2.0 | 2,681 |
/*
* 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 ... | mateenc/pitstop_Android | src/main/java/pt/lighthouselabs/obd/reader/net/ObdService.java | Java | apache-2.0 | 850 |
package org.semanticweb.elk.reasoner.taxonomy;
/*
* #%L
* ELK Reasoner
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2011 - 2013 Department of Computer Science, University of Oxford
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lice... | sesuncedu/elk-reasoner | elk-reasoner/src/main/java/org/semanticweb/elk/reasoner/taxonomy/OrphanInstanceNode.java | Java | apache-2.0 | 1,742 |
import Ember from 'ember';
const { Component, computed } = Ember;
export default Component.extend({
tagName : 'footer',
classNames : ['ui', 'inverted', 'vertical', 'footer', 'segment'],
currentLocale: computed(function() {
return this.get('l10n').getLocale();
}),
actions: {
switchLanguage(local... | sumedh123/open-event-frontend | app/components/footer-main.js | JavaScript | apache-2.0 | 386 |
/*
* ========================================================================
* Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
* This product is protected by U.S. and international copyright
* and intellectual property laws. Pivotal products are covered by
* more patents listed at http://w... | ameybarve15/incubator-geode | gemfire-core/src/main/java/com/gemstone/gemfire/management/internal/cli/functions/RegionFunctionArgs.java | Java | apache-2.0 | 22,013 |
/*
* 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... | mhurne/aws-sdk-java | aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/model/Listener.java | Java | apache-2.0 | 18,621 |
// Generated by xsd compiler for android/java
// DO NOT CHANGE!
package ebay.apis.eblbasecomponents;
import java.io.Serializable;
import com.leansoft.nano.annotation.*;
/**
*
* Contains the ASQ subjects for the user specified in the request.
*
*/
@RootElement(name = "GetMessagePreferencesResponse", namespace = ... | bulldog2011/nano-rest | sample/HelloEBayTrading/src/ebay/apis/eblbasecomponents/GetMessagePreferencesResponseType.java | Java | apache-2.0 | 1,650 |
/*
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | mirkosertic/Bytecoder | classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/java/awt/event/KeyAdapter.java | Java | apache-2.0 | 2,803 |
/*
* 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 ... | gianm/druid | core/src/main/java/org/apache/druid/math/expr/vector/DoubleOutDoubleInFunctionVectorProcessor.java | Java | apache-2.0 | 1,722 |
#!/usr/bin/env python
"""
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");... | arenadata/ambari | ambari-server/src/main/resources/stacks/ADH/1.0/services/ZOOKEEPER/package/scripts/status_params.py | Python | apache-2.0 | 2,702 |
/*
* 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 ... | rmetzger/flink | flink-python/src/test/java/org/apache/flink/table/runtime/operators/python/table/RowDataPythonTableFunctionOperatorTest.java | Java | apache-2.0 | 4,621 |
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
type EncryptionType string
// Enum values for EncryptionType
const (
EncryptionTypeAes256 EncryptionType = "AES256"
EncryptionTypeKms EncryptionType = "KMS"
)
// Values returns all known values for EncryptionType. Note that this can be
// expand... | google/ko | vendor/github.com/aws/aws-sdk-go-v2/service/ecr/types/enums.go | GO | apache-2.0 | 10,460 |
/*
* 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 ... | prmsheriff/log4j | src/main/java/org/apache/log4j/varia/ExternallyRolledFileAppender.java | Java | apache-2.0 | 4,642 |
package mil.nga.giat.geowave.core.store.adapter;
import mil.nga.giat.geowave.core.index.ByteArrayId;
import mil.nga.giat.geowave.core.store.CloseableIterator;
/**
* This is responsible for persisting data adapters (either in memory or to disk
* depending on the implementation).
*/
public interface AdapterStore
{
... | ruks/geowave | core/store/src/main/java/mil/nga/giat/geowave/core/store/adapter/AdapterStore.java | Java | apache-2.0 | 1,163 |
//-----------------------------------------------------------------------
// <copyright file="Shard.cs" company="Akka.NET Project">
// Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
// Copyright (C) 2013-2015 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyright>
//---------... | stefansedich/akka.net | src/contrib/cluster/Akka.Cluster.Sharding/Shard.cs | C# | apache-2.0 | 15,414 |
/*
* Copyright 2010-2010 LinkedIn, 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 ... | pongasoft/utils-misc | org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/FileResource.java | Java | apache-2.0 | 4,944 |
package org.apereo.cas.support.saml.web.idp.web;
import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan;
import org.apereo.cas.services.ServicesManager;
import org.apereo.cas.ticket.registry.TicketRegistrySupport;
import org.apereo.cas.web.flow.BaseSingleSignOnParticipationStrategy;
import org.apereo.... | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/web/SamlIdPSingleSignOnParticipationStrategy.java | Java | apache-2.0 | 1,632 |
using Microsoft.SharePoint.Client.Taxonomy;
using OfficeDevPnP.Core;
using OfficeDevPnP.Core.Entities;
using OfficeDevPnP.Core.Utilities;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.L... | shankargurav/PnP | OfficeDevPnP.Core/OfficeDevPnP.Core/AppModelExtensions/FieldAndContentTypeExtensions.cs | C# | apache-2.0 | 78,859 |
/*
* Copyright 2000-2008 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... | Soya93/Extract-Refactoring | plugins/yaml/src/org/jetbrains/yaml/YAMLSyntaxHighlighter.java | Java | apache-2.0 | 2,386 |
/*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use t... | LEOLEOl/jsprit-me | jsprit-analysis/src/main/java/com/graphhopper/jsprit/analysis/util/HtmlBenchmarkTableWriter.java | Java | apache-2.0 | 11,463 |
// Copyright 2016 The etcd 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 t... | sebrandon1/etcd | etcdctl/ctlv3/command/migrate_command.go | GO | apache-2.0 | 8,980 |
/*
Copyright 1996-2008 Ariba, 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... | pascalrobert/aribaweb | src/ideplugin/ariba/ideplugin/idea/lang/structure/OSSStructureViewModel.java | Java | apache-2.0 | 1,455 |
/// <reference path="../../src/Dexie.js" />
/// <reference path="../../addons/Dexie.Observable/Dexie.Observable.js" />
/// <reference path="https://code.jquery.com/jquery-2.1.1.js" />
function DBMonitor(searchBox, tbody) {
var searchValue = searchBox.val();
var databases = [];
reload();
searchBox.cha... | cesarmarinhorj/Dexie.js | samples/db-monitor/db-monitor.js | JavaScript | apache-2.0 | 811 |
/*
* 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... | albertocsm/presto | presto-main/src/test/java/com/facebook/presto/sql/planner/assertions/GroupIdMatcher.java | Java | apache-2.0 | 2,353 |
#!/usr/bin/python
#from openflow.optin_manager.sfa.util.sfalogging import logger
class RSpecVersion:
type = None
content_type = None
version = None
schema = None
namespace = None
extensions = {}
namespaces = dict(extensions.items() + [('default', namespace)])
elements = []
enabled =... | dana-i2cat/felix | optin_manager/src/python/openflow/optin_manager/sfa/rspecs/version.py | Python | apache-2.0 | 712 |
/**
* 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... | vramachan/falcon | extensions/src/main/java/org/apache/falcon/extensions/mirroring/hdfs/HdfsMirroringExtension.java | Java | apache-2.0 | 6,214 |
<?php
/*
* XXX
*/
?>
<?php $this->load->view('header');?>
<div class="container" id="main-content">
<h2 class="alert">The boring details</h2>
<h3>Setup and initialisation</h3>
<p>
First, include javascript for css resources for <strong>jQuery</strong>, <strong>Bootstrap</strong>, and the widget itself:
<... | au-research/ANDS-Registry-Contrib | registry_object_search/views/demo.php | PHP | apache-2.0 | 3,655 |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "index";
this... | brentonhouse/brentonhouse.alloy | test/apps/testing/ALOY-1516/_generated/windows/alloy/controllers/index.js | JavaScript | apache-2.0 | 1,575 |
import httplib
import logging
#import traceback
from xml.etree.ElementTree import _escape_cdata
from pypes.component import Component
log = logging.getLogger(__name__)
class Solr(Component):
__metatype__ = 'PUBLISHER'
def __init__(self):
# initialize parent class
Component.__init__(self)
... | klyap/pypes | ui/pypesvds/plugins/solrpublisher/solrpublisher.py | Python | apache-2.0 | 8,171 |
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
# import needed classes/functions from Cocoa
from Foundation import *
from AppKit import *
# import Nib loading functionality from AppKit
from PyObjCTools import NibClassBuilder, AppHelper
from twisted.internet import _threadedselect
... | sorenh/cc | vendor/Twisted-10.0.0/doc/core/examples/threadedselect/Cocoa/SimpleWebClient/Twistzilla.py | Python | apache-2.0 | 2,737 |
/*
* 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 ... | darionyaphet/flink | flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/cli/TestingExecutor.java | Java | apache-2.0 | 7,087 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var _ionicIonic = require('ionic/ionic');
var _angular2Angular2 = require('angula... | philmerrell/ionic-site | docs/v2/dist/demos/component-docs/slides/basic/pages.js | JavaScript | apache-2.0 | 1,673 |
/*
* #%L
* BroadleafCommerce Common Libraries
* %%
* Copyright (C) 2009 - 2013 Broadleaf Commerce
* %%
* 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... | passion1014/metaworks_framework | common/src/main/java/org/broadleafcommerce/common/web/resource/BroadleafResourceHttpRequestHandler.java | Java | apache-2.0 | 12,072 |
// 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.Windows.Data;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeStyle;
using Microso... | yeaicc/roslyn | src/VisualStudio/CSharp/Impl/Options/Formatting/StyleViewModel.cs | C# | apache-2.0 | 23,622 |
/*
* Copyright (c) 2012-2013 rebaze GmbH
* All rights reserved.
*
* This library and the accompanying materials are made available under the terms of the Apache License Version 2.0,
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.
*
*/
package org.rebaze.int... | rebaze/trees | src/main/java/org/rebaze/integrity/tree/api/Tree.java | Java | apache-2.0 | 1,797 |
/* Copyright JS Foundation and other contributors, http://js.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 r... | zherczeg/jerryscript | tests/jerry/es.next/array-prototype-at.js | JavaScript | apache-2.0 | 1,476 |
/*
Copyright 2013 Twitter, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | ogre0403/hraven | hraven-etl/src/main/java/com/twitter/hraven/etl/JobHistoryFileParser.java | Java | apache-2.0 | 1,976 |
/*
* 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... | jiangyifangh/presto | presto-main/src/test/java/com/facebook/presto/operator/project/TestDictionaryAwarePageProjection.java | Java | apache-2.0 | 10,233 |
<?php
include_once __DIR__ . '/lib/SubscriptionContainer.lib.php';
class DeleteSubscriptionContainer
{
private $obj, $mid, $did, $result, $authToken;
public function __construct()
{
$this->obj = new SubscriptionContainerLib;
}
public function setParam($rawdata)
{
$json = json_dec... | taipeicity/TPElineService | v2/php/restfulapi/v1/ws/ws_sc04.php | PHP | apache-2.0 | 1,615 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | chirino/shrinkwrap | impl-base/src/test/java/org/jboss/shrinkwrap/impl/base/classloader/ShrinkWrapClassLoaderTestCase.java | Java | apache-2.0 | 9,879 |
/**
*
* 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"); ... | grokcoder/pbase | hbase-server/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZooKeeperMainServer.java | Java | apache-2.0 | 3,916 |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.wso2.developerstudio.eclipse.ds.impl;
import java.math.BigInteger;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObje... | splinter/developer-studio | data-services/org.wso2.developerstudio.eclipse.ds/src/org/wso2/developerstudio/eclipse/ds/impl/ExcelQueryImpl.java | Java | apache-2.0 | 9,856 |
# Copyright 2012 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... | Mirantis/tempest | tempest/api/compute/keypairs/test_keypairs.py | Python | apache-2.0 | 5,296 |
/**
* 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... | sijie/bookkeeper | stream/common/src/main/java/org/apache/bookkeeper/common/router/HashRouter.java | Java | apache-2.0 | 955 |
package org.apache.archiva.security;
/*
* 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... | apache/archiva | archiva-modules/archiva-web/archiva-security/src/main/java/org/apache/archiva/security/ServletAuthenticator.java | Java | apache-2.0 | 2,862 |
import Resource from '@rancher/ember-api-store/models/resource';
import { get, computed } from '@ember/object';
import { reference } from '@rancher/ember-api-store/utils/denormalize';
export default Resource.extend({
project: reference('projectId'),
projectName: computed('project.displayName', function() {
re... | westlywright/ui | app/models/target.js | JavaScript | apache-2.0 | 821 |
/*
* 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 ... | nishantmonu51/druid | processing/src/main/java/org/apache/druid/query/aggregation/cardinality/types/CardinalityAggregatorColumnSelectorStrategyFactory.java | Java | apache-2.0 | 1,966 |
// Copyright 2014 The Souper 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 ap... | google/souper | lib/Extractor/KLEEBuilder.cpp | C++ | apache-2.0 | 17,824 |
/*
* 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 ... | kamleshbhatt/storm | storm-server/src/main/java/org/apache/storm/LocalCluster.java | Java | apache-2.0 | 43,394 |
package assertion_test
import (
. "github.com/cloudfoundry/bosh-utils/internal/github.com/onsi/ginkgo"
. "github.com/cloudfoundry/bosh-utils/internal/github.com/onsi/gomega"
"testing"
)
func TestAssertion(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Assertion Suite")
}
| uzzz/bosh-agent | vendor/github.com/cloudfoundry/bosh-utils/internal/github.com/onsi/gomega/internal/assertion/assertion_suite_test.go | GO | apache-2.0 | 288 |
/*
Copyright 1996-2008 Ariba, 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... | google-code/aribaweb | src/util/ariba/util/io/FilenameExtensionFilter.java | Java | apache-2.0 | 2,012 |
/*
* 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... | MyPureCloud/kafka | streams/src/test/java/org/apache/kafka/streams/kstream/PrintedTest.java | Java | apache-2.0 | 4,974 |
/**
* Copyright 2019 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... | dotandads/amphtml | extensions/amp-truncate-text/0.1/amp-truncate-text.js | JavaScript | apache-2.0 | 8,602 |
package fixtures.primitives;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
@Path("/primitives/longs")
@SuppressWarnings("javadoc")
public class LongsResource {
@GET
public long get() {
return 0;
}
@POST
public Response create(long value) {
retur... | smecsia/swagger-jaxrs-doclet | swagger-doclet/src/test/resources/fixtures/primitives/LongsResource.java | Java | apache-2.0 | 350 |
#include "repo-service-helper.h"
#include "filebrowser/data-mgr.h"
#include "filebrowser/progress-dialog.h"
#include "filebrowser/file-browser-requests.h"
#include "filebrowser/tasks.h"
#include "filebrowser/auto-update-mgr.h"
#include "ui/set-repo-password-dialog.h"
#include <QDir>
#include "utils/utils.h"
#include... | daodaoliang/seafile-client | src/repo-service-helper.cpp | C++ | apache-2.0 | 4,126 |
/*
* 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 ... | clarkyzl/flink | flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/Checkpoints.java | Java | apache-2.0 | 15,882 |
package org.batfish.representation.cisco_xr;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;
/**
* A structure representing a space of route-target extended communities given by a 32-bit range
* expression and 16-bit range expression in the format 'R... | arifogel/batfish | projects/batfish/src/main/java/org/batfish/representation/cisco_xr/ExtcommunitySetRtElemAsColon.java | Java | apache-2.0 | 1,603 |
package org.wikipedia.interlanguage;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import org.wikipedia.settings.Prefs;
import org.wikipedia.util.StringUtil;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
impor... | Wikinaut/wikipedia-app | app/src/main/java/org/wikipedia/interlanguage/AppLanguageState.java | Java | apache-2.0 | 4,425 |
// Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_JSON_PEGTL_PARSE_ERROR_HPP
#define TAO_JSON_PEGTL_PARSE_ERROR_HPP
#include <ostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include... | arangodb/arangodb | 3rdParty/taocpp-json/include/tao/json/external/pegtl/parse_error.hpp | C++ | apache-2.0 | 1,747 |
/**
*
* @authors Your Name (you@example.org)
* @date 2015-09-17 10:22:59
* @version $Id$
*/
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createEl... | freiby/flex | server/nirvana-plugins/nirvana-inspinia-style/src/main/webapp/js/embeddedjs2.js | JavaScript | apache-2.0 | 606 |
package virtual;
public class CalleeTwoTop {
}
| spring-projects/spring-loaded | testdata/src/main/java/virtual/CalleeTwoTop.java | Java | apache-2.0 | 49 |
// 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 (the
// "License"); you m... | chrisblock/selenium | java/client/src/org/openqa/selenium/devtools/profiler/model/PositionTickInfo.java | Java | apache-2.0 | 2,170 |
/*
* 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 ... | NSAmelchev/ignite | modules/core/src/main/java/org/apache/ignite/internal/client/thin/ClientUtils.java | Java | apache-2.0 | 33,859 |
# == Schema Information
#
# Table name: weekdays
#
# id :integer not null, primary key
# batch_id :integer
# weekday :string(255)
# name :string(255)
# sort_order :integer
# day_of_week :integer
# is_deleted :boolean default(FALSE)
#
#Fedena
#Copyright 2011 Foradian Te... | tachyons/somya | app/models/weekday.rb | Ruby | apache-2.0 | 2,251 |
/*
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... | tnachen/kubernetes | pkg/controller/persistentvolume/controller_base.go | GO | apache-2.0 | 13,565 |
# Copyright (c) 2015 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | infobloxopen/neutron | neutron/agent/ovsdb/impl_idl.py | Python | apache-2.0 | 7,372 |
/*
* Copyright © 2014 Cask Data, 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... | chtyim/cdap | cdap-security/src/test/java/co/cask/cdap/security/zookeeper/SharedResourceCacheTest.java | Java | apache-2.0 | 7,404 |
/*
* //******************************************************************
* //
* // Copyright 2017 Samsung Electronics All Rights Reserved.
* //
* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* //
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use thi... | JunhwanPark/TizenRT | external/iotivity/iotivity_1.3-rel/cloud/dashboard/src/Client.js | JavaScript | apache-2.0 | 7,702 |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | didiez/keycloak | saml-core/src/main/java/org/keycloak/saml/processing/core/util/XMLSignatureUtil.java | Java | apache-2.0 | 29,728 |
package com.navercorp.pinpoint.web.filter;
import com.navercorp.pinpoint.common.service.DefaultServiceTypeRegistryService;
import com.navercorp.pinpoint.common.service.ServiceTypeRegistryService;
import com.navercorp.pinpoint.common.trace.ServiceType;
import com.navercorp.pinpoint.common.bo.SpanBo;
import org.junit.As... | gspandy/pinpoint | web/src/test/java/com/navercorp/pinpoint/web/filter/LinkFilterTest.java | Java | apache-2.0 | 3,898 |
/*
Copyright 2012 Software Freedom Conservancy
Copyright 2007-2012 Selenium committers
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... | krosenvold/selenium-git-release-candidate | java/client/test/org/openqa/selenium/ElementFindingTest.java | Java | apache-2.0 | 18,265 |
#include "grr/client/minicomm/client_actions/delete_grr_temp_files.h"
#include <unistd.h>
#include <fstream>
#include <vector>
#include "gtest/gtest.h"
#include "grr/client/minicomm/client_test_base.h"
#include "grr/client/minicomm/file_operations.h"
#include "grr/client/minicomm/tempfiles.h"
#include "grr/client/mi... | pidydx/grr | grr/client/minicomm/client_actions/delete_grr_temp_files_test.cc | C++ | apache-2.0 | 1,431 |
'use strict';
var _ansiStyles = _interopRequireDefault(require('ansi-styles'));
var _collections = require('./collections');
var _AsymmetricMatcher = _interopRequireDefault(
require('./plugins/AsymmetricMatcher')
);
var _ConvertAnsi = _interopRequireDefault(require('./plugins/ConvertAnsi'));
var _DOMCollection =... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/pretty-format/build/index.js | JavaScript | apache-2.0 | 13,582 |
from queue import LifoQueue, Queue
import signal
from threading import current_thread, Lock, main_thread
from app.util import app_info, log, process_utils
from app.util.singleton import Singleton
class UnhandledExceptionHandler(Singleton):
"""
This class implements functionality to catch and log exceptions i... | nickzuber/ClusterRunner | app/util/unhandled_exception_handler.py | Python | apache-2.0 | 10,423 |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddForeignKeysToVrMenuTranslationsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('vr_menu_translations', function(Blueprint $table)
{
$ta... | RamintaRam/atrask_vr | database/migrations/2017_05_23_080810_add_foreign_keys_to_vr_menu_translations_table.php | PHP | apache-2.0 | 953 |