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) 2010-present Abixen Systems. All rights reserved.
*
* 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 option)
* any ... | cloudowski/abixen-platform | abixen-platform-business-intelligence-service/src/main/java/com/abixen/platform/service/businessintelligence/multivisualisation/service/DomainBuilderService.java | Java | lgpl-2.1 | 1,441 |
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CO... | ascorbic/doctrine-tracker | tests/Ticket/DC187TestCase.php | PHP | lgpl-2.1 | 3,118 |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import spack.util.url
import spack.package
class XorgPackage(spack.package.PackageBase):
"""Mixin that takes care of... | iulian787/spack | lib/spack/spack/build_systems/xorg.py | Python | lgpl-2.1 | 1,541 |
/*
* Binomial.java
*
* Copyright (C) 2002-2006 Alexei Drummond and Andrew Rambaut
*
* This file is part of BEAST.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership and licensing.
*
* BEAST is free software; you can redistribute it and/or modify
* it un... | CompEvol/beast2 | src/beast/math/Binomial.java | Java | lgpl-2.1 | 2,920 |
<?php
namespace wcf\data\devtools\missing\language\item;
use wcf\data\DatabaseObject;
use wcf\data\language\Language;
use wcf\system\language\LanguageFactory;
use wcf\system\WCF;
use wcf\util\JSON;
/**
* Represents a missing language item log entry.
*
* @author Matthias Schmidt
* @copyright 2001-2020 WoltLab ... | SoftCreatR/WCF | wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItem.class.php | PHP | lgpl-2.1 | 2,209 |
package ch.unibas.cs.hpwc.patus.grammar.stencil2;
import cetus.hir.BinaryExpression;
import cetus.hir.BinaryOperator;
import cetus.hir.DepthFirstIterator;
import cetus.hir.Expression;
import cetus.hir.IDExpression;
import cetus.hir.IntegerLiteral;
import cetus.hir.NameID;
import ch.unibas.cs.hpwc.patus.representation.... | matthias-christen/patus | src/ch/unibas/cs/hpwc/patus/grammar/stencil2/StencilSpecificationAnalyzer.java | Java | lgpl-2.1 | 4,059 |
/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | FabienPean/sofa | modules/SofaBoundaryCondition/SurfacePressureForceField.cpp | C++ | lgpl-2.1 | 2,847 |
/*
* ALMA - Atacama Large Millimiter Array (c) European Southern Observatory, 2010
*
* 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 o... | ACS-Community/ACS | LGPL/CommonSoftware/acsGUIs/AlarmSystemProfiler/src/alma/acs/alarmsystemprofiler/document/flood/FloodContainer.java | Java | lgpl-2.1 | 7,180 |
/*
* Copyright 2011 Stephen Liu
* For license terms, see the file COPYING along with this library.
*/
#include <vector>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include "spnkprefork.hpp"
#include "spnklog.hpp"
#include "spnkstr.hpp"
#in... | spsoft/spnetkit | spnetkit/spnkprefork.cpp | C++ | lgpl-2.1 | 6,852 |
package org.exist.source;
import java.io.*;
import java.util.Map;
import org.exist.security.PermissionDeniedException;
import org.exist.security.Subject;
import org.exist.storage.DBBroker;
/**
* A simple source object wrapping a single query string, but associating it with a specific
* map (e.g., of namespace bind... | jensopetersen/exist | src/org/exist/source/StringSourceWithMapKey.java | Java | lgpl-2.1 | 1,741 |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance wit... | danimo/qt-creator | src/plugins/cpptools/modelmanagertesthelper.cpp | C++ | lgpl-2.1 | 3,946 |
/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | stefanklug/mapnik | include/mapnik/json/topojson_utils.hpp | C++ | lgpl-2.1 | 8,585 |
package railo.runtime.listener;
import railo.commons.lang.types.RefBoolean;
import railo.commons.lang.types.RefBooleanImpl;
import railo.runtime.PageContext;
import railo.runtime.PageSource;
import railo.runtime.exp.PageException;
public final class MixedAppListener extends ModernAppListener {
@Override
public voi... | JordanReiter/railo | railo-java/railo-core/src/railo/runtime/listener/MixedAppListener.java | Java | lgpl-2.1 | 797 |
v.setCursorPosition(0,19);
v.type('/');
v.type('/');
v.type('/');
v.type('/');
v.type("ok");
| hlamer/kate | tests/data/indent/cppstyle/comment11/input.js | JavaScript | lgpl-2.1 | 93 |
/*
This file is part of KAddressBook.
Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
This program 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... | lefou/kdepim-noakonadi | kaddressbook/viewconfigurefilterpage.cpp | C++ | lgpl-2.1 | 4,025 |
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the... | RLovelett/qt | src/3rdparty/webkit/WebCore/generated/Grammar.cpp | C++ | lgpl-2.1 | 296,109 |
object = {__bases__: [], __name__: 'object'}
object.__mro__ = [object]
type = {__bases__: [object], __mro__: [object], __name__: 'type'}
object.__metaclass__ = type
__ARGUMENTS_PADDING__ = {ARGUMENTS_PADDING: "YES IT IS!"}
def __is__(me, other):
return (me is other)
__is__.is_method = True
object.__is__ = __i... | skariel/pythonium | pythonium/compliant/runtime.py | Python | lgpl-2.1 | 7,045 |
// 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, merge, publish,
// distribute, sublicense, and/or sell... | edwinspire/VSharp | class/Mono.WebBrowser/Mono.WebBrowser/IWebBrowser.cs | C# | lgpl-3.0 | 10,333 |
/*
* @BEGIN LICENSE
*
* Psi4: an open-source quantum chemistry software package
*
* Copyright (c) 2007-2019 The Psi4 Developers.
*
* The copyrights for code used from other parties are included in
* the corresponding files.
*
* This file is part of Psi4.
*
* Psi4 is free software; you can redistribute it an... | CDSherrill/psi4 | psi4/src/psi4/libmoinfo/slater_determinant.cc | C++ | lgpl-3.0 | 2,456 |
<?php
class Engines_YandexTranslate extends Engines_AbstractEngine {
protected $_config = array(
'segment' => null,
'source' => null,
'target' => null,
);
public function __construct($engineRecord) {
parent::__construct($engineRecord);
if ... | riccio82/MateCat | lib/Utils/Engines/YandexTranslate.php | PHP | lgpl-3.0 | 4,027 |
<?php
$lang['install']['flag'] = 'en'; //en
$lang['install']['i001'] = 'KimsQ Rb Installation'; //KimsQ Rb 설치
$lang['install']['i002'] = 'Select the version'; //설치할 패키지를 선택해주세요. *** 사이트 패키지와 용어 혼동
$lang['install']['i003'] = 'Do not refresh this page. It will automatically move on to the next step after the downloading.... | kieregh/rb | _install/language/english/lang.install.php | PHP | lgpl-3.0 | 9,586 |
/*
* Copyright (C) 2014-2015 Vote Rewarding System
*
* This file is part of Vote Rewarding System.
*
* Vote Rewarding System 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 3 of the Lic... | UnAfraid/topzone | VotingRewardInterfaceProvider/src/main/java/com/github/unafraid/votingreward/interfaceprovider/model/RewardItemHolder.java | Java | lgpl-3.0 | 1,261 |
{
'name': 'Control access to Apps',
'version': '1.0.0',
'author': 'IT-Projects LLC, Ivan Yelizariev',
'category': 'Tools',
'website': 'https://twitter.com/yelizariev',
'price': 10.00,
'currency': 'EUR',
'depends': [
'access_restricted'
],
'data': [
'security/acces... | ufaks/addons-yelizariev | access_apps/__openerp__.py | Python | lgpl-3.0 | 415 |
<?php
/**
* Class shopMigrateStorelandruTransport
* @title StoreLand ru
* @description Перенос данных из магазинов на платформе StoreLand.ru посредством YML файла
* @group YML
*/
class shopMigrateStorelandruTransport extends shopMigrateYmlTransport
{
}
| Amethyst-web/vinst | wa-apps/shop/plugins/migrate/lib/transport/shopMigrateStorelandruTransport.class.php | PHP | lgpl-3.0 | 311 |
"""
Classes for interacting with the tor control socket.
Controllers are a wrapper around a ControlSocket, retaining many of its methods
(connect, close, is_alive, etc) in addition to providing its own for
interacting at a higher level.
**Module Overview:**
::
from_port - Provides a Controller based on a port con... | meganchang/Stem | stem/control.py | Python | lgpl-3.0 | 17,273 |
//***************************************************
//* This file was generated by tool
//* SharpKit
//* At: 29/08/2012 03:59:41 p.m.
//***************************************************
using SharpKit.JavaScript;
namespace Ext.grid.property
{
#region Store
/// <inheritdocs />
/// <summary>
/// <p>A ... | hultqvist/SharpKit-SDK | Defs/ExtJs/Ext.grid.property.Store.cs | C# | lgpl-3.0 | 1,987 |
//
// System.Net.Configuration.HttpCachePolicyElement.cs
//
// Authors:
// Tim Coleman (tim@timcoleman.com)
// Chris Toshok (toshok@ximian.com)
//
// Copyright (C) Tim Coleman, 2004
// (C) 2004,2005 Novell, Inc. (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a... | edwinspire/VSharp | class/System/System.Net.Configuration/HttpCachePolicyElement.cs | C# | lgpl-3.0 | 4,102 |
/* =========================================================================
* This file is part of xml.lite-c++
* =========================================================================
*
* (C) Copyright 2004 - 2014, MDA Information Systems LLC
* (C) Copyright 2022, Maxar Technologies, Inc.
*
* xml.lite-c++... | mdaus/coda-oss | modules/c++/xml.lite/source/ValidatorInterface.cpp | C++ | lgpl-3.0 | 2,255 |
// System.Net.Sockets.SocketAsyncEventArgs.cs
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// Copyright (c) 2008 Novell, Inc. (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Sof... | edwinspire/VSharp | class/System/System.Net.Sockets/SendPacketsElement.cs | C# | lgpl-3.0 | 2,838 |
// Authors:
// Francis Fisher (frankie@terrorise.me.uk)
//
// (C) Francis Fisher 2013
//
// 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 limitatio... | edwinspire/VSharp | class/System.Windows.Forms.DataVisualization/System.Windows.Forms.DataVisualization.Charting/CustomizeLegendEventArgs.cs | C# | lgpl-3.0 | 1,400 |
function main() {
// Widget instantiation metadata...
var widget = {
id: "UploaderPlusAdmin",
name: "SoftwareLoop.UploaderPlusAdmin",
};
model.widgets = [widget];
}
main(); | sprouvez/uploader-plus | surf/src/main/amp/config/alfresco/web-extension/site-webscripts/uploader-plus/uploader-plus-admin.get.js | JavaScript | lgpl-3.0 | 204 |
# encoding: utf-8
"""
Utilities for working with strings and text.
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as... | cloud9ers/gurumate | environment/lib/python2.7/site-packages/IPython/utils/text.py | Python | lgpl-3.0 | 25,044 |
using UnityEngine;
using System.Collections;
public class InputBehaviour : MonoBehaviour {
// Cuando se llama, notifica a todos los métodos que hacen referencia al delegate (DownHandler).
public delegate void DownHandler( int button );
// evento que se activa cuando aparece el DownHandler
public event DownHandle... | ddacoak/Fallen-Instinct | Assets/Scripts/OtrosScripts/Input/InputBehaviour.cs | C# | unlicense | 514 |
package org.myrobotlab.logging;
import org.myrobotlab.framework.Platform;
import org.slf4j.Logger;
public class LoggerFactory {
public static Logger getLogger(Class<?> clazz) {
return getLogger(clazz.toString());
}
public static Logger getLogger(String name) {
Platform platform = Platform.getLocalInstance();... | lanchun/myrobotlab | src/org/myrobotlab/logging/LoggerFactory.java | Java | apache-2.0 | 771 |
from __future__ import division, absolute_import
from __future__ import print_function, unicode_literals
import numpy as np
import theano
import theano.tensor as T
import treeano
import treeano.nodes as tn
fX = theano.config.floatX
# ################################## config ##################################
N_TRA... | diogo149/treeano | examples/simple_rnn_comparison/with_treeano.py | Python | apache-2.0 | 2,330 |
/**
* Copyright 2016 LinkedIn Corp. 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... | nsivabalan/ambry | ambry-api/src/main/java/com.github.ambry/store/StoreKeyFactory.java | Java | apache-2.0 | 929 |
/*
* Copyright 2010-2017 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 "license" fil... | JoyIfBam5/aws-sdk-cpp | aws-cpp-sdk-route53/source/model/ListTrafficPoliciesRequest.cpp | C++ | apache-2.0 | 1,614 |
/*
Copyright 2015 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, ... | gluke77/kubernetes | pkg/kubectl/cmd/autoscale.go | GO | apache-2.0 | 6,991 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.md', which is part of this source code package.
#
from kubernetes_py.K8sExceptions import NotFoundException
from kubernetes_py.K8sObject import K8sObject
from kubernetes_py.K8sPod import K8sPo... | mnubo/kubernetes-py | kubernetes_py/K8sReplicaSet.py | Python | apache-2.0 | 2,940 |
/*
* 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... | kjniemi/activemq-artemis | artemis-commons/src/test/java/org/apache/activemq/artemis/utils/network/NetUtil.java | Java | apache-2.0 | 6,434 |
/* Copyright 2017 IBM 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/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | denilsonm/advance-toolchain | fvtr/gccgo/test.go | GO | apache-2.0 | 669 |
<?php
/**
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | googleapis/google-cloud-php-pubsub | tests/Snippet/BatchPublisherTest.php | PHP | apache-2.0 | 1,948 |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution;
public class IllegalEnvVarException extends ExecutionException {
public IllegalEnvVarException(String message) {
super(message);
}
} | mdanielwork/intellij-community | platform/platform-api/src/com/intellij/execution/IllegalEnvVarException.java | Java | apache-2.0 | 314 |
<?php
// Start of AMQPExchangeException from php-amqp v.1.4.0beta2
/**
* stub class representing AMQPExchangeException from pecl-amqp
* @jms-builtin
*/
class AMQPExchangeException extends AMQPException
{
}
// End of AMQPExchangeException from php-amqp v.1.4.0beta2
?> | walkeralencar/ci-php-analyzer | res/php-5.4-core-api/AMQPExchangeException.php | PHP | apache-2.0 | 273 |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/gaming/v1/game_server_deployments.proto
namespace Google\Cloud\Gaming\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request message for GameServ... | googleapis/google-cloud-php-game-servers | src/V1/GetGameServerDeploymentRequest.php | PHP | apache-2.0 | 2,444 |
// Copyright 2020 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 appl... | adjackura/compute-image-tools | proto/go/pbtesting/gomock_matcher.go | GO | apache-2.0 | 1,340 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The initial value of Boolean.prototype is the Boolean
prototype object
es5id: 15.6.3.1_A1
description: Checking Boolean.prototype property
---*/
//CHECK#1
if (typeo... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Boolean/prototype/S15.6.3.1_A1.js | JavaScript | apache-2.0 | 694 |
/*
* Copyright (C) 2007 Júlio Vilmar Gesser.
*
* This file is part of Java 1.5 parser and Abstract Syntax Tree.
*
* Java 1.5 parser and Abstract Syntax Tree 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 Sof... | irblsensitivity/irblsensitivity | techniques/BRTracer/src/japa/parser/ast/expr/ArrayInitializerExpr.java | Java | apache-2.0 | 1,995 |
package fr.free.nrw.commons.explore;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import androidx.viewpager.widget.ViewPager;
/**
* ParentViewPager A custom viewPager whose scrolling can be enabled and disabled.
*/
public class ParentViewPager extends ViewPager ... | commons-app/apps-android-commons | app/src/main/java/fr/free/nrw/commons/explore/ParentViewPager.java | Java | apache-2.0 | 1,500 |
package liquibase.diff.compare.core;
import liquibase.CatalogAndSchema;
import liquibase.database.Database;
import liquibase.diff.compare.CompareControl;
import liquibase.diff.compare.DatabaseObjectComparator;
import liquibase.util.StringUtil;
/**
* DatabaseObjectComparator for Catalog and Schema comparators with co... | liquibase/liquibase | liquibase-core/src/main/java/liquibase/diff/compare/core/CommonCatalogSchemaComparator.java | Java | apache-2.0 | 1,666 |
/*
Copyright 2016 VMware, 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
di... | hanw/p4c | midend/noMatch.cpp | C++ | apache-2.0 | 1,905 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual 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 Licen... | emmettu/pnc | ui/app/common/restclient/services/Build.js | JavaScript | apache-2.0 | 2,590 |
'''
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 use this ... | arenadata/ambari | ambari-agent/src/test/python/resource_management/TestLibraryFunctions.py | Python | apache-2.0 | 1,624 |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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... | huang-qiao/ApiDemos-ASProject | app/src/main/java/com/example/android/apis/graphics/TriangleActivity.java | Java | apache-2.0 | 1,361 |
/*
* Copyright (c) 1994, 2019, 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.base/src/main/resources/META-INF/modules/java.base/classes/java/util/Vector.java | Java | apache-2.0 | 56,351 |
'''
This module sets up a scheme for validating that arbitrary Python
objects are correctly typed. It is totally decoupled from Django,
composable, easily wrapped, and easily extended.
A validator takes two parameters--var_name and val--and returns an
error if val is not the correct type. The var_name parameter is u... | dwrpayne/zulip | zerver/lib/validator.py | Python | apache-2.0 | 3,704 |
/*
Copyright 2011-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 applicable law or agreed t... | ispras/binnavi | src/main/java/com/google/security/zynamics/binnavi/debug/connection/packets/replies/BreakpointHitReply.java | Java | apache-2.0 | 1,580 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core;
using Azure.Core.Pipeline;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Azure.Security.KeyVault.Keys.Cryptography
{
internal class RemoteCryptographyClient : ICryptog... | stankovski/azure-sdk-for-net | sdk/keyvault/Azure.Security.KeyVault.Keys/src/Cryptography/RemoteCryptographyClient.cs | C# | apache-2.0 | 16,295 |
##########################################################################
# Copyright 2016 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/li... | ollie314/gocd | server/webapp/WEB-INF/rails.new/app/presenters/api_v3/config/timer_representer.rb | Ruby | apache-2.0 | 1,014 |
/*
* 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 ... | tequalsme/nifi | nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js | JavaScript | apache-2.0 | 55,421 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/connect/model/ListInstanceStorageConfigsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
... | aws/aws-sdk-cpp | aws-cpp-sdk-connect/source/model/ListInstanceStorageConfigsRequest.cpp | C++ | apache-2.0 | 1,489 |
/*
* 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 ... | ggeorg/chillverse | src/org/apache/pivot/beans/BindException.java | Java | apache-2.0 | 1,323 |
/*
* 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-lambda/src/main/java/com/amazonaws/services/lambda/model/transform/CreateEventSourceMappingRequestMarshaller.java | Java | apache-2.0 | 5,568 |
/*
* 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 ... | foryou2030/incubator-carbondata | core/src/main/java/org/apache/carbondata/scan/model/QueryDimension.java | Java | apache-2.0 | 1,715 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ce/model/GetReservationCoverageResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aw... | jt70471/aws-sdk-cpp | aws-cpp-sdk-ce/source/model/GetReservationCoverageResult.cpp | C++ | apache-2.0 | 1,482 |
package com.github.toastshaman.dropwizard.auth.jwt.example;
import com.github.toastshaman.dropwizard.auth.jwt.JWTAuthFilter;
import com.github.toastshaman.dropwizard.auth.jwt.JsonWebTokenParser;
import com.github.toastshaman.dropwizard.auth.jwt.JsonWebTokenValidator;
import com.github.toastshaman.dropwizard.auth.jwt.h... | windbender/dropwizard-auth-jwt | src/test/java/com/github/toastshaman/dropwizard/auth/jwt/example/JwtAuthApplication.java | Java | apache-2.0 | 3,798 |
package mina;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class MyLog {
private static final Logger log = LoggerFactory.getLogger(MyLog.class);
public static void log_cmd(byte[] data){
//int cmd_type = CommandParser.getCommandType(data);
//System.out.println("cmd_type:" + cmd_type);
}
... | sunjob/sensor | src/mina/MyLog.java | Java | apache-2.0 | 948 |
/******************************************************************************
* $Id: ogrpgeogeometry.cpp 33631 2016-03-04 06:28:09Z goatbar $
*
* Project: OpenGIS Simple Features Reference Implementation
* Purpose: Implements decoder of shapebin geometry for PGeo
* Author: Frank Warmerdam, warmerdam@pobox.co... | jwoyame/node-gdal | deps/libgdal/gdal/ogr/ogrpgeogeometry.cpp | C++ | apache-2.0 | 64,965 |
var estabelecimentoViewCtrl = angular.module('estabelecimentoViewCtrl', ['ngResource']);
estabelecimentoViewCtrl.controller('estabelecimentoViewCtrl', ['$scope', '$http', function ($scope, $http) {
$scope.estabelecimentos = [];
$scope.carregarPontosCriticos = function(){
$http.get(... | ScHaFeR/AndePUCRS-WebService | andePuc/target/andePuc-1.0/js/controllers/estabelecimentoViewController.js | JavaScript | apache-2.0 | 497 |
/*
* 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... | goodwinnk/intellij-community | platform/lang-impl/src/com/intellij/psi/impl/source/tree/injected/InjectedPsiCachedValueProvider.java | Java | apache-2.0 | 3,537 |
/*
Copyright 2011-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 applicable law or agreed t... | chubbymaggie/binnavi | src/main/java/com/google/security/zynamics/reil/algorithms/mono/valuetracking/elements/Symbol.java | Java | apache-2.0 | 1,988 |
#!/usr/bin/python
"""
Program for creating HTML plots
"""
import os
import sys
import json
import time
from readevtlog import *
def imaging_iters(logs):
start_time = 40.0
start_msg = "kernel init"
end_msg = "imaging cleanup"
got_start = False
for k in sorted(logs):
tt = logs[k].time
... | SKA-ScienceDataProcessor/RC | MS6/visualize/csv_generator.py | Python | apache-2.0 | 744 |
/*
* 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... | yrcourage/netty | codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameListener.java | Java | apache-2.0 | 11,025 |
/*
* 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... | apixandru/intellij-community | python/src/com/jetbrains/python/psi/impl/PyPrefixExpressionImpl.java | Java | apache-2.0 | 5,338 |
//// [typeOfThisInStaticMembers13.ts]
class C {
static readonly c: "foo" = "foo"
static bar = class Inner {
static [this.c] = 123;
[this.c] = 123;
}
}
//// [typeOfThisInStaticMembers13.js]
var C = /** @class */ (function () {
function C() {
}
var _a, _b, _c, _d;
_a... | Microsoft/TypeScript | tests/baselines/reference/typeOfThisInStaticMembers13(target=es5).js | JavaScript | apache-2.0 | 1,288 |
package com.mapswithme.maps.widget;
import android.app.Activity;
import android.support.annotation.StringRes;
import android.support.v7.widget.Toolbar;
import android.view.View;
import com.mapswithme.maps.R;
import com.mapswithme.util.UiUtils;
import com.mapswithme.util.Utils;
public class ToolbarController
{
prote... | programming086/omim | android/src/com/mapswithme/maps/widget/ToolbarController.java | Java | apache-2.0 | 1,109 |
/**
* Copyright 2005-2015 Red Hat, Inc.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | chirino/fabric8 | insight/insight-elasticsearch-discovery/src/main/java/io/fabric8/insight/elasticsearch/discovery/FabricDiscoveryPlugin.java | Java | apache-2.0 | 1,300 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/InstanceHealthStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Util... | awslabs/aws-sdk-cpp | aws-cpp-sdk-ec2/source/model/InstanceHealthStatus.cpp | C++ | apache-2.0 | 2,041 |
/*
* 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/cachestore/cassandra/src/main/java/org/infinispan/loaders/cassandra/CassandraCacheStoreConfig.java | Java | apache-2.0 | 7,387 |
// Copyright 2018 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.
package lsp
import (
"context"
"strings"
"golang.org/x/tools/internal/lsp/protocol"
"golang.org/x/tools/internal/lsp/source"
"golang.org/x/tools/internal... | Miciah/origin | vendor/golang.org/x/tools/internal/lsp/diagnostics.go | GO | apache-2.0 | 3,070 |
// create table view
var tableview = Titanium.UI.createTableView();
Ti.App.fireEvent("show_indicator");
// create table view event listener
tableview.addEventListener('click', function(e)
{
// event data
var index = e.index;
var section = e.section;
var row = e.row;
var rowdata = e.rowData;
Titanium.UI.createAl... | arnaudsj/titanium_mobile | demos/SmokeTest/Resources/examples/yql_flickr.js | JavaScript | apache-2.0 | 1,970 |
package gwt.material.design.client.ui;
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 GwtMaterialDesign
* %%
* 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.ap... | gilberto-torrezan/gwt-material | gwt-material/src/main/java/gwt/material/design/client/ui/MaterialIcon.java | Java | apache-2.0 | 4,174 |
# 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 the... | stackforge/blazar | blazar/monitor/base.py | Python | apache-2.0 | 3,283 |
/**
* Copyright 2014
* SMEdit https://github.com/StarMade/SMEdit
* SMTools https://github.com/StarMade/SMTools
*
* 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.... | skunkiferous/SMEdit | jo_plugin/src/main/java/jo/sm/plugins/all/props/PropsParameters.java | Java | apache-2.0 | 1,578 |
//
// AuthenticationMethods.cs
//
// Author:
// Jim Borden <jim.borden@couchbase.com>
//
// Copyright (c) 2015 Couchbase, 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 ... | brettharrisonzya/couchbase-lite-net | src/ListenerComponent/Couchbase.Lite.Listener.Shared/PeerToPeer/AuthenticationMethods.cs | C# | apache-2.0 | 4,263 |
/*
* Copyright 2021 Apollo 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 i... | lepdou/apollo | apollo-client/src/main/java/com/ctrip/framework/apollo/spring/config/ConfigPropertySourceFactory.java | Java | apache-2.0 | 1,284 |
/**
* 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... | adeelmahmood/lens | lens-cube/src/main/java/org/apache/lens/cube/parse/AggregateResolver.java | Java | apache-2.0 | 12,371 |
# ----------------------------------------------------------------------------
# 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... | coufon/neon-distributed | neon/data/ticker.py | Python | apache-2.0 | 13,214 |
/*
* 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/incubator-datafu | datafu-pig/src/main/java/datafu/pig/random/RandomUUID.java | Java | apache-2.0 | 1,445 |
package mem
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/portworx/kvdb"
"github.com/portworx/kvdb/common"
"github.com/sirupsen/logrus"
)
const (
// Name is the name of this kvdb implementation.
Name = "kv-mem"
// KvSnap is an option passed to designa... | libopenstorage/stork | vendor/github.com/portworx/kvdb/mem/kv_mem.go | GO | apache-2.0 | 20,068 |
require 'spec_helper'
require 'rack/test'
include Rack::Test::Methods
describe Crono::Web do
let(:app) { Crono::Web }
before do
Crono::CronoJob.destroy_all
@test_job_id = 'Perform TestJob every 5 seconds'
@test_job_log = 'All runs ok'
@test_job = Crono::CronoJob.create!(
job_id: @test_job_id... | plashchynski/crono | spec/web_spec.rb | Ruby | apache-2.0 | 1,684 |
/*
* 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 | platform/util/src/com/intellij/util/ref/GCUtil.java | Java | apache-2.0 | 3,604 |
/**
*
* Copyright 2003-2007 Jive Software.
*
* 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... | igniterealtime/Smack | smack-extensions/src/main/java/org/jivesoftware/smackx/bookmarks/Bookmarks.java | Java | apache-2.0 | 10,216 |
/*
* Copyright (C) FuseSource, Inc.
* http://fusesource.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 ... | janstey/fuse | bai/bai-core/src/main/java/org/fusesource/bai/config/package-info.java | Java | apache-2.0 | 1,208 |
/**
* 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/error/future/ShouldHaveCompletedExceptionally_create_Test.java | Java | apache-2.0 | 1,500 |
//
// This file was pubmed.openAccess.jaxb.generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// 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.
... | alexgarciac/biotea | src/elsevier/jaxb/math/mathml/Mglyph.java | Java | apache-2.0 | 2,890 |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing;
import com.intellij.openapi.application.ReadAction;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.fileTypes.FileT... | ingokegel/intellij-community | platform/lang-impl/src/com/intellij/util/indexing/UnindexedFilesFinder.java | Java | apache-2.0 | 10,024 |
'use strict';
let angular = require('angular');
module.exports = angular.module('spinnaker.serverGroup.configure.gce.instanceArchetypeCtrl', [])
.controller('gceInstanceArchetypeCtrl', function($scope, instanceTypeService, modalWizardService) {
var wizard = modalWizardService.getWizard();
$scope.$watch('c... | zanthrash/deck-1 | app/scripts/modules/google/serverGroup/configure/wizard/ServerGroupInstanceArchetype.controller.js | JavaScript | apache-2.0 | 911 |
<?php
/**
* Utility functions for the DrEdit PHP application.
*
* @author Burcu Dogan <jbd@google.com>
*
* 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
... | murat8505/dredit_text_editor_Google-Drive | php/utils.php | PHP | apache-2.0 | 2,194 |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... | hnafar/IronJS | Src/Tests/ietestcenter/chapter15/15.4/15.4.4/15.4.4.14/15.4.4.14-9-b-i-6.js | JavaScript | apache-2.0 | 2,446 |