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 |
|---|---|---|---|---|---|
"use strict";
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };
var Test = function Test() {
_classCallCheck(this, Test);
arr.map(x => x * x);
}; | lydell/babel | test/fixtures/transformation/api/blacklist/expected.js | JavaScript | mit | 264 |
CKEDITOR.plugins.setLang("imagebase","en-au",{captionPlaceholder:"Enter image caption"}); | cdnjs/cdnjs | ajax/libs/ckeditor/4.17.2/plugins/imagebase/lang/en-au.min.js | JavaScript | mit | 89 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DataSource = (function () {
function DataSource() {
}
return DataSource;
}());
exports.DataSource = DataSource;
| cdnjs/cdnjs | ajax/libs/deeplearn/0.6.0-alpha6/contrib/data/datasource.js | JavaScript | mit | 205 |
package multilanguage;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
import or... | NounVannakGitHub/Java-Tutorial-Vollegen | MultiLanguage/src/multilanguage/ApplicationActionBarAdvisor.java | Java | epl-1.0 | 1,642 |
<?php
namespace Drupal\Tests\language\Kernel;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests \Drupal\language\Config\LanguageConfigFactoryOverride.
*
* @group language
*/
class LanguageConfigFactoryOverrideTest extends KernelTestBase {
/**
* Modules to e... | tobiasbuhrer/tobiasb | web/core/modules/language/tests/src/Kernel/LanguageConfigFactoryOverrideTest.php | PHP | gpl-2.0 | 1,290 |
#!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.agent import agent
from lib.core.common import arrayizeValue
from lib.core.common import Backend
from lib.core.common import filterPairValues
from lib.core.commo... | golismero/golismero | tools/sqlmap/plugins/generic/search.py | Python | gpl-2.0 | 26,113 |
/*
* Copyright (c) 1999
* Silicon Graphics Computer Systems, Inc.
*
* Copyright (c) 1999
* Boris Fomitchev
*
* This material is provided "as is", with absolutely no warranty expressed
* or implied. Any use is at your own risk.
*
* Permission to use or copy this software for any purpose is hereby gra... | yeKcim/warmux | trunk/build/symbian/lib/stlport/src/num_put_float.cpp | C++ | gpl-2.0 | 34,762 |
// { dg-do compile }
// 2007-09-20 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2007-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as publish... | mickael-guene/gcc | libstdc++-v3/testsuite/25_algorithms/for_each/requirements/explicit_instantiation/2.cc | C++ | gpl-2.0 | 1,221 |
// g2o - General Graph Optimization
// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must r... | CreativeCimmons/ORB-SLAM-Android-app | slam_ext/Thirdparty/g2o/g2o/types/slam3d/vertex_pointxyz.cpp | C++ | gpl-2.0 | 3,993 |
<?php
/**
* Floating Social Bar is the best social media plugin for WordPress
* that adds a floating bar with share buttons to your content
* without slowing down your site.
*
* @package Floating Social Bar
* @author Syed Balkhi
* @author Thomas Griffin
* @license GPL-2.0+
* @link http://wpbegin... | AhmedSayedAhmed/MM_Portal | wp-content/plugins/floating-social-bar/floating-social-bar.php | PHP | gpl-2.0 | 2,794 |
//=set test "Test" | AlexanderDolgan/juliawp | wp-content/themes/node_modules/gulp-rigger/node_modules/rigger/test/input-settings/stringval.js | JavaScript | gpl-2.0 | 18 |
// license:BSD-3-Clause
// copyright-holders:Vas Crabb
#include "emu.h"
#include "ti8x.h"
#define LOG_GENERAL (1U << 0)
#define LOG_BITPROTO (1U << 1)
#define LOG_BYTEPROTO (1U << 2)
//#define VERBOSE (LOG_GENERAL | LOG_BITPROTO | LOG_BYTEPROTO)
#define LOG_OUTPUT_FUNC device().logerror
#include "logmacr... | johnparker007/mame | src/devices/bus/ti8x/ti8x.cpp | C++ | gpl-2.0 | 14,113 |
#!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOWEST
def dependencies():
pass
def tamper(payload, **kwargs):
"""
Replaces apostrophe character wit... | golismero/golismero | tools/sqlmap/tamper/apostrophenullencode.py | Python | gpl-2.0 | 503 |
<?php
//============================================================+
// File name : example_2d_png.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org... | siteslab/profile | sites/all/libraries/tcpdf/examples/barcodes/example_2d_pdf417_png.php | PHP | gpl-2.0 | 1,979 |
/***************************************************************************
tag: The SourceWorks Tue Sep 7 00:55:18 CEST 2010 ServiceRequester.hpp
ServiceRequester.hpp - description
-------------------
begin : Tue September 07 2010
copyrig... | shyamalschandra/rtt | rtt/ServiceRequester.hpp | C++ | gpl-2.0 | 7,747 |
<?php
/**
* @package Joomla.Site
* @subpackage com_users
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JLoader::register('UsersController', JPATH_COMPONENT ... | tkaniowski/bj25 | components/com_users/controllers/registration.php | PHP | gpl-2.0 | 6,815 |
# -*- coding: utf-8 -*-
"""
This script initializes the plugin, making it known to QGIS.
"""
def classFactory(iface):
from HelloWorld import HelloWorld
return HelloWorld(iface)
| qgis/QGIS-Django | qgis-app/plugins/tests/HelloWorld/2.3-full-changed-repository/HelloWorld/__init__.py | Python | gpl-2.0 | 183 |
<?php
/**
* @author JoomlaShine.com http://www.joomlashine.com
* @copyright Copyright (C) 2008 - 2011 JoomlaShine.com. All rights reserved.
* @license GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
*/
// No direct access
defined('_JEXEC') or die('Restricted index access');
// Load template framework
if ... | Galene/svitanok.ck.ua | templates/jsn_yoyo_pro/error.php | PHP | gpl-2.0 | 4,569 |
/*
* Copyright (C) 2012-2013 Team XBMC
* http://kodi.tv
*
* 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, or (at your option)
* any later version.
*
* T... | ironman771/xbmc | xbmc/platform/android/activity/EventLoop.cpp | C++ | gpl-2.0 | 4,826 |
<?php
/**
* The template for displaying posts in the Audio post format
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php twentyfourteen_post_thumbnail(); ?>
<header class="entry-header">
<?php if ( in_a... | di0fref/wordpress_fahlslstad | wp-content/themes/twentyfourteen/content-audio.php | PHP | gpl-2.0 | 2,316 |
<?php
namespace Drupal\Tests\node\Kernel\Migrate\d6;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Test D6NodeDeriver.
*
* @group migrate_drupal_6
*/
class MigrateNodeDeriverTest extends MigrateDrupal6TestBase {
/**
* The migration plugin manager.
*
* @var \Drupal\migrate\Plu... | tobiasbuhrer/tobiasb | web/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php | PHP | gpl-2.0 | 1,430 |
@extends('layouts.loggedout')
@section('content')
@if(Session::has('error'))
<div class="clearfix">
<div class="alert alert-danger">
{{ Session::get('error') }}
</div>
</div>
@endif
<h1 class="col-sm-12">{{ trans('reminders.password_reset') }}</h1>
{{ Form::open(array('route' => ... | ubc/learninglocker | app/views/system/password/reset.blade.php | PHP | gpl-3.0 | 953 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | anryko/ansible | lib/ansible/modules/cloud/google/gcp_redis_instance_info.py | Python | gpl-3.0 | 9,179 |
<?php
/**
* Implements safety checks for safe iframes.
*
* @warning This filter is *critical* for ensuring that %HTML.SafeIframe
* works safely.
*/
class HTMLPurifier_URIFilter_SafeIframe extends HTMLPurifier_URIFilter
{
/**
* @type string
*/
public $name = 'SafeIframe';
/**
* @type bo... | TheCrowsJoker/mahara | htdocs/lib/htmlpurifier/HTMLPurifier/URIFilter/SafeIframe.php | PHP | gpl-3.0 | 1,996 |
#region References
using System;
using System.Collections.Generic;
using Server.Engines.ConPVP;
using Server.Items;
using Server.Misc;
using Server.Mobiles;
using Server.Network;
using Server.Spells.Bushido;
using Server.Spells.Necromancy;
using Server.Spells.Ninjitsu;
using Server.Spells.Second;
using Server.Spells.S... | zerodowned/JustUO | Scripts/Spells/Base/Spell.cs | C# | gpl-3.0 | 28,192 |
# coding=utf-8
"""Test for GIS utilities functions."""
import unittest
# noinspection PyUnresolvedReferences
import qgis # pylint: disable=unused-import
from qgis.core import QgsRectangle
from safe.definitions.constants import INASAFE_TEST
from safe.utilities.gis import (
is_polygon_layer,
is_raster_y_inve... | AIFDR/inasafe | safe/utilities/test/test_gis.py | Python | gpl-3.0 | 4,837 |
<?php
namespace App\Console\Commands;
use App\Console\LnmsCommand;
use App\Models\Device;
use Illuminate\Database\Eloquent\Builder;
use LibreNMS\Config;
use LibreNMS\Polling\ConnectivityHelper;
use Symfony\Component\Console\Input\InputArgument;
class DevicePing extends LnmsCommand
{
protected $name = 'device:pin... | arrmo/librenms | app/Console/Commands/DevicePing.php | PHP | gpl-3.0 | 1,546 |
package net.minecraft.server;
import org.bukkit.craftbukkit.event.CraftEventFactory; // CraftBukkit
public class EntityPig extends EntityAnimal {
private final PathfinderGoalPassengerCarrotStick bp;
public EntityPig(World world) {
super(world);
this.a(0.9F, 0.9F);
this.getNavigation(... | starlis/EMC-CraftBukkit | src/main/java/net/minecraft/server/EntityPig.java | Java | gpl-3.0 | 4,987 |
// 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 protoreflect provides interfaces to dynamically manipulate messages.
//
// This package includes type descriptors which describe the structure of typ... | pberndro/smartpi_exporter | vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go | GO | gpl-3.0 | 15,836 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.mozstumbler.service.stumblerthread.datahandling;
import org.json.JSONObject;
import org.mozil... | petercpg/MozStumbler | libraries/stumbler/src/main/java/org/mozilla/mozstumbler/service/stumblerthread/datahandling/ReportBatchBuilder.java | Java | mpl-2.0 | 1,691 |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2012 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... | moliva/proactive | src/Core/org/objectweb/proactive/core/util/ProActiveCounter.java | Java | agpl-3.0 | 2,303 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2013-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | rdkgit/opennms | features/vaadin-node-maps/src/main/java/org/opennms/features/vaadin/nodemaps/internal/gwt/client/SearchResult.java | Java | agpl-3.0 | 2,174 |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2012 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... | moliva/proactive | src/Extensions/org/objectweb/proactive/extensions/annotation/common/BogusAnnotationProcessor.java | Java | agpl-3.0 | 2,065 |
<?php
/**
* @package api
* @subpackage filters.enum
*/
class KalturaFileAssetOrderBy extends KalturaStringEnum
{
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
const UPDATED_AT_ASC = "+updatedAt";
const UPDATED_AT_DESC = "-updatedAt";
}
| ratliff/server | api_v3/lib/types/fileAsset/filters/orderEnums/KalturaFileAssetOrderBy.php | PHP | agpl-3.0 | 272 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2007-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | tdefilip/opennms | opennms-services/src/main/java/org/opennms/netmgt/vacuumd/AutomationException.java | Java | agpl-3.0 | 2,125 |
#
# Copyright (C) 2011 Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that ... | SaranNV/canvas-lms | spec/views/quizzes/submission_versions.html.erb_spec.rb | Ruby | agpl-3.0 | 1,143 |
/*
* Copyright (C) 2011 JTalks.org Team
* 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 later version.
* This library i... | illerax/jcommune | jcommune-view/jcommune-web-view/src/main/webapp/resources/javascript/app/utils.js | JavaScript | lgpl-2.1 | 4,376 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="hr" sourcelanguage="en">
<context>
<name>CmdWebBrowserBack</name>
<message>
<location filename="../../Command.cpp" line="75"/>
<source>Web</source>
<translation type="unfinished">Web</translation>
</mess... | wood-galaxy/FreeCAD | src/Mod/Web/Gui/Resources/translations/Web_hr.ts | TypeScript | lgpl-2.1 | 6,073 |
'use strict';
/**
* @module br/util/Number
*/
var StringUtility = require('br/util/StringUtility');
/**
* @class
* @alias module:br/util/Number
*
* @classdesc
* Utility methods for numbers
*/
function NumberUtil() {
}
/**
* Returns a numeric representation of the sign on the number.
*
* @param {Number} n... | andreoid/testing | brjs-sdk/workspace/sdk/libs/javascript/br-util/src/br/util/Number.js | JavaScript | lgpl-3.0 | 4,499 |
/*
Copyright 2012 Twitter, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | ogre0403/hraven | hraven-etl/src/main/java/com/twitter/hraven/etl/JobRunner.java | Java | apache-2.0 | 2,525 |
//// [tests/cases/compiler/moduleAugmentationsImports4.ts] ////
//// [a.ts]
export class A {}
//// [b.ts]
export class B {x: number;}
//// [c.d.ts]
declare module "C" {
class Cls {y: string; }
}
//// [d.d.ts]
declare module "D" {
import {A} from "a";
import {B} from "b";
module "a" {
... | weswigham/TypeScript | tests/baselines/reference/moduleAugmentationsImports4.js | JavaScript | apache-2.0 | 1,844 |
"""
Component-level Specification
This module is called component to mirror organization of storm package.
"""
from ..storm.component import Component
class Specification(object):
def __init__(self, component_cls, name=None, parallelism=1):
if not issubclass(component_cls, Component):
raise ... | hodgesds/streamparse | streamparse/dsl/component.py | Python | apache-2.0 | 976 |
/*
* 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 ... | adrapereira/jena | jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_QueryDataset.java | Java | apache-2.0 | 2,072 |
/*
* 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... | HonzaKral/elasticsearch | server/src/test/java/org/elasticsearch/search/basic/TransportTwoNodesSearchIT.java | Java | apache-2.0 | 19,747 |
/*
* Copyright 2014 Click Travel 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 agreed ... | clicktravel-james/Cheddar | cheddar/cheddar-rest/src/main/java/com/clicktravel/cheddar/rest/exception/mapper/cdm1/JsonParseExceptionMapper.java | Java | apache-2.0 | 1,551 |
// Copyright 2000-2021 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.psi.impl;
import com.intellij.lang.ASTFactory;
import com.intellij.lang.Commenter;
import com.intellij.lang.Language;
import com.intellij.lang.LanguageComme... | siosio/intellij-community | platform/core-impl/src/com/intellij/psi/impl/PsiParserFacadeImpl.java | Java | apache-2.0 | 4,617 |
/*
* 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 ... | jbonofre/beam | sdks/java/core/src/test/java/org/apache/beam/sdk/values/TypeDescriptorsTest.java | Java | apache-2.0 | 5,295 |
/*
* Copyright 2015 Open Networking Laboratory
*
* 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 la... | Zhengzl15/onos-securearp | core/api/src/main/java/org/onosproject/net/intent/MplsPathIntent.java | Java | apache-2.0 | 5,350 |
interface JavaInterface {
void foo(Object p);
}
class JavaClass1 implements JavaInterface {
@Override
public void foo(Object <caret>p) {
System.out.println(<flown1>p);
}
}
class JavaClass2 implements JavaInterface {
@Override
public void foo(Object p) {
System.err.println(p);
}
} | siosio/intellij-community | java/java-tests/testData/codeInsight/slice/forward/OneInterfaceTwoImplementations.java | Java | apache-2.0 | 304 |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | oujesky/closure-templates | java/src/com/google/template/soy/msgs/restricted/SoyMsgPluralCaseSpec.java | Java | apache-2.0 | 3,688 |
/*
* Copyright 2019 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... | jomarko/kie-wb-common | kie-wb-common-dmn/kie-wb-common-dmn-client/src/test/java/org/kie/workbench/common/dmn/client/editors/included/IncludedModelsPageStateTest.java | Java | apache-2.0 | 3,116 |
/*
* 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 ... | BigData-Lab-Frankfurt/HiBench-DSE | common/mahout-distribution-0.7-hadoop1/math/src/test/java/org/apache/mahout/math/jet/random/GammaTest.java | Java | apache-2.0 | 5,887 |
/*
* Copyright 2017 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | barneykim/pinpoint | web/src/main/java/com/navercorp/pinpoint/web/dao/stat/DeadlockDao.java | Java | apache-2.0 | 825 |
// +build linux
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"math/rand"
"net"
"net/http"
"os"
"strings"
"time"
"github.com/openshift/origin/pkg/network/node/cniserver"
"github.com/containernetworking/cni/pkg/skel"
"github.com/containernetworking/cni/pkg/types"
"github.com/container... | maxamillion/origin | pkg/network/sdn-cni-plugin/openshift-sdn.go | GO | apache-2.0 | 5,969 |
/// <reference path='fourslash.ts' />
//@Filename: file.tsx
//// declare module JSX {
//// interface Element { }
//// interface IntrinsicElements {
//// [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}div|]: {
//// name?: string;
//// isOpen?... | microsoft/TypeScript | tests/cases/fourslash/tsxFindAllReferences1.ts | TypeScript | apache-2.0 | 600 |
/**
* 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... | amyvmiwei/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRowProcessorEndpoint.java | Java | apache-2.0 | 22,973 |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <assert.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <linux/if_ether.h>
#include <linux/if_tun.h>
#include <linux/if_packet.h>
#include "base/... | facetothefate/contrail-controller | src/vnsw/agent/contrail/linux/pkt0_interface.cc | C++ | apache-2.0 | 6,144 |
/*
* 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 ... | xuegongzi/rabbitframework | rabbitframework-security-pom/rabbitframework-security/src/main/java/org/apache/shiro/authz/ModularRealmAuthorizer.java | Java | apache-2.0 | 19,390 |
# Copyright 2013 Josh Durgin
# Copyright 2013 Red Hat, 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-... | ntt-sic/nova | nova/tests/api/openstack/compute/contrib/test_volumes.py | Python | apache-2.0 | 32,169 |
/*
* 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 ... | tmess567/syncope | core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/anyobject/ARelationship.java | Java | apache-2.0 | 1,023 |
package org.apache.maven.plugins.install.stubs;
import java.io.File;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... | apache/maven-plugins | maven-install-plugin/src/test/java/org/apache/maven/plugins/install/stubs/AttachedArtifactStub0.java | Java | apache-2.0 | 1,311 |
/*
* Copyright 2018 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | barneykim/pinpoint | commons-server/src/main/java/com/navercorp/pinpoint/common/server/cluster/zookeeper/exception/NoNodeException.java | Java | apache-2.0 | 1,056 |
//// [augmentedTypesExternalModule1.ts]
export var a = 1;
class c5 { public foo() { } }
module c5 { } // should be ok everywhere
//// [augmentedTypesExternalModule1.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
exports.a = 1;
var c5 = ... | domchen/typescript-plus | tests/baselines/reference/augmentedTypesExternalModule1.js | JavaScript | apache-2.0 | 467 |
/*
* 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 ... | AlienQueen/wicket | wicket-core/src/main/java/org/apache/wicket/resource/ResourceUtil.java | Java | apache-2.0 | 8,028 |
/* Copyright 2015 Samsung Electronics Co., 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... | rahul27/GearVRf | GVRf/Framework/framework/src/main/jni/vulkan/vulkanCore.cpp | C++ | apache-2.0 | 46,740 |
# Copyright 2012 Nebula, 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 agree... | newrocknj/horizon | openstack_dashboard/dashboards/identity/projects/tests.py | Python | apache-2.0 | 82,571 |
/*
* Copyright 2000-2013 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... | jk1/intellij-community | platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.java | Java | apache-2.0 | 10,031 |
// 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... | cpcloud/arrow | csharp/test/Apache.Arrow.Tests/BitUtilityTests.cs | C# | apache-2.0 | 7,010 |
/*
* Copyright 2010-2015 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" file... | bmildner/aws-sdk-cpp | aws-cpp-sdk-ecs/source/model/RegisterContainerInstanceRequest.cpp | C++ | apache-2.0 | 2,594 |
/*
* Copyright 2019 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 ... | bryce-anderson/netty | common/src/main/java/io/netty/util/internal/svm/UnsafeRefArrayAccessSubstitution.java | Java | apache-2.0 | 1,194 |
/*
*
* 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... | justintung/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestKeyValueScanFixture.java | Java | apache-2.0 | 2,727 |
/*
* Copyright 2000-2009 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 | platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/CustomizedBreakpointPresentation.java | Java | apache-2.0 | 1,141 |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CParseHandlerQueryOutput.cpp
//
// @doc:
// Implementation of the SAX parse handler class parsing the list of
// output column references in a DXL query.
//---------... | 50wu/gpdb | src/backend/gporca/libnaucrates/src/parser/CParseHandlerQueryOutput.cpp | C++ | apache-2.0 | 4,849 |
class PerlBuild < Formula
desc "Perl builder"
homepage "https://github.com/tokuhirom/Perl-Build"
url "https://github.com/tokuhirom/Perl-Build/archive/1.32.tar.gz"
sha256 "ba86d74ff9718977637806ef650c85615534f0b17023a72f447587676d7f66fd"
license any_of: ["Artistic-1.0", "GPL-1.0-or-later"]
head "https://gith... | sjackman/homebrew-core | Formula/perl-build.rb | Ruby | bsd-2-clause | 5,489 |
class GitAbsorb < Formula
desc "Automatic git commit --fixup"
homepage "https://github.com/tummychow/git-absorb"
url "https://github.com/tummychow/git-absorb/archive/0.6.6.tar.gz"
sha256 "955069cc70a34816e6f4b6a6bd1892cfc0ae3d83d053232293366eb65599af2f"
license "BSD-3-Clause"
bottle do
rebuild 1
sh... | sjackman/homebrew-core | Formula/git-absorb.rb | Ruby | bsd-2-clause | 2,121 |
cask 'astropad' do
version '3.1'
sha256 '4082c09dd4aa440a2b8bd25104d98d3f431fbca2fc4f139d3e390632f4903f22'
url "https://astropad.com/downloads/Astropad-#{version}.zip"
appcast 'https://astropad.com/downloads/sparkle.xml'
name 'Astropad'
homepage 'https://astropad.com/'
app 'Astropad.app'
uninstall qu... | josa42/homebrew-cask | Casks/astropad.rb | Ruby | bsd-2-clause | 649 |
goog.provide('ol.test.extent');
goog.require('ol.extent');
goog.require('ol.proj');
describe('ol.extent', function() {
describe('buffer', function() {
it('buffers an extent by some value', function() {
var extent = [-10, -20, 10, 20];
expect(ol.extent.buffer(extent, 15)).to.eql([-25, -35, 25, 35]... | wet-boew/openlayers-dist | test/spec/ol/extent.test.js | JavaScript | bsd-2-clause | 27,991 |
# -*- coding: utf-8 -*-
#
# scikit-learn documentation build configuration file, created by
# sphinx-quickstart on Fri Jan 8 09:13:42 2010.
#
# This file is execfile()d with the current directory set to its containing
# dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... | nhejazi/scikit-learn | doc/conf.py | Python | bsd-3-clause | 9,924 |
/**
* Copyright (c) 2005-2007, Paul Tuckey
* All rights reserved.
* ====================================================================
* Licensed under the BSD License. Text as follows.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | safarijv/urlrewritefilter | src/main/java/org/tuckey/web/filters/urlrewrite/Conf.java | Java | bsd-3-clause | 23,779 |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | youtube/cobalt | third_party/llvm-project/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eof.pass.cpp | C++ | bsd-3-clause | 669 |
<?php
/**
* Manage views in a database
*
* $Id: views.php,v 1.75 2007/12/15 22:57:43 ioguix Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
include_once('./classes/Gui.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = ... | juanchi008/playa_auto | web/phppgadmin/views.php | PHP | bsd-3-clause | 27,911 |
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=eb905faa1084ccab3ad0605df4c27ea4
REG_FIDDLE(IRect_isEmpty64, 256, 256, true, 0) {
void draw(SkCanvas* canvas) {
SkIRect tests[] = {{20, 40, 10... | youtube/cobalt | third_party/skia_next/third_party/skia/docs/examples/IRect_isEmpty64.cpp | C++ | bsd-3-clause | 748 |
# 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 applica... | chromium/chromium | third_party/tflite_support/src/tensorflow_lite_support/python/task/core/task_utils.py | Python | bsd-3-clause | 1,839 |
# This migration comes from spree (originally 20130417120035)
class UpdateAdjustmentStates < ActiveRecord::Migration[4.2]
def up
Spree::Order.complete.find_each do |order|
order.adjustments.update_all(state: 'closed')
end
Spree::Shipment.shipped.includes(:adjustment).find_each do |shipment|
s... | andreinabgomezg29/spree_out_stock | spec/dummy/db/migrate/20170904174291_update_adjustment_states.spree.rb | Ruby | bsd-3-clause | 500 |
// 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.
/**
* This view displays options for exporting the captured data.
*/
var ExportView = (function() {
'use strict';
// We inherit from DivView.
... | zcbenz/cefode-chromium | chrome/browser/resources/net_internals/export_view.js | JavaScript | bsd-3-clause | 6,896 |
# frozen_string_literal: true
module Spree
module Admin
class PropertiesController < ResourceController
def index
respond_with(@collection)
end
private
def collection
return @collection if @collection
# params[:q] can be blank upon pagination
params[:q] =... | pervino/solidus | backend/app/controllers/spree/admin/properties_controller.rb | Ruby | bsd-3-clause | 601 |
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com... | 0mok/fresco | drawee/src/test/java/com/facebook/drawee/drawable/RoundedBitmapDrawableTest.java | Java | bsd-3-clause | 4,630 |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Variable = void 0;
const variable_1 = __importDefault(require("eslint-scope/lib/variable"));
con... | ChromeDevTools/devtools-frontend | node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Variable.js | JavaScript | bsd-3-clause | 419 |
// Copyright 2020 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 "services/device/hid/hid_preparsed_data.h"
#include <cstddef>
#include <cstdint>
#include "base/debug/dump_without_crashing.h"
#include "base/m... | chromium/chromium | services/device/hid/hid_preparsed_data.cc | C++ | bsd-3-clause | 10,536 |
using ServiceStack.DataAnnotations;
namespace ServiceStack.Common.Tests.Models
{
public class ModelWithIndexFields
{
public string Id { get; set; }
[Index]
public string Name { get; set; }
public string AlbumId { get; set; }
[Index(true)]
public string UniqueName { get; set; }
}
} | firstsee/ServiceStack | tests/ServiceStack.Common.Tests/Models/ModelWithIndexFields.cs | C# | bsd-3-clause | 300 |
// 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.
#include <memory>
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "base/timer/lap_timer.h"
#include "testing/perf/perf_test.h"
#inclu... | ric2b/Vivaldi-browser | chromium/ash/perftests/ash_background_filter_blur_perftest.cc | C++ | bsd-3-clause | 5,648 |
// Copyright 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.
//
// Mock ServerConnectionManager class for use in client regression tests.
#include "sync/test/engine/mock_connection_manager.h"
#include <map>
#inclu... | guorendong/iridium-browser-ubuntu | sync/test/engine/mock_connection_manager.cc | C++ | bsd-3-clause | 25,782 |
/*jslint sloppy: true, nomen: true */
/*global exports:true */
/*
This file is part of the PhantomJS project from Ofi Labs.
Copyright (C) 2013 Joseph Rollinson, jtrollinson@gmail.com
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following con... | tianzhihen/phantomjs | src/modules/cookiejar.js | JavaScript | bsd-3-clause | 2,651 |
// Copyright 2020 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 "chrome/browser/ui/passwords/bubble_controllers/move_to_account_store_bubble_controller.h"
#include "chrome/browser/favicon/favicon_service_facto... | ric2b/Vivaldi-browser | chromium/chrome/browser/ui/passwords/bubble_controllers/move_to_account_store_bubble_controller.cc | C++ | bsd-3-clause | 4,892 |
# 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.
import base64
import hashlib
import os
import string
import win32api
import win32file
import win32com.client
from win32com.shell import shell, shellcon
impor... | ric2b/Vivaldi-browser | chromium/chrome/test/mini_installer/variable_expander.py | Python | bsd-3-clause | 17,079 |
<?php
namespace Drupal\Core\Render\Element;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
/**
* Provides an action button form element.
*
* When the button is pressed, the form will be submitted to Drupal, where it is
* validated and rebuilt. The submit handler is not invoked.
*
* Pr... | windtrader/drupalvm-d8 | web/core/lib/Drupal/Core/Render/Element/Button.php | PHP | gpl-2.0 | 3,071 |
import { Directive, EventEmitter } from '@angular/core';
import { KmlLayerManager } from './../services/managers/kml-layer-manager';
var layerId = 0;
export var SebmGoogleMapKmlLayer = (function () {
function SebmGoogleMapKmlLayer(_manager) {
this._manager = _manager;
this._addedToManager = false;
... | Oussemalaamiri/guidemeAngular | src/node_modules/angular2-google-maps/esm/core/directives/google-map-kml-layer.js | JavaScript | mit | 4,685 |
module CatsHelper
end
| metaminded/cruddler | test/dummy/app/helpers/cats_helper.rb | Ruby | mit | 22 |
<?php
return [
'Names' => [
'Aran' => 'nasta’liq',
'Armn' => 'arménio',
'Beng' => 'bengalês',
'Egyd' => 'egípcio demótico',
'Egyh' => 'egípcio hierático',
'Ethi' => 'etíope',
'Hanb' => 'han com bopomofo',
'Inds' => 'indus',
'Orya' => 'odia',
... | derrabus/symfony | src/Symfony/Component/Intl/Resources/data/scripts/pt_PT.php | PHP | mit | 493 |
"""
tests.components.automation.test_location
±±±~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests location automation.
"""
import unittest
from homeassistant.components import automation, zone
from tests.common import get_test_home_assistant
class TestAutomationZone(unittest.TestCase):
""" Test the event automatio... | toddeye/home-assistant | tests/components/automation/test_zone.py | Python | mit | 5,342 |