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 |
|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
from sqlalchemy import text
from listenbrainz import db
class User(object):
""" User class required by the api-compat """
def __init__(self, id, created, name, api_key):
self.id = id
self.created = created
self.name = name
self.api_key = api_key
... | metabrainz/listenbrainz-server | listenbrainz/db/lastfm_user.py | Python | gpl-2.0 | 2,716 |
require_relative './spec_helper'
require 'norikra/typedef'
require 'json'
require 'digest'
describe Norikra::Typedef do
context 'instanciated as lazy typedef' do
it 'has no fields' do
t = Norikra::Typedef.new
expect(t.fields.size).to eql(0)
expect(t.baseset).to be_nil
end
it 'has no ... | achied/norikra | spec/typedef_spec.rb | Ruby | gpl-2.0 | 9,075 |
/**
* @file
* Main JS file for react functionality.
*
*/
(function ($) {
Drupal.behaviors.react_blocks = {
attach: function (context) {
// A div with some text in it
var CommentBox = React.createClass({displayName: 'CommentBox',
loadCommentsFromServer: function() {
$.ajax({
... | changemachine/jellyfish | sites/all/modules/react_blocks/build/.module-cache/fcda948e5eafc0c8b5f89fe71d221f278abccbd5.js | JavaScript | gpl-2.0 | 2,307 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using Noised.Core.DB;
using Noised.Core.IOC;
using Noised.Logging;
namespace Noised.Core.Plugins
{
/// <summary>
/// Basic plugin loader
/// </summary>
public class PluginLoader : IPluginLoader... | bennygr/noised | src/NoisedCore/Plugins/PluginLoader.cs | C# | gpl-2.0 | 4,643 |
import javax.swing.JLabel;
| plumer/java-8e-assignments | learn/ch12/MyFrameWithComponents.java | Java | gpl-2.0 | 27 |
<?php
/*-------------------------------------------------------------------------------------------------------------| www.vdm.io |------/
____ ____ __ __ __
/\ _`\ /\ _`\ __... | SermonDistributor/Joomla-3-Component | site/views/preachers/tmpl/default_preachers-table.php | PHP | gpl-2.0 | 4,011 |
<?php
/* * * * * * * * * *
* Author: Calc, calc@list.ru, 8(916) 506-7002
* mxtel, 2010, Calc (r)
* * * * * * * * * */
defined("INDEX") or die('404 go to <a href="/">index.php</a>');
$do = get_var('do',0);
$id = get_var('id',0);
$pid = get_var('pid',0);
$type= get_var('type','port'); //get for ajah
$oid = get_var('... | Calc86/tel | mods/iopt.php | PHP | gpl-2.0 | 4,787 |
package com.dynamo2.tianma.model;
public class ObjectField extends MongodbModel {
private String name;
private String uniqueMark;
private int type;
private String linkedObject;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String g... | dynamo2/tianma | mycrm/src/main/java/com/dynamo2/tianma/model/ObjectField.java | Java | gpl-2.0 | 715 |
# datepicker-1.py
from wax import *
from wax.tools.datepicker import DatePicker
import datetime
import time
class MainFrame(VerticalFrame):
def Body(self):
p1 = HorizontalPanel(self)
dp1 = DatePicker(p1)
p1.AddComponent(dp1)
p1.AddSpace(10)
b1 = But... | MSMBA/msmba-workflow | msmba-workflow/srclib/wax/examples/datepicker-1.py | Python | gpl-2.0 | 1,480 |
##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# https://morningstarsecurity.com/research/whatweb
##
Plugin.define do
name "Hughes-Satellite-Router"
authors [
"Brendan Coles <bc... | urbanadventurer/WhatWeb | plugins/hughes-satellite-router.rb | Ruby | gpl-2.0 | 1,736 |
#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <algorithm>
#include <fstream>
using namespace std;
vector<string> dict;
map<string, int> map_dict;
void reformat(string &line)
{
int sz = line.size();
int j = 1;
for(int i = 1; i < sz; ++i)
{
if(isalpha(line[i]))
line[j+... | rahulroot/Uva | 895/program.cpp | C++ | gpl-2.0 | 1,399 |
export default (sequelize, dataTypes) => {
return sequelize.define(
'Community',
{
id: sequelize.idType,
subdomain: {
type: dataTypes.TEXT,
unique: true,
allowNull: false,
validate: {
isLowercase: true,
len: [1, 280],
is: /^[a-zA-Z0-9-]+$/, // Must contain at least one letter, ... | pubpub/pubpub | server/community/model.ts | TypeScript | gpl-2.0 | 3,307 |
# -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
#
# Copyright (C) 2006 Lukáš Lalinský
#
# 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 Licen... | Sophist-UK/Sophist_picard | picard/browser/__init__.py | Python | gpl-2.0 | 823 |
/*
* EntityManager.cpp
*
* Created on: 29 Nov 2015
* Author: osboxes
*/
#include "EntityManager.h"
#include "../syscalls/SysCalls.h"
using namespace std;
EntityManager::EntityManager(std::string fileName) :m_index("entity.idx"){
m_fname = fileName;
m_fdReader = syscalls::open ( m_fname.c_str(),O_CREAT|O... | gguzelj/7559-TP2 | DbLib/persistence/EntityManager.cpp | C++ | gpl-2.0 | 1,262 |
public class Star {
int x;
int y;
int owner;
int colony;
public Star(int x,int y,int owner,int colony){
this.x = x;
this.y = y;
this.owner = owner;
this.colony = colony;
}
}
| TravisRidge/Gigaquadrant | Gigaquadrant/src/Star.java | Java | gpl-2.0 | 191 |
/*
QUYNH NGA NGUYEN - ID: 700110099
Project FSE Chatroom - 18-652
Server-side file handles requests from clien-side.
*/
var app = require('express')();
var server = require('http').createServer(app);
var io = require('socket.io')(server);
var fs = require('fs');
var dbfile = "database.db";
var existed = fs.existsSync... | quynhnga-nguyen/FSEChatRoom | server.js | JavaScript | gpl-2.0 | 2,600 |
<?php
/**
* Tools for creating thumbnails.
*
* @package Image
* @author C. Erdmann
* @link http://www.cerdmann.de/thumb
* @author Robert Wetzlmayr
*
* Refactored from function.thumb.php by C. Erdmann, which contained
* the following credit and licensing terms:
*
* Smarty plugin "Thumb"
* Purpose: crea... | textpattern/textpattern | textpattern/lib/class.thumb.php | PHP | gpl-2.0 | 22,703 |
#!/usr/bin/php -q
<?php
/**
* pbxassist.php
* This file is part of the YATE Project http://YATE.null.ro
*
* Yet Another Telephony Engine - a fully featured software PBX and IVR
* Copyright (C) 2007-2013 Null Team
*
* This software is distributed under multiple licenses;
* see the COPYING file in the main direct... | shimaore/yate | share/scripts/pbxassist.php | PHP | gpl-2.0 | 3,723 |
/* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in t... | facebook/mysql-5.6 | sql/signal_handler.cc | C++ | gpl-2.0 | 9,684 |
/**
* @file
* @brief Monsters doing stuff (monsters acting).
**/
#include "AppHdr.h"
#include "mon-act.h"
#include "areas.h"
#include "arena.h"
#include "artefact.h"
#include "attitude-change.h"
#include "beam.h"
#include "cloud.h"
#include "coordit.h"
#include "dbg-scan.h"
#include "delay.h"
#include "dungeon.h"
#... | xFleury/crawl-0.13.0-fairplay | source/mon-act.cc | C++ | gpl-2.0 | 126,596 |
/*
* Copyright (c) 2012-2013 Open Source Community - <http://www.peerfact.org>
* Copyright (c) 2011-2012 University of Paderborn - UPB
* Copyright (c) 2005-2011 KOM - Multimedia Communications Lab
*
* This file is part of PeerfactSim.KOM.
*
* PeerfactSim.KOM is free software: you can redistribute it and/or modi... | flyroom/PeerfactSimKOM_Clone | src/org/peerfact/impl/overlay/unstructured/heterogeneous/api/IResource.java | Java | gpl-2.0 | 1,474 |
<?php
/**
* @package Extly.Library
* @subpackage lib_extly - Extly Framework
*
* @author Prieco S.A. <support@extly.com>
* @copyright Copyright (C) 2007 - 2014 Prieco, S.A. All rights reserved.
* @license http://http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
* @link http://www.extly.com... | shukdelmadrij/shukdelmadrij | libraries/extly/extlyframework.php | PHP | gpl-2.0 | 2,432 |
//#include "..\kgb_arch_mfc\kgb_arch_mfcdlg.cpp"
// kgb_arch_decompressDlg.cpp : implementation file
//
#include "stdafx.h"
#include "kgb_arch_decompress.h"
#include "kgb_arch_decompressDlg.h"
#include "dDecompress.h"
//#include "../compress/compress.cpp"
#include <vector>
#include <string>
#include "io.h"
#include "d... | RandallFlagg/kgbarchiver | KGB Archiver 1/sfx/kgb_arch_sfx_zip/kgb_arch_decompressDlg.cpp | C++ | gpl-2.0 | 15,501 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class User(object):
def __init__(self):
self.first_name = None
self.last_name = None
self.username = None
self.password = None
def set_full_name(self, name):
# Jaa välilyönnin mukaan
pass
| mtpajula/ijonmap | core/users/user.py | Python | gpl-2.0 | 308 |
/* putpwent.c
*/
#include "passwd.h"
#ifdef L_putpwent
int putpwent(pwd, f)
struct passwd *pwd;
FILE * f;
{
if (pwd == NULL || f == NULL) {
errno = EINVAL;
return -1;
}
if (fprintf(f, "%s:%s:%u:%u:%s:%s:%s\n",
pwd->pw_name, pwd->pw_passwd,
pwd->pw_uid, pwd->pw_gid, pwd->pw_gecos,
... | marioaugustorama/uzix-libc | LIBC/PUTPWENT.C | C++ | gpl-2.0 | 402 |
# UPDATE THIS SECRET INFORMATION ! #
# UNCOMMENT THIS FILE IN .gitignore BEFORE YOU COMMIT! #
# SuperUser Default Password
SUPER_USER_PASSWORD = 'CHANGEME'
# Log into your Loggly account, visit: https://<Username>.loggly.com/tokens and copy the token here
LOGGLY_TOKEN = 'CHANGEME'
# Generate a very secure Django Sec... | Chaffleson/blupy | settings_local.py | Python | gpl-2.0 | 1,195 |
/*
* This file is part of the AshamaneCore Project. See AUTHORS file for Copyright information
* Copyright (C) 2018+ MagicStormProject <https://github.com/MagicStormTeam>
*
* 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 ... | AshamaneProject/AshamaneCore | src/server/scripts/BrokenIsles/Anthorus/boss_aggramar.cpp | C++ | gpl-2.0 | 14,489 |
/*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | neomantic/Android-SISC-Scheme-Eval | src/neomantic/com/sun/beans/WeakCache.java | Java | gpl-2.0 | 3,231 |
/*
* Copyright (C) 2005-2017 Team Kodi
* http://kodi.tv
*
* 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, or (at your option)
* any later version.
*
* T... | ObvB/xbmc | xbmc/addons/interfaces/GUI/DialogNumeric.cpp | C++ | gpl-2.0 | 8,182 |
/*
* DAWN OF LIGHT - The first free open source DAoC server emulator
*
* 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... | dol-leodagan/niflib.net | Niflib/SkinData.cs | C# | gpl-2.0 | 2,847 |
<?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 |
# -*- 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 |
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
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 |
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 |