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 |
|---|---|---|---|---|---|
"""
WSGI config for OIPA project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` set... | schlos/OIPA-V2.1 | OIPA/OIPA/wsgi.py | Python | agpl-3.0 | 1,413 |
<?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* perm... | egoistIT/shopware | recovery/install/src/Service/ShopService.php | PHP | agpl-3.0 | 4,461 |
/**
* tapcfg - A cross-platform configuration utility for TAP driver
* Copyright (C) 2008-2011 Juho Vähä-Herttua
*
* This library 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
* v... | juhovh/tapcfg | src/demos/TAPNetTest.cs | C# | lgpl-2.1 | 1,388 |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | EmreAtes/spack | var/spack/repos/builtin/packages/psi4/package.py | Python | lgpl-2.1 | 4,596 |
/*****************************************/
/* Written by andrew.wilkins@csiro.au */
/* Please contact me if you make changes */
/*****************************************/
#include "RichardsExcavFlow.h"
#include "Function.h"
#include "Material.h"
template<>
InputParameters validParams<RichardsExcavFlow>()
{
Inp... | cpritam/moose | modules/richards/src/postprocessors/RichardsExcavFlow.C | C++ | lgpl-2.1 | 1,375 |
/****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full restrictions ... | gleicher27/Tardigrade | moose/modules/richards/src/postprocessors/RichardsExcavFlow.C | C++ | lgpl-2.1 | 1,602 |
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.gui.main.contactlist.contactsource;
import java.util.*;
import net.java.sip.communicator.impl.gui.*;
import net.java.sip.communicat... | marclaporte/jitsi | src/net/java/sip/communicator/impl/gui/main/contactlist/contactsource/StringContactSourceServiceImpl.java | Java | lgpl-2.1 | 6,347 |
/* Soot - a J*va Optimization Framework
* Copyright (C) 2002 Florian Loitsch
*
* This library 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 2.1 of the License, or (at your optio... | cfallin/soot | src/soot/jimple/toolkits/scalar/pre/BusyCodeMotion.java | Java | lgpl-2.1 | 6,656 |
/*
* #%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/alfresco-repository | src/main/java/org/alfresco/repo/cache/InMemoryCacheStatistics.java | Java | lgpl-3.0 | 8,474 |
/* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution. If
... | edwinspire/VSharp | class/dlr/Runtime/Microsoft.Scripting.Core/Ast/NewArrayExpression.cs | C# | lgpl-3.0 | 10,491 |
/**
* Created : Mar 26, 2012
*
* @author pquiring
*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ProgrammerPanel extends javax.swing.JPanel implements Display, ActionListener {
/**
* Creates new form MainPanel
*/
public ProgrammerPanel(Backend backend) {
initCompo... | ericomattos/javaforce | projects/jfcalc/src/ProgrammerPanel.java | Java | lgpl-3.0 | 20,790 |
/*
Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about)
Dual licensed under the MIT or LGPL Version 2 licenses.
*/
/**
* @file Spell checker
*/
// Register a plugin named "wsc".
OMEDITOR.plugins.add( 'wsc',
{
requires : [ 'dialog' ],
init : function( editor )
{
var commandName = 'checkspell';
var c... | yonghuang/fastui | samplecenter/basic/timeTest/operamasks-ui-2.0/development-bundle/ui/editor/_source/plugins/wsc/plugin.js | JavaScript | lgpl-3.0 | 1,027 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export default [
[
[
'நள்.', 'நண்.', 'அதி.', 'கா.', 'மதி.', 'பிற்.', 'மா.',
'அந்த... | rospilot/rospilot | share/web_assets/nodejs_deps/node_modules/@angular/common/locales/extra/ta-MY.js | JavaScript | apache-2.0 | 1,346 |
/*
* Copyright (c) 2014 Wael Chatila / Icegreen Technologies. All Rights Reserved.
* This software is released under the Apache license 2.0
* This file has been modified by the copyright holder.
* Original file can be found at http://james.apache.org
*/
package com.icegreen.greenmail.imap;
/**
* @author... | buildscientist/greenmail | greenmail-core/src/main/java/com/icegreen/greenmail/imap/ProtocolException.java | Java | apache-2.0 | 610 |
/*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the Apache License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.dba.perf.myperf.common;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
public class MyDatabases implements java.io.Serializable{
... | wgpshashank/mysql_perf_analyzer | myperf/src/main/java/com/yahoo/dba/perf/myperf/common/MyDatabases.java | Java | apache-2.0 | 1,264 |
/*
* 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 ap... | droolsjbpm/droolsjbpm-tools | drools-eclipse/org.guvnor.tools/src/org/guvnor/tools/actions/EditConnectionAction.java | Java | apache-2.0 | 3,786 |
#
# 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 us... | mrchristine/spark-examples-dbc | src/main/python/ml/index_to_string_example.py | Python | apache-2.0 | 1,615 |
/*******************************************************************************
* Copyright (c) 2015-2016, WSO2.Telco Inc. (http://www.wso2telco.com) All Rights Reserved.
*
* WSO2.Telco Inc. licences this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | WSO2Telco/component-dep | components/oneapi-validation/src/main/java/com/wso2telco/dep/oneapivalidation/service/impl/smsmessaging/northbound/ValidateNBDeliveryInfoNotification.java | Java | apache-2.0 | 4,034 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.core.ml.dataframe;
import org.elas... | robin13/elasticsearch | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/DataFrameAnalyticsSource.java | Java | apache-2.0 | 10,456 |
/*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use t... | MRNAS/NTRT | src/core/tgSimView.cpp | C++ | apache-2.0 | 5,374 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <cctype>
#include "BodyOnlyXmlParser.hh"
#include "MdsException.hh"
using namespace mdsd::details;
void
BodyOnlyXmlParser::ParseFile... | Azure/azure-linux-extensions | Diagnostic/mdsd/mdscommands/BodyOnlyXmlParser.cc | C++ | apache-2.0 | 1,350 |
/*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.ap... | callkalpa/product-mss | samples/stockquote/deployable-jar/src/main/java/org/wso2/msf4j/stockquote/example/exception/EntityNotFoundMapper.java | Java | apache-2.0 | 1,196 |
/*
* Copyright 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 applica... | gradle/gradle | subprojects/language-native/src/main/java/org/gradle/swiftpm/internal/DefaultTarget.java | Java | apache-2.0 | 2,004 |
/*
* Copyright 2016 The Closure Compiler 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 ... | MatrixFrog/closure-compiler | externs/browser/intersection_observer.js | JavaScript | apache-2.0 | 6,017 |
// PSI_ELEMENT: com.intellij.psi.PsiMethod
// OPTIONS: usages
// PLAIN_WHEN_NEEDED
public class JavaWithGroovyInvoke_0 {
public void <caret>invoke() {
}
public static class OtherJavaClass extends JavaWithGroovyInvoke_0 {
}
}
// CRI_IGNORE | smmribeiro/intellij-community | plugins/kotlin/idea/tests/testData/findUsages/java/findJavaMethodUsages/JavaWithGroovyInvoke.0.java | Java | apache-2.0 | 257 |
/*
* Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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/licens... | lakshani/carbon-identity | components/application-mgt/org.wso2.carbon.identity.application.common/src/test/java/org/wso2/carbon/identity/application/common/model/test/ProvisioningConnectorConfigTest.java | Java | apache-2.0 | 2,091 |
/*
* 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 ... | sdmcraft/jackrabbit | jackrabbit-jca/src/test/java/org/apache/jackrabbit/jca/test/ConnectionRequestInfoTest.java | Java | apache-2.0 | 2,835 |
package rolebinding
import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
metainternal "k8s.io/apimachinery/pkg/apis/meta/internalversion"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/conversion"
"k8s.io/apimachinery/pkg/runtime"
apirequest "k8s.io/apiserver/pkg/endpoints/request"
"k... | raffaelespazzoli/origin | pkg/authorization/registry/rolebinding/proxy.go | GO | apache-2.0 | 4,978 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/recoveryServicesBackupManagement/lib/models/dPMProtectedItemExtendedInfo.js | JavaScript | apache-2.0 | 5,048 |
//===-- FreeBSDSignals.cpp --------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | apple/swift-lldb | source/Plugins/Process/Utility/FreeBSDSignals.cpp | C++ | apache-2.0 | 5,613 |
define([
"dojo/_base/declare", // declare
"dojo/dom-construct", // domConstruct.destroy domConstruct.place
"dojo/keys", // keys.ENTER
"dojo/_base/lang",
"dojo/on",
"dojo/sniff", // has("ie") has("mozilla") has("webkit")
"dojo/_base/window", // win.withGlobal
"dojo/window", // winUtils.scrollIntoView
"../_Plugi... | denov/dojo-demo | src/main/webapp/js/dijit/_editor/plugins/EnterKeyHandling.js | JavaScript | apache-2.0 | 22,062 |
/**
* Copyright (C) 2012 Iordan Iordanov
* Copyright (C) 2010 Michael A. MacDonald
*
* This 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 2 of the License, or
* (at your option) ... | x-hansong/aSpice | src/com/iiordanov/bVNC/COLORMODEL.java | Java | apache-2.0 | 3,262 |
/*
Copyright 2015 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... | danmcp/source-to-image | vendor/k8s.io/kubernetes/pkg/api/v1/conversion.go | GO | apache-2.0 | 21,451 |
/*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | ilovesoup/hyracks | hyracks/hyracks-hdfs/hyracks-hdfs-core/src/main/java/edu/uci/ics/hyracks/hdfs/api/IKeyValueParser.java | Java | apache-2.0 | 1,862 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.12.11 at 12:17... | knadikari/developer-studio | common/org.wso2.developerstudio.eclipse.artifact.security/src/org/wso2/developerstudio/eclipse/security/project/model/ServiceGroup.java | Java | apache-2.0 | 5,773 |
/**
* 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... | mehant/drill | exec/java-exec/src/main/java/org/apache/drill/exec/store/avro/AvroRecordReader.java | Java | apache-2.0 | 13,522 |
/**
* 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... | arenadata/ambari | contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/assets/AssetResource.java | Java | apache-2.0 | 8,219 |
/**
* @copyright
* ====================================================================
* 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. ... | centic9/subversion-ppa | subversion/bindings/javahl/native/org_apache_subversion_javahl_types_Version.cpp | C++ | apache-2.0 | 2,343 |
/****************************************************************
* 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 ... | chibenwa/james | protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/netty/SMTPChannelUpstreamHandler.java | Java | apache-2.0 | 2,858 |
<?php
/**
* The foo test class
*
* @author mepeisen
*/
class FooTest extends PHPUnit_Framework_TestCase
{
/**
* tests the bar function
*/
public function testFoo()
{
include "folderA/MyClassA.php";
$o = new folderA\MyMavenTestClassA();
$this->assertEquals("foo", $o->getFoo());
include "folderB/My... | Vaysman/maven-php-plugin | maven-plugins/it/src/test/resources/org/phpmaven/test/projects/mojos-phar/phar-with-dep1-folders/src/test/php/FooTest.php | PHP | apache-2.0 | 423 |
/*
*
* 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"); y... | hasinitg/airavata | modules/credential-store/credential-store-service/src/main/java/org/apache/airavata/credential/store/store/impl/db/CommunityUserDAO.java | Java | apache-2.0 | 9,093 |
'use strict';
(function (scope) {
/**
* Shape erased
*
* @class ShapeErased
* @extends ShapeCandidate
* @param {Object} [obj]
* @constructor
*/
function ShapeErased(obj) {
scope.ShapeCandidate.call(this, obj);
}
/**
* Inheritance property
*/
Sha... | countshadow/MyScriptJS | src/output/shape/shapeErased.js | JavaScript | apache-2.0 | 532 |
/*
* Copyright (c) 2009 Mozilla Foundation
*
* 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 Software without restriction, including without limitation
* the rights to use, copy, modify, merg... | googlearchive/caja | third_party/java/htmlparser/src/nu/validator/htmlparser/annotation/Inline.java | Java | apache-2.0 | 1,211 |
// -------------------------------------------------------------------------
// @FileName : NFCGameServerScriptModule.cpp
// @Author : LvSheng.Huang
// @Date : 2013-01-02
// @Module : NFCGameServerScriptModule
// @Desc :
// --------------... | MRunFoss/NoahGameFrame | NFServer/NFGameServerScriptPlugin/NFCGameServerScriptModule.cpp | C++ | apache-2.0 | 1,286 |
/*
* 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... | goodwinnk/intellij-community | RegExpSupport/src/org/intellij/lang/regexp/RegExpLanguageHost.java | Java | apache-2.0 | 4,005 |
/* 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... | dbmalkovsky/flowable-engine | modules/flowable5-engine/src/main/java/org/activiti/engine/impl/jobexecutor/TimerDeclarationImpl.java | Java | apache-2.0 | 8,975 |
/*
* Copyright (c) 2005-2011 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... | madhav123/gkmaster | appdomain/src/main/java/org/mifos/customers/checklist/business/CheckListBO.java | Java | apache-2.0 | 5,902 |
"use strict";
const HTMLElementImpl = require("./HTMLElement-impl").implementation;
const Document = require("../generated/Document");
const DocumentFragment = require("../generated/DocumentFragment");
const { cloningSteps, domSymbolTree } = require("../helpers/internal-constants");
const { clone } = require("../nod... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js | JavaScript | apache-2.0 | 2,038 |
/*
* Copyright 2013 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 ... | atul-bhouraskar/closure-templates | java/src/com/google/template/soy/types/SoyObjectType.java | Java | apache-2.0 | 3,172 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.harvard.iq.dataverse.api.imports;
/**
*
* @author ellenk
*/
public interface ImportUtil {
public enum ImportType{ NE... | quarian/dataverse | src/main/java/edu/harvard/iq/dataverse/api/imports/ImportUtil.java | Java | apache-2.0 | 352 |
require 'support/shared/integration/integration_helper'
describe "Recipe DSL methods" do
include IntegrationSupport
module Namer
extend self
attr_accessor :current_index
end
before(:all) { Namer.current_index = 1 }
before { Namer.current_index += 1 }
context "with resource 'base_thingy' declared... | andrewpsp/chef | spec/integration/recipes/recipe_dsl_spec.rb | Ruby | apache-2.0 | 55,483 |
#
# Author:: John Keiser (<jkeiser@opscode.com>)
# Copyright:: Copyright (c) 2013 Opscode, 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.
# You may obtain a copy of the License at
#
# ... | luna1x/chef-server | vendor/ruby/1.9.1/gems/chef-11.6.2/spec/integration/knife/upload_spec.rb | Ruby | apache-2.0 | 41,092 |
/*
* Copyright 2002-2015 Drew Noakes
*
* 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 applicab... | wswenyue/metadata-extractor | Source/com/drew/metadata/exif/makernotes/PentaxMakernoteDescriptor.java | Java | apache-2.0 | 4,966 |
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.test.internal.engine.methodvalidation.service;
import java.util.List;... | mxrenkin/hibernate-validator | engine/src/test/java/org/hibernate/validator/test/internal/engine/methodvalidation/service/CustomerRepository.java | Java | apache-2.0 | 2,001 |
package org.zstack.network.service.lb;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.transaction.annotation.Transactional;
import org.zstack.core.P... | winger007/zstack | plugin/loadBalancer/src/main/java/org/zstack/network/service/lb/LoadBalancerBase.java | Java | apache-2.0 | 44,011 |
class WorkspaceSearchController < ApplicationController
before_filter :require_full_search
def show
workspace = Workspace.find(params[:workspace_id])
authorize! :show, workspace
present WorkspaceSearch.new(current_user, params)
end
end
| nvoron23/chorus | app/controllers/workspace_search_controller.rb | Ruby | apache-2.0 | 255 |
/*
* 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... | mvp/presto | presto-iceberg/src/main/java/com/facebook/presto/iceberg/PartitionFields.java | Java | apache-2.0 | 4,926 |
/*
* 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... | gstevey/gradle | subprojects/platform-play/src/main/java/org/gradle/play/internal/run/PlayRunSpec.java | Java | apache-2.0 | 1,031 |
# coding: utf-8
from __future__ import print_function, unicode_literals
import os
from boxsdk import Client
from boxsdk.exception import BoxAPIException
from boxsdk.object.collaboration import CollaborationRole
from auth import authenticate
def run_user_example(client):
# 'me' is a handy value to get info on the... | lkabongoVC/box-python-sdk | demo/example.py | Python | apache-2.0 | 10,222 |
class Foo<R> {
public interface Factory<U> {
U make();
}
interface ASink<R, K extends ASink<R, K>> {
public void combine(K other);
}
static <R, S extends ASink<R, S>> R reduce(Factory<S> factory) {
return null;
}
public void foo() {
reduce(Moo::new);
... | android-ia/platform_tools_idea | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/ConstructorAssignability.java | Java | apache-2.0 | 978 |
/*
* 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 ... | jatin9896/incubator-carbondata | processing/src/main/java/org/apache/carbondata/processing/loading/converter/FieldConverter.java | Java | apache-2.0 | 1,743 |
/**
* Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved.
*
* 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... | EArdeleanu/gateway | transport/wsr/src/main/java/org/kaazing/gateway/transport/wsr/RtmpProtocolDispatcher.java | Java | apache-2.0 | 1,627 |
"""
GeoJSON example using addItem
Python 2/3
ArcREST version 3.5.0
"""
from __future__ import print_function
import arcrest
if __name__ == "__main__":
username = ""
password = ""
geojsonFile = r""
sh = arcrest.AGOLTokenSecurityHandler(username, password)
admin = arcrest.manageorg.Administ... | Esri/ArcREST | samples/publishingGeoJSON.py | Python | apache-2.0 | 864 |
//
// immer: immutable data structures for C++
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
//
// This software is distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//
#include <immer/set.hpp>
template <typename T,
... | wiltonlazary/arangodb | 3rdParty/immer/v0.7.0/test/set/B3.cpp | C++ | apache-2.0 | 529 |
/*
* Copyright (c) Facebook, Inc. and 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 applic... | facebook/buck | test/com/facebook/buck/rules/macros/StringWithMacrosConverterTest.java | Java | apache-2.0 | 5,254 |
/*
* Copyright (c) Facebook, Inc. and 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 applic... | facebook/buck | src/com/facebook/buck/cxx/CxxPreprocessorInput.java | Java | apache-2.0 | 3,593 |
/*
* Copyright 2000-2015 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... | akosyakov/intellij-community | xml/xml-psi-impl/src/com/intellij/embedding/MasqueradingPsiBuilderAdapter.java | Java | apache-2.0 | 11,304 |
package storage
import (
"fmt"
)
// ErrOldVersion is returned when a newer version of TUF metadata is already available
type ErrOldVersion struct{}
// ErrOldVersion is returned when a newer version of TUF metadata is already available
func (err ErrOldVersion) Error() string {
return fmt.Sprintf("Error updating met... | jfrazelle/notary | server/storage/errors.go | GO | apache-2.0 | 1,372 |
/*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/nio/serialization/TypedDataSerializable.java | Java | apache-2.0 | 1,000 |
/**
* View attribute injection library for Android which generates the obtainStyledAttributes() and
* TypedArray boilerplate code for you at compile time.
* <p>
* No more handing to deal with context.obtainStyledAttributes(...) or manually retrieving values
* from the resulting {@link android.content.res.TypedArra... | lord19871207/barber | api/src/main/java/io/sweers/barber/package-info.java | Java | apache-2.0 | 465 |
/*******************************************************************************
* Copyright 2015 Ivan Shubin http://galenframework.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
*
* ... | thhiep/galen | galen-core/src/test/java/com/galenframework/components/report/FakeException.java | Java | apache-2.0 | 2,298 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.slm;
import org.elasticsearch.action.support... | HonzaKral/elasticsearch | x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/slm/SLMInfoTransportAction.java | Java | apache-2.0 | 1,649 |
/*
* Copyright 2016 The Closure Compiler 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... | selkhateeb/closure-compiler | test/com/google/javascript/jscomp/PolymerBehaviorExtractorTest.java | Java | apache-2.0 | 5,025 |
// legal JS, if nonsensical, which also triggers the issue
const {
date,
} = (inspectedElement: any) => 0;
date.toISOString();
// Working flow code
const {
date2,
} = (inspectedElement: any).props;
date2.toISOString();
// It could also be an async function
const { constructor } = async () => {}... | Microsoft/TypeScript | tests/cases/compiler/destructuringControlFlowNoCrash.ts | TypeScript | apache-2.0 | 323 |
/*
* Copyright 2000-2014 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... | hurricup/intellij-community | python/src/com/jetbrains/python/psi/impl/blockEvaluator/PyEvaluationResult.java | Java | apache-2.0 | 1,369 |
// 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.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Formatting.Rules;
using Microsoft.CodeAn... | DavidKarlas/roslyn | src/Workspaces/Core/Portable/Formatting/Engine/NodeOperations.cs | C# | apache-2.0 | 2,013 |
// 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.
#nullable disable
namespace Microsoft.CodeAnalysis.Operations
{
/// <summary>
/// Represents a <see cref="... | brettfo/roslyn | src/Compilers/Core/Portable/Operations/OperationVisitor.cs | C# | apache-2.0 | 1,874 |
module Clever
module APIOperations
# Represents a list of results for a paged request.
class ResultsList
include Enumerable
# Create a results list from a PageList
# @api private
# @return [ResultsList]
def initialize(pagelist)
@pages = pagelist
end
# Iterat... | mchavarriagam/clever-ruby | lib/clever-ruby/api_operations/results_list.rb | Ruby | apache-2.0 | 699 |
({
L_MENU_GRID: "Valikkoruudukko",
L_MENU_ITEM_DISABLED: "%1 ei ole k\u00e4ytett\u00e4viss\u00e4",
L_MENU_ITEM_SUBMENU: "%1 (alivalikko)",
L_MENU_SUBMENU: "alivalikko",
L_MENU_CHECK: "valinta"
})
| iharkhukhrakou/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.domino/resources/web/dwa/common/nls/fi/menu.js | JavaScript | apache-2.0 | 196 |
package antlr;
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
* Software rights: http://www.antlr.org/RIGHTS.html
*
* $Id: CppCharFormatter.java,v 1.1 2003/06/04 20:54:22 greg Exp $
*/
// C++ code generator by Pete Wells: pete@yamuna.demon.co.uk
class CppCharForma... | HebaKhaled/bposs | src/pt_antlr/antlr/CppCharFormatter.java | Java | apache-2.0 | 2,509 |
/**
* @@@ START COPYRIGHT @@@
*
* 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 ... | apache/incubator-trafodion | wms/src/test/java/org/trafodion/wms/SmallTests.java | Java | apache-2.0 | 909 |
/*
* 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... | chandresh-pancholi/ignite | modules/hibernate-core/src/main/java/org/apache/ignite/cache/hibernate/HibernateCacheProxy.java | Java | apache-2.0 | 26,223 |
module td.output
{
/**
* List of states the parser of [[PrettyPrintPlugin]] can be in.
*/
enum PrettyPrintState {
/**
* Default state of the parser. Empty lines will be removed and indention will be adjusted.
*/
Default,
/**
* Comment state, the pars... | innerverse/typedoc | src/td/output/plugins/PrettyPrintPlugin.ts | TypeScript | apache-2.0 | 5,741 |
/**
* @@@ START COPYRIGHT @@@
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
"Licen... | apache/incubator-trafodion | dcs/src/main/java/org/trafodion/dcs/master/listener/ConnectionContext.java | Java | apache-2.0 | 3,102 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('event_mapper', '0005_user_is_confirmed'),
]
operations = [
migrations.AlterField(
model_name='event',
... | MariaSolovyeva/watchkeeper | django_project/event_mapper/migrations/0006_auto_20150505_0922.py | Python | bsd-2-clause | 789 |
package vektah.rust;
import com.intellij.openapi.fileTypes.LanguageFileType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import vektah.rust.i18n.RustBundle;
import javax.swing.*;
public class RustFileType extends LanguageFileType {
public static final RustFileType INSTANCE =... | tempbottle/idea-rust | src/java/main/vektah/rust/RustFileType.java | Java | bsd-2-clause | 790 |
cask 'picka' do
version '1.0.0'
sha256 '981209f1bd432d99ce082429cbb182b17194063b6b0eb8ae9fa22a0dbe37bca8'
url 'https://getpicka.com/downloads/Picka.zip'
appcast 'https://getpicka.com/appcast-trial.xml'
name 'Picka'
homepage 'https://getpicka.com/'
app 'Picka.app'
end
| jawshooah/homebrew-cask | Casks/picka.rb | Ruby | bsd-2-clause | 284 |
cask 'watchguard-mobile-vpn-with-ssl' do
version '12.5.3,615421'
sha256 'b8a4f9ce908f19df6122fdf24445fdb233d812f2f6b5f08261ca2e4cca0c3784'
url "http://cdn.watchguard.com/SoftwareCenter/Files/MUVPN_SSL/#{version.before_comma.dots_to_underscores}/WG-MVPN-SSL_#{version.before_comma.dots_to_underscores}.dmg"
name ... | sscotth/homebrew-cask | Casks/watchguard-mobile-vpn-with-ssl.rb | Ruby | bsd-2-clause | 518 |
// Copyright 2017 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.
import 'chrome://resources/cr_elements/cr_button/cr_button.m.js';
import './advanced_settings_dialog.js';
import './print_preview_shared_css.js';
import '... | chromium/chromium | chrome/browser/resources/print_preview/ui/advanced_options_settings.ts | TypeScript | bsd-3-clause | 1,620 |
<?php
/**
* PSR1_Sniffs_Methods_CamelCapsMethodNameSniff.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @author Greg Sherwood <gsherwood@squiz.net>
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.tx... | scaryml1000/ZendSkeleton | vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/Methods/CamelCapsMethodNameSniff.php | PHP | bsd-3-clause | 2,984 |
// Copyright 2010, Shuo Chen. All rights reserved.
// http://code.google.com/p/evproto/
//
// Use of this source code is governed by a BSD-style license
// that can be found in the License file.
// Author: Shuo Chen (chenshuo at chenshuo dot com)
//
#include "evproto/evproto.h"
#include <gflags/gflags.h>
#include <... | cetium/evproto | evproto/evproto.cc | C++ | bsd-3-clause | 2,066 |
// (C) Copyright Joel de Guzman 2003.
// 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)
// Modified by Troy D. Straszheim and Jakob van Santen, 2009-03-26
// Pulled in to ecto in 2010-11 by Troy D. Straszheim... | stonier/ecto | include/ecto/python/std_map_indexing_suite.hpp | C++ | bsd-3-clause | 17,030 |
// Copyright 2019 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.
package org.chromium.components.autofill_assistant.user_data;
import static org.chromium.components.autofill_assistant.AssistantAccessibilityUtils.setAcc... | chromium/chromium | components/autofill_assistant/android/java/src/org/chromium/components/autofill_assistant/user_data/AssistantLoginSection.java | Java | bsd-3-clause | 4,011 |
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Template support for writing HTML documents.
// Documents that include Template: true in their
// metadata are executed as input to text/template.
//
// Thi... | oopos/go | src/cmd/godoc/template.go | GO | bsd-3-clause | 5,495 |
// Copyright 2013 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.
package org.chromium.android_webview;
import android.annotation.SuppressLint;
import android.content.Context;
import android.media.AudioManager;
import a... | chromium/chromium | android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java | Java | bsd-3-clause | 14,739 |
require('should');
var option = require('..').sdk.option;
describe('option', function() {
it('can get default values', function() {
option.get('encoding').should.equal('utf8');
});
it('can set values', function() {
option.set('encoding', 'unicode');
option.get('encoding').should.equal('unicode');
... | thcode/nico | tests/sdk.option.test.js | JavaScript | bsd-3-clause | 1,096 |
import datetime
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.http import Http404
from django.utils import timezone
from django.utils.functional import cached_property
from django.utils.translation import gettext as _
from django.views... | shacker/django | django/views/generic/dates.py | Python | bsd-3-clause | 25,251 |
from __future__ import absolute_import, print_function
import inspect
import logging
import raven
import sentry
from django.conf import settings
from django.db.utils import DatabaseError
from raven.contrib.django.client import DjangoClient
from . import metrics
UNSAFE_FILES = (
'sentry/event_manager.py',
's... | hongliang5623/sentry | src/sentry/utils/raven.py | Python | bsd-3-clause | 3,051 |
function setSearchTextField(paramname, field) {
var passed = location.search.substring(1);
var query = getParm(passed,paramname);
var query = getParm(passed,paramname);
query = query.replace(/\+/g," ");
var loc = document.location;
if(/.*search.html/.test(loc)) {
document.title = decodeURIComponent(query) + ' ... | mfroeling/DTITools | docs/htmldoc/standard/javascript/search.js | JavaScript | bsd-3-clause | 723 |
# Copyright 2012, Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can
# be found in the LICENSE file.
import os
import shlex
from subprocess import Popen, PIPE
import time
import unittest
import utils
class TestCase(unittest.TestCase):
@classmethod
def setenv(cl... | anusornc/vitess | test/framework.py | Python | bsd-3-clause | 2,552 |