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 |
|---|---|---|---|---|---|
"""Template filters and tags for helping with dates and datetimes"""
# pylint: disable=W0702,C0103
from django import template
from nav.django.settings import DATETIME_FORMAT, SHORT_TIME_FORMAT
from django.template.defaultfilters import date, time
from datetime import timedelta
register = template.Library()
@registe... | sigmunau/nav | python/nav/django/templatetags/date_and_time.py | Python | gpl-2.0 | 1,012 |
#branding{
background-color: red;
}
.footer{
font-size: 20em;
}
| webnator/marine-whitelist | wp-content/themes/marine-white-theme/css/social_plugin.css | CSS | gpl-2.0 | 68 |
package com.kellydavid.dfs.config;
import java.io.*;
import java.util.HashMap;
/**
* Created by david on 31/01/2016.
*/
public class Configurator {
private String filename;
private HashMap<String, String> configuration;
public Configurator(String filename){
this.filename = filename;
co... | kellydavid/DistributedFileSystem | dfs-config/src/main/java/com/kellydavid/dfs/config/Configurator.java | Java | gpl-2.0 | 1,740 |
// 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 CHROME_BROWSER_NET_PRECONNECT_H_
#define CHROME_BROWSER_NET_PRECONNECT_H_
#include "chrome/browser/net/url_info.h"
class GURL;
namespace n... | qtekfun/htcDesire820Kernel | external/chromium_org/chrome/browser/net/preconnect.h | C | gpl-2.0 | 959 |
; stdio_outcommon
; 05.2008 aralbrec
PUBLIC stdio_outcommon
PUBLIC LIBDISP_STDIO_OUTCOMMON_SIGNED
EXTERN stdio_outsign, stdio_outbuff, stdio_outpad
; common code that performs padding and justification for numbers
;
; enter : b = num chars written to buffer
; d = width
; e = flags [-+ O#PLN]
; ... | bitfixer/bitfixer | dg/z88dk/libsrc/stdio_new/file/stream-out/stdio_outcommon.asm | Assembly | gpl-2.0 | 2,069 |
//--------------------------------------------------------------------------
// Copyright (C) 2014-2016 Cisco and/or its affiliates. All rights reserved.
// Copyright (C) 2002-2013 Sourcefire, Inc.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public... | Ghorbani-Roozbahan-Gholipoor-Dashti/Snort | src/network_inspectors/perf_monitor/perf_monitor.cc | C++ | gpl-2.0 | 9,345 |
/* Some code common to C++ and ObjC++ front ends.
Copyright (C) 2004-2013 Free Software Foundation, Inc.
Contributed by Ziemowit Laski <zlaski@apple.com>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by th... | Mustaavalkosta/toolchain_gcc-4.9 | gcc/cp/cp-objcp-common.c | C | gpl-2.0 | 9,110 |
import time
import midipy as midi
midi.open(128, 0, "midipy test", 0)
for (note, t) in [(48,0.5),(48,0.5),(50,1.0),(48,1.0),(53,1.0),(52,1.0),
(48,0.5),(48,0.5),(50,1.0),(48,1.0),(55,1.0),(53,1.0)]:
midi.note_on(note,127)
time.sleep(t/2)
midi.note_off(note,127)
midi.close()
| tcoxon/wiitar | midipy_src/test.py | Python | gpl-2.0 | 311 |
/***************************************************************************
* $Id$
*
* Copyright 2004 Gagarine Yaikhom
* gyaikhom@gmail.com
****************************************************************************/
/*
* This program is free software; you can redistribute it and/or modify
* it under th... | gyaikhom/libdsys | examples/common/pi_mpi.c | C | gpl-2.0 | 2,153 |
<?php
/**
* Link model
*
* @package link
* @author Philipp (philipp)
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License (GPL)
* @version $Id$
*/
class LinkModel extends RoxModelBase
{
function __construct()
{
parent::__construct();
}
/**
* Functi... | BeWelcome/rox.prototypes | build/link/link.model.php | PHP | gpl-2.0 | 17,075 |
extern mouse_t mouse_serial_msystems;
| mborjesson/PCem-wx-SDL2 | src/mouse_msystems.h | C | gpl-2.0 | 39 |
<?php
/**
* Holds a fee state obtained from the API
*/
class FeeStateApi extends CRUDApiClient {
const NO_FEE_SELECTED = 0;
protected $name;
protected $isDefaultFee;
protected $isAccompanyingPersonFee;
protected $feeAmounts_id;
public static function getListWithCriteria(array $properties, $printErrorMessage ... | IISH/drupal-module-conference | iishconference_basemodule/api/domain/FeeStateApi.class.php | PHP | gpl-2.0 | 2,522 |
<?php get_header(); ?>
<div id="container">
<div id="left-div">
<div id="left-inside">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post-wrapper">
<?php if (get_option('whoswho_show_share') == 'on') get_template_part('includes/share'); ?>
<div style="clear: both;"><... | bishupokharel/nepalisthebest_wp | wp-content/themes/WhosWho/single.php | PHP | gpl-2.0 | 2,848 |
/*
* MessengerProtocol.java
*
* Herald, An Instant Messenging Application
*
* Copyright © 2000 Chad Gibbons
*
* 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 ... | dcgibbons/herald | src/net/sourceforge/herald/MessengerProtocol.java | Java | gpl-2.0 | 5,265 |
<?php
class UsersEmailSender{
var $emailSender = null;
var $subActionManager = null;
public function __construct($emailSender, $subActionManager){
$this->emailSender = $emailSender;
$this->subActionManager = $subActionManager;
}
public function sendWelcomeUserEmail($user, $password, $employee = NULL){
... | jpbalderas17/hris | admin/users/api/UsersEmailSender.php | PHP | gpl-2.0 | 1,160 |
/****************************************************************************************
* Copyright (c) 2007 Ian Monroe <ian@monroe.nu> *
* Copyright (c) 2008 Soren Harward <stharward@gmail.com> *
* Copyright (c) 2009 Téo Mrnjavac <teo@kde.org> ... | kkszysiu/amarok | src/playlist/navigators/TrackNavigator.cpp | C++ | gpl-2.0 | 4,381 |
<!DOCTYPE html>
<html lang="zh-cn">
<!-- Mirrored from www.w3school.com.cn/tags/att_table_rules.asp by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Dec 2015 04:14:36 GMT -->
<head>
<meta charset="utf-8" />
<meta name="robots" content="all" />
<meta name="author" content="w3school.com.cn" />
<link rel="stylesheet"... | platinhom/ManualHom | Coding/W3School/W3CN/www.w3school.com.cn/tags/att_table_rules.html | HTML | gpl-2.0 | 18,243 |
<?php
while($db->next_record()) {
$ship_to_address = "ship_to_info_id:" . $db->f("user_info_id").
",address_type_name:" . $db->f("address_type_name") .
",full_name:" . $db->f("first_name") . " " . $db->f("middle_name") . " " . $db->f("last_name") .
",company:" . $db->f("company") .
",address_1:" . ... | aaron-weever/VirtueMart-1.1.9-stable | components/com_virtuemart/themes/default/templates/checkout/weever_list_shipto_addresses.tpl.php | PHP | gpl-2.0 | 698 |
/*
* PROJECT: DiskPart
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/system/diskpart/interpreter.c
* PURPOSE: Reads the user input and then envokes the selected
* command by the user.
* PROGRAMMERS: Lee Schroeder
*/
#include "diskpar... | GreenteaOS/Kernel | third-party/reactos/base/system/diskpart/interpreter.c | C | gpl-2.0 | 6,906 |
#ifndef __BUSQUEDA__
#define __BUSQUEDA__
#include <stdio.h>
#include "Evalua.h"
int evalua_variante(Tablero tab,Variante var);
int exp_j_cj(Tablero tab,Variantes var,Jugador jug);
int maxima(Variantes variantes);
int movimiento_variantes(Tablero tab,Variantes variantes,Jugador jugador)
/*
En entrada:E... | rcolomina/ChessEngine | Busqueda.h | C | gpl-2.0 | 5,871 |
<?php
/**
***********************************************************************************************
* Script creates html output for guestbook comments
*
* @copyright 2004-2016 The Admidio Team
* @see https://www.admidio.org/
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2... | wilddom/admidio | adm_program/modules/guestbook/get_comments.php | PHP | gpl-2.0 | 6,472 |
<?php
/**
* @package eMundus
* @subpackage Components
* components/com_emundus/emundus.php
* @link http://www.decisionpublique.fr
* @license GNU/GPL
* @author Benjamin Rivalland
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application... | emundus/v5 | components/com_emundus/views/incomplete/view.html.php | PHP | gpl-2.0 | 6,072 |
<?php
$db = new Conexion_laravel_mysql();
$fecha_buscada = !empty($_GET["fecha"])?$_GET["fecha"]:"";
if ($fecha_buscada) {
$meses = array ('January','February','March','April','May','June','July','August','September','October','November','December');
$meses_es = array ('Enero','Febrero','Marzo','Abril','Mayo','... | geralsantos/sisPersonal | html/blade/highchart_bar.php | PHP | gpl-2.0 | 6,126 |
import java.awt.Graphics;
/**
* Interface to used to communicate between a model
* and its display
*
* Copyright Georgia Institute of Technology 2004
* @author Barb Ericson ericson@cc.gatech.edu
*/
public interface ModelDisplay
{
/** method to notify the thing that displays that
* the model has changed */
... | zulfikar2/CSPortfolio | JAVA/SAD_Search/ModelDisplay.java | Java | gpl-2.0 | 1,120 |
<?php
defined('ZOTOP') or die('No direct access allowed.');
/**
* 控制器基类
*
* @copyright (c)2009 zotop team
* @package core
* @author zotop team
* @license http://zotop.com/license.html
*/
class controller
{
/**
*
* @var object 模板实例对象
*/
protected $template = null;
/**
*... | zotopteam/zotop | zotop/libraries/classes/controller.php | PHP | gpl-2.0 | 6,040 |
CFLAGS += -Os -Wall
PROG = vulpes
PREFIX ?= /usr
VER = 1.0
LIBS = -lcurl
${PROG}: ${PROG}.c
@${CC} ${CFLAGS} ${LIBS} -o ${PROG} ${PROG}.c
@strip ${PROG}
clean:
@rm -f ${PROG}
install: ${PROG}
@install -Dm755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
| HalosGhost/vulpes | Makefile | Makefile | gpl-2.0 | 272 |
<?php
/**
* View to edit a connection.
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.0
*/
// No direct access
defined('_JEXEC') or die('Restricte... | raimov/broneering | administrator/components/com_fabrik/views/connection/view.html.php | PHP | gpl-2.0 | 3,679 |
/******************************************************************************
* drivers/xen/tpmback/common.h
*/
#ifndef __TPM__BACKEND__COMMON_H__
#define __TPM__BACKEND__COMMON_H__
#include <linux/version.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <xen/evtchn.h>
#i... | zhoupeng/spice4xen | linux-2.6.18-xen.hg/drivers/xen/tpmback/common.h | C | gpl-2.0 | 2,227 |
package com.meadowhawk.cah.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.transaction.annotation.Transactional;
public abstract class AbstractJpaDAO<T> {
public enum DBSortOrder{
DESC, ASC
}
protected Class<T> clazz;... | leeclarke/CAHServer | src/main/java/com/meadowhawk/cah/dao/AbstractJpaDAO.java | Java | gpl-2.0 | 1,157 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Emgu.CV;
using Emgu.Util;
using Emgu.CV.Structure;
using System.Windows.Forms;
using System.Drawing;
namespace Driving_Blind_Spot_Rebuild
{
class BlindSpot_Util
{
private int _X_hc, _Y_hc, _X_vc, _Y_vc;
... | mrcancer91/Driving-Bind-Spot | Driving_Blind_Spot_Rebuild/Driving_Blind_Spot_Rebuild/BlindSpot_Util.cs | C# | gpl-2.0 | 13,431 |
package io.github.phantamanta44.pwarfare.gui;
import io.github.phantamanta44.pwarfare.Game;
import io.github.phantamanta44.pwarfare.data.GameMap;
import io.github.phantamanta44.pwarfare.data.GameMap.GameMode;
import io.github.phantamanta44.pwarfare.data.GamePlayer;
import io.github.phantamanta44.pwarfare.data.GamePlay... | phantamanta44/PWarfare | src/main/java/io/github/phantamanta44/pwarfare/gui/RespawnGui.java | Java | gpl-2.0 | 6,436 |
#!/bin/sh
timestamp=$(date "+%s")
mkdir apis.avatardata.txt
#阿凡达笑话趣图类型
for ((id=1;id<=700;++id))
do
echo "id --> $id"
curl "http://api.avatardata.cn/Joke/QueryJokeByTime?key=e03a050da0cd40ddb51fc715ebb94e31&page=$id&rows=50&sort=desc&time=$timestamp" > apis.avatardata.txt/joke-txt-content$id.txt
done
sh joke-tas... | maybeisu/Joke_Project | avatardata-txt.sh | Shell | gpl-2.0 | 390 |
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
Sega X-board hardware
Special thanks to Charles MacDonald for his priceless assistance
****************************************************************************
Known ... | GiuseppeGorgoglione/mame | src/mame/drivers/segaxbd.cpp | C++ | gpl-2.0 | 297,861 |
/*
* linux/fs/nfs/file.c
*
* Copyright (C) 1992 Rick Sladkey
*
* Changes Copyright (C) 1994 by Florian La Roche
* - Do not copy data too often around in the kernel.
* - In nfs_file_read the return value of kmalloc wasn't checked.
* - Put in a better version of read look-ahead buffering. Original idea
... | mostafa-z/Gabriel_MM | fs/nfs/file.c | C | gpl-2.0 | 25,871 |
/*
* Copyright (C) 2016-2022 ActionTech.
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher.
*/
package com.actiontech.dble.route.factory;
import com.actiontech.dble.route.RouteStrategy;
import com.actiontech.dble.route.impl.DefaultRouteStrategy;
/**
* RouteStrategyFactory
*
* @author wang... | actiontech/dble | src/main/java/com/actiontech/dble/route/factory/RouteStrategyFactory.java | Java | gpl-2.0 | 589 |
/*****************************************************************************
* ts_psip.c : TS demux ATSC A65 PSIP handling
*****************************************************************************
* Copyright (C) 2016 - VideoLAN Authors
*
* This program is free software; you can redistribute it and/or modify... | pddthinh/android-vlc | vlc/modules/demux/mpeg/ts_psip.c | C | gpl-2.0 | 31,798 |
<?php global $nc_utility ;?>
<?php $image_options = get_option("nc_plugin_image_settings"); ?>
<?php $index = $this->index;?>
<?php if($this->images): ?>
<?php foreach( $this->images as $image): ?>
<li data-tooltip-id="tooltip-thumbnail-<?php echo $index; ?>" <?php if($index % 3 == 0) echo "class='no-margin... | pranto157/outofcircle | wp-content/plugins/newscred/application/views/metabox/includes/images.php | PHP | gpl-2.0 | 2,562 |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2015 Benoit Steiner <benoit.steiner.goog@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 ca... | mastoo/pcollection | external/libs/RLovelett/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h | C | gpl-2.0 | 3,712 |
# Sandbox
We're going to build some sand castles!
| newleeland/Sandbox | README.md | Markdown | gpl-2.0 | 50 |
#include "kvm/virtio-console.h"
#include "kvm/virtio-pci-dev.h"
#include "kvm/disk-image.h"
#include "kvm/virtio.h"
#include "kvm/ioport.h"
#include "kvm/util.h"
#include "kvm/term.h"
#include "kvm/mutex.h"
#include "kvm/kvm.h"
#include "kvm/pci.h"
#include "kvm/threadpool.h"
#include "kvm/irq.h"
#include "kvm/guest_co... | rminnich/vmtool | virtio/console.c | C | gpl-2.0 | 5,071 |
/**
* RetrieveLinkRecords.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:34:40 IST)
*/
package com.rsys.ws;
/**
* RetrieveLinkRecords bean class
*/
@Suppr... | guillep19/grails-responsys-ws-integration | ResponsysClientLib/src/com/rsys/ws/RetrieveLinkRecords.java | Java | gpl-2.0 | 19,195 |
(function($) {
Drupal.wysiwyg.editor.init.ckeditor = function(settings) {
window.CKEDITOR_BASEPATH = settings.global.editorBasePath + '/';
CKEDITOR.basePath = window.CKEDITOR_BASEPATH;
// Drupal.wysiwyg.editor['initialized']['ckeditor'] = true;
// Plugins must only be loaded once. Only the settings from the f... | ghigata/prowood | sites/default/files/js/js_kJRR2EPkdTyr2CIdeTvE1Z1h-ltSkNI_HTuwHAsTNDE.js | JavaScript | gpl-2.0 | 95,145 |
<?php
require_once OPS_APPLICATION_PATH
. '/services/Optimization/Analyzer/Abstract/Base.php';
class Ops_Service_Optimization_Analyzer_KeywordInPattern
extends Ops_Service_Optimization_Analyzer_Abstract_Base
{
public function __invoke($pattern, $keyword=NULL, $contentType='html')
{
$content = $... | tranvanhoa533/ecommerce_assignment2 | wp-content/plugins/wp-onpage-seo/application/services/Optimization/Analyzer/KeywordInPattern.php | PHP | gpl-2.0 | 789 |
/*
* dbgp.c -- EHCI Debug Port device gadget
*
* Copyright (C) 2010 Stephane Duverger
*
* Released under the GPLv2.
*
*/
/* verbose messages */
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
/* See comments in "zero.c" */
#include "epautoconf.c"
#i... | kernelzilla/android-kernel | drivers/usb/gadget/dbgp.c | C | gpl-2.0 | 8,490 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- BEGIN TEMPLATE: WHOPOSTED -->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<!-- Mirrored from www.hobartwelders.com/weldtalk/misc.php?do=whoposted&t=117865 by HTTrack Websi... | budiperkasa/tukangbagus | boerweld/weldtalk/misc1c4a.html | HTML | gpl-2.0 | 8,527 |
<!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>公司注销_广州谱式达-人力资源-知识产权-工商财税-人才服务-户口手续办理</title>
<meta name="description... | chuing/Push | a/qyfw/nzzc/2014/0926/334.html | HTML | gpl-2.0 | 15,308 |
/*
* linux/fs/buffer.c
*
* Copyright (C) 1991, 1992, 2002 Linus Torvalds
*/
/*
* Start bdflush() with kernel_thread not syscall - Paul Gortmaker, 12/95
*
* Removed a lot of unnecessary code and simplified things now that
* the buffer cache isn't our primary cache - Andrew Tridgell 12/96
*
* Speed up hash,... | andi34/kernel_samsung_espresso-cm | fs/buffer.c | C | gpl-2.0 | 90,490 |
/*
* Copyright (C) eZ Systems AS. All rights reserved.
* For full copyright and license information view LICENSE file distributed with this source code.
*/
YUI.add('ez-dashboardview', function (Y) {
"use strict";
/**
* Provides the Dashboard View class
*
* @module ez-dashboardview
*/
... | StephaneDiot/PlatformUIBundle-1 | Resources/public/js/views/ez-dashboardview.js | JavaScript | gpl-2.0 | 1,838 |
window.addEvent("domready", function() {
var carousel = new iCarousel("carousel_content", {
idPrevious: "carousel_prev",
idNext: "carousel_next",
idToggle: "undefined",
item: {
klass: "carouselitem_right",
size: 265
},
animation: {
... | thtinh/hb | templates/vxg_hb/js/carousel_impl.js | JavaScript | gpl-2.0 | 715 |
/*
* Copyright 2000-2015 Rochus Keller <mailto:rkeller@nmr.ch>
*
* This file is part of the CARA (Computer Aided Resonance Assignment,
* see <http://cara.nmr.ch/>) NMR Application Framework (NAF) library.
*
* The following is the license that applies to this copy of the
* library. For a license to use the librar... | rochus-keller/NAF | Star/StarLexer.cpp | C++ | gpl-2.0 | 12,894 |
<?php
/**
* Categorize
*
* Flow controller for category management interfaces
*
* @version 1.0
* @package ecart
* @subpackage categories
**/
class Categorize extends AdminController {
/**
* Categorize constructor
*
* @return void
**/
function __construct () {
parent::__construct();
if (!empty... | robbiespire/paQui | wp-content/plugins/express_store_installer/core/flow/Categorize.php | PHP | gpl-2.0 | 14,969 |
/*
* ----------------------------------------------------------------
* Copyright c Realtek Semiconductor Corporation, 2002
* All rights reserved.
*
* $Header: /cvs/sw/linux-2.4.x/drivers/net/re865x/rtl865x/Attic/asicTabs.h,v 1.1.2.1 2007/09/28 14:42:31 davidm Exp $
*
* Abstract: ASIC table field de... | robacklin/uclinux-linux | drivers/net/re865x/rtl865x/asicTabs.h | C | gpl-2.0 | 2,256 |
package de.metas.edi.esb.pojo.invoice.cctop;
/*
* #%L
* de.metas.edi.esb
* %%
* Copyright (C) 2015 metas GmbH
* %%
* 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 th... | klst-com/metasfresh | de.metas.edi.esb.camel/src/main/java/de/metas/edi/esb/pojo/invoice/cctop/Cctop111V.java | Java | gpl-2.0 | 4,293 |
package org.iatoki.judgels.uriel.contest.manager;
import org.iatoki.judgels.play.model.AbstractModel_;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor... | judgels/uriel | app/org/iatoki/judgels/uriel/contest/manager/ContestManagerModel_.java | Java | gpl-2.0 | 678 |
/*
* Copyright (c) 2006 Franck Bui-Huu
* Copyright (c) 2006 Rene Scharfe
*/
#include "cache.h"
#include "builtin.h"
#include "archive.h"
#include "pkt-line.h"
#include "sideband.h"
static int run_remote_archiver(const char *remote, int argc,
const char **argv)
{
char *url, buf[LARGE_PACKET_MAX];
int fd[... | vmiklos/gsoc2008 | builtin-archive.c | C | gpl-2.0 | 2,755 |
/*
* USB device quirk handling logic and table
*
* Copyright (c) 2007 Oliver Neukum
* Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.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 Foundat... | wurikiji/ttFS | src/drivers/usb/core/quirks.c | C | gpl-2.0 | 7,532 |
<?php declare(strict_types=1);
namespace DrupalCodeGenerator;
use Symfony\Component\String\ByteString;
use Symfony\Component\String\Inflector\EnglishInflector;
/**
* Helper methods for code generators.
*/
class Utils {
/**
* Transforms a machine name to human name.
*/
public static function machine2huma... | Chi-teck/drupal-code-generator | src/Utils.php | PHP | gpl-2.0 | 4,288 |
<?php
/**
* @package Joomla.Site
* @subpackage Templates.Growwweb
*
* @copyright Copyright (C) 2005 - 2014 Web Studio Growwweb. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
?>
<!DOCTYPE html>
<html xml... | jan-itor/obyektiv | templates/objectiv/index.php | PHP | gpl-2.0 | 3,978 |
import os
import os.path
from amuse.units import units
from amuse.datamodel import Particle
from amuse.ext.star_to_sph import pickle_stellar_model
from amuse.community.mesa.interface import MESA as stellar_evolution_code
from xiTau_parameters import triple_parameters
def evolve_giant(giant, stop_radius):
stell... | hilaglanz/TCE | articles/A_evolve_outer_star_to_giant.py | Python | gpl-2.0 | 1,405 |
/*
* Copyright (C) 1996-2015 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
#ifndef __ASYNC_IO_H__
#define __ASYNC_IO_H_... | krichter722/squid | src/DiskIO/AIO/async_io.h | C | gpl-2.0 | 1,686 |
#######################################################
#
# Aland Sailing Robot
# ===========================================
# sailcommand
# -------------------------------------------
#
#######################################################
CC = g++
FLAGS = -g -Wall -pedantic -Werror -std=c++14
LIBS =
... | pophaax/sailcommand | Makefile | Makefile | gpl-2.0 | 514 |
<?php
namespace Elasticsearch\Endpoints;
use Elasticsearch\Serializers\SerializerInterface;
use Elasticsearch\Transport;
/**
* Class Bulk
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints
* @author Zachary Tong <zachary.tong@elasticsearch.com>
* @license http://www.apache.org/licenses/LICENSE-... | htw-pk15/vufind | vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Bulk.php | PHP | gpl-2.0 | 1,685 |
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
**... | librelab/qtmoko-test | qtopiacore/qt/doc/src/snippets/threads/threads.cpp | C++ | gpl-2.0 | 3,193 |
<?php
/**
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Menu\Node;
defined('JPATH_PLATFORM') or die;
use Joomla\CMS\Filter\OutputFilt... | joomla-projects/media-manager-improvement | libraries/src/Menu/Node/Component.php | PHP | gpl-2.0 | 2,140 |
#ifdef HAVE_CONFIG_H
#include "config.h"
/* If autoconfed, only include malloc.h when it's presen */
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#else /* undef HAVE_CONFIG_H */
#include <malloc.h>
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "gr... | cjg/grads | src/gribscan.c | C | gpl-2.0 | 31,622 |
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://machines.plannedobsolescence.net/168-2007" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>writing machines - avatar</title>
<link>http://machines.plannedobsolescence.net/168-2007/taxonomy/term/133/0</link>
<description></descri... | kfitz/machines | 168-2007/taxonomy/term/133/0/feed/index.html | HTML | gpl-2.0 | 1,637 |
<?php
/* SensioDistributionBundle:Configurator:check.html.twig */
class __TwigTemplate_b715c729363426b088b795ac92dc5fcde03ea399e55a86f4c370b333d1e7f13e extends eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$t... | ataxel/tp | ezpublish/cache/dev/twig/b7/15/c729363426b088b795ac92dc5fcde03ea399e55a86f4c370b333d1e7f13e.php | PHP | gpl-2.0 | 5,309 |
"""
WSGI config for ahaha project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` se... | pimiento/captures | captures/wsgi.py | Python | gpl-2.0 | 1,132 |
/****************************************************************************
* Copyright (C) 2012 by Jens Nissen jens-chessx@gmx.net *
****************************************************************************/
#ifndef HELPBROWSER_H
#define HELPBROWSER_H
#include <QTextBrowser>
class HelpBrows... | madnight/chessx | src/gui/helpbrowser.h | C | gpl-2.0 | 628 |
#include "libertas_tf.h"
#include "linux/etherdevice.h"
#define DRIVER_RELEASE_VERSION "004.p0"
#define LBTF_FW_VER_MIN 0x05840300
#define LBTF_FW_VER_MAX 0x0584ffff
#define QOS_CONTROL_LEN 2
static const char lbtf_driver_version[] = "THINFIRM-USB8388-" DRIVER_RELEASE_VERSION;
struct workqueue_struct *lbtf_wq;
... | leemgs/OptimusOneKernel-KandroidCommunity | drivers/net/wireless/libertas_tf/main.c | C | gpl-2.0 | 15,357 |
/*
* CFQ, or complete fairness queueing, disk scheduler.
*
* Based on ideas from a previously unfinished io
* scheduler (round robin per-process disk scheduling) and Andrea Arcangeli.
*
* Copyright (C) 2003 Jens Axboe <axboe@kernel.dk>
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/blkd... | Lucius1972/Vex | block/cfq-iosched.c | C | gpl-2.0 | 123,066 |
from gi.repository import Gtk
import gourmet.gtk_extras.dialog_extras as de
from gourmet.plugin import RecDisplayModule, UIPlugin, MainPlugin, ToolPlugin
from .recipe_emailer import RecipeEmailer
from gettext import gettext as _
class EmailRecipePlugin (MainPlugin, UIPlugin):
ui_string = '''
<menubar name="Rec... | thinkle/gourmet | gourmet/plugins/email_plugin/emailer_plugin.py | Python | gpl-2.0 | 1,934 |
<?php
/**
* Implements Special:Undelete
*
* 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 program is di... | tychay/mediawiki-core | includes/specials/SpecialUndelete.php | PHP | gpl-2.0 | 46,697 |
{% extends "podcast/base.html" %}
{% load i18n %}
{% block allcontent %}
<div id="return-wrap">
<div id="return">
<p>{% trans "A list of episodes of one show" %}</p>
</div>
</div>
<div id="content-wrap">
<div id="content">
{% block content %}
<p class="back"><a href="{% url "podcast_shows" %}">{% t... | pat1/autoradio | autoradio/programs/templates/podcast/episode_list.html | HTML | gpl-2.0 | 2,995 |
package com.myselia.stem.communication.seekers;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import com.myselia.stem.communication.CommunicationDock;
public class LocalHostSeek implements Seek {
private volatile static LocalHostSeek unique... | Myselia/MyseliaStem | src/main/java/com/myselia/stem/communication/seekers/LocalHostSeek.java | Java | gpl-2.0 | 1,391 |
<?php
/**
* Single Product Sale Flash
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $post, $product;
?>
| teloniusz/rwwwdev | wp-content/themes/nimva/woocommerce/single-product/sale-flash.php | PHP | gpl-2.0 | 233 |
package kata;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
public class MyCollections {
public static String join(Collection collection) {
return join(collection, "");
}
public static String join(Collection collection, String separator... | graeme-lockley/string-calculator-java6-pbt | src/test/java/kata/MyCollections.java | Java | gpl-2.0 | 1,712 |
/******************************************************************************
CRYSTALPALACE - Episode specific code
*******************************************************************************/
#include "g_local.h"
#include "voice_punk.h"
#include "voice_bitch.h"
void ProcessKingpin (edict_t *self, edict_t ... | amokmen/q2ctc | Catch the Chicken for Kingpin v1.1/ctc_source_v1-1_kingpin/ep_crystalpalace.c | C | gpl-2.0 | 3,949 |
# encoding: utf-8
# module PIL._imaging
# from /usr/lib/python2.7/dist-packages/PIL/_imaging.so
# by generator 1.135
# no doc
# no imports
# Variables with simple values
DEFAULT_STRATEGY = 0
FILTERED = 1
FIXED = 4
HUFFMAN_ONLY = 2
jpeglib_version = '8.0'
PILLOW_VERSION = '2.5.1'
RLE = 3
zlib_version = '1.2.8'
... | ProfessorX/Config | .PyCharm30/system/python_stubs/-1247972723/PIL/_imaging.py | Python | gpl-2.0 | 3,425 |
<?php
# Inlcuir comentários e informações sobre o sistema
#
################################################################################
# CHANGELOG #
################################################################################
# incluir um ... | danfmsouza/yipservicedesk | ocomon/geral/relatorio_periodo_equipamento.php | PHP | gpl-2.0 | 2,865 |
/*
* Mesh.hpp
*
* RTfact - Real-Time Ray Tracing Library
*
* Copyright (C) 2010 Saarland University
*
* 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 Lic... | BALL-Contrib/contrib_rtfact_4f1d028 | rtpie/src/Scene/Mesh.hpp | C++ | gpl-2.0 | 2,200 |
// Copyright © 2004, 2011, 2013, Oracle and/or its affiliates. All rights reserved.
//
// MySQL Connector/NET is licensed under the terms of the GPLv2
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
// MySQL Connectors. There are special exceptions to the terms and
// conditions of the GPLv2 as ... | old-kasthack-s-projects/connectornet | Source/MySql.Data/MysqlDefs.cs | C# | gpl-2.0 | 16,986 |
<?php
global $base_path;
$about_company_path = $base_path . "about/company";
$about_team_path = $base_path . "about/team";
$theme_path = $base_path . drupal_get_path('theme', 'changshanews');
$about_memberdetail_path = $base_path . "about/memberdetail";
$theme_path = $base_path . drupal_get_path('theme', 'changshanews'... | Tomtang2013/changsha2 | sites/all/themes/changshanews/templates/about/team.tpl.php | PHP | gpl-2.0 | 4,470 |
cmd_sound/ppc/built-in.o := rm -f sound/ppc/built-in.o; /home/ar/android/aosp/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-ar rcs sound/ppc/built-in.o
| kannu1994/crespo_kernel | sound/ppc/.built-in.o.cmd | Batchfile | gpl-2.0 | 164 |
<?php
namespace ElmarHinz\TypoScriptParser\Tokens;
final class TypoScriptConditionToken extends AbstractTypoScriptToken
{
CONST TYPE = 'condition';
protected $classes = 'ts-condition';
}
| elmar-hinz/TX.tsp | Classes/Tokens/TypoScriptConditionToken.php | PHP | gpl-2.0 | 198 |
# include <stdio.h>
int n;
int a[25][25];
int main()
{
while (~scanf("%d", &n)) {
int cnt = 0;
int xl = 1, yl = 1, xr = n, yr = n;
while (cnt < n*n) {
for (int i = xl; cnt<n*n && i <= xr; ++i) a[yl][i] = ++cnt;
for (int i = yl+1; cnt<n*n && i <= yr; ++i) a[i][xr] = ... | fyh/training | other/nc-ha/79.cpp | C++ | gpl-2.0 | 778 |
/*
* Unix SMB/CIFS implementation.
* RPC Pipe client / server routines
*
* Copyright (C) Marcin Krzysztof Porwit 2005.
*
* Largely Rewritten (Again) by:
* Copyright (C) Gerald (Jerry) Carter 2005.
* Copyright (C) Guenther Deschner 2008,2009.
*
* This program is fre... | SVoxel/R7800 | git_home/samba.git/source3/rpc_server/svcctl/srv_svcctl_nt.c | C | gpl-2.0 | 33,062 |
QCL version 0.6.3
=================
Bernhard Oemer <oemer@tph.tuwien.ac.at>
Despite many common concepts with classical computer science, quantum
computing is still widely considered as a special discipline within the
broad field of theoretical physics. One reason for the slow adoption of
QC by the computer science ... | souravzzz/qcl | README.md | Markdown | gpl-2.0 | 4,751 |
/*
* cexcel - A library to read data from Excel spread sheets
*
* Copyright (C) 2007 RIKEN Japan, 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 as published by
* the Free Software Foundation; either version 2 ... | neuroinformatics/excel2xoonips | cexcel/file.c | C | gpl-2.0 | 4,256 |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Eclipse Public License, Version 1.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.eclipse.org/org/documents/epl-v10.php
*
* Unless r... | rex-xxx/mt6572_x201 | sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/NewXmlFileCreationPage.java | Java | gpl-2.0 | 49,017 |
/**
* Copyright (C) 2011, 2012 Commission Junction Inc.
*
* This file is part of httpobjects.
*
* httpobjects is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any... | cjdev/httpobjects | core/src/main/java/org/httpobjects/ConnectionInfo.java | Java | gpl-2.0 | 2,931 |
/**
* @version $Id: print.css 18829 2010-09-10 12:17:05Z infograf768 $
* @author Design & Accessible Team ( Angie Radtke / Robert Deutz )
* @package Chola
* @subpackage Accessible-Template-Beez
* @copyright Copyright (C) 2005 - 2008 Cholalabs Software LLP. All rights reserved.
* @license GNU/GPL, see LICENSE.php
... | cholalabs/CholaApps2.0 | templates/beez_20/css/print.css | CSS | gpl-2.0 | 5,245 |
# Copyright (C) 2008-2010 INRIA - EDF R&D
# Author: Damien Garaud
#
# This file is part of the PuppetMaster project. It checks the module
# 'network'.
#
# This script is free; 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... | garaud/puppetmaster | test/network_test.py | Python | gpl-2.0 | 8,973 |
/****************************************************************************
KHotKeys
Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
Distributed under the terms of the GNU General Public License version 2.
****************************************************************************/
#define _CONDITIONS_... | serghei/kde3-kdebase | khotkeys/kcontrol/condition_list_widget.cpp | C++ | gpl-2.0 | 13,256 |
<?php
/**
* Database creation and update statements for the Paypal plugin.
* Based on the gl-paypal Plugin for Geeklog CMS by Vincent Furia.
*
* @author Lee Garner <lee@leegarner.com>
* @author Vincent Furia <vinny01@users.sourceforge.net
* @copyright Copyright (c) 2009-2018 Lee Garner <lee@leegarner... | leegarner-glfusion/paypal | sql/mysql_install.php | PHP | gpl-2.0 | 52,275 |
/****************************************************************************
*
* CONFIDENTIAL
*
* Copyright (c) 2009 Yamaha Corporation
*
* Module : D4NP2_Ctrl_def.h
*
* Description : D-4NP2 control define
*
* Version : 1.0.2 2009.01.16
*
************************************************************... | peremen/gzone_ics_kernel | sound/soc/codecs/D4NP2_Ctrl_def.h | C | gpl-2.0 | 2,261 |
<?php
/**
* @Project NUKEVIET 4.x
* @Author VINADES.,JSC (contact@vinades.vn)
* @Copyright (C) 2014 VINADES.,JSC. All rights reserved
* @License GNU/GPL version 2 or any later version
* @Createdate 2-9-2010 14:43
*/
if (!defined('NV_IS_FILE_ADMIN')) {
die('Stop!!!');
}
$page_title = $lang_module['addtotopi... | NukeVietCMS/nukeviet | modules/news/admin/addtotopics.php | PHP | gpl-2.0 | 2,686 |
# Copyright (C) 2017 SUSE LLC
#
# 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 program is distributed in the h... | sysrich/os-autoinst | osutils.pm | Perl | gpl-2.0 | 2,533 |
/*
* occampi_fe.h -- interface to occam-pi front-end
* Copyright (C) 2005 Fred Barnes <frmb@kent.ac.uk>
*
* 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, o... | concurrency/nocc | include/occampi_fe.h | C | gpl-2.0 | 982 |
{% extends "admin/base_site.html" %}
{% load i18n admin_urls admin_static admin_list %}
{% load i18n admin_static %}{% load cycle from future %}
{% for item in result_hidden_fields %}{{ item }}{% endfor %}
{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% static "admin... | vquinones/admindemo | useradmin/templates/admin/content/screen_list.html | HTML | gpl-2.0 | 3,180 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.