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
/******************************************************************************* * This file is part of Minebot. * * Minebot 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...
iAmRinzler/minebot
Minebot/src/net/famzangl/minecraft/minebot/build/block/SlabFilter.java
Java
gpl-3.0
2,030
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
Niky4000/UsefulUtils
projects/ssh/apache_mina/apache-sshd-1.2.0/sshd-core/src/main/java/org/apache/sshd/agent/unix/AgentClient.java
Java
gpl-3.0
6,427
<?php /****************************************************************************** * * * This file is part of RPB Calendar, a Wordpress plugin. * * Copyright (C) 2014 Yoann Le Montagner <yo35 -at- melix.net> ...
yo35/rpb-calendar
models/categorylist.php
PHP
gpl-3.0
1,899
using System.Runtime.InteropServices; using System.Security; using System; using System.Runtime.Remoting.Contexts; using System.Runtime.Remoting; using System.Runtime.Remoting.Activation; namespace System.Runtime.Remoting.Proxies { /// <summary>Indicates that an object type requires a custom proxy.</summary> [...
zebraxxl/CIL2Java
StdLibs/corlib/System/Runtime/Remoting/Proxies/ProxyAttribute.cs
C#
gpl-3.0
4,267
package script import ( evbus "github.com/asaskevich/EventBus" "github.com/mudler/artemide/pkg/context" plugin "github.com/mudler/artemide/plugin" jww "github.com/spf13/jwalterweatherman" ) // Script construct the container arguments from the boson file type Script struct{} // Process builds a list of packages f...
mudler/artemide
plugin/recipe/script/script.go
GO
gpl-3.0
978
class KuiristoWeb # # Recipe # head '/recipe/:source/:x/:id.raw' do |source,x,id| src = Kuiristo.source(source) # Find recipe and get rawid row = DB[:recipes].select(:rawid) .first(:source => src::ID, :id => id.to_i) not_found if row.nil? ...
sdalu/kuiristo
app/recipe.rb
Ruby
gpl-3.0
3,314
OJ.importCss('nw.components.NwTray'); OJ.extendComponent( 'NwTray', [OjComponent], { '_props_' : { 'actuator' : null, 'allowSlide' : false, 'tray' : null }, '_template' : 'nw.components.NwTray', '_is_open' : false, // '_tray_anim' : null, ...
NuAge-Solutions/NW
src/js/components/NwTray.js
JavaScript
gpl-3.0
4,779
<?php include ('config.php'); include ('init.php'); include ('include.php'); $eventId = $_GET['eventId']; //get quantity of stations from event $query = 'SELECT stations FROM shootevent WHERE id='. $eventId; $result = dbquery($query); $row = mysqli_fetch_assoc($result); $stations = $row['stations']; ?...
peteritism/ShootReportSystem
eventReport.php
PHP
gpl-3.0
17,554
/** * @file Column.cpp * @ingroup SQLiteCpp * @brief Encapsulation of a Column in a row of the result pointed by the prepared SQLite::Statement. * * Copyright (c) 2012-2015 Sebastien Rombauts (sebastien.rombauts@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or ...
edlund/fabl-ng
vendor/sources/sqlitecpp-1.1/src/Column.cpp
C++
gpl-3.0
2,919
<?php /** * Single Post template file * * This file is the single template file, used on single blog posts, per * the {@link http://codex.wordpress.org/Template_Hierarchy Template Hierarchy}. * * @link http://codex.wordpress.org/Function_Reference/comments_open comments_open() * @link http://codex.wordpr...
UpThemes/AppTheme
single.php
PHP
gpl-3.0
2,893
// This file has been generated by Py++. #include "stdafx.h" #include "pypluspluscommon.h" #include "boost/python.hpp" #include "__call_policies.pypp.hpp" #include "xmlmanager.h" #include "httpurl.h" #include "xmldocument.h" #include "xmlmanager.pypp.hpp" namespace bp = boost::python; struct XMLManager_wrapper : ::o...
OsirisSPS/osiris-sps
client/src/plugins/python/wrappers/xmlmanager.pypp.cpp
C++
gpl-3.0
12,206
package models; import java.sql.ResultSet; import java.sql.SQLException; /** * Classe qui permet de gérer les informations des utilisateurs déjà inscris. * @author BURC Pierre, DUPLOUY Olivier, KISIALIOVA Katsiaryna, SEGUIN Tristan * */ public class UserInformation { private User infoUser; private static Strin...
lodacom/UpYourMood
app/models/UserInformation.java
Java
gpl-3.0
2,698
#include <iostream> #include "argument.h" using namespace std; using namespace command; #define VALUE "-1234567890" typedef int ArgumentType; ArgumentType test; void _function(ArgumentType value) { test = value; } int main() { Argument<ArgumentType> argument("Argument as negative int", _function); i...
quayle/command
tests/argument/handles_negative_int_value.cpp
C++
gpl-3.0
704
/* Neutrino-GUI - DBoxII-Project Copyright (C) 2001 Steffen Hehn 'McClean' Homepage: http://dbox.cyberphoria.org/ Copyright (C) 2012-2013 Stefan Seyfried License: GPL 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 ...
FFTEAM/FFTEAM-MP3-Martii
src/gui/infoviewer_bb.cpp
C++
gpl-3.0
47,910
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may...
srnsw/xena
plugins/image/ext/src/batik-1.7/sources/org/apache/batik/dom/svg/SVGLocatableSupport.java
Java
gpl-3.0
6,739
/* * Copyright (C) 2012 Timo Vesalainen * * 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 di...
tvesalainen/bcc
src/main/java/org/vesalainen/bcc/LongASM.java
Java
gpl-3.0
7,297
/* * stereographic projection * * Copyright 2010 dan collins <danc@badbytes.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 of...
badbytes/pymeg
meg/stereographicprojection.py
Python
gpl-3.0
1,056
<?php // Activate session session_start(); // Start output buffer ob_start(); // Include utility files require_once 'include/config.php'; require_once BUSINESS_DIR . 'error_handler.php'; // Set the error handler ErrorHandler::SetHandler(); // Load the application page template require_once PRESENTATI...
ray1919/zsq3p1_db
admin.php
PHP
gpl-3.0
1,583
/******************************************************************************\ * _ ___ ____ __ _ * * | | | \ \___/ / \/ | ___ __ _ ___| |_ * * | |_| |\ /| |\/| |/ __/ _` / __| __| *...
HAMcast/HAMcast
libhamcast/src/serialization.cpp
C++
gpl-3.0
5,912
/* * This file is part of the L2J Global project. * * 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 p...
rubenswagner/L2J-Global
java/com/l2jglobal/gameserver/model/conditions/ConditionPlayerHp.java
Java
gpl-3.0
1,390
#!/usr/bin/env python import asyncio import json from bson import json_util from pymongo import MongoClient from .search import Query from .crawl import Spider class ClientSpider(Spider): """ Indexes the client website and saves all pages to a mongodb collection """ def __init__(self, client): ...
apt-helion/viperidae
api/developer.py
Python
gpl-3.0
1,525
# -*- coding: utf-8 -*- # * Authors: # * TJEBBES Gaston <g.t@majerti.fr> # * Arezki Feth <f.a@majerti.fr>; # * Miotte Julien <j.m@majerti.fr>; import os from autonomie.models.user.userdatas import ( ZoneOption, ZoneQualificationOption, StudyLevelOption, SocialStatusOption, Activit...
CroissanceCommune/autonomie
autonomie/views/admin/userdatas/options.py
Python
gpl-3.0
1,533
# -*- coding: utf8 -*- """Configuration params for sherlock.""" import os basedir = os.path.abspath(os.path.dirname(__file__)) CORS_HEADER = 'Content-Type' TOKEN_TIMEOUT = 9999 SECRET_KEY = os.urandom(25) SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') SQLALCHEMY_TRACK_MODIFICATIONS = True
leoGalani/sherlock
config.py
Python
gpl-3.0
309
# ############################################################################# # # buckshot.py - given a set of numbers and a marker name, make sarsoft markers # corresponding to all three lat-lon coordinate systems # # # developed for Nevada County Sheriff's Search and Rescue # Copyright (c) 2015 Tom Grundy #...
ncssar/buckshot
buckshot.py
Python
gpl-3.0
30,547
/******************************************************************************* * Copyright (c) 2011-2014 SirSengir. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v3 * which accompanies this distribution, and is availabl...
ThiagoGarciaAlves/ForestryMC
src/main/java/forestry/core/genetics/MutationConditionHumidity.java
Java
gpl-3.0
1,896
package io.renren.modules.api.controller; import io.renren.common.utils.R; import io.renren.modules.api.annotation.AuthIgnore; import io.renren.modules.api.annotation.LoginUser; import io.renren.modules.api.entity.TokenEntity; import io.renren.modules.api.entity.UserEntity; import org.springframework.web.bind.annotat...
qqq490010553/springboot-basis
src/main/java/io/renren/modules/api/controller/ApiTestController.java
Java
gpl-3.0
1,092
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/i18n/icu_util.h" #include "build/build_config.h" #if defined(OS_WIN) #include <windows.h> #endif #include <string> #include "base/f...
tierney/cryptagram-cc
src/base/i18n/icu_util.cc
C++
gpl-3.0
4,102
/* * Created on 16-dic-2004 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Generation - Code and Comments */ /* gvSIG. Sistema de Información Geográfica de la Generalitat Valenciana * * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. * * This program...
iCarto/siga
libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrGT2_old.java
Java
gpl-3.0
5,013
namespace _08.Custom_Comparator { using System; using System.Collections.Generic; using System.Linq; public class Startup { public static void Main() { int[] numbers = Console.ReadLine() .Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEnt...
PlamenHP/Softuni
Advanced C#/Functional Programming - Exercises/08. Custom Comparator/Startup.cs
C#
gpl-3.0
1,086
#include <fstream> #include <iostream> #include "df3volume.h" #ifdef _WIN32 # define LITTLE_ENDIAN #endif #ifdef LITTLE_ENDIAN #define SWAP_2(x) ( (((x) & 0xff) << 8) | ((unsigned short)(x) >> 8) ) #define SWAP_4(x) ( ((x) << 24) | \ (((x) << 8) & 0x00ff0000) | \ (((x) >> 8) & 0x000...
mihaipopescu/VEGA
tools/df3volume.cpp
C++
gpl-3.0
3,022
// Copyright (c) 2005 - 2015 Settlers Freaks (sf-team at siedler25.org) // // This file is part of Return To The Roots. // // Return To The Roots 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 versio...
ikharbeq/s25client
src/ingameWindows/iwEndgame.cpp
C++
gpl-3.0
2,321
package dotest.module.frame.debug; import android.app.Activity; import core.interfaces.DoIPageViewFactory; public class DoPageViewFactory implements DoIPageViewFactory { private Activity currentActivity; @Override public Activity getAppContext() { // TODO Auto-generated method stub return currentActivity; ...
do-android/do_BaiduMapView
doExt_do_BaiduMapView/src/dotest/module/frame/debug/DoPageViewFactory.java
Java
gpl-3.0
748
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-01-09 11:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tmv_app', '0072_runstats_dyn_win_threshold'), ] operations = [ migrations.A...
mcallaghan/tmv
BasicBrowser/tmv_app/migrations/0073_auto_20180109_1124.py
Python
gpl-3.0
471
#include "SQLParserResult.h" namespace hsql { SQLParserResult::SQLParserResult() : isValid_(true), errorMsg_(NULL) {}; SQLParserResult::SQLParserResult(SQLStatement* stmt) : isValid_(true), errorMsg_(NULL) { addStatement(stmt); }; SQLParserResult::~SQLParserResult() { for (SQLStatem...
msdeep14/DeepDataBase
sql-parser/src/SQLParserResult.cpp
C++
gpl-3.0
1,363
namespace _6.Customers_Migration { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; public partial class StoreLocation { [System.Diagnostics.CodeAnalysis...
PlamenHP/Softuni
Entity Framework/Entity Framework Code First/6. Customers Migration/StoreLocation.cs
C#
gpl-3.0
782
# smallest number 2^500500 divisors , modulo 500500507 # 单调递减 # (2^a0)(2^a1)(2^a2) = 2^500500 # (2^ai)(2^aj) -> (2^{ai-1})(2^{aj+1}) : p_j^(2^{aj})/p_i^(2^{ai-1}) < 1 , (a > b) # (2^aj)ln(p_j) < (2^{ai-1})ln(p_i) # if 2^{a_i-a_j-1} > ln(p_j)/ln(p_i), then a_i-=1,a_j-=1 # # i < j # p_j^(2^(a_j-1)) < p_i^(2^a_i) # p_i^(2...
CroMarmot/MyOICode
ProjectEuler/unsolved/p500.py
Python
gpl-3.0
3,132
# -*- coding: utf-8 -*- """ Created on Sun Mar 29 18:02:06 2015 """ ##################################################################################################### # Groupe d'Étude pour la Traduction/le Traitement Automatique des Langues et de la Parole (GETALP) # Homepage: http://getalp.imag.fr # # Author: Tien...
besacier/WCE-LIG
wce_system/preprocessing/measure_performance_system.py
Python
gpl-3.0
3,171
using System; using LuaInterface; using SLua; using System.Collections.Generic; public class Lua_UnityEngine_ParticleSystem_CollisionModule : LuaObject { [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static public int constructor(IntPtr l) { try { UnityEngine.ParticleSystem.CollisionModule o; o=new U...
yongkangchen/poker-client
Assets/Runtime/Slua/LuaObject/Unity/Lua_UnityEngine_ParticleSystem_CollisionModule.cs
C#
gpl-3.0
14,303
package tensor2go type Scalar struct { *Tensor } func NewScalar(val interface{}) (v *Scalar){ v = &Scalar{NewTensor()} v.Tensor.tensorRoot = v.Tensor.graph.CreateVertex("root",val) return } func (s *Scalar) Val() interface{} { return s.Tensor.tensorRoot.Properties() } func (s *Scalar) Multiply(val interface{})...
joernweissenborn/tensor2go
scalar.go
GO
gpl-3.0
491
/************************************************************************************************** * This file is part of Connect X. * * Connect X 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, eith...
BobMorane22/ConnectX
cxgui/src/Board.cpp
C++
gpl-3.0
8,959
using CatalokoSite.Models; using CatalokoSite.Models.Helpers; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace CatalokoSite.Controllers { public class MarketController : Controller { [Route("~/market")] public ActionRe...
albertoroque/cataloko
site/CatalokoSite/Controllers/MarketController.cs
C#
gpl-3.0
642
// This file is part of LEDStick_TFT. // // LEDStick_TFT 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. // // LEDStick_TFT is ...
dipsylala/LEDStick_TFT
RGBController.cpp
C++
gpl-3.0
1,772
package GUI; import Logic.AI; import Logic.Board; import Logic.Player; import Logic.SpecialCoord; import Pieces.Coordinate; import Pieces.MasterPiece; import javafx.application.Platform; import javafx.fxml.FXML; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.S...
shinn16/Chess
src/GUI/Controller.java
Java
gpl-3.0
46,008
/* * Copyright 2016 Nathan Howard * * This file is part of OpenGrave * * OpenGrave 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 ver...
AperiStudios/OpenGrave
src/main/java/com/opengrave/common/ModSession.java
Java
gpl-3.0
4,818
package net.lomeli.magiks.api.machines; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import net.minecraft.item.ItemStack; public class OreCrusherManager { private static final OreCrusherManager instance = new OreCrusherManager(); @SuppressWarnings("r...
Lomeli12/MechroMagiks
common/net/lomeli/magiks/api/machines/OreCrusherManager.java
Java
gpl-3.0
1,412
/* * Copyright (C) 2013-2022 Byron 3D Games Studio (www.b3dgs.com) Pierre-Alexandre (contact@b3dgs.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, o...
b3dgs/lionheart-remake
lionheart-game/src/main/java/com/b3dgs/lionheart/object/feature/BossUnderworld.java
Java
gpl-3.0
8,280
from setuptools import setup setup(name="waterworks", version="0.0.0", description="Message agregation daemon.", url="https://github.com/Aeva/waterworks", author="Aeva Palecek", author_email="aeva.ntsc@gmail.com", license="GPLv3", packages=["waterworks"], zip_safe=False,...
Aeva/waterworks
setup.py
Python
gpl-3.0
508
/** * This file is part of BP generator. * * BP generator 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. * * BP generator is d...
dsx75/bp-gen
src/eu/bp/gen1/pages/SkLedS2720.java
Java
gpl-3.0
1,263
#!/usr/bin/env ruby # # This plugin provides integration with OpenVAS. Written by kost and # averagesecurityguy. # # Distributed under MIT license: # http://www.opensource.org/licenses/mit-license.php # require 'socket' require 'timeout' require 'openssl' require 'rexml/document' require 'rexml/text' require 'base64...
cSploit/android.MSF
lib/openvas/openvas-omp.rb
Ruby
gpl-3.0
17,262
/* CPU_X86_32.cpp Copyright (C) 2008 Stephen Torri This file is part of Libreverse. Libreverse 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, or (at your option) any later ...
storri/libreverse
reverse/io/input/file_readers/mac_mach/cpu_x86_32.cpp
C++
gpl-3.0
2,043
/** Copyright 2012 John Cummens (aka Shadowmage, Shadowmage4513) This software is distributed under the terms of the GNU General Public License. Please see COPYING for precise license information. This file is part of Ancient Warfare. Ancient Warfare is free software: you can redistribute it and...
shadowmage45/AncientWarfare
AncientWarfare/src/shadowmage/ancient_warfare/common/item/ItemResearchNote.java
Java
gpl-3.0
2,960
'use strict'; var async = require('async'); var rss = require('rss'); var nconf = require('nconf'); var validator = require('validator'); var posts = require('../posts'); var topics = require('../topics'); var user = require('../user'); var categories = require('../categories'); var meta = require('../meta'); var hel...
BenLubar/NodeBB
src/routes/feeds.js
JavaScript
gpl-3.0
14,110
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def invertTree(self, root): """ :type root: TreeNode :rtype: TreeNode """ if not ...
zqfan/leetcode
algorithms/226. Invert Binary Tree/solution.py
Python
gpl-3.0
490
# Copyright (C) 2011 Pierre de Buyl # This file is part of pyMPCD # pyMPCD 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. # pyMPCD ...
pdebuyl/pyMPCD
pyMPCD/MPCD.py
Python
gpl-3.0
21,970
<?php namespace Tests\PhpCmplr\Core\Reflection; use PhpCmplr\Core\Container; use PhpCmplr\Core\FileStoreInterface; use PhpCmplr\Core\SourceFile\SourceFile; use PhpCmplr\Core\Parser\Parser; use PhpCmplr\Core\DocComment\DocCommentParser; use PhpCmplr\Core\NameResolver\NameResolver; use PhpCmplr\Core\Reflection\FileRefl...
tsufeki/phpcmplr
tests/PhpCmplr/Core/Reflection/LocatorReflectionTest.php
PHP
gpl-3.0
5,229
var Gpio = function (physicalPin, wiringPiPin, name) { this.id = physicalPin; this.physicalPin = physicalPin; this.wiringPiPin = wiringPiPin; this.name = name; } Gpio.fromGpioDefinition = function (definition) { return new Gpio(definition.physicalPin, definition.wiringPiPin, definition.name); } mo...
jvandervelden/rasp-train
src/node/models/gpio.js
JavaScript
gpl-3.0
340
#include "Granulizer.h" #include <iostream> Granulizer::Granulizer() : grainIdx_(0), straightIdx_(0), grainLen_(0.0f), generator(std::chrono::system_clock::now().time_since_epoch().count()) { } bool Granulizer::loadLoop(char* filename) { grainIdx_ = 0; grainLen_ = 0; SN...
vooku/Generate-festival-music-demo
src/Granulizer.cpp
C++
gpl-3.0
1,629
package org.remipassmoilesel.bookme.services; import org.remipassmoilesel.bookme.utils.Utils; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; import javax.validation.constraints.Size; import java.util.Objects; /** * Created by remipa...
remipassmoilesel/simple-hostel-management
src/main/java/org/remipassmoilesel/bookme/services/MerchantServiceForm.java
Java
gpl-3.0
5,356
# Monkey-patch OpenSSL to skip checking the hostname of the remote certificate. # We need to enable VERIFY_PEER in order to get hands on the remote certificate # to check the fingerprint. But we don't care for the matching of the # hostnames. Unfortunately this patch is apparently the only way to achieve # that. module...
schleuder/schleuder-web
lib/openssl_ssl_patch.rb
Ruby
gpl-3.0
521
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MECS.Core.Engraving { public class EngraverPosition { public int X { get; set; } public int Y { get; set; } } }
Mr-Alicates/MECS
MECS/MECS.Core/Engraving/EngraverPosition.cs
C#
gpl-3.0
270
#include "chessgame.h" #include <QUrl> #include <QQmlContext> #include <QDebug> #include "validator/pawnvalidator.h" #include "validator/rookvalidator.h" #include "validator/knightvalidator.h" #include "validator/bishopvalidator.h" #include "validator/queenvalidator.h" #include "validator/kingvalidator.h" #define HIS...
remico/dai-chess
src/chessgame.cpp
C++
gpl-3.0
5,364
<?php /** * Dashboard - Products * * @package FrozrCoreLibrary * @subpackage FrozrmarketTemplates */ if ( ! defined( 'ABSPATH' ) ) exit; /* Exit if accessed directly*/ frozr_redirect_login(); frozr_redirect_if_not_seller(); $action = isset( $_GET['action'] ) ? wc_clean($_GET['action']) : 'listing'; if ( $actio...
MahmudHamid/LazyEater
templates/dishes.php
PHP
gpl-3.0
471
window.saveData = function (key, data) { if(!localStorage.savedData) localStorage.savedData = JSON.stringify({}); var savedData = JSON.parse(localStorage.savedData) var type = typeof data; savedData[key] = { type: type, data: (type === 'object') ? JSON.stringify(data) : data }; localStorage.savedData = JS...
zrispo/wick
lib/localstoragewrapper.js
JavaScript
gpl-3.0
780
// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2008 University of California // // BOINC 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 3 of the Licens...
MestreLion/boinc-debian
sched/sched_shmem.cpp
C++
gpl-3.0
11,690
import request from '@/utils/request' export function fetchCommon() { return request({ url: '/setting/common/cron/', method: 'get' }) } export function editCommon(formData) { const data = formData return request({ url: '/setting/common/cron/', method: 'put', data }) } export function fe...
wdxtub/Patriots
frontend/src/api/setting.js
JavaScript
gpl-3.0
823
package net.BukkitPE.item.enchantment.bow; import net.BukkitPE.item.enchantment.Enchantment; /** * BukkitPE Project */ public class EnchantmentBowInfinity extends EnchantmentBow { public EnchantmentBowInfinity() { super(Enchantment.ID_BOW_INFINITY, "arrowInfinite", 1); } @Override public in...
BukkitPE/BukkitPE
src/main/java/net/BukkitPE/item/enchantment/bow/EnchantmentBowInfinity.java
Java
gpl-3.0
542
class AddStatusToUsers < ActiveRecord::Migration def self.up add_column :users, :status, :string, :default => "U" remove_column :users, :approved end def self.down remove_column :users, :status add_column :users, :approved, :boolean, :default => false end end
IntersectAustralia/nedb
db/migrate/20101015032903_add_status_to_users.rb
Ruby
gpl-3.0
285
#include <stdlib.h> #include <iostream> #include "boats/FloatingObject.hpp" using namespace std; // Quelques conseils avant de commencer... // * N'oubliez pas de tracer (cout << ...) tous les constructeurs et le destructeur !!! Ca, c'est pas un conseil, // c'est obligatoire :-) // * N'essayez pas de compiler ce pro...
bendem/SchoolBoats
Test1.cpp
C++
gpl-3.0
3,245
package com.creativemd.opf.gui; import java.util.ArrayList; import com.creativemd.creativecore.common.gui.GuiRenderHelper; import com.creativemd.creativecore.common.gui.client.style.ColoredDisplayStyle; import com.creativemd.creativecore.common.gui.client.style.Style; import com.creativemd.creativecore.common.gui.con...
CreativeMD/OnlinePictureFrame
src/main/java/com/creativemd/opf/gui/GuiUrlTextfield.java
Java
gpl-3.0
2,213
const errorHandler = require('../../../src/controllers/middlewares/error') describe('Error Handler', () => { describe('with generic error', () => { const error = { code: '007', stack: 'StackTrace', } const req = { id: 'request_id' } const res = { locals: {}, } const next = ...
hails/tane
tests/unit/middlewares/error.test.js
JavaScript
gpl-3.0
2,113
<?php echo file_get_contents(HERE."install".DS."install-header.html"); if (URI == "install") { inc("install".DS."install"); } else { inc("install".DS."must-install"); } ?>
mkg20001/website-cms
sys/install/index.php
PHP
gpl-3.0
174
package com.mycompany.control; import com.mycompany.entidades.Demanda; import com.mycompany.control.util.JsfUtil; import com.mycompany.control.util.PaginationHelper; import com.mycompany.facade.DemandaFacade; import java.io.Serializable; import java.util.ResourceBundle; import javax.ejb.EJB; import javax.inject.Named...
OscarMiticanoy/NuestraPLaza-java
NuestraPlaza/src/main/java/com/mycompany/control/DemandaController.java
Java
gpl-3.0
7,210
/********************* * status_screen.cpp * *********************/ /**************************************************************************** * Written By Mark Pelletier 2017 - Aleph Objects, Inc. * * Written By Marcio Teixeira 2018 - Aleph Objects, Inc. * * ...
petrzjunior/Marlin
Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/status_screen.cpp
C++
gpl-3.0
13,488
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
tranleduy2000/javaide
aosp/gradle/src/main/java/com/android/build/gradle/internal/dsl/LanguageSplitOptions.java
Java
gpl-3.0
2,810
using System; using LuaInterface; using SLua; using System.Collections.Generic; public class Lua_UIKeyBinding : LuaObject { [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static public int IsBound_s(IntPtr l) { try { UnityEngine.KeyCode a1; checkEnum(l,1,out a1); var ret=UIKeyBinding.IsBound(a1); ...
yongkangchen/poker-client
Assets/Runtime/Slua/LuaObject/Dll/Lua_UIKeyBinding.cs
C#
gpl-3.0
3,361
using System; using System.Collections.Generic; using Server; using Server.Events; using Server.Buff.Icons; using Server.Items; namespace Server.Spells.Bard { public class Inspire : AreaSpellsong { public static void Initialize() { EventSink.BeforeDamage += new BeforeDamageEventHandler( EventSink_BeforeDamage...
GenerationOfWorlds/GOW
Scripts/Core/Stygian Abyss/Magic/Bard Masteries/Inspire.cs
C#
gpl-3.0
2,339
import DS from 'ember-data'; export default DS.LSAdapter.extend({ namespace: 'bateria_namespace' });
hugoruscitti/bateria
app/adapters/application.js
JavaScript
gpl-3.0
105
'use strict' const config = { development: './env/dev', production: './env/prod', test: './env/test' } const { NODE_ENV = 'development' } = process.env module.exports = require(config[NODE_ENV])
calebgregory/node-testing-with-mocha-chai
config/index.js
JavaScript
gpl-3.0
204
/* * QuarkPlayer, a Phonon media player * Copyright (C) 2008-2011 Tanguy Krotoff <tkrotoff@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the Lice...
tkrotoff/QuarkPlayer
libs/WebBrowser/WebBrowser.cpp
C++
gpl-3.0
7,469
/* Copyright (C) 2016 PencilBlue, 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 3 of the License, or (at your option) any later version. This program is...
Whatsit2yaa/vast-tundra-84597
include/service/media/renderers/slideshare_media_renderer.js
JavaScript
gpl-3.0
10,832
package net.BukkitPE.block; import net.BukkitPE.item.Item; import net.BukkitPE.item.ItemTool; import net.BukkitPE.level.Level; import net.BukkitPE.math.AxisAlignedBB; import net.BukkitPE.math.Vector3; import net.BukkitPE.utils.BlockColor; /** * Created on 2015/12/2 by xtypr. * Package net.BukkitPE.block in project ...
BukkitPE/BukkitPE
src/main/java/net/BukkitPE/block/BlockFarmland.java
Java
gpl-3.0
2,452
# -*- test-case-name: twisted.web.test.test_web -*- # Copyright (c) 2001-2009 Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.web.static}. """ import os, re, StringIO from zope.interface.verify import verifyObject from twisted.internet import abstract, interfaces from twisted.python....
Donkyhotay/MoonPy
twisted/web/test/test_static.py
Python
gpl-3.0
53,951
package com.mirrorlabs.filebrowser; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import android.app.ActivityManager; import android.app.AlertDialog; import android.app.ActivityManager.MemoryInfo; import android.app.ActivityManager.RunningAppProcessInfo; ...
kshark27/UltraExplorer
filebrowserULTRA/src/com/mirrorlabs/filebrowser/ProcessManager.java
Java
gpl-3.0
24,569
<?php if (_DEBUGMODE) { $creation_time = getmt() - script_start_time; echo sprintf("<p/><hr/><p>Script took %1.0f ms for generation\n</p>", $creation_time); } ?> </body> </html>
stefaweb/XAMS-0.3.x
gui/footer.php
PHP
gpl-3.0
206
#include <string> #include <vector> #include "TProfesor.h" TProfesor::TProfesor(std::string _strNombre, int _intCodigo) { intCodigo = _intCodigo; strNombre = _strNombre; } TProfesor::TProfesor(const char* _pchrNombre, int _intCodigo) { intCodigo = _intCodigo; strNombre = _pchrNombre; } void TProfesor::PutCostAsigP...
KarlHeitmann/PlanificacionHorarios
src/ae/eda/TProfesor.cpp
C++
gpl-3.0
1,195
<?php /** * All law firms and agents have been assigned. Now a lifespan must be negotiated. */ class DisputeOpened extends DisputeDefaults implements DisputeStateInterface { public function getStateDescription() { return 'Negotiating lifespan.'; } public function canOpenDispute() { retu...
ChrisBAshton/smartresolution
webapp/core/model/dispute_states/DisputeStateDisputeOpened.php
PHP
gpl-3.0
416
/* * Copyright 2018 <copyright holder> <email> * * 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 la...
robocomp/robocomp
libs/dsr/gui/viewers/graph_viewer/graph_node.cpp
C++
gpl-3.0
12,408
using System; using System.Drawing; using System.Windows.Forms; using GradeTracker.Data; namespace GradeTracker.Forms { public class CourseGradeableTasksForm : Form { Course course; #region Form elements private Button addNewTaskButton; private DataGridView tasksGrid; #endregion /// <summary> /// Ma...
baconbum/GradeTracker
GradeTracker/Forms/CourseGradeableTasksForm.cs
C#
gpl-3.0
4,165
/** * \file * Copyright 2014-2015 Benjamin Worpitz * * This file is part of alpaka. * * alpaka 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 3 of the License, or * (at your option) any ...
erikzenker/alpaka-examples
alpaka/include/alpaka/core/Fold.hpp
C++
gpl-3.0
4,795
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using CheezeMod.NPCs; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CheezeMod.Items.Weapons.Ratchet { public class LavaGun : ModItem { public override void SetDefaults() { item.damage = 5; item.ra...
Cheezegami/Mod-Sources-Cheezes-Content-Pack
CheezeMod/Items/Weapons/Ratchet/LavaGun.cs
C#
gpl-3.0
2,175
<?php use_helper('Date', 'Text', 'I18N', 'myWidgets', 'enMessageBox'); ?> <div class="page-header"> <h1><?php echo __('Usuários do sistema') ?></h1> </div> <?php if ($sf_request->hasParameter('name')) : ?> <div class="msg alert"><?php echo __('Procurando pelo termo') ?> <strong>"<?php echo $sf_request->getParamet...
jeffersonmolleri/sesra
apps/adm/modules/users/templates/_list.php
PHP
gpl-3.0
2,540
/** * This file is part of da2i-boggle. * * da2i-boggle 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. * * da2i-boggl...
ecattez/da2i-boggle
sources/boggle/gui/decorateur/DecorateurBouton.java
Java
gpl-3.0
1,109
package de.metalcon.imageServer.protocol; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import org.junit.Test; import de.metalcon.imageStorageServer.protocol.ProtocolConstants; import de.metalcon.imageStorageServer.protocol.read....
Metalcon/imageStorageServer
src/test/java/de/metalcon/imageServer/protocol/ReadScaledRequestTest.java
Java
gpl-3.0
4,366
package tk.natallymp.ratingimages; import android.content.Intent; import android.net.Uri; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.webkit.WebView; import android.widget.EditText; import android.widget.ImageButton; import android.widget.ImageVie...
x2wing/android
RatingImages/app/src/main/java/tk/natallymp/ratingimages/MainActivity.java
Java
gpl-3.0
1,981
""" ============================ ``ctypes`` Utility Functions ============================ See Also --------- load_library : Load a C library. ndpointer : Array restype/argtype with verification. as_ctypes : Create a ctypes array from an ndarray. as_array : Create an ndarray from a ctypes array. References ----------...
ruibarreira/linuxtrail
usr/lib/python2.7/dist-packages/numpy/ctypeslib.py
Python
gpl-3.0
14,076
/* * Platformer Game Engine by Wohlstand, a free platform for game making * Copyright (c) 2014-2019 Vitaly Novichkov <admin@wohlnet.ru> * * 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, ei...
Wohlhabend-Networks/PGE-Project
Editor/networking/engine_intproc.cpp
C++
gpl-3.0
5,233
/* Copyright © 2018 Maksim Lukyanov This file is part of Cross++ Game Engine. Cross++ Game Engine 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 lat...
maxon887/Cross
Sources/Utils/Cubemap.cpp
C++
gpl-3.0
2,855
using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class enteventsEntityResize : redEvent { [Ordinal(0)] [RED("extents")] public Vector3 Extents { get; set; } public enteventsEntityResize(CR2WFile cr2w, CVariable parent, string name) :...
Traderain/Wolven-kit
CP77.CR2W/Types/cp77/enteventsEntityResize.cs
C#
gpl-3.0
355
package com.ernstlustig.faeries.jei.FaeryProducts; import mezz.jei.api.IGuiHelper; import mezz.jei.api.gui.IDrawable; import mezz.jei.api.gui.IGuiItemStackGroup; import mezz.jei.api.gui.IRecipeLayout; import mezz.jei.api.recipe.IRecipeCategory; import net.minecraft.client.Minecraft; import net.minecraft.item.ItemStack...
davqvist/Faeries
src/main/java/com/ernstlustig/faeries/jei/FaeryProducts/FaeryProductsCategory.java
Java
gpl-3.0
2,053
using Aperture.Parser.HTML.Microsyntaxes; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Aperture.Parser.HTML { /// <summary> /// Case-sensitivity and string comparison. /// </summary> public static class StringComparisons ...
Pneumaticat/Aperture
Aperture.Parser/HTML/StringComparisons.cs
C#
gpl-3.0
3,096