code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
from django.conf.urls import url
from admin.nodes import views
app_name = 'admin'
urlpatterns = [
url(r'^$', views.NodeFormView.as_view(),
name='search'),
url(r'^flagged_spam$', views.NodeFlaggedSpamList.as_view(),
name='flagged-spam'),
url(r'^known_spam$', views.NodeKnownSpamList.as_view(... | pattisdr/osf.io | admin/nodes/urls.py | Python | apache-2.0 | 2,100 |
/*
* 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 ... | ty1er/incubator-asterixdb | asterixdb/asterix-external-data/src/test/java/org/apache/asterix/external/classad/Util.java | Java | apache-2.0 | 8,750 |
// Copyright 2016 LINE Corporation
//
// LINE Corporation 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 requi... | kkdai/LineBotTemplate | vendor/github.com/line/line-bot-sdk-go/v7/linebot/account_link.go | GO | apache-2.0 | 1,468 |
#
# 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... | wileeam/airflow | airflow/operators/dummy_operator.py | Python | apache-2.0 | 1,203 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
*
* ... | dharshanaw/carbon-identity-framework | components/entitlement/org.wso2.carbon.identity.entitlement.common/src/main/java/org/wso2/carbon/identity/entitlement/common/dto/ElementCountDTO.java | Java | apache-2.0 | 1,931 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | sijie/bookkeeper | stream/distributedlog/common/src/main/java/org/apache/distributedlog/common/concurrent/AsyncSemaphore.java | Java | apache-2.0 | 5,678 |
/** @file
A brief file description
@section license License
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
... | clearswift/trafficserver | proxy/api/ts/experimental.h | C | apache-2.0 | 17,789 |
package org.asteriskjava.pbx.agi;
import static org.junit.Assert.assertTrue;
import org.asteriskjava.pbx.agi.RateLimiter;
import org.junit.Test;
public class RateLimiterTest
{
@Test
public void test() throws InterruptedException
{
long now = System.currentTimeMillis();
RateLimiter limite... | pk1057/asterisk-java | src/test/java/org/asteriskjava/pbx/agi/RateLimiterTest.java | Java | apache-2.0 | 647 |
/*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | shishaochen/TensorFlow-0.8-Win | third_party/grpc/test/cpp/qps/client_sync.cc | C++ | apache-2.0 | 5,893 |
/*
* 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... | idea4bsd/idea4bsd | platform/platform-impl/src/com/intellij/openapi/vfs/encoding/EncodingUtil.java | Java | apache-2.0 | 11,775 |
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | Peddle/hue | desktop/core/src/desktop/lib/test_utils.py | Python | apache-2.0 | 2,861 |
/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contrib... | wangcy6/storm_app | frame/c++/webrtc-master/common_audio/fir_filter_factory.h | C | apache-2.0 | 1,140 |
function getUrlVars() {
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
} | SreejithNS/com.sreejithn | www/js/geturi.js | JavaScript | apache-2.0 | 312 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
/>
<meta name="description" content="Star bur... | likangning93/cesium | Apps/Sandcastle/gallery/Star Burst.html | HTML | apache-2.0 | 13,915 |
export const CREATE_COURSE = 'CREATE_COURSE';
| bluSCALE4/react-hello-world | src/actions/actionTypes.js | JavaScript | apache-2.0 | 46 |
/*
* 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 ... | OpenSOC/opensoc-streaming | OpenSOC-Topologies/src/main/java/com/opensoc/topology/runner/TopologyRunner.java | Java | apache-2.0 | 36,860 |
/***
Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin
***/
var Datatable = function () {
var tableOptions; // main options
var dataTable; // datatable object
var table; // actual table jquery object
var tableContainer; // actual table container object
var tableWr... | zeickan/Infected-Engine | static/global/scripts/datatable.js | JavaScript | apache-2.0 | 11,607 |
"""Support for the Foobot indoor air quality monitor."""
import asyncio
from datetime import timedelta
import logging
import aiohttp
from foobot_async import FoobotClient
import voluptuous as vol
from homeassistant.const import (
ATTR_TEMPERATURE,
ATTR_TIME,
CONF_TOKEN,
CONF_USERNAME,
TEMP_CELSIUS... | leppa/home-assistant | homeassistant/components/foobot/sensor.py | Python | apache-2.0 | 4,894 |
/*
Copyright 2016 - 2017 Huawei Technologies Co., Ltd. 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 applic... | victorwangyang/containerops | tenant/angular4/src/app/repository/git/git.component.ts | TypeScript | apache-2.0 | 863 |
import six
from hamcrest.core.base_matcher import Matcher
from hamcrest.core.core.isequal import equal_to
__author__ = "Jon Reid"
__copyright__ = "Copyright 2011 hamcrest.org"
__license__ = "BSD, see License.txt"
import types
def wrap_matcher(x):
"""Wraps argument in a matcher, if necessary.
:returns: the ... | axbaretto/beam | sdks/python/.tox/py27gcp/lib/python2.7/site-packages/hamcrest/core/helpers/wrap_matcher.py | Python | apache-2.0 | 880 |
// Copyright 2012 the V8 project 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 "src/parsing/rewriter.h"
#include "src/ast/ast.h"
#include "src/ast/scopes.h"
#include "src/parsing/parse-info.h"
#include "src/parsing/parser... | zero-rp/miniblink49 | v8_5_7/src/parsing/rewriter.cc | C++ | apache-2.0 | 13,412 |
<!doctype html><html lang=en><head><title>Redirecting…</title><link rel=canonical href=/v1.5/zh/news/releases/1.0.x/announcing-1.0.8/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=/v1.5/zh/news/releases/1.0.x/announcing-1.0.8/"></head><body><h1>Redirecting…</... | istio/istio.io | archive/v1.5/zh/news/announcing-1.0.8/index.html | HTML | apache-2.0 | 433 |
/**
* Copyright (C) 2009-2014 Dell, Inc.
* See annotations for authorship information
*
* ====================================================================
* 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 co... | OSS-TheWeatherCompany/dasein-cloud-core | src/main/java/org/dasein/cloud/VisibleScope.java | Java | apache-2.0 | 1,298 |
/*
* Copyright © 2014 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | chtyim/cdap | cdap-cli/src/main/java/co/cask/cdap/cli/completer/element/HttpMethodPrefixCompleter.java | Java | apache-2.0 | 3,087 |
/*
* 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... | hurricup/intellij-community | plugins/javaFX/src/org/jetbrains/plugins/javaFX/fxml/refs/JavaFxControllerFieldSearcher.java | Java | apache-2.0 | 4,457 |
// RUN: %clang_cc1 -verify -std=c++2a -fsyntax-only -triple x86_64-apple-macosx10.14.0 %s
// RUN: %clang_cc1 -verify -std=c++2a -fsyntax-only -triple x86_64-apple-macosx10.14.0 %s -fno-signed-char
// RUN: %clang_cc1 -verify -std=c++2a -fsyntax-only -triple aarch64_be-linux-gnu %s
#if __BYTE_ORDER__ == __ORDER_LITTLE_E... | google/llvm-propeller | clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp | C++ | apache-2.0 | 14,744 |
##########################################################################
# Copyright 2015 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... | stephen-murby/gocd | server/webapp/WEB-INF/rails.new/app/presenters/api_v1/dashboard/pipeline_group_representer.rb | Ruby | apache-2.0 | 1,291 |
<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" conte... | DenverArtMuseum/OctoberFriends | docs/html/db/d76/classDMA_1_1Friends_1_1Api_1_1ActivityResource-members.html | HTML | apache-2.0 | 8,545 |
/*
* Copyright (c) 2008-2018, 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 ... | Donnerbart/hazelcast | hazelcast/src/main/java/com/hazelcast/map/impl/querycache/subscriber/NodeQueryCacheConfigurator.java | Java | apache-2.0 | 3,996 |
/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "thrift/compiler/test/fixtures/fatal/gen-cpp2/service1.h"
#include "thrift/compiler/test/fixtures/fatal/gen-cpp2/service1.tcc"
namespace test_cpp2 { namespace cpp_reflection {
}} // test_... | getyourguide/fbthrift | thrift/compiler/test/fixtures/fatal/gen-cpp2/service1_processmap_compact.cpp | C++ | apache-2.0 | 401 |
#!/usr/bin/env ruby
# This example demonstrates creating a server image with the Rackpace Open Cloud
require 'rubygems' #required for Ruby 1.8.x
require 'fog'
def get_user_input(prompt)
print "#{prompt}: "
gets.chomp
end
def select_server(servers)
abort "\nThere are not any servers available to image in the C... | luna1x/chef-server | vendor/ruby/1.9.1/gems/fog-1.15.0/lib/fog/rackspace/examples/compute_v2/create_image.rb | Ruby | apache-2.0 | 1,864 |
/**
* 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... | jmandawg/camel | components/camel-twitter/src/main/java/org/apache/camel/component/twitter/springboot/TwitterComponentConfiguration.java | Java | apache-2.0 | 3,496 |
/*
* 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... | gh351135612/presto | presto-hive/src/main/java/com/facebook/presto/hive/HiveWriteUtils.java | Java | apache-2.0 | 42,741 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_31) on Thu Jan 31 02:04:59 UTC 2013 -->
<TITLE>
org.apache.hadoop.streaming.io (Hadoop 1.1.2 API)
</TITLE>
<META NAME="date" CONTENT="2013-01-31">
... | markkerzner/nn_kove | hadoop/docs/api/org/apache/hadoop/streaming/io/package-frame.html | HTML | apache-2.0 | 1,975 |
// 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.siyeh.ig.logging;
import com.intellij.codeInspection.CommonQuickFixBundle;
import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.codeInspection.ui... | dahlstrom-g/intellij-community | plugins/InspectionGadgets/src/com/siyeh/ig/logging/LoggerInitializedWithForeignClassInspection.java | Java | apache-2.0 | 9,735 |
Ext.data.ArrayReader=Ext.extend(Ext.data.JsonReader,{readRecords:function(c){var b=this.meta?this.meta.id:null;var h=this.recordType,q=h.prototype.fields;var e=[];var s=c;for(var m=0;m<s.length;m++){var d=s[m];var u={};var a=((b||b===0)&&d[b]!==undefined&&d[b]!==""?d[b]:null);for(var l=0,w=q.length;l<w;l++){var r=q.ite... | Ariah-Group/Continuity | src/main/webapp/javascripts/ext/build/data/ArrayReader-min.js | JavaScript | apache-2.0 | 539 |
package com.cedarsoftware.util;
import org.junit.Assert;
import org.junit.Test;
import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier;
import java.net.InetAddress;
/**
* useful InetAddress Utilities
*
* @author Kenneth Partlow
* <br>
* Copyright (c) Cedar Software LLC
* ... | pluto-build/java-util | src/test/java/com/cedarsoftware/util/TestInetAddressUtilities.java | Java | apache-2.0 | 1,810 |
// Copyright 2000-2019 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.java.psi.formatter.java;
import com.intellij.ide.highlighter.JavaFileType;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.codeStyle.Comm... | dahlstrom-g/intellij-community | java/java-tests/testSrc/com/intellij/java/psi/formatter/java/JavaFormatterAlignmentTest.java | Java | apache-2.0 | 30,615 |
#pragma once
#include "indexer/index.hpp"
#include "geometry/point2d.hpp"
#include "geometry/rect2d.hpp"
#include "geometry/tree4d.hpp"
#include "std/set.hpp"
class Index;
namespace search
{
struct LocalityItem
{
m2::RectD m_rect;
string m_name;
uint32_t m_population;
typedef uint32_t ID;
ID m_id;
... | programming086/omim | search/locality_finder.hpp | C++ | apache-2.0 | 1,775 |
/*=========================================================================
Library: CTK
Copyright (c) Kitware 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.ap... | SINTEFMedtek/CTK | Libs/Widgets/ctkDoubleRangeSliderEventPlayer.h | C | apache-2.0 | 1,490 |
println!("11. Creating and storing CREDENTAIL DEFINITION using anoncreds as Trust Anchor, for the given Schema");
let config_json = r#"{ "support_revocation": false }"#;
let tag = r#"TAG1"#;
let (_cred_def_id, _cred_def_json) = anoncreds::issuer_create_and_store_credential_def(wallet_handle, &trustee_did, &schema_json... | Artemkaaas/indy-sdk | docs/how-tos/save-schema-and-cred-def/rust/src/step4.rs | Rust | apache-2.0 | 717 |
class ErrorsController < ApplicationController
def error_404
respond_to do |format|
format.html { render template: 'errors/error_404', layout: 'layouts/application', status: 404 }
format.all { render nothing: true, status: 404 }
end
end
def error_500
end
end | mariaro/cypress | app/controllers/errors_controller.rb | Ruby | apache-2.0 | 287 |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... | thaysmelo/mobile_maravilhas-pe | sistema/vendor/cakephp/bake/tests/TestCase/Shell/Task/ControllerTaskTest.php | PHP | apache-2.0 | 10,677 |
// std imports
use std::mem;
// external imports
use num::traits::Num;
// local imports
use algebra::structure::MagmaBase;
use super::eo_traits::{ERO, ECO};
use matrix::view::MatrixView;
use matrix::traits::{Shape, MatrixBuffer, Strided};
/// Implementation of Elementary row operations.
impl<'a, T:MagmaBase + Nu... | daniel-vainsencher/scirust | src/matrix/eo/eo_view.rs | Rust | apache-2.0 | 3,596 |
#include <stdlib.h>
int main(void) {
int a = 1;
int b = 1;
switch (a) {
case 1 :
b = 3;
break;
case 2 :
b = 5;
break;
}
return (0);
}
| TommesDee/cpachecker | test/programs/simple/switch-tests/switch3.c | C | apache-2.0 | 161 |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.server;
import com.google.appinventor.server.stora... | kidebit/AudioBlurp | appinventor/appengine/tests/com/google/appinventor/server/FileExporterImplTest.java | Java | apache-2.0 | 7,269 |
# Cloud Foundry Java Buildpack
# Copyright 2013-2017 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
#
# Un... | afalak/java-buildpack | spec/java_buildpack/framework/introscope_agent_spec.rb | Ruby | apache-2.0 | 4,002 |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | hovsepm/azure-powershell | src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockTokenAuthenticationFactory.cs | C# | apache-2.0 | 4,798 |
/*
* Copyright (c) 2008-2017, 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 ... | tombujok/hazelcast | hazelcast-client/src/main/java/com/hazelcast/client/spi/ClientPartitionService.java | Java | apache-2.0 | 1,185 |
/**
* @file
* <a href="https://travis-ci.org/Xotic750/has-to-string-tag-x"
* title="Travis status">
* <img
* src="https://travis-ci.org/Xotic750/has-to-string-tag-x.svg?branch=master"
* alt="Travis status" height="18">
* </a>
* <a href="https://david-dm.org/Xotic750/has-to-string-tag-x"
* title="Dependency sta... | BluelabUnifor/sunny-messeger | node_modules/watson-developer-cloud/node_modules/buffer-from/node_modules/is-array-buffer-x/node_modules/has-to-string-tag-x/index.js | JavaScript | apache-2.0 | 2,875 |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Serial Peripheral Interface
namespace Spi1Mcr{ ///<Module Configuration Register
using Addr = Register::Address<0x4002d000,0x02e000fe,0x00000000,unsigned>;
///Halt
enum class HaltVal {
v0=0x00000000, ///<St... | porkybrain/Kvasir | Lib/Chip/CM4/Freescale/MK21DA5/SPI1.hpp | C++ | apache-2.0 | 40,340 |
"""
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | CraigHarris/gpdb | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/transaction_management/skip_checkpoint_abort_transaction/test_skip_checkpoint_abort_transaction.py | Python | apache-2.0 | 3,466 |
// +build go1.10,codegen
package api
import (
"encoding/json"
"testing"
)
func buildAPI() *API {
a := &API{}
stringShape := &Shape{
API: a,
ShapeName: "string",
Type: "string",
}
stringShapeRef := &ShapeRef{
API: a,
ShapeName: "string",
Shape: stringShape,
}
intShape := &Sh... | Miciah/origin | vendor/github.com/aws/aws-sdk-go/private/model/api/example_test.go | GO | apache-2.0 | 6,120 |
/*
* 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... | shroman/ignite | modules/platforms/dotnet/Apache.Ignite.Core/Cache/Configuration/CacheConfiguration.cs | C# | apache-2.0 | 42,848 |
/*
* Copyright 2016 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | zer0se7en/netty | handler/src/test/java/io/netty/handler/ssl/PemEncodedTest.java | Java | apache-2.0 | 3,656 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | zhihuij/druid | processing/src/main/java/io/druid/query/filter/SelectorDimFilter.java | Java | apache-2.0 | 6,989 |
/*
* Copyright (C) 2014 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... | Ant-Droid/android_frameworks_base_OLD | location/lib/java/com/android/location/provider/ActivityRecognitionProviderWatcher.java | Java | apache-2.0 | 3,055 |
---
id: version-2.6.0-admin-api-brokers
title: Managing Brokers
sidebar_label: Brokers
original_id: admin-api-brokers
---
Pulsar brokers consist of two components:
1. An HTTP server exposing a {@inject: rest:REST:/} interface administration and [topic](reference-terminology.md#topic) lookup.
2. A dispatcher that hand... | massakam/pulsar | site2/website/versioned_docs/version-2.6.0/admin-api-brokers.md | Markdown | apache-2.0 | 4,711 |
/*
* Copyright (c) 2008-2017, 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 ... | tombujok/hazelcast | hazelcast/src/test/java/com/hazelcast/internal/adapter/ICacheReplaceEntryProcessor.java | Java | apache-2.0 | 1,482 |
/*<license>
Copyright 2005 - $Date$ by PeopleWare n.v..
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... | jandppw/ppwcode-recovered-from-google-code | java/vernacular/persistence/dev/d20081014-1359/src/main/java/org/ppwcode/vernacular/persistence_III/AbstractPersistentBean.java | Java | apache-2.0 | 2,465 |
/*
* Copyright (c) 2019 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_ARCH_X86_MULTIBOOT_H_
#define ZEPHYR_INCLUDE_ARCH_X86_MULTIBOOT_H_
#ifndef _ASMLANGUAGE
/*
* Multiboot (version 1) boot information structure.
*
* Only fields/values of interest to Zephyr are enumerated... | zephyrproject-rtos/zephyr | include/arch/x86/multiboot.h | C | apache-2.0 | 2,729 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | Brocade-OpenSource/OpenStack-DNRM-Neutron | neutron/db/migration/alembic_migrations/versions/3b54bf9e29f7_nec_plugin_sharednet.py | Python | apache-2.0 | 2,645 |
/*
* Copyright Terracotta, 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 ... | aurbroszniowski/ehcache3 | impl/src/main/java/org/ehcache/config/builders/CacheManagerBuilder.java | Java | apache-2.0 | 17,637 |
/*
* 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.datafeed;
import org.elast... | ern/elasticsearch | x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/datafeed/DelayedDataCheckConfigTests.java | Java | apache-2.0 | 4,017 |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... | braaad/RakNet | DependentExtensions/Swig/SwigWindowsCSharpSample/SwigTestApp/SwigFiles/Router2DebugInterface.cs | C# | bsd-2-clause | 1,592 |
class ArgpStandalone < Formula
desc "Standalone version of arguments parsing functions from GLIBC"
homepage "https://www.lysator.liu.se/~nisse/misc/"
url "https://www.lysator.liu.se/~nisse/misc/argp-standalone-1.3.tar.gz"
sha256 "dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be"
livecheck do
... | jabenninghoff/homebrew-core | Formula/argp-standalone.rb | Ruby | bsd-2-clause | 1,832 |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-html-like-comments
description: SingleLineHTMLOpenComment
info: |
Comment ::
MultiLineComment
SingleLineComment
SingleLineHTMLOpenComment
... | sebastienros/jint | Jint.Tests.Test262/test/annexB/language/comments/single-line-html-open.js | JavaScript | bsd-2-clause | 1,179 |
class SwaggerCodegenAT2 < Formula
desc "Generate clients, server stubs, and docs from an OpenAPI spec"
homepage "https://swagger.io/swagger-codegen/"
url "https://github.com/swagger-api/swagger-codegen/archive/v2.4.12.tar.gz"
sha256 "52a61b28a95a250fdbe7ef38ef9ea1116878b6271e768e054404336ab19f1c14"
bottle do... | BrewTestBot/homebrew-core | Formula/swagger-codegen@2.rb | Ruby | bsd-2-clause | 1,550 |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-%typedarray%.prototype.copywithin
description: >
Set values with out of bounds negative target argument.
info: |
22.2.3.5 %TypedArray%.prototype.copyWithin (targe... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/TypedArray/prototype/copyWithin/BigInt/negative-out-of-bounds-target.js | JavaScript | bsd-2-clause | 1,835 |
// -*- mode: C++ -*-
//
// Copyright (c) 2007, 2008, 2009, 2010, 2011 The University of Utah
// All rights reserved.
//
// This file is part of `csmith', a random generator of C programs.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following ... | DmitryOlshansky/dsmith | src/StatementBreak.h | C | bsd-2-clause | 2,629 |
class Travis < Formula
desc "Command-line client for Travis CI"
homepage "https://github.com/travis-ci/travis.rb/"
url "https://github.com/travis-ci/travis.rb/archive/v1.8.9.tar.gz"
sha256 "7a143bd0eb90e825370c808d38b70cca8c399c68bea8138442f40f09b6bbafc4"
revision 3
bottle do
sha256 "d695085c0886f6db8d... | adamliter/homebrew-core | Formula/travis.rb | Ruby | bsd-2-clause | 4,429 |
cask 'eclipse-installer' do
version :latest
sha256 :no_check
url 'http://eclipse.org/downloads/download.php?file=/oomph/products/eclipse-inst-mac64.tar.gz&r=1'
name 'Eclipse Installer'
homepage 'http://eclipse.org/'
license :eclipse
app 'Eclipse Installer.app'
depends_on :macos => '>= :leopard'
dep... | corbt/homebrew-cask | Casks/eclipse-installer.rb | Ruby | bsd-2-clause | 477 |
# Sample code from Programing Ruby, page 18
line = 'abc'
line.gsub(/Perl|Python/, 'Ruby')
| wkoszek/book-programming-ruby | src/ex0035.rb | Ruby | bsd-2-clause | 93 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.6-3-114
description: >
Object.defineProperty - 'configurable' property in 'Attributes' is
a Boolean object (8.10.5 step 4.b)
---*/
var obj = {};
Object.de... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js | JavaScript | bsd-2-clause | 629 |
cask :v1 => 'jenkins' do
version '1.639'
sha256 'be0637aa4b0078d3998d12d1e51ae9a79343d948d21c803a1d33855e94dade36'
url "http://mirrors.jenkins-ci.org/osx/jenkins-#{version}.pkg"
name 'Jenkins'
homepage 'https://jenkins-ci.org/'
license :mit
pkg "jenkins-#{version}.pkg"
binary '/Library/Application Sup... | brianshumate/homebrew-cask | Casks/jenkins.rb | Ruby | bsd-2-clause | 1,441 |
# Copyright (c) 2016 Ruslan Baratov
# All rights reserved.
# !!! DO NOT PLACE HEADER GUARDS HERE !!!
include(hunter_add_version)
include(hunter_cacheable)
include(hunter_download)
include(hunter_pick_scheme)
# https://dri.freedesktop.org/libdrm/
hunter_add_version(
PACKAGE_NAME
drm
VERSION
"2.4.67"
... | daminetreg/hunter | cmake/projects/drm/hunter.cmake | CMake | bsd-2-clause | 908 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.3-2-25
description: >
Object.getOwnPropertyDescriptor - argument 'P' is a number that
converts to a string (value is 1e-7)
---*/
var obj = {
"1e-7": 1
};... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js | JavaScript | bsd-2-clause | 425 |
/*
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include <boot/stage2.h>
#include <boot/shared/openfirmware.h>
#include <kernel/kernel.h>
#include <arch/cpu.h>
#include <libc/string.h>
#include "stage2_priv.h"
static unsigned int primary_hash(unsi... | dioptre/newos | boot/ppc/stage2_mmu.c | C | bsd-3-clause | 16,217 |
// Copyright Neil Groves 2009. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
//
// For more information, see http://www.boost.org/libs/range/
//
#ifndef BOOST_RANGE_DETAIL_... | lucadelu/PDAL | vendor/pdalboost/boost/range/detail/range_return.hpp | C++ | bsd-3-clause | 6,270 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/media/webmediaplayer_params.h"
#include "media/base/audio_renderer_sink.h"
#include "media/base/media_log.h"
namespace webkit_media... | codenote/chromium-test | webkit/media/webmediaplayer_params.cc | C++ | bsd-3-clause | 788 |
from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class PrintTests(TranspileTestCase):
def test_fileobj(self):
self.assertCodeExecution("""
class FileLikeObject:
def __init__(self):
self.buffer = ''
def write(self, content):
... | pombredanne/voc | tests/builtins/test_print.py | Python | bsd-3-clause | 1,816 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Forms :: submit input : float alongside inline content</title>
<style type="text/css">
form * {
font-family: Ahem;
font-size: 1em;
line-height: 1em;
}
fieldset, div {
color: #3366CC;
background-color: red;
padding: 0;
margin: 0;
border: non... | frivoal/presto-testo | core/standards/forms/input-submit-float-inline.html | HTML | bsd-3-clause | 920 |
/*
* Copyright (c) 2019, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | chshu/openthread | examples/platforms/k32w/k32w061/openthread-core-k32w061-config.h | C | bsd-3-clause | 5,242 |
<html>
<head>
<title>GB18030 lead 823191</title>
<meta http-equiv='content-type' content='text/html;charset=GB18030'>
<link rel='stylesheet' href='tests.css'>
</head>
<body>
<table>
<caption>Four-byte lead 823191</caption>
<tr><th colspan=2>GB18030<th colspan=3>Unicode
<tr><td>=82319130<td> 10 <t... | frivoal/presto-testo | imported/peter/unicode/comparative/GB18030-823191.html | HTML | bsd-3-clause | 1,896 |
<!doctype html>
<title>textarea resize | negative resize</title>
<style>
textarea {
width: 100px;
height: 100px;
}
</style>
<p>There should be a textarea below, with a resize handle visible in
the bottom right corner.</p>
<textarea></textarea>
<script src="resize.js"></script>
<script>
window.onloa... | frivoal/presto-testo | css/resize/textarea-6.html | HTML | bsd-3-clause | 436 |
/*
* FFV1 encoder template
*
* Copyright (c) 2003-2016 Michael Niedermayer <michaelni@gmx.at>
*
* This file is part of FFmpeg.
*
* FFmpeg 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
... | endlessm/chromium-browser | third_party/ffmpeg/libavcodec/ffv1enc_template.c | C | bsd-3-clause | 7,075 |
// Copyright 2009 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 runtime
import "unsafe"
// The calls to nop are to keep these functions from being inlined.
// If they are inlined we have no guarantee that later rew... | frobware/go | src/runtime/atomic_386.go | GO | bsd-3-clause | 1,585 |
/**
* License and Terms of Use
*
* Copyright (c) 2011 SignpostMarv
*
* 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, cop... | aurora-sim/Aurora-WebUI | www/worldmap/javascripts/mapapi.shape.js | JavaScript | bsd-3-clause | 12,790 |
{% extends "customer/baseaccountpage.html" %}
{% load i18n %}
{% block extra_breadcrumbs %}
<li>
<a href="{% url 'customer:notifications-inbox' %}">{% trans 'Notifications inbox' %}</a>
<span class="divider">/</span>
</li>
{% endblock %}
{% block tabcontent %}
<table class="table table-str... | marcoantoniooliveira/labweb | oscar/templates/oscar/customer/notifications/detail.html | HTML | bsd-3-clause | 1,304 |
// 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.
#ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
#define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
#include "base/basictypes.h"
#include "... | Pluto-tv/chromium-crosswalk | content/public/renderer/render_frame_observer.h | C | bsd-3-clause | 5,187 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Forms :: text input : float</title>
<style type="text/css">
form * {
font-family: Ahem;
font-size: 1em;
line-height: 1em;
}
fieldset, div {
background-color: red;
padding: 0;
margin: 1em;
border: none;
width: 2em;
height: 1em;
}
input, spa... | frivoal/presto-testo | core/standards/forms/input-text-float.html | HTML | bsd-3-clause | 852 |
<html>
<head>
<script>
function log(str)
{
var li = document.createElement("li");
li.appendChild(document.createTextNode(str));
var console = document.getElementById("console");
console.appendChild(li);
}
function assertEqual(message, actual, expected)
{
if (actual != expected)
log("\n" + m... | smishenk/blink-crosswalk | LayoutTests/http/tests/dom/location-stringify.html | HTML | bsd-3-clause | 1,068 |
using System;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.AcceptanceCriteria;
using FluentNHibernate.Conventions.Instances;
using FluentNHibernate.Conventions.Inspections;
using FluentNHibernate.Mapping;
using NUnit.Framework;
namespace FluentNHibernate.Testing.ConventionFinderTests
... | mtscout6/fluent-nhibernate | src/FluentNHibernate.Testing/ConventionFinderTests/AddingTypeTests.cs | C# | bsd-3-clause | 2,683 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
'use strict';
import type {Node} from 'React';
import {ActivityIndicator, StyleSheet, View} fr... | hoangpham95/react-native | packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js | JavaScript | bsd-3-clause | 3,613 |
for astTuple in Query.input.tuples('ast'):
if type(astTuple.ast) is Field:
modifiers = astTuple.ast.modifiers
nonFinalPublic = modifiers.isSet(Modifier.ModifierFlag.Public) and not modifiers.isSet(Modifier.ModifierFlag.Final)
if not nonFinalPublic:
Query.input.remove(astTuple)
Q... | Vaishal-shah/Envision | InformationScripting/scripts/evaluation/nonFinalPublic.py | Python | bsd-3-clause | 345 |
"""
This module contains some assorted functions used in tests
"""
from __future__ import absolute_import
import os
from importlib import import_module
from twisted.trial.unittest import SkipTest
from scrapy.exceptions import NotConfigured
from scrapy.utils.boto import is_botocore
def assert_aws_environ():
"""... | umrashrf/scrapy | scrapy/utils/test.py | Python | bsd-3-clause | 3,020 |
/*
* Copyright (c) 2015, Texas Instruments Incorporated - http://www.ti.com/
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copy... | MohamedSeliem/contiki | cpu/cc26xx-cc13xx/rf-core/smartrf-settings.c | C | bsd-3-clause | 6,889 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule takeSnapshot
* @flow
*/
'use strict';
const UIManager = require('UIManager');
const findNumericNodeHandle = require... | yangshun/react | src/renderers/native/takeSnapshot.js | JavaScript | bsd-3-clause | 1,528 |
<html>
<head>
<title>GB18030 lead 8136C8</title>
<meta http-equiv='content-type' content='text/html;charset=GB18030'>
<link rel='stylesheet' href='tests.css'>
</head>
<body>
<table>
<caption>Four-byte lead 8136C8</caption>
<tr><th colspan=2>GB18030<th colspan=3>Unicode
<tr><td>=8136C830<td> 6È0 <t... | frivoal/presto-testo | imported/peter/unicode/comparative/GB18030-8136c8.html | HTML | bsd-3-clause | 1,253 |
(function($, window, document) {
var pluginName = 'fatNav',
defaults = {};
function Plugin(options) {
this.settings = $.extend({}, defaults, options);
this._defaults = defaults;
this._name = pluginName;
this.init();
}
$.extend(Plugin.prototype, {
... | wangrunxinyes/sby | frontend/plugin/include/extensions/fullscren.choices/src/js/jquery.fatNav.js | JavaScript | bsd-3-clause | 2,044 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.