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 |
|---|---|---|---|---|---|
#include "vector_plot_2d.h"
#include "../graph/vector_graph_2d.h"
namespace Gnuplot {
Vector_plot_2d::Vector_plot_2d()
// Default constructor
: Plot_2d {Representation::TwoDVector}
{
// Add default graph:
this->graphs.push_back(std::make_shared<Vector_graph_2d>());
}
Vector_plot_2d::Vector_plot_2d(co... | Kadabash/Gnuplot_cpp | src/plot/vector_plot_2d.cpp | C++ | gpl-3.0 | 977 |
package com.authpro.imageauthentication;
import android.app.Fragment;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Base64;
import android.util.Pair;
import android.v... | phamhathanh/ImageAuthentication | client/app/src/main/java/com/authpro/imageauthentication/InputFragment.java | Java | gpl-3.0 | 8,323 |
#!python
"""Script for plotting distributions of epitopes per site for two sets of sites.
Uses matplotlib. Designed to analyze output of epitopefinder_getepitopes.py.
Written by Jesse Bloom."""
import os
import sys
import random
import epitopefinder.io
import epitopefinder.plot
def main():
"""Main body of sc... | jbloom/epitopefinder | scripts/epitopefinder_plotdistributioncomparison.py | Python | gpl-3.0 | 3,447 |
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <errno.h>
#include <cstdlib>
#include <queue>
#include <iostream>
#include <sstream>
#include "BullBenchThread.h"
#include "BullBench.h"
#define REQUEST_SIZE 2048
void BullBenchThread::run() {
int succ = 0;
for (;;) {
pthread_mu... | zuocheng-liu/BullBench | src/BullBenchThread.cpp | C++ | gpl-3.0 | 3,451 |
/**
* Problem 10.1 CTCI Sorted Merge
*
* You are given two sorted arrays, a and b, where a has a large enough buffer at the end to hold
* b. Write a method to merge b into a in sorted order.
*
* Examples:
*
* a: 2, 7, 22, 44, 56, 88, 456, 5589
* b: 1, 4, 9, 23, 99, 1200
*
* Result:
*
* result: 1, ... | pajato/java-examples | apps/misc/smerge/src/main/java/Main.java | Java | gpl-3.0 | 2,552 |
/**
Eubrazil Scientific Gateway
Copyright (C) 2015 CMCC
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distri... | Ophidia/eubrazilcc-uc3-gateway | src/it/cmcc/ophidiaweb/utils/deserialization/Nodelink.java | Java | gpl-3.0 | 2,185 |
/*
* jQuery Fast Confirm
* version: 2.1.1 (2011-03-23)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://blog.pierrejeanparra.com/jquery-plugins/fast-confirm/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/... | apiary/apiary-project | src/workflow/assets/js/jquery.fastconfirm.js | JavaScript | gpl-3.0 | 7,913 |
mcinif='mcini_gen2'
runname='gen_test2111b'
mcpick='gen_test2b.pickle'
pathdir='/beegfs/work/ka_oj4748/echoRD'
wdir='/beegfs/work/ka_oj4748/gen_tests'
update_prec=0.04
update_mf=False
update_part=500
import sys
sys.path.append(pathdir)
import run_echoRD as rE
rE.echoRD_job(mcinif=mcinif,mcpick=mcpick,runname=runname,... | cojacoo/testcases_echoRD | gen_test2111b.py | Python | gpl-3.0 | 430 |
package net.fisty.packgame.client.graphics.particle;
import java.awt.Graphics;
import java.awt.image.ImageObserver;
public abstract class Particle {
public int index = 0;
public abstract void render(Graphics g, ImageObserver obs);
public abstract void update();
public abstract void server();
public abstract ... | fisty256/PackGame | src/net/fisty/packgame/client/graphics/particle/Particle.java | Java | gpl-3.0 | 402 |
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 18 14:11:31 2015
@author: Martin Friedl
"""
from datetime import date
import numpy as np
from Patterns.GrowthTheoryCell import make_theory_cell
from Patterns.GrowthTheoryCell_100_3BranchDevices import make_theory_cell_3br
from Patterns.GrowthTheoryCell_100_4BranchDevic... | Martin09/E-BeamPatterns | 100 Wafers - 1cm Squares/Multi-Use Pattern/v1.2/MembraneDesign_100Wafer_v1.1.py | Python | gpl-3.0 | 17,018 |
<?php
/**
* Posts shortcode item template
*
* Simple post item template
* Consist of:
* image,
* title
*
* @package WebMan Amplifier
* @subpackage Shortcodes
*
* @since 1.0
* @version 1.9.1
*
* @uses array $helper Contains shortcode $atts array plus additional helper variables.
*/
... | webmandesign/mustang-lite | webman-amplifier/content-shortcode-posts-post-simple.php | PHP | gpl-3.0 | 1,285 |
/*
* queue.hpp
*
* Created on: 14 ott 2015
* Author: Marco
*/
#ifndef SOURCE_UTILITIES_INCLUDE_SHARED_QUEUE_HPP_
#define SOURCE_UTILITIES_INCLUDE_SHARED_QUEUE_HPP_
#include <deque>
#include <condition_variable>
#include <mutex>
#include <utilities/include/atend.hpp>
#include <utilities/include/singleton.h... | Aleb92/PMB-PimpMyBackup | source/utilities/include/shared_queue.hpp | C++ | gpl-3.0 | 1,643 |
/* This file is part of the db4o object database http://www.db4o.com
Copyright (C) 2004 - 2011 Versant Corporation http://www.versant.com
db4o is free software; you can redistribute it and/or modify it under
the terms of version 3 of the GNU General Public License as published
by the Free Software Foundation.
db4o ... | potty-dzmeia/db4o | src/db4oj.tests/src/com/db4o/db4ounit/common/soda/ordered/OrderedOrConstraintTestCase.java | Java | gpl-3.0 | 1,737 |
/*
Copyright (C) 2011 Lorenzo Bernardi (fastlorenzo@gmail.com)
2010 Ben Van Daele (vandaeleben@gmail.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at... | fastlorenzo/mvfa | src/be/bernardi/mvforandroid/data/DatabaseHelper.java | Java | gpl-3.0 | 12,330 |
<?php
namespace krFrame\Src\initTemplate;
use \krFrame\Src\Error\Error;
class SetCustomTaxonomies
{
private $taxonomies;
private $taxonomy;
private $name;
public function __construct($array)
{
if (!is_array($array)) {
return false;
}
$this->taxonomies = $array;... | dawidryba/krframe_theme | krFrame/src/initTemplate/SetCustomTax.php | PHP | gpl-3.0 | 1,683 |
from rest_framework import serializers
from .models import CustomerWallet
class CustomerWalletSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = CustomerWallet
fields = ("wallet_id", "msisdn", "balance", "type", "status")
| kyrelos/vitelco-mobile-money-wallet | app_dir/customer_wallet_management/serializers.py | Python | gpl-3.0 | 268 |
package omr.gui;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
/**
* Menu bar of the main window.... | CaronLe/chanhthings2 | src/omr/gui/Menu.java | Java | gpl-3.0 | 6,822 |
#!/usr/bin/env python2
import urllib2
import urllib
from BeautifulSoup import BeautifulSoup
import smtplib
import ConfigParser
# Retreive user information
config = ConfigParser.ConfigParser()
config.read('config.cfg')
user = config.get('data','user')
password = config.get('data','password')
fromaddr = config.get('dat... | jelly/Utils | unassignedbugs.py | Python | gpl-3.0 | 2,592 |
/**
* Balero CMS Project: Proyecto 100% Mexicano de código libre.
* Página Oficial: http://www.balerocms.com
*
* @author Anibal Gomez <anibalgomez@icloud.com>
* @copyright Copyright (C) 2015 Neblina Software. Derechos reservados.
* @license Licencia BSD; vea LICENSE.txt
*/
package com.neblina.balero.... | neblina-software/balerocms-v2 | src/main/java/com/neblina/balero/util/AntiXSS.java | Java | gpl-3.0 | 854 |
OJ.extendClass(
'NwEvent', [OjEvent],
{
'_get_props_' : {
'data' : null
},
'_constructor' : function(type/*, bubbles = false, cancelable = false, data = null*/){
var ln = arguments.length;
this._super(OjEvent, '_constructor', ln > 3 ? [].slice.call(arguments, 0, 3) : arguments);
if(ln > 3){
... | NuAge-Solutions/NW | src/js/events/NwEvent.js | JavaScript | gpl-3.0 | 361 |
<?php
/**
* Catch-a spammer with a CAPTCHA.
*
* @package catcha
* @version 1.0.1
* @author Jublo IT Solutions <support@jublo.net>
* @copyright 2013-2014 Jublo IT Solutions <support@jublo.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Publi... | jublonet/catcha | catcha.php | PHP | gpl-3.0 | 11,644 |
package com.link184.respiration;
import com.squareup.javapoet.AnnotationSpec;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.ParameterizedTypeName;
import com.squareup.javapoet.TypeName;
import com.squareup.javapoet.T... | Link184/Respiration | respiration-compiler/src/main/java/com/link184/respiration/LocalRepositoryClassGenerator.java | Java | gpl-3.0 | 3,600 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="sl_SI">
<context>
<name>AboutPage</name>
<message>
<source>Sources</source>
<translation>Viri</translation>
</message>
<message>
<source>If you want to create a theme compatible with UI Themer, pleas... | fravaccaro/sailfishos-uithemer | translations/sailfishos-uithemer-sl_SI.ts | TypeScript | gpl-3.0 | 40,622 |
#!/usr/bin/python
import sys
sys.path.append('/var/www/html/valumodel.com/scripts/dcf')
from calc_dcf import calc_dcf
def create_dcf(req, tax_rate, growth_rate_1_year_out, sga_of_sales, da_of_sales, capex_of_sales, nwc_of_sales, levered_beta, current_yield, exit_multiple, ticker):
assumptions = {}
try:
assumption... | willmarkley/valumodel.com | scripts/dcf.py | Python | gpl-3.0 | 1,260 |
using System;
using System.Collections;
using Server.Network;
using Server.Items;
using Server.Targeting;
using Server.Mobiles;
using Server.Engines.BuffIcons;
namespace Server.Spells.Necromancy
{
public class PainSpikeSpell : NecromancerSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Pa... | greeduomacro/xrunuo | Scripts/Distro/Spells/Necromancy/PainSpike.cs | C# | gpl-3.0 | 4,046 |
package fr.guiguilechat.jcelechat.model.sde.attributes;
import fr.guiguilechat.jcelechat.model.sde.IntAttribute;
/**
*
*/
public class MiningDurationRoleBonus
extends IntAttribute
{
public static final MiningDurationRoleBonus INSTANCE = new MiningDurationRoleBonus();
@Override
public int getId() ... | guiguilechat/EveOnline | model/sde/SDE-Types/src/generated/java/fr/guiguilechat/jcelechat/model/sde/attributes/MiningDurationRoleBonus.java | Java | gpl-3.0 | 830 |
'use strict';
angular.module('MainConsole')
.factory('WebSocketService',
['$rootScope', '$q', '$filter', '$location',
function ($rootScope, $q, $filter, $location) {
var service = {};
service.wsConnect = function() {
// Websocket is at wss://hostname:port/ws
... | bammv/sguil | server/html/sguilclient/websocketService.js | JavaScript | gpl-3.0 | 1,652 |
/*
OptionsMenuData.cpp
Author : Cyrielle
File under GNU GPL v3.0 license
*/
#include "OptionsMenuData.hpp"
#include "ResourceLoader.hpp"
namespace OpMon {
namespace Model {
OptionsMenuData::OptionsMenuData(UiData *data)
: uidata(data) {
ResourceLoader::load(background, "backgrou... | jlppc/OpMon | src/opmon/model/storage/OptionsMenuData.cpp | C++ | gpl-3.0 | 894 |
import os
import re
import gettext
import locale
import threading # libsearchfilter_toggle starts thread libsearchfilter_loop
import operator
import gtk
import gobject
import pango
import ui
import misc
import formatting
import mpdhelper as mpdh
from consts import consts
import breadcrumbs
def library_set_data(albu... | onto/sonata | sonata/library.py | Python | gpl-3.0 | 66,200 |
<?php
/**
* Redimenssionne une photo en 640x340 px pour la page d'accueil de la version mobile
*
* PHP Version 5.3.3
*
* @category General
* @package ArchiWiki
* @author Pierre Rudloff <contact@rudloff.pro>
* @license GNU GPL v3 https://www.gnu.org/licenses/gpl.html
* @link https://archi-strasbourg.o... | rotagraziosi/archi-wiki-inpeople | getPhotoHome.php | PHP | gpl-3.0 | 1,115 |
from django.shortcuts import render
def about(request):
return render(request, "about.html", {})
def location(request):
return render(request, "location.html", {})
def failure(request):
return render(request, "failure.html", {})
| apul1421/table-client-side-app-retake | src/ecommerce2/views.py | Python | gpl-3.0 | 237 |
package com.zanghongtu.blog.util;
/**
* 摘要
*/
public class SummaryParser {
private static final int SUMMARY_LENGTH = 256;
/**
* 去除info里content 所有html字符
* 截取字符串长度256
* @param sourceStr 源字符串
* @return 截取后的字符串
*/
public static String getSummary(String sourceStr) {
if(StringUt... | zanghongtu2006/blog | src/main/java/com/zanghongtu/blog/util/SummaryParser.java | Java | gpl-3.0 | 2,801 |
// Example 4-8: Using continue in a loop.
#include <cmath>
#include <iostream>
#include <istream>
#include <limits>
#include <ostream>
using namespace std;
int main(int argc, char *argv[]){
while(true) {
cout << "Enter a number: ";
double x;
cin >> x;
if (cin.eof() || cin.bad())
// Input erro... | paulmcquad/CPP | C++98/Lesson 4.2 - Statements/ex0408.cpp | C++ | gpl-3.0 | 572 |
// Make screen : lists different control activities and allows to select which to use
var MakeScreen = Screen.extend({
enter: function(){
// Display this screen
this.display('make_screen');
// Setup button clicks
this.html.find(".btn-play").off().click(function(){ fabrica.na... | arthurwolf/fabrica | src/interfaces/fabrica/make/make.js | JavaScript | gpl-3.0 | 503 |
package org.baeldung.persistence.model;
import io.katharsis.resource.annotations.JsonApiId;
import io.katharsis.resource.annotations.JsonApiRelation;
import io.katharsis.resource.annotations.JsonApiResource;
import io.katharsis.resource.annotations.SerializeType;
import java.util.Set;
import javax.persistence.Entity... | Niky4000/UsefulUtils | projects/tutorials-master/tutorials-master/spring-katharsis/src/main/java/org/baeldung/persistence/model/User.java | Java | gpl-3.0 | 2,768 |
import { Component } from '@angular/core';
@Component({
selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html'
})
export class PageNotFoundComponent {
}
| PowerSpikeGG/PowerSpikeGG | powerspikegg/frontend/src/app/page-not-found/page-not-found.component.ts | TypeScript | gpl-3.0 | 182 |
/*
* Copyright (C) 2005-2011 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008-2011 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006-2011 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010-2011 VoragineCore <http://www.projectvoragine.com/>
*
* This program is free software; you... | VirusOnline/VoragineCore | src/server/scripts/Instances/Icecrown_Citadel/Pit_of_Saron/instance_pit_of_saron.cpp | C++ | gpl-3.0 | 7,735 |
import json
import urllib
import urllib2
def shorten(url):
gurl = 'http://goo.gl/api/url?url=%s' % urllib.quote(url)
req = urllib2.Request(gurl, data='')
req.add_header('User-Agent','toolbar')
results = json.load(urllib2.urlopen(req))
return results['short_url'] | arjunjain/nixurl | NixURL/exlib/google.py | Python | gpl-3.0 | 284 |
const chart = {
format: '{point.name}: {point.y:,.2f}',
colorNames: [
'success', 'info', 'warning', 'danger',
'primary', 'highlight', 'default'
],
colors: [],
patterns: [],
style: {},
plotOptions: function () {
return {
series: {
animation: false,
dataLabels: {
enabled: true,
forma... | darakeon/dfm | site/MVC/Assets/scripts/chart.js | JavaScript | gpl-3.0 | 2,100 |
<?php
$dbname="jxj";
$con = mysql_connect("localhost","root","admin123");
mysql_query("set names 'UTF8'");
mysql_query("set character 'UTF8'");
if(!$con) {
die('Could not connect: '.mysql_error());
}
$db_selected = mysql_select_db($dbname, $con);
if(!$db_selected) {
$sql="CREATE DATABASE $dbname";
if(mysql_quer... | kjshao/Scholarship | jxj/conn.php | PHP | gpl-3.0 | 3,523 |
# -*- coding: utf-8 -*-
################################################
## Aplikacja wspomagajaca tworzenie bazy publikacji naukowych wpsółpracujaca z Google Scholar
## Copyright (C) 2013 Damian Baran
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the... | damianbaran/inz | popup/publikacja.py | Python | gpl-3.0 | 16,876 |
/*
* WANDORA
* Knowledge Extraction, Management, and Publishing Application
* http://wandora.org
*
* Copyright (C) 2004-2016 Wandora Team
*
* 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 Foundatio... | wandora-team/wandora | src/org/wandora/application/tools/extractors/europeana/EuropeanaExtractor.java | Java | gpl-3.0 | 2,752 |
/**
*
* Copyright (c) 2014, Openflexo
*
* This file is part of Gina, a component of the software infrastructure
* developed at Openflexo.
*
*
* Openflexo is dual-licensed under the European Union Public License (EUPL, either
* version 1.1 of the License, or any later version ), which is available at
* ... | openflexo-team/gina | gina-api/src/main/java/org/openflexo/gina/model/bindings/FIBVariablePathElement.java | Java | gpl-3.0 | 6,703 |
/*
* This file is part of QuarterBukkit-Plugin.
* Copyright (c) 2012 QuarterCode <http://www.quartercode.com/>
*
* QuarterBukkit-Plugin is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of... | QuarterCode/QuarterBukkit | plugin/src/main/java/com/quartercode/quarterbukkit/util/QuarterBukkitExceptionListener.java | Java | gpl-3.0 | 2,265 |
#include "h17disk.h"
#include <stdio.h>
static int usage(char *progName) {
fprintf(stderr,"Usage: %s old_h17disk_file new_h17disk_file\n",progName);
return 1;
}
int main(int argc, char *argv[]) {
H17Disk *image = new(H17Disk);
if (argc < 2 || argc > 3)
{
usage(argv[0]);
return 1;
... | mgarlanger/heath-imager | src/cmd/h17d_raw.cpp | C++ | gpl-3.0 | 850 |
__author__ = 'xiaoxiaol'
import numpy as np
import pylab as pl
import scipy
import pandas as pd
import seaborn as sns
import os
import sys, getopt
from scipy.cluster import hierarchy
import platform
from scipy.stats.stats import pearsonr
import scipy.stats as stats
from PIL import Image
import glob
from sklearn.metri... | XiaoxiaoLiu/morphology_analysis | IVSCC/morph_clustering_on_bbp_features_old_example.py | Python | gpl-3.0 | 37,767 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/***************************************************************************
* drumkitparser.cc
*
* Tue Jul 22 16:24:59 CEST 2008
* Copyright 2008 Bent Bisballe Nyeng
* deva@aasimon.org
**********************************... | joulez/drumgizmo | src/drumkitparser.cc | C++ | gpl-3.0 | 8,523 |
/*******************************************************************************
* Signavio Core Components
* Copyright (C) 2012 Signavio GmbH
*
* 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 Found... | KarnYong/BPaaS-modeling | platform extensions/bpmn20xmlbasic/src/de/hpi/bpmn2_0/factory/node/DataStoreFactory.java | Java | gpl-3.0 | 3,603 |
from xboxdrv_parser import Controller
from time import sleep
import argparse
import os
import sys
sys.path.append(os.path.abspath("../../.."))
from util.communication.grapevine import Communicator
from robosub_settings import settings
def main (args):
com = Communicator (args.module_name)
controller = Controll... | pi19404/robosub-1 | src/movement/fuzzification/test/xbox_controller.py | Python | gpl-3.0 | 2,612 |
package com.bonepeople.android.sdcardcleaner.basic;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.os.Message;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatAc... | bonepeople/SDCardCleaner | app/src/main/java/com/bonepeople/android/sdcardcleaner/basic/BaseAppCompatActivity.java | Java | gpl-3.0 | 3,515 |
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
//
// Simple test for the AP_AHRS interface
//
#include <AP_AHRS/AP_AHRS.h>
#include <AP_HAL/AP_HAL.h>
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
// INS and Baro declaration
AP_InertialSensor ins;
Compass compass;
AP_GPS gps;
AP_Baro b... | kwikius/ardupilot | libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp | C++ | gpl-3.0 | 2,026 |
/*
* Copyright (C) 2010---2013 星星(wuweixing)<349446658@qq.com>
*
* This file is part of Wabacus
*
* Wabacus 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... | foxerfly/Wabacus4.1src | src/com/wabacus/system/datatype/IntType.java | Java | gpl-3.0 | 3,450 |
package com.piron1991.builder_tools.reference;
public class Reference {
public static final String MOD_ID = "builder_tools";
public static final String VERSION = "0.1";
public static final String MOD_NAME = "Builder tools";
public static final String CPROXY = "com.piron1991.builder_tools.proxy.clientP... | Piron1991/Builder_tools | src/main/java/com/piron1991/builder_tools/reference/Reference.java | Java | gpl-3.0 | 575 |
<?php
/**
* Classes for dealing with devices
*
* PHP Version 5
*
* <pre>
* HUGnetLib is a library of HUGnet code
* Copyright (C) 2014 Hunt Utilities Group, LLC
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the... | hugllc/HUGnetLib | src/php/devices/inputTable/drivers/virtual/CloneVirtual.php | PHP | gpl-3.0 | 7,072 |
<?php
/**
* @package Arastta eCommerce
* @copyright 2015-2018 Arastta Association. All rights reserved.
* @copyright See CREDITS.txt for credits and other copyright notices.
* @license GNU GPL version 3; see LICENSE.txt
* @link https://arastta.org
*/
class ModelSettingApi extends Model {
p... | arastta/arastta | catalog/model/setting/api.php | PHP | gpl-3.0 | 585 |
<?php
require_once(__DIR__.'/../../../lib/common.php');
// Here are the individual SQL queries for each phase for clarity and
// below it is a mash-up of them for effectiveness
//
// SELECT mac FROM visit WHERE ip=:ip ORDER BY leave DESC LIMIT 1;
// SELECT id,changed FROM user_mac WHERE mac=:mac AND changed<:leave ORD... | HacklabJKL/visitors | dist/api/v1/nick.php | PHP | gpl-3.0 | 3,047 |
<?php
$username = "";
$errors = array();
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (!isset($_POST["username"]) || !trim($_POST["username"])) {
$errors["password"] = "Nom d'utilisateur ou mot de passe incorrecte.";
} else {
$username = $_POST["username"];
}
if (empty($errors)) {
... | C-Duv/LBCAlerte | app/default/scripts/login.php | PHP | gpl-3.0 | 846 |
#include "underlying_type.hpp"
TC_UNDERLYING_TYPE aUNDERLYING_TYPE;
void
TC_UNDERLYING_TYPE::finish_type (tree t)
{
cerr << "finish_type: UNDERLYING_TYPE" << t << endl;
};
void
TC_UNDERLYING_TYPE::finish_decl (tree t)
{
cerr << "finish_decl: UNDERLYING_TYPE" << t << endl;
};
void
TC_UNDERLYING_TYPE::finish_unit... | h4ck3rm1k3/gcc-plugin-cpp-template | tree-nodes/underlying_type.cpp | C++ | gpl-3.0 | 390 |
if (Meteor.isClient) {
Session.setDefault('degF',-40);
Session.setDefault('degC',-40);
Template.temperatureBoxes.helpers({
degF: function(){
return Session.get('degF');
},
degC: function(){
return Session.get('degC');
}
});
Template.temperatureBoxes.events({
'keyup #c': func... | a2life/meteor-temp-converter | tempconv.js | JavaScript | gpl-3.0 | 786 |
/*
* Twidere - Twitter client for Android
*
* Copyright (C) 2012 Mariotaku Lee <mariotaku.lee@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Lice... | pahans/Kichibichiya | src/com/pahans/kichibichiya/loader/UserSearchLoader.java | Java | gpl-3.0 | 1,944 |
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2021 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* EspoCRM is free software: you can redist... | ayman-alkom/espocrm | application/Espo/Core/Hooks/Base.php | PHP | gpl-3.0 | 3,319 |
# -*- coding: utf-8 -*-
# Copyright © 2013, 2014, 2017, 2020 Tom Most <twm@freecog.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 3 of the License, or
# (at your option) a... | twm/yarrharr | yarrharr/scripts/yarrharr.py | Python | gpl-3.0 | 1,676 |
package com.teckcoder.crashengine.file;
import com.teckcoder.crashengine.utils.logger.Logger;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
public class FileStream {
File file = null;
FileLocationType locationType = null;
private FileStrea... | Techwave-dev/OpenGlModernGameEngine | src/com/teckcoder/crashengine/file/FileStream.java | Java | gpl-3.0 | 1,379 |
/**
* This file is part of tera-api.
*
* tera-api is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* tera-api is dis... | xGamers665/tera-emu | com.tera.common.database/src/main/java/com/tera/common/database/dao/ServerPropertiesDAO.java | Java | gpl-3.0 | 1,348 |
//-----------------------------------------------------------------------------
// Class implementation: Input_Value::Line
//-----------------------------------------------------------------------------
#include "../pragmas.h"
#include "Input_Value_Line.h"
#include "Input_Text_File.h"
#include "Assert_That.... | geoSpacer/SUE | libs/common/Input_Value_Line.cpp | C++ | gpl-3.0 | 1,416 |
from django.core.management.base import BaseCommand, CommandError
from django.core import management
from django.db.models import Count
from scoping.models import *
class Command(BaseCommand):
help = 'check a query file - how many records'
def add_arguments(self, parser):
parser.add_argument('qid',ty... | mcallaghan/tmv | BasicBrowser/scoping/management/commands/check_query_file.py | Python | gpl-3.0 | 1,107 |
package com.watabou.pixeldungeon.windows;
import com.nyrds.pixeldungeon.game.GameLoop;
import com.nyrds.pixeldungeon.game.GamePreferences;
import com.nyrds.pixeldungeon.ml.R;
import com.nyrds.pixeldungeon.utils.ModDesc;
import com.nyrds.pixeldungeon.windows.DownloadProgressWindow;
import com.nyrds.pixeldungeon.windows... | NYRDS/pixel-dungeon-remix | RemixedDungeon/src/main/java/com/watabou/pixeldungeon/windows/WndModSelect.java | Java | gpl-3.0 | 5,619 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
*
* The contents of this file are subject to the terms of the GNU General Public License Version 3
* only ("GPL"). You may not use this file except in compliance with th... | mbshopM/openconcerto | OpenConcerto/src/org/openconcerto/sql/element/SQLElementDirectory.java | Java | gpl-3.0 | 11,868 |
/* Exploit smf when computing the intersection of NNC dual hypercubes.
Copyright (C) 2001-2009 Roberto Bagnara <bagnara@cs.unipr.it>
This file is part of the Parma Polyhedra Library (PPL).
The PPL is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as publis... | OpenInkpot-archive/iplinux-ppl | tests/Polyhedron/dualhypercubes.cc | C++ | gpl-3.0 | 12,977 |
<div id="intro">
<h1>ABOUT US</h1>
</div>
<div class="content_page">
<div id="left">
<p>Sed eu molestie purus. Maecenas convallis faucibus viverra. Nulla malesuada vestibulum leo, non... | labrosb/Hospital-Management-System | content/patient/about.php | PHP | gpl-3.0 | 2,450 |
function handleDialogRequest(dialogName, xhr, status, args) {
if (!args.success) {
PF(dialogName).jq.effect("shake", {times : 5}, 100);
} else {
PF(dialogName).hide();
}
}
| matjaz99/DTools | WebContent/resources/default/1_0/js/dtools.js | JavaScript | gpl-3.0 | 180 |
package cn.bjsxt.oop.inherit;
/**
* 测试组合
* @author dell
*
*/
public class Animal2 {
String eye;
public void run(){
System.out.println("跑跑!");
}
public void eat(){
System.out.println("吃吃!");
}
public void sleep(){
System.out.println("zzzzz");
}
public Animal2(){
super();
... | yangweijun213/Java | J2SE300/28_51OO/src/cn/bjsxt/oop/inherit/Animal2.java | Java | gpl-3.0 | 1,087 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2021 Evan Debenham
*
* 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 vers... | 00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/DungeonWallsTilemap.java | Java | gpl-3.0 | 3,780 |
using System;
using System.Windows;
using System.Windows.Threading;
using StructureMap;
using TailBlazer.Views;
namespace TailBlazer.Infrastucture
{
public class BootStrap
{
[STAThread]
public static void Main(string[] args)
{
var app = new App { ShutdownMode = ShutdownMode... | MendelMonteiro/TailBlazer | Source/TailBlazer/Infrastucture/BootStrap.cs | C# | gpl-3.0 | 754 |
using CP77.CR2W.Reflection;
namespace CP77.CR2W.Types
{
[REDMeta]
public class inkLayerProxy : ISerializable
{
public inkLayerProxy(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { }
}
}
| Traderain/Wolven-kit | CP77.CR2W/Types/cp77/inkLayerProxy.cs | C# | gpl-3.0 | 220 |
package org.schabi.newpipe.player;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.AsyncTask;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.ut... | BlenderViking/NewPipe | app/src/main/java/org/schabi/newpipe/player/LunchAudioTrack.java | Java | gpl-3.0 | 10,189 |
#include "MD5.h"
#include "string.h"
namespace engine
{
namespace tools
{
using namespace std;
/* Constants for MD5Transform routine. */
#define S11 7
#define S12 12
#define S13 17
#define S14 22
#define S21 5
#de... | WusiStudio/Genesis | engine/common/tools/src/MD5.cpp | C++ | gpl-3.0 | 13,017 |
package org.melodi.learning.service;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import org.melodi.tools.dataset.DataSet_Corpora;
import org.melodi.tools.evaluation.Evaluation_Service;
import opennlp.ma... | fauconnier/LaToe | src/org/melodi/learning/service/Classifier_MaxEnt.java | Java | gpl-3.0 | 3,139 |
"""
IfExp astroid node
An if statement written in an expression form.
Attributes:
- test (Node)
- Holds a single node such as Compare.
- Body (List[Node])
- A list of nodes that will execute if the condition passes.
- orelse (List[Node])
- The else clause.
Example:
- te... | shweta97/pyta | nodes/IfExp.py | Python | gpl-3.0 | 406 |
var __v=[
{
"Id": 2056,
"Panel": 1052,
"Name": "array",
"Sort": 0,
"Str": ""
},
{
"Id": 2057,
"Panel": 1052,
"Name": "相關接口",
"Sort": 0,
"Str": ""
},
{
"Id": 2058,
"Panel": 1052,
"Name": "Example",
"Sort": 0,
"Str": ""
}
] | zuiwuchang/king-document | data/panels/1052.js | JavaScript | gpl-3.0 | 287 |
# -*- coding: utf-8 -*-
import pilas
archi = open('datos.txt', 'r')
nivel = archi.readline()
pantalla = archi.readline()
idioma = archi.readline()
archi.close()
if idioma == "ES":
from modulos.ES import *
else:
from modulos.EN import *
class EscenaMenu(pilas.escena.Base):
"Es la escena de presentación d... | MendeleievBros/Mendeleiev-Bros | mendeleiev_bros/escena_menu.py | Python | gpl-3.0 | 2,716 |
#pragma once
#include "common.hpp"
namespace ccloutline {
border_mat borders(const arma::mat&);
} // namespace ccloutline
| Thell/ccloutline | src/borders.hpp | C++ | gpl-3.0 | 126 |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# SSHplus
# A remote connect utlity, sshmenu compatible clone, and application starter.
#
# (C) 2011 Anil Gulecha
# Based on sshlist, incorporating changes by Benjamin Heil's simplestarter
#
# This program is free software: you can redistribute it and/or modify
# it under th... | NoXPhasma/sshplus | sshplus.py | Python | gpl-3.0 | 9,010 |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-09 11:32
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
... | cw-intellineers/intellifin | intellifin/migrations/0001_initial.py | Python | gpl-3.0 | 2,024 |
/*
Copyright (c) 2009 Sebastian Steiger, Integrated Systems Laboratory, ETH Zurich.
Comments, suggestions, criticism or bug reports are welcome: steiger@purdue.edu.
This file is part of ANGEL, a simulator for LEDs based on the NEGF formalism.
The software is distributed under the Lesser GNU General Public License (LG... | XSZHOU/negf-reference | src/negf/GreenFunctions.cpp | C++ | gpl-3.0 | 27,272 |
# Copyright 2016 Mycroft AI, Inc.
#
# This file is part of Mycroft Core.
#
# Mycroft Core is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | ElliotTheRobot/LILACS-mycroft-core | mycroft/skills/LILACS_chatbot/__init__.py | Python | gpl-3.0 | 5,092 |
# -*- coding: utf-8 -*-
# This file is part of Gertrude.
#
# Gertrude is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#... | studio1247/gertrude | document_dialog.py | Python | gpl-3.0 | 13,966 |
from ..rerequest import TemplateRequest
init_req = TemplateRequest(
re = r'(http://)?(www\.)?(?P<domain>ur(play)?)\.se/(?P<req_url>.+)',
encode_vars = lambda v: { 'req_url': 'http://%(domain)s.se/%(req_url)s' % v } )
hls = { 'title': 'UR-play', 'url': 'http://urplay.se/', 'feed_url': 'http://urplay.se/rss',... | jackuess/pirateplay.se | lib/pirateplay/lib/services/ur.py | Python | gpl-3.0 | 1,161 |
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; withou... | Graylog2/graylog2-server | graylog2-web-interface/src/stores/simulator/SimulatorStore.js | JavaScript | gpl-3.0 | 1,756 |
/*******************************************************************************
* Copyright (C) 2010 Lucas Madar and Peter Brewer
*
* 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 ... | petebrew/tellervo | src/main/java/org/tellervo/desktop/hardware/device/LintabDevice.java | Java | gpl-3.0 | 11,073 |
<?php
/**
* @package leavesandlove-wp-plugin-util
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
if ( ! class_exists( 'LaL_WP_Plugin' ) ) {
/**
* The base plugin main class.
*
* The main class of each plugin that should use the plugin loader must extend... | felixarntz/leavesandlove-wp-plugin-util | leavesandlove-wp-plugin.php | PHP | gpl-3.0 | 15,683 |
// Copyright (C) 2007-2012 Christian Stehno
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "CImageLoaderPPM.h"
#ifdef _IRR_COMPILE_WITH_PPM_LOADER_
#include "IReadFile.h"
#include "CColorConverter.h"
#include "CImage.h"
#include "... | Traderain/Wolven-kit | WolvenKit.Irrlicht/source/CImageLoaderPPM.cpp | C++ | gpl-3.0 | 5,858 |
class Object:
def __init__(self, name):
self._name = name
@property
def name(self):
return self._name
| gnovis/swift | swift_fca/swift_core/object_fca.py | Python | gpl-3.0 | 131 |
using System;
using System.Collections.Generic;
using Server.Items;
namespace Server.Mobiles
{
public class SBButcher : SBInfo
{
private readonly List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
private readonly IShopSellInfo m_SellInfo = new InternalSellInfo();
public SBButc... | ironclad88/JustZH | Scripts/Mobiles/Vendors/SBInfo/SBButcher.cs | C# | gpl-3.0 | 2,268 |
/*
* ULife, the old computer simulation of Life.
* Copyright (C) 1998 by Ian Lane (email: lanei@ideal.net.au)
*
* Distribution: This control is free for public use and components may be
* freely descended from it as long as credit is given to the author.
*
* Converted to C#: 20/07/2011, Serg V. Zhd... | ruslangaripov/GEDKeeper | projects/GKv2/GKLifePlugin/ConwayLife/LifeOptions.cs | C# | gpl-3.0 | 3,499 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>BiduleTroc</title>
<link href="style.css" rel="stylesheet" type ="text/css" media="screen"/>
</head>
<body>
<div id="principal">
<div id="title">
<h1>BIDULETROC</h1>
</div>
<div class="column">
<ul>
... | Lordnight/HTML_Project | index.php | PHP | gpl-3.0 | 1,566 |
// polyFEM
// with mass matrix, and all
// plus, correction to quadratic consistency
// periodic boundary conditions
// Solves NS equation for an incompressible
// fluid in Fourier space
#include <CGAL/Timer.h>
// write out matrices
//#define WRITE
//#define EXPLICIT
#include"main.h"
#include"CH_FFT.h"
#include"... | ddcampayo/polyFEM | mains/projected/main_Fourier_TG_2.cpp | C++ | gpl-3.0 | 14,759 |
package bms.player.beatoraja.result;
import static bms.player.beatoraja.ClearType.*;
import static bms.player.beatoraja.skin.SkinProperty.*;
import java.util.*;
import java.util.logging.Logger;
import bms.player.beatoraja.input.KeyCommand;
import com.badlogic.gdx.utils.FloatArray;
import bms.model.BMSModel;
import ... | exch-bms2/beatoraja | src/bms/player/beatoraja/result/CourseResult.java | Java | gpl-3.0 | 12,539 |
package com.epam.jdi.uitests.mobile.appium.driver;
/*
* Copyright 2004-2016 EPAM Systems
*
* This file is part of JDI project.
*
* JDI 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 versi... | alexeykuptsov/JDI | Java/JDI/jdi-uitest-mobile/src/main/java/com/epam/jdi/uitests/mobile/appium/driver/WebDriverUtils.java | Java | gpl-3.0 | 1,834 |
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#include "MantidMDAlgorithms/MinusMD.h"... | mganeva/mantid | Framework/MDAlgorithms/src/MinusMD.cpp | C++ | gpl-3.0 | 5,591 |