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 |
|---|---|---|---|---|---|
/****************************************************************************
*
* ftcglyph.h
*
* FreeType abstract glyph cache (specification).
*
* Copyright (C) 2000-2020 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
* modified, ... | Paulloz/godot | thirdparty/freetype/src/cache/ftcglyph.h | C | mit | 11,574 |
"use strict";var sjcl={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(a){this.toString=function(){return"CORRUPT: "+this.message};this.message=a},invalid:function(a){this.toString=function(){return"INVALID: "+this.message};this.message=a},bug:function(a){this.toString=function(){r... | 99xt/interns-portal | web/src/assets/script/sjcl.js | JavaScript | mit | 25,092 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title>CURLOPT_VERBOSE man page</title>
<meta name="generator" content="roffit">
<STYLE type="text/css">
P.level0 {
padding-left: 2em;
}
P.level1 {
padding-left: 4em;
}
P.level2 {
padding-left: 6em;... | iSCInc/cURL | v7.38.0/docs/libcurl/opts/CURLOPT_VERBOSE.html | HTML | mit | 2,300 |
// seedrandom.js
// Author: David Bau 12/25/2010
//
// Defines a method Math.seedrandom() that, when called, substitutes
// an explicitly seeded RC4-based algorithm for Math.random(). Also
// supports automatic seeding from local or network sources of entropy.
//
// Usage:
//
// <script src=http://davidbau.com/encod... | gswalden/jsdelivr | files/seedrandom/1.0.0/seedrandom.js | JavaScript | mit | 10,013 |
<?php
/**
* PHPExcel
*
* Copyright (c) 2006 - 2014 PHPExcel
*
* 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... | bjohare/cloughjordan.ie | wp-content/plugins/leaflet-maps-marker/inc/import-export/PHPExcel/Worksheet/CellIterator.php | PHP | cc0-1.0 | 4,109 |
package org.hamcrest.collection;
import org.hamcrest.AbstractMatcherTest;
import org.hamcrest.Matcher;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import static org.hamcrest.collection.IsMapContaining.hasValue;
public class IsMapContainingValueTest extends AbstractMatcherTest {
@... | jasonCarNormal0101/StockAdviser | lib/hamcrest-1.3/hamcrest-unit-test/src/main/java/org/hamcrest/collection/IsMapContainingValueTest.java | Java | epl-1.0 | 1,379 |
/*
* Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.... | Johnson-Chou/test | opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/mount/MountProviderService.java | Java | epl-1.0 | 1,359 |
/*
* fstat() - POSIX 1003.1b 5.6.2 - Get File Status
*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#if HAVE_CONF... | swordsmaster/waf | cpukit/libcsupport/src/fstat.c | C | gpl-2.0 | 1,347 |
/*
* drivers/power/mm8033_battery.c
*
* Gas Gauge driver for MITSUMI's MM8033A01
*
* Copyright (c) 2014, ASUSTek Inc.
*
* 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 ... | TheSSJ/android_kernel_asus_moorefield | drivers/power/ASUS_BATTERY/mm8033_battery.c | C | gpl-2.0 | 40,327 |
/*++
Copyright (c) Realtek Semiconductor Corp. All rights reserved.
Module Name:
RateAdaptive.c
Abstract:
Implement Rate Adaptive functions for common operations.
Major Change History:
When Who What
---------- --------------- -------------------------------
2011-08-12 Page Creat... | mozilla-b2g/kernel_flatfish | drivers/net/wireless/rtl8189es/hal/OUTSRC/rtl8188e/Hal8188ERateAdaptive.c | C | gpl-2.0 | 29,655 |
<?php // $Id: index.php,v 1.9.2.1 2008/05/02 04:07:29 dongsheng Exp $
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// ... | damasiorafael/inppnet | cursos/admin/xmldb/index.php | PHP | gpl-2.0 | 6,222 |
#!/usr/bin/env python
#
# asn2wrs.py
# ASN.1 to Wireshark dissector compiler
# Copyright 2004 Tomas Kukosa
#
# 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
# ... | weinrank/wireshark | tools/asn2wrs.py | Python | gpl-2.0 | 308,942 |
#include "Kinetostat.h"
#include "ATC_Error.h"
#include "ATC_Coupling.h"
#include "LammpsInterface.h"
#include "PerAtomQuantityLibrary.h"
#include "PrescribedDataManager.h"
#include "ElasticTimeIntegrator.h"
#include "TransferOperator.h"
using std::set;
using std::pair;
using std::string;
namespace ATC {
//-------... | sradl1981/LIGGGHTS-PUBLIC-ParScale | lib/atc/Kinetostat.cpp | C++ | gpl-2.0 | 89,062 |
// vm_ppc.c
// ppc dynamic compiler
#include "vm_local.h"
#pragma opt_pointer_analysis off
typedef enum {
R_REAL_STACK = 1,
// registers 3-11 are the parameter passing registers
// state
R_STACK = 3, // local
R_OPSTACK, // global
// constants
R_MEMBASE, // global
R_MEMMASK,
R_ASMCALL, // gl... | ouned/JK2-1.04 | qcommon/vm_ppc.cpp | C++ | gpl-2.0 | 43,229 |
/*
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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 ... | oneluiz/TrinityCore | src/server/scripts/Outland/zone_shadowmoon_valley.cpp | C++ | gpl-2.0 | 53,182 |
/* The IGEN simulator generator for GDB, the GNU Debugger.
Copyright 2002, 2007 Free Software Foundation, Inc.
Contributed by Andrew Cagney.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published... | ghmajx/asuswrt-merlin | release/src/router/gdb/sim/igen/gen-idecode.h | C | gpl-2.0 | 1,512 |
<?php
$date_format = array(
'mdy' => 'mm/dd/yy',
'mdy_dash' => 'mm-dd-yy',
'mdy_dot' => 'mm.dd.yy',
'dmy' => 'dd/mm/yy',
'dmy_dash' => 'dd-mm-yy',
'dmy_dot' => 'dd.mm.yy',
'ymd_slash' => 'yy/mm/dd',
'ymd_dash' => 'yy-mm-dd',
'ymd_dot' => 'yy.mm... | nbrouse-deep/chefmatefrontburner_com | wp-content/plugins/pods/ui/fields/date.php | PHP | gpl-2.0 | 4,099 |
/*
* Version macros.
*
* This file is part of libswresample
*
* libswresample 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 v... | ztwireless/obs-studio | win_deps_vs2015/win64/include/libswresample/version.h | C | gpl-2.0 | 1,718 |
#logo {
background-image: url("/images/logo.png"); }
* html #logo {
background-image: url("/images/logo.gif"); } | benlimdesign/benlimdesign | wp-content/themes/hi-response-single/inc/wp-sass/phpsass/tests/mixin-content.css | CSS | gpl-2.0 | 114 |
#!/usr/bin/python
# Generate GLib GInterfaces from the Telepathy specification.
# The master copy of this program is in the telepathy-glib repository -
# please make any changes there.
#
# Copyright (C) 2006, 2007 Collabora Limited
#
# This library is free software; you can redistribute it and/or
# modify it under the... | JGulic/empathy | tools/glib-gtypes-generator.py | Python | gpl-2.0 | 12,522 |
/*
* Copyright (c) 2004, 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 Softwa... | kgilmer/openjdk-7-mermaid | src/share/native/sun/java2d/loops/TransformHelper.c | C | gpl-2.0 | 30,901 |
/**
* Copyright (c) 2009--2012 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | aronparsons/spacewalk | java/code/src/com/redhat/rhn/frontend/servlets/PxtCookieManager.java | Java | gpl-2.0 | 3,631 |
<?php
/**
*
* Please see single-event.php in this directory for detailed instructions on how to use and modify these templates.
*
*/
?>
<script type="text/html" id="tribe_tmpl_month_mobile_day_header">
<div class="tribe-mobile-day" data-day="[[=date]]">[[ if(date_name.length) { ]]
<h3 class="tribe-mobile-day-... | Owchzzz/Militiatoday | wp-content/plugins/the-events-calendar/views/month/mobile.php | PHP | gpl-2.0 | 1,443 |
/*
* Copyright (C) 2007-2009 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* 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
* published by the Free Software Foundation.
*
* This program is distributed in the hope that... | rhuitl/uClinux | user/clamav/clamscan/manager.h | C | gpl-2.0 | 878 |
<?php
class RevSliderAdmin extends UniteBaseAdminClassRev{
const DEFAULT_VIEW = "sliders";
const VIEW_SLIDER = "slider";
const VIEW_SLIDER_TEMPLATE = "slider_template";
const VIEW_SLIDERS = "sliders";
const VIEW_SLIDES = "slides";
const VIEW_SLIDE = "slide";
/**
*
* the constructor... | DigitalBrainSwitch/liveserver | wp-content/plugins/revslider/revslider_admin.php | PHP | gpl-2.0 | 20,042 |
/*
* 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... | Puja-Mishra/Android_FreeChat | Telegram-master/TMessagesProj/src/main/java/org/telegram/messenger/exoplayer/text/CaptionStyleCompat.java | Java | gpl-2.0 | 5,086 |
#include "disablepostprocessing.h"
bool Settings::DisablePostProcessing::enabled = false;
void DisablePostProcessing::BeginFrame()
{
*s_bOverridePostProcessingDisable = Settings::DisablePostProcessing::enabled;
}
| DankPaster/SlashHook | src/Hacks/disablepostprocessing.cpp | C++ | gpl-3.0 | 216 |
@media screen {
.markItUpHeader{text-align:left}
.float-l{float:left}
.form-suggest{height:200px;background:#DEE2D0;vertical-align:top}
.form-input input{font-size:10px}
}
@media print {
.hide{display:none}
}
@media screen {
.form-input textarea{font-size:11px;width:350px}
.form-label{font-size:10px;font-weight:700;lin... | phenix-factory/fci-obedience | plugins-dist/compresseur/tests/css/expected_more_screen.css | CSS | gpl-3.0 | 4,682 |
#!/bin/sh
set -eu
platform="$1"
env
cd ~/
if [ "${platform}" = "freebsd" ]; then
while true; do
env ASSUME_ALWAYS_YES=YES pkg bootstrap && \
pkg install -y \
bash \
curl \
gtar \
python \
py27-Jinja2 \
py27-virtualenv \
... | trondhindenes/ansible | test/runner/setup/remote.sh | Shell | gpl-3.0 | 2,489 |
<?php
return [
'user:add' => [
'description' => 'Füge einen lokalen Benutzer hinzu. Sie können sich nur einloggen wenn die Authentifizierung auf MySQL gesetzt ist',
'arguments' => [
'username' => 'Die Authentifizierung mit der sich der Benutzer einloggt',
],
'options' =>... | nwautomator/librenms | resources/lang/de/commands.php | PHP | gpl-3.0 | 926 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
\\/ M anipulation |
--------... | adrcad/OpenFOAM-2.3.x | applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControl/cellShapeControlI.H | C++ | gpl-3.0 | 2,031 |
-----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Chegourt, R.K.
-- Type: Outpost Conquest Guards
-- @pos -295 16 418 119
-------------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
--------------------------------------
require("scripts/globals/... | Igdra/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Chegourt_RK.lua | Lua | gpl-3.0 | 3,350 |
package com.temenos.interaction.core.hypermedia;
/*
* #%L
* interaction-core
* %%
* Copyright (C) 2012 - 2013 Temenos Holdings N.V.
* %%
* This program 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 Found... | schwadorf/IRIS | interaction-core/src/test/java/com/temenos/interaction/core/hypermedia/TestBean.java | Java | agpl-3.0 | 1,065 |
odoo.define('iap.CrashManager', function (require) {
"use strict";
var ajax = require('web.ajax');
var core = require('web.core');
var CrashManager = require('web.CrashManager');
var Dialog = require('web.Dialog');
var _t = core._t;
var QWeb = core.qweb;
CrashManager.include({
/**
* @override
*/
rp... | maxive/erp | addons/iap/static/src/js/crash_manager.js | JavaScript | agpl-3.0 | 1,778 |
# -*- coding: utf-8 -*-
import json
from odoo import fields
def monkey_patch(cls):
""" Return a method decorator to monkey-patch the given class. """
def decorate(func):
name = func.__name__
func.super = getattr(cls, name, None)
setattr(cls, name, func)
return func
return... | Aravinthu/odoo | addons/base_sparse_field/models/fields.py | Python | agpl-3.0 | 2,668 |
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2014, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreech... | sebkur/JFreeChart | src/main/java/org/jfree/data/time/Hour.java | Java | lgpl-3.0 | 15,848 |
package com.netflix.exhibitor.core.automanage;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.netflix.exhibitor.core.Exhibitor;
import com.netflix.exhibitor.core.config.IntConfigs;
import com.netflix.exhibitor.core.entities.ServerStatus;
import com.netflix.exhibitor.core.stat... | robzienert/exhibitor | exhibitor-core/src/main/java/com/netflix/exhibitor/core/automanage/FlexibleEnsembleBuilder.java | Java | apache-2.0 | 3,513 |
/*
**********************************************************************************************
*
* 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... | guiquanz/seldon-server | offline-jobs/spark/src/main/scala/io/seldon/spark/features/XORShiftRandom.scala | Scala | apache-2.0 | 2,787 |
/*
* Copyright 2009 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 ... | varshluck/closure-stylesheets | tests/com/google/common/css/SplittingSubstitutionMapTest.java | Java | apache-2.0 | 1,762 |
/*
* 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 ... | CesarPantoja/jena | jena-sdb/src/main/java/org/apache/jena/sdb/core/SDBConstants.java | Java | apache-2.0 | 1,368 |
package io.dropwizard.jetty;
import com.codahale.metrics.Timer;
import org.eclipse.jetty.io.Connection;
import org.eclipse.jetty.io.EndPoint;
import org.eclipse.jetty.server.ConnectionFactory;
import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.util.component.ContainerLifeCycle;
import java.util.List;... | shawnsmith/dropwizard | dropwizard-jetty/src/main/java/io/dropwizard/jetty/Jetty93InstrumentedConnectionFactory.java | Java | apache-2.0 | 1,938 |
/*<license>
Copyright 2004, PeopleWare n.v.
NO RIGHTS ARE GRANTED FOR THE USE OF THIS SOFTWARE, EXCEPT, IN WRITING,
TO SELECTED PARTIES.
</license>*/
package be.peopleware.jsf_II.i18n;
import java.io.Serializable;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import be.peoplewar... | jandppw/ppwcode-recovered-from-google-code | _purgatory/java/jsf/trunk/src/java/be/peopleware/jsf_II/i18n/JsfResourceBundleLoadStrategy.java | Java | apache-2.0 | 2,141 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Syste... | bbarry/roslyn | src/Compilers/CSharp/Portable/CommandLine/CSharpCompiler.cs | C# | apache-2.0 | 14,211 |
// rustfmt-indent_style: Block
// Function arguments layout
fn lorem() {}
fn lorem(ipsum: usize) {}
fn lorem(ipsum: usize, dolor: usize, sit: usize, amet: usize, consectetur: usize, adipiscing: usize, elit: usize) {
// body
}
// #1441
extern "system" {
pub fn GetConsoleHistoryInfo(console_history_info: *mut... | graydon/rust | src/tools/rustfmt/tests/source/configs/indent_style/block_args.rs | Rust | apache-2.0 | 760 |
/**
* 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... | punkhorn/camel-upstream | components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/ConsulEventProducer.java | Java | apache-2.0 | 2,439 |
/***************************************************************************//**
* @file
* @brief Peripheral Reflex System (PRS) peripheral API
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
*************... | mbedmicro/mbed | targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_prs.h | C | apache-2.0 | 22,065 |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
... | weolar/miniblink49 | third_party/WebKit/Source/core/html/FormAssociatedElement.h | C | apache-2.0 | 5,279 |
# PnP Unit Test report for OnPremCred on Monday, July 6, 2015 #
This page is showing the results of the PnP unit test run.
## Test configuration ##
This report contains the unit test results from the following run:
Parameter | Value
----------|------
PnP Unit Test configuration | OnPremCred
Test run date | Monday, Ju... | baldswede/PnP | OfficeDevPnP.Core/UnitTestResults/PnPUnitTestResults-20150706-OnPremCred-635718204412088183.md | Markdown | apache-2.0 | 35,317 |
package dockerclient
import (
"bytes"
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strconv"
"strings"
"sync/atomic"
"time"
)
const (
APIVersion = "v1.15"
)
var (
ErrNotFound = errors.New("Not found")
defaultTimeout = 30 * time.Second
)
type DockerClient struct ... | iamjakob/shipyard | controller/Godeps/_workspace/src/github.com/samalba/dockerclient/dockerclient.go | GO | apache-2.0 | 9,453 |
package fakegit // import "github.com/docker/docker/internal/test/fakegit"
import (
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"os/exec"
"path/filepath"
"github.com/docker/docker/internal/test"
"github.com/docker/docker/internal/test/fakecontext"
"github.com/docker/docker/internal/test/fakestorag... | anpingli/origin | vendor/github.com/docker/docker/internal/test/fakegit/fakegit.go | GO | apache-2.0 | 3,527 |
/*
* Copyright 2012 Netflix, 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 ... | wfxiang08/exhibitor | exhibitor-standalone/src/main/java/com/netflix/exhibitor/servlet/ExhibitorResourceConfig.java | Java | apache-2.0 | 4,452 |
#!/usr/bin/env python
# Copyright 2015 Netflix, 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 requ... | Netflix/sleepy-puppy | manage.py | Python | apache-2.0 | 7,364 |
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// 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 htt... | ygling2008/direct_edge_imu | thirdparty/igl/file_exists.cpp | C++ | apache-2.0 | 528 |
/* Copyright 2016 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 applicable law or a... | npuichigo/ttsflow | third_party/tensorflow/tensorflow/core/platform/profile_utils/cpu_utils_test.cc | C++ | apache-2.0 | 3,195 |
package build
import (
"testing"
"time"
kapi "k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned"
buildapi "github.com/openshift/origin/pkg/build/api"
)
func TestBuildStrategy(t *testing.T) {
ctx := kapi.NewDefaultContext()
if !Strategy.NamespaceScoped() {
t.Errorf("Build is namespace scoped... | rhuss/gofabric8 | vendor/github.com/openshift/origin/pkg/build/registry/build/strategy_test.go | GO | apache-2.0 | 2,459 |
/*
* Copyright (c) 2018, NXP Semiconductors, Inc.
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fsl_tempmon.h"
/*******************************************************************************
* Definitions
**********************************************************************... | explora26/zephyr | ext/hal/nxp/mcux/drivers/imx/fsl_tempmon.c | C | apache-2.0 | 5,923 |
/**
* Copyright 2010 JBoss 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 ... | OnePaaS/jbpm | jbpm-flow/src/main/java/org/jbpm/process/instance/ProcessInstanceManager.java | Java | apache-2.0 | 1,454 |
/*
* Copyright (c) 2018, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-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/LICEN... | mbedmicro/mbed | connectivity/cellular/tests/UNITTESTS/framework/device/cellulardevice/cellulardevicetest.cpp | C++ | apache-2.0 | 8,498 |
package deploymentconfig
import (
"fmt"
"github.com/golang/glog"
kerrors "k8s.io/apimachinery/pkg/api/errors"
kmetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
klabels "k8s.io/apimachinery/pkg/labels"
kschema "k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
kutilerrors "k8s.io/apimachiner... | cdrage/kedge | vendor/github.com/openshift/origin/pkg/apps/controller/deploymentconfig/controller_ref_manager.go | GO | apache-2.0 | 7,081 |
// 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 "gtest_ppapi/gtest_instance.h"
#include "gtest_ppapi/gtest_runner.h"
#include "ppapi/cpp/var.h"
#if defined(WIN32)
#undef PostMessage
#endif... | plxaye/chromium | src/native_client_sdk/src/libraries/gtest_ppapi/gtest_instance.cc | C++ | apache-2.0 | 1,254 |
//
// Test robustness about JS injection in different place
//
// This assume malicious document arrive to the frontend.
//
casper.notebook_test(function () {
var messages = [];
this.on('remote.alert', function (msg) {
messages.push(msg);
});
this.evaluate(function () {
var cell = ... | unnikrishnankgs/va | venv/lib/python3.5/site-packages/notebook/tests/notebook/inject_js.js | JavaScript | bsd-2-clause | 650 |
cask 'pdfpenpro' do
version '923.0,1510025685'
sha256 'bcd9073dfce0b083d1ccd0e33deb5f60e6db4303608ac9d676bbe8537a66226b'
url "https://dl.smilesoftware.com/com.smileonmymac.PDFpenPro/#{version.before_comma}/#{version.after_comma}/PDFpenPro-#{version.before_comma}.zip"
appcast 'https://updates.smilesoftware.com/... | wKovacs64/homebrew-cask | Casks/pdfpenpro.rb | Ruby | bsd-2-clause | 537 |
// Copyright 2006-2013 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.
// This module contains the architecture-specific code. This make the rest of
// the code less dependent on differences between different processor... | CTSRD-SOAAP/chromium-42.0.2311.135 | v8/src/base/cpu.h | C | bsd-3-clause | 3,950 |
<!DOCTYPE html>
<html>
<head>
<title>Test asynchronous setServerCertificate while running garbage collection</title>
<script src="encrypted-media-utils.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
... | scheib/chromium | third_party/blink/web_tests/media/encrypted-media/encrypted-media-async-setcert-with-gc.html | HTML | bsd-3-clause | 1,083 |
package org.jbehave.core.steps;
import java.util.Map;
/**
* Represents a row in an {@link ExamplesTable}.
*/
public interface Row {
/**
* Returns the values as a Map, where the key is the column name and the value is the row value.
*
* @return The Map of values
*/
Map<String, String> v... | jeremiehuchet/jbehave-core | jbehave-core/src/main/java/org/jbehave/core/steps/Row.java | Java | bsd-3-clause | 331 |
extern const char g_GIT_SHA1[]; | mtCarto/PDAL | include/pdal/gitsha.h | C | bsd-3-clause | 31 |
<!DOCTYPE html>
<style>
#myheader
{
position: fixed;
top: 20px;
}
</style>
<script>
function runTest()
{
if (window.testRunner)
testRunner.setPrinting();
}
</script>
<body onload="runTest()">
<div id="myheader">
<div align="center">
crbug.com/652449: Fixed-position object sho... | scheib/chromium | third_party/blink/web_tests/printing/fixed-positioned-scrolled-expected.html | HTML | bsd-3-clause | 2,236 |
# encoding: utf-8
from django.core.management.base import NoArgsCommand
from optparse import make_option
from video.management.commands.sub_commands.AddVideo import AddVideo
class Command(NoArgsCommand):
option_list = NoArgsCommand.option_list + (
make_option('--video-link',action='store',dest='video-lin... | noamelf/Open-Knesset | video/management/commands/add_video.py | Python | bsd-3-clause | 1,246 |
/* 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... | chyyuu/mtcp | apps/apache_benchmark_deprecated/support/ab-multiple-files.c | C | bsd-3-clause | 91,857 |
<?php
$I = new CliGuy($scenario);
$I->wantTo('overwrite a file with CopyDir task');
$I->amInPath(codecept_data_dir() . 'sandbox');
$I->seeDirFound('some');
$I->seeFileFound('existing_file', 'some');
$I->taskCopyDir(['some' => 'some_destination'])
->run();
$I->seeFileFound('existing_file', 'some_destination/deeply'... | shaynekasai/ft | vendor/codegyre/robo/tests/cli/CopyDirOverwritesFilesCept.php | PHP | bsd-3-clause | 419 |
/* 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/. */
/*
* This file deals with PKCS #11 passwords and authentication.
*/
#include "seccomon.h"
#include "secmod.h"
#in... | wangscript/libjingle-1 | trunk/third_party/nss/nss/lib/pk11wrap/pk11auth.c | C | bsd-3-clause | 21,182 |
# Phalcon PHP Benchmarking Test
This is the Phalcon PHP portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
### JSON Encoding Test
Uses the PHP standard [JSON encoder](http://www.php.net/manual/en/function.json-encode.php).
* [JSON test controller](app/controllers/BenchContr... | lneves/FrameworkBenchmarks | frameworks/PHP/phalcon/README.md | Markdown | bsd-3-clause | 1,480 |
// Copyright 2018 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 "base/lazy_instance_helpers.h"
#include "base/at_exit.h"
#include "base/atomicops.h"
#include "base/threading/platform_thread.h"
namespace base... | endlessm/chromium-browser | base/lazy_instance_helpers.cc | C++ | bsd-3-clause | 2,679 |
// Type definitions for karma-remap-coverage 0.1
// Project: https://github.com/sshev/karma-remap-coverage#readme
// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.2
/// <reference t... | markogresak/DefinitelyTyped | types/karma-remap-coverage/index.d.ts | TypeScript | mit | 1,212 |
<div>
<table class="table table-striped" cellspacing="0 ">
<thead>
<tr data-bind="foreach: columns">
<th data-bind="text: headerText"></th>
</tr>
</thead>
<tbody class="table table-hover" data-bind="foreach: itemsOnCurrentPage">
<tr data-b... | welldone-software/gulp-durandal | test/fixtures/HTML Samples/app/ko/pagedGrid/simpleGrid.html | HTML | mit | 827 |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { Hero } from '../model/hero';
import { HeroService } from '../model/hero.service';
// #docregion prototype
@Injectable()
export class HeroDetailService {
constructor(private heroService: Her... | wKoza/angular | aio/content/examples/testing/src/app/hero/hero-detail.service.ts | TypeScript | mit | 821 |
# Adding a newssection or blog
Now that we've covered the main topics, let's have a look at some extra utilities bundles we've prepared. Since quite
a lot of the sites we make need some kind of news section - with news authors, news pages and a news overview page -
we decided to create a bundle to make implementing th... | jverdeyen/KunstmaanBundlesCMS | docs/content-management/adding-a-newssection-or-blog.md | Markdown | mit | 3,933 |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: DriveInfo
**
** <OWNER>[....]</OWNER>
**
**
** Purpose: Exposes routines for exploring a drive.
**
**
================================================... | sekcheong/referencesource | mscorlib/system/io/driveinfo.cs | C# | mit | 12,108 |
//
// Mail.cpp
//
// $Id: //poco/svn/Net/samples/SMTPLogger/src/SMTPLogger.cpp#1 $
//
// This sample demonstrates the SMTPChannel class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Net/MailMessage.h"
#inclu... | weinzierl-engineering/baos | thirdparty/poco/Net/samples/SMTPLogger/src/SMTPLogger.cpp | C++ | mit | 1,855 |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {$, browser, by, element, ExpectedConditions} from 'protractor';
import {verifyNoBrowserErrors} from '../../.... | JiaLiPassion/angular | packages/examples/core/animation/ts/dsl/e2e_test/animation_example_spec.ts | TypeScript | mit | 936 |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// Shared.cs
//
// <OWNER>[....]</OWNER>
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
... | sekcheong/referencesource | System.Core/System/Linq/Parallel/Utils/Shared.cs | C# | mit | 676 |
// # Surrounds given text with Markdown syntax
/*global $, CodeMirror, Showdown, moment */
(function () {
'use strict';
var Markdown = {
init : function (options, elem) {
var self = this;
self.elem = elem;
self.style = (typeof options === 'string') ? options : optio... | jamesyothers/Ghost | core/clientold/markdown-actions.js | JavaScript | mit | 5,697 |
//
// EchoServer.cpp
//
// $Id: //poco/1.4/Net/testsuite/src/EchoServer.cpp#1 $
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "EchoServer.h"
#include "Poco/Net/StreamSocket.h"
#include "Poco/Net/SocketAddress.h"
#i... | weinzierl-engineering/baos | thirdparty/poco/Net/testsuite/src/EchoServer.cpp | C++ | mit | 1,255 |
#ifndef __SVM_H
#define __SVM_H
enum {
INTERCEPT_INTR,
INTERCEPT_NMI,
INTERCEPT_SMI,
INTERCEPT_INIT,
INTERCEPT_VINTR,
INTERCEPT_SELECTIVE_CR0,
INTERCEPT_STORE_IDTR,
INTERCEPT_STORE_GDTR,
INTERCEPT_STORE_LDTR,
INTERCEPT_STORE_TR,
INTERCEPT_LOAD_IDTR,
INTERCEPT_LOAD_GDTR,
INTERCEPT_LOAD_LDTR,
INTERCEPT_LOA... | impedimentToProgress/UCI-BlueChip | snapgear_linux/linux-2.6.21.1/drivers/kvm/svm.h | C | mit | 7,902 |
/*
* QtWebKit-powered headless test runner using PhantomJS
*
* PhantomJS binaries: http://phantomjs.org/download.html
* Requires PhantomJS 1.6+ (1.7+ recommended)
*
* Run with:
* phantomjs runner.js [url-of-your-qunit-testsuite]
*
* e.g.
* phantomjs runner.js http://localhost/qunit/test/index.html
*/
/*... | greyhwndz/ember-sync | tests/runner.js | JavaScript | mit | 3,753 |
/**
* Copyright (c) 2010-2019 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | theoweiss/openhab2 | bundles/org.openhab.binding.nest/src/main/java/org/openhab/binding/nest/internal/data/Camera.java | Java | epl-1.0 | 7,310 |
#ifndef BOOST_ARCHIVE_DETAIL_POLYMORPHIC_OARCHIVE_ROUTE_HPP
#define BOOST_ARCHIVE_DETAIL_POLYMORPHIC_OARCHIVE_ROUTE_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER)
# pragma once
#endif
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// polymorphic_oa... | Cyberbeing/xy-VSFilter | src/thirdparty/boost_lib/boost/archive/detail/polymorphic_oarchive_route.hpp | C++ | gpl-2.0 | 6,467 |
/* Functional tests for the "target" attribute and pragma. */
/* { dg-do assemble { target { ! lp64 } } } */
/* { dg-require-effective-target target_attribute } */
/* { dg-options "-save-temps -mdebug -m31 -march=z10 -mtune=z13 -mstack-size=2048 -mstack-guard=16 -mbranch-cost=1 -mwarn-framesize=512 -mno-hard-dfp -mba... | Gurgel100/gcc | gcc/testsuite/gcc.target/s390/target-attribute/tattr-m31-28.c | C | gpl-2.0 | 17,909 |
/* vi: set sw=4 ts=4: */
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
#include "libbb.h"
#include <math.h>
//usage:#define dc_trivial_usage
//usage: "EXPRESSION..."
//usage:
//usage:#define dc_full_usage "\n\n"
//usage: "Tiny RPN calculator. Operations:\n"
//usage: ... | insane-adding-machines/busybox | miscutils/dc.c | C | gpl-2.0 | 5,182 |
/*
* Copyright Gavin Shan, IBM Corporation 2016.
*
* 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 later version.
*/
#include <... | codeaurora-unoffical/linux-msm | net/ncsi/ncsi-rsp.c | C | gpl-2.0 | 31,425 |
/*
* Copyright (c) 1997, 2015, 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 ... | gaoxiaojun/dync | src/share/vm/utilities/decoder.cpp | C++ | gpl-2.0 | 5,823 |
<?php
/**
* @package Joomla.Installation
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
jimport('joomla.application.component.view');
/**
* The HTML Joomla Core Pre-Ins... | SuperFamousGuy/AdLib | tmp/install_4f31d69ae5bd9/installation/views/preinstall/view.html.php | PHP | gpl-2.0 | 965 |
<?php
/**
* @package Warp Theme Framework
* @author YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
// check common
$this['check']->checkCommon();
// check writable
foreach (array($this['path']->path('cache:'), $this['path']->... | theluxdev/dorseys-before | wp-content/themes/yoo_solar_wp/warp/systems/wordpress/config/layouts/fields/check.php | PHP | gpl-2.0 | 1,164 |
/* Copyright (c) 2008-2015, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | MoKee/android_kernel_lge_msm8992 | drivers/gpu/msm/kgsl.c | C | gpl-2.0 | 127,230 |
#Makefile for CIB CAPI2 sources
#EXTRA_CFLAGS := -Werror
EXTRA_CFLAGS += -DUNDER_LINUX
EXTRA_CFLAGS += -DSTACK_wedge
obj-$(CONFIG_BRCM_FUSE_RIL_CIB) += \
capi2/cc/ \
capi2/gen/ \
capi2/lcs/ \
capi2/msc/ \
capi2/pch/ \
capi2/phonebk/ \
... | WinKarbik/android_kernel_samsung_amazing | modules/drivers/char/brcm/fuse_ril/CAPI2_CIB/Makefile | Makefile | gpl-2.0 | 506 |
// PR c++/70507 - integer overflow builtins not constant expressions
// { dg-do compile { target c++11 } }
#define SCHAR_MAX __SCHAR_MAX__
#define SHRT_MAX __SHRT_MAX__
#define INT_MAX __INT_MAX__
#define LONG_MAX __LONG_MAX__
#define LLONG_MAX __LONG_LONG_MAX__
#define SCHAR_MIN (-__SCHAR_MAX_... | mickael-guene/gcc | gcc/testsuite/g++.dg/cpp0x/constexpr-arith-overflow.C | C++ | gpl-2.0 | 7,125 |
(function ($) {
/*jslint undef: false, browser: true, devel: false, eqeqeq: false, bitwise: false, white: false, plusplus: false, regexp: false, nomen: false */
/*global jQuery,setTimeout,projekktor,location,setInterval,YT,clearInterval,pixelentity */
$.pixelentity = $.pixelentity || {version: '1.0.0'};
$.pixel... | Melanie27/oakwoodww-staging | wp-content/themes/visia/framework/js/pe/jquery.pixelentity.influxSlider.js | JavaScript | gpl-2.0 | 4,624 |
/*
Copyright_License {
XCSoar Glide Computer - http://www.xcsoar.org/
Copyright (C) 2000-2016 The XCSoar Project
A detailed list of copyright holders can be found in the file "AUTHORS".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
... | matthewturnbull/xcsoar | src/Atmosphere/CuSonde.hpp | C++ | gpl-2.0 | 2,856 |
/*
* Adaptec AAC series RAID controller driver
* (c) Copyright 2001 Red Hat Inc. <alan@redhat.com>
*
* based on the old aacraid driver that is..
* Adaptec aacraid device driver for Linux.
* Copyright (c) 2000 Adaptec, Inc. (aacraid@adaptec.com)
*
* This program is free software; you can redistribute it and/or m... | sensysnetworks/uClinux | linux-2.4.x/drivers/scsi/aacraid/aachba.c | C | gpl-2.0 | 53,599 |
/**
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita 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; eit... | erpcya/adempierePOS | posterita/posterita/src/main/org/posterita/beans/CashSummaryBean.java | Java | gpl-2.0 | 3,298 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.