code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
// Package 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 2007-2012 Selenium committers
Portions copyright 2011-2012 Software Freedom Conservancy
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
... | lummyare/lummyare-lummy | java/client/test/org/openqa/selenium/VisibilityTest.java | Java | apache-2.0 | 8,824 |
/*
* 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 |
/*
* 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 ... | christophd/camel | core/camel-core/src/test/java/org/apache/camel/component/rest/FromRestGetInterceptTest.java | Java | apache-2.0 | 2,315 |
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 |
# 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 law or a... | YanTangZhai/tf | tensorflow/python/kernel_tests/reduction_ops_test.py | Python | apache-2.0 | 24,486 |
package org.apereo.cas.support.saml.mdui.web.flow;
import org.apereo.cas.config.CasCoreAuthenticationConfiguration;
import org.apereo.cas.config.CasCoreAuthenticationHandlersConfiguration;
import org.apereo.cas.config.CasCoreAuthenticationMetadataConfiguration;
import org.apereo.cas.config.CasCoreAuthenticationPolicyC... | mrluo735/cas-5.1.0 | support/cas-server-support-saml-mdui/src/test/java/org/apereo/cas/support/saml/mdui/web/flow/SamlMetadataUIParserActionTests.java | Java | apache-2.0 | 7,305 |
/**
*
* @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 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 ... | manuzhang/incubator-gearpump | streaming/src/main/java/org/apache/gearpump/streaming/javaapi/StreamApplication.java | Java | apache-2.0 | 1,992 |
// 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 |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/monitoring/v3/uptime.proto
namespace Google\Cloud\Monitoring\V3;
if (false) {
/**
* This class is deprecated. Use Google\Cloud\Monitoring\V3\UptimeCheckConfig\ContentMatcher\ContentMatcherOption instead.
* @deprecated
... | googleapis/google-cloud-php-monitoring | src/V3/UptimeCheckConfig_ContentMatcher_ContentMatcherOption.php | PHP | apache-2.0 | 743 |
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 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... | jonmcewen/camel | components/camel-hdfs2/src/test/java/org/apache/camel/component/hdfs2/HdfsConsumerTest.java | Java | apache-2.0 | 22,556 |
/*
* 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 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-util/src/test/java/org/apache/wicket/util/lang/BytesTest.java | Java | apache-2.0 | 5,445 |
// 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 |
#region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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... | robv8r/FluentValidation | src/FluentValidation.Tests/LessThanValidatorTester.cs | C# | apache-2.0 | 6,363 |
/*
* 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 |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
define([
'underscore',
'knockout',
"protocol",
'query-form-model',
'core-basedir/reports/qe/ui/js/common/qe.model.config'
], function (_, Knockout, protocolUtils, QueryFormModel, qeModelConfig) {
var SearchFlowFormModel = ... | vishnuvv/contrail-web-controller | webroot/monitor/infrastructure/underlay/ui/js/models/SearchFlowFormModel.js | JavaScript | apache-2.0 | 4,508 |
package com.sandwich.util.io;
import java.io.File;
import java.io.IOException;
public abstract class ForEachFileAction extends ExistingFileAction {
public ForEachFileAction(String... strings) {
super(strings);
}
public void onDirectory(File dir) throws IOException {
for (String fileName : dir.list()) {
op... | matyb/java-koans | lib/src/main/java/com/sandwich/util/io/ForEachFileAction.java | Java | apache-2.0 | 362 |
/*
* 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... | ThiagoGarciaAlves/intellij-community | java/compiler/impl/src/com/intellij/compiler/server/DefaultMessageHandler.java | Java | apache-2.0 | 18,505 |
package org.xbib.elasticsearch.action.ingest;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.DocumentRequest;
import org.elasticsearch.action.delet... | jprante/elasticsearch-helper | src/main/java/org/xbib/elasticsearch/action/ingest/TransportIngestAction.java | Java | apache-2.0 | 13,193 |
/*
* 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 u... | Sellegit/j2objc | translator/src/test/java/com/google/devtools/j2objc/translate/GwtConverterTest.java | Java | apache-2.0 | 4,120 |
# Copyright (c) 2007-2019 UShareSoft, 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 requi... | emuus/hammr | hammr/utils/scan_utils.py | Python | apache-2.0 | 1,969 |
/**
* 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
* distribu... | protochron/aurora | src/main/java/org/apache/aurora/scheduler/state/LockManager.java | Java | apache-2.0 | 2,134 |
(function() {
'use strict';
angular.module('newplayer.service', []);
})();
| thenewgroup/elx-newplayer | app/scripts/service/service.module.js | JavaScript | apache-2.0 | 80 |
<?php
/**
* @file
* Contains \Drupal\Component\Utility\SortArray.
*/
namespace Drupal\Component\Utility;
/**
* Provides generic array sorting helper methods.
*/
class SortArray {
/**
* Sorts a structured array by the 'weight' element.
*
* Note that the sorting is by the 'weight' array element, not b... | nickopris/musicapp | www/core/lib/Drupal/Component/Utility/SortArray.php | PHP | apache-2.0 | 3,665 |
namespace Xilium.CefGlue
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Xilium.CefGlue.Interop;
/// <summary>
/// Callback interface for CefBrowserHost::GetNavigationEntries. The methods of
/// this class will be ... | mindthegab/SFE-Minuet-DesktopClient | minuet/CefGlue/Classes.Handlers/CefNavigationEntryVisitor.cs | C# | apache-2.0 | 1,363 |
/*
* 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 ... | salyh/javamailspec | geronimo-el_2.2_spec/src/main/java/javax/el/ValueExpression.java | Java | apache-2.0 | 1,582 |
/*
* Copyright (c) 2005-2010 Grameen Foundation USA
* 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
*
* Unl... | maduhu/mifos-head | acceptanceTests/src/test/java/org/mifos/test/acceptance/framework/testhelpers/CustomPropertiesHelper.java | Java | apache-2.0 | 5,175 |
/*
Derby - Class org.apache.derbyTesting.functionTests.tests.lang.closed
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 fil... | papicella/snappy-store | gemfirexd/tools/src/testing/java/org/apache/derbyTesting/functionTests/tests/lang/closed.java | Java | apache-2.0 | 12,672 |
/*
* Copyright 2014 The Netty Project
*
* The Netty Project licenses this file to you 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 re... | gerdriesselmann/netty | codec-http2/src/main/java/io/netty/handler/codec/http2/Http2CodecUtil.java | Java | apache-2.0 | 16,850 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache/kylin | core-cube/src/main/java/org/apache/kylin/cube/kv/RowConstants.java | Java | apache-2.0 | 1,808 |
/*
* Copyright © 2012-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... | caskdata/coopr | coopr-server/src/main/java/co/cask/coopr/http/guice/HttpModule.java | Java | apache-2.0 | 2,568 |
/**
* Copyright 2005-2016 Red Hat, Inc.
* <p>
* Red Hat licenses this file to you 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unles... | arquillian/arquillian-cube | kubernetes/kubernetes/src/main/java/org/arquillian/cube/kubernetes/impl/event/Stop.java | Java | apache-2.0 | 937 |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: combos/unmarshaler/theproto3.proto
package theproto3
import (
bytes "bytes"
compress_gzip "compress/gzip"
encoding_binary "encoding/binary"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
github_com_gogo_protobuf_proto "github.com/gogo/protobuf/prot... | Miciah/origin | vendor/github.com/gogo/protobuf/test/theproto3/combos/unmarshaler/theproto3.pb.go | GO | apache-2.0 | 334,898 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache/syncope | client/idrepo/console/src/main/java/org/apache/syncope/client/console/policies/AccountPolicyDirectoryPanel.java | Java | apache-2.0 | 4,155 |
"""Test the Z-Wave over MQTT config flow."""
from homeassistant import config_entries, setup
from homeassistant.components.ozw.config_flow import TITLE
from homeassistant.components.ozw.const import DOMAIN
from tests.async_mock import patch
from tests.common import MockConfigEntry
async def test_user_create_entry(ha... | sdague/home-assistant | tests/components/ozw/test_config_flow.py | Python | apache-2.0 | 1,943 |
/*
* #%L
* ELK OWL Object Interfaces
*
* $Id$
* $HeadURL$
* %%
* Copyright (C) 2011 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 License.
* You may obtain a copy of the Li... | live-ontologies/elk-reasoner | elk-owl-parent/elk-owl-model/src/main/java/org/semanticweb/elk/owl/interfaces/ElkPropertyAxiom.java | Java | apache-2.0 | 2,035 |
/**
* 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 under ... | ChrisA89/assertj-core | src/test/java/org/assertj/core/api/byte_/ByteAssert_isCloseToPercentage_byte_Test.java | Java | apache-2.0 | 1,374 |
package razor.android.lib.core.holders;
import java.util.ArrayList;
import java.util.List;
import razor.android.lib.core.R;
import razor.android.lib.core.adapters.CoreViewModelListAdapter;
import razor.android.lib.core.adapters.CoreViewModelListAdapter.OnCoreViewModelListAdapterListener;
import razor.android.... | paulshemmings/pico | razor.lib.comms/target/unpack/apklibs/razor.android_razor.android.lib.core_apklib_1.0.0-SNAPSHOT/src/razor/android/lib/core/holders/ViewModelListViewHolder.java | Java | apache-2.0 | 3,778 |
package org.terracotta.sample.service;
import org.ehcache.Cache;
/**
* @author Aurelien Broszniowski
*/
public class CachedDataService implements DataService<byte[]> {
private final Cache<Long, byte[]> cache;
public CachedDataService(final Cache<Long, byte[]> cache) {
this.cache = cache;
}
@Override
... | ehcache/ehcache3-samples | scale-continuum/src/main/java/org/terracotta/sample/service/CachedDataService.java | Java | apache-2.0 | 396 |
/*
* 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... | wangyuxue/elasticsearch | core/src/test/java/org/elasticsearch/test/ElasticsearchTestCase.java | Java | apache-2.0 | 23,505 |
define([
'../Core/Cartesian3',
'../Core/defined',
'../Core/Intersect',
'../Core/ManagedArray',
'../Core/Math',
'./Cesium3DTileOptimizationHint',
'./Cesium3DTileRefine'
], function(
Cartesian3,
defined,
Intersect,
ManagedArray,
... | geoscan/cesium | Source/Scene/Cesium3DTilesetTraversal.js | JavaScript | apache-2.0 | 28,819 |
/*
* Copyright 2020 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... | ketan/gocd | server/src/main/java/com/thoughtworks/go/config/update/ElasticAgentProfileCreateCommand.java | Java | apache-2.0 | 1,817 |
/*
* Copyright 2000-2012 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... | android-ia/platform_tools_idea | plugins/maven/src/main/java/org/jetbrains/idea/maven/services/MavenRepositoryServicesManager.java | Java | apache-2.0 | 3,801 |
<?php
$max_age = 0;//600; //seconds this URL should be cached
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $max_age) . ' GMT');
header("Cache-Control: public, max-age=$max_age");
header("Content-Type: application/json");
$response = [];
$included_fonts = glob("../fonts/*.ttf");//only ttf for now
foreach($... | wbmccool/bsd-txt | ajax/fonts.php | PHP | apache-2.0 | 473 |
package com.eas.client.utils.scalableui;
import java.awt.BorderLayout;
import java.awt.Component;
/**
*
* @author Marat
*/
public class ScalableBorderLayout extends BorderLayout{
public ScalableBorderLayout() {
super();
}
@Override
public void addLayoutComponent(Component comp, Object con... | altsoft/PlatypusJS | platypus-js-scalable-widget/src/main/java/com/eas/client/utils/scalableui/ScalableBorderLayout.java | Java | apache-2.0 | 467 |
/**
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | pleacu/jbpm | jbpm-bpmn2/src/test/java/org/jbpm/bpmn2/BPMN2XMLTest.java | Java | apache-2.0 | 7,203 |
var Main = function(){
this.domain = '';
this.pname = '免费版';
this.days = [];
this.months = [];
this.flowDayData = [];
this.cacheDayData = [];
this.flowMontyData = [];
this.cacheMonthData = [];
this.getInfo = function() {
var that = this;
$.ajax({
url : '/api/?c=record&a=getDomainInfo',
dataType : 'js... | zdchao/php_demo | wwwroot/wwwroot/user/view/new0807/record/cdnflow.js | JavaScript | apache-2.0 | 5,652 |
/*
* 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/processor/internals/SinkNodeTest.java | Java | apache-2.0 | 4,866 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/DescribeAuditMitigationActionsTaskResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>... | awslabs/aws-sdk-cpp | aws-cpp-sdk-iot/source/model/DescribeAuditMitigationActionsTaskResult.cpp | C++ | apache-2.0 | 3,297 |
from __future__ import absolute_import
from __future__ import print_function
from typing import Any, Dict, List
from .template_parser import (
tokenize,
Token,
is_django_block_tag,
)
from six.moves import range
import os
def pretty_print_html(html, num_spaces=4):
# type: (str, int) -> str
# We us... | christi3k/zulip | tools/lib/pretty_print.py | Python | apache-2.0 | 8,553 |
/*
* Copyright 2015 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... | blindpirate/gradle | subprojects/core/src/main/java/org/gradle/internal/filewatch/jdk7/WatchServiceFileWatcherBacking.java | Java | apache-2.0 | 7,361 |
/**
* 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... | Adtoma/amphtml | extensions/amp-a4a/0.1/amp-a4a.js | JavaScript | apache-2.0 | 54,093 |
/**
* Copyright 2010-2014 Axel Fontaine
*
* 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 o... | typischmann/flyway | flyway-core/src/main/java/org/flywaydb/core/internal/resolver/jdbc/package-info.java | Java | apache-2.0 | 718 |
/*
* Copyright 2013 Séven Le Mesle
*
* 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... | zouabimourad/selma | processor/src/test/java/fr/xebia/extras/selma/beans/LibraryDTO.java | Java | apache-2.0 | 925 |
package com.material.widget;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.TypedArray;
import android.graphics.*;
import android.os.Build;
import android.support.annotation.NonNull;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.vie... | 0359xiaodong/MaterialQQLite | MaterialWidget/src/main/java/com/material/widget/PaperButton.java | Java | apache-2.0 | 10,482 |
# 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... | kobejean/tensorflow | tensorflow/contrib/data/python/kernel_tests/filter_dataset_op_test.py | Python | apache-2.0 | 2,828 |
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | etirelli/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-core-common/src/test/java/org/kie/workbench/common/stunner/core/graph/command/impl/UpdateElementPropertyValueCommandTest.java | Java | apache-2.0 | 5,093 |
package com.lidroid.xutils.sample;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.*;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.exception.DbExce... | zzspuck/SmartCity | xUtils-master/sample/src/com/lidroid/xutils/sample/DownloadListActivity.java | Java | apache-2.0 | 8,716 |
/*
* 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 ... | gridgain/apache-ignite | modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/scanners/ftp/GridUriDeploymentFtpException.java | Java | apache-2.0 | 1,580 |
/*
* Copyright 2012 Amadeus s.a.s.
* 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... | mlaval/ariatemplates | test/aria/html/HTMLTestSuite.js | JavaScript | apache-2.0 | 2,019 |
package com.alibaba.json.bvt.bug;
import java.util.ArrayList;
import org.junit.Assert;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import junit.framework.TestCase;
public class Bug_for_issue_389 extends TestCase {
public void test_for_issue() throws Exception {
Def def... | alibaba/fastjson | src/test/java/com/alibaba/json/bvt/bug/Bug_for_issue_389.java | Java | apache-2.0 | 1,419 |
import { Nullable } from "babylonjs/types";
import { serializeAsVector3, serializeAsTexture, serialize, expandToProperty, serializeAsColor3, SerializationHelper } from "babylonjs/Misc/decorators";
import { Matrix, Vector3 } from "babylonjs/Maths/math.vector";
import { Color3 } from "babylonjs/Maths/math.color";
imp... | BabylonJS/Babylon.js | materialsLibrary/src/fur/furMaterial.ts | TypeScript | apache-2.0 | 19,590 |
// (C) Copyright 2015 Moodle Pty Ltd.
//
// 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 agree... | FMCorz/moodlemobile2 | src/addon/mod/book/providers/list-link-handler.ts | TypeScript | apache-2.0 | 1,951 |
// Copyright 2008 The Closure Library 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 requ... | teppeis/closure-library | closure/goog/ui/dimensionpickerrenderer.js | JavaScript | apache-2.0 | 14,821 |
/*
* Copyright 2012 Timothy Lin <lzh9102@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | adrianommelo/qrcode-desktop | src/zxinggui/generator/PlainTextGenerator.java | Java | apache-2.0 | 2,466 |
/*
* 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... | mmaracic/elasticsearch | core/src/main/java/org/elasticsearch/action/admin/cluster/allocation/ClusterAllocationExplanation.java | Java | apache-2.0 | 8,925 |
// Copyright John Maddock 2012.
// Use, modification and distribution are subject to 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)
//
// This tests that cpp_dec_float_50 meets our
// conceptual requirements when used with Boos... | ryancoleman/autodock-vina | boost_1_54_0/libs/multiprecision/test/concepts/sf_concept_check_gamma.cpp | C++ | apache-2.0 | 4,825 |
/*
Derby - Class com.pivotal.gemfirexd.internal.impl.sql.compile.LOBTypeCompiler
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 ... | papicella/snappy-store | gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/sql/compile/LOBTypeCompiler.java | Java | apache-2.0 | 5,995 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache/syncope | core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/DefaultPropagationManager.java | Java | apache-2.0 | 27,232 |
/*
* Copyright 2002-2005 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... | springrichclient/springrcp | spring-richclient-core/src/main/java/org/springframework/binding/validation/ValidationMessage.java | Java | apache-2.0 | 1,409 |
/*
* Copyright 2002-2004 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 appl... | springrichclient/springrcp | spring-richclient-core/src/main/java/org/springframework/binding/value/swing/SpinnerAdapter.java | Java | apache-2.0 | 1,821 |
# Copyright 2012 OpenStack Foundation
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011,2012 Akira YOSHIYAMA <akirayoshiyama@gmail.com>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "Lic... | openstack/swift | swift/common/middleware/s3api/s3token.py | Python | apache-2.0 | 17,603 |
/*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | papicella/snappy-store | gemfire-core/src/main/java/com/gemstone/gemfire/lang/Identifiable.java | Java | apache-2.0 | 1,301 |