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 |
|---|---|---|---|---|---|
/*
* 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 ... | cpcloud/arrow | java/gandiva/src/main/java/org/apache/arrow/gandiva/evaluator/Projector.java | Java | apache-2.0 | 15,856 |
/*
* 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 ... | davidkarlsen/camel | components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/PublishableStatus.java | Java | apache-2.0 | 1,877 |
/*
* MemTuple
*
* 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
*... | lavjain/incubator-hawq | src/backend/access/common/memtuple.c | C | apache-2.0 | 33,072 |
package v1
// This file contains methods that can be used by the go-restful package to generate Swagger
// documentation for the object types found in 'types.go' This file is automatically generated
// by hack/update-generated-swagger-descriptions.sh and should be run after a full build of OpenShift.
// ==== DO NOT ED... | jprukner/origin | pkg/cmd/server/api/v1/swagger_doc.go | GO | apache-2.0 | 63,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 ... | shakamunyi/beam | sdks/java/nexmark/src/main/java/org/apache/beam/sdk/nexmark/model/SellerPrice.java | Java | apache-2.0 | 2,739 |
/***************************************************************************//**
* \file cy_crypto_core_mem_v2.h
* \version 2.30.1
*
* \brief
* This file provides the headers for the string management API
* in the Crypto driver.
*
********************************************************************************
* Copy... | kjbracey-arm/mbed | targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/include/cy_crypto_core_mem_v2.h | C | apache-2.0 | 1,876 |
/*
* Copyright 2012-present Facebook, 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... | LegNeato/buck | test/com/facebook/buck/android/TestDevice.java | Java | apache-2.0 | 8,561 |
// RootFolder.cpp
#include "StdAfx.h"
#include "resource.h"
#include "RootFolder.h"
#include "Common/StringConvert.h"
#include "../../PropID.h"
#include "Windows/Defs.h"
#include "Windows/PropVariant.h"
#ifdef _WIN32
#include "FSDrives.h"
#include "PhysDriveFolder.h"
#include "NetFolder.h"
#endif
#include "SysIcon... | Nathaniel1990/Amendroid7z | jni/CPP/7zip/UI/FileManager/RootFolder.cpp | C++ | apache-2.0 | 6,589 |
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | gstevey/gradle | subprojects/model-core/src/main/java/org/gradle/model/internal/core/ModelViews.java | Java | apache-2.0 | 2,369 |
/*
* Copyright 2016-present 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 appli... | Phaneendra-Huawei/demo | utils/yangutils/src/test/java/org/onosproject/yangutils/parser/impl/listeners/ContainerListenerTest.java | Java | apache-2.0 | 9,156 |
---
layout: "docs_api"
version: "1.0.0-rc.5"
versionHref: "/docs"
path: "api/controller/ionicModal/"
title: "ionicModal"
header_sub_title: "Controller in module ionic"
doc: "ionicModal"
docType: "controller"
---
<div class="improve-docs">
<a href='http://github.com/driftyco/ionic/tree/master/js/angular/service/moda... | philmerrell/ionic-site | docs/1.0.0-rc.5/api/controller/ionicModal/index.md | Markdown | apache-2.0 | 3,233 |
/*
*
* Copyright 2017 gRPC 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 agree... | lovoo/drone-gcloud-helm | vendor/google.golang.org/grpc/status/status.go | GO | apache-2.0 | 6,405 |
#!/usr/bin/env python3
# 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 "Lic... | welikecloud/bigtop | bigtop-packages/src/charm/mahout/layer-mahout/tests/01-mahout-test.py | Python | apache-2.0 | 2,393 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>for_ Statement</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../../index.html" title... | NixaSoftware/CVis | venv/bin/libs/phoenix/doc/html/phoenix/modules/statement/for_statement.html | HTML | apache-2.0 | 6,896 |
#include "serializer/buf_ptr.hpp"
#include <algorithm>
#include "math.hpp"
buf_ptr_t buf_ptr_t::alloc_uninitialized(block_size_t size) {
guarantee(size.ser_value() != 0);
const size_t count = compute_aligned_block_size(size);
buf_ptr_t ret;
ret.block_size_ = size;
ret.ser_buffer_ = scoped_device_... | JackieXie168/rethinkdb | src/serializer/buf_ptr.cc | C++ | apache-2.0 | 3,100 |
/*global define*/
define([
'./Cartesian2',
'./defaultValue',
'./defined',
'./defineProperties',
'./DeveloperError',
'./Ellipsoid',
'./GeographicProjection',
'./Math',
'./Rectangle'
], function(
Cartesian2,
defaultValue,
... | ceos-seo/Data_Cube_v2 | ui/django_site_v2/data_cube_ui/static/assets/js/Cesium-1.23/Source/Core/GeographicTilingScheme.js | JavaScript | apache-2.0 | 9,369 |
/*
* 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 ... | nikhilvibhav/camel | catalog/camel-route-parser/src/test/java/org/apache/camel/parser/xml/XmlWithPrefixParseTreeTest.java | Java | apache-2.0 | 3,458 |
/*
* Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | maheshika/carbon-data | components/data-services/org.wso2.carbon.dataservices.core/src/main/java/org/wso2/carbon/dataservices/core/description/query/RdfFileQuery.java | Java | apache-2.0 | 3,616 |
/**
* 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... | lindzh/jstorm | jstorm-ui/src/main/java/com/alibaba/jstorm/ui/model/UIUserDefinedMetric.java | Java | apache-2.0 | 2,492 |
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-7-1 NU-LL first version
*/
#include "board.h"
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTyp... | nongxiaoming/rt-thread | bsp/stm32/stm32g070-st-nucleo/board/board.c | C | apache-2.0 | 2,138 |
// Copyright 2012 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 in ... | mbinge/gomock | mockgen/reflect.go | GO | apache-2.0 | 3,894 |
package org.zstack.simulator.storage.primary.nfs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.Reque... | fishky/zstack | simulator/simulatorImpl/src/main/java/org/zstack/simulator/storage/primary/nfs/NfsPrimaryStorageSimulator.java | Java | apache-2.0 | 16,116 |
/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.math.linearalgebra;
import org.apache.commons.lang.Validate;
import com.opengamma.analytics.math.matrix.DoubleMatrix1D;
import com.opengamma.analyt... | charles-cooper/idylfin | src/com/opengamma/analytics/math/linearalgebra/CholeskyDecompositionOpenGammaResult.java | Java | apache-2.0 | 3,730 |
/**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | ricepanda/rice-git3 | rice-framework/krad-sampleapp/web/src/it/java/org/kuali/rice/krad/labs/transactional/LabsLookupSecurityTravelAuthorizationDocumentAuthorizedAft.java | Java | apache-2.0 | 2,634 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Red Hat, 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
#
... | tylertian/Openstack | openstack F/nova/nova/tests/cert/test_rpcapi.py | Python | apache-2.0 | 3,147 |
package liquibase.integration.ant;
import liquibase.resource.ClassLoaderResourceAccessor;
import liquibase.resource.CompositeResourceAccessor;
import liquibase.resource.ResourceAccessor;
import org.apache.tools.ant.AntClassLoader;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Path;
import jav... | OculusVR/shanghai-liquibase | liquibase-core/src/main/java/liquibase/integration/ant/AntResourceAccessor.java | Java | apache-2.0 | 1,460 |
# -*- coding: utf-8 -*-
# Copyright 2011 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 require... | fishjord/gsutil | gslib/commands/rm.py | Python | apache-2.0 | 15,054 |
#!/usr/bin/env python
''' Interact with Trello API as a CLI or Sopel IRC bot module '''
import argparse
from datetime import date
from email.mime.text import MIMEText
import json
import os
import re
import smtplib
import sys
# sopel is only for IRC bot installation. Not required for CLI
try:
import sopel.module ... | appuio/ansible-role-openshift-zabbix-monitoring | vendor/openshift-tools/openshift_tools/ircbot/trello/trello.py | Python | apache-2.0 | 16,279 |
package epic.trees
/*
Copyright 2012 David Hall
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... | maxim-rabinovich/epic | src/main/scala/epic/trees/UnaryChainCollapser.scala | Scala | apache-2.0 | 1,948 |
/*
* 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 ... | DariusX/camel | components/camel-iec60870/src/main/java/org/apache/camel/component/iec60870/ObjectAddress.java | Java | apache-2.0 | 3,804 |
/*
* Copyright 2000-2016 Vaadin 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 to... | Darsstar/framework | server/src/main/java/com/vaadin/server/communication/PushConnection.java | Java | apache-2.0 | 1,860 |
/*
* 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 ... | Aegeaner/spark | sql/core/src/test/scala/org/apache/spark/sql/sources/SaveLoadSuite.scala | Scala | apache-2.0 | 5,245 |
#
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | sh9189/ohai | spec/unit/plugins/solaris2/cpu_spec.rb | Ruby | apache-2.0 | 129,894 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="http://www.petercorke.com/RVC/common/toolboxhelp.css">
<title>M-File Help: plot2</title>
</head>
<body>
<table border="0" cellspacing="0" width="100%">
<tr class="subheader">
<td ... | sgabello1/calibration | vision/info/html/plot2.html | HTML | bsd-2-clause | 1,278 |
// FIXME add some error checking
// FIXME check order of async callbacks
/**
* @see http://mapbox.com/developers/api/
*/
goog.provide('ol.source.TileJSON');
goog.provide('ol.tilejson');
goog.require('goog.asserts');
goog.require('goog.net.Jsonp');
goog.require('ol.Attribution');
goog.require('ol.TileRange');
goog.... | das-peter/ol3 | src/ol/source/tilejsonsource.js | JavaScript | bsd-2-clause | 2,771 |
#pragma once
#include "Event.h"
#include "TaskQueue.h"
#include "PlotWindowOpenedBitmapType.h"
#include "ChannelOpenedLineType.h"
#include "ChannelOpenedText.h"
#include "GridAlg.h"
class PlotWindowOpenedLineType : public PlotWindowOpenedBitmapType
{
public:
PlotWindowOpenedLineType(std::shared_ptr<ProcessOpened>);
... | khldragon/Sora | DebugTool/source/DbgPlotViewer/PlotWindowOpenedLineType.h | C | bsd-2-clause | 2,115 |
/*
* Copyright (c) 2016, Zolertia <http://www.zolertia.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 copyright
* notic... | MohamedSeliem/contiki | examples/zolertia/zoul/test-ac-dimmer.c | C | bsd-3-clause | 4,053 |
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from grpc.framework.common import cardinality
from grpc.framework.interfaces.face import utilities as face_utilities
import google.cloud.proto.logging.v2.logging_metrics_pb2 as google_dot_cloud_dot_proto_dot_logging_dot_v2_dot_logging__m... | eoogbe/api-client-staging | generated/python/proto-google-cloud-logging-v2/google/cloud/proto/logging/v2/logging_metrics_pb2_grpc.py | Python | bsd-3-clause | 5,957 |
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// Sampler sampler N... | MIPS/external-chromium_org-third_party-angle | src/libGLESv2/renderer/d3d/d3d11/shaders/compiled/passthroughlum3d11ps.h | C | bsd-3-clause | 5,392 |
/*
* Copyright (c) 2013 Chun-Ying Huang
*
* This file is part of GamingAnywhere (GA).
*
* GA is free software; you can redistribute it and/or modify it
* under the terms of the 3-clause BSD License as published by the
* Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause
*
* GA is distr... | yunyu-Mr/gaminganywhere | ga/android/src/org/gaminganywhere/gaclient/util/GAControllerBasic.java | Java | bsd-3-clause | 3,268 |
// Copyright 2016 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.
// +build cgo
// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows
#include "libcgo.h"
// Releases the cgo traceback context.
void _cgo_re... | adamluo159/go | src/runtime/cgo/gcc_context.c | C | bsd-3-clause | 526 |
// 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.
// This file implements runtime support for signal handling.
//
// Most synchronization primitives are not available from
// the signal handler (it cannot block... | deft-code/go | src/runtime/sigqueue.go | GO | bsd-3-clause | 4,964 |
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using WebsitePanel.EnterpriseServer;
using WebsitePanel.WebDavPortal.WebConfigSections;
namespace WebsitePanel.WebDav.Core.Config.Entities
{
public class OfficeOnlineCollection : AbstractConfigCollection, IReadOnlyCollection<Of... | simonegli8/Websitepanel | WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/Entities/OfficeOnlineCollection.cs | C# | bsd-3-clause | 1,991 |
// Copyright (c) 2015, Outercurve Foundation.
// 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
// ... | simonegli8/Websitepanel | WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ScheduleTaskControls/BackupDatabase.ascx.cs | C# | bsd-3-clause | 4,108 |
extern "C" {
#include <linux/errno.h>
#include <linux/xxhash.h>
}
#include <gtest/gtest.h>
#include <array>
#include <iostream>
#include <memory>
#include <string>
#define XXH_STATIC_LINKING_ONLY
#include <xxhash.h>
using namespace std;
namespace {
const std::array<std::string, 11> kTestInputs = {
"",
"0",
"012... | mururu/zstd-erlang | priv/zstd/contrib/linux-kernel/test/XXHashUserlandTest.cpp | C++ | bsd-3-clause | 4,474 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | raspi/zfcomicengine | library/Zend/XmlRpc/Fault.php | PHP | bsd-3-clause | 8,035 |
/*
* OpenSeadragon - Rect
*
* Copyright (C) 2009 CodePlex Foundation
* Copyright (C) 2010-2013 OpenSeadragon contributors
*
* 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 ... | ricochet2200/openseadragon | src/rectangle.js | JavaScript | bsd-3-clause | 9,255 |
// +build OMIT
package main
import (
"bytes"
"fmt"
"io"
"os"
)
var (
_ = bytes.Buffer{}
_ = os.Stdout
)
// WriteCounter tracks the total number of bytes written.
type WriteCounter struct {
io.ReadWriter
count int
}
func (w *WriteCounter) Write(b []byte) (int, error) {
w.count += len(b)
return w.ReadWrite... | muzining/net | x/talks/2014/go4java/writecounter.go | GO | bsd-3-clause | 503 |
''' Test idlelib.debugger.
Coverage: 19%
'''
from idlelib import debugger
from test.support import requires
requires('gui')
import unittest
from tkinter import Tk
class NameSpaceTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.root = Tk()
cls.root.withdraw()
@classmethod
... | yotchang4s/cafebabepy | src/main/python/idlelib/idle_test/test_debugger.py | Python | bsd-3-clause | 533 |
// Copyright (c) 2015, Outercurve Foundation.
// 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
// ... | simonegli8/Websitepanel | WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Statistics.ascx.designer.cs | C# | bsd-3-clause | 2,246 |
// 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.
#ifndef ASH_LAUNCHER_BACKGROUND_ANIMATOR_H_
#define ASH_LAUNCHER_BACKGROUND_ANIMATOR_H_
#include "ash/ash_export.h"
#include "base/basictypes.h"
#inc... | zcbenz/cefode-chromium | ash/launcher/background_animator.h | C | bsd-3-clause | 2,047 |
#!/usr/bin/env python
'''Test RGBA load using the platform decoder (QuickTime, Quartz, GDI+ or Gdk).
You should see the rgba.png image on a checkboard background.
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import unittest
import base_load
import sys
if sys.platform == 'linux2':
... | mpasternak/pyglet-fix-issue-518-522 | tests/image/PLATFORM_RGBA_LOAD.py | Python | bsd-3-clause | 963 |
// Copyright (c) 2015, Outercurve Foundation.
// 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
// ... | titan68/Websitepanel | WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ExchangeMailboxPlanRetentionPolicyTag.cs | C# | bsd-3-clause | 2,784 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_SHELL_BROWSER_SHELL_CONTENT_INDEX_PROVIDER_H_
#define CONTENT_SHELL_BROWSER_SHELL_CONTENT_INDEX_PROVIDER_H_
#include <map>
#include <stri... | chromium/chromium | content/shell/browser/shell_content_index_provider.h | C | bsd-3-clause | 2,009 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
namespace Orchard.UI.Navigation {
public static class NavigationHelper {
/// <summary>
/// Populates the menu shapes.
/// </summary>
/// <param name="shapeFac... | AEdmunds/beautiful-springtime | src/Orchard/UI/Navigation/NavigationHelper.cs | C# | bsd-3-clause | 10,472 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GIOError</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="GIO Reference Manual">
<link rel="up" href... | bamos/parsec-benchmark | pkgs/libs/glib/src/docs/reference/gio/html/gio-GIOError.html | HTML | bsd-3-clause | 13,257 |
Ext.define("Ext.menu.Separator",{extend:"Ext.menu.Item",alias:"widget.menuseparator",canActivate:false,focusable:false,hideOnClick:false,plain:true,separatorCls:Ext.baseCSSPrefix+"menu-item-separator",text:" ",beforeRender:function(a,c){var b=this;b.callParent();b.addCls(b.separatorCls)}}); | AdenKejawen/erp | web/assets/extjs/src/menu/Separator.js | JavaScript | mit | 296 |
/*
* Altera SoCFPGA SDRAM configuration
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __SOCFPGA_SDRAM_CONFIG_H__
#define __SOCFPGA_SDRAM_CONFIG_H__
/* SDRAM configuration */
#define CONFIG_HPS_SDR_CTRLCFG_CPORTRDWR_CPORTRDWR 0x5A56A
#define CONFIG_HPS_SDR_CTRLCFG_CPORTRMAP_CPORTRMAP 0xB00088
#define CONF... | guileschool/beagleboard | u-boot/board/aries/mcvevk/qts/sdram_config.h | C | mit | 9,257 |
require "vagrant/util/retryable"
module VagrantPlugins
module GuestLinux
module Cap
class NFS
extend Vagrant::Util::Retryable
def self.nfs_client_installed(machine)
machine.communicate.test("test -x /sbin/mount.nfs")
end
def self.mount_nfs_folder(machine, ip, fol... | kamazee/vagrant | plugins/guests/linux/cap/nfs.rb | Ruby | mit | 1,925 |
package goja
import (
"math"
)
func (r *Runtime) math_abs(call FunctionCall) Value {
return floatToValue(math.Abs(call.Argument(0).ToFloat()))
}
func (r *Runtime) math_acos(call FunctionCall) Value {
return floatToValue(math.Acos(call.Argument(0).ToFloat()))
}
func (r *Runtime) math_asin(call FunctionCall) Value... | HeavyHorst/remco | vendor/github.com/dop251/goja/builtin_math.go | GO | mit | 5,602 |
<?php
/**
* LICENSE: The MIT License (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://github.com/azure/azure-storage-php/LICENSE
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the L... | deploycode/hds-hablemosdesalud-app | web/plugins/ckfinder/core/connector/php/vendor/microsoft/azure-storage/src/Blob/Models/GetContainerACLResult.php | PHP | mit | 3,349 |
'use strict';
/* globals getInputCompileHelper: false */
describe('ngModel', function() {
describe('NgModelController', function() {
/* global NgModelController: false */
var ctrl, scope, ngModelAccessor, element, parentFormCtrl;
beforeEach(inject(function($rootScope, $controller) {
var attrs = ... | m-amr/angular.js | test/ng/directive/ngModelSpec.js | JavaScript | mit | 75,252 |
module("Director.js", {
setup: function() {
window.location.hash = "";
shared = {};
},
teardown: function() {
window.location.hash = "";
shared = {};
}
});
var shared;
function createTest(name, config, use, test) {
if (typeof use === 'function') {
test = use;
use = undefined;
}
a... | lukemorton/director | test/browser/helpers/api.js | JavaScript | mit | 878 |
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator ... | c57fr/c57 | modules/system/lang/it/validation.php | PHP | mit | 4,997 |
import * as React from 'react';
import { SxProps } from '@material-ui/system';
import { InternalStandardProps as StandardProps } from '..';
import { FormLabelProps } from '../FormLabel';
import { Theme } from '../styles';
export interface InputLabelProps extends StandardProps<FormLabelProps> {
/**
* The content o... | callemall/material-ui | packages/material-ui/src/InputLabel/InputLabel.d.ts | TypeScript | mit | 2,907 |
<!DOCTYPE html>
<title>Canvas tests - 2d.path.clip.winding.*</title>
<link rel="stylesheet" href="../frame.css">
<p><a href="index.html">[index]</a>
<h1><a href="index.2d.html">2d</a>.<a href="index.2d.path.html">path</a>.<a href="index.2d.path.clip.html">clip</a>.winding.*</h1>
<p>
<iframe width="200" height="220" src... | corbanbrook/webgl-2d | test/philip.html5.org/tests/index.2d.path.clip.winding.html | HTML | mit | 500 |
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
export default class MdNfc extends React.Component<IconBaseProps, any> { }
| smrq/DefinitelyTyped | types/react-icons/md/nfc.d.ts | TypeScript | mit | 156 |
({"he":"עברית","hello":"שלום","yi":"Yiddish","en-us-texas":"English (Texas)","es":"Spanish","de":"German","pl":"Polish","hello_dojo":"${hello}, ${dojo}!","fa":"Farsi","pt":"Portugese","zh-tw":"Chinese (Traditional)","sw":"Kiswahili","ar":"Arabic","en-us-new_york-brooklyn":"English (Brooklynese)","ru":"Russian","fr":"Fr... | Goldcap/TAHealth | web/js/dojo/dojo/tests/nls/he/salutations.js | JavaScript | mit | 637 |
<html>
<head>
<link rel="stylesheet" href="../assets/javascripts/combine/combine.css">
<script src="../assets/javascripts/combine/combine.js"></script>
<!--
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="http://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1',... | boazsegev/facil.io | docs/_SOURCE/0.7.x/json_performance.html | HTML | mit | 51,780 |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Abp.Authorization;
using Abp.Domain.Uow;
using Abp.MultiTenancy;
using Abp.Zero.Configuration;
using Abp.Zero.SampleApp.MultiTenancy;
using Abp.Zero.SampleApp.Roles;
using Shouldly;
using Xunit;
namespace Abp.Zero.SampleApp.Tests.... | zclmoon/aspnetboilerplate | test/Abp.Zero.SampleApp.Tests/Roles/RoleManager_Tests.cs | C# | mit | 5,931 |
pre.sh_sourceCode {
background-color: #ffff80;
color: #2C7B34;
font-weight: normal;
font-style: normal;
}
pre.sh_sourceCode .sh_keyword {
color: #1d45d6;
font-weight: bold;
font-style: normal;
}
pre.sh_sourceCode .sh_type {
color: #ed0f55;
font-weight: bold;
font-style: normal;
}
... | djgguyon/share-price | web/css/shjs/sh_easter.css | CSS | mit | 2,581 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
#if FullNetFx || NETCOREAPP2_0
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using Xunit;
namespace... | brjohnstmsft/azure-sdk-for-net | sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication.Unit.Tests/AzureServiceTokenProviderExceptionTests.cs | C# | mit | 1,136 |
// @flow
// $ExpectError: No negative tests here
const skipNegativeTest: string = true;
var inquirer = require('inquirer');
var directionsPrompt = {
type: 'list',
name: 'direction',
message: 'Which direction would you like to go?',
choices: ['Forward', 'Right', 'Left', 'Back']
};
function main() {
console... | orlandoc01/flow-typed | definitions/npm/inquirer_v2.x.x/test_hierarchical_v2.x.x.js | JavaScript | mit | 2,347 |
// Type definitions for iScroll Lite 4.1
// Project: http://cubiq.org/iscroll-4
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface iScrollEvent {
(e: Event): void;
}
interface iScrollOptions {
hScroll?: boolean... | A11oW/DefinitelyTyped | iscroll/iscroll-lite.d.ts | TypeScript | mit | 1,251 |
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using OpenOrderFramework.Configuration;
using OpenOrderFramework.Models;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace... | BITS-CO-ID/bits-shop | OpenOrderFramework/Controllers/CheckoutController.cs | C# | mit | 5,400 |
{% extends "layout.html" %}
{% block head %}
{% include "includes/head.html" %}
<script>
var commitmentListSource = 'provider';
var employerOrNot = JSON.parse(localStorage.getItem('commitments.isEmployer'));
var deletedUser = JSON.parse(localStorage.getItem('commitments.deletedUserAlert... | SkillsFundingAgency/das-alpha-ui | app/views/programmeTen/contracts/provider-in-progress/provider-list-funding-cap-limit copy.html | HTML | mit | 14,565 |
<?php
/**
* Do not edit this file. Edit the config files found in the config/ dir instead.
* This file is required in the root directory so WordPress can find it.
* WP is hardcoded to look in its own directory or one directory up for wp-config.php.
*/
require_once dirname(__DIR__) . '/vendor/autoload.php';
require_... | OurWorldInData/owid-grapher | wordpress/web/wp-config.php | PHP | mit | 413 |
/**
* Module dependencies.
*/
var express = require('../../');
var cookie-parser = require('cookie-parser');
var app = module.exports = express();
// pass a secret to cookieParser() for signed cookies
app.use(cookieParser('manny is cool'));
// add req.session cookie support
app.use(cookieSession());
// do someth... | NickHeiner/express | examples/cookie-sessions/index.js | JavaScript | mit | 644 |
.angularjs-datetime-picker {
color: #333;
font: normal 14px sans-serif;
border: 1px solid #ddd;
display: inline-block;
background: #fff;
}
.angularjs-datetime-picker > .adp-month {
text-align: center;
line-height: 22px;
padding: 10px;
background: #fcfcfc;
text-transform: uppercase;
font-weight: bo... | kalyandechiraju/book-my-room | webapp/css/angularjs-datetime-picker.css | CSS | mit | 1,801 |
/*****************************************************************************
*
* Author: Kerri Shotts <kerrishotts@gmail.com>
* http://www.photokandy.com/books/mastering-phonegap
*
* MIT LICENSED
*
* Copyright (c) 2016 Kerri Shotts (photoKandy Studios LLC)
* Portions Copyright various third parties ... | kerrishotts/Mastering-PhoneGap-Code-Package | logology/src/www/js/lib/SoftKeyboard.js | JavaScript | mit | 13,763 |
import { ElementRef, Input, Component, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Calendar } from '@fullcalendar/core';
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === nul... | cdnjs/cdnjs | ajax/libs/primeng/9.0.3/fesm5/primeng-fullcalendar.js | JavaScript | mit | 4,135 |
## Summary of Changes in version 4.10 ##
Thanks to a full cast of contributors of bug fixes and new features.
A full summary of commits between 4.9 and 4.10 is on [github](https://github.com/junit-team/junit4/compare/r4.9...r4.10)
### junit-dep has correct contents ###
junit-dep-4.9.jar incorrectly contained hamcre... | junit-team/junit | doc/ReleaseNotes4.10.md | Markdown | epl-1.0 | 3,276 |
/**********************************************/
/* */
/* Font file generated by cpi2fnt */
/* */
/**********************************************/
static unsigned char font_8x8[] = {
/* 0 0x00 '^@' */
0x00, /* 00000000... | atmark-techno/atmark-dist | user/camserv/include/font_8x8.h | C | gpl-2.0 | 50,640 |
/**
@module Discourse
*/
var get = Ember.get, set = Ember.set;
var popstateFired = false;
var supportsHistoryState = window.history && 'state' in window.history;
// Thanks: https://gist.github.com/kares/956897
var re = /([^&=]+)=?([^&]*)/g;
var decode = function(str) {
return decodeURIComponent(str.replace(/\+/g,... | tomash/discoursebp | app/assets/javascripts/discourse/routes/discourse_location.js | JavaScript | gpl-2.0 | 5,680 |
CKEditor 4 Changelog
====================
## CKEditor 4.3 Beta
New Features:
* [#9764](http://dev.ckeditor.com/ticket/9764): Widget System.
* [Widget plugin](http://ckeditor.com/addon/widget) introducing the [Widget API](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget).
* New [`editor.enterMode`... | johnnywo/wohngesund-v2 | sites/all/libraries/ckeditor/CHANGES.md | Markdown | gpl-2.0 | 28,266 |
/* $Id$ */
/*
* Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.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 your option) any late... | xiejianying/pjsip | pjlib/include/pj/ssl_sock.h | C | gpl-2.0 | 38,046 |
/*
*/
#ifndef __ASMARM_SMP_PLAT_H
#define __ASMARM_SMP_PLAT_H
#include <asm/cputype.h>
/*
*/
static inline bool is_smp(void)
{
#ifndef CONFIG_SMP
return false;
#elif defined(CONFIG_SMP_ON_UP)... | holyangel/LGE_G3 | arch/arm/include/asm/smp_plat.h | C | gpl-2.0 | 978 |
<?php
/**
* @file
* Default simple view template to all the fields as a row.
*
* - $view: The view in use.
* - $fields: an array of $field objects. Each one contains:
* - $field->content: The output of the field.
* - $field->raw: The raw data for the field, if it exists. This is NOT output safe.
* - $fie... | SoloGabbo/demo | profiles/openatrium/modules/contrib/oa_core/modules/oa_news/templates/views-view-fields--open-atrium-news--oa-recent-news.tpl.php | PHP | gpl-2.0 | 2,455 |
/*
* Linux cfg80211 driver - Android related functions
*
* $Copyright Open Broadcom Corporation$
*
* $Id: wl_android.c 505064 2014-09-26 09:40:28Z $
*/
#include <linux/module.h>
#include <linux/netdevice.h>
#include <net/netlink.h>
#ifdef CONFIG_COMPAT
#include <linux/compat.h>
#endif
#include <wl_android.h>
#i... | shakalaca/ASUS_ZenFone_ZE500CL | linux/kernel/drivers/net/wireless/bcm4343s/src/wl_android.c | C | gpl-2.0 | 80,538 |
/* Copyright (C) 1997-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published b... | SanDisk-Open-Source/SSD_Dashboard | uefi/userspace/glibc/sysdeps/unix/sysv/linux/pread.c | C | gpl-2.0 | 1,923 |
/*
BlueZ - Bluetooth protocol stack for Linux
Copyright (C) 2000-2001 Qualcomm Incorporated
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
publis... | FireLord1/android_kernel_samsung_logan2g | include/net/bluetooth/hci.h | C | gpl-2.0 | 29,981 |
/*
This file is part of Cyclos (www.cyclos.org).
A project of the Social Trade Organisation (www.socialtrade.org).
Cyclos 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 th... | robertoandrade/cyclos | src/nl/strohalm/cyclos/dao/accounts/transactions/TransferAuthorizationDAO.java | Java | gpl-2.0 | 1,481 |
/****************************************************************************
**
** This file is part of the Qt Extended Opensource Package.
**
** Copyright (C) 2009 Trolltech ASA.
**
** Contact: Qt Extended Information (info@qtextended.org)
**
** This file may be used under the terms of the GNU General Public License
... | tsuibin/qtextended | src/libraries/qtopiacollective/qcollectivenamespace.cpp | C++ | gpl-2.0 | 2,534 |
/*
Copyright (C) 2009 - 2015 by Mark de Wever <koraq@xs4all.nl>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
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 ve... | drunklurker/wesnoth | src/gui/dialogs/campaign_selection.cpp | C++ | gpl-2.0 | 9,328 |
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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
... | Bytewerk/uClinux-ipcam | uClibc/include/utmp.h | C | gpl-2.0 | 3,604 |
/*
* Copyright (c) 2005, 2016, 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 ... | md-5/jdk10 | src/java.xml/share/classes/com/sun/xml/internal/stream/events/XMLEventAllocatorImpl.java | Java | gpl-2.0 | 11,632 |
/*
* Copyright (c) 2014 Google, Inc.
*
* Licensed under the terms of the GNU GPL License version 2
*
* Selftests for execveat(2).
*/
#define _GNU_SOURCE /* to get O_PATH, AT_EMPTY_PATH */
#include <sys/sendfile.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
#inclu... | longman88/qspinlock-v14 | tools/testing/selftests/exec/execveat.c | C | gpl-2.0 | 12,569 |
--[[
Luci statistics - processes plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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.... | Victek/wrt1900ac-aa | veriksystems/luci-0.11/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/processes.lua | Lua | gpl-2.0 | 2,234 |
<?php
/**
* Login form
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( is_user_logged_in() )
return;
?>
<form method="post" class="login" <?php if ( $hidden ) echo 'style="display:none;"'; ?>>
<?php do_act... | ntngiri/Wordpress-dhaba | wp-content/themes/themeSite1/woocommerce/global/form-login.php | PHP | gpl-2.0 | 1,667 |
/* Copyright (C) 2008-2017 Free Software Foundation, Inc.
Contributed by Richard Henderson <rth@redhat.com>.
This file is part of the GNU Transactional Memory Library (libitm).
Libitm is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published ... | mickael-guene/gcc | libitm/local.cc | C++ | gpl-2.0 | 3,638 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.