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
## # 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 = GoodRanking include Msf::Exploit::FILEFORMAT def initialize(info = {}) super(update_inf...
cSploit/android.MSF
modules/exploits/windows/fileformat/adobe_libtiff.rb
Ruby
gpl-3.0
12,227
using System; using System.IO; using System.Net; using System.Security.Cryptography; using DeanCCCore.Core._2ch.Jane; using DeanCCCore.Core.Utility; namespace DeanCCCore.Core { [Serializable] public class ZipFileHeader : ImageHeader { public ZipFileHeader() { } public ZipF...
omega227/DeanCC
DeanCC5/DeanCCCore/Core/ZipFileHeader.cs
C#
gpl-3.0
598
///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2011- Statoil ASA // Copyright (C) 2013- Ceetron Solutions AS // Copyright (C) 2011-2012 Ceetron AS // // ResInsight is free software: you can redistribute it and/or modify // it under the terms of the GN...
iLoop2/ResInsight
ApplicationCode/ModelVisualization/RivGridPartMgr.cpp
C++
gpl-3.0
10,747
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.2.4 or newer * * NOTICE OF LICENSE * * Licensed under the Academic Free License version 3.0 * * This source file is subject to the Academic Free License (A...
MitchellMcKenna/LifePress
application/errors/error_db.php
PHP
gpl-3.0
2,192
/* 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 "paneld...
Wano-k/RPG-Paper-Maker
Editor/CustomWidgets/paneldamageskind.cpp
C++
gpl-3.0
2,843
### # Copyright 2016 - 2022 Green River Data Analysis, LLC # # License detail: https://github.com/greenriver/hmis-warehouse/blob/production/LICENSE.md ### require 'memoist' module ClaimsReporting::Health module PatientExtension extend ActiveSupport::Concern included do extend Memoist has_many :...
greenriver/hmis-warehouse
drivers/claims_reporting/extensions/health/patient_extension.rb
Ruby
gpl-3.0
2,089
<?php /**************************************************************************/ /* PHP-NUKE: Advanced Content Management System */ /* ============================================ */ /* */ /* Th...
TGates71/PNPv1-Languages
PNPv101-lang-english/modules/Downloads/admin/language/lang-english.php
PHP
gpl-3.0
5,394
package com.hackatoncivico.rankingpolitico; import android.content.SharedPreferences; import android.os.AsyncTask; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.util.LogWriter; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; ...
franzueto/rankingpoliticogt-android
app/src/main/java/com/hackatoncivico/rankingpolitico/ProfileActivity.java
Java
gpl-3.0
6,690
#-- # Copyright 2015, 2016, 2017 Huub de Beer <Huub@heerdebeer.org> # # This file is part of Paru # # Paru 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)...
htdebeer/paru
lib/paru/filter/subscript.rb
Ruby
gpl-3.0
874
# -*- coding: utf-8 -*- ################################################################################ # Copyright 2014, Distributed Meta-Analysis System ################################################################################ """Software structure for generating Monte-Carlo collections of results. NOTE: Hi...
jrising/open-estimate
openest/generate/v1/effectset.py
Python
gpl-3.0
23,746
using Nikse.SubtitleEdit.Core.Common; using Nikse.SubtitleEdit.Forms.Options; using Nikse.SubtitleEdit.Logic; using Nikse.SubtitleEdit.Logic.VideoPlayers; using System; using System.Text; using System.Windows.Forms; namespace Nikse.SubtitleEdit.Forms { public partial class VideoError : Form { public V...
ivandrofly/subtitleedit
src/ui/Forms/VideoError.cs
C#
gpl-3.0
4,893
var __v=[ { "Id": 3568, "Panel": 1763, "Name": "紋理動畫", "Sort": 0, "Str": "" }, { "Id": 3569, "Panel": 1763, "Name": "相關API", "Sort": 0, "Str": "" }, { "Id": 3570, "Panel": 1763, "Name": "Example", "Sort": 0, "Str": "" } ]
zuiwuchang/king-document
data/panels/1763.js
JavaScript
gpl-3.0
291
<?php class WP_Gist { /* Properties ---------------------------------------------------------------------------------- */ /** * Instance of the class. * * @var WP_Gist */ protected static $instance = null; /** * Class slug. * * @var string */ protected...
manovotny/wp-gist
src/classes/class-wp-gist.php
PHP
gpl-3.0
1,164
<?php // Clear variables $boardGameError = ""; $boardGameAvailable = ""; // Get the playerID, if null return user to the available page $playerID = null; if (!empty($_GET['playerID'])) { $playerID = $_REQUEST['playerID']; } if ( null==$playerID ) { header("Location: ../available.php"); } if ($_SERVER["...
twominutesalad/PDOBoardGameClub
upload/available/validate_add_available.php
PHP
gpl-3.0
1,457
var events = require('events'), koanize = require('koanizer'), util = require('util'); koanize(this); // Standard and RFC set these values var REFERENCE_CLOCK_FREQUENCY = 90000; // RTP packet constants and masks var RTP_HEADER_SIZE = 12; var RTP_FRAGMENTATION_HEADER_SIZE = 4; var SAMPLES_PER_FRAME...
rfines/NodeKoans
2_dgram/buffer-koans.js
JavaScript
gpl-3.0
2,619
<?php /** * @author Pierre-Henry Soria <ph7software@gmail.com> * @copyright (c) 2012-2015, Pierre-Henry Soria. All Rights Reserved. * @license GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. * @package PH7 / App / System / Module / Affiliate / ...
erichilarysmithsr/pH7-Social-Dating-CMS
_protected/app/system/modules/affiliate/controllers/HomeController.php
PHP
gpl-3.0
1,983
from abc import ABC import configargparse from sklearn.externals import joblib from termcolor import colored class ScikitBase(ABC): """ Base class for AI strategies """ arg_parser = configargparse.get_argument_parser() arg_parser.add('-p', '--pipeline', help='trained model/pipeline (*.pkl file)', ...
miti0/mosquito
strategies/ai/scikitbase.py
Python
gpl-3.0
1,418
package com.octagon.airships.block; import com.octagon.airships.reference.Reference; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.rende...
Todkommt/Mass-Effect-Ships-Mod
src/main/java/com/octagon/airships/block/AirshipsBlock.java
Java
gpl-3.0
1,152
#include "simple_form_widget.h" #include "ui_simple_form_widget.h" SimpleFormWidget::SimpleFormWidget(QWidget *parent) : QWidget(parent), ui(new Ui::SimpleFormWidget) { ui->setupUi(this); } SimpleFormWidget::~SimpleFormWidget() { delete ui; }
zflat/Receptacle
test/example_plugins/example_util09_SimpleForm/simple_form_widget.cpp
C++
gpl-3.0
261
package itaf.WsUserTakeDeliveryAddressService; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlElementDecl; import javax.xml.bind.annotation.XmlRegistry; import javax.xml.namespace.QName; /** * This object contains factory methods for each * Java content interface and Java element interfac...
zpxocivuby/freetong_mobile_server
itaf-aggregator/itaf-ws-simulator/src/test/java/itaf/WsUserTakeDeliveryAddressService/ObjectFactory.java
Java
gpl-3.0
14,213
<?php ############################### # include files from root dir # ############################### $root_1 = realpath($_SERVER["DOCUMENT_ROOT"]); $currentdir = getcwd(); $root_2 = str_replace($root_1, '', $currentdir); $root_3 = explode("/", $root_2); if ($root_3[1] == 'core') { echo $root_3[1]; $root = realpat...
RpicmsTeam/RPICMS
core/backend/admin/modules/navigation.php
PHP
gpl-3.0
562
#ifndef __MAIN_HPP__ #define __MAIN_HPP__ #include <iostream> #include <unistd.h> #include <string> #include <vector> #include <stdint.h> // Para usar uint64_t #include "hanoi.hpp" #include "statistical.hpp" #include "ClaseTiempo.hpp" #define cls() system("clear"); long long combinatorio_iterativo(const int &n,const...
i32ropie/Algoritmica
p2/main.hpp
C++
gpl-3.0
13,742
import commandRunner as cr import subprocess import glob, os, platform, shutil, adb from pathlib import Path def combine_browsers_logs(udid): cmd = 'rebot -N Combined --outputdir browserlogs/ ' for idx, device in enumerate(udid): #Get all the output.xml files for the devices if platform.s...
younglim/hats-ci
robot_automation/src/logs.py
Python
gpl-3.0
3,513
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * 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. * * T...
lighthouse64/Random-Dungeon
src/com/lh64/randomdungeon/actors/buffs/SnipersMark.java
Java
gpl-3.0
1,360
namespace Maticsoft.TaoBao.Request { using Maticsoft.TaoBao; using Maticsoft.TaoBao.Util; using System; using System.Collections.Generic; using System.Runtime.CompilerServices; public class SimbaAdgroupCampcatmatchsGetRequest : ITopRequest<SimbaAdgroupCampcatmatchsGetResponse> { pri...
51zhaoshi/myyyyshop
Maticsoft.TaoBao_Source/Maticsoft.TaoBao.Request/SimbaAdgroupCampcatmatchsGetRequest.cs
C#
gpl-3.0
1,512
<?php /** * /queue/add.php * * This file is part of DomainMOD, an open source domain and internet asset manager. * Copyright (c) 2010-2016 Greg Chetcuti <greg@chetcuti.com> * * Project: http://domainmod.org Author: http://chetcuti.com * * DomainMOD is free software: you can redistribute it and/or modify it un...
koep/domainmod
queue/add.php
PHP
gpl-3.0
19,235
# Copyright (c) 2014 Stefano Palazzo <stefano.palazzo@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. # Thi...
sfstpala/hello
hello/__main__.py
Python
gpl-3.0
1,225
/* * Copyright 2015 Jan von Cosel * * This file is part of utility-scripts. * * utility-scripts 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) an...
janvc/utility-scripts
progs/source/mctdh_specinput.cpp
C++
gpl-3.0
17,237
/* * This file is part of rpgmapper. * See the LICENSE file for the software license. * (C) Copyright 2018-2019, Oliver Maurhart, dyle71@gmail.com */ #ifndef RPGMAPPER_MODEL_LAYER_GRID_LAYER_HPP #define RPGMAPPER_MODEL_LAYER_GRID_LAYER_HPP #include <QColor> #include <QJsonObject> #include <QPainter> #include <rp...
dyle/rpgmapper
include/rpgmapper/layer/grid_layer.hpp
C++
gpl-3.0
2,443
/* * qrest * * Copyright (C) 2008-2012 - Frédéric CORNU * * 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 v...
deufrai/qrest_deb_packaging
src/gui/widgets/custom/progressPie.cpp
C++
gpl-3.0
3,060
package com.dotmarketing.servlets; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Calendar; import java.util.Date; import java.util.Locale; import java.util.TimeZone; import javax.servlet.ServletException; import javax.servlet.Serv...
austindlawless/dotCMS
src/com/dotmarketing/servlets/IconServlet.java
Java
gpl-3.0
3,815
# Copyright (C) 2011-2012 Google Inc. # 2016 YouCompleteMe contributors # # This file is part of YouCompleteMe. # # YouCompleteMe 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 versi...
oblitum/YouCompleteMe
python/ycm/vimsupport.py
Python
gpl-3.0
40,365
<?php Prado::Using('Application.Engine.*'); class CombinedView extends TPage { public $text; public $tiroText; public function onLoad() { global $ABS_PATH,$USERS_PREFIX; $this->text = TextRecord::finder()->findByPk($_GET['id']); $this->tiroText = new TiroText($ABS_PATH.'/'.$USERS_PREFIX.'/'.$this->User->Na...
mattkatsenes/tiro-interactive
prado/branch-1.0/protected/Pages/TextManagement/CombinedView.php
PHP
gpl-3.0
712
#if defined HAVE_CONFIG_H #include "config.h" #endif #include <solver_core.hpp> #include <triqs/operators/many_body_operator.hpp> #include <triqs/hilbert_space/fundamental_operator_set.hpp> #include <triqs/gfs.hpp> #include <stdlib.h> #include <stdio.h> #include <iostream> #include <fstream> #include <iomanip> //#incl...
jmbeuken/abinit
src/01_triqs_ext/triqs_cthyb_qmc.cpp
C++
gpl-3.0
14,888
#!/usr/bin/env python3 import os import logging import tempfile import shutil from graftm.sequence_search_results import SequenceSearchResult from graftm.graftm_output_paths import GraftMFiles from graftm.search_table import SearchTableWriter from graftm.sequence_searcher import SequenceSearcher from graftm.hmmsearch...
wwood/graftM
graftm/run.py
Python
gpl-3.0
42,090
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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. // // Moodle ...
nitro2010/moodle
blocks/fn_marking/db/access.php
PHP
gpl-3.0
2,269
// Search script generated by doxygen // Copyright (C) 2009 by Dimitri van Heesch. // The code in this file is loosly based on main.js, part of Natural Docs, // which is Copyright (C) 2003-2008 Greg Valure // Natural Docs is licensed under the GPL. var indexSectionsWithContent = { 0: "000000000000000000000000000000...
hungly/Pacman
html/search/search.js
JavaScript
gpl-3.0
24,120
/*********************************************************************** ** ** Sturdy - note-taking app ** Copyright (C) 2016 Vladislav Tronko <innermous@gmail.com> ** ** Sturdy 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 So...
innermous/sturdy
src/core/entrymanager.cpp
C++
gpl-3.0
2,683
# Rain_Water_Trapping def trappedWater(a, size) : # left[i] stores height of tallest bar to the to left of it including itself left = [0] * size # Right [i] stores height of tallest bar to the to right of it including itself right = [0] * size # Initialize result waterVol...
jainaman224/Algo_Ds_Notes
Rain_Water_Trapping/Rain_Water_Trapping.py
Python
gpl-3.0
1,208
using System.Reflection; using System.Runtime.CompilerServices; namespace System.Security.Principal { public interface IIdentity { string AuthenticationType { get; } bool IsAuthenticated { get; } string Name { get; } } }
mtenpow/xaeios
Core/XaeiOS.Core/OSCorlib/System/Security/Principal/IIdentity.cs
C#
gpl-3.0
270
/** * Copyright (c) 2017 HES-SO Valais - Smart Infrastructure Laboratory (http://silab.hes.ch) * * This file is part of StructuredSimulationFramework. * * The StructuredSimulationFramework is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published b...
SiLab-group/structSim
structSimV1/src/main/java/ch/hevs/silab/structuredsim/interfaces/IManageModifier.java
Java
gpl-3.0
1,281
var __v=[ { "Id": 2046, "Chapter": 630, "Name": "c++", "Sort": 0 } ]
zuiwuchang/king-document
data/chapters/630.js
JavaScript
gpl-3.0
85
<?php $plugin->version = 2012060700; //EOF
junwan6/cdhpoodll
blocks/ucla_office_hours/version.php
PHP
gpl-3.0
45
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="fr"> <context> <name></name> <message id="id-app-launcher-name"> <location filename="asteroid-timer.desktop.h" line="6"/> <source>Timer</source> <translation>Timer</translation> </message> </context> </T...
AsteroidOS/asteroid-timer
i18n/asteroid-timer.en_GB.ts
TypeScript
gpl-3.0
323
using System; using System.Linq; using System.Threading.Tasks; using Discord; using Discord.Commands; using Geekbot.Core; using Geekbot.Core.Database; using Geekbot.Core.Database.Models; using Geekbot.Core.ErrorHandling; using Geekbot.Core.Extensions; using Geekbot.Core.GuildSettingsManager; using Geekbot.C...
pizzaandcoffee/Geekbot.net
src/Bot/Commands/Randomness/Ship.cs
C#
gpl-3.0
3,809
class CreateIp4NetworkLocationJoinTable < ActiveRecord::Migration def change create_join_table :ip4_networks, :locations do |t| t.index [:ip4_network_id,:location_id], unique: true, name: 'ip4_network_location' end end end
iqeo/iqeo-server
db/migrate/20141024015712_create_ip4_network_location_join_table.rb
Ruby
gpl-3.0
241
using System; using System.Diagnostics.CodeAnalysis; using JetBrains.Annotations; using NSubstitute; using NUnit.Framework; using Ploeh.AutoFixture.NUnit3; using Selkie.EasyNetQ; using Selkie.NUnit.Extensions; using Selkie.Services.Common.Messages; using Selkie.Windsor; namespace Selkie.Services.Racetracks.Tests { ...
tschroedter/Selkie.Services.Racetracks
Selkie.Services.Racetracks.Tests/ServiceTests.cs
C#
gpl-3.0
2,442
// Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
crazyquark/go-ethereum
core/types/receipt.go
GO
gpl-3.0
3,431
/** * Hub Miner: a hubness-aware machine learning experimentation library. * Copyright (C) 2014 Nenad Tomasev. Email: nenad.tomasev at 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 * Foundatio...
datapoet/hubminer
src/main/java/draw/basic/ScreenImage.java
Java
gpl-3.0
7,076
@extends('admin.layout') @section('styles') <link href="/assets/css/pdfexport.css" rel="stylesheet"> @stop @section('content') <div class="container"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"> <p><a href="{{ url('admin/stavkeposla/show',[$evidenc...
DraganValjak/WaterrproofingApp-Laravel5
resources/views/admin/pdfponude/stavkamaterijal.blade.php
PHP
gpl-3.0
10,356
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Sparesused */ $this->title = 'Create Sparesused'; $this->params['breadcrumbs'][] = ['label' => 'Sparesuseds', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="sparesused-create"> <h1><?= Htm...
sudeeptalati/rapportforindependentengineers
rapport-chs-mobile/frontend/views/sparesused/create.php
PHP
gpl-3.0
431
/***************************************************************************** * Copyright (c) 2014-2020 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 * * OpenRCT2 is licensed under the GNU Gener...
LRFLEW/OpenRCT2
src/openrct2/ride/thrill/Twist.cpp
C++
gpl-3.0
6,309
/* * dmfs - http://dmfs.org/ * * Copyright (C) 2012 Marten Gajda <marten@dmfs.org> * * 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...
dmfs/xml-serializer
src/org/dmfs/xmlserializer/XmlAbstractNode.java
Java
gpl-3.0
3,072
<? include('global.php'); ?> <? // asp2php (vbscript) converted on Sat Apr 25 20:59:49 2015 $CODEPAGE="1252";?> <? require("Connections/connrumbo.php"); ?> <? $Siniestros__DDcia="%"; if (($_POST["Cia"]!="")) { $Siniestros__DDcia=$_POST["Cia"]; } ?> <? // $Siniestros is of type "ADODB.Recordset" echo $MM_connru...
loro102/rumbo2
ListadoCiaContrariaSalida.php
PHP
gpl-3.0
2,150
package beseenium.controller.ActionFactory; /** Copyright(C) 2015 Jan P.C. Hanson & BeSeen Marketing 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 3 of the License, o...
jpchanson/BeSeenium
src/beseenium/controller/ActionFactory/ActionFactory.java
Java
gpl-3.0
7,333
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package proyectomio.controlador.operaciones; import proyectomio.accesoDatos.Controlador_BD; import proyectomio.modelo.Consulta; /** ...
luchoman08/Proyecto-MIO
src/java/proyectomio/controlador/operaciones/Controlador_Conductor.java
Java
gpl-3.0
1,169
#include <cstdio> #include <vector> #include <utility> #include <algorithm> using namespace std; pair<int, int> computeGreedyLongestPath(const vector<vector<int> > & adjList, int startV, const vector<int> & weightOfVertex); int main(void) { int T, numV, numE, u, v, caseId; vector<vector<int> > adjList; vector<int...
shakil113/Uva-onlineJudge-solve
UVA12376.cpp
C++
gpl-3.0
1,472
<?php // Copyright (c) Aura development team - Licensed under GNU GPL // For more information, see licence.txt in the main folder // // This is a simple page to create accounts. // Due to the need of reading conf files this script has to be located // inside the Aura web folder, or you have to adjust some paths. // --...
AlexFiFi/aura
web/register/index.php
PHP
gpl-3.0
2,763
<!DOCTYPE html> <html lang="fr"> <html> <head> <meta charset="UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <link rel="stylesheet" href="./assets/css/mail.css"/> </head> <body bgcolor="#E6E6FA"> <?php include 'back-submit...
WillemHeremans/CV
mail.php
PHP
gpl-3.0
2,850
// // Copyleft RIME Developers // License: GPLv3 // // 2013-04-18 GONG Chen <chen.sst@gmail.com> // #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> #include <rime/dict/table_db.h> #include <rime/dict/user_db.h> // Rime table entry format: // phrase <Tab> code [ <Tab> weight ] // for multi-sylla...
jinntrance/librime
src/dict/table_db.cc
C++
gpl-3.0
2,233
import React from 'react'; import { mount } from 'enzyme'; import { Link, HashRouter as Router } from 'react-router-dom'; import { Button } from 'react-bootstrap'; import BackHomeButton from '../BackHomeButton'; describe('<BackHomeButton/>', () => { it('<BackHomeButton /> should render <Router/>', () => { const ...
gcallah/Indra
webapp/src/components/__tests__/BackHomeButton.test.js
JavaScript
gpl-3.0
1,329
'use strict'; var Ose = require('ose'); var M = Ose.class(module, './index'); /** Docs {{{1 * @submodule bb.pagelet */ /** * @caption Dashboard pagelet * * @readme * Pagelet for creating dashboard content. * * @class bb.lib.pagelet.dashboard * @type class * @extends bb.lib.pagelet */ // Public {{{1 expor...
FredRooks/ose-bb
lib/pagelet/dashboard.js
JavaScript
gpl-3.0
2,656
#include<bits/stdc++.h> using namespace std; typedef long long LL; LL n,m,A,B,C; LL solve1(LL x,LL y){ LL ans=0; ans+=y*max(max(A,B),C); if(x%2==1){ ans+=max((x-1)*(A+C)/2,(x-1)*B); }else{ ans+=max((x-2)*(A+C)/2,(x-2)*B); ans+=max(B,min(A,C)); } return ans; } LL solve2(LL x,LL y){ LL ans=0; ans+=x*min(mi...
kzoacn/Grimoire
Training/8.15/J.cpp
C++
gpl-3.0
634
package io.github.notsyncing.cowherd.files; import io.github.notsyncing.cowherd.Cowherd; import io.github.notsyncing.cowherd.commons.CowherdConfiguration; import io.github.notsyncing.cowherd.commons.RouteType; import io.github.notsyncing.cowherd.models.ActionMethodInfo; import io.github.notsyncing.cowherd.models.Route...
notsyncing/cowherd
cowherd-core/src/main/java/io/github/notsyncing/cowherd/files/FileStorage.java
Java
gpl-3.0
11,054
package com.limelight.binding.input.driver; public interface UsbDriverListener { void reportControllerState(int controllerId, short buttonFlags, float leftStickX, float leftStickY, float rightStickX, float rightStickY, flo...
GTMoogle/StreamTheater
src/com/limelight/binding/input/driver/UsbDriverListener.java
Java
gpl-3.0
442
using Terraria; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace TutorialMod.Tiles { public class TutorialBiomeTile : ModTile { public override void SetDefaults() { Main.tileSolid[Type] = true;...
FoolsLynx/tutorial-mod
Tiles/TutorialBiomeTile.cs
C#
gpl-3.0
517
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) braces deadcode fieldsfirst package net.minecraft.src; import java.util.List; import java.util.Random; import net.minecraft.client.Minecraft; import org.lwjgl.input.Mou...
sethten/MoDesserts
mcp50/temp/src/minecraft/net/minecraft/src/GuiAchievements.java
Java
gpl-3.0
14,368
/* * Copyright (c) 2014 Amahi * * This file is part of Amahi. * * Amahi 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. * * A...
mehtamanan0/android
src/main/java/org/amahi/anywhere/AmahiModule.java
Java
gpl-3.0
2,855
/* * 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 distributed in the hope that it w...
waikato-datamining/adams-base
adams-imaging/src/main/java/adams/flow/transformer/exiftagoperation/ExifTagWriteOperation.java
Java
gpl-3.0
1,014
<?php /** * Project form base class. * * @package fynance * @subpackage form * @author Your name here */ abstract class BaseFormPropel extends sfFormPropel { public function setup() { } }
joseortega/finance
lib/form/BaseFormPropel.class.php
PHP
gpl-3.0
208
package org.fnppl.opensdx.security; /* * Copyright (C) 2010-2015 * fine people e.V. <opensdx@fnppl.org> * Henning Thieß <ht@fnppl.org> * * http://fnppl.org */ /* * Software license * * As far as this file or parts of this file is/are software, rather than documentation, this software-...
fnppl/openSDX
src/org/fnppl/opensdx/security/SubKey.java
Java
gpl-3.0
4,292
<?php class Sign_in_with_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function get_sign_with($name) { $this->db->select('setting, name'); $this->db->where('code', 'sign_in_with'); $this->db->where('name', $name); $this->...
xcalder/openant
public/models/setting/Sign_in_with_model.php
PHP
gpl-3.0
3,236
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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. // // Moodle...
danielbonetto/twig_MVC
lang/en_us/enrol_self.php
PHP
gpl-3.0
4,760
<?php namespace MCPETRADE\MultiTradeAPI\Commands; use pocketmine\Player; use pocketmine\command\CommandSender; use pocketmine\utils\TextFormat as TE; use MCPETRADE\MultiTradeAPI\MTAPI; use MCPETRADE\MultiTradeAPI\Commands\BaseCommand; Class FlyCommand extends BaseCommand { public function __construct(MTAPI $plu...
matrizzafox/MultiTradeAPI
src/MCPETRADE/MultiTradeAPI/Commands/FlyCommand.php
PHP
gpl-3.0
1,130
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Gr...
zeroadam/whats-my-grade
GradeCalculator/Properties/AssemblyInfo.cs
C#
gpl-3.0
1,452
package bpmn; public class DataStore extends Artifact { public DataStore() { super(); } public DataStore(int xPos, int yPos, String text) { super(); setText(text); } public String toString() { return "BPMN data store"; } }
AndreasMaring/text2model
src/bpmn/DataStore.java
Java
gpl-3.0
311
<?php /** * @package Arastta eCommerce * @copyright Copyright (C) 2015 Arastta Association. All rights reserved. (arastta.org) * @credits See CREDITS.txt for credits and other copyright notices. * @license GNU General Public License version 3; see LICENSE.txt */ class Affiliate { pri...
LinuxJedi/arastta
system/library/affiliate.php
PHP
gpl-3.0
3,696
# -*- coding: utf-8 -*- from exceptions import DropPage, AbortProcess
sunlightlabs/wikipedia-dump-tools
wikitools/__init__.py
Python
gpl-3.0
71
# -*- coding: utf-8 -*- import re from django.utils.safestring import mark_safe from django.contrib.admin.widgets import AdminFileWidget from django.template.defaultfilters import slugify from django.utils.encoding import smart_text from unidecode import unidecode from django.forms.widgets import FILE_INPUT_CONT...
redsolution/django-tinymce-attachment
attachment/widgets.py
Python
gpl-3.0
3,019
package com.fomdeveloper.planket.injection; import android.app.Application; import android.content.Context; import android.net.ConnectivityManager; import com.fomdeveloper.planket.BuildConfig; import com.fomdeveloper.planket.NetworkManager; import com.fomdeveloper.planket.bus.RxEventBus; import com.fomdeveloper.plan...
FernandoOrtegaMartinez/Planket
app/src/androidTest/java/com/fomdeveloper/planket/injection/MockAppModule.java
Java
gpl-3.0
9,898
/* * 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 distributed in the hope that it will be use...
donat-b/The-Powder-Toy
src/simulation/elements/VRSS.cpp
C++
gpl-3.0
2,113
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license a...
MailCleaner/MailCleaner
www/framework/Zend/Gdata/DublinCore/Extension/Subject.php
PHP
gpl-3.0
1,726
package asdf.test; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Stack; public class Solution { /** * (反转单词串 ) Given an input string, reverse the string word by word. * * For example, Given s = "the sky is blue", return "blue is sky the". ...
asdfdypro/LeetCode
151 Reverse Words in a String/src/asdf/test/Solution.java
Java
gpl-3.0
1,517
var express = require('express'), router = express.Router(), adminModel = require('../models/adminModel'), moment = require('moment'), helperFun = require('../lib/helperFunc'), md5 = require('md5'); router .get('',function (request,response){ adminModel.find({},{"__v" : 0, "password" : 0, "emailCode" : 0},fun...
adeeldev/courts
routers/adminRouter.js
JavaScript
gpl-3.0
2,766
Ember.Handlebars.helper('headTitle', function(title) { Ember.$('head').find('title').text(title); }, 'title');
therabble/yahara
app/helpers/head-title.js
JavaScript
gpl-3.0
112
package com.osiykm.flist.services.programs; import com.osiykm.flist.entities.Book; import com.osiykm.flist.enums.BookStatus; import com.osiykm.flist.repositories.BookRepository; import com.osiykm.flist.services.parser.FanfictionUrlParserService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factor...
osiykm/flist
src/main/java/com/osiykm/flist/services/programs/BookUpdaterProgram.java
Java
gpl-3.0
1,723
<?php /** * * @package mahara * @subpackage artefact-cloud * @author Gregor Anzelj * @license http://www.gnu.org/copyleft/gpl.html GNU GPL * @copyright (C) 2012-2016 Gregor Anzelj, info@povsod.com * */ defined('INTERNAL') || die(); $string['pluginname'] = 'Cloud service'; $string['c...
agwells/mahara-artefact-cloud
lang/en.utf8/artefact.cloud.php
PHP
gpl-3.0
3,343
import json from collections import ( Counter, defaultdict as deft ) from copy import deepcopy as cp # from cPickle import ( # dump as to_pickle, # load as from_pickle # ) from StringIO import StringIO from TfIdfMatrix import TfIdfMatrix from Tools import from_csv class CategoryTree: de...
JordiCarreraVentura/spellchecker
lib/CategoryTree.py
Python
gpl-3.0
7,145
""" File: foursquares.py Draws squares in the corners of a turtle window. One square is black, another is gray, and the remaining two are in random colors. """ from turtlegraphics import Turtle import random def drawSquare(turtle, x, y, length): turtle.up() turtle.move(x, y) turtle.setDirection(270) ...
gregpuzzles1/Sandbox
Example Programs/Ch_07_Student_Files/foursquares.py
Python
gpl-3.0
1,378
Puppet::Type.type(:foreman_architecture).provide(:rest) do confine :true => begin begin require 'oauth' require 'json' require 'puppet_x/theforeman/architecture' true rescue LoadError false end end mk_resource_methods def initialize(value={}) super(value) end ...
opentable/puppet-foreman
lib/puppet/provider/foreman_architecture/rest_v2.rb
Ruby
gpl-3.0
1,288
#ifndef GRAPH_INTERFACE_HPP #define GRAPH_INTERFACE_HPP #include "graphdsl.hpp" #include <vector> #include <utility> #include <type_traits> namespace netalgo { template<typename NodeType, typename EdgeType> class GraphInterface { private: static_assert(std::is_class<NodeType>::value, "NodeType must be a c...
htfy96/network_algo
include/graph_interface.hpp
C++
gpl-3.0
3,289
<?php class ExtensionManager{ var $extensions; function ExtensionManager(){ $this->extensions = array(); } function loadExtension($name, $path, $enabled){ if($enabled){ require_once($path); } $this->extensions[] = array("name" => $name, ...
Finalfantasykid/PenguinCMS
PenguinCMS/ExtensionManager.php
PHP
gpl-3.0
418
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 distrib...
kilon/sverchok
old_nodes/__init__.py
Python
gpl-3.0
4,863
/** * Copyright (C) 2005-2013, Stefan Strömberg <stefangs@nethome.nu> * * This file is part of OpenNetHome (http://www.nethome.nu) * * OpenNetHome 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...
SourceCodeSourcerer/NetHomeServer
home-items/rf-items/src/main/java/nu/nethome/home/items/nexa/NexaRemapButton.java
Java
gpl-3.0
5,234
# coding: utf-8 """ rita Pipeline .. module:: rita :synopsis: rita pipeline .. moduleauthor:: Adolfo De Unánue <nanounanue@gmail.com> """ import os import subprocess from pathlib import Path import boto3 import zipfile import io import csv import datetime import luigi import luigi.s3 import pandas as pd ...
nanounanue/rita-pipeline
rita/pipelines/rita.py
Python
gpl-3.0
6,982
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * Copyright (C) 2012-2015 Marco Craveiro <marco.craveiro@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 Fou...
DomainDrivenConsulting/dogen
projects/masd.dogen.generation.cpp/include/masd.dogen.generation.cpp/types/formattables/odb_file_path_generator.hpp
C++
gpl-3.0
1,729
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.9.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x07\x27\ \x00\ \x00\x1a\x8b\x78\x9c\xe5\x58\xdd\x8f\xdb\x36\x12\x7f\xdf\xbf\x82\ \x55\x1f\xd2\x4...
splotz90/urh
src/urh/ui/urh_rc.py
Python
gpl-3.0
463,208
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # compute/__init__.py """ See |compute.subsystem|, |compute.network|, |compute.distance|, and |compute.parallel| for documentation. Attributes: all_complexes: Alias for :func:`pyphi.compute.network.all_complexes`. ces: Alias for :func:`pyphi.compute.subsystem.ces...
wmayner/pyphi
pyphi/compute/__init__.py
Python
gpl-3.0
1,545
/// @file core/thread_sched.hh // Uniqos -- Unique Operating System // (C) 2012-2015 KATO Takeshi // // Uniqos 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 // ...
takeneco/uniqos
core/include/core/thread_sched.hh
C++
gpl-3.0
1,615
// Generated on 05/22/2016 17:50:29 using System; using System.Collections.Generic; using Dofus.Files.GameData; namespace Arcane.Protocol.Datacenter { [D2OClass(Mount.MODULE)] public class Mount : IDataObject { private const String MODULE = "Mounts"; public uint id; ...
Chuckame/Arcane_v2
Arcane_v2/Arcane.Protocol/Datacenter/mounts/Mount.cs
C#
gpl-3.0
383