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 |
|---|---|---|---|---|---|
<?php
namespace CirrusSearch\Search;
use CirrusSearch\Search\Fetch\FetchPhaseConfigBuilder;
use Elastica\ResultSet as ElasticaResultSet;
/**
* Result type for a full text search.
*/
final class FullTextResultsType extends BaseResultsType {
/**
* @var bool
*/
private $searchContainedSyntax;
/**
* @var Fet... | wikimedia/mediawiki-extensions-CirrusSearch | includes/Search/FullTextResultsType.php | PHP | gpl-2.0 | 4,137 |
namespace L2dotNET.GameService.network.l2send
{
class AutoAttackStop : GameServerNetworkPacket
{
private int sId;
public AutoAttackStop(int sId)
{
this.sId = sId;
}
protected internal override void write()
{
writeC(0x2c);
wri... | domis045/L2dotNET | src/L2dotNET.Game/network/serverpackets/AutoAttackStop.cs | C# | gpl-2.0 | 350 |
/**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest20813.java | Java | gpl-2.0 | 2,749 |
/**
* Created by herve on 10/11/15.
*/
function ajax_exercises_by_muscles(muscle) {
$("#loader").show();
$("#loader-message").show();
$.ajax({
url : "/exercises/muscles/ajax-exercises-by-muscles/", // the endpoint
type : "POST", // http method
data : { muscle : muscle }, // data se... | 4383/street-workout-database | sport/web/static/js/ajax.js | JavaScript | gpl-2.0 | 926 |
require 'rails_helper'
RSpec.describe Category, type: :model do
let(:category) { create(:category) }
it 'is valid factory for :category' do
expect(category).to be_valid
end
it 'is check empty category name' do
category = build(:category, name: nil)
category.valid?
expect(category.errors[:name... | ufacode/wenternet | spec/models/category_spec.rb | Ruby | gpl-2.0 | 1,438 |
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div>
<input type="submit" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ); ?>" />
<label class="screen-reader-text" for="s"><?php _x( 'Search for:', 'label' ); ?></la... | Kitzo/door-fellowship | wp-content/themes/chris-base-theme/searchform.php | PHP | gpl-2.0 | 506 |
require 'vx/container_connector'
require 'vx/instrumentation'
require 'active_support/notifications'
$stdout.puts ' --> initializing Vx::ContainerConnector'
Vx::ContainerConnector.instrumenter = ActiveSupport::Notifications
| pacoguzman/vx-worker | lib/vx/worker/initializers/containers.rb | Ruby | gpl-2.0 | 226 |
import React from "react";
import { connect } from "react-redux";
import { TimeMode, AppState, Dispatch } from "../../types";
import { getTimeObj } from "../../utils";
import * as Actions from "../../actionCreators";
import * as Selectors from "../../selectors";
import { TIME_MODE } from "../../constants";
interface ... | mazhar266/mazhar266.github.io | webamp/js/components/MainWindow/Time.tsx | TypeScript | gpl-2.0 | 1,798 |
<?php
/* This file is part of a copyrighted work; it is distributed with NO WARRANTY.
* See the file COPYRIGHT.html for more details.
*/
require_once("../shared/common.php");
$tab = "admin";
$nav = "materials";
$restrictInDemo = true;
require_once("../shared/logincheck.php");
require_once("../classes/Dm... | uniedpa/biblioteca | admin/materials_del.php | PHP | gpl-2.0 | 2,251 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Random mutator based on C. Miller 'algorithm' for Nightmare Fuzzing Project.
Created on Sun May 12 10:57:06 2013
@author: joxean
"""
import sys
import math
import random
#-----------------------------------------------------------------------
class CCMillerMutator(object)... | joxeankoret/nightmare | mutators/cmiller_mutator_rep.py | Python | gpl-2.0 | 1,588 |
/* class for generating random sample data*/
public class ValueGenerator {
private static String[] values = {
"elephant","giraffe","monkey","cheetah","dog","cat","tiger",
"mouse","tortoise","shark","whale","salmon","deer","wolf",
"grizzlybear","fox","snake","worm","fly","bee","hornet"
};
public static String[]... | DB-SE/isp2014.marcus.kamieth | Algorithms_DataStructures_RTVar/src/ValueGenerator.java | Java | gpl-2.0 | 1,197 |
//=============================================================================
// YHTTPD
// Helper
//=============================================================================
// c
#include <cstdio> // printf prototype.
#include <cstdlib> // calloc and free prototypes.
#include <cstring> // str* and memset pr... | j00zek/j00zeks-neutrino-mp-cst-next | src/nhttpd/yhttpd_core/helper.cpp | C++ | gpl-2.0 | 14,657 |
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: _debug.php sebastienheraud $
* @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url http://www.seblod.com
* @editor Octopoos - www.octopoos.com
* @copyright Copyright (C) 2009 - 2016 SEBLOD. All Rights Reserved.
* @license GNU General ... | klas/SEBLOD | administrator/components/com_cck/helpers/scripts/_debug.php | PHP | gpl-2.0 | 1,658 |
/*
* Copyright (c) 2021, 2021, 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 ... | smarr/Truffle | substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ConditionalConfigurationRegistry.java | Java | gpl-2.0 | 2,958 |
<?php
/**
* @package Blue Hat CDN
* @version 2.9.4
* @copyright (C) Copyright 2006-2014 Blue Hat Network, BlueHatNetwork.com. All rights reserved.
* @license GNU/GPL http://www.gnu.org/licenses/gpl-3.0.txt
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Ge... | dialoquad/dialoquad | wp-content/plugins/blue-hat-cdn/lib/common.php | PHP | gpl-2.0 | 3,884 |
<?php
// Checking if visitor is connected
$connected = false;
$is_admin = false;
if ( !empty($_SESSION['member'])) {
$connected = true;
$stmt = $PDO->prepare('SELECT members_id FROM admins WHERE id=1');
$stmt->execute();
$rslt = $stmt->fetch(PDO::FETCH_ASSOC);
$stmt->closeCursor();
$members_id = exp... | Tunisia-Sat/TSBlog | config/config.php | PHP | gpl-2.0 | 1,343 |
using System;
using System.Diagnostics;
using System.Resources;
using System.Windows;
using System.Windows.Markup;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using HTTPServer.Resources;
namespace HTTPServer
{
public partial class App : Application
{
/... | sintrb/WindowsPhoneHTTPServer | App.xaml.cs | C# | gpl-2.0 | 8,746 |
package com.arantius.tivocommander.rpc.request;
import com.arantius.tivocommander.rpc.MindRpc;
public class Unsubscribe extends MindRpcRequest {
public Unsubscribe(String subscriptionId) {
super("unsubscribe");
mDataMap.put("bodyId", MindRpc.mTivoDevice.tsn);
mDataMap.put("subscriptionId", subscriptionI... | arantius/TiVo-Commander | src/com/arantius/tivocommander/rpc/request/Unsubscribe.java | Java | gpl-2.0 | 330 |
/* -----------------------------------------------------------------------------------------------------------
Software License for The Third-Party Modified Version of the Fraunhofer FDK AAC Codec Library for Android
© Copyright 1995 - 2012 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
All r... | percy-g2/Novathor_xperia_u8500 | 6.2.A.1.100/external/aac/libSBRdec/src/arm/lpp_tran_arm.cpp | C++ | gpl-2.0 | 6,494 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2008-2020 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2020 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | jeffgdotorg/opennms | opennms-webapp-rest/src/main/java/org/opennms/web/rest/v1/AlarmRestService.java | Java | gpl-2.0 | 11,406 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace VDS.RDF.Query.Expressions.Functions.Leviathan.Numeric.Trigonometry
{
/// <summary>
/// Represents the Leviathan lfn:cot() or lfn:cot-1 function
/// </summary>
public class CotangentFunction
: BaseTr... | jmahmud/RDFer | RDFerSolution/dotNetRdf/Query/Expressions/Functions/Leviathan/Numeric/Trigonometry/CotangentFunction.cs | C# | gpl-2.0 | 2,997 |
// $ANTLR 2.7.0a11: "antlr.g" -> "ANTLRLexer.java"$
package antlr;
public interface ANTLRTokenTypes {
int EOF = 1;
int NULL_TREE_LOOKAHEAD = 3;
int LITERAL_tokens = 4;
int LITERAL_header = 5;
int STRING_LITERAL = 6;
int ACTION = 7;
int DOC_COMMENT = 8;
int LITERAL_lexclass = 9;
int LITERAL_class = 10;
int L... | dbenn/cgp | lib/antlr-2.7.0/antlr/ANTLRTokenTypes.java | Java | gpl-2.0 | 1,472 |
package Common.Loggers;
import Common.FuncInterfaces.*;
import Common.Interfaces.ILogger;
import java.io.*;
import static Common.Utils.StringUtils.LineBreak;
import static Common.Utils.TimeUtils.nowTime;
import static java.lang.String.format;
/**
* Created by roman.i on 25.09.2014.
*/
public class DefaultLogger i... | elv1s42/VIQAUITestingTool | Java/src/main/java/Common/Loggers/DefaultLogger.java | Java | gpl-2.0 | 2,428 |
<?php
//-
$ranges=Array(
"3573547008" => array("3573612543","ES"),
"3573612544" => array("3573743615","GB"),
"3573743616" => array("3573809151","CH"),
"3573809152" => array("3573874687","ES"),
"3573874688" => array("3573878783","PL"),
"3573878784" => array("3573882879","RU"),
"3573882880" => array("3573884927","DK"),
"... | hodorogandrei/contesteasyplatform | admiasi/include/ip2country_files/213.php | PHP | gpl-2.0 | 38,880 |
def float_example():
a = -10
print a.__float__()
print float(a)
if __name__ == '__main__':
float_example() | ramesharpu/python | basic-coding/built-in-functions/float.py | Python | gpl-2.0 | 124 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2001 David R. Hampton
# Copyright (C) 2001-2006 Donald N. Allingham
# Copyright (C) 2007 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | beernarrd/gramps | gramps/gen/plug/report/_reportbase.py | Python | gpl-2.0 | 3,048 |
<?php
// Search
// Wp Estate Pack
global $row_number_col;
get_header();
$options = wpestate_page_details('');
$unit_class = "col-md-6";
$row_number_col=6;
if($options['content_class'] == "col-md-12"){
$unit_class="col-md-4";
$row_number_col=4;
}
$row_number_col=4;
?>
<div class="row content-fi... | riddya85/rentail_upwrk | wp-content/themes/wprentals/search.php | PHP | gpl-2.0 | 1,879 |
from distutils.core import setup
setup(
name='tinyfsm',
version='0.1',
packages=[''],
url='https://github.com/tonyfunc/tinyfsm',
license='GNU Library',
author='tony',
author_email='me@tonyfunc.com',
description='A tiny implementation of Finite State Machine in Python.'
)
| tonyfunc/tinyfsm | setup.py | Python | gpl-2.0 | 305 |
package cn.guoyukun.demo.cts.dao;
import java.util.Map;
import java.util.Map.Entry;
import org.springframework.stereotype.Repository;
@Repository
public class DealerDao extends BaseDao{
private static final String _TABLE_NAME = "dealer";
private static final String _PK_NAME = "JXSDM";
@Override
protected ... | gyk001/demo-cts | src/main/java/cn/guoyukun/demo/cts/dao/DealerDao.java | Java | gpl-2.0 | 1,189 |
<?php namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Falla extends Model{
protected $fillable = ['name', 'address', 'status'];
public function objections(){
return $this->hasMany('App\Models\Objection', 'id_falla');
}
public function fools(){
return $this->belongsToMany('App\Models\Use... | victorarcasrios/fallas | app/Models/Falla.php | PHP | gpl-2.0 | 367 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | MDAnalysis/mdanalysis | package/MDAnalysis/analysis/waterdynamics.py | Python | gpl-2.0 | 41,156 |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.Types.ObjectId;
var beerSchema = new Schema({
name: String,
categoryId: ObjectId,
description: String,
stars: Number,
categoryIdString: String
});
var Beer = mongoose.model('Beer', beerSchema);
module.exports = Beer;
| HomeTap/HomeTap | models/beer.js | JavaScript | gpl-2.0 | 318 |
// $Id: DeploymentDiagramRenderer.java 7783 2005-02-20 21:55:19Z linus $
// Copyright (c) 2003-2005 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby grante... | carvalhomb/tsmells | sample/argouml/argouml/org/argouml/uml/diagram/deployment/ui/DeploymentDiagramRenderer.java | Java | gpl-2.0 | 7,999 |
#!/usr/bin/env python
# encoding: utf-8
import sys
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-m", "--m_number", dest = "m", help = "pleaer enter the m...", type = int)
parser.add_argument("-n", "--n_number", dest = "n", help = "pleaer enter th... | gatieme/AderXCoding | language/python/argparse/m-n3.py | Python | gpl-2.0 | 435 |
/***************************************************************************
testqgslayoutcontext.cpp
------------------------
begin : November 2014
copyright : (C) 2014 by Nyall Dawson
email : nyall dot dawson at gma... | CS-SI/QGIS | tests/src/core/testqgslayoutcontext.cpp | C++ | gpl-2.0 | 9,396 |
var winston = require('winston');
var WinstonFileTransport = winston.transports.File,
WinstonConsoleTransport = winston.transports.Console;
configLevel();
exports = winston;
module.exports = winston;
global.logs = winston;
exports.configLevel = configLevel;
function configLevel(config) {
winston.clear();
... | CaptureYou/captureyou-www | general/log.js | JavaScript | gpl-2.0 | 1,136 |
<?php
/**
* File containing the eZDiffEngine class.
*
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
* @version 2012.5
* @package lib
*/
/*!
\class eZDiffEngine ezdiffengine.php
\abstract
\ingroup e... | pauletienney/siliconnexion | lib/ezdiff/classes/ezdiffengine.php | PHP | gpl-2.0 | 850 |
/*
* Kexi Report Plugin
* Copyright (C) 2007-2009 by Adam Pigg (adam@piggz.co.uk)
*
* 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... | donniexyz/calligra | kexi/plugins/reports/kexisourceselector.cpp | C++ | gpl-2.0 | 5,620 |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... | ensiform/jk2mv | src/qcommon/vm_interpreted.cpp | C++ | gpl-2.0 | 21,435 |
# F3AT - Flumotion Asynchronous Autonomous Agent Toolkit
# Copyright (C) 2010,2011 Flumotion Services, S.A.
# 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... | f3at/feat | src/feat/test/test_agencies_emu_agency.py | Python | gpl-2.0 | 11,954 |
<?php
if ( ! class_exists( 'Redux_Validation_not_empty' ) ) {
class Redux_Validation_not_empty {
/**
* Field Constructor.
* Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function
*
... | wanmendoza/fundecan | wp-content/themes/helpme/includes/framework/ReduxCore/inc/validation/not_empty/validation_not_empty.php | PHP | gpl-2.0 | 1,384 |
package iptat.util;
public interface Observer {
public void update(int state);
}
| AlexandruGhergut/IPTAT | src/iptat/util/Observer.java | Java | gpl-2.0 | 83 |
/*
* Copyright (C) 2008-2018 TrinityCore <https://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 version 2 of the License, or (at your
* option) any later v... | conan513/SingleCore_TC | src/server/game/Battlefield/Battlefield.cpp | C++ | gpl-2.0 | 37,310 |
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file ... | stweil/TYPO3.CMS | Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/AjaxDispatcher.ts | TypeScript | gpl-2.0 | 4,280 |
// *************************************************************************
//
// Copyright 2004-2010 Bruno PAGES .
//
// This file is part of the BOUML Uml Toolkit.
//
// 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
// th... | gregsmirnov/bouml | src/misc/UmlDrag.cpp | C++ | gpl-2.0 | 2,695 |
<?php
/**
*
* Ajax Shoutbox extension for the phpBB Forum Software package.
*
* @copyright (c) 2014 Paul Sohier <http://www.ajax-shoutbox.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* Translated By : Bassel Taha Alhitary - www.alhitary.net
*/
/**
* DO NOT CHANGE
*/
if (!defined('I... | Galixte/ajax-shoutbox-ext | language/ar/ajax_shoutbox.php | PHP | gpl-2.0 | 2,096 |
<?php
/*
$Id: tax_classes.php 1692 2012-02-26 01:26:50Z michael.oscmax@gmail.com $
osCmax e-Commerce
http://www.oscmax.com
Copyright 2000 - 2011 osCmax
Released under the GNU General Public License
*/
define('HEADING_TITLE', 'Tipos de impuestos');
define('TABLE_HEADING_TAX_CLASSES', 'Tipos de impuestos');
... | arnabnaha/NHCPharmacy | catalog/admin/includes/languages/espanol/tax_classes.php | PHP | gpl-2.0 | 1,041 |
/* $Id: tag.hpp 55984 2013-01-01 09:34:55Z mordante $ */
/*
Copyright (C) 2011 - 2013 by Sytyi Nick <nsytyi@gmail.com>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as ... | RushilPatel/BattleForWesnoth | src/tools/schema/tag.hpp | C++ | gpl-2.0 | 9,062 |
<?php
require_once("include/config.php");
require_once("include/functions.php");
if(!isset($_SESSION['logat'])) $_SESSION['logat'] = 'Nu';
if($_SESSION['logat'] == 'Da')
{
if(isset($_SESSION['nume']) && ctype_alnum($_SESSION['nume']))
$setid = $_SESSION['userid'];
... | hodorogandrei/contesteasyplatform | admiasi/editare-foto.php | PHP | gpl-2.0 | 4,821 |
using System.ComponentModel;
using System.Windows;
namespace Filewatcher.GUI
{
public partial class MacroView
{
public string Value { get; set; }
public MacroView()
{
InitializeComponent();
InitalizeExitRequest();
InitializeLocation();
}
... | bajak/luba-filewatcher | GUI/Views/MacroView.xaml.cs | C# | gpl-2.0 | 1,364 |
<?php
// ============================================================+
// File name : example_045.php
// Begin : 2008-03-04
// Last Update : 2011-04-15
//
// Description : Example 045 for TCPDF class
// Bookmarks and Table of Content
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// ... | memoupao/Fondo-Simon | lib/tcpdf/examples/example_045.php | PHP | gpl-2.0 | 3,857 |
package de.amshaegar.economy.http;
import java.io.IOException;
import java.net.InetSocketAddress;
import com.sun.net.httpserver.HttpServer;
import de.amshaegar.economy.EcoFlow;
public class WebInterface {
private HttpServer server;
public WebInterface(int port) throws IOException {
server = HttpServer.create... | AmShaegar13/EcoFlow | src/de/amshaegar/economy/http/WebInterface.java | Java | gpl-2.0 | 780 |
<?php
/**
* Auto Amazon Links
*
* Generates links of Amazon products just coming out today. You just pick categories and they appear even in JavaScript disabled browsers.
*
* https://en.michaeluno.jp/amazon-auto-links/
* Copyright (c) 2013-2021 Michael Uno
*/
/**
* A scratch class to delete a database table.
... | michaeluno/amazon-auto-links | include/core/component/test/run/delete/database/aal_products/AmazonAutoLinks_Run_Database_Delete_aal_products.php | PHP | gpl-2.0 | 745 |
<div class="footer-social">
<div class="container">
<div class="row">
<div class="col-sm-6">
<h3 style="margin-top:8px; font-weight:300;"></h3>
</div>
<div class="col-sm-1">
<div class="social">
<div class="social-icon"><a href="#"><i class="icon-... | truebadore/tba | wp-content/themes/cloudhost/footer.php | PHP | gpl-2.0 | 3,013 |
<?php
if ( !defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Manages image sizes settings
*
* Here image sizes settings are defined and managed.
*
* @version 1.1.4
* @package ecommerce-product-catalog/functions
* @author Norbert Dreszer
*/
add_action( 'admin_init', 'ic_add_wp_screens_se... | impleCode/ecommerce-product-catalog | includes/settings/image-sizes.php | PHP | gpl-2.0 | 7,783 |
package com.tacohen.killbots.Logic;
import android.util.Pair;
public class GridDimensions {
public static Pair<Integer, Integer> gridDimensions;
public static int width;
public static int height;
public static Pair<Integer, Integer> getGridDimensions() {
return gridDimensions;
}
public static void setGridDi... | Tacohen/Killbots | Killbots/src/com/tacohen/killbots/Logic/GridDimensions.java | Java | gpl-2.0 | 692 |
<?php
/*
* Plugin Name: Permalink Redirect
* Plugin URI: http://scott.yang.id.au/code/permalink-redirect/
* Description: Permalink Redirect ensures that pages and entries are always accessed via the permalink. Otherwise, a 301 redirect will be issued.
* Version: 2.0.5
* Author: Scott Yang
* Author URI: http://sco... | amejias101/wordpress | wp-content/plugins/ylsy_permalink_redirect.php | PHP | gpl-2.0 | 16,822 |
//http://codeforces.com/problemset/problem/670/D2
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#define printv(data) for(auto& e:data) cout<<e<<","; cout<<endl;
#define sortv(data) std::sort(data.begin(),data.end());
#define rsortv(data) std::sort(data.rbegin(),data.rend());
#define ... | fjanisze/Problems | D2MagicPowder.cpp | C++ | gpl-2.0 | 1,543 |
function fileQueueError(file, errorCode, message) {
try {
var imageName = "error.gif";
var errorName = "";
if (errorCode === SWFUpload.errorCode_QUEUE_LIMIT_EXCEEDED) {
errorName = "You have attempted to queue too many files.";
}
if (errorName !== "") {
alert(errorName);
return;
}
... | vapvarun/MicrocerptBIZ | wp-content/plugins/PlusOnett/monetize/add_post/image_uploader/swfupload/handlers.js | JavaScript | gpl-2.0 | 8,928 |
/**
* 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 publishedby the Free
* Software Foundation.
*
* If the program is linked with ... | ridoo/SensorWebClient | sensorwebclient-api/src/main/java/org/n52/server/da/oxf/SosRequestBuilderFactory.java | Java | gpl-2.0 | 1,956 |
<?php
/* define package */
define('PKG_NAME', 'VoteForms');
define('PKG_NAME_LOWER', strtolower(PKG_NAME));
define('PKG_VERSION', '2.0.5');
define('PKG_RELEASE', 'beta');
define('PKG_AUTO_INSTALL', true);
/* define paths */
if (isset($_SERVER['MODX_BASE_PATH'])) {
define('MODX_BASE_PATH', $_SERVER['MODX_BASE_PATH'... | me6iaton/VoteForms | _build/build.config.php | PHP | gpl-2.0 | 2,496 |
//
// ID Engine
// ID_IN.c - Input Manager
// v1.0d1
// By Jason Blochowiak
//
//
// This module handles dealing with the various input devices
//
// Depends on: Memory Mgr (for demo recording), Sound Mgr (for timing stuff),
// User Mgr (for command line parms)
//
// Globals:
// LastScan - The keyboard scan code o... | WarlockD/crispy-doom | stm32/wolf3d/id_in.cpp | C++ | gpl-2.0 | 17,126 |
<div class="mcl-login-form-login">
<h2><?php echo ($instance_id == "my_columbia_llm") ? "My Columbia LL.M." : "My Columbia Law and Admitted Student" ?></h2>
<h3>Security Question Update</h3>
<div <?php echo (isset($_SESSION['messages']['status'][0])) ? "class='status-msg'" : "" ?> >
<?php echo (isset($_SESSIO... | nexttee/culaw | sites/default/modules/cls_mcl/templates/security_question_update.tpl.php | PHP | gpl-2.0 | 3,687 |
$Rev: 916 $
| boudewijnrempt/HyvesDesktop | 3rdparty/socorro/webapp-php/application/views/common/version.php | PHP | gpl-2.0 | 13 |
package utility;
public class IdConst extends Ident {
//Valeur de la constante
private int valeur;
//Initialisation d'une IdConst (nom, type et valeur)
public IdConst(String _name, int _type, int _valeur) {
super(_name, _type); //constructeur de Ident
this.valeur = _valeur;
}
public int getValeur() {retur... | william-insa/Projet_compilateur | Compilateur/src/utility/IdConst.java | Java | gpl-2.0 | 455 |
/**********************************************************************
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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; eithe... | seggil/warciv | common/worklist.hh | C++ | gpl-2.0 | 2,086 |
<?php
/* -----------------------------------------------------------------------------------------
$Id: xtc_get_uprid.inc.php 899 2005-04-29 02:40:57Z hhgag $
XT-Commerce - community made shopping
http://www.xt-commerce.com
Copyright (c) 2003 XT-Commerce
---------------------------------------------... | dsiekiera/modified-bs4 | inc/xtc_get_uprid.inc.php | PHP | gpl-2.0 | 2,442 |
/*
* ZAL - The abstraction layer for Zimbra.
* Copyright (C) 2016 ZeXtras S.r.l.
*
* This file is part of ZAL.
*
* 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 Licen... | ZeXtras/OpenZAL | src/java/org/openzal/zal/RightConstants.java | Java | gpl-2.0 | 2,924 |
<?php
/*
+---------------------------------------------------------------------------+
| OpenX v2.8 |
| ========== |
| ... | soeffing/openx_test | www/admin/userlog-index.php | PHP | gpl-2.0 | 11,731 |
package com.comphenix.xp.parser;
import static org.junit.Assert.*;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.MemoryConfiguration;
import org.junit.Test;
import com.comphenix.xp.expressions.RangeExpression;
import com.google.common.collect.Lists;
public class Ra... | aadnk/ExperienceMod | ExperienceMod/src/test/java/com/comphenix/xp/parser/RangeParserTest.java | Java | gpl-2.0 | 1,231 |
<?php
declare(strict_types=1);
use TYPO3\CMS\Core\Authentication\AuthenticationService;
use TYPO3\CMS\Core\Controller\FileDumpController;
use TYPO3\CMS\Core\Controller\RequireJsController;
use TYPO3\CMS\Core\Hooks\BackendUserGroupIntegrityCheck;
use TYPO3\CMS\Core\Hooks\BackendUserPasswordCheck;
use TYPO3\CMS\Core\Ho... | TYPO3-CMS/core | ext_localconf.php | PHP | gpl-2.0 | 5,021 |
<?php
class Redux_Validation_url extends Redux_Options {
/* for PRO users! - *
* Field Constructor.
*
* Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function
*
* @since Redux_Options 1.0.0
*/
function __construct($field, $value, $cu... | EmmaTope/SolidSteps | wp-content/themes/dante/includes/options/validation/url/validation_url.php | PHP | gpl-2.0 | 1,019 |
<?php
$this->currencies = array (
'adp' => 'Andorransk peseta',
'aed' => 'Förenade arabemiratens dirham',
'afa' => 'Afghani (1927-2002)',
'afn' => 'Afghani',
'all' => 'Albansk lek',
'amd' => 'Armenisk dram',
'ang' => 'Nederländsk antillisk gulden',
'aoa' => 'Angolansk kwanza',
'aok' => 'Angolansk kwan... | prdatur/soopfw | language/currencies/sv.php | PHP | gpl-2.0 | 8,556 |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | palasthotel/grid-wordpress-box-social | vendor/google/apiclient-services/src/Google/Service/Cloudchannel/GoogleCloudChannelV1alpha1SubscriberEvent.php | PHP | gpl-2.0 | 1,892 |
<?php
/**
* content-gallery.php
*
* The default template for displaying posts with the Gallery post format.
* @package Theme_Material
* GPL3 Licensed
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- Article header -->
<header class="entry-header"> <?php
// If single page, display the... | puuga/wordpress | wp-content/themes/material/content-gallery.php | PHP | gpl-2.0 | 1,286 |
/*
* 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/jms/src/javax/jms/InvalidSelectorException.java | Java | gpl-2.0 | 1,322 |
# exercise from http://www.ling.gu.se/~lager/python_exercises.html
# solution from http://rosettacode.org/wiki/99_Bottles_of_Beer#Python
# "99 bottle of beer" is a traditional song in the US and Canada.
# it is popular to sing on long trips, as it has a very repetitive
# format which is easy to memorize, and can take ... | SurAnand/pyuthon | 99beer.py | Python | gpl-2.0 | 1,042 |
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2017 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* ... | mfursov/ugene | src/plugins/dbi_bam/src/SamReader.cpp | C++ | gpl-2.0 | 21,739 |
package com.code.taskmanager.bean;
import android.graphics.drawable.Drawable;
public class AppInfo {
public Drawable icon;
public String name;
public String packagename;
public boolean sysApp;
public long mem;
}
| silvernoo/KillTask | src/com/code/taskmanager/bean/AppInfo.java | Java | gpl-2.0 | 219 |
#####################################################################
# -*- coding: iso-8859-1 -*- #
# #
# Frets on Fire #
# Copyright (C) 2006 Sami Kyostila ... | cherbib/fofix | src/Guitar.py | Python | gpl-2.0 | 95,964 |
#include "string\string.h"
#include "..\testcommon.h"
#include <gtest/gtest.h>
const struct test_isnumeric
{
std::wstring given;
bool is;
bool allowDecimals;
friend std::ostream& operator <<(std::ostream& os, const test_isnumeric& obj)
{
return os
<< "Given : " << myodd::strings::WString2String(ob... | FFMG/myoddweb.piger | myoddtest/string/teststring_isnumeric.cpp | C++ | gpl-2.0 | 6,066 |
# Copyright 1999 by Jeffrey Chang. All rights reserved.
# Copyright 2000 by Jeffrey Chang. All rights reserved.
# Revisions Copyright 2007 by Peter Cock. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
#... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/Prosite/__init__.py | Python | gpl-2.0 | 27,006 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.orionline.entidade;
/**
*
* @author ronald
*/
public class BarrasRelacionadas extends ProdutoAUX{
... | ronaldsantos63/ConversorOrionline | src/br/com/orionline/entidade/BarrasRelacionadas.java | Java | gpl-2.0 | 323 |
// taikaDlg.cpp : implementation file
//
#include "stdafx.h"
#include "taika.h"
#include "taikaDlg.h"
#include "Props.h"
#include "DlgVarmuuskopioi.h"
#include "DlgSiivoaTietokanta.h"
#include "DlgAsetukset.h"
#include "DlgLuoUusiTietokanta.h"
#include "DlgAbout.h"
#include "StringHelper_luokka.h"
#include <afxpriv.h>... | ptesavol/t-time | VS2005App/taikaDlg.cpp | C++ | gpl-2.0 | 25,345 |
// Generated by CoffeeScript 1.8.0
(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() {... | jcwproductions/jcwproductions-blog | wp-content/plugins/awesome-gallery/assets/js/awesome-gallery.js | JavaScript | gpl-2.0 | 76,673 |
import pathlib
import h5py
import numpy as np
import pytest
from scipy.ndimage.filters import gaussian_filter
import dclab
from dclab.rtdc_dataset.feat_anc_plugin.plugin_feature import (
PlugInFeature, import_plugin_feature_script,
remove_plugin_feature, remove_all_plugin_features,
PluginImportError)
from ... | ZellMechanik-Dresden/dclab | tests/test_rtdc_feat_anc_plugin.py | Python | gpl-2.0 | 29,760 |
package net.idtoki.instelec.controller;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.ResourceBundle;
import java.util.logging.Logger;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ht... | Esleelkartea/instelec-app | instelecapp_v1.0.0_src/src/net/idtoki/instelec/controller/TareasController.java | Java | gpl-2.0 | 18,850 |
// SPDX-License-Identifier: GPL-2.0
#include <errno.h>
#include <QtBluetooth/QBluetoothAddress>
#include <QLowEnergyController>
#include <QLowEnergyService>
#include <QCoreApplication>
#include <QElapsedTimer>
#include <QEventLoop>
#include <QThread>
#include <QTimer>
#include <QDebug>
#include <QLoggingCategory>
#in... | neolit123/subsurface | core/qt-ble.cpp | C++ | gpl-2.0 | 13,635 |
package com.uvic.textshare.service.rest;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.ws.rs.GET;
impo... | Brkk/flybrary | src/main/java/com/uvic/textshare/service/rest/TextbookResource.java | Java | gpl-2.0 | 16,036 |
/* Copyright (c) 2000, 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... | ForcerKing/ShaoqunXu-mysql5.7 | sql/sql_resolver.cc | C++ | gpl-2.0 | 121,648 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2009-2012 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2012 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | vishwaAbhinav/OpenNMS | core/soa/src/main/java/org/opennms/core/soa/ServiceRegistry.java | Java | gpl-2.0 | 4,248 |
<div id="<?php echo $iname; ?>messages" class="messages">
<?php
// if there are messages loop through all messages
if ($this->getInput('messages')) {
foreach ($this->getInput('messages') as $message) {
?>
<div class="messageblock">
<div class="header">
<div class="datetime"><?php ech... | peeto/DarkChat | src/web/displaymessages.php | PHP | gpl-2.0 | 667 |
"""
SALTS XBMC Addon
Copyright (C) 2014 tknorris
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.
T... | felipenaselva/repo.felipe | plugin.video.salts/scrapers/watch8now_scraper.py | Python | gpl-2.0 | 3,576 |
<?php
/**
* http://fusionforge.org/
*
* This file is part of FusionForge. FusionForge 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 Licence, or (at your option)
* any later v... | foresthz/fusion5.1 | www/export/rss20_tracker.php | PHP | gpl-2.0 | 5,480 |
<?php
defined('JPATH_PLATFORM') or die;
/**
*
* @package VirtueMart
* @subpackage Plugins - Elements
* @author Valérie Isaksen
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2011 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.p... | FabianodeLimaAbreu/conectby | administrator/components/com_virtuemart/fields/vmacceptedcurrency.php | PHP | gpl-2.0 | 1,698 |
/*
* Open-source multi-Physics Phenomena Analyzer (OP2A) ver. 0.1
*
* Copyright (c) 2015 MINKWAN KIM
*
* Initial Developed Date: May 26, 2015
* Author: Minkwan Kim
*
* OP2A_ProblemCommon.hpp
* -
*
*/
#ifndef OP2A_PROBLEMCOMMON_HPP_
#define OP2A_PROBLEMCOMMON_HPP_
#include <string>
#include... | minkwankim/OP2A | OP2A/Setup/include/OP2A_ProblemCommon.hpp | C++ | gpl-2.0 | 593 |
<?php
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2020 Leon Jacobs
*
* 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) ... | eveseat/web | tests/database/migrations/2020_05_08_085856_create_corporation_infos_test_table.php | PHP | gpl-2.0 | 2,126 |
/*
* Copyright (C) 2005 - 2011 MaNGOS <http://www.getmangos.org/>
*
* Copyright (C) 2008 - 2011 TrinityCore <http://www.trinitycore.org/>
*
* Copyright (C) 2011 - 2012 TrilliumEMU <http://trilliumx.code-engine.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of... | Kr4v3n5/Core | src/server/game/Instances/InstanceScript.cpp | C++ | gpl-2.0 | 15,351 |
<?php
/**
* @file
* Customize the display of a complete webform.
*
* This file may be renamed "webform-form-[nid].tpl.php" to target a specific
* webform on your site. Or you can leave it "webform-form.tpl.php" to affect
* all webforms on your site.
*
* Available variables:
* - $form: The complete form array.
... | eforerop2888/fotografias | sites/all/themes/fotografias/templates/webform-form-33.tpl.php | PHP | gpl-2.0 | 1,215 |
import mainUi.main
mainUi.main.main()
| MiiRaGe/cryptanalysis-tools | run.py | Python | gpl-2.0 | 39 |