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 |
|---|---|---|---|---|---|
from datetime import datetime
import json
import traceback
from django.http import HttpResponse
from django.template import loader, Context
from django.views.decorators.csrf import csrf_exempt
from events.models import ScriptEvent, MessageEvent
from profiles.models import PhoneNumber, format_phone
from sms_messages.m... | audaciouscode/SMSBot | smsbot_django/services/views.py | Python | gpl-3.0 | 4,783 |
# -*- coding: utf-8 -*-
from ui import ui_elements
from ui import ui_handler
class my_text(ui_elements.Text):
def start(self, args):
self.set_text(args["text"])
self.set_pos((100, 100))
self.set_size(60)
self.set_color((0, 0, 255))
def mouse_enter(self):
self.set_color((255, 0, 0))
def mouse_leave(sel... | c-michi/pygame_ui | test_ui.py | Python | gpl-3.0 | 722 |
"""
Copyright (c) 2012-2014 RockStor, Inc. <http://rockstor.com>
This file is part of RockStor.
RockStor 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 la... | schakrava/rockstor-core | src/rockstor/storageadmin/models/netatalk_share.py | Python | gpl-3.0 | 1,546 |
/*******************************************************************************
* Copyright (C) 2015, CERN
* This software is distributed under the terms of the GNU General Public
* License version 3 (GPL Version 3), copied verbatim in the file "LICENSE".
* In applying this license, CERN does not waive the privile... | cerndb/wls-cern-sso | saml2slo/test/TestURLEncoder.java | Java | gpl-3.0 | 1,415 |
<?php
#
# Plugin: check_centricstor
# Author: Rene Koch <r.koch@ovido.at>
# Date: 2012/12/06
#
$opt[1] = "--vertical-label \"Caches free\" -l 0 --title \"Caches free on $hostname\" --slope-mode -N";
$opt[2] = "--vertical-label \"Caches dirty\" -l 0 --title \"Caches dirty on $hostname\" --slope-mode -N";
$def[1] = "";
... | ovido/check_centricstor | contrib/check_centricstor.php | PHP | gpl-3.0 | 1,393 |
/*
* Copyright (C) 2011-2012 DarkCore <http://www.darkpeninsula.eu/>
* Copyright (C) 2011-2012 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2012 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can re... | Darkpeninsula/Darkcore-Rebase | src/server/game/Handlers/BattlefieldHandler.cpp | C++ | gpl-3.0 | 4,978 |
/*
* CoOccurrenceDrawer.java Copyright (C) 2021. Daniel H. Huson
*
* (Some files contain contributions from other authors, who are then mentioned separately.)
*
* 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 ... | danielhuson/megan-ce | src/megan/chart/drawers/CoOccurrenceDrawer.java | Java | gpl-3.0 | 27,067 |
/******************************************************************************
*
* Project: FYBA Callbacks
* Purpose: Needed by FYBA - however we do not want to display most messages
* Author: Thomas Hirsch, <thomas.hirsch statkart no>
*
***********************************************************************... | grueni75/GeoDiscoverer | Source/Platform/Target/Android/core/src/main/jni/gdal-3.2.1/ogr/ogrsf_frmts/sosi/fyba_melding.cpp | C++ | gpl-3.0 | 2,499 |
package io.nadron.app.impl;
public class InvalidCommandException extends Exception
{
/**
* Eclipse generated serial id.
*/
private static final long serialVersionUID = 6458355917188516937L;
public InvalidCommandException(String message)
{
super(message);
}
public InvalidCommandException(String message, E... | wangxiaogangan/EC_Game | Server/elementproject/nadron/src/main/java/io/nadron/app/impl/InvalidCommandException.java | Java | gpl-3.0 | 360 |
<?php include 'copyright.php' ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Carnaval - BDL N... | BDL-NDC/bdlsite | CA.php | PHP | gpl-3.0 | 2,625 |
/*
* GrGen: graph rewrite generator tool -- release GrGen.NET 4.4
* Copyright (C) 2003-2015 Universitaet Karlsruhe, Institut fuer Programmstrukturen und Datenorganisation, LS Goos; and free programmers
* licensed under LGPL v3 (see LICENSE.txt included in the packaging of this file)
* www.grgen.net
*/
/**
* @aut... | jblomer/GrGen.NET | frontend/de/unika/ipd/grgen/ast/exprevals/ExternalTypeNode.java | Java | gpl-3.0 | 5,929 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
namespace Abide.Tag
{
public class Block : ITagBlock, IEnumerable<Field>, IEquatable<Block>
{
private string name = string.Empty;
private string d... | MikeMatt16/Abide | Abide.Guerilla/Abide.Tag/Block.cs | C# | gpl-3.0 | 6,725 |
import { Component, OnInit } from '@angular/core';
import { Serie } from './model/serie.model';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
| jorgeas80/webhub | ng2/appseries/src/app/app.component.ts | TypeScript | gpl-3.0 | 301 |
#region header
// ========================================================================
// Copyright (c) 2018 - Julien Caillon (julien.caillon@gmail.com)
// This file (PositionTracker.cs) is part of 3P.
//
// 3P is a free software: you can redistribute it and/or modify
// it under the terms of the GNU General Publ... | jcaillon/3P | 3PA/Lib/CommonMark/Parser/PositionTracker.cs | C# | gpl-3.0 | 4,594 |
using MaterialSkin.Controls;
using System;
using System.Drawing;
using System.Windows.Forms;
using WinFormsTranslator;
/// <summary>
/// SA:MP launcher .NET namespace
/// </summary>
namespace SAMPLauncherNET
{
/// <summary>
/// Connect form class
/// </summary>
public partial class ConnectForm : Mater... | BigETI/SAMPLauncherNET | SAMPLauncherNET/Source/SAMPLauncherNET/UI/Forms/ConnectForm.cs | C# | gpl-3.0 | 3,748 |
using System.ComponentModel;
namespace SmartLogReader
{
public enum WorkerProgressCode
{
StartedWork,
StillWorking,
FinishedWork,
CustomCode
}
public class Worker
{
public Worker()
{
worker = new BackgroundWorker();
worker.Wo... | wolfoerster/SmartLogReader | Utilities/Worker.cs | C# | gpl-3.0 | 2,751 |
# Copyright (C) 2017 Roman Samoilenko <ttahabatt@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 your option) any later version.
# This pr... | johnnykv/heralding | heralding/capabilities/ssh.py | Python | gpl-3.0 | 3,627 |
/*
* Copyright 2002-2017 the original author or authors.
*
* 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 ap... | shekharcs1-/Test | service/src/main/java/com/drdolittle/petclinic/petclinic/repository/jpa/JpaVisitRepositoryImpl.java | Java | gpl-3.0 | 2,491 |
<?php
namespace StoreCore\StoreFront;
/**
* Uniform Resource Identifier (URI)
*
* @author Ward van der Put <Ward.van.der.Put@gmail.com>
* @copyright Copyright (c) 2015-2016 StoreCore
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License
* @package StoreCore\Core
* @version 0.1.0
*... | storecore/releases | StoreCore/StoreFront/Location.php | PHP | gpl-3.0 | 2,258 |
/*
--------------------------------------------------------------------------------
This source file is part of Hydrax.
Visit ---
Copyright (C) 2008 Xavier Vergu�n Gonz�lez <xavierverguin@hotmail.com>
<xavyiy@gmail.com>
This program is free software; you can redistribute it and/or modify it under
the ... | junrw/ember-gsoc2012 | src/components/ogre/environment/hydrax/src/Prerequisites.cpp | C++ | gpl-3.0 | 1,155 |
<?php
return [
'accounts' => [
'cash' => 'Bargeld',
],
'categories' => [
'deposit' => 'Einzahlung',
'sales' => 'Vertrieb',
],
'currencies' => [
'usd' => 'US-Dollar',
'eur' => 'Euro',
'g... | akaunting/akaunting | resources/lang/de-DE/demo.php | PHP | gpl-3.0 | 1,009 |
package net.torocraft.toroquest.civilization.quests;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.UUID;
import net.minecraft.block.Block;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
imp... | ToroCraft/ToroQuest | src/main/java/net/torocraft/toroquest/civilization/quests/QuestMine.java | Java | gpl-3.0 | 8,175 |
package tr.com.arf.toys.view.converter.egitim;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.FacesConverter;
import tr.com.arf.framework.view.converter._base.BaseConverter;
import tr.com.arf.toys.db.model.egitim.SinavGozetmen;
import tr.com.arf.toys.se... | TMMOB-BMO/TOYS | Toys/JavaSource/tr/com/arf/toys/view/converter/egitim/SinavGozetmenConverter.java | Java | gpl-3.0 | 1,450 |
"""checker for unnecessary indexing in a loop.
"""
from typing import List, Optional, Tuple, Union
import astroid
from astroid import nodes
from pylint.checkers import BaseChecker
from pylint.checkers.utils import check_messages
from pylint.interfaces import IAstroidChecker
class UnnecessaryIndexingChecker(BaseCheck... | pyta-uoft/pyta | python_ta/checkers/unnecessary_indexing_checker.py | Python | gpl-3.0 | 5,590 |
<?php
$fuits = [
'uva',
'banana',
'caju',
];
asort($fuits);
var_dump($fuits); | caioblima/phpzce-code-guide | arrays/code/src/asort.php | PHP | gpl-3.0 | 89 |
package Utiles;
/**
* Esta clase permite crear JPanel al ser instanciada desde otra
* @author Raúl Caro Pastorino <Fryntiz www.fryntiz.es>
*/
import java.awt.Color;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class ClaseJPanel extends JPanel {
JLabel jlabel;
... | fryntiz/java | Aprendiendo/GUI/src/Utiles/ClaseJPanel.java | Java | gpl-3.0 | 600 |
#! /usr/bin/env python
import os
import argparse
from pymsbayes.fileio import expand_path
from pymsbayes.config import MsBayesConfig
from pymsbayes.utils.functions import is_file, is_dir, is_executable
class SmartHelpFormatter(argparse.HelpFormatter):
'''
A class to allow customizable line breaks for an argu... | joaks1/PyMsBayes | pymsbayes/utils/argparse_utils.py | Python | gpl-3.0 | 4,193 |
/*
* ItemNotFoundException.java
*
* Copyright (C) 2013
*
* This file is part of Open Geoportal Harvester
*
* This software 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... | OpenGeoportal/ogpHarvester | web/src/main/java/org/opengeoportal/harvester/mvc/exception/ItemNotFoundException.java | Java | gpl-3.0 | 2,097 |
/*
RCSwitch - Arduino libary for remote control outlet switches
Copyright (c) 2011 Suat Özgür. All right reserved.
Contributors:
- Andre Koehler / info(at)tomate-online(dot)de
- Gordeev Andrey Vladimirovich / gordeev(at)openpyro(dot)com
- Skineffect / http://forum.ardumote.com/viewtopic.php?f=2&t=46
-... | mistert14/ardu-rasp1 | lib2/TS/RCSwitch.cpp | C++ | gpl-3.0 | 22,164 |
/*
RPG Paper Maker Copyright (C) 2017-2021 Wano
RPG Paper Maker engine is under proprietary license.
This source code is also copyrighted.
Use Commercial edition for commercial use of your games.
See RPG Paper Maker EULA here:
http://rpg-paper-maker.com/index.php/eula.
*/
#include "monste... | Wano-k/RPG-Paper-Maker | Editor/Models/GameDatas/monstersdatas.cpp | C++ | gpl-3.0 | 5,777 |
using System;
namespace JavCrawl.Models.DbEntity
{
public partial class Servers
{
public int Id { get; set; }
public DateTime? CreatedAt { get; set; }
public string Data { get; set; }
public sbyte? Default { get; set; }
public DateTime? DeletedAt { get; set; }
p... | vibollmc/7816df50764af41dac934f89a19d804c | JavCrawl/JavCrawl/Models/DbEntity/Servers.cs | C# | gpl-3.0 | 591 |
/*******************************************************************************
* xFramium
*
* Copyright 2016 by Moreland Labs, Ltd. (http://www.morelandlabs.com)
*
* Some open source application is free software: you can redistribute
* it and/or modify it under the terms of the GNU General Public
* Li... | xframium/xframium-java | framework/src/org/xframium/page/keyWord/KeyWordTest.java | Java | gpl-3.0 | 18,458 |
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
require 'zlib'
class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::FileDropper
... | cSploit/android.MSF | modules/exploits/multi/http/sysaid_rdslogs_file_upload.rb | Ruby | gpl-3.0 | 5,636 |
<?php
$PHP_SELF = "index.php";
include 'includes/config.in.php';
include 'includes/function.in.php';
include 'includes/class.mysql.php';
include 'lang/thai_utf8.php';
include 'includes/array.in.php';
include 'includes/class.ban.php';
include 'includes/class.calendar.php';
header( 'Content-Type:text/html; charset='.ISO... | robocon/atomymaxsite | mainfile.php | PHP | gpl-3.0 | 2,756 |
<script>
{literal}
var columns = 5;
var padding = 12;
var grid_width = $('.col').width();
grid_width = grid_width - (columns * padding);
percentage_width = grid_width / 100;
$('#manageGrid').flexigrid ( {
url: 'index.php?module=user&view=xml',
dataType: 'xml',
// @formatter:off
colModel : [
{... | fearless359/simpleinvoices_zend2 | modules/user/manage.js.php | PHP | gpl-3.0 | 1,674 |
package ca.nrc.cadc.ulm.client;/*
************************************************************************
******************* CANADIAN ASTRONOMY DATA CENTRE *******************
************** CENTRE CANADIEN DE DONNÉES ASTRONOMIQUES **************
*
* (c) 2016. (c) 2016.
* Govern... | opencadc/apps | cadc-upload-manager/src/test/java/ca/nrc/cadc/ulm/client/FileLoader.java | Java | gpl-3.0 | 4,358 |
/*******************************************************************************
* This file is part of Minebot.
*
* Minebot 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... | iAmRinzler/minebot | Minebot/src/net/famzangl/minecraft/minebot/build/block/SlabFilter.java | Java | gpl-3.0 | 2,030 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | Niky4000/UsefulUtils | projects/ssh/apache_mina/apache-sshd-1.2.0/sshd-core/src/main/java/org/apache/sshd/agent/unix/AgentClient.java | Java | gpl-3.0 | 6,427 |
<?php
/******************************************************************************
* *
* This file is part of RPB Calendar, a Wordpress plugin. *
* Copyright (C) 2014 Yoann Le Montagner <yo35 -at- melix.net> ... | yo35/rpb-calendar | models/categorylist.php | PHP | gpl-3.0 | 1,899 |
using System.Runtime.InteropServices;
using System.Security;
using System;
using System.Runtime.Remoting.Contexts;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Activation;
namespace System.Runtime.Remoting.Proxies
{
/// <summary>Indicates that an object type requires a custom proxy.</summary>
[... | zebraxxl/CIL2Java | StdLibs/corlib/System/Runtime/Remoting/Proxies/ProxyAttribute.cs | C# | gpl-3.0 | 4,267 |
package script
import (
evbus "github.com/asaskevich/EventBus"
"github.com/mudler/artemide/pkg/context"
plugin "github.com/mudler/artemide/plugin"
jww "github.com/spf13/jwalterweatherman"
)
// Script construct the container arguments from the boson file
type Script struct{}
// Process builds a list of packages f... | mudler/artemide | plugin/recipe/script/script.go | GO | gpl-3.0 | 978 |
class KuiristoWeb
#
# Recipe
#
head '/recipe/:source/:x/:id.raw' do |source,x,id|
src = Kuiristo.source(source)
# Find recipe and get rawid
row = DB[:recipes].select(:rawid)
.first(:source => src::ID, :id => id.to_i)
not_found if row.nil? ... | sdalu/kuiristo | app/recipe.rb | Ruby | gpl-3.0 | 3,314 |
OJ.importCss('nw.components.NwTray');
OJ.extendComponent(
'NwTray', [OjComponent],
{
'_props_' : {
'actuator' : null,
'allowSlide' : false,
'tray' : null
},
'_template' : 'nw.components.NwTray', '_is_open' : false,
// '_tray_anim' : null,
... | NuAge-Solutions/NW | src/js/components/NwTray.js | JavaScript | gpl-3.0 | 4,779 |
<?php
include ('config.php');
include ('init.php');
include ('include.php');
$eventId = $_GET['eventId'];
//get quantity of stations from event
$query = 'SELECT stations
FROM shootevent
WHERE id='. $eventId;
$result = dbquery($query);
$row = mysqli_fetch_assoc($result);
$stations = $row['stations'];
?... | peteritism/ShootReportSystem | eventReport.php | PHP | gpl-3.0 | 17,554 |
/**
* @file Column.cpp
* @ingroup SQLiteCpp
* @brief Encapsulation of a Column in a row of the result pointed by the prepared SQLite::Statement.
*
* Copyright (c) 2012-2015 Sebastien Rombauts (sebastien.rombauts@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or ... | edlund/fabl-ng | vendor/sources/sqlitecpp-1.1/src/Column.cpp | C++ | gpl-3.0 | 2,919 |
<?php
/**
* Single Post template file
*
* This file is the single template file, used on single blog posts, per
* the {@link http://codex.wordpress.org/Template_Hierarchy Template Hierarchy}.
*
* @link http://codex.wordpress.org/Function_Reference/comments_open comments_open()
* @link http://codex.wordpr... | UpThemes/AppTheme | single.php | PHP | gpl-3.0 | 2,893 |
// This file has been generated by Py++.
#include "stdafx.h"
#include "pypluspluscommon.h"
#include "boost/python.hpp"
#include "__call_policies.pypp.hpp"
#include "xmlmanager.h"
#include "httpurl.h"
#include "xmldocument.h"
#include "xmlmanager.pypp.hpp"
namespace bp = boost::python;
struct XMLManager_wrapper : ::o... | OsirisSPS/osiris-sps | client/src/plugins/python/wrappers/xmlmanager.pypp.cpp | C++ | gpl-3.0 | 12,206 |
package models;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* Classe qui permet de gérer les informations des utilisateurs déjà inscris.
* @author BURC Pierre, DUPLOUY Olivier, KISIALIOVA Katsiaryna, SEGUIN Tristan
*
*/
public class UserInformation {
private User infoUser;
private static Strin... | lodacom/UpYourMood | app/models/UserInformation.java | Java | gpl-3.0 | 2,698 |
/*
Neutrino-GUI - DBoxII-Project
Copyright (C) 2001 Steffen Hehn 'McClean'
Homepage: http://dbox.cyberphoria.org/
Copyright (C) 2012-2013 Stefan Seyfried
License: GPL
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
... | FFTEAM/FFTEAM-MP3-Martii | src/gui/infoviewer_bb.cpp | C++ | gpl-3.0 | 47,910 |
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may... | srnsw/xena | plugins/image/ext/src/batik-1.7/sources/org/apache/batik/dom/svg/SVGLocatableSupport.java | Java | gpl-3.0 | 6,739 |
/*
* Copyright (C) 2012 Timo Vesalainen
*
* 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 di... | tvesalainen/bcc | src/main/java/org/vesalainen/bcc/LongASM.java | Java | gpl-3.0 | 7,297 |
/*
* stereographic projection
*
* Copyright 2010 dan collins <danc@badbytes.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... | badbytes/pymeg | meg/stereographicprojection.py | Python | gpl-3.0 | 1,056 |
<?php
// Activate session
session_start();
// Start output buffer
ob_start();
// Include utility files
require_once 'include/config.php';
require_once BUSINESS_DIR . 'error_handler.php';
// Set the error handler
ErrorHandler::SetHandler();
// Load the application page template
require_once PRESENTATI... | ray1919/zsq3p1_db | admin.php | PHP | gpl-3.0 | 1,583 |
/******************************************************************************\
* _ ___ ____ __ _ *
* | | | \ \___/ / \/ | ___ __ _ ___| |_ *
* | |_| |\ /| |\/| |/ __/ _` / __| __| *... | HAMcast/HAMcast | libhamcast/src/serialization.cpp | C++ | gpl-3.0 | 5,912 |
/*
* This file is part of the L2J Global project.
*
* 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 p... | rubenswagner/L2J-Global | java/com/l2jglobal/gameserver/model/conditions/ConditionPlayerHp.java | Java | gpl-3.0 | 1,390 |
#!/usr/bin/env python
import asyncio
import json
from bson import json_util
from pymongo import MongoClient
from .search import Query
from .crawl import Spider
class ClientSpider(Spider):
"""
Indexes the client website and saves all pages to a mongodb collection
"""
def __init__(self, client):
... | apt-helion/viperidae | api/developer.py | Python | gpl-3.0 | 1,525 |
# #############################################################################
#
# buckshot.py - given a set of numbers and a marker name, make sarsoft markers
# corresponding to all three lat-lon coordinate systems
#
#
# developed for Nevada County Sheriff's Search and Rescue
# Copyright (c) 2015 Tom Grundy
#... | ncssar/buckshot | buckshot.py | Python | gpl-3.0 | 30,547 |
/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is availabl... | ThiagoGarciaAlves/ForestryMC | src/main/java/forestry/core/genetics/MutationConditionHumidity.java | Java | gpl-3.0 | 1,896 |
package io.renren.modules.api.controller;
import io.renren.common.utils.R;
import io.renren.modules.api.annotation.AuthIgnore;
import io.renren.modules.api.annotation.LoginUser;
import io.renren.modules.api.entity.TokenEntity;
import io.renren.modules.api.entity.UserEntity;
import org.springframework.web.bind.annotat... | qqq490010553/springboot-basis | src/main/java/io/renren/modules/api/controller/ApiTestController.java | Java | gpl-3.0 | 1,092 |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/i18n/icu_util.h"
#include "build/build_config.h"
#if defined(OS_WIN)
#include <windows.h>
#endif
#include <string>
#include "base/f... | tierney/cryptagram-cc | src/base/i18n/icu_util.cc | C++ | gpl-3.0 | 4,102 |
/*
* Created on 16-dic-2004
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
/* gvSIG. Sistema de Información Geográfica de la Generalitat Valenciana
*
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
*
* This program... | iCarto/siga | libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrGT2_old.java | Java | gpl-3.0 | 5,013 |
namespace _08.Custom_Comparator
{
using System;
using System.Collections.Generic;
using System.Linq;
public class Startup
{
public static void Main()
{
int[] numbers = Console.ReadLine()
.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEnt... | PlamenHP/Softuni | Advanced C#/Functional Programming - Exercises/08. Custom Comparator/Startup.cs | C# | gpl-3.0 | 1,086 |
#include <fstream>
#include <iostream>
#include "df3volume.h"
#ifdef _WIN32
# define LITTLE_ENDIAN
#endif
#ifdef LITTLE_ENDIAN
#define SWAP_2(x) ( (((x) & 0xff) << 8) | ((unsigned short)(x) >> 8) )
#define SWAP_4(x) ( ((x) << 24) | \
(((x) << 8) & 0x00ff0000) | \
(((x) >> 8) & 0x000... | mihaipopescu/VEGA | tools/df3volume.cpp | C++ | gpl-3.0 | 3,022 |
// Copyright (c) 2005 - 2015 Settlers Freaks (sf-team at siedler25.org)
//
// This file is part of Return To The Roots.
//
// Return To The Roots 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 versio... | ikharbeq/s25client | src/ingameWindows/iwEndgame.cpp | C++ | gpl-3.0 | 2,321 |
package dotest.module.frame.debug;
import android.app.Activity;
import core.interfaces.DoIPageViewFactory;
public class DoPageViewFactory implements DoIPageViewFactory {
private Activity currentActivity;
@Override
public Activity getAppContext() {
// TODO Auto-generated method stub
return currentActivity;
... | do-android/do_BaiduMapView | doExt_do_BaiduMapView/src/dotest/module/frame/debug/DoPageViewFactory.java | Java | gpl-3.0 | 748 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-01-09 11:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tmv_app', '0072_runstats_dyn_win_threshold'),
]
operations = [
migrations.A... | mcallaghan/tmv | BasicBrowser/tmv_app/migrations/0073_auto_20180109_1124.py | Python | gpl-3.0 | 471 |
#include "SQLParserResult.h"
namespace hsql {
SQLParserResult::SQLParserResult() :
isValid_(true),
errorMsg_(NULL) {};
SQLParserResult::SQLParserResult(SQLStatement* stmt) :
isValid_(true),
errorMsg_(NULL) {
addStatement(stmt);
};
SQLParserResult::~SQLParserResult() {
for (SQLStatem... | msdeep14/DeepDataBase | sql-parser/src/SQLParserResult.cpp | C++ | gpl-3.0 | 1,363 |
namespace _6.Customers_Migration
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
public partial class StoreLocation
{
[System.Diagnostics.CodeAnalysis... | PlamenHP/Softuni | Entity Framework/Entity Framework Code First/6. Customers Migration/StoreLocation.cs | C# | gpl-3.0 | 782 |
# smallest number 2^500500 divisors , modulo 500500507
# 单调递减
# (2^a0)(2^a1)(2^a2) = 2^500500
# (2^ai)(2^aj) -> (2^{ai-1})(2^{aj+1}) : p_j^(2^{aj})/p_i^(2^{ai-1}) < 1 , (a > b)
# (2^aj)ln(p_j) < (2^{ai-1})ln(p_i)
# if 2^{a_i-a_j-1} > ln(p_j)/ln(p_i), then a_i-=1,a_j-=1
#
# i < j
# p_j^(2^(a_j-1)) < p_i^(2^a_i)
# p_i^(2... | CroMarmot/MyOICode | ProjectEuler/unsolved/p500.py | Python | gpl-3.0 | 3,132 |
using System;
using LuaInterface;
using SLua;
using System.Collections.Generic;
public class Lua_UnityEngine_ParticleSystem_CollisionModule : LuaObject {
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static public int constructor(IntPtr l) {
try {
UnityEngine.ParticleSystem.CollisionModule o;
o=new U... | yongkangchen/poker-client | Assets/Runtime/Slua/LuaObject/Unity/Lua_UnityEngine_ParticleSystem_CollisionModule.cs | C# | gpl-3.0 | 14,303 |
package tensor2go
type Scalar struct {
*Tensor
}
func NewScalar(val interface{}) (v *Scalar){
v = &Scalar{NewTensor()}
v.Tensor.tensorRoot = v.Tensor.graph.CreateVertex("root",val)
return
}
func (s *Scalar) Val() interface{} {
return s.Tensor.tensorRoot.Properties()
}
func (s *Scalar) Multiply(val interface{})... | joernweissenborn/tensor2go | scalar.go | GO | gpl-3.0 | 491 |
/**************************************************************************************************
* This file is part of Connect X.
*
* Connect X 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, eith... | BobMorane22/ConnectX | cxgui/src/Board.cpp | C++ | gpl-3.0 | 8,959 |
using CatalokoSite.Models;
using CatalokoSite.Models.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CatalokoSite.Controllers
{
public class MarketController : Controller
{
[Route("~/market")]
public ActionRe... | albertoroque/cataloko | site/CatalokoSite/Controllers/MarketController.cs | C# | gpl-3.0 | 642 |
// This file is part of LEDStick_TFT.
//
// LEDStick_TFT 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.
//
// LEDStick_TFT is ... | dipsylala/LEDStick_TFT | RGBController.cpp | C++ | gpl-3.0 | 1,772 |
package GUI;
import Logic.AI;
import Logic.Board;
import Logic.Player;
import Logic.SpecialCoord;
import Pieces.Coordinate;
import Pieces.MasterPiece;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.S... | shinn16/Chess | src/GUI/Controller.java | Java | gpl-3.0 | 46,008 |
/*
* Copyright 2016 Nathan Howard
*
* This file is part of OpenGrave
*
* OpenGrave is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ver... | AperiStudios/OpenGrave | src/main/java/com/opengrave/common/ModSession.java | Java | gpl-3.0 | 4,818 |
package net.lomeli.magiks.api.machines;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.minecraft.item.ItemStack;
public class OreCrusherManager
{
private static final OreCrusherManager instance = new OreCrusherManager();
@SuppressWarnings("r... | Lomeli12/MechroMagiks | common/net/lomeli/magiks/api/machines/OreCrusherManager.java | Java | gpl-3.0 | 1,412 |
/*
* Copyright (C) 2013-2022 Byron 3D Games Studio (www.b3dgs.com) Pierre-Alexandre (contact@b3dgs.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, o... | b3dgs/lionheart-remake | lionheart-game/src/main/java/com/b3dgs/lionheart/object/feature/BossUnderworld.java | Java | gpl-3.0 | 8,280 |
from setuptools import setup
setup(name="waterworks",
version="0.0.0",
description="Message agregation daemon.",
url="https://github.com/Aeva/waterworks",
author="Aeva Palecek",
author_email="aeva.ntsc@gmail.com",
license="GPLv3",
packages=["waterworks"],
zip_safe=False,... | Aeva/waterworks | setup.py | Python | gpl-3.0 | 508 |
/**
* This file is part of BP generator.
*
* BP generator 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.
*
* BP generator is d... | dsx75/bp-gen | src/eu/bp/gen1/pages/SkLedS2720.java | Java | gpl-3.0 | 1,263 |
#!/usr/bin/env ruby
#
# This plugin provides integration with OpenVAS. Written by kost and
# averagesecurityguy.
#
# Distributed under MIT license:
# http://www.opensource.org/licenses/mit-license.php
#
require 'socket'
require 'timeout'
require 'openssl'
require 'rexml/document'
require 'rexml/text'
require 'base64... | cSploit/android.MSF | lib/openvas/openvas-omp.rb | Ruby | gpl-3.0 | 17,262 |
/* CPU_X86_32.cpp
Copyright (C) 2008 Stephen Torri
This file is part of Libreverse.
Libreverse 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, or (at your
option) any later ... | storri/libreverse | reverse/io/input/file_readers/mac_mach/cpu_x86_32.cpp | C++ | gpl-3.0 | 2,043 |
/**
Copyright 2012 John Cummens (aka Shadowmage, Shadowmage4513)
This software is distributed under the terms of the GNU General Public License.
Please see COPYING for precise license information.
This file is part of Ancient Warfare.
Ancient Warfare is free software: you can redistribute it and... | shadowmage45/AncientWarfare | AncientWarfare/src/shadowmage/ancient_warfare/common/item/ItemResearchNote.java | Java | gpl-3.0 | 2,960 |
'use strict';
var async = require('async');
var rss = require('rss');
var nconf = require('nconf');
var validator = require('validator');
var posts = require('../posts');
var topics = require('../topics');
var user = require('../user');
var categories = require('../categories');
var meta = require('../meta');
var hel... | BenLubar/NodeBB | src/routes/feeds.js | JavaScript | gpl-3.0 | 14,110 |
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def invertTree(self, root):
"""
:type root: TreeNode
:rtype: TreeNode
"""
if not ... | zqfan/leetcode | algorithms/226. Invert Binary Tree/solution.py | Python | gpl-3.0 | 490 |
# Copyright (C) 2011 Pierre de Buyl
# This file is part of pyMPCD
# pyMPCD 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.
# pyMPCD ... | pdebuyl/pyMPCD | pyMPCD/MPCD.py | Python | gpl-3.0 | 21,970 |
<?php
namespace Tests\PhpCmplr\Core\Reflection;
use PhpCmplr\Core\Container;
use PhpCmplr\Core\FileStoreInterface;
use PhpCmplr\Core\SourceFile\SourceFile;
use PhpCmplr\Core\Parser\Parser;
use PhpCmplr\Core\DocComment\DocCommentParser;
use PhpCmplr\Core\NameResolver\NameResolver;
use PhpCmplr\Core\Reflection\FileRefl... | tsufeki/phpcmplr | tests/PhpCmplr/Core/Reflection/LocatorReflectionTest.php | PHP | gpl-3.0 | 5,229 |
var Gpio = function (physicalPin, wiringPiPin, name) {
this.id = physicalPin;
this.physicalPin = physicalPin;
this.wiringPiPin = wiringPiPin;
this.name = name;
}
Gpio.fromGpioDefinition = function (definition) {
return new Gpio(definition.physicalPin, definition.wiringPiPin, definition.name);
}
mo... | jvandervelden/rasp-train | src/node/models/gpio.js | JavaScript | gpl-3.0 | 340 |
#include "Granulizer.h"
#include <iostream>
Granulizer::Granulizer()
: grainIdx_(0),
straightIdx_(0),
grainLen_(0.0f),
generator(std::chrono::system_clock::now().time_since_epoch().count())
{
}
bool Granulizer::loadLoop(char* filename)
{
grainIdx_ = 0;
grainLen_ = 0;
SN... | vooku/Generate-festival-music-demo | src/Granulizer.cpp | C++ | gpl-3.0 | 1,629 |
package org.remipassmoilesel.bookme.services;
import org.remipassmoilesel.bookme.utils.Utils;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Objects;
/**
* Created by remipa... | remipassmoilesel/simple-hostel-management | src/main/java/org/remipassmoilesel/bookme/services/MerchantServiceForm.java | Java | gpl-3.0 | 5,356 |
# Monkey-patch OpenSSL to skip checking the hostname of the remote certificate.
# We need to enable VERIFY_PEER in order to get hands on the remote certificate
# to check the fingerprint. But we don't care for the matching of the
# hostnames. Unfortunately this patch is apparently the only way to achieve
# that.
module... | schleuder/schleuder-web | lib/openssl_ssl_patch.rb | Ruby | gpl-3.0 | 521 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MECS.Core.Engraving
{
public class EngraverPosition
{
public int X { get; set; }
public int Y { get; set; }
}
}
| Mr-Alicates/MECS | MECS/MECS.Core/Engraving/EngraverPosition.cs | C# | gpl-3.0 | 270 |
#include "chessgame.h"
#include <QUrl>
#include <QQmlContext>
#include <QDebug>
#include "validator/pawnvalidator.h"
#include "validator/rookvalidator.h"
#include "validator/knightvalidator.h"
#include "validator/bishopvalidator.h"
#include "validator/queenvalidator.h"
#include "validator/kingvalidator.h"
#define HIS... | remico/dai-chess | src/chessgame.cpp | C++ | gpl-3.0 | 5,364 |
<?php
/**
* Dashboard - Products
*
* @package FrozrCoreLibrary
* @subpackage FrozrmarketTemplates
*/
if ( ! defined( 'ABSPATH' ) ) exit; /* Exit if accessed directly*/
frozr_redirect_login();
frozr_redirect_if_not_seller();
$action = isset( $_GET['action'] ) ? wc_clean($_GET['action']) : 'listing';
if ( $actio... | MahmudHamid/LazyEater | templates/dishes.php | PHP | gpl-3.0 | 471 |
window.saveData = function (key, data) {
if(!localStorage.savedData)
localStorage.savedData = JSON.stringify({});
var savedData = JSON.parse(localStorage.savedData)
var type = typeof data;
savedData[key] = {
type: type,
data: (type === 'object') ? JSON.stringify(data) : data
};
localStorage.savedData = JS... | zrispo/wick | lib/localstoragewrapper.js | JavaScript | gpl-3.0 | 780 |
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
//
// BOINC 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 Licens... | MestreLion/boinc-debian | sched/sched_shmem.cpp | C++ | gpl-3.0 | 11,690 |
import request from '@/utils/request'
export function fetchCommon() {
return request({
url: '/setting/common/cron/',
method: 'get'
})
}
export function editCommon(formData) {
const data = formData
return request({
url: '/setting/common/cron/',
method: 'put',
data
})
}
export function fe... | wdxtub/Patriots | frontend/src/api/setting.js | JavaScript | gpl-3.0 | 823 |
package net.BukkitPE.item.enchantment.bow;
import net.BukkitPE.item.enchantment.Enchantment;
/**
* BukkitPE Project
*/
public class EnchantmentBowInfinity extends EnchantmentBow {
public EnchantmentBowInfinity() {
super(Enchantment.ID_BOW_INFINITY, "arrowInfinite", 1);
}
@Override
public in... | BukkitPE/BukkitPE | src/main/java/net/BukkitPE/item/enchantment/bow/EnchantmentBowInfinity.java | Java | gpl-3.0 | 542 |
class AddStatusToUsers < ActiveRecord::Migration
def self.up
add_column :users, :status, :string, :default => "U"
remove_column :users, :approved
end
def self.down
remove_column :users, :status
add_column :users, :approved, :boolean, :default => false
end
end
| IntersectAustralia/nedb | db/migrate/20101015032903_add_status_to_users.rb | Ruby | gpl-3.0 | 285 |
#include <stdlib.h>
#include <iostream>
#include "boats/FloatingObject.hpp"
using namespace std;
// Quelques conseils avant de commencer...
// * N'oubliez pas de tracer (cout << ...) tous les constructeurs et le destructeur !!! Ca, c'est pas un conseil,
// c'est obligatoire :-)
// * N'essayez pas de compiler ce pro... | bendem/SchoolBoats | Test1.cpp | C++ | gpl-3.0 | 3,245 |