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 |
|---|---|---|---|---|---|
/*
* Koekiebox CONFIDENTIAL
*
* [2012] - [2017] Koekiebox (Pty) Ltd
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property
* of Koekiebox and its suppliers, if any. The intellectual and
* technical concepts contained herein are proprietary to Koekiebox
* and its suppli... | Koekiebox-PTY-LTD/Fluid | fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/sqlutil/GenericFormFieldListingMessageHandler.java | Java | gpl-3.0 | 2,425 |
from hashlib import sha256
from django.test import Client
from requests.auth import AuthBase
SIG_KEY = "HTTP_X_SIGNATURE"
def _generate_signature(secret, path, post_data):
path = bytes(path, "utf-8")
body = post_data
secret = bytes(secret, "utf-8")
if isinstance(body, str):
body = bytes(body... | UKTradeInvestment/export-wins-data | alice/tests/client.py | Python | gpl-3.0 | 1,802 |
/*
This file is part of geometry
Copyright (C) 2011 Julien Thevenon ( julien_thevenon at yahoo.fr )
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
(a... | quicky2000/geometry | include/point.hpp | C++ | gpl-3.0 | 2,916 |
iris.ui(function (self) {
self.settings({
col: null
, row: null
, color: null
});
// var resource = iris.resource(iris.path.resource);
self.create = function() {
self.tmplMode(self.APPEND);
self.tmpl(iris.path.ui.king.html);
};
self.moves = function(p_squareTo) {
var
colIndex = chess.boa... | IGZOscarArce/chess-challenges | src/iris-front/iris/ui/king.js | JavaScript | gpl-3.0 | 1,575 |
<?php
/**
* @package Bookingforconnector
* @copyright Copyright (c)2006-2016 Ipertrade
* @license GNU General Public License version 3, or later
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$pathbase = JPATH_BASE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR .... | Bookingfor/joomla | pkg_bookingforconnector/packages/mod_bookingforsearch/mod_bookingforsearch.php | PHP | gpl-3.0 | 8,565 |
package MMC.neocraft.container;
import MMC.neocraft.NeoCraftAchievement;
import MMC.neocraft.item.NCitem;
import MMC.neocraft.recipe.SteeperRecipes;
import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemSt... | scott181182/NeoCraft | NeoCraft_common/MMC/neocraft/container/SlotSteeper.java | Java | gpl-3.0 | 2,487 |
<?php
/**
* Special page which uses an HTMLForm to handle processing.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ver... | kylethayer/bioladder | wiki/includes/specialpage/FormSpecialPage.php | PHP | gpl-3.0 | 6,274 |
using NMoneys;
namespace polymer.api.servicestack.Serialization.NMoneys
{
internal class DefaultSurrogate : ISurrogate
{
public DefaultSurrogate(Money from)
{
Amount = from.Amount;
Currency = from.CurrencyCode;
}
public decimal Amount { get; set; }
public CurrencyIsoCode Currency { get; set; }
pu... | BrittonDigitalMedia/polymer | src/polymer.api.servicestack/Serialization/NMoneys/DefaultSurrogate.cs | C# | gpl-3.0 | 392 |
########################################################################
# File : PilotStatusAgent.py
# Author : Stuart Paterson
########################################################################
""" The Pilot Status Agent updates the status of the pilot jobs in the
PilotAgents database.
"""
__RCSID__ ... | andresailer/DIRAC | WorkloadManagementSystem/Agent/PilotStatusAgent.py | Python | gpl-3.0 | 12,315 |
package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.QueryInstBillInfo;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.ebpp.bill.search response.
*
* @author auto ... | zeatul/poc | e-commerce/e-commerce-ecom-pay-service/src/main/java/com/alipay/api/response/AlipayEbppBillSearchResponse.java | Java | gpl-3.0 | 1,118 |
#!/usr/bin/env python3
goblin_attack = 40
goblin1_alive = True
goblin2_alive = True
goblins_alive = 2
goblin1_stunned = False
goblin2_stunned = False
goblin1_health = 30
goblin2_health = 30
rat_alive = True
rat_health = 15
fists = True
sword = False
shield = False
armor = False
end = False
room = 1
defense = 0
health ... | CoderLune/First-projects | dungeon.py | Python | gpl-3.0 | 50,140 |
<?php
$languageNames = [
'aa' => 'Qafar',
];
$countryNames = [
'DJ' => 'Yabuuti',
'ER' => 'Eretria',
'ET' => 'Otobbia',
];
| Facerafter/starcitizen-tools | extensions/cldr/CldrNames/CldrNamesAa.php | PHP | gpl-3.0 | 129 |
/*
Copyright (C) 2013 by Rafał Soszyński <rsoszynski121 [at] gmail [dot] com>
This file is part of The Chronicles Of Andaria Project.
The Chronicles of Andaria Project 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 Found... | Soszu/TheChroniclesOfAndaria | src/Game/Windows/MarketWindow.cpp | C++ | gpl-3.0 | 9,030 |
<?php
namespace Fisharebest\Localization\Script;
/**
* Class ScriptCyrl - Representation of the Cyrillic script.
*
* @author Greg Roach <greg@subaqua.co.uk>
* @copyright (c) 2020 Greg Roach
* @license GPLv3+
*/
class ScriptCyrl extends AbstractScript implements ScriptInterface
{
public function code()
... | fisharebest/localization | src/Script/ScriptCyrl.php | PHP | gpl-3.0 | 495 |
/*
Copyright (C) 2010,2011,2012,2013,2014,2015,2016 The ESPResSo project
Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010
Max-Planck-Institute for Polymer Research, Theory Group
This file is part of ESPResSo.
ESPResSo is free software: you can redistribute it and/or modify
it under the terms o... | KonradBreitsprecher/espresso | src/core/swimmer_reaction.cpp | C++ | gpl-3.0 | 13,787 |
#include "Component.h"
namespace EntitySystem
{
ComponentType Component::m_unique = 0; // initialize m_unique
} | GarrettFleischer/EntityFramework | EntityFramework/Component.cpp | C++ | gpl-3.0 | 113 |
#include <bits/stdc++.h>
#define sp << " " <<
#define tb << "\t" <<
#define all(x) x.begin(),x.end()
#define PB push_back
#define sz(x) (int)x.size()
#define MP make_pair
#define X first
#define Y second
#define _xx(_1, _2, _3, _4, name, ...) name
#define rep2(i, ... | frits-scholer/pr | pr237/transitions.cpp | C++ | gpl-3.0 | 8,863 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2014 Oleg Dolya
*
* 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.
*
* ... | NYRDS/pixel-dungeon-remix | RemixedDungeon/src/main/java/com/watabou/pixeldungeon/scenes/AboutScene.java | Java | gpl-3.0 | 5,609 |
/**
* @file oglplus/text/pango_cairo/layout.hpp
* @brief Pango/Cairo-based text rendering - layout.
*
* @author Matus Chochlik
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICEN... | zolkko/roboface | third_party/oglplus/text/pango_cairo/layout.hpp | C++ | gpl-3.0 | 5,029 |
package au.com.jc.weather.lga;
/**
* Represents an air mass.
* Just holds temp currently, but should hold humidity etc.
* Created by john on 20/03/16.
*/
public class Mass {
public double temp=20;
}
| jacrify/weather | src/main/java/au/com/jc/weather/lga/Mass.java | Java | gpl-3.0 | 211 |
package info.guardianproject.louder;
/**
* Created by n8fr8 on 1/30/17.
* From here: http://stackoverflow.com/questions/17503409/stream-audio-from-internal-microphone-to-3-5mm-headphone-jack
*/
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioRecord;
import android.medi... | n8fr8/LittleBitLouder | app/src/main/java/info/guardianproject/louder/TOnePlayer.java | Java | gpl-3.0 | 2,228 |
<?php
/************************************************************************
* This file is part of FoxCRM.
*
* FoxCRM - Open Source CRM application.
* Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
*
* FoxCRM is free software: you can redistribute... | ilovefox8/cc2crm | application/Fox/Repositories/Import.php | PHP | gpl-3.0 | 3,312 |
namespace GamesReviews.Console.Client
{
public class UseCaseTwo
: BaseUseCase
{
public void Run()
{
System.Console.WriteLine("\n2. As a gamer I want to vote for my favorite games.\n");
System.Console.WriteLine("Todo: Need to clarify what 'to vote for' means?");
... | tschroedter/csharp_examples | InterviewTests/Asl/GamesReviews.Console/Client/UseCaseTwo.cs | C# | gpl-3.0 | 339 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\/ M anipulation |
-------------... | OpenFOAM/OpenFOAM-2.0.x | src/OpenFOAM/primitives/ints/long/long.H | C++ | gpl-3.0 | 2,018 |
/*************************************************************************
* Copyright 2009-2013 Eucalyptus Systems, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3 of the ... | davenpcj5542009/eucalyptus | clc/modules/authentication/src/main/java/com/eucalyptus/auth/ServerCertificates.java | Java | gpl-3.0 | 7,286 |
/*
* Copyright (C) 2015 ikonstas
*
* 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 distribu... | sinantie/PLTAG | src/pltag/parser/performance/BracketPerformance.java | Java | gpl-3.0 | 2,696 |
<?php
/* ==========================================================================
remove query strings from static resources
========================================================================== */
function _remove_script_version( $src ){
$parts = explode( '?', $src );
return $parts[0];
}
add_filter( 'script... | blueocto/code-snippets | wordpress/function-snippets/scripts.php | PHP | gpl-3.0 | 1,846 |
import Box from "./Box";
import Template from "../core/Template";
import Room from "./Room";
export default class Dialog extends Box {
private static instance: Dialog;
private dom: HTMLDivElement;
static get() {
return Dialog.instance;
}
static init() {
if (Dialog.instance) {
... | keika299/soupbowl | assets/scripts/ts/box/Dialog.ts | TypeScript | gpl-3.0 | 2,146 |
package com.neurondigital.nudge;
import android.graphics.Canvas;
import android.view.MotionEvent;
public class Instance {
public float x, y, speedx = 0, speedy = 0, accelerationx = 0, accelerationy = 0;
public Sprite sprite;
Screen screen;
Physics physics = new Physics();
boolean world = true;
/**
* Create n... | Pritesh1G/Dorajump | Jumper/src/com/neurondigital/nudge/Instance.java | Java | gpl-3.0 | 2,405 |
/*
* Lumeer: Modern Data Definition and Processing Platform
*
* Copyright (C) since 2017 Lumeer.io, s.r.o. and/or its affiliates.
*
* 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 ... | livthomas/Lumeer-web-ui | src/app/core/dto/user.dto.ts | TypeScript | gpl-3.0 | 1,144 |
package com.doctusoft.dsw.client.mvp;
/*
* #%L
* dsweb
* %%
* Copyright (C) 2014 Doctusoft Ltd.
* %%
* 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, ... | Doctusoft/dsweb | dsweb/src/main/java/com/doctusoft/dsw/client/mvp/AbstractPlace.java | Java | gpl-3.0 | 2,384 |
package tor
//----------------------------------------------------------------------
// This file is part of Gospel.
// Copyright (C) 2011-2021 Bernd Fix
//
// Gospel is free software: you can redistribute it and/or modify it
// under the terms of the GNU Affero General Public License as published
// by the Free Softw... | bfix/gospel | network/tor/conn.go | GO | gpl-3.0 | 2,294 |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;
use App\Common\Roles;
class Admin
{
/**
* The Guard implementation.
*
* @var Guard
*/
protected $auth;
/**
* Create a new filter instance.
*
* @param Guard $auth
* @return void
... | jigs1212/iams | app/Http/Middleware/Admin.php | PHP | gpl-3.0 | 1,128 |
'use strict';
define(
[
'lodash',
'forge/object/base'
], function(
lodash,
Base
)
{
/**
* BBCode parser
*
* @param {Object} codes
* @param {Object} options
*/
function BBCode(codes, options)
{
this.codes = {};
Base.call(this, options);
this.setCodes(codes);
}
// prototype
BBCode.prototype ... | DasRed/forge | bbCode.js | JavaScript | gpl-3.0 | 1,128 |
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.math.BigInteger;
import java.security.KeyFactory;
import java.security.PrivateKey;
import java.securi... | baudryo/Palantir | src/GestionClesRsa.java | Java | gpl-3.0 | 3,126 |
/*
* Copyright (C) 2016 SeqWare
*
* 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 distribute... | oicr-gsi/niassa | seqware-common/src/main/java/net/sourceforge/seqware/common/dto/LimsKeyDto.java | Java | gpl-3.0 | 3,134 |
# Visualisation tools
#
# Copyright (C) Andrew Bartlett 2015, 2018
#
# by Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
#
# 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 ... | sathieu/samba | python/samba/netcmd/visualize.py | Python | gpl-3.0 | 23,538 |
// This file is part of the thin-provisioning-tools source.
//
// thin-provisioning-tools 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... | jthornber/thin-provisioning-tools | thin-provisioning/thin_scan.cc | C++ | gpl-3.0 | 18,391 |
// ----------------------------------------------------------------------------
// Copyright (C) 2012 Louise A. Dennis, and Michael Fisher
//
// This file is part of the Agent Infrastructure Layer (AIL)
//
// The AIL is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Gene... | VerifiableAutonomy/mcapl | src/classes/ail/syntax/ast/Abstract_ListTermImpl.java | Java | gpl-3.0 | 6,090 |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid comm... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtdeclarative/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | C++ | gpl-3.0 | 332,798 |
/*****************************************************************
* This file is part of Managing Agricultural Research for Learning &
* Outcomes Platform (MARLO).
* MARLO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Soft... | CCAFS/MARLO | marlo-web/src/main/java/org/cgiar/ccafs/marlo/action/summaries/BaseStudySummaryData.java | Java | gpl-3.0 | 37,009 |
var util = require('util');
var Publisher = require('clickberry-nsq-publisher');
var Q = require('q');
var publishAsync;
function Bus(options) {
Publisher.call(this, options);
publishAsync = Q.nbind(this.publish, this);
}
util.inherits(Bus, Publisher);
Bus.prototype.publishVideoUpload = function (video, stor... | clickberry/videos-api-nodejs | lib/bus-service.js | JavaScript | gpl-3.0 | 895 |
/**
* Copyright (C) 2016 Stuart Howarth <showarth@marxoft.co.uk>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be us... | marxoft/qdl2 | plugins/recaptcha/solvemedia/solvemediarecaptchaplugin.cpp | C++ | gpl-3.0 | 4,816 |
/**
* @file: greyhead_customisations.js
*
* Little JS nips and tucks go in here.
*/
var Drupal = Drupal || {};
(function($, Drupal){
"use strict";
/**
* If we're on a node edit page and the URL slug field is present, copy the
* menu title into the URL slug field converted to lowercase alphanumeric-
... | alexharries/greyhead_customisations | js/greyhead_customisations.js | JavaScript | gpl-3.0 | 2,442 |
/**
*
* Copyright (C) 2015 - Daniel Hams, Modular Audio Limited
* daniel.hams@gmail.com
*
* Mad 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
... | danielhams/mad-java | 3UTIL/util-audio/src/uk/co/modularaudio/util/audio/mad/ioqueue/MadNullLocklessQueueBridge.java | Java | gpl-3.0 | 1,213 |
////////////////////////////////////////////////////////
//
// GEM - Graphics Environment for Multimedia
//
// Implementation file
//
// Copyright (c) 2002-2011 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at
// zmoelnig@iem.kug.ac.at
// For information on usage and redistribution, and for a DISCLAIMER
/... | rvega/morphasynth | vendors/pd-extended-0.43.4/externals/Gem/src/openGL/GEMglVertex3iv.cpp | C++ | gpl-3.0 | 1,990 |
package org.app.portofolio.webui.hr.transaction.employee.model;
import org.module.hr.model.TrsEmployeeDependent;
import org.module.hr.model.dto.RelationshipType;
import org.module.hr.service.EmployeeService;
import org.zkoss.bind.BindUtils;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventL... | sugarpramana/JHRM | Module-Parent/Module-Run/src/main/java/org/app/portofolio/webui/hr/transaction/employee/model/DependentListItemRenderer.java | Java | gpl-3.0 | 7,268 |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HelpersLibrary")]
[assembly: AssemblyDescr... | Jaex/SMBStats | HelpersLibrary/Properties/AssemblyInfo.cs | C# | gpl-3.0 | 1,363 |
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) Statoil ASA
// Copyright (C) Ceetron Solutions AS
//
// ResInsight 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 Softwa... | OPM/ResInsight | ApplicationLibCode/ReservoirDataModel/RigGeoMechWellLogExtractor.cpp | C++ | gpl-3.0 | 69,527 |
/*
* Decompiled with CFR 0_115.
*/
package com.crashlytics.android.answers;
import com.crashlytics.android.answers.AnswersAttributes;
import com.crashlytics.android.answers.AnswersEvent;
import com.crashlytics.android.answers.AnswersEventValidator;
public class CustomEvent
extends AnswersEvent<CustomEvent> {
pr... | SPACEDAC7/TrabajoFinalGrado | uploads/34f7f021ecaf167f6e9669e45c4483ec/java_source/com/crashlytics/android/answers/CustomEvent.java | Java | gpl-3.0 | 799 |
/**
* The main application class. An instance of this class is created by app.js when it
* calls Ext.application(). This is the ideal place to handle application launch and
* initialization details.
*/
Ext.define('Demo.Application', {
extend: 'Ext.app.Application',
name: 'Demo',
stores: [
... | chihchungyu/Demo | public/app/Application.js | JavaScript | gpl-3.0 | 739 |
using System;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace NvnTest.Employer.Rtf {
/// <summary>
/// Summary description for RtfFootnote
/// </summary>
public class RtfFootnote : RtfBlockList {
private int _position;
... | nvngithub/nvntest | NvnTest.Employer/schedules/report/rtf/RtfFootnote.cs | C# | gpl-3.0 | 1,205 |
using System;
using ServiceModel = Eleflex;
namespace Eleflex.Security.Services.WCF.Message
{
/// <summary>
/// Represents a LogMessage service client.
/// </summary>
public partial class SecurityUserPermissionServiceRepository : ISecurityUserPermissionServiceRepository
{
/// <summary>
... | ProductionReady/Eleflex | V3.0/Modules/Security/Eleflex.Security.Services.WCF.Message/SecurityUserPermissionServiceRepository.cs | C# | gpl-3.0 | 4,369 |
""" DIRAC FileCatalog Security Manager mix-in class
"""
__RCSID__ = "$Id$"
import os
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Security.Properties import FC_MANAGEMENT
_readMethods = ['exists', 'isFile', 'getFileSize', 'getFileMetadata',
'getReplicas','getReplicaStatus','getFileAncestors',
... | marcelovilaca/DIRAC | DataManagementSystem/DB/FileCatalogComponents/SecurityManager.py | Python | gpl-3.0 | 12,106 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package neembuu.uploader.accounts;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import neembuu.uploader.translation.Translation;
import neembuu.uploader.exceptions.NUException;
impo... | Neembuu-Uploader/neembuu-uploader | modules/neembuu-uploader-uploaders/src/neembuu/uploader/accounts/BillionUploadsAccount.java | Java | gpl-3.0 | 4,737 |
import asyncio
class MyProtocol(asyncio.Protocol):
def __init__(self, loop):
self.loop = loop
def connection_made(self, transport):
self.transport = transport
self.transport.write(b"Ciao!")
def data_received(self, data):
print(data.decode())
self.transport.close()... | DavideCanton/Python3 | prove_aio/prova_client.py | Python | gpl-3.0 | 626 |
<?php
session_start();
if ($_SESSION["autenticado"] != "SI")
{
header("Location: acceso.php");
exit();
}
$vida_session = time() - $_SESSION['tiempo'];
if($vida_session > $_SESSION['inactivo'])
{
session_destroy();
header("Location: acceso.php");
}
$_SESSION['tiempo'] = time();
?>
<html>
<head>
<lin... | alSeveR/teso | archivos/contrasena.php | PHP | gpl-3.0 | 2,093 |
/* $Id: MessagesCh.cpp 3755 2013-07-14 23:11:47Z IMPOMEZIA $
* IMPOMEZIA Simple Chat
* Copyright © 2008-2013 IMPOMEZIA <schat@impomezia.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 Fou... | impomezia/schat | src/common/plugins/Messages/MessagesCh.cpp | C++ | gpl-3.0 | 1,458 |
/*
YUI 3.4.1pr1 (build 4097)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('io-queue', function(Y) {
/**
Extends IO to implement Queue for synchronous
transaction processing.
@module io-base
@submodule io-queue
@for IO
**/
var io = Y.io._map['... | uhoreg/moodle | lib/yui/3.4.1pr1/build/io-queue/io-queue-debug.js | JavaScript | gpl-3.0 | 3,560 |
package taojava.lists;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.ListIterator;
/**
* Simple explorations of iterators and list iterators, using Java's
* friendly ArrayList class.
*
* @author Samuel A. Rebelsky
* @author Your Name Here
*/
public class A... | Grinnell-CSC207/lab-array-based-lists | src/taojava/lists/ArrayListExperiment.java | Java | gpl-3.0 | 1,555 |
/*
* Copyright (C) 2015 Simon Schaeffner <simon.schaeffner@googlemail.com>
*
* This file is part of jArtnet.
*
* jArtnet is free software: you can redistribute it and/or modify
* it under the terms of the Lesser General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
... | sschaeffner/jArtnet | src/me/sschaeffner/jArtnet/ArtnetOpCodes.java | Java | gpl-3.0 | 6,065 |
/**
* 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 m... | 12019/svn.gov.pt | _src/eidmw/xml-security-c-1.7.2/xsec/enc/XSCrypt/XSCryptCryptoBase64.hpp | C++ | gpl-3.0 | 4,852 |
package com.github.jwtintegration.domain;
import lombok.Data;
/**
* @author Claudia López
* @author Diego Sepúlveda
*/
public @Data
class AuthenticationResponse {
private String token;
public AuthenticationResponse() {
}
public AuthenticationResponse(String token) {
this.token = token;... | colopezfuentes/spring-security-jwt-integration | src/main/java/com/github/jwtintegration/domain/AuthenticationResponse.java | Java | gpl-3.0 | 331 |
<?php
/**
* Storgman - Student Organizations Management
* Copyright (C) 2014-2015, Dejan Angelov <angelovdejan92@gmail.com>
*
* This file is part of Storgman.
*
* Storgman 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 S... | angelov/eestec-platform | app/Members/Listeners/EmailApprovalConfirmation.php | PHP | gpl-3.0 | 1,685 |
#!/usr/bin/python
"""Run a Machination update cycle
"""
import sys
import itertools
from machination import utils, xmltools, fetcher, hierarchy, context
import topsort
from lxml import etree
workers = {}
class OLWorker:
def __init__(self, wid):
self.wid = wid
self.progdir = context.config.xpa... | machination/machination | bin/update.py | Python | gpl-3.0 | 3,871 |
let weightDependency = new Tracker.Dependency;
Template.productSettings.helpers({
hasSelectedProducts() {
return this.products.length > 0;
},
itemWeightActive: function (weight) {
weightDependency.depend();
for (let product of this.products) {
let position = product.position || {};
let c... | ScyDev/reaction | packages/reaction-product-variant/client/templates/products/productSettings/productSettings.js | JavaScript | gpl-3.0 | 3,087 |
// Decompiled with JetBrains decompiler
// Type: Wb.Lpw.Game.Common.GameRoomObject.Building.ConsumableCraftingBuildingProtocol
// Assembly: Wb.Lpw.Game.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 3C4BDCBA-73F8-4BAA-AC19-A98EC2D71189
// Assembly location: C:\Users\CGA Computer\Desktop\LEGO Un... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/Wb.Lpw.Game.Common/Wb/Lpw/Game/Common/GameRoomObject/Building/ConsumableCraftingBuildingProtocol.cs | C# | gpl-3.0 | 3,471 |
package delegate;
import locator.ServiceLocator;
import services.interfaces.CompetitionServicesRemote;
public class CompetitionServicesDelegate{
public final String jndiName = "/tft-project-ear/tft-project-ejb/CompetitionServices!services.interfaces.CompetitionServicesRemote";
public CompetitionServicesRemote ge... | ZanzanaTeam/PDEV-TFT | tft-project/tft-project-client/src/main/java/delegate/CompetitionServicesDelegate.java | Java | gpl-3.0 | 422 |
<?php
class Acceso_PerfilTable extends Doctrine_Table
{
public static function getInstance()
{
return Doctrine_Core::getTable('Acceso_Perfil');
}
public function perfilesActivos()
{
$q = Doctrine_Query::create()
->select('p.*')
->from('Acceso_Perfi... | mwveliz/siglas-mppp | lib/model/doctrine/project/Acceso/Acceso_PerfilTable.class.php | PHP | gpl-3.0 | 443 |
# -*- coding: utf-8 -*-
from __future__ import division
from otree.common import Currency as c, currency_range, safe_json
from . import models
from ._builtin import Page, WaitPage
from .models import Constants
class FinalPage(Page):
def is_displayed(self):
return self.round_number == Constants.num_round... | anthropo-lab/XP | UIMM_project/atl_Survey/views.py | Python | gpl-3.0 | 1,142 |
/****************************************************************************
** Meta object code from reading C++ file 'Call.h'
**
** Created: Tue Apr 20 17:18:33 2010
** by: The Qt Meta Object Compiler version 62 (Qt 4.6.2)
**
** WARNING! All changes made in this file will be lost!
******************************... | max3903/SFLphone | kde/cmake-build/src/moc_Call.cpp | C++ | gpl-3.0 | 2,632 |
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2022 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* EspoCRM is free software: you can redist... | espocrm/espocrm | application/Espo/ORM/Query/UnionBuilder.php | PHP | gpl-3.0 | 3,878 |
package com.baeldung.pojo.test;
import com.baeldung.initializer.SimpleXstreamInitializer;
import com.baeldung.pojo.Customer;
import com.thoughtworks.xstream.XStream;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.io.FileNotFoundException;
import java.io.FileReader;
public class ... | Niky4000/UsefulUtils | projects/tutorials-master/tutorials-master/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectAliasIntegrationTest.java | Java | gpl-3.0 | 1,035 |
namespace SQL_Comment_Generator
{
partial class HistoryLogAdd
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// <... | myoung1988/SQL-Comment-Generator | SQL Comment Generator/HistoryLogAdd.Designer.cs | C# | gpl-3.0 | 6,934 |
require 'java'
require 'inference/inference_service'
class UploadController < ApplicationController
def upload
if request.method == 'GET'
return
end
csv = params[:csv]
if csv
CsvUpload.read(csv)
render :text=>"File uploaded"
else
return redirect_to(:action=>:upload)
... | novalis/cebu-rails | app/controllers/upload_controller.rb | Ruby | gpl-3.0 | 342 |
import {
curry,
split,
indexBy,
path,
prop,
} from 'ramda';
import fetchUserInstallations from './fetchUserInstallations';
import fetchInstallationRepositories from './fetchInstallationRepositories';
export default curry((accessToken, repository) => {
const [installationName] = split('/', rep... | branch-bookkeeper/pina | src/lib/fetchRepository.js | JavaScript | gpl-3.0 | 959 |
// Decompiled with JetBrains decompiler
// Type: System.Reflection.Emit.AssemblyBuilderAccess
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 255ABCDF-D9D6-4E3D-BAD4-F74D4CE3D7A8
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
using Sy... | mater06/LEGOChimaOnlineReloaded | LoCO Client Files/Decompressed Client/Extracted DLL/mscorlib/System/Reflection/Emit/AssemblyBuilderAccess.cs | C# | gpl-3.0 | 687 |
--TEST--
constant() tests
--FILE--
<?php
var_dump(constant());
var_dump(constant("", ""));
var_dump(constant(""));
var_dump(constant(array()));
define("TEST_CONST", 1);
var_dump(constant("TEST_CONST"));
define("TEST_CONST2", "test");
var_dump(constant("TEST_CONST2"));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong ... | tukusejssirs/eSpievatko | spievatko/espievatko/prtbl/srv/new/php-5.2.5/Zend/tests/018.phpt | PHP | gpl-3.0 | 665 |
//--------------------------------------------------------
// Zelda Classic
//
// alleg_compat.cpp
//
// Compatibility between allegro versions.
//
//--------------------------------------------------------
#include "allegro_wrapper.h"
PACKFILE *pack_fopen_password(const char *filename, const char *mode, const cha... | ArmageddonGames/ZeldaClassic | src/alleg_compat.cpp | C++ | gpl-3.0 | 649 |
from django.contrib import admin
from sentences.models import Sentence
from .models import Tweet
admin.site.register(Tweet)
# class SentenceInline(admin.TabularInline):
# model = Sentence
# readonly_fields = ('content', 'question',)
# max_num = 0
# can_delete = False
#
#
# class TweetAdmin(admin.Mod... | efe/lesib | twitter/admin.py | Python | gpl-3.0 | 425 |
# -*- coding: utf-8 -*-
from models.user import User
class Authenticator(object):
def __init__(self, username, password):
self.username = username
self.password = password
def authenticate(self):
return True
class StudentAuthenticator(Authenticator):
def __init__(self,
... | lyshie/afc-github | app/authenticator.py | Python | gpl-3.0 | 1,848 |
"""Collection of function that may be used by JCM template files (*.jcmt) to
create the project or that may be useful/necessary to process the results.
Contains a default processing function (`processing_default`).
Authors : Carlo Barth
Credit: Partly based on MATLAB-versions written by Sven Burger and Martin
... | cbpygit/pypmj | projects/scattering/mie/mie3D/project_utils.py | Python | gpl-3.0 | 3,547 |
/***************************************************************************
* Copyright S. V. Paulauskas 2014-2016 *
* *
* This program is free software: you can redistribute it and/or modify *
* it und... | spaulaus/TraceFiltering | src/test.cpp | C++ | gpl-3.0 | 5,050 |
<?php
namespace App\Http\Middleware;
use Closure;
use Auth;
class Admin
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if(Auth::check() ... | ttucomc/utilities | app/Http/Middleware/Admin.php | PHP | gpl-3.0 | 454 |
// Regression test for a leak in tsd:
// https://code.google.com/p/address-sanitizer/issues/detail?id=233
// RUN: %clangxx_asan -O1 %s -pthread -o %t
// RUN: ASAN_OPTIONS=quarantine_size=1 %run %t
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <sanitizer/allocator_interface.h>
... | s20121035/rk3288_android5.1_repo | external/compiler-rt/test/asan/TestCases/Linux/tsd_dtor_leak.cc | C++ | gpl-3.0 | 1,032 |
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free so... | Yuutakasan/SugarCRM-5.5.1-CE-JA-Dev | modules/EmailMan/language/en_us.lang.php | PHP | gpl-3.0 | 8,894 |
###
# Copyright 2016 - 2022 Green River Data Analysis, LLC
#
# License detail: https://github.com/greenriver/hmis-warehouse/blob/production/LICENSE.md
###
require 'rails_helper'
require_relative 'dq_context'
RSpec.describe HudDataQualityReport::Generators::Fy2022::QuestionOne, type: :model do
include_context 'dq co... | greenriver/hmis-warehouse | drivers/hud_data_quality_report/spec/models/fy2022/question_one_spec.rb | Ruby | gpl-3.0 | 3,252 |
/*-
* #%L
* Genome Damage and Stability Centre SMLM ImageJ Plugins
*
* Software for single molecule localisation microscopy (SMLM)
* %%
* Copyright (C) 2011 - 2020 Alex Herbert
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
... | aherbert/GDSC-SMLM | src/test/java/uk/ac/sussex/gdsc/smlm/function/gaussian/erf/ErfGaussian2DFunctionTest.java | Java | gpl-3.0 | 48,790 |
package com.megion.site.core.service;
import javax.jcr.Node;
import javax.jcr.RepositoryException;
import com.megion.site.core.model.page.WebsitePage;
import com.megion.site.core.service.identify.Identifiable;
public interface WebsitePageService extends Identifiable {
public static final String WEBSITE_PAGE_TYPE_... | megion/megion-site | megion-site-core/src/main/java/com/megion/site/core/service/WebsitePageService.java | Java | gpl-3.0 | 428 |
#include "FrakOutMigrationController.h"
#include "FrakOutVersion.h"
#include "FrakOutVersionState.h"
#include "FrakOutVersionStateFactory.h"
FrakOutMigrationController::FrakOutMigrationController()
{
m_states.push_back(FrakOutVersionStateFactory::create(FrakOutVersion::V1_0_0()));
m_states.push_back(FrakOutVer... | randusr836/frakout | migration/FrakOutMigrationController.cpp | C++ | gpl-3.0 | 1,233 |
<?php
/* @var $this ItemsController */
/* @var $model Item */
/* @var $form CActiveForm */
?>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'item-form',
// Please note: When you enable ajax validation, make sure the corresponding
// controller action is handling ajax validation corr... | radchenko/yiiBoilerplate | protected/modules/acp/modules/amazon/views/items/_form.php | PHP | gpl-3.0 | 1,740 |
package apollo.data.model;
import java.util.Date;
import java.util.List;
import android.provider.BaseColumns;
import apollo.util.DateTime;
public class AutoPost {
public static class Columns implements BaseColumns {
public static final String ID = "_id";
public static final String SECTION_ID = "section_id";
... | kuibobo/BlackStone | app/src/main/java/apollo/data/model/AutoPost.java | Java | gpl-3.0 | 997 |
/**
* repowatch - A yum repository watcher
*
* Copyright (C) 2008 Richard "Shred" Körber
* http://repowatch.shredzone.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 versi... | shred/repowatch | src/main/java/org/shredzone/repowatch/sync/RepositorySynchronizerImpl.java | Java | gpl-3.0 | 11,167 |
from tests.base_widget_testcase import BaseWidgetTest
| RedFantom/ttkwidgets | tests/__init__.py | Python | gpl-3.0 | 54 |
class Solution
{
public:
bool isPowerOfThree(int n)
{
while (n > 1)
{
if ((n % 3) != 0)
{
return false;
}
n /= 3;
}
return n == 1;
}
};
| JetMeta/Zds | lc/math/326.hpp | C++ | gpl-3.0 | 249 |
//
//
// This source code is part of
//
// TD-ALCOVE
//
// Temporal Difference - ALCOVE
//
// VERSION 1.0.0
// Written by Joshua L. Phillips.
// Copyright (c) 2004-2016, Joshua L. Phillips.
// Check out http://www.cs.mtsu.edu/~jphillips/software.... | jlphillipsphd/tdalcove | libnnet/threshold_activation_function.cc | C++ | gpl-3.0 | 4,381 |
#include <iostream>
#include "FS.hpp"
#include "DefaultLoop.hpp"
#include "common.hpp"
#include "Argument.hpp"
using namespace cpuv;
int main(int /*argc*/,char**){
FS fs;
std::vector<std::string> files {"/home/hesham/cpplay/test"};
fs.watch(files,[](Argument<FS>& arg){
static int i = 5;
if(i-- > 0) {... | heshamsafi/cpuv | src/main.cpp | C++ | gpl-3.0 | 521 |
import * as actions from '../../actions'
import AppBar from 'material-ui/AppBar'
import { connect } from 'react-redux'
import Menu from 'material-ui/Menu'
import MenuItem from 'material-ui/MenuItem'
import MUIDrawer from 'material-ui/Drawer'
import React, { PropTypes } from 'react'
import { reset } from 'redux-form'
im... | gom3s/math4Kids | src/components/app/Drawer.js | JavaScript | gpl-3.0 | 2,173 |
/**
* Copyright 2015 Poznań Supercomputing and Networking Center
*
* Licensed under the GNU General Public License, Version 3.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.gnu.org/licenses/gpl-3.0.txt
*
* Unless... | psnc-dl/darceo | wrdz/wrdz-zmd/entity/src/main/java/pl/psnc/synat/wrdz/zmd/entity/object/content/DataFileVersion.java | Java | gpl-3.0 | 6,016 |
<?php head(); ?>
<div class="row">
<div class="three columns">
<div id="primary-nav">
<ul class="nav-bar">
<li>
<?php echo nav (
array(
'Browse Items' => uri('items'),
'Browse Collections' =>... | StandardNerd/cassovia | themes/omeka-foundation/index.php | PHP | gpl-3.0 | 3,111 |