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
/**
* Copyright (C) 2014 HB Agency
*
* @author Blair Winans <bwinans@hbagency.com>
* @author Adam Fisher <afisher@hbagency.com>
* @link http://www.hbagency.com
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Table tl_form_submission
*/
$GLOBALS['TL_DCA']['tl_form_submission'] =... | hb-agency/contao_hb_formdata | dca/tl_form_submission.php | PHP | lgpl-3.0 | 3,372 |
package element_list_extended;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the element_list_extended package.
* <p>An ObjectFactory allows you to programatically
* construct n... | dmak/jaxb-xew-plugin | src/test/generated_resources/element_list_extended/ObjectFactory.java | Java | lgpl-3.0 | 1,198 |
/*
BeepBeep, an event stream processor
Copyright (C) 2008-2018 Sylvain Hallé
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 License, or
(at you... | liflab/beepbeep-3-palettes | Xml/src/ca/uqac/lif/cep/xml/XmlTest.java | Java | lgpl-3.0 | 2,927 |
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2017-2022
*/
namespace Aimeos\Admin\JQAdm\Order;
class FactoryTest extends \PHPUnit\Framework\TestCase
{
private $context;
protected function setUp() : void
{
$this->context = \TestHelper::context();
... | aimeos/ai-admin-jqadm | tests/Admin/JQAdm/Order/FactoryTest.php | PHP | lgpl-3.0 | 1,336 |
/**
* This file is part of tapioca.cores.
*
* tapioca.cores 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 later version.
*
* tapioca.... | AKSW/Tapioca | Tapioca_STP_code/tapioca.cores/src/main/java/org/aksw/simba/tapioca/cores/preprocessing/JenaBasedVoidParsingSupplierDecorator.java | Java | lgpl-3.0 | 13,827 |
package idare.subnetwork.internal.Tasks.SubsystemGeneration;
import idare.subnetwork.internal.NetworkViewSwitcher;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.HashMap;
import org.cytoscape.application.CyApplicationManager;
import org.cytoscape.view.layout.CyLayoutAlgorithm;
impo... | sysbiolux/IDARE | METANODE-CREATOR/src/main/java/idare/subnetwork/internal/Tasks/SubsystemGeneration/SubnetworkCreationGUIHandlerFactory.java | Java | lgpl-3.0 | 2,511 |
#ifndef STATICTYPE_HPP
#define STATICTYPE_HPP
/* $Id: statictype.hpp 507796 2016-07-21 17:25:37Z gouriano $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software... | kyungtaekLIM/PSI-BLASTexB | src/ncbi-blast-2.5.0+/c++/src/serial/datatool/statictype.hpp | C++ | lgpl-3.0 | 9,009 |
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Peter Forstmeier" email="peter.forstmeier@t-online.de"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Drawing;
using System.Windows.Forms;
using ICSharpCode.Cor... | kingjiang/SharpDevelopLite | src/AddIns/Misc/SharpReport/ICSharpCode.Reports.Addin/Project/ReportWizard/WizardPanels/BaseSettingsPanel.cs | C# | lgpl-3.0 | 13,851 |
/*
* Copyright 2010,
* François Bleibel,
* Olivier Stasse,
*
* CNRS/AIST
*
* This file is part of sot-core.
* sot-core 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
* th... | proyan/sot-core | src/feature/feature-task.cpp | C++ | lgpl-3.0 | 3,127 |
package org.energy2d.model;
import org.energy2d.util.MiscUtil;
/**
* @author Charles Xie
*
*/
class FluidSolver2DImpl extends FluidSolver2D {
FluidSolver2DImpl(int nx, int ny) {
super(nx, ny);
}
void diffuse(int b, float[][] f0, float[][] f) {
// Copying a two-dimensional array is very fast: it takes le... | charxie/energy2d | energy2d/src/org/energy2d/model/FluidSolver2DImpl.java | Java | lgpl-3.0 | 1,745 |
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later... | km-works/portal-rpc | portal-rpc-client/src/main/java/com/liferay/portlet/journal/model/impl/JournalArticleImageCacheModel.java | Java | lgpl-3.0 | 4,216 |
/*
* SonarQube
* Copyright (C) 2009-2022 SonarSource SA
* mailto:info AT sonarsource DOT 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 License, o... | SonarSource/sonarqube | server/sonar-web/src/main/js/app/components/extensions/PortfoliosPage.tsx | TypeScript | lgpl-3.0 | 1,301 |
# This module consists of definitions of nodes representing elements of a tree
# of s-expressions.
module Nodes
# The base class of all nodes.
class Node
# The label used by the assembler for jmps, movs, etc.
attr_reader :label
# Substitutes dashes with underscores.
def label=(val)
@label = val.valid_c_sy... | jstepien/mlisp | nodes.rb | Ruby | lgpl-3.0 | 5,147 |
/**
* @file
* @brief Source file for Cache class
* @author Jonathan Thomas <jonathan@openshot.org>
*
* @section LICENSE
*
* Copyright (c) 2008-2014 OpenShot Studios, LLC
* <http://www.openshotstudios.com/>. This file is part of
* OpenShot Library (libopenshot), an open-source project dedicated to
* delivering... | nlsnho/libopenshot | src/CacheMemory.cpp | C++ | lgpl-3.0 | 10,641 |
<?php
require_once("smarty.php");
require_once("Db.php");
$DB= new DB_MYSQL();
session_start();
if(isset($_SESSION['userflag']) && $_SESSION['userflag'] == "admin")
{
$terms = $DB->get_all("select * from term");
$smarty->assign('Terms',$terms);
$smarty->display('showterms.html');
}
else
{
print("... | 2645Corp/2645-6 | include/showterms.php | PHP | lgpl-3.0 | 476 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL")... | B3Partners/b3p-commons-csw | src/main/jaxb/jaxb-ri-20090708/lib/jaxb-impl.src/com/sun/xml/bind/v2/runtime/reflect/ListIterator.java | Java | lgpl-3.0 | 2,632 |
/*
* SonarQube
* Copyright (C) 2009-2022 SonarSource SA
* mailto:info AT sonarsource DOT 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 License, o... | SonarSource/sonarqube | server/sonar-webserver-webapi/src/test/java/org/sonar/server/qualitygate/ws/QualityGateDetailsFormatterTest.java | Java | lgpl-3.0 | 6,550 |
/*
* Copyright 2010-2015 Bastian Eicher
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... | modulexcite/0install-win | src/Backend/UnitTests/Store/Model/ImplementationTest.cs | C# | lgpl-3.0 | 8,030 |
/*
* @BEGIN LICENSE
*
* Psi4: an open-source quantum chemistry software package
*
* Copyright (c) 2007-2018 The Psi4 Developers.
*
* The copyrights for code used from other parties are included in
* the corresponding files.
*
* This file is part of Psi4.
*
* Psi4 is free software; you can redistribute it an... | amjames/psi4 | psi4/src/psi4/psimrcc/mrccsd_t_heff_ab_restricted.cc | C++ | lgpl-3.0 | 12,364 |
/**
* This file is part of SensApp Acceptance.
*
* SensApp Acceptance 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 later version.
*
... | SINTEF-9012/sensapp-acceptance | src/main/java/net/modelbased/sensapp/acceptance/EndPointsFile.java | Java | lgpl-3.0 | 1,469 |
# -*- coding: utf-8 -*-
#
# This file is part of Glances.
#
# Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com>
#
# Glances 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 Lic... | nclsHart/glances | glances/core/glances_monitor_list.py | Python | lgpl-3.0 | 7,047 |
/* Animator Frame Rate Widget
*
* Controls the frame rate of a group of animators.
*/
#include "gtkmm.h"
#include <papyrus/affineanimator.h>
#include <papyrus-extras/factory.h>
#include <papyrus-gtkmm/animatorframeratewidget.h>
#include <papyrus-gtkmm/viewport.h>
#include <gtkmm.h>
class Example_AnimatorFrameRat... | scott--/papyrus | demos/papyrus-gtkmm-demo/example_animatorframeratewidget.cpp | C++ | lgpl-3.0 | 3,909 |
/*
* This file is part of alphaTab.
* Copyright (c) 2014, Daniel Kuschny and Contributors, All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version... | dreamzor/alphaTab | Samples/CSharp/AlphaTab.WinForms/ColorTools.cs | C# | lgpl-3.0 | 4,326 |
/**
******************************************************************************
* @file spark_wiring.cpp
* @authors Satish Nair, Zachary Crockett, Zach Supalla, Mohit Bhoite and
* Brett Walach
* @version V1.0.0
* @date 13-March-2013
* @brief
****************************************************... | spark/firmware | wiring_globals/src/spark_wiring_gpio.cpp | C++ | lgpl-3.0 | 8,686 |
package org.glydar.paraglydar.command.manager;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.glydar.paraglydar.command.Command;
import org.glydar.paraglydar.command.CommandExecutor;
import org.glydar.paraglydar.command.CommandOutcome;
import org.glydar.paraglydar.comm... | Glydar/Glydar.next | ParaGlydar/src/main/java/org/glydar/paraglydar/command/manager/MethodCommandExecutor.java | Java | lgpl-3.0 | 3,495 |
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT 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 License... | joansmith/sonarqube | server/sonar-server/src/main/java/org/sonar/server/platform/ws/SystemWs.java | Java | lgpl-3.0 | 1,337 |
package es.ugr.osgiliath.test;
import java.util.ArrayList;
import es.ugr.osgiliath.evolutionary.basiccomponents.individuals.DoubleFitness;
import es.ugr.osgiliath.evolutionary.elements.FitnessCalculator;
import es.ugr.osgiliath.evolutionary.individual.Fitness;
import es.ugr.osgiliath.evolutionary.individual.Individua... | fergunet/osgiliath | TestFitness/src/es/ugr/osgiliath/test/SOAPFitness.java | Java | lgpl-3.0 | 1,074 |
/*******************************************************************************
* Copyright (C) 2014 Stefan Schroeder
*
* 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
* ve... | KateDavis/jsprit | jsprit-core/src/main/java/jsprit/core/algorithm/recreate/RegretInsertion.java | Java | lgpl-3.0 | 12,664 |
/*
* Copyright (C) 2013 Intelligent Automation Inc.
*
* All Rights Reserved.
*/
package com.iai.proteus.views;
import gov.nasa.worldwind.geom.Sector;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Dictionary;
import java.util.HashMap;
import java.util.Hashtable;... | intelligentautomation/proteus | plugins/com.iai.proteus/src/com/iai/proteus/views/DiscoverView.java | Java | lgpl-3.0 | 23,890 |
"use strict";
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
_Object$defineProperty(exports, "__esModule", {
value: true
});
exports.default = getLookup;
var _slice... | Aymkdn/SharepointPlus | dist/utils/getLookup.js | JavaScript | lgpl-3.0 | 1,429 |
/*
* BusyDlg.java
* Created on 14. Mai 2007, 09:33
*
* This file is part of JAMS
* Copyright (C) 2006 FSU Jena
*
* 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 t... | kralisch/jams | JAMScommon/src/jams/gui/ObserverWorkerDlg.java | Java | lgpl-3.0 | 2,590 |
/*
* Copyright (C) 2015-2016 Didier Villevalois.
*
* This file is part of JLaTo.
*
* JLaTo 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) ... | ptitjes/jlato | src/main/java/org/jlato/internal/shapes/LSDecorated.java | Java | lgpl-3.0 | 1,876 |
/**
* \file mifareultralightcacscommands.hpp
* \author Maxime C. <maxime-dev@islog.com>
* \brief Mifare Ultralight C - SpringCard.
*/
#ifndef LOGICALACCESS_MIFAREULTRALIGHTCSPRINGCARDCOMMANDS_HPP
#define LOGICALACCESS_MIFAREULTRALIGHTCSPRINGCARDCOMMANDS_HPP
#include <logicalaccess/plugins/readers/pcsc/commands/mi... | islog/liblogicalaccess | plugins/logicalaccess/plugins/readers/pcsc/commands/mifareultralightcspringcardcommands.hpp | C++ | lgpl-3.0 | 1,139 |
/*
* JAMSDouble.java
* Created on 28. September 2005, 16:06
*
* This file is part of JAMS
* Copyright (C) 2005 FSU Jena
*
* 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 v... | kralisch/jams | JAMSmain/src/jams/data/JAMSDouble.java | Java | lgpl-3.0 | 1,988 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# coding=utf-8
import sunburnt
from anta.util import config
# solr $ANTA_HOME/solr-conf
config_solr = config.config["solr"]
class SOLRInterface():
si = sunburnt.SolrInterface(config_solr['endpoint'])
def initialize(self):
"""Initialize schema"""
s... | medialab/ANTA2 | anta/storage/solr_client.py | Python | lgpl-3.0 | 826 |
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/images/imagesSetsUtils/SetFromImage.h"
#include "DGtal/images/ImageSelector.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/Display3D.h"
#include "DGtal/io/readers/VolReader.h"
#include "DGtal/io/colormaps/GradientColorMap.h"
#include "DGtal/... | kerautret/DGtal-forIPOL | demoIPOL/extract3D.cpp | C++ | lgpl-3.0 | 3,694 |
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>proj</title>
<script src="js/main.js" type="text/javascript"></script>
<!-- Bootstrap -->
<link rel... | totobill/CadosProject | data/genere/proj/layout/bootstrap.php | PHP | lgpl-3.0 | 1,344 |
package user_preferences;
/**
* Model a catalogue preference ( record of the table Preference of the catalogue db )
* @author avonva
*
*/
public class CataloguePreference extends Preference {
// default static keys for preferences
public final static String currentPicklistKey = "favouritePicklist";
public fina... | openefsa/CatalogueBrowser | src/user_preferences/CataloguePreference.java | Java | lgpl-3.0 | 1,162 |
/*
* This file is part or JMathLib
*
* Check it out at http://www.jmathlib.de
*
* Author: stefan@held-mueller.de and others
* (c) 2008-2009
*/
package jmathlib.core.graphics;
/** A fairly conventional 3D matrix object that can transform sets of
3D points and perform a variety of manipulat... | nightscape/JMathLib | src/jmathlib/core/graphics/Matrix3D.java | Java | lgpl-3.0 | 6,366 |
import unittest
from Tribler.community.market.core.message import TraderId, MessageNumber, MessageId
from Tribler.community.market.core.order import OrderId, OrderNumber
from Tribler.community.market.core.price import Price
from Tribler.community.market.core.quantity import Quantity
from Tribler.community.market.core.... | vandenheuvel/tribler | Tribler/Test/Community/Market/test_side.py | Python | lgpl-3.0 | 3,565 |
module.exports = function(grunt) {
var version = grunt.option('release');
if (process.env.SELENIUM_BROWSER_CAPABILITIES != undefined) {
var browser_capabilities = JSON.parse(process.env.SELENIUM_BROWSER_CAPABILITIES);
}
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.... | vSaKv/openpgpjs | Gruntfile.js | JavaScript | lgpl-3.0 | 7,704 |
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2013 Jaspersoft Corporation. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
... | sikachu/jasperreports | src/net/sf/jasperreports/crosstabs/base/JRBaseCrosstabColumnGroup.java | Java | lgpl-3.0 | 3,189 |
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
publicPath: '/'
}).listen(3000, 'localhost', function (err, result) {
if (err) {
return console.log(err);
}
console.log('Listening at ht... | devsli/browser-webpack-brotli-error | devserver.js | JavaScript | unlicense | 348 |
/*******************************************************************************
Yuri V. Krugloff. 2013-2015. http://www.tver-soft.org
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software,... | Fsu0413/QtBinPatcher | QtBinPatcher.cpp | C++ | unlicense | 20,363 |
exports.run = function (callback) {
console.log("Hello from worker");
var uri = require.sandbox.id + require.id("./worker-runner.js");
console.log("Worker runner uri: " + uri);
return require.sandbox(uri, function(sandbox) {
return sandbox.main(callback);
}, function (err) {
console.log("Error while loa... | pinf-it/pinf-it-bundler | test/assets/packages/multiple-declared-exports-bundles/util/worker.js | JavaScript | unlicense | 392 |
package com.ushaqi.zhuishushenqi.adapter;
import android.widget.CheckBox;
import android.widget.TextView;
import butterknife.ButterKnife.Finder;
public class HomeShelfAdapter$TxtHolder$$ViewInjector
{
public static void inject(ButterKnife.Finder paramFinder, HomeShelfAdapter.TxtHolder paramTxtHolder, Object paramOb... | clilystudio/NetBook | allsrc/com/ushaqi/zhuishushenqi/adapter/HomeShelfAdapter$TxtHolder$$ViewInjector.java | Java | unlicense | 1,184 |
// TextColorDlg.cpp : implementation file
//
#include "stdafx.h"
#include "DlgDateExchange2.h"
#include "TextColorDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define WM_SET_COLOR WM_USER+100//×Ô¶¨ÒåÏûÏ¢
///////////////////////////////////////////... | hyller/CodeLibrary | Visual C++ Example/第6章 对话框程序设计/实例119——非模态对话框与应用程序之间的数据交换/DlgDateExchange2/TextColorDlg.cpp | C++ | unlicense | 1,555 |
#include <chrono>
#include <thread>
#include <iostream>
#include "tasks.h"
int main() {
f();
g();
return 0;
}
| jdgarciauc3m/talks | intro-conc/async/main1.cpp | C++ | unlicense | 117 |
<?php
/**
* This is the model class for table "zb_order".
*
* The followings are the available columns in table 'zb_order':
* @property string $order_num
* @property string $wx_open_id
* @property double $price
* @property double $discount_price
* @property string $pay_status
* @property integer $coupon_id
*... | masonyeh/zb_api | protected/models/Order.php | PHP | unlicense | 5,435 |
from django.db import models
from django.contrib.gis.db import models as gmodels
from django_hstore import hstore
class License(models.Model):
"""A license under which a DataSource is published and useable."""
name = models.CharField(max_length=50)
url = models.URLField(help_text="A link to this license."... | openwater/h2o-really | supplements/models.py | Python | unlicense | 1,549 |
/*
* debugFileInfoAccess.hpp
*
*
* @date 14-07-2020
* @author Teddy DIDE
* @version 1.00
* cppBase generated by gensources.
*/
#ifndef _DEBUGFILEINFO_ACCESS_HPP_
#define _DEBUGFILEINFO_ACCESS_HPP_
#include <boost/scoped_ptr.hpp>
#include <memory>
#include <boost/signals2.hpp>
#include <boost/any.hpp>
#includ... | tedi21/SisypheReview | Sisyphe/cppbase/src/debugFileInfoAccess.hpp | C++ | unlicense | 7,588 |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AssessmentListComponent } from './assessment/assessment-list.component';
import { AssessmentDetailComponent } from './assessment/assessment-detail.component';
import { DashboardComponent } from './dashboard/dashb... | jonshern/securitycontrolassessment | website/src/app/app-routing.module.ts | TypeScript | unlicense | 1,326 |
<?php
class m130906_033817_add_user_table extends CDbMigration
{
public function up()
{
$this->createTable('user', array(
'id' => 'pk',
'name' => 'string NOT NULL',
'password' => 'string NOT NULL',
'email' => 'string NOT NULL',
'created_at' => 'DATE... | davidgraig/HootBook | www/protected/migrations/m130906_033817_add_user_table.php | PHP | unlicense | 544 |
/**
* A dock
* @param {Object} The options
* @constructor
*/
hui.ui.IFrame = function(options) {
this.options = options;
this.element = hui.get(options.element);
this.name = options.name;
hui.ui.extend(this);
};
hui.ui.IFrame.prototype = {
/** Change the url of the iframe
* @param {String} url The url... | Humanise/hui | js/IFrame.js | JavaScript | unlicense | 904 |
namespace LearningInterpreter.Basic.Code.Statements
{
using System;
using LearningInterpreter.Parsing;
using LearningInterpreter.RunTime;
public class Remove : IStatement
{
public Range Range { get; private set; }
public Remove(Range range)
{
if (range == Range... | markshevchenko/learning-interpreter | LearningInterpreter.Basic/Code/Statements/Remove.cs | C# | unlicense | 930 |
import React from 'react'
import { Button } from 'styled-mdl'
const demo = () => <Button raised>Raised</Button>
const caption = 'Raised Button'
const code = '<Button raised>Raised</Button>'
export default { demo, caption, code }
| isogon/styled-mdl-website | demos/buttons/demos/raised-default.js | JavaScript | unlicense | 231 |
require "spec_helper"
describe Spira do
context "inheritance" do
before :all do
class ::InheritanceItem < Spira::Base
property :title, :predicate => DC.title, :type => String
has_many :subtitle, :predicate => DC.description, :type => String
type SIOC.Item
end
class :... | PerfectMemory/spira | spec/inheritance_spec.rb | Ruby | unlicense | 6,587 |
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
using Poseidon.BackOffice.Common;
using Poseidon.BackOffice.Module.Ums.Modules;
using Poseidon.BackOffice.Module.Ums.ViewModels;
using Poseidon.BackOffice.Module.Ums.Views;
namespace Poseidon.BackOffice.Module.Ums
{
public class... | Slesa/Poseidon | old/src/2nd/BackOffice.Module.Ums/UmsModule.cs | C# | unlicense | 1,200 |
#!/usr/bin/env python
#This is free and unencumbered software released into the public domain.
#Anyone is free to copy, modify, publish, use, compile, sell, or
#distribute this software, either in source code form or as a compiled
#binary, for any purpose, commercial or non-commercial, and by any
#means.
#In jurisdi... | notptr/randURL | ranurl.py | Python | unlicense | 2,503 |
#ifndef SWZ_LINKED_LIST
#define SWZ_LINKED_LIST
namespace{
#include <iostream>
}
template<typename T>
class double_linked_list_node{
public:
explicit double_linked_list_node(T* value);
explicit double_linked_list_node(T value);
~double_linked_list_node() = default;
T* key;
... | Trickness/pl_learning | Algorithms/cpp/linked_list/double_linked_list.hpp | C++ | unlicense | 10,110 |
<?php
namespace Bamarni\Omnipay\Saferpay\Business\Message;
use Omnipay\Common\Exception\InvalidRequestException;
class CompleteAuthorizeRequest extends AbstractRequest
{
public function getData()
{
$this->validate('accountId', 'spPassword', 'amount');
$data = [
'ACCOUNTID' => $th... | bamarni/omnipay-saferpay-business | src/Message/CompleteAuthorizeRequest.php | PHP | unlicense | 2,642 |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('files', function ... | arvernester/file-sharing | database/migrations/2017_05_23_054056_create_files_table.php | PHP | unlicense | 1,035 |
<?php
namespace AppBundle\Services;
class TestService
{
public function sayHello()
{
return "hello from test service!";
}
} | Kolbasyatin/IFS | src/AppBundle/Services/TestService.php | PHP | unlicense | 147 |
package com.communitysurvivalgames.thesurvivalgames.command.standalone;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.communitysurvivalgames.thesurvivalgames.exception.Aren... | SurvivalGamesDevTeam/TheSurvivalGames | src/main/java/com/communitysurvivalgames/thesurvivalgames/command/standalone/SponsorCommand.java | Java | unlicense | 1,102 |
#!/usr/bin/env python
"""Ensure that invalid files (non-episodes) are not renamed
"""
from functional_runner import run_tvnamer, verify_out_data
from helpers import attr
@attr("functional")
def test_simple_single_file():
"""Boring example
"""
out_data = run_tvnamer(
with_files = ['Some File.avi... | dbr/tvnamer | tests/test_invalid_files.py | Python | unlicense | 1,264 |
#ifdef __cplusplus
#include <cstdlib>
#else
#include <stdlib.h>
#endif
#include <SDL/SDL.h>
#include <iostream>
#include <ctime>
using namespace std; // This is needed for the game to work.
#include"Table.h"
int ask();
int ask()
{
print("Do thy wish to play again ?");
string input = "";
while (true) {... | Raspberrymonster/Blade | blade.cpp | C++ | unlicense | 1,707 |
package com.lunaticedit.legendofwaffles.implementations.stageobject;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.BodyDef;
import com.badlogic.gdx.physics.box2d.PolygonShape;
import com.lunaticedit.legendofwaffles.contracts.Processable;
import com.lunaticedit.legendofwaffles.contra... | essial/legend-of-waffles | Main/src/com/lunaticedit/legendofwaffles/implementations/stageobject/Door.java | Java | unlicense | 4,470 |
using System;
using System.Windows.Controls;
namespace _11_Screens.Framework.Controls
{
public class CustomTransitionControl : ContentControl
{
public event EventHandler ContentChanged = delegate { };
protected override void OnContentChanged(object oldContent, object newContent)
... | Slesa/Poseidon | sketches/wpf/caliburn/11_Screens/Framework/Controls/CustomTransitionControl.cs | C# | unlicense | 464 |
package de.protubero.ajs;
import org.junit.Test;
import static de.protubero.ajs.Helpers.namedPerson;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.*;
public class PersonStoreTest {
@Test
public void shouldBeAbleToStoreKnownPerson() {
PersonStore ps = new PersonStore... | protubero/angular-jooby-starter | server/src/test/java/de/protubero/ajs/PersonStoreTest.java | Java | unlicense | 1,060 |
package collection
import (
"github.com/karousel/core/album"
gorp "gopkg.in/gorp.v1"
)
type Store struct {
Database *gorp.DbMap
}
func NewStore(database *gorp.DbMap) (Store, error) {
store := Store{
Database: database,
}
return store, nil
}
func (store Store) Add(collection *Collection) error {
err := st... | karousel/core | collection/store.go | GO | unlicense | 1,437 |
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace Schedule.Models.ViewModels
{
public class ConflictsViewModel : BaseViewModel
{
private object item;
private string description;
private ObservableCollection<ConflictsViewModel> children;
public C... | surenkov/Schedule | Schedule/Models/ViewModels/ConflictsViewModel.cs | C# | unlicense | 1,084 |
<?php
require_once dirname(__FILE__) . '/latproc.php';
$property_list = get_iod_property_list(array('name','msg','id','type','blink', 'textcolor', 'textsize'), array('type','id'));
var_dump($property_list);
?>
| latproc/modbus-cmore-scripts | lib/iodProcess.php | PHP | unlicense | 219 |
package com.ushaqi.zhuishushenqi.widget;
import android.app.AlertDialog;
import android.content.Context;
import android.support.design.widget.am;
import android.util.AttributeSet;
import android.view.Display;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import an... | clilystudio/NetBook | allsrc/com/ushaqi/zhuishushenqi/widget/CommentItemView.java | Java | unlicense | 9,782 |
#include <iostream>
#include "FactorialIterator.cpp"
int main() {
FactorialIterator seq;
for ( ; !seq.isLast(); seq++ ) {
std::cout << *seq << std::endl;
}
std::cout << seq.value() << std::endl;
seq.reset();
std::cout << "seq.reset(): " << seq.value() << std::endl;
... | KozyrOK/Study | 4week/1task/Iterators/Factorial/main.cpp | C++ | unlicense | 835 |
using Microsoft.ApplicationInsights;
using System;
using System.Diagnostics;
namespace PostSharp.Samples.Profiling
{
public static class ProfilingServices
{
private static readonly Stopwatch stopwatch = Stopwatch.StartNew();
internal static long GetTimestamp() => stopwatch.ElapsedTicks + 1;
... | postsharp/PostSharp.Samples | Framework/PostSharp.Samples.Profiling/ProfilingServices.cs | C# | unlicense | 951 |
const bcrypt = require("bcryptjs");
const Promise = require("bluebird");
const hashPasswordHook = require('./utils/hashPasswordHook');
const Op = require("sequelize").Op;
module.exports = function(sequelize, DataTypes) {
const log = require("logfilename")(__filename);
const models = sequelize.models;
const User ... | FredericHeem/starhackit | server/src/plugins/users/models/UserModel.js | JavaScript | unlicense | 5,359 |
/**
* Created by charques on 23/8/16.
*/
'use strict';
var express = require('express');
var router = express.Router();
var User = require(__base + 'app/models/user');
var hash = require(__base + 'app/helpers/crypto');
router.get('/', function(req, res) {
User.find({}, function(err, users) {
res... | charques/macrolayer | macrolayer-srv-login/app/controllers/users.js | JavaScript | unlicense | 1,068 |
/**
* @author Joe Azar
* @version 1.3.1
*
* v1.0 - Standard Build, all basic features
* v1.1 - Added linear drawing, optimized point selection code and drawing methods, updated GUI and overall look.
* v1.2 - Two new sizes, Pixel and Super-Sampled. Optimized sampling drawing algorithm.
* v1.3 - Added caching ... | JoeAzar/CGOL-v1.4 | CGOL_UI.java | Java | unlicense | 9,701 |
describe('test', function() {
it('ok', function() {
if (2 + 2 !== 4) throw(new Error('Test failed'))
})
})
;; | sunflowerdeath/broccoli-karma-plugin | test/files/ok.js | JavaScript | unlicense | 113 |
package main
import (
"fmt"
"io"
"log"
"strconv"
"strings"
"time"
"github.com/chzyer/readline"
"go.bug.st/serial.v1"
)
var (
device serial.Port
console *readline.Instance
conOut io.Writer
serialRecv = make(chan []byte)
commandRecv = make(chan Command)
)
type Command struct {
line string... | jeelabs/folie | mini/main.go | GO | unlicense | 2,416 |
a = [1,2,3]
b = a + [4,5,6]
p a
| CaddyDz/Ruby | p2/ch9/collection_handling_with_arrays/s3/+.rb | Ruby | unlicense | 32 |
//==============================================================================
#include <hgeresource.h>
#include <hgesprite.h>
#include <hgefont.h>
#include <sqlite3.h>
#include <Database.h>
#include <Query.h>
#include <game.hpp>
#include <engine.hpp>
#include <entity.hpp>
#include <viewport.hpp>
#incl... | jasonhutchens/thrust_harder | game.cpp | C++ | unlicense | 12,117 |
class AddImageToDevices < ActiveRecord::Migration
def change
add_column :devices, :images, :json
end
end
| marmorkuchen-net/darmstadt3000 | db/migrate/20150822160442_add_image_to_devices.rb | Ruby | unlicense | 113 |
/*
---- A DYNAMIC Huffman (FGK) Coding Implementation ----
Filename: FGKD.C (Decoder)
Written by: Gerald Tamayo
Date: 2005
This is the decompressor for
FGKC.C, an *Adaptive* Huffman (FGK) Algorithm implementation.
To compile: tcc -w fgkd.c gtbitio.c huf.c
bcc32 -w fgkd.c gtb... | Bladefidz/algorithm | compression/FGK/FGKD.C | C++ | unlicense | 2,984 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
namespace WcfServer.Service
{
[ServiceContract]
public interface IStringReverser
{
[OperationContract]
string ReverseString(string value);
}
public class StringReverser : IStringReverser
{
pub... | DonTomato/WcfNamedPipesExample | sources/WcfServer/Service/IStringReverser.cs | C# | unlicense | 574 |
//hello8.cpp
#include "hello8.h"
#include <iostream>
using namespace std;
int Hello8::obj_count = 0;
int Hello8::Total() {
return obj_count;
}
void Hello8::run(int l, int c) const {
for(int i = 0; i < l; i++) {
for(int j = 0; j < c; j++)
cout<<"Hello " << id << ", ";
cout << endl;
}
}
void ... | alexbernardino/scdtr1718 | hello/hello8.cpp | C++ | unlicense | 358 |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using ImputationH31per.Modele;
using ImputationH31per.Modele.Entite;
using ImputationH31per.Vue.EditeurImputationTfs.Modele;
namespace ImputationH31per.Vue.ImputationsCourantes.Modele
{
public interf... | blueneosky/Bag | ImputationH31per/ImputationH31per/Vue/ImputationsCourantes/Modele/IImputationsCourantesFormModele.cs | C# | unlicense | 1,033 |
/*
* Copyright (C) 2008 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 to ... | storm345dev/StormAuthLib | StormAuthLib/src/lib/stormauthlib/com/google/gson/annotations/SerializedName.java | Java | unlicense | 2,603 |
#!/usr/bin/env python
import datetime
import sys
import numpy
import math
import os
import matplotlib
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.colors import LogNorm
import data
KEYFILE = os.path.expanduser('~/.ssh/livedatakey')
WEBSPACE = 'pkienzle@webster.ncnr.nist.gov:/var/www/html... | scattering/ipeek | server/sans/livesans.py | Python | unlicense | 5,262 |
#include<stdio.h>
main(){
int cake[101],i,sum,done,n,max,side[101];
char c;
for(i=-1;scanf("%d%c",&cake[++i],&c)!=EOF;i=-1){
printf("%d%c",cake[i],c);
if(c=='\n'){
printf("0\n");
continue;
}
while(1){
scanf("%d%c",&cake[++i],&c);
printf("%d%c",cake[i],c);
if(c=='\... | dk00/old-stuff | uva/120.cpp | C++ | unlicense | 955 |
<?php
/**
* Page d'accueil
*
* @package Kdocode.com
* @author Louis Debraine (louisdebraine@hotmail.com)
* @copyright ©Loode
* @create 29/10/2009, Loode
*/
final class Frame_Child extends Frame {
// Frame main obligatoire, c'est elle qui va gérer toute la frame.
protected function mai... | LouisLoode/Kdocode | pages/frames/validation.php | PHP | unlicense | 2,367 |
const types = require('recast/lib/types')
const { namedTypes: n, NodePath } = types
const ABORT_EXCEPTION = Symbol('ABORT_EXCEPTION')
/**
* Low-level pre-order (breadth-first) traversal of an AST.
* It invokes `callback` for everything in the AST, not just nodes.
*
* The callback can return false to skip the trav... | mdebbar/reshift | src/ast-traverse.js | JavaScript | unlicense | 3,055 |
<div class="footer">
<div class="row footer-content">
<div class="col-md-4 col-sm-4">
<div class="footer-sobre">
<div class="row">
<div class="col-lg-4 col-md-5" >
<img src="<?php echo base_url('/assets/images/logoamarela.png'); ?... | DEWebSistems/tormetais | application/views/fragmentos/rodape.php | PHP | unlicense | 4,084 |
var _ = require("/lib/underscore");
function ActionBar (options, btnText) {
options = (options) ? options : {};
var title = (options.title) ? options.title : "";
btnText = btnText || "...";
options = _.extend({
backgroundColor: '#5B7663',
top: 0, left: 0, height: 45, width: Ti.UI.FILL, // fullscreen
}, _.om... | rcelha/x360achievements2 | Resources/ui/ActionBar.js | JavaScript | unlicense | 1,018 |
<?php
/**
* The purpose of this file is to an asynchronous search on Google News for the provided term
* and parse the results into usable JSON
* @author Andrew Crites <explosion-pills@aysites.com>
* @package gn-search
*/
class GnSearchAjax {
/**
* @var WP_Error container for server-side errors
*/
p... | ajcrites/gn-search | src/gn-search-ajax.php | PHP | unlicense | 4,287 |
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
using UnityEngine.UI;
public class gameManager : MonoBehaviour {
public GameObject player1;
public GameObject player2;
public GameObject player1Text;
public GameObject player2Text;
public GameObject p... | Mostopha/mmh576_CodeLab1_WK7HW | Code Lab 1 Homework/Assets/Scripts/gameManager.cs | C# | unlicense | 2,934 |
package uk.ac.ebi.phenotype.dao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.c... | mpi2/PhenotypeArchive | src/test/java/uk/ac/ebi/phenotype/dao/ObservationDAOImplTest.java | Java | apache-2.0 | 1,802 |
package hu.androidportal.rss;
import java.util.Date;
import android.net.Uri;
public class RSSItem extends RSSObject
{
private static final String BREAK = "<!--break-->";
public final static String F_PUBDATE = "pubdate";
public final static String F_AUTHOR = "author";
public final static int MAX_SUM... | kuc/bankdroid | AndroidPortal.hu/src/hu/androidportal/rss/RSSItem.java | Java | apache-2.0 | 2,852 |
$('#buscador').on("input", function() {
var dInput = this.value;
console.log("res es",dInput);
}); | dsaqp1516g4/www | js/buscador.js | JavaScript | apache-2.0 | 109 |
// Copyright 2007-2011 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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.... | eswann/Burrows | src/Burrows/Subscriptions/IUnsubscribeAction.cs | C# | apache-2.0 | 1,042 |