code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
package jpelc.learning.designpatterns.factorymethod; public enum WeaponType { SHORT_SWORD("short sword"), SPEAR("spear"), AXE("axe"), UNDEFINED(""); private String title; WeaponType(String title) { this.title = title; } @Override public String toString() { return title; ...
jpelc/java-design-patterns
factory-method/src/main/java/jpelc/learning/designpatterns/factorymethod/WeaponType.java
Java
gpl-2.0
324
// // avl.cc // // Copyright (C) 1996 Limit Point Systems, Inc. // // Author: Curtis Janssen <cljanss@limitpt.com> // Maintainer: LPS // // This file is part of the SC Toolkit. // // The SC Toolkit is free software; you can redistribute it and/or modify // it under the terms of the GNU Library General Public License as...
qsnake/mpqc
src/lib/util/container/avl.cc
C++
gpl-2.0
1,494
package org.anarres.qemu.qapi.api; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonUnwrapped; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java...
shevek/qemu-java
qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/NFSServer.java
Java
gpl-2.0
1,832
/* Copyright (C) 2013 Rainmeter Project Developers * * This Source Code Form is subject to the terms of the GNU General Public * License; either version 2 of the License, or (at your option) any later * version. If a copy of the GPL was not distributed with this file, You can * obtain one at <https://www.gnu....
tomkort/rainmeter
Common/Gfx/CanvasD2D.cpp
C++
gpl-2.0
16,684
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.IO; using System.Xml.Serialization; using System.Text; using System.Windows.Forms; using LJH.GeneralLibrary.Core.DAL; using LJH.GeneralLibrary....
ljh198275823/500-SteelRoll-Inventory
Source/LJH.Inventory.UI/Forms/FrmMasterBaseEX.cs
C#
gpl-2.0
27,659
<?php /* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */ namespace Icinga\Module\Monitoring\Backend\Ido\Query; class StatehistoryQuery extends IdoQuery { protected $types = array( 'soft_state' => 0, 'hard_state' => 1 ); protected $columnMap = array( 'statehistory'...
tunghoang/snmp-ts-stt-icingaweb2
modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php
PHP
gpl-2.0
2,524
/* * Rvzware based in CAPAWARE 3D * * Rvzware 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.1 of the License, or (at your option) * any later version. * * Rvzware is distribu...
BackupTheBerlios/rvzware
src/iosg/gui/OsgWidget.cpp
C++
gpl-2.0
8,564
package freenet.node; import java.util.List; import java.util.Vector; import freenet.io.comm.Peer; public interface PacketFormat { boolean handleReceivedPacket(byte[] buf, int offset, int length, long now, Peer replyTo); /** * Maybe send something. A SINGLE PACKET. Don't send everything at once, for two reason...
wnoisephx/fred-official
src/freenet/node/PacketFormat.java
Java
gpl-2.0
1,733
<?php /** * @package Gantry5 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC * @license Dual License: MIT or GNU/GPLv2 and later * * http://opensource.org/licenses/MIT * http://www.gnu.org/licenses/gpl-2.0.html * * Gantry Framework code that exten...
JozefAB/neoacu
libraries/gantry5/classes/Gantry/Component/Stylesheet/LessCompiler.php
PHP
gpl-2.0
4,104
<?php /** * Generic icon view. * * @package Elgg * @subpackage Core * * @uses $vars['entity'] The entity the icon represents - uses getIconURL() method * @uses $vars['size'] topbar, tiny, small, medium (default), large, master * @uses $vars['href'] Optional override for link */ $entity = $vars['entity']; ...
lorea/Elgg
mod/videolist/views/default/icon/object/videolist_item.php
PHP
gpl-2.0
1,025
package fr.inria.contraintes.biocham.modelData; import fr.inria.contraintes.biocham.BiochamDynamicTree; import fr.inria.contraintes.biocham.BiochamMainFrame; import fr.inria.contraintes.biocham.BiochamModel; import fr.inria.contraintes.biocham.BiochamModelElement; import fr.inria.contraintes.biocham.WorkbenchArea; imp...
Thomashuet/Biocham
gui/modelData/ParamTableRules.java
Java
gpl-2.0
32,668
<?php /* Template Name: Wide Header Image Page */ ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if(get_the_post_thumbnail()): ?> <div class="wrapper-negative container-fluid wide-header"> <div class="row"> <div class="col-sm-12"> <?php the_post_thumbnail(full); ?> </div> </d...
vimpelli/novastar2015dev
wp-content/themes/novastar2015/templates/wideheaderimage.php
PHP
gpl-2.0
573
import { computed, toRefs } from '@vue/composition-api' export const useInputValueToggleProps = { label: { type: String }, options: { type: Array, default: () => ([ { value: 0 }, { value: 1, color: 'var(--primary)' } ]) }, hints: { type: Array } } export const useInputValue...
inverse-inc/packetfence
html/pfappserver/root/src/composables/useInputValueToggle.js
JavaScript
gpl-2.0
2,215
# -*- coding: utf-8 -*- """ *************************************************************************** v_univar.py --------------------- Date : December 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ****************************...
bstroebl/QGIS
python/plugins/sextante/grass/ext/v_univar.py
Python
gpl-2.0
1,499
/* * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * * Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either vers...
milleniumcore/CactusEMU
src/server/game/Entities/GameObject/GameObject.cpp
C++
gpl-2.0
64,195
/**************************************************************************** ** Resource object code ** ** Created: Tue May 21 13:17:21 2013 ** by: The Resource Compiler for Qt version 4.8.2 ** ** WARNING! All changes made in this file will be lost! ****************************************************************...
katastrofa/TeamWorkTimer
src/GeneratedFiles/qrc_teamworkpmtimer.cpp
C++
gpl-2.0
717
<definitions targetNamespace="http://rs.tdwg.org/tapir/lsid/Authority" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:httpsns="http://www.omg.org/LSID/2003/DataServiceHTTPBindings"> <import namespace="http://www.omg.org/LSID/2...
telabotanica/tapirlink
templates/LsidDataServices.wsdl.php
PHP
gpl-2.0
902
package drawing; import math.VectorMath; /** * * @author Mark Traquair - Started in 2013/14 */ public class Collision { VectorMath math = new VectorMath(); private boolean doTheMath(Point point1, Point point2){ //This is the dot product of point 2 - point1 return ((poi...
WorldsBestCoder/PlanetSimulation
src/drawing/Collision.java
Java
gpl-2.0
3,059
/* * Copyright (C) 2005-2014 Team XBMC * http://xbmc.org * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * ...
codesnake/xbmc
xbmc/video/videosync/VideoSyncDRM.cpp
C++
gpl-2.0
4,875
var passport = require('passport'); var LocalStrategy = require('passport-local').Strategy; var bodyParser = require('body-parser') var chip = require('../../chip.js'); var Syndicate = require('../../model/syndicate'); var Account = require('../../model/account'); var Group = require('../../model/group'); var Engine = ...
uzrbin/chip
src/face/routes/account.js
JavaScript
gpl-2.0
3,788
using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json.Linq; using System.Runtime.Serialization; #pragma warning disable CS0108 namespace KODIRPC.VideoLibrary { public class GetTVShows_filterStudio { public string studio { get; set; } } }
DerPate2010/Xbmc2ndScr
KODIRPC.Portable/KODIRPC/VideoLibrary/GetTVShows_filterStudio.cs
C#
gpl-2.0
291
using System.Collections.Generic; using Untech.Web.Core.Models.Post; namespace Untech.Web.Core.Services.Interfaces { public interface IPostTrackingService { List<PostPackage> Track(PostPackage package); } }
Happi-cat/Untech.Web
Untech.Web.Core/Services/Interfaces/IPostTrackingService.cs
C#
gpl-2.0
224
<?php /** * Internationalisation file for the InterwikiDetection extension * * @file * @ingroup Extensions */ $messages = array(); /* English * @author Nathan Larson */ $messages['en'] = array( 'interwikidetection' => 'Interwiki detection', 'interwikidetection-desc' => 'Links wikilinks to Wikipedia if the pa...
Inclumedia/InterwikiDetection
InterwikiDetection.i18n.php
PHP
gpl-2.0
466
/*---------------------------------------------------------------------------*\ ## #### ###### | ## ## ## | Copyright: ICE Stroemungsfoschungs GmbH ## ## #### | ## ## ## | http://www.ice-sf.at ## #### ###### | ------------------------------------------------------...
Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder1.7-libraries-swak4Foam
Libraries/swak4FoamParsers/include/swak.H
C++
gpl-2.0
3,398
# #LiloConf.py # import sys, re, os import logging import GrubConf class LiloImage(object): def __init__(self, lines, path): self.reset(lines, path) def __repr__(self): return ("title: %s\n" " root: %s\n" " kernel: %s\n" " args: %s\n" ...
mikesun/xen-cow-checkpointing
tools/pygrub/src/LiloConf.py
Python
gpl-2.0
4,887
<?php return array( 'maintenances' => array( 'type' => DB::TABLE_TYPE_CONFIG, 'key' => 'maintenanceid', 'fields' => array( 'maintenanceid' => array( 'null' => false, 'type' => DB::FIELD_TYPE_ID, 'length' => 20, ), 'name' => array( 'null' => false, 'type' => DB::FIELD_TYPE_CHAR, '...
gheja/zabbix-ext
frontends/php/include/schema.inc.php
PHP
gpl-2.0
123,223
package ch.hgdev.toposuite.transfer; import android.content.Context; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; /** * Interface implementing the Strategy design pattern in order to provide an * easy way to save an object into a file. * * @author HGdev */ public interface S...
hgdev-ch/toposuite-android
app/src/main/java/ch/hgdev/toposuite/transfer/SaveStrategy.java
Java
gpl-2.0
1,754
<?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 */ // no direct access defined('_JEXEC') or die; JHtml::_('behavior.keepalive'); JHtml::_('behavior.formvalidation');...
NavaINT1876/ccustoms
templates/yoo_showroom/warp/systems/joomla/layouts/com_users/reset/complete.php
PHP
gpl-2.0
1,178
/* * file: canmessagemodel.cpp * author: jrenken * * $Rev: 74 $ * $Author: jrenken $ * $Date: 2012-08-30 15:50:09 +0200 (Do, 30 Aug 2012) $ * $Id: canmessagemodel.cpp 74 2012-08-30 13:50:09Z jrenken $ */ #include <QByteArray> #include "canmessagemodel.h" CanMessageModel::CanMessageModel(Type type, QOb...
jrenken/qtaddon-qtcansocket
examples/canview/canmessagemodel.cpp
C++
gpl-2.0
3,360
/* ** Blue Dust - File code (cut-down, read only) */ #include <stdio.h> #include <stdlib.h> #include "BDDiskFile.h" #include "BDTypes.h" CBDDiskFile::CBDDiskFile() { m_fp = 0; } CBDDiskFile::~CBDDiskFile() { Close(); } int CBDDiskFile::Open(const char *pFilename) { m_fp = fopen(pFilename, "r"); if (!m_fp) return...
MarquisdeGeek/html_parser
parse/cmn/BDDiskFile.cpp
C++
gpl-2.0
1,208
/** * Copyright (C) 2012-2016 52°North Initiative for Geospatial Open Source * Software GmbH * * 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. * * If the program is linked with...
ahuarte47/SOS
core/api/src/main/java/org/n52/sos/service/operator/ServiceOperatorRepository.java
Java
gpl-2.0
6,805
class Solution { public: int singleNumber(vector<int>& nums) { const int n = nums.size(); if (n == 1) return nums[0]; int result = nums[0]; for (int i = 1; i < n; ++i){ result ^= nums[i]; } return result; } };
ztongfighton/Leetcode-Answers
Single Number.cpp
C++
gpl-2.0
278
<?PHP /* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr> * * This program is free software; you can redistribute it and/or modify * it under the ter...
philazerty/dolibarr
htdocs/fourn/commande/liste.php
PHP
gpl-2.0
6,930
/* Copyright(C) 2013 Danny Sok <danny.sok@outlook.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 3 of the License, or (at your option) any later version. This program is dis...
danruto/Thirteen
src/ai/AIGame.cpp
C++
gpl-2.0
5,626
#include "Common.h" #include "Database/DatabaseEnv.h" #include "ItemPrototype.h" #include "World.h" #include "SpellMgr.h" #include "PlayerbotAI.h" #include "PlayerbotMgr.h" #include "PlayerbotDeathKnightAI.h" #include "PlayerbotDruidAI.h" #include "PlayerbotHunterAI.h" #include "PlayerbotMageAI.h" #include "PlayerbotPa...
3raZar3/Dark-Ice
src/game/PlayerbotAI.cpp
C++
gpl-2.0
122,644
#ifndef UTILITY_COMPAT_HPP #define UTILITY_COMPAT_HPP #include <boost/date_time/posix_time/posix_time.hpp> namespace utility { struct tm strptime( const char* timestamp ); } #endif
ajfazan/opensource
utility/compat.hpp
C++
gpl-2.0
189
<?php namespace MockSockets\Assertions { use MockSockets\JsonRpc\JsonRpcRequest; class MethodNameAssertion implements Assertion { private $expectedMethod; public function __construct($name) { if (!is_string($name)) { throw ...
aztech-dev/php-mock-jsonrpc
MockSockets/Assertions/MethodNameAssertion.class.php
PHP
gpl-2.0
621
/* Copyright (c) 2005, 2006 by CodeSourcery. All rights reserved. This file is available for license from CodeSourcery, Inc. under the terms of a commercial license and under the GPL. It is not part of the VSIPL++ reference implementation and is not available under the BSD license. */ /** @file benchmark...
maxywb/vsipl
sourceryvsipl++-2.3/share/sourceryvsipl++/benchmarks/conv.cpp
C++
gpl-2.0
4,313
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. 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; version 2 of the License. This program is distributed in t...
sachintaware/webscalesql-5.6
sql/item_func.cc
C++
gpl-2.0
183,480
#!/usr/bin/env python2.7 import os import sys this_dir = os.path.dirname(os.path.abspath(__file__)) trunk_dir = os.path.split(this_dir)[0] sys.path.insert(0,trunk_dir) from ikol.dbregister import DataBase from ikol import var if os.path.exists(var.DB_PATH): os.remove(var.DB_PATH) DB = DataBase(var.DB_PATH) ...
lokiteitor/ikol
test/DBtest.py
Python
gpl-2.0
589
<?php /** * File containing the basket_cleanup.php cronjob * * @copyright Copyright (C) 1999-2013 eZ Systems AS. All rights reserved. * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 * @version 2013.5 * @package kernel */ $ini = eZINI::instance(); // Check if this should be run...
alafon/ezpublish-community-built
ezpublish_legacy/cronjobs/basket_cleanup.php
PHP
gpl-2.0
930
/* Copyright (C) 2005 Kimmo Pekkola 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 distri...
pyq881120/rainmeter
Plugins/PluginQuote/Quote.cpp
C++
gpl-2.0
8,297
/**************************************************************************** ** Meta object code from reading C++ file 'ColorController.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************...
FlorianPO/SpriteEditor
SQT/GeneratedFiles/Release/moc_ColorController.cpp
C++
gpl-2.0
2,743
//unit GR32_RepaintOpt; #include "stdafx.h" #include "GR32_RepaintOpt.h" void InflateArea(var Area: TRect; Dx, Dy: Integer); { if Area.Left > Area.Right then Dx := -Dx; if Area.Top > Area.Bottom then Dy := -Dy; Dec(Area.Left, Dx); Dec(Area.Top, Dy); Inc(Area.Right, Dx); Inc(Area.Bott...
hyperiris/openhyper
graphic32/GR32_RepaintOpt.cpp
C++
gpl-2.0
1,794
<?php /** * @package External_Login * @subpackage Component * @author Christophe Demko <chdemko@gmail.com> * @author Ioannis Barounis <contact@johnbarounis.com> * @author Alexandre Gandois <alexandre.gandois@etudiant.univ-lr.fr> * @copyright Copyright (C) 2008-2018 Christophe Demko, Ioannis...
emundus/v6
administrator/components/com_externallogin/views/logs/view.html.php
PHP
gpl-2.0
4,116
<?php get_header(); ?> <?php include( get_template_directory() . '/functions/get-options.php' ); /* include theme options */ ?> <!--BEGIN #primary .hfeed--> <div id="primary" class="hfeed"> <?php if( function_exists('bcn_display')) : echo '<p class="breadcrumb">'; bcn_display(); echo '</p>'; endif...
marcelijanowski/jaxa
wp-content/themes/Loveit-theme/category-blog.php
PHP
gpl-2.0
1,375
<?PHP // // Release $Name$ // // Copyright (c)2002-2003 Matthias Finck, Dirk Fust, Oliver Hankel, Iver Jackewitz, Michael Janneck, // Martti Jeenicke, Detlev Krause, Irina L. Marinescu, Timo Nolte, Bernd Pape, // Edouard Simon, Monique Strauss, Jose Manuel Gonzalez Vazquez, Johannes Schultze // // This file is part ...
commsy/commsy
legacy/classes/cs_wordpress_manager.php
PHP
gpl-2.0
27,924
<?php /** Functions for DB layer * * PHP version 5 * * @category File * @package crawler DB * @author Malitsky Alexander <a.malitsky@gmail.com> * @license GNU GENERAL PUBLIC LICENSE */ /** * Gets all onSale apartments from the last snapshot. * * @param object $db MYSQLi connection * @param integer $bId ...
amalitsky/new-buildings-story
db.php
PHP
gpl-2.0
4,505
<? /* ----------------------------------------------------------------------------------------- $Id: cash.php 1102 2005-07-24 15:05:38Z mz $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce -----------------------------------------------------------------...
mcules/self-commerce
lang/translate_0815/german/modules/payment/cash.php
PHP
gpl-2.0
1,902
package gerhard2202.culinaromancy.item; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.MobEffects; import net.minecraft.item.ItemStack; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; import java.util.Random; public class ItemGourmetChicken extends ItemCulinaro...
gerhard2202/Culinaromancy
src/main/java/gerhard2202/culinaromancy/item/ItemGourmetChicken.java
Java
gpl-2.0
856
<?php /* Copyright (C) NAVER <http://www.navercorp.com> */ /** * - DB parent class * - usage of db in XE is via xml * - there are 2 types of xml - query xml, schema xml * - in case of query xml, DB::executeQuery() method compiles xml file into php code and then execute it * - query xml has unique query id, and wi...
SoneYours/rhymix
classes/db/DB.class.php
PHP
gpl-2.0
27,162
/** * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. * * 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 later...
iucn-whp/world-heritage-outlook
portlets/iucn-dbservice-portlet/docroot/WEB-INF/src/com/iucn/whp/dbservice/service/base/inscription_criteria_lkpLocalServiceClpInvoker.java
Java
gpl-2.0
9,411
/* Copyright (c) 2005, 2015, Oracle and/or its affiliates. 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; version 2 of the License. This program is distributed in t...
facebook/mysql-5.6
sql/event_data_objects.cc
C++
gpl-2.0
44,132
<?php class Inc_Testimonials_Carousel extends Abstract_Inc_Shortcode implements Inc_Shortcode_Designer { static $POST_ID_ATTR = "post_id"; static $COUNT_ATTR = "count"; function render($attr, $inner_content = null, $code = "") { $default_attr = array( Inc_Testimonials_Carousel::$PO...
arkev/UM-Virtual
wp-content/themes/inceptio/api/shortcode/Inc_Testimonials_Carousel.php
PHP
gpl-2.0
3,818
/*************************************************************************** qgscomposerview.cpp ------------------- begin : January 2005 copyright : (C) 2005 by Radim Blazek email : blazek@itc.it *******************...
myarjunar/QGIS
src/gui/qgscomposerview.cpp
C++
gpl-2.0
66,042
<?php // Slider extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/slider class YellowSlider { const VERSION = "0.8.13"; public $yellow; // access to API // Handle initialisation public function onLoad($yellow) { $this->yellow = $yellow; $this->ye...
datenstrom/yellow-plugins
source/slider/slider.php
PHP
gpl-2.0
3,789
/* general map generation class Since September 2013 | mark@prmanenttourist.ch This code is provided as-is under the GPL v2 licence, which is available via http://www.gnu.org/licenses/gpl-2.0.html, and may be freely used, adapted and built upon. No guarantee is provided or implied. Test your code! http://www.gnu...
mhmli/mhmli_googlemaps
general class/class.googlemaps.js
JavaScript
gpl-2.0
12,311
<?php die("Access Denied"); ?>#x#s:881:" 1403080887<?xml version="1.0" encoding="utf-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>Inppnet - Instituto Nacional de Parapsicologia Psicometafísica</ShortName> <Description>Instituto Nacional de Parapsicologia Psicometafí...
damasiorafael/inppnet
cache/t3_pages/53bbb79b4980f60ea0786b85df096904-cache-t3_pages-3bce912d507110e794c2a34ff19c1ed3.php
PHP
gpl-2.0
923
<?php /** * The template for displaying all single posts. * * @package tub */ get_header(); ?> <!-- single.php --> <!-- Hero --> <div class="hero js-heroImage"> <img class="hero--image" src="<?php bloginfo(template_directory) ?>/images/header.jpg" alt="The Unassisted Baby"> <div class="overlay"></div> <...
joshevensen/theunassistedbaby.com
wp-content/themes/tub/single.php
PHP
gpl-2.0
1,305
package demos.nehe.lesson27; import demos.common.GLDisplay; import demos.common.LessonNativeLoader; /** * @author Abdul Bezrati */ public class Lesson27 extends LessonNativeLoader { public static void main(String[] args) { GLDisplay neheGLDisplay = GLDisplay .createGLDisplay("Lesson 27: Shadows");...
Jotschi/jogl2-example
src/main/java/demos/nehe/lesson27/Lesson27.java
Java
gpl-2.0
562
/* * RAFTools - Copyright (C) 2016 Zane van Iperen. * Contact: zane@zanevaniperen.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, and only * version 2 as published by the Free Software Foundation. * * This...
vs49688/RAFTools
src/main/java/net/vs49688/rafview/cli/commands/RamInfo.java
Java
gpl-2.0
1,855
<?php namespace TYPO3\Flow\Security\Aspect; /* * * This script belongs to the TYPO3 Flow framework. * * * * It is free software; you can redistribute it...
garvitdelhi/emulate
Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Security_Aspect_PersistenceQueryRewritingAspect.php
PHP
gpl-2.0
31,121
<?php get_header(); /* Template Name: About Page */ ?> <?php // check if the flexible content field has rows of data if( have_rows('content_type') ): // loop through the rows of data while ( have_rows('content_type') ) : the_row(); // type 1 if( get_row_layout() == 'main_image' ): ?> <di...
trevorgreenleaf/zoom
wp-content/themes/basic/page-about.php
PHP
gpl-2.0
3,390
#include <cmath> #include <iostream> using namespace std; int main() { int num = 4.4; cout << ceil(num) << endl; return 0; }
songpengwei/Algorithms
math/ceil.cc
C++
gpl-2.0
140
module.exports = { user : 'Your Github Username', cal : 'Google calendar id to update' };
mike-audi/gh-gcal
example.config.js
JavaScript
gpl-2.0
92
/* This source file is a part of the GePhex Project. Copyright (C) 2001-2004 Georg Seidel <georg@gephex.org> Martin Bayer <martin@gephex.org> Phillip Promesberger <coma@gephex.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
ChristianFrisson/gephex
base/src/utils/structscannerOLD.cpp
C++
gpl-2.0
2,760
<script type="text/template" id="ae-report-loop"> <div class="form-group-work-place"> <div class="info-avatar-report"> <a href="#" class="avatar-employer-report"> {{=avatar}} </a> <div class="info-report"> <span class="name-report">{{= displ...
BestWebTech/creativefreelanceprofessionals
wp-content/themes/freelanceengine/mobile/template-js/report-item.php
PHP
gpl-2.0
3,031
#include <iostream> #include "DVB.hh" int main(int argc, char **argv) { ifstream con(argv[1]); DVB dvbd(-1); con >> dvbd; // dvbd.set_outtype(VDR_OUT); cout << dvbd; }
esurharun/libdvb
sample_progs/conv.cc
C++
gpl-2.0
183
/* * Copyright (c) 2006 Sean C. Rhea (srhea@srhea.net) * Copyright (c) 2010 Mark Liversedge (liversedge@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...
stigbd/GoldenCheetah
src/AllPlot.cpp
C++
gpl-2.0
266,861
<?php /** * @version $Id$ * @package Joomla.Site * @subpackage com_users * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.mootools'); JHtml::_('behavi...
joebushi/joomla
components/com_users/views/reset/tmpl/default.php
PHP
gpl-2.0
1,009
<?php if (substr($_SERVER['HTTP_HOST'], 0, 4) != 'www.') { header('Location: http'.(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on' ? 's':'').'://' . "www.".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit; } include('config.php'); if (!class_exists('Database')) { include('lib/database.class.php');...
Zilus/cms
includes/globals.php
PHP
gpl-2.0
3,007
package com.vk.libs.appcommontest.gankio.mvp.data.requestbody; /** * Created by VK on 2017/2/8.<br/> * - 登录 */ public class LoginInfoReqParam { /* URL: /user/login.action param: { account: ‘admin’, password: ‘admin123’ } */ // {"j_mobile_mid":"864895022552002","j_pic_code":...
VK2012/AppCommonFrame
app/src/main/java/com/vk/libs/appcommontest/gankio/mvp/data/requestbody/LoginInfoReqParam.java
Java
gpl-2.0
2,960
package com.tincent.demo.adapter; import java.util.ArrayList; import java.util.List; import com.nostra13.universalimageloader.core.DisplayImageOptions; import com.nostra13.universalimageloader.core.ImageLoader; import com.nostra13.universalimageloader.core.assist.FailReason; import com.nostra13.universalimageloader.c...
tincent/libtincent
appdemo/src/com/tincent/demo/adapter/AdBannerAdapter.java
Java
gpl-2.0
4,595
/* * Copyright (C) 2008-2012 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...
lasoto/Arena_TC
src/server/game/Scripting/ScriptMgr.cpp
C++
gpl-2.0
50,973
/* sec_auth.cc: NT authentication functions Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE"...
pgavin/or1k-src
winsup/cygwin/sec_auth.cc
C++
gpl-2.0
38,957
/* * Copyright (c) 1998-2010 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source is free software; you can redistribute it and/or modify * it under the terms o...
christianchristensen/resin
modules/webbeans/src/javax/enterprise/inject/spi/ProcessManagedBean.java
Java
gpl-2.0
1,495
<?php /** * @package WordPress * @subpackage Agrofields * @version 1.0.0 * * Blog Page Timeline Gallery Post Format Template * Created by CMSMasters * */ global $cmsms_metadata; $cmsms_post_metadata = explode(',', $cmsms_metadata); $date = (in_array('date', $cmsms_post_metadata) || is...
arturoceballos/Qualified-Applicator-Specialist
wp-content/themes/agrofields/framework/postType/blog/page/timeline/gallery.php
PHP
gpl-2.0
4,108
<?php /** * Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes Team <info@yithemes.com> * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is ...
lieison/IndustriasFenix
wp-content/themes/bishop/theme/assets/lib/Walker_Nav_Menu_Div.php
PHP
gpl-2.0
4,536
#ifndef QGOOGLEAUTHENTICATOR_H #define QGOOGLEAUTHENTICATOR_H #include "qgoogleauthenticator_global.h" #include <QDateTime> #include <QtEndian> #include "base32.h" #include "hmac.h" #define SECRET_LENGTH 16 #define VERIFICATION_CODE_MODULUS (1000*1000) // Six digits class QGOOGLEAUTHENTICATORSHARED_EXPORT QGoogleAu...
iMoritz/QGoogleAuthenticator
qgoogleauthenticator.hpp
C++
gpl-2.0
545
<?php /** * @name Geocode Factory * @package geoFactory * @copyright Copyright © 2013 - All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Cédric Pelloquin aka Rick <info@myJoom.com> * @website www.myJoom.com */ defined('_JEXEC') or die; JLoader::regi...
naka211/daekcenter
administrator/components/com_geofactory/views/markerset/view.html.php
PHP
gpl-2.0
2,149
package de.tkprog.MiSeLoR; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util...
TKPROG/MiSeLoR
src/de/tkprog/MiSeLoR/MiSeLoR.java
Java
gpl-2.0
5,164
//Copyright (c) 2008-2010 Emil Dotchevski and Reverge Studios, Inc. //Distributed under the Boost Software License, Version 1.0. (See accompanying //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/qvm/q_access.hpp> #include <boost/qvm/v_access.hpp> struct my_quat { }; ...
ducis/cuda-brute-force-vision
cuda_vision/libs/qvm/test/access_q_fail.cpp
C++
gpl-2.0
780
<?php die("Access Denied"); ?>#x#s:4974:" 1449928439 <!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" xml:lang="zh-tw" lang="zh-tw"> <head> <script type="text/javascript"> var siteurl='/'; ...
ForAEdesWeb/AEW32
cache/t3_pages/e8efe7956197beb28b5e158ad88f292e-cache-t3_pages-eda25a734db4561a48963667955ba148.php
PHP
gpl-2.0
4,982
/** * This file is part of the Goobi viewer - a content presentation and management application for digitized objects. * * Visit these websites for more information. * - http://www.intranda.com * - http://digiverso.com * * This program is free software; you can redistribute it and/or modify it ...
intranda/goobi-viewer-core
goobi-viewer-core/src/test/java/io/goobi/viewer/model/cms/CMSStaticPageTest.java
Java
gpl-2.0
1,546
/** * Util of json ajax. * author: firstboy * require: jquery */ function Jsoncallback(url, callback, method, data, loadid) { if (loadid) $('#'+loadid).fadeIn(200); $.ajax({ type: method, data: data, scriptCharset: 'UTF-8', dataType: 'json', url: url, success: function(json) { if (loadid) $('...
firstboy0513/lexstat
cgi/js/util.js
JavaScript
gpl-2.0
1,281
TESTS = { "Level_1": [ { "input": [1, 2, 3], "answer": 2, "explanation": "3-1=2" }, { "input": [5, -5], "answer": 10, "explanation": "5-(-5)=10" }, { "input": [10.2, -2.2, 0, 1.1, 0.5], ...
Empire-of-Code-Puzzles/checkio-empire-most-numbers
verification/src/tests.py
Python
gpl-2.0
2,790
/* * This file is part of the OpenNos Emulator 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 * ...
OpenNos/OpenNos
OpenNos.Data/CharacterRelationDTO.cs
C#
gpl-2.0
1,055
#include <iostream> #include <fstream> #include <sstream> #include <cstdint> #include <stdexcept> #include <math.h> #include <opennfs/cloud.h> #include <opennfs/opengl.h> #include <opennfs/billboard.h> namespace visualizer { void CloudLayer::enable_light_shafts() { _light_shafts_enabled = true; } void CloudLayer...
mixaal/opennfs
src/cloud.cc
C++
gpl-2.0
13,419
#include "commands.h" Commands* Commands::Instance () { static Commands t; return &t; } Commands::Commands() { settings = Settings::Instance(); critterselection = Critterselection::Instance(); registerCmd("quit", &Commands::quit); registerCmd("decreaseenergy", &Commands::decreaseenergy); registerCmd("increas...
bobke/Critterding
src/utils/commands.cpp
C++
gpl-2.0
11,700
# _*_ coding:utf-8 _*_ # Filename:ClientUI.py # Python在线聊天客户端 from socket import * from ftplib import FTP import ftplib import socket import thread import time import sys import codecs import os reload(sys) sys.setdefaultencoding( "utf-8" ) class ClientMessage(): #设置用户名密码 def setUsrANDPwd(self,usr,pwd): ...
gzxultra/IM_programming
class_ClientMessage.py
Python
gpl-2.0
6,373
/*! Responsive JS Library v1.2.2 */ /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ /*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ win...
kevinreilly/ivsn-wp
wp-content/themes/responsive/core/js-dev/responsive-scripts.js
JavaScript
gpl-2.0
21,660
/* * aTunes * Copyright (C) Alex Aranda, Sylvain Gaudard and contributors * * See http://www.atunes.org/wiki/index.php?title=Contributing for information about contributors * * http://www.atunes.org * http://sourceforge.net/projects/atunes * * This program is free software; you can redistribute it and/or * mo...
PDavid/aTunes
aTunes/src/main/java/net/sourceforge/atunes/kernel/modules/context/audioobject/AudioObjectBasicInfoContent.java
Java
gpl-2.0
5,655
/* * aTunes * Copyright (C) Alex Aranda, Sylvain Gaudard and contributors * * See http://www.atunes.org/wiki/index.php?title=Contributing for information about contributors * * http://www.atunes.org * http://sourceforge.net/projects/atunes * * This program is free software; you can redistribute it and/or * mo...
PDavid/aTunes
aTunes/src/main/java/net/sourceforge/atunes/gui/views/dialogs/ExtendedToolTip.java
Java
gpl-2.0
4,283
<?php namespace TYPO3\CMS\Backend\Toolbar; /*************************************************************** * Copyright notice * * (c) 2007-2013 Ingo Renner <ingo@typo3.org> * All rights reserved * * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute it and...
tonglin/pdPm
public_html/typo3_src-6.1.7/typo3/sysext/backend/Classes/Toolbar/ToolbarItemHookInterface.php
PHP
gpl-2.0
2,092
/* * Copyright (c) 1998-2010 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source is free software; you can redistribute it and/or modify * it under the terms o...
CleverCloud/Quercus
quercus/src/main/java/com/caucho/quercus/env/JavaCalendarValue.java
Java
gpl-2.0
1,904
<?php /** * 文件读写 * * @copyright JDphp框架 * @version 1.0.8 * @author yy */ defined('JDPHP_MAKER') || exit('Forbidden'); class cfile { /** * 写文件 * * @param string $filename * @param string $data * @param string $method * @param int $iflock * @param int $check * @param int $chmod...
zy73122/jdphp
system/tool/cfile.php
PHP
gpl-2.0
5,313
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|11 May 2015 07:09:03 -0000 vti_extenderversion:SR|12.0.0.0 vti_author:SR|jafnote1\\jafnote vti_modifiedby:SR|jafnote1\\jafnote vti_timecreated:TR|11 May 2015 07:09:03 -0000 vti_cacheddtm:TX|11 May 2015 07:09:03 -0000 vti_filesize:IR|10146 vti_cachedlinkinfo:VX|A|options-p...
Siguana/square
wp-admin/_vti_cnf/options-permalink.php
PHP
gpl-2.0
867
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) using System; using System.Globalization; using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Math; namespace Org.BouncyCastle.Crypto.Parameters { public class ECPrivateKeyParameters : ECKeyParameters { private readonly Big...
JohnMalmsteen/mobile-apps-tower-defense
Assets/Best HTTP (Pro)/BestHTTP/SecureProtocol/crypto/parameters/ECPrivateKeyParameters.cs
C#
gpl-2.0
2,207
package in.shabhushan.cp_trials.bits; /** * Leetcode solution for * https://leetcode.com/problems/counting-bits/submissions/ */ class CountBits { public static int[] countBits(int num) { int[] n = new int[num + 1]; for (int i = 1; i < num + 1; i++) { if (i % 2 == 0) { n[i] = n[i / 2]; ...
Shashi-Bhushan/General
cp-trials/src/main/java/in/shabhushan/cp_trials/bits/CountBits.java
Java
gpl-2.0
392
var http = require("http"), url = require("url"), path = require("path"), fs = require("fs"), DS = "/"; var settings = { port: 8080, indexFile: "index.html", folder: { serverside: "serverside", clientside: "clientside", static: "static_server", ...
ninjinx/nadeplanet
serverside/static_server/static_server.js
JavaScript
gpl-2.0
2,872