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 |
|---|---|---|---|---|---|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.co.axon.monitor.config;
/**
*
* @author aardvocate
*/
public class Web extends MonitorBase {
public String url;
}
| segun/jmonit | src/za/co/axon/monitor/config/Web.java | Java | gpl-2.0 | 233 |
<?php
error_reporting(E_ALL);
if (!defined('DIR_KVZLIB')) {
define('DIR_KVZLIB', dirname(dirname(dirname(dirname(dirname(__FILE__))))));
}
?>
// LANG::xml
// Sample starts here
<?php
require_once DIR_KVZLIB.'/php/classes/KvzHTML.php';
$H = new KvzHTML(array(
'xml' => true,
));
$cdataOpts = array('__cdata' => ... | thebillkidy/desple.com | wp-content/themes/capsule/ui/lib/phpjs/ext/kvzlib/php/samples/classes/KvzHTML/sample5-xml-complex.php | PHP | gpl-2.0 | 1,109 |
from getdist import loadMCSamples,plots,covmat
import numpy as np
import os,fnmatch
#filenames = fnmatch.filter(os.listdir("../output/chains/"),"mcmc_*.txt")
#for index in range(len(filenames)):
# os.rename("../output/chains/"+str(filenames[index]),"../output/chains/mcmc_final_output_"+str(index+1)+".txt")
n... | wilmarcardonac/fisher-mcmc | analyzer/compute_cov.py | Python | gpl-2.0 | 1,275 |
/*
* CINELERRA
* Copyright (C) 2009 Adam Williams <broadcast at earthling dot 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 the License, or
* (at your optio... | triceratops1/cinelerra | cinelerra-4.6/cinelerra-4.6.mod/cinelerra/vrender.C | C++ | gpl-2.0 | 13,523 |
import os
from core import aleinst
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
class Formula():
def __init__(self, request):
self.request = request
def search(self):
package = aleinst.Aleinst(request=self.request[0:])
package.search()
def main(self):
self.se... | darker0n/ale | core/Formula/install.py | Python | gpl-2.0 | 326 |
package com.austinv11.peripheralsplusplus.capabilities.nano;
import net.minecraft.entity.Entity;
import javax.annotation.Nullable;
import java.util.UUID;
/**
* Capability interface for entities that will hold nano bots
*/
public interface NanoBotHolder {
/**
* Get the bots the entity is infested with
... | rolandoislas/PeripheralsPlusPlus | src/main/java/com/austinv11/peripheralsplusplus/capabilities/nano/NanoBotHolder.java | Java | gpl-2.0 | 1,324 |
package impl;
public class StopWordsFilter {
private static String stopWordsList[] = { "的", "我们", "要", "自己", "之", "将",
"“", "”", ",", "(", ")", "后", "应", "到", "某", "后", "个", "是", "位", "新",
"一", "两", "在", "中", "或", "有", "更", "好", "" };// 常用停用词
public static boolean IsStopWord(String word) {
for (i... | kevin-ww/text.classfication | src/main/java/impl/StopWordsFilter.java | Java | gpl-2.0 | 536 |
<?php
namespace Drupal\Tests\extlink\FunctionalJavascript;
/**
* Testing the basic functionality of External Links.
*
* @group Extlink
*/
class ExtlinkTestTarget extends ExtlinkTestBase {
/**
* Checks to see if extlink adds target and rel attributes.
*/
public function testExtlinkTarget() {
// Targ... | dbethala/longwood-volunteers | modules/extlink/tests/src/FunctionalJavascript/ExtlinkTestTarget.php | PHP | gpl-2.0 | 3,385 |
/*
* Greenshot - a free and open source screenshot tool
* Copyright (C) 2007-2015 Thomas Braun, Jens Klingen, Robin Krom, Francis Noel
*
* For more information see: http://getgreenshot.org/
* The Greenshot project is hosted on Sourceforge: http://sourceforge.net/projects/greenshot/
*
* This program is ... | BartDM/GreenshotPlugin | GreenshotDropboxPlugin/DropboxPluginConfiguration.cs | C# | gpl-2.0 | 2,377 |
# -*- coding: utf-8 -*-
#
# papyon - a python client library for Msn
#
# Copyright (C) 2009 Collabora 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 2 of the License, or
#... | Kjir/papyon | papyon/media/relay.py | Python | gpl-2.0 | 1,127 |
/***************************************************************************
main.cpp
(c) 2000-2013 Benoît Minisini <gambas@users.sourceforge.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 Foun... | justlostintime/gambas | main/lib/clipper/main.cpp | C++ | gpl-2.0 | 1,456 |
using UnityEngine;
using System.Collections;
public class AIController : MonoBehaviour {
Transform lineStart, lineEnd;
GameObject healthBar;
float health = 250;
float maxHealth = 250;
GameObject character;
Stats stats;
Animator animateState;
// Use this for initialization
void Start () {
animateState... | UCCS-GDD/CS3350-ChampionOfTheNine | ChampionsOfTheNinePrototype/Assets/Scripts/AIController.cs | C# | gpl-2.0 | 7,286 |
<?php
set_include_path(get_include_path().PATH_SEPARATOR.realpath('../../includes').PATH_SEPARATOR.realpath('../../').PATH_SEPARATOR.realpath('../').PATH_SEPARATOR);
$dir = realpath(getcwd());
chdir("../../");
require_once ( 'WebStart.php');
require_once( 'Wiki.php' );
chdir($dir);
$userRun = $wgUser; #The user that ... | hexmode/wikipathways.org | wpi/test/testPrivatePathways.php | PHP | gpl-2.0 | 4,499 |
# ==Paramerer Controller
# This manages the display of a parameter
#
# == Copyright
# Copyright © 2006 Robert Shell, Alces Ltd All Rights Reserved
# See license agreement for additional rights
#
#
class Organize::ParametersController < ApplicationController
use_authorization :organization,
:us... | rshell/biorails | app/controllers/organize/parameters_controller.rb | Ruby | gpl-2.0 | 632 |
using System.Drawing;
using System.Threading.Tasks;
namespace GoF_TryOut.Proxy.Straight {
public class Client {
public Client() {
var myImage = new MyImage("");
var bitmap = myImage.GetImage() ?? myImage.GetPreview();
}
}
public class MyImage {
private read... | VioletTape/Trainings | DEV-001_GoF/GoF_TryOut/GoF_TryOut/Proxy/Straight/Client.cs | C# | gpl-2.0 | 1,114 |
package core
import (
"github.com/justinsb/gova/log"
)
type CleanupOldMachines struct {
huddle *Huddle
state map[string]int
deleteThreshold int
}
func (self *CleanupOldMachines) Run() error {
state, err := self.huddle.cleanupOldMachines(self.state, self.deleteThreshold)
if err != nil {
log.Warn("E... | jxaas/jxaas | core/scheduled_machine_cleanup.go | GO | gpl-2.0 | 490 |
<?php
/**
* @version $Id: AbstractItem.php 30067 2016-03-08 13:44:25Z matias $
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2016 RocketTheme, LLC
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
abstract class RokCommon_Form_AbstractItem implements... | bmacenbacher/multison | libraries/rokcommon/RokCommon/Form/AbstractItem.php | PHP | gpl-2.0 | 11,359 |
/* Copyright (C) 2006 - 2011 ScriptDev2 <http://www.scriptdev2.com/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... | gelu/ChgSD2 | scripts/kalimdor/caverns_of_time/dark_portal/instance_dark_portal.cpp | C++ | gpl-2.0 | 10,305 |
package com.github.randoapp.api.listeners;
import com.github.randoapp.db.model.Rando;
public interface UploadRandoListener {
void onUpload(Rando rando);
}
| RandoApp/Rando-android | src/main/java/com/github/randoapp/api/listeners/UploadRandoListener.java | Java | gpl-2.0 | 162 |
<?php
/**
* Copyright (c) 2007-2011, Servigistics, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,... | ekilfeather/open-storyscope | profiles/storyscope/libraries/SolrPhpClient/Apache/Solr/Service.php | PHP | gpl-2.0 | 39,313 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesisweb.controller.general;
/**
*
* @author root
*/
/* *******************************************
// Copyright 2010-2012, Anthony Hand
//
// File version date: January 21, 2012
// Update:
// - M... | ferremarce/TEST_USABILIDAD | src/main/java/tesisweb/controller/general/UserAgentInfo.java | Java | gpl-2.0 | 35,267 |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Reports\Block\Adminhtml\Sales;
/**
* Adminhtml invoiced report page content block
*
* @api
* @author Magento Core Team <core@magentocommerce.com>
* @since 100.0.2
*/
class Invoiced exten... | kunj1988/Magento2 | app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced.php | PHP | gpl-2.0 | 1,251 |
<?php
$contents="<html>
<head>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript' charset='utf-8'></script>
<script src='js/jquery.uniform.min.js' type='text/javascript' charset='utf-8'></script>
<script type='text/javascript' charset='utf-8'>
$(function(){
$('input... | berryjace/www | crm/library/ThirdParty/OpenInviter/more_examples/get_contacts.php | PHP | gpl-2.0 | 9,479 |
import React from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem, NavItem, NavLink } from 'reactstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCog, faExternalLinkAlt, faSignOutAlt } from '@f... | elamperti/OpenWebScrobbler | src/components/Navigation/partials/UserDropdown.js | JavaScript | gpl-2.0 | 2,071 |
/*
* Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
... | fgenesis/mangos | src/game/SpellMgr.cpp | C++ | gpl-2.0 | 188,760 |
package mattparks.mods.space.venus.entities;
import mattparks.mods.space.venus.items.GCVenusItems;
import micdoodle8.mods.galacticraft.api.entity.IEntityBreathable;
import net.minecraft.entity.Entity;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.monster.EntityMob;
import net.minecra... | 4Space/4-Space-1.6.4 | common/mattparks/mods/space/venus/entities/GCVenusEntityEvolvedBlaze.java | Java | gpl-2.0 | 6,459 |
/**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest15221.java | Java | gpl-2.0 | 2,564 |
<?php
require_once dirname(__FILE__) . '/Reviews.php';
class Sabai_Addon_Directory_Controller_UserReviews extends Sabai_Addon_Directory_Controller_Reviews
{
protected function _createQuery(Sabai_Context $context, $sort, Sabai_Addon_Entity_Model_Bundle $bundle = null)
{
return parent::_createQuery($... | ssxenon01/mm | resources/plugins/sabai-directory/lib/Directory/Controller/UserReviews.php | PHP | gpl-2.0 | 418 |
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful... | tea-dragon/triplea | src/main/java/games/strategy/net/ServerMessenger.java | Java | gpl-2.0 | 25,312 |
// This file is part of Agros2D.
//
// Agros2D is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// Agros2D is distributed in the h... | panek50/agros2d | src/localvalueview.cpp | C++ | gpl-2.0 | 8,032 |
#!/usr/bin/env python
# Copyright (C) 2007--2016 the X-ray Polarimetry Explorer (XPE) team.
#
# For the license terms see the file LICENSE, distributed along with this
# software.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published... | lucabaldini/xpedaq | scripts/ixpe_evt_lib.py | Python | gpl-2.0 | 7,540 |
/**
* Copyright (c) 2014 Igor Botian
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distr... | igorbotian/phdapp | input/src/main/java/ru/spbftu/igorbotian/phdapp/common/impl/PointwiseInputDataImpl.java | Java | gpl-2.0 | 2,247 |
using System.Collections.Generic;
using System.IO;
using System.Timers;
namespace DevWilson
{
internal class ImageList : List<ImageFileAttributes>
{
private readonly string filePath;
private readonly object syncRoot = new object();
private Timer saveTimer;
public ImageList(str... | abmv/MetaComic | MetaComics.Client/Code/PDF/PDFImageWorks/ImageList.cs | C# | gpl-2.0 | 1,807 |
<?php
// src/Acme/DemoBundle/Tests/Utility/CalculatorTest.php
namespace FL\CoreBundle\Tests\Utility;
use FL\CoreBundle\Utility\Calculator;
class CalculatorTest extends \PHPUnit_Framework_TestCase
{
public function testAdd()
{
$calc = new Calculator();
$result = $calc->add(30, 12);
//... | flabastie/memoword | src/FL/CoreBundle/Tests/Utility/CalculatorTest.php | PHP | gpl-2.0 | 421 |
showWord(["pr.","Lan, anndan. Ti moun yo t ap jwe nan dlo a."
]) | georgejhunt/HaitiDictionary.activity | data/words/nan.js | JavaScript | gpl-2.0 | 64 |
/***************************************************************************
tag: FMTC Tue Mar 11 21:49:27 CET 2008 DataFlowInterface.cpp
DataFlowInterface.cpp - description
-------------------
begin : Tue March 11 2008
copyright ... | jbohren-forks/rtt-smits | rtt/DataFlowInterface.cpp | C++ | gpl-2.0 | 9,316 |
<?php
/*
* Removes core controls
*/
function shoestrap_remove_controls( $wp_customize ){
$wp_customize->remove_control( 'header_textcolor');
}
add_action( 'customize_register', 'shoestrap_remove_controls' );
| westerniowawireless/wiaw.net | wp-content/themes/shoestrap/lib/customizer/functions/remove-controls.php | PHP | gpl-2.0 | 213 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010-2016 Red Hat, Inc.
#
# Authors:
# Thomas Woerner <twoerner@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Li... | hos7ein/firewalld | src/firewall/core/ipXtables.py | Python | gpl-2.0 | 53,449 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2009, 2013 Zuza Software Foundation
#
# This file is part of Pootle.
#
# 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 ... | arky/pootle-dev | pootle/apps/pootle_store/tests.py | Python | gpl-2.0 | 17,327 |
<?php
/*------------------------------------------------------------------------
# com_localise - Localise
# ------------------------------------------------------------------------
# author Mohammad Hasani Eghtedar <m.h.eghtedar@gmail.com>
# copyright Copyright (C) 2010 http://joomlacode.org/gf/project/com_localise... | bcnu/aptopnews | administrator/components/com_localise/views/package/tmpl/default_document.php | PHP | gpl-2.0 | 834 |
/**
* @copyright 2009-2019 Vanilla Forums Inc.
* @license GPL-2.0-only
*/
import classNames from "classnames";
import React from "react";
import { useSection, withSection } from "@library/layout/LayoutContext";
import { ILayoutContainer } from "@library/layout/components/interface.layoutContainer";
export function... | vanilla/vanilla | library/src/scripts/layout/components/Panel.tsx | TypeScript | gpl-2.0 | 682 |
<?php defined('SYSPATH') or die('No direct script access.');
/**
* SwiftMailer driver, used with the email helper.
*
* @see http://www.swiftmailer.org/wikidocs/v3/connections/nativemail
* @see http://www.swiftmailer.org/wikidocs/v3/connections/sendmail
* @see http://www.swiftmailer.org/wikidocs/v3/connections/smtp... | boudewijnrempt/HyvesDesktop | 3rdparty/socorro/webapp-php/system/config/email.php | PHP | gpl-2.0 | 786 |
<?php
namespace estoque\Http\Controllers;
use Illuminate\Http\Request;
use estoque\Http\Requests;
use estoque\Http\Controllers\Controller;
class HomeController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
/**
* Display a listing of the resource.
... | Thiago-Cardoso/treinamento-Laravel5.1 | app/Http/Controllers/HomeController.php | PHP | gpl-2.0 | 456 |
import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import java.util.Map;
import java.util.Iterator;
import SimpleOpenNI.*;
import java.util.Random;
import java.net.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.ArrayList;
impo... | Signal-to-Noise-Media-Labs/open_windows | sketches/masterB/application.linux64/source/masterB.java | Java | gpl-2.0 | 26,791 |
<?php
/**
* @package HikaShop for Joomla!
* @version 4.4.0
* @author hikashop.com
* @copyright (C) 2010-2020 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?> <table class="admintable" width="100%"... | emundus/v6 | administrator/components/com_hikashop/views/category/tmpl/normal.php | PHP | gpl-2.0 | 6,147 |
<?PHP
require_once "nxheader.inc.php";
// Get the Google Maps API-Key
$apikey = $cds->content->get("Google-API-Key");
// Create the Maps-API. The apikey is passed as parameter.
$maps = $cds->plugins->getApi("Google Maps API", $apikey);
$cds->layout->addToHeader($maps->printGoogleJS());
require_once $cds-... | sweih/nxr | wwwdev/map.php | PHP | gpl-2.0 | 1,192 |
<?php
/**
* @package Joomla
* @subpackage com_morfeoshow
* @copyright Copyright (C) Vamba & Matthew Thomson. All rights reserved.
* @license GNU/GPL.
* @author Vamba (.joomlaitalia.com) & Matthew Thomson (ignitejoomlaextensions.com)
* @based on com_morfeoshow
* @author Matthew Thomson (ignitejoomlaextensions.co... | jcorrego/graduarte | administrator/components/com_morfeoshow/view/editphoto.php | PHP | gpl-2.0 | 2,901 |
<?php
/*
** ZABBIX
** Copyright (C) 2000-2005 SIA Zabbix
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** T... | Shmuma/z | frontends/php/include/classes/ctriggerinfo.mod.php | PHP | gpl-2.0 | 3,613 |
import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;
public class SimpleWordGame
{
public int points(String[] player, String[] dictionary)
{
Set<String> wrds = new HashSet<String>();
Set<String> dict = new HashSet<String>();
for(int i = 0; i < player.... | venkatesh551/TopCoder | older/SimpleWordGame.java | Java | gpl-2.0 | 3,588 |
<?php
//--------------------------------------------------------------------
//- File : contact/mailing_lists.php
//- Project : FVWM Home Page
//- Programmer : Uwe Pross
//--------------------------------------------------------------------
if(!isset($rel_path)) $rel_path = "./..";
//------------... | ThomasAdam/fvwm-web | contact/index.php | PHP | gpl-2.0 | 5,170 |
/* $Id: tstMvWnd.cpp 44529 2013-02-04 15:54:15Z vboxsync $ */
/*
* Copyright (C) 2010-2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the G... | carmark/vbox | src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/tstMvWnd.cpp | C++ | gpl-2.0 | 5,327 |
<?php
/**
* Logique des tâches
*
* PHP versions 5
*
* LODEL - Logiciel d'Edition ELectronique.
*
* Home page: http://www.lodel.org
* E-Mail: lodel@lodel.org
*
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licen... | charlycoste/lodel-old | lodel/scripts/logic/class.tasks.php | PHP | gpl-2.0 | 5,266 |
<?php
namespace PaLogic\Bundle\UserBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PaLogicUserBundle extends Bundle
{
public function getParent()
{
return 'FOSUserBundle'; // Name of parent bundle
}
}
| 71m024/palogic | src/PaLogic/Bundle/UserBundle/PaLogicUserBundle.php | PHP | gpl-2.0 | 238 |
/*
* Copyright (C) 2006, 2008 Thomas Zander <zander@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later vers... | JeremiasE/KFormula | plugins/dockers/shapeselector/GroupShape.cpp | C++ | gpl-2.0 | 1,427 |
<?php
//======================================================
// Copyright (C) 2006 Claudio Redaelli, All Rights Reserved
//
// This file is part of the Unit Command Climate
// Assessment and Survey System (UCCASS)
//
// UCCASS is free software; you can redistribute it and/or
// modify it under the terms of the Affer... | nishad/uccass | results_spss.php | PHP | gpl-2.0 | 1,125 |
import data from './data.json';
import * as F2 from '../../../../src/index';
// 兼容之前的pinch和pan
import '../../../../src/interaction/index';
import Pan from '../../../../src/interaction/pan';
import Pinch from '../../../../src/interaction/pinch';
const canvas = document.createElement('canvas');
canvas.width = 500;
can... | antvis/g2-mobile | test/unit/interaction/new/compatible-spec.js | JavaScript | gpl-2.0 | 1,124 |
#-*- coding: utf-8 -*-
from openerp.osv import fields, osv
class partner_add_contact(osv.osv_memory):
_name = "partner.add.contact"
_columns = {
"name": fields.char("Nom", size=128, required=True),
"partner_id": fields.many2one("res.partner", u"Partenaire associé"),
"firstname": fi... | ATSTI/administra | open_corretora/brokerage/wizard/partner_add_contact.py | Python | gpl-2.0 | 1,249 |
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | koreapyj/openttd-yacd | src/sound.cpp | C++ | gpl-2.0 | 9,517 |
/*
This file is part of Cyclos (www.cyclos.org).
A project of the Social Trade Organisation (www.socialtrade.org).
Cyclos 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 th... | mateli/OpenCyclos | src/main/java/nl/strohalm/cyclos/controls/members/references/MemberReferencesAction.java | Java | gpl-2.0 | 9,953 |
using System;
using System.Collections.Generic;
namespace LeetCode
{
public partial class Solution {
public int LengthOfLongestSubstring(string s)
{
//TODO 以下算法虽然思路是对的,但是写法有问题,无法通过长字符串的测试,不应该递归
#region Bad performance
// IList<char> dic=new List<char>();
// for (var i = 0; i < s.Length; i++)
// {
//... | studyzy/Leetcode | CSharp/LeetCode/LongestSubstringWithoutRepeatingCharacters.cs | C# | gpl-2.0 | 1,226 |
/****************************************************************************
The Sire build utility 'sire'.
Copyright (C) 1999, 2000, 2002, 2003 David W Orchard (davido@errol.org.uk)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lic... | LaMaisonOrchard/Sire | sire/machine.cpp | C++ | gpl-2.0 | 4,814 |
require 'rails_helper'
RSpec.shared_context 'some assigned reviews and some unassigned reviews' do
let!(:user) { create(:user) }
let!(:review_assigned1) { create(:review, by_user: user.login) }
let!(:review_assigned2) { create(:review, by_user: user.login) }
let!(:review_unassigned1) { create(:review, by_user... | Ana06/open-build-service | src/api/spec/models/review_spec.rb | Ruby | gpl-2.0 | 15,667 |
#include "\z\ifa3_comp_ace\addons\cannon\script_component.hpp" | bux/IFA3_ACE_COMPAT | addons/cannon/functions/script_component.hpp | C++ | gpl-2.0 | 62 |
using System;
using Server;
using Server.Items;
namespace Server.Items
{
public abstract class BaseSpear : BaseMeleeWeapon
{
public override int DefHitSound{ get{ return 0x23C; } }
public override int DefMissSound{ get{ return 0x238; } }
public override SkillName DefSkill{ get{ return SkillName.Fencing; } }
... | brodock/sunuo | scripts/legacy/Items/Weapons/SpearsAndForks/BaseSpear.cs | C# | gpl-2.0 | 1,599 |
package it.giacomos.android.wwwsapp.locationUtils;
public class Constants {
public static final long LOCATION_UPDATE_INTERVAL = 25000L;
public static final long LOCATION_FASTEST_UPDATE_INTERVAL = 20000L;
public static final long LOCATION_UPDATES_GPS_MIN_TIME = 12000l;
public static final float LOCATION_UPDAT... | delleceste/wwwsapp | src/it/giacomos/android/wwwsapp/locationUtils/Constants.java | Java | gpl-2.0 | 688 |
<?php
require_once("include/bittorrent.php");
dbconn();
$langid = 0 + $_GET['sitelanguage'];
if ($langid)
{
$lang_folder = validlang($langid);
if(get_langfolder_cookie() != $lang_folder)
{
set_langfolder_cookie($lang_folder);
header("Location: " . $_SERVER['PHP_SELF']);
}
}
require_once(get_langfile_path("", f... | lzuhzy/xbwpt | xbwpt/login.php | PHP | gpl-2.0 | 4,030 |
<?php
/********************************************************************
PhPeace - Portal Management System
Copyright notice
(C) 2003-2019 Francesco Iannuzzelli <francesco@phpeace.org>
All rights reserved
This script is part of PhPeace.
PhPeace is free software; you can redistribute it and/or mo... | fra967/phpeace | admin/gate/licence.php | PHP | gpl-2.0 | 17,635 |
using System;
using MonoDevelop.Projects;
using System.Xml;
using MonoDevelop.Core.Assemblies;
namespace MonoDevelop.MonoGame
{
public static class MonoGameBuildAction
{
public static readonly string Shader;
public static bool IsMonoGameBuildAction(string action){
return action == Shader;
}
static MonoG... | stebyrne04/Monogame_templates | Properties/MonoGameProject.cs | C# | gpl-2.0 | 5,230 |
package com.example.review;
public class SwitchStringStatement {
public static void main(String args[]){
String color = "Blue";
String shirt = " Shirt";
switch (color){
case "Blue":
shirt = "Blue" + shirt;
break;
... | amzaso/Java_servef | 02-Review/examples/ReviewExamples/src/com/example/review/SwitchStringStatement.java | Java | gpl-2.0 | 536 |
<?php
// Form override fo theme settings
function saa_basic_form_system_theme_settings_alter(&$form, $form_state) {
$form['options_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Theme Specific Settings'),
'#collapsible' => FALSE,
'#collapsed' => FALSE
);
$form['options_settings']['saa... | saaphx-dev/saa | sites/all/themes/saa-basic/theme-settings.php | PHP | gpl-2.0 | 4,665 |
<?
/**************************************************************************************************
* Archivo: StoreConsultaDetalleUbicacion.php
* ------------------------------------------------------------------------------------------------
* Version: 1.0
* Descripcion:
* Modificaciones:
* -
*
* Nota: Reg... | marcelinoar/FrameworkWeb | src/base/servidor/Sysgran/Aplicacion/Modulos/Produccion/Store/StoreConsultaDetalleUbicacion.php | PHP | gpl-2.0 | 2,477 |
<?php
/**
* Module: Intro Text
*
* @author SpyroSol
* @category BuilderModules
* @package Spyropress
*/
class Spyropress_Module_Intro_Text extends SpyropressBuilderModule {
public function __construct() {
global $spyropress;
// Widget variable settings
... | jamesshannonwd/meesha | wp-content/themes/cutting-edge/framework/builder/modules/intro-text/intro-text.php | PHP | gpl-2.0 | 1,765 |
<?php
$vortex_like_dislike = get_option("vortex_like_dislike");
function vortex_system_add_dislike_class_buddypress($id){
$vortex_like_dislike = get_option("vortex_like_dislike");
if(is_user_logged_in()){
$current_user_id = get_current_user_id();
$user_key = 'vortex_system_user_'.$current_user_id;... | jackhutson03/Exashare | wp-content/plugins/rating-system/buddypress.php | PHP | gpl-2.0 | 7,404 |
/*
* java-gnome, a UI library for writing GTK and GNOME programs from Java!
*
* Copyright © 2006-2011 Operational Dynamics Consulting, Pty Ltd and Others
*
* The code in this file, and the program it is a part of, is made available
* to you by its authors as open source software: you can redistribute it
* and/or... | cyberpython/java-gnome | generated/bindings/org/gnome/atk/AtkLayer.java | Java | gpl-2.0 | 2,440 |
<?php
/**
* @version 1.0.0 jp logs $
* @package jplogs
* @copyright Copyright © 2010 - All rights reserved.
* @license GNU/GPL
* @author kim
* @author mail administracion@joomlanetprojects.com
* @website http://www.joomlanetprojects.com
*
*/
// No direct access to this file
defined('_JEXEC... | nishijieone/Webinar_joomla25 | administrator/components/com_jplogs/models/logs.php | PHP | gpl-2.0 | 1,544 |
class AddRegisteredByToCredittypes < ActiveRecord::Migration
def self.up
if column_exists? :credittypes, :moduser_id
rename_column :credittypes, :moduser_id, :registered_by_id
else
add_column :credittypes, :registered_by_id, :integer
end
add_column :credittypes, :modified_by_id, :integer... | ifunam/salva | db/migrate/20101117233353_add_registered_by_to_credittypes.rb | Ruby | gpl-2.0 | 465 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Scores</title>
<style type="text/css">
html { font-family: Arial; }
table { empty-cells: hide; border-collapse: collapse; backgr... | Ced-le-pingouin/esprit-mirror | src/sousactiv/hotpotatoes/scores.tpl.php | PHP | gpl-2.0 | 1,680 |
/*
* Copyright (C) 2016 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... | JungleTian/Telegram | TMessagesProj/src/main/java/org/telegram/messenger/exoplayer2/source/ConcatenatingMediaSource.java | Java | gpl-2.0 | 9,121 |
<?php
/**
*
* Adapted from Edward McIntyre's wp_bootstrap_navwalker class.
* Removed support for glyphicon and added support for Font Awesome
*
*/
/**
* Class Name: wp_bootstrap_navwalker
* GitHub URI: https://github.com/twittem/wp-bootstrap-navwalker
* Description: A custom WordPress nav walker class to implement ... | ttthanhDC/ProjectTeamWP | wp-content/themes/cronista/assets/functions/cronista_navwalker.php | PHP | gpl-2.0 | 7,699 |
<?php
namespace TYPO3\Fluid\Tests\Unit\ViewHelpers;
/* *
* This script belongs to the TYPO3 Flow package "TYPO3.Fluid". *
* *
* It is free software; you can redistr... | garvitdelhi/emulate | Packages/Framework/TYPO3.Fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php | PHP | gpl-2.0 | 29,478 |
<?php
namespace TYPO3\Flow\Persistence\Doctrine\Proxies\__CG__\project\emulate\Domain\Model;
/**
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
*/
class UserAccount extends \project\emulate\Domain\Model\UserAccount implements \Doctrine\ORM\Proxy\Proxy
{
private $_entityPersister;
pri... | garvitdelhi/emulate | Data/Temporary/Development/Doctrine/Proxies/__CG__projectemulateDomainModelUserAccount.php | PHP | gpl-2.0 | 4,993 |
from settings import *
import pymysql
def getconn():
conn = pymysql.connect( charset = 'utf8',
host = DATABASES['default']['HOST'],
port = DATABASES['default']['PORT'],
user = DATABASES['default']['USER'],
... | kassine/caparis2mysql | sqlTools.py | Python | gpl-2.0 | 602 |
/****************************************************************************
** $Id: qpngio.cpp 2 2005-11-16 15:49:26Z dmik $
**
** Implementation of PNG QImage IOHandler
**
** Created : 970521
**
** Copyright (C) 1992-2003 Trolltech AS. All rights reserved.
**
** This file is part of the kernel module of the Qt GUI ... | OS2World/LIB-QT3_Toolkit_Vbox | src/kernel/qpngio.cpp | C++ | gpl-2.0 | 30,630 |
#!/usr/bin/env python
#Mercurial extension to robustly integrate prompts with other processes
#Copyright (C) 2010-2011 Willem Verstraeten
#
#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 v... | willemv/mercurial_prompthooks | prompthooks.py | Python | gpl-2.0 | 6,665 |
/*
==============================================================================
This file is part of the JUCE library - "Jules' Utility Class Extensions"
Copyright 2004-11 by Raw Material Software Ltd.
------------------------------------------------------------------------------
JUCE can be r... | teragonaudio/Arooo | JuceLibraryCode/modules/juce_core/threads/juce_Thread.cpp | C++ | gpl-2.0 | 11,061 |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Core functions used all over the scripts.
* This script is distinct from libraries/common.inc.php because this
* script is called from /test.
*
* @package PhpMyAdmin
*/
use PMA\libraries\Message;
use PMA\libraries\URL;
use PMA\libraries\Sanitize;
if (! defin... | zixtor/phpmyadmin | libraries/core.lib.php | PHP | gpl-2.0 | 25,508 |
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Meta.Net.Objects;
namespace Meta.Net.Metadata.Factories
{
internal class CheckConstraintFactory
{
private int SchemaNameOrdinal { get; set; }
private int TableNameOrdinal { get; set; }
private i... | OhRyanOh/Meta.Net | Meta.Net/Metadata/Factories/CheckConstraintFactory.cs | C# | gpl-2.0 | 3,157 |
// ---------------------------------------------------------------------- //
// //
// Copyright (c) 2007-2014 //
// Digital Beacon, LLC //
// ... | digitalbeacon/sitebase | Model/ICodedEntity.cs | C# | gpl-2.0 | 790 |
var FabrikModalRepeat = new Class({
initialize: function (el, names, field) {
this.names = names;
this.field = field;
this.content = false;
this.setup = false;
this.elid = el;
this.win = {};
this.el = {};
this.field = {};
// If the parent field is inserted via js then we delay the loading untill ... | emundus/v5 | administrator/components/com_fabrik/models/fields/fabrikmodalrepeat.js | JavaScript | gpl-2.0 | 7,061 |
<?php
function _appthemes_localize_scripts() {
// jQuery Validate
wp_register_script( 'validate-lang', APP_FRAMEWORK_URI . '/js/validate/jquery.validate-lang.js', array( 'validate' ) );
wp_localize_script( 'validate-lang', 'validateL10n', array(
'required' => __( 'This field is required.', APP_TD ),
'remote'... | dakshatechnologies/renovize | wp-content/themes/renovizenew/framework/js/localization.php | PHP | gpl-2.0 | 2,069 |
package com.swayam.jmh.algos;
import java.util.concurrent.TimeUnit;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import com.swayam.practice.algos.strings.IntegerArrayMatcher;... | paawak/blog | code/algos-jmh/src/main/java/com/swayam/jmh/algos/IntegerArrayMatcherSimpleStringImplBenchmark.java | Java | gpl-2.0 | 1,581 |
/*
* Copyright (c) 2007 Henrique Pinto <henrique.pinto@kdemail.net>
* Copyright (c) 2008-2009 Harald Hvaal <haraldhv@stud.ntnu.no>
* Copyright (c) 2010 Raphael Kubo da Costa <rakuco@FreeBSD.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... | mvlabat/ark | plugins/libarchive/readonlylibarchiveplugin.cpp | C++ | gpl-2.0 | 1,989 |
<?php $atts = array_map('contact_do_shortcode', (array) $atts);
extract(shortcode_atts(array('filter' => ''), $atts));
$form_id = $GLOBALS['contact_form_id'];
$prefix = $GLOBALS['contact_form_prefix'];
$content = explode('[other]', do_shortcode($content));
if (!isset($_POST[$prefix.'submit'])) { $n = 2; }
elseif ... | patricerandria/ccmgr-wp | ccmgr/wp-content/plugins/contact-manager/includes/forms/validation-content.php | PHP | gpl-2.0 | 526 |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddShortnameProjects extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('projects', function(Blueprint $table)
{
//
$table->string('sho... | elconejito/Graphics-Library | app/database/migrations/2014_03_17_173453_add_shortname_projects.php | PHP | gpl-2.0 | 547 |
<?php //$Id$
/**
* CLAROLINE
* @version 1.9 $Revision$
*
* @copyright (c) 2001-2007 Universite catholique de Louvain (UCL)
*
* @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
*
* @package ADMIN
*
* @author Guillaume Lederer <lederer@claroline.net>
*/
$cidReset = TRUE; $gidReset = T... | yannhos115/claroline-exercice | claroline/admin/adminusers.php | PHP | gpl-2.0 | 18,212 |
//
// Copyright 2002 Sony Corporation
//
// Permission to use, copy, modify, and redistribute this software for
// non-commercial use is hereby granted.
//
// This software is provided "as is" without warranty of any kind,
// either expressed or implied, including but not limited to the
// implied warranties of fitnes... | EiichiroIto/scratch-aibo | MotionAgents/MoNetAgentManager.cc | C++ | gpl-2.0 | 5,877 |
<?php
/*
Plugin Name: Калькулятор цен
Plugin URI: none
Description: Плагин загрузки цен на услуги СТО для калькулятора цен на сайте Автодоктор
Version: 3.1.5
Author: WebUniverse
Author URI: http://webuniverse.com.ua/
*/
define( 'prices_calculator_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'prices_calc... | PapaPsih/Avtodoctor | wp-content/plugins/prices_calculator/prices_calculator.php | PHP | gpl-2.0 | 6,459 |
import testlib.flowexpression.qual.FlowExp;
public class Canonicalization {
class LockExample {
protected final Object myLock = new Object();
protected @FlowExp("myLock") Object locked;
protected @FlowExp("this.myLock") Object locked2;
public @FlowExp("myLock") Object getLocked() ... | CharlesZ-Chen/checker-framework | framework/tests/flowexpression/Canonicalization.java | Java | gpl-2.0 | 1,226 |
/******************************************************************************
*
* Metodología de la Programación
* Grado en Ingeniería Informática
*
* 2014 - Ernesto Serrano Collado
* ------------------------------
*
* Supongamos que para definir matrices bidimensionales dinamicas usamos una
* est... | erseco/ugr_metodologia_programacion | Practica_5/src/ejercicio8.cpp | C++ | gpl-2.0 | 4,558 |
# -*- coding: utf-8 -*-
#
from django.contrib.staticfiles.templatetags.staticfiles import static
from django.conf import settings
from django.utils.translation import gettext_lazy as _
def jumpserver_processor(request):
# Setting default pk
context = {
'DEFAULT_PK': '00000000-0000-0000-0000-0000000000... | eli261/jumpserver | apps/jumpserver/context_processor.py | Python | gpl-2.0 | 835 |