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 |
|---|---|---|---|---|---|
/* packet-paltalk.c
* Routines for Paltalk dissection
* Copyright 2005, Tim Hentenaar < tim at hentenaar dot com >
* Copyright 2008, Mohammad Ebrahim Mohammadi Panah < mebrahim at gmail dot com >
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
*... | jfzazo/wireshark-hwgen | src/epan/dissectors/packet-paltalk.c | C | gpl-2.0 | 4,631 |
// op_codes.h, 159 7
//
// operation codes for OS services, e.g., FileSys
// here are codes covering more than what we need
//
// op code is put into msg.nums[0] to send
// recipient checks, so to know what to do
#ifndef _OP_CODES_H_
#define _OP_CODES_H_
// -------------------- General Code ----------------------
#de... | danthemanvsqz/Operating_System_Pragramtics_CSUS | 159/A/op_codes.h | C | gpl-2.0 | 1,752 |
/*
* Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.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 ver... | cooler-SAI/TrinityCore434 | src/server/game/Entities/Pet/Pet.h | C | gpl-2.0 | 6,668 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | T0MM0R/magento | web/app/code/core/Mage/ProductAlert/Model/Email.php | PHP | gpl-2.0 | 8,161 |
/*
** file.cpp
**
** This file is part of mkxp.
**
** Copyright (C) 2013 Jonas Kulla <Nyocurio@gmail.com>
**
** mkxp 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... | Ancurio/mkxp-abs | binding-mruby/mrb-ext/file.cpp | C++ | gpl-2.0 | 12,649 |
/*
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
*
* 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
... | funjoker/TrinityCore | src/server/game/Movement/MovementGenerators/FollowMovementGenerator.h | C | gpl-2.0 | 1,974 |
/* Copyright (c) 2009-2010, Code Aurora Forum. 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 ho... | mtmichaelson/LG_Spectrum_Kernel | drivers/bluetooth/bluetooth-power.c | C | gpl-2.0 | 4,254 |
"""
A HTML5 target.
"""
from targets import _
from html import TYPE
import html
NAME = _('HTML5 page')
EXTENSION = 'html'
HEADER = """\
<!DOCTYPE html>
<html>
<head>
<meta charset="%(ENCODING)s">
<title>%(HEADER1)s</title>
<meta name="generator" content="http://txt2tags.org">
<link rel="stylesheet" href="%(STYLE)s"... | farvardin/txt2tags-test | targets/html5.py | Python | gpl-2.0 | 3,582 |
<?php
/*---------------------------------------------
*
* [raw]..[/raw]
*
* Protect shortcode content from wpautop and wptexturize
*
*/
function ccs_raw_format( $content ) {
$new_content = null;
$pattern_full = '{(\[raw\].*?\[/raw\])}is';
$pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
$pieces = preg_spl... | itercommunity/IterCommunity | wp-content/plugins/raw.php | PHP | gpl-2.0 | 725 |
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\GiftMessage\Block\Cart\Item\Renderer\Actions;
use Magento\Quote\Model\Quote\Item\AbstractItem;
class ItemIdProcessor implements LayoutProcessorInterface
{
/**
* Adds item ID to giftOption... | FPLD/project0 | vendor/magento/module-gift-message/Block/Cart/Item/Renderer/Actions/ItemIdProcessor.php | PHP | gpl-2.0 | 1,117 |
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\View\Element\Message\Renderer;
use Magento\Framework\Message\MessageInterface;
interface RendererInterface
{
/**
* Renders message
*
* @param MessageInterface $message... | FPLD/project0 | vendor/magento/framework/View/Element/Message/Renderer/RendererInterface.php | PHP | gpl-2.0 | 476 |
/*
* (C) Copyright 2010-2012
* NVIDIA Corporation <www.nvidia.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __TEGRA_COMMON_POST_H
#define __TEGRA_COMMON_POST_H
#ifndef CONFIG_SPL_BUILD
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 1) \
func(MMC, mmc, 0) \
func(USB, usb, 0) \
func(PXE, pxe, na) \... | dingguanliang/uboot2014formicro2440 | u-boot-2014.10/include/configs/tegra-common-post.h | C | gpl-2.0 | 2,797 |
//===-- BranchFolding.cpp - Fold machine code branch instructions ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | rutgers-apl/Atomicity-Violation-Detector | tdebug-llvm/llvm/lib/CodeGen/BranchFolding.cpp | C++ | gpl-2.0 | 70,187 |
// Copyright (C) 2011,2012 GlavSoft LLC.
// All rights reserved.
//
//-------------------------------------------------------------------------
// This file is part of the TightVNC software. Please visit our Web site:
//
// http://www.tightvnc.com/
//
// This program is free software; you can red... | Lacon-Computer/LC-RemoteHelp | viewer-core/PointerPosDecoder.cpp | C++ | gpl-2.0 | 1,282 |
<?php
/**
* JEvents Component for Joomla 1.5.x
*
* @version $Id: view.html.php 3155 2012-01-05 12:01:16Z geraintedwards $
* @package JEvents
* @copyright Copyright (C) 2008-2015 GWE Systems Ltd
* @license GNU/GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html
* @link http://www.jevents.net
... | githubupttik/upttik | components/com_jevents/views/flat/icalevent/view.html.php | PHP | gpl-2.0 | 1,562 |
#! /usr/bin/env bash
$XGETTEXT *.cpp -o $podir/randrmonitor.pot
| falbrechtskirchinger/kde-workspace | kcontrol/randr/module/Messages.sh | Shell | gpl-2.0 | 64 |
// $Id: ajax_view.js,v 1.13 2008/12/02 18:35:50 merlinofchaos Exp $
/**
* @file ajaxView.js
*
* Handles AJAX fetching of views, including filter submission and response.
*/
Drupal.Views.Ajax = Drupal.Views.Ajax || {};
/**
* An ajax responder that accepts a packet of JSON data and acts appropriately.
*
* The f... | pblasone/Lagervarer | sites/all/modules/views/js/ajax_view.js | JavaScript | gpl-2.0 | 6,006 |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License v2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
... | rot13/btrfs-progs | props.c | C | gpl-2.0 | 4,427 |
#adminmenu #toplevel_page_wps_overview_page div.wp-menu-image {
background: url("../images/icon.png") no-repeat scroll center center rgba(0, 0, 0, 0) !important;
}
#adminmenu #toplevel_page_wps_overview_page div.wp-menu-image:before {
content: "";
}
| xoyoc/xoyocNET | wp-content/plugins/wp-statistics/assets/css/admin-old.css | CSS | gpl-2.0 | 270 |
/** \file vp_api_lib_cfg.h
* vp_api_lib_cfg.h
*
* This file contains the default options for various libraries. In general
* the default options are same as top level API default options. However
* VP-API provides a mechanism to define default options that is different
* compared to top level default options. Thi... | ysleu/RTL8685 | uClinux-dist/linux-2.6.x/rtk_voip-single_cpu/voip_drivers/zarlink/api_lib-2.16.1/includes/vp_api_lib_cfg.h | C | gpl-2.0 | 4,737 |
// license:BSD-3-Clause
// copyright-holders:Mike Coates, Couriersud
/***************************************************************************
Century CVS System
MAIN BOARD:
FLAG LOW | FLAG HIGH
------------------------------------+-----------------------------------
1C00-1FFF SYST... | sum2012/mame | src/mame/drivers/cvs.cpp | C++ | gpl-2.0 | 70,600 |
/*
* Packet matching code.
*
* Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling
* Copyright (C) 2000-2002 Netfilter core team <coreteam@netfilter.org>
*
* 19 Jan 2002 Harald Welte <laforge@gnumonks.org>
* - increase module usage count as soon as we have rules inside
* a table
* 06 Jun 2002 Andr... | dduval/kernel-rhel3 | net/ipv6/netfilter/ip6_tables.c | C | gpl-2.0 | 48,029 |
/*****************************************************************************
* effects.c : Effects for the visualization system
*****************************************************************************
* Copyright (C) 2002-2009 VLC authors and VideoLAN
* $Id$
*
* Authors: Clément Stenac <zorglub@via.ecp.fr>... | vaughamhong/vlc | modules/visualization/visual/effects.c | C | gpl-2.0 | 37,924 |
<?php
/*
WPFront User Role Editor Plugin
Copyright (C) 2014, WPFront.com
Website: wpfront.com
Contact: syam@wpfront.com
WPFront User Role Editor Plugin is distributed under the GNU General Public License, Version 3,
June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
St, Fifth Floo... | MujeresdelasAmericas/Sitio | wp-content/plugins/wpfront-user-role-editor/classes/class-wpfront-user-role-editor-add-remove-capability.php | PHP | gpl-2.0 | 6,778 |
/*
* arizona.h - Wolfson Arizona class device shared support
*
* Copyright 2012 Wolfson Microelectronics plc
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.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
... | The-Sickness/S6-MM | sound/soc/codecs/arizona.h | C | gpl-2.0 | 15,581 |
/* Support routines for the intrinsic power (**) operator.
Copyright (C) 2004-2021 Free Software Foundation, Inc.
Contributed by Paul Brook
This file is part of the GNU Fortran 95 runtime library (libgfortran).
Libgfortran is free software; you can redistribute it and/or
modify it under the terms of the GNU Gen... | Gurgel100/gcc | libgfortran/generated/pow_c10_i4.c | C | gpl-2.0 | 1,971 |
<?php
/**
* @package Joomla.UnitTest
* @subpackage Form
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
/**
* Test class for JFormFieldHeadertag.
*
* @package Joomla.UnitTest
* @sub... | muhakh/joomla-cms | tests/unit/suites/libraries/cms/form/field/JFormFieldHeadertagTest.php | PHP | gpl-2.0 | 925 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getCellMetadata = getCellMetadata;
var _initCellMetadata = require('./initCellMetadata');
var _initCellMetadata2 = _interopRequireDefault(_initCellMetadata);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? o... | Alex-Shilman/Drupal8Node | node_modules/react-virtualized/dist/commonjs/utils/TestHelper.js | JavaScript | gpl-2.0 | 818 |
/*
* Copyright (c) 1996, 2014, 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 ... | FauxFaux/jdk9-jdk | src/java.desktop/windows/native/libawt/windows/awt_Menu.cpp | C++ | gpl-2.0 | 11,965 |
/*lint --e{537,713,732,752}*/
#ifdef __KERNEL__
#include <linux/platform_device.h>
#include <soc_interrupts_app.h>
#elif defined(__VXWORKS__)
#include <string.h>
#include <soc_interrupts_mdm.h>
//#include <bsp_uart.h>
#endif
#include <osl_module.h>
#include <bsp_memmap.h>
#include <bsp_om.h>
#include <bsp... | gabry3795/android_kernel_huawei_mt7_l09 | drivers/vendor/hisi/modem/drv/ccore/drivers/ipc/ipc_balong.c | C | gpl-2.0 | 12,731 |
/* Copyright 2019 MechMerlin <mechmerlin@gmail.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 later version.
*
* This pr... | chancegrissom/qmk_firmware | keyboards/duck/orion/v3/v3.c | C | gpl-2.0 | 1,967 |
class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_SelfActions {
class ACE_Equipment {
class GVAR(adjustZero) {
// Updates the zero reference
displayName = "$STR_ACE_Scopes_AdjustZero";
condition = QUOTE... | Dimaslg/ACE3 | addons/scopes/CfgVehicles.hpp | C++ | gpl-2.0 | 690 |
/* This testcase is part of GDB, the GNU debugger.
Copyright 2008-2020 Free Software Foundation, 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 3 of the License, or
... | mattstock/binutils-bexkat1 | gdb/testsuite/gdb.reverse/waitpid-reverse.c | C | gpl-2.0 | 1,015 |
package org.freeplane.core.util;
import java.io.File;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang.StringUtils;
public class ConfigurationUtils {
private static final String CONFIG_LIST_VALUE_SEPARATOR_STRICT = File.pathSeparator + File.pathSeparator;
... | fnatter/freeplane-debian-dev | freeplane/src/main/java/org/freeplane/core/util/ConfigurationUtils.java | Java | gpl-2.0 | 1,999 |
/*
* Copyright (C) 2007-2009 Geometer Plus <contact@geometerplus.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 later ver... | giannoug/android_device_jxd_s7300b | packages/PicturePlayer/src/org/geometerplus/fbreader/formats/txt/TxtPlugin.java | Java | gpl-2.0 | 2,743 |
/*
* mmap support for qemu
*
* Copyright (c) 2003 Fabrice Bellard
*
* 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... | bulotus/bulotus-qemu-at91sam9263ek | linux-user/mmap.c | C | gpl-2.0 | 19,863 |
<!DOCTYPE html>
<html>
<head>
<title>Smart Rendering</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
<script src="../../../codebase/dhtmlx.js"></scrip... | o-unity/lanio | old/dhtmlx/samples/dhtmlxGrid/14_loading_big_datasets/03_grid_dyn.html | HTML | gpl-2.0 | 1,504 |
/* Copyright (c) 2011-2012, 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... | TeamLGOG/android_kernel_lge_d800 | arch/arm/mach-msm/dfe-fsm9xxx.c | C | gpl-2.0 | 9,910 |
<?php
/**
* WP-Members Admin Functions
*
* Functions to manage administration.
*
* This file is part of the WP-Members plugin by Chad Butler
* You can find out more about this plugin at http://rocketgeek.com
* Copyright (c) 2006-2013 Chad Butler (email : plugins@butlerblog.com)
* WP-Members(tm) is a ... | beetleskin/klimotion | wp-content/plugins/wp-members/admin/admin.php | PHP | gpl-2.0 | 6,072 |
/*
* linux/ipc/sem.c
* Copyright (C) 1992 Krishna Balasubramanian
* Copyright (C) 1995 Eric Schenk, Bruno Haible
*
* IMPLEMENTATION NOTES ON CODE REWRITE (Eric Schenk, January 1995):
* This code underwent a massive rewrite in order to solve some problems
* with the original code. In particular the original code ... | matachi/linux-2.6.32.y | ipc/sem.c | C | gpl-2.0 | 35,191 |
<?php
/**
* Piwik - Open source web analytics
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\Overlay;
class Overlay extends \Piwik\Plugin
{
public function getInformation()
{
$suffix = ' Note: Requires the Transitions ... | agiza/vs-port | piwik/plugins/Overlay/Overlay.php | PHP | gpl-2.0 | 1,239 |
// -*- C++ -*-
// Copyright (C) 2005-2021 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the terms
// of the GNU General Public License as published by the Free Software
// Foundation; either version 3... | Gurgel100/gcc | libstdc++-v3/testsuite/util/statistic/sample_variance.hpp | C++ | gpl-2.0 | 2,138 |
.size 8000
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
xor a, a
ldff(26), a
ld a, 80
ldff(26), a
ld a, 77
ldff(24), a
ld a, 11
ldff(25), a
ld a, 00
ldff(11), a
ld a, 80
ldff(12), a
ld a, c0
ldff(13), a
ld a, 87
ldff(14), a
ld b, 71
lwaitpos:
dec b
jrnz lwaitpos
ld a, 80
lmodulate:
xor a... | Ben10do/gambatte | test/hwtests/sound/ch1_duty0_pattern_pos7_dmg08_cgb04c_outaudio1.asm | Assembly | gpl-2.0 | 442 |
\hypertarget{classedu_1_1kit_1_1trufflehog_1_1model_1_1configdata_1_1_notification_view_model}{}\section{edu.\+kit.\+trufflehog.\+model.\+configdata.\+Notification\+View\+Model Class Reference}
\label{classedu_1_1kit_1_1trufflehog_1_1model_1_1configdata_1_1_notification_view_model}\index{edu.\+kit.\+trufflehog.\+model.... | TruffleHogProject/TruffleHog | doc/doxygen/design_latex/classedu_1_1kit_1_1trufflehog_1_1model_1_1configdata_1_1_notification_view_model.tex | TeX | gpl-2.0 | 1,182 |
#.rst:
# FindBoost
# ---------
#
# Find Boost include dirs and libraries
#
# Use this module by invoking find_package with the form::
#
# find_package(Boost
# [version] [EXACT] # Minimum or EXACT version e.g. 1.36.0
# [REQUIRED] # Fail with error if Boost is not found
# [COMPONENTS <libs>... | jtongzhi/TrinityCore | cmake/macros/FindBoost.cmake | CMake | gpl-2.0 | 52,512 |
## -*- perl -*-
##
## redland.pod - redland Unix manual page
##
## $Id$
##
## Copyright (C) 2002-2006, David Beckett http://purl.org/net/dajobe/
## Copyright (C) 2002-2004, University of Bristol, UK http://www.bristol.ac.uk/
##
## This package is Free Software and part of Redland http://librdf.org/
##
## It is licens... | Distrotech/librdf | docs/redland.pod | Perl | gpl-2.0 | 24,353 |
<!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_19) on Wed Dec 29 21:55:10 EST 2010 -->
<TITLE>
context.apps.demos.accelerometer
</TITLE>
<META NAME="date" CONTENT="2010-12-29">
<LINK ... | MaryVin/contexttoolkit | docs/apidoc/context/apps/demos/accelerometer/package-summary.html | HTML | gpl-3.0 | 10,531 |
/*
* Copyright (c) 2002-2008 LWJGL Project
* 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 ... | kevinwang/minecarft | lwjgl-source-2.8.2/src/templates/org/lwjgl/opengl/EXT_texture_array.java | Java | gpl-3.0 | 3,473 |
<?php
$L['Password_Title'] = 'Password policies';
$L['Password_Description'] = 'Change password policies';
$L['Password_Tags'] = 'strong password policy policies expiration age';
$L['Users_label'] = 'Strong password policy for Users';
$L['Admin_label'] = 'Strong password policy for Admin';
$L['PassExpires_label'] = 'Pa... | DavidePrincipi/nethserver-sssd | root/usr/share/nethesis/NethServer/Language/en/NethServer_Module_Password.php | PHP | gpl-3.0 | 595 |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtQuick module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commer... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtdeclarative/src/quick/items/qquickrectangle_p_p.h | C | gpl-3.0 | 3,343 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation |
--------... | OpenFOAM/OpenFOAM-3.0.x | applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseSystem/diameterModels/IATE/IATE.C | C++ | gpl-3.0 | 5,373 |
using SmartStore.Web.Framework.Mvc;
namespace SmartStore.Web.Models.Common
{
public partial class MenuModel : ModelBase
{
public bool BlogEnabled { get; set; }
public bool RecentlyAddedProductsEnabled { get; set; }
public bool ForumEnabled { get; set; }
public bool AllowPrivat... | sashabuka/smartshop | src/Presentation/SmartStore.Web/Models/Common/MenuModel.cs | C# | gpl-3.0 | 625 |
import unittest
from circular_buffer import (
CircularBuffer,
BufferFullException,
BufferEmptyException
)
class CircularBufferTest(unittest.TestCase):
def test_read_empty_buffer(self):
buf = CircularBuffer(1)
with self.assertRaises(BufferEmptyException):
buf.read()
d... | GregMilway/Exercism | python/circular-buffer/circular_buffer_test.py | Python | gpl-3.0 | 3,084 |
# 由 product_owner 組員40223131所寫的考試報告
協同考試流程的規劃:
1.了解齒輪和嚙合程式
2.每個組員建立一個齒輪之齒數表單
3.每個組員輸入齒輪表單時,各組員的齒輪都能嚙合(總共七顆齒輪)
4.寫新得報告,交給組員05號,做統整並將資料 pandoc 產生pdf 與 html
| 40223102/2015cd_midterm | product_owner.md | Markdown | gpl-3.0 | 344 |
<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2016 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Alchemy\Phrasea\Model\Entities\User;
class eventsmanager_notify_feed extends eventsmanager_notifyAbstract
{... | aztech-dev/Phraseanet | lib/classes/eventsmanager/notify/feed.php | PHP | gpl-3.0 | 1,621 |
// Copyright (C) 2013 Patryk Nadrowski
// Heavily based on the OpenGL driver implemented by Nikolaus Gebhardt
// OpenGL ES driver implemented by Christian Stehno and first OpenGL ES 2.0
// driver implemented by Amundis.
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see c... | nado/stk-code | lib/irrlicht/source/Irrlicht/COGLES2MaterialRenderer.h | C | gpl-3.0 | 3,768 |
// Copyright (c) 2018 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INTERNAL_THREE_HPP
#define TAO_PEGTL_INTERNAL_THREE_HPP
#include <utility>
#include "../config.hpp"
#include "bump_help.hpp"
#include "result_on_found.hpp"
#include "s... | Tsung-Wei/OpenTimer | ot/parser-spef/pegtl/pegtl/internal/three.hpp | C++ | gpl-3.0 | 1,311 |
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
*
* This program is free software; you can redistribute it and/or modify
* it u... | Agile-Team/fran | htdocs/product/stock/liste.php | PHP | gpl-3.0 | 3,429 |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | harshilasu/LinkurApp | y/google-cloud-sdk/platform/gcutil/lib/google_compute_engine/gcutil_lib/firewall_cmds.py | Python | gpl-3.0 | 12,747 |
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | rob-4x4/MarlinTarantula | Marlin/src/pins/pins_ANET_10.h | C | gpl-3.0 | 10,691 |
from unittest import TestCase
class Test(TestCase):
pass
| egcodes/haberbus | aristotle/tests/test_util.py | Python | gpl-3.0 | 63 |
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, 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 3 of the License, or
(at you... | cwalther/Plasma-nobink | Sources/Plasma/NucleusLib/pnModifier/plMultiModifier.h | C | gpl-3.0 | 2,924 |
/**
* Copyright (C) 2011 Whisper Systems
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is... | ioerror/TextSecure | src/org/thoughtcrime/securesms/mms/VideoSlide.java | Java | gpl-3.0 | 2,646 |
/* Ring definitions. */
#define qr(a_type) \
struct { \
a_type *qre_next; \
a_type *qre_prev; \
}
/* Ring functions. */
#define qr_new(a_qr, a_field) do { \
(a_qr)->a_field.qre_next = (a_qr); \
(a_qr)->a_field.qre_prev = (a_qr); \
} while (0)
#define qr_next(a_qr, a_f... | Kiddinglife/gecoengine | thirdparty/jemalloc/include/jemalloc/internal/qr.h | C | gpl-3.0 | 2,322 |
# Text Field
Allows for the input of text. Can be a single line or multiple lines. Typically used to accept user input within a form.
## Variants
### Default
@@include('TextField.html')
### Multiline
@@include('TextField.Multiline.html')
### Placeholder text
@@include('TextField.Placeholder.html')
### Underlined
@... | hualiansheng/PlessPP | spike/officeAddIn/slideChangerPowerPointOfficeAddIn/bower_components/office-ui-fabric/src/components/TextField/TextField.md | Markdown | gpl-3.0 | 797 |
/*
* Meran - MERAN UNLP is a ILS (Integrated Library System) wich provides Catalog,
* Circulation and User's Management. It's written in Perl, and uses Apache2
* Web-Server, MySQL database and Sphinx 2 indexing.
* Copyright (C) 2009-2013 Grupo de desarrollo de Meran CeSPI-UNLP
*
* This file is part of Meran.
*
... | Desarrollo-CeSPI/meran | dev-plugins/node64/lib/node_modules/uglify-js/test/unit/compress/expected/ifreturn.js | JavaScript | gpl-3.0 | 980 |
/**
* 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... | chiwanpark/flamingo2 | flamingo2-common/src/main/java/org/opencloudengine/flamingo2/model/rest/WorkflowHistory.java | Java | gpl-3.0 | 8,095 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
--------... | firelab/OpenFOAM-2.2.x | applications/solvers/combustion/coldEngineFoam/coldEngineFoam.C | C++ | gpl-3.0 | 3,154 |
<!-- patTemplate:tmpl name="content" -->
<script language="javascript" type="text/javascript">
var xpopup;
function centangin_semua(varname, start_num, end_num) {
var obj = document.getElementById('cek_all');
if(obj.checked == false) {
for(i=start_num;i<=end_num;i++) {
document.getElementById(va... | 4n6g4/gtsdm | malra/fo/module/gaji_pegawai/template_eng/view_gaji_pegawai.html | HTML | gpl-3.0 | 9,385 |
/*
Copyright 2010 David Fritz, Brian Gordon, Wira Mulia
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 3 of the License, or
(at your option) any later version.
... | Progressive-Learning-Platform/progressive-learning-platform | reference/sw/PLPTool/src/plptool/mods/Button.java | Java | gpl-3.0 | 1,873 |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | Necktrox/mtasa-blue | vendor/curl/src/tool_help.c | C | gpl-3.0 | 18,072 |
/* Copyright (c) 2004 Eric B. Weddington
Copyright (c) 2005,2006 Anatoly Sokolov
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 co... | synnema/rgbcontopH | hex_for_testing/usr_lib_avr__backup/include/avr/iom6490.h | C | gpl-3.0 | 23,635 |
/* Lowercase mapping for UTF-16 strings (locale dependent).
Copyright (C) 2009-2013 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2009.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
... | Distrotech/libunistring | lib/unicase/u16-tolower.c | C | gpl-3.0 | 1,443 |
// Pingus - A free Lemmings clone
// Copyright (C) 2002 Ingo Ruhnke <grumbel@gmx.de>
//
// 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 3 of the License, or
// (at your o... | xarnze/pingus | src/pingus/string_format.cpp | C++ | gpl-3.0 | 1,831 |
#!/bin/bash -x
apt-get -y update
apt-get install -y vim libffi-dev libssl-dev python-dev python-pip python-virtualenv
| rcherrueau/enos | tests/functionnal/tests/packaging/scripts/install_deps.sh | Shell | gpl-3.0 | 120 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2010-2011
# Drakmail < drakmail@gmail.com >
# NomerUNO < uno.kms@gmail.com >
# Platon Peacel☮ve <platonny@ngs.ru>
# Elec.Lomy.RU <Elec.Lomy.RU@gmail.com>
# ADcomp <david.madbox@gmail.com>
#
# This program is free software: you can redistribute it and/... | tectronics/snapfly | src/launcher.py | Python | gpl-3.0 | 1,632 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />... | RolePlayGateway/roleplaygateway | styles/prosilver/template/viewtopic_print.html | HTML | gpl-3.0 | 2,368 |
/*
* Copyright 2011-2019 Arx Libertatis Team (see the AUTHORS file)
*
* This file is part of Arx Libertatis.
*
* Arx Libertatis is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Li... | Dimoks/ArxLibertatis_fork | src/game/spell/Cheat.h | C | gpl-3.0 | 1,594 |
#!/usr/bin/python
#
# Copyright (c) 2016 Matt Davis, <mdavis@ansible.com>
# Chris Houseknecht, <house@redhat.com>
#
# This file is part of Ansible
#
# Ansible 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 Soft... | hlieberman/ansible-modules-core | cloud/azure/azure_rm_publicipaddress.py | Python | gpl-3.0 | 10,272 |
#include "config.h"
#include "util.hh"
#include "local-store.hh"
#include "globals.hh"
#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
namespace nix {
static void makeWritable(const Path & path)
{
struct stat st;
if (lstat(path.c_st... | genenetwork/guix | nix/libstore/optimise-store.cc | C++ | gpl-3.0 | 8,322 |
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ArduPilot Firmware Download</title>
<!--CSS -->
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="main">
<a href="https://firmware.ardupilot.org/">
<div id="logo">
<... | fhedberg/ardupilot | Tools/autotest/web-firmware/index.html | HTML | gpl-3.0 | 6,649 |
const { Cc, Ci } = require("chrome");
const { storage } = require("sdk/simple-storage");
const userStorage = require("./userStorage");
userStorage.init();
// Hack: import main first to trigger correct order of dependency resolution
const main = require("./main");
const utils = require('./utils');
const { Policy } = re... | SwartzCr/privacybadgerfirefox | test/test-preloads.js | JavaScript | gpl-3.0 | 1,935 |
/************
*
* This file is part of a tool for producing 3D content in the PRC format.
* Copyright (C) 2008 Orest Shardt <shardtor (at) gmail dot com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* th... | nealkruis/kiva | vendor/mathgl-2.3.5.1/src/prc/oPRCFile.h | C | gpl-3.0 | 34,173 |
<div class="row">
<div class="col-xs-6">
<table class="table">
<tr>
<td>%last_topics%</td>
</tr>
$topiclist
</table>
</div>
<div class="col-xs-6">
<table class="table">
<tr>
<td>%last_posts%</td>
... | kevinwiede/webspell-nerv | templates/profile_lastposts.html | HTML | gpl-3.0 | 388 |
#include "GCS_Plane.h"
#include "Plane.h"
bool GCS_Plane::cli_enabled() const
{
#if CLI_ENABLED == ENABLED
return plane.g.cli_enabled;
#else
return false;
#endif
}
AP_HAL::BetterStream* GCS_Plane::cliSerial() {
return plane.cliSerial;
}
void GCS_Plane::send_airspeed_calibration(const Vector3f &vg)
{
... | cast051/ardupilot_cast | ArduPlane/GCS_Plane.cpp | C++ | gpl-3.0 | 579 |
<?php
/*
Phoronix Test Suite
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
Copyright (C) 2013 - 2015, Phoronix Media
Copyright (C) 2013 - 2015, Michael Larabel
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publis... | Jeni4/phoronix-test-suite | pts-core/phoromatic/export-public-viewer/index.php | PHP | gpl-3.0 | 8,933 |
/**CFile****************************************************************
FileName [abcResub.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Network and node package.]
Synopsis [Resubstitution manager.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date ... | Kinghsy/Approxiamate-Logic-Synthesis | lib/abc/src/base/abci/abcResub.c | C | gpl-3.0 | 71,823 |
/**CFile****************************************************************
FileName [resStrash.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Resynthesis package.]
Synopsis [Structural hashing of the nodes in the window.]
Author [Alan Mishchenko]
Affiliation [UC... | Kinghsy/490_core | lib/abc/src/opt/res/resStrash.c | C | gpl-3.0 | 4,297 |
using SiteServer.CMS.WeiXin.WeiXinMP.CommonAPIs;
using SiteServer.CMS.WeiXin.WeiXinMP.Entities.JsonResult;
namespace SiteServer.CMS.WeiXin.WeiXinMP.AdvancedAPIs.Groups
{
/// <summary>
/// 用户组接口
/// </summary>
public static class Groups
{
/// <summary>
/// 创建分组
/// </summar... | ColgateKas/cms | source/SiteServer.CMS/WeiXin/WeiXinMP/AdvancedAPIs/Groups/Groups.cs | C# | gpl-3.0 | 3,125 |
<?php
class ModelShippingkex extends Model {
function getQuote($address) {
$this->load->language('shipping/kex');
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '" . (int)$this->config->get('kex_geo_zone_id') . "' AND country_id = '" . (int)$address['country_id'] ... | miechuliv/dinocars | catalog/model/shipping/KEX.php | PHP | gpl-3.0 | 5,367 |
/*
===========================================================================
Copyright (c) 2010-2015 Darkstar Dev Teams
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 3 of... | AdamGagorik/darkstar | src/map/treasure_pool.cpp | C++ | gpl-3.0 | 18,412 |
function uriescape {
escaped=`echo "$1" | sed 's/ /%20/g; s/\*/\\*/g; s/{/\\\{/g; s/}/\\\}/g; s/\?/%3f/g; s/&/%38/g; s/+/%2b/g; s/"/\\"/g; s/\[/\\\[/g; s/\]/\\\]/g'`
}
function postescape {
escaped=`echo "$1" | sed 's/ /%20/g; s/\*/\\*/g; s/\?/%3f/g; s/&/%38/g; s/+/%2b/g;'`
}
# usage: sparql $endpoint $query
functi... | szarnyasg/4store | tests/load/sparql.sh | Shell | gpl-3.0 | 1,606 |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* ... | gwx/ZeldaClassic | allegro/src/i386/istretch.c | C | gpl-3.0 | 15,930 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!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/html; charset=UTF-8" />
<title>Delet... | apavlo/h-store | third_party/cpp/berkeleydb/docs/gsg/JAVA/dpl_delete.html | HTML | gpl-3.0 | 5,028 |
#region Copyright & License Information
/*
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see COP... | DrMelon/OpenRA | OpenRA.Game/Widgets/WorldInteractionControllerWidget.cs | C# | gpl-3.0 | 9,697 |
// Copyright 2015 The Cockroach 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 ag... | elkingtoncode/LampDB | storage/split_queue_test.go | GO | gpl-3.0 | 3,707 |
<?php
/**
* Fetching and processing of interface messages.
*
* 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.
*
*... | Electro-Light/ElectroLight-WebSite | wiki/includes/Message.php | PHP | gpl-3.0 | 33,273 |
import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import processing.serial.Serial;
import controlP5.*;
import java.io.File;
import java.lang.*;
import javax.swing.SwingUtilities;
import javax.swing.JFileChooser;
import javax.swing.filechoose... | dale3h/minimosd-flashpack-linux32 | MW_OSD_GUI/MW_OSD_GUI_R1.3_SP2/source/MW_OSD_GUI.java | Java | gpl-3.0 | 172,641 |
define(["mui"], function(){
function component($q, $resource, $stateParams, AnnotationProjectIdResource){
var _self=this;
var url="/annotations/:datasetName/annotation/:dimension/new/dataset/command/core/get-rows";
this.AnnotationValuesResource = $resource(url, {
datasetName: $stateParams.datasetId,
limit:... | apartensky/mev | web/src/main/javascript/edu/dfci/cccb/mev/web/libs/domain/annotations/src/main/endpoint/AnnotationValuesResource.js | JavaScript | gpl-3.0 | 953 |
package net.minecraft.network.play.server;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.io.IOException;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPla... | Scrik/Cauldron-1 | eclipse/cauldron/src/main/java/net/minecraft/network/play/server/S07PacketRespawn.java | Java | gpl-3.0 | 2,681 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.