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 mercurial import cmdutil
_hgignore_content = """\
syntax: glob
*~
*.pyc
*.pyo
*.bak
cache/*
databases/*
sessions/*
errors/*
"""
def commit():
app = request.args[0]
path = apath(app, r=request)
uio = ui.ui()
uio.quiet = True
if not os.environ.get('HGUSER') and not uio.config("ui", "usernam... | henkelis/sonospy | web2py/applications/admin/controllers/mercurial.py | Python | gpl-3.0 | 1,107 |
# coding=utf-8
"""InaSAFE Disaster risk tool by Australian Aid - Flood Raster Impact on
Population.
Contact : ole.moller.nielsen@gmail.com
.. note:: 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... | wonder-sk/inasafe | safe/impact_functions/inundation/flood_raster_population/metadata_definitions.py | Python | gpl-3.0 | 5,408 |
/**
*
*/
package cz.geokuk.core.napoveda;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.net.MalformedURLException;
import java.net.URL;
import cz.geokuk.core.program.FConst;
import cz.geokuk.framework.Action0;
import cz.geokuk.util.process.BrowserOpener;
/**
* @author Martin Vever... | marvertin/geokuk | src/main/java/cz/geokuk/core/napoveda/ZadatProblemAction.java | Java | gpl-3.0 | 1,073 |
/**
* Copyright 2013, 2014 Ioana Ileana @ Telecom ParisTech
* 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.
... | IoanaIleana/ProvCB | src/instance/Parser.java | Java | gpl-3.0 | 3,628 |
(function() {
'use strict';
angular
.module('app.grid')
.service('GridDemoModelSerivce', GridDemoModelSerivce)
.service('GridUtils',GridUtils)
.factory('GridFactory',GridFactory)
;
GridFactory.$inject = ['modelNode','$q','$filter'];
function GridFactory(m... | zppro/4gtour | src/vendor-1.x/js/modules/grid/grid.service.js | JavaScript | gpl-3.0 | 11,119 |
<?php
/**
* Core Class To Style RAD Builder Components
* @author Abhin Sharma
* @dependency none
* @since IOA Framework V1
*/
if(!class_exists('RADStyler'))
{
class RADStyler
{
function registerbgColor($key='' ,$target='')
{
$code ='<h5 class="sub-styler-title">'.__('Set Background Color',... | lithqube/sedesgroup | IT/wp-content/themes/limitless/backend/rad_builder/class_radstyler.php | PHP | gpl-3.0 | 7,651 |
#if defined (_MSC_VER) && !defined (_WIN64)
#pragma warning(disable:4244) // boost::number_distance::distance()
// converts 64 to 32 bits integers
#endif
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/IO/read_xyz_points.h>
#include <CGAL/Point_with_normal_3... | FEniCS/mshr | 3rdparty/CGAL/examples/Point_set_shape_detection_3/shape_detection_with_callback.cpp | C++ | gpl-3.0 | 3,227 |
public class Rectangulo {
public int Base;
public int Altura;
//Ejercicio realizado con ayuda de esta pagina:http://diagramas-de-flujo.blogspot.com/2013/02/calcular-perimetro-rectangulo-Java.html
//aqui llamamos las dos variables que utilizaremos.
Rectangulo(int Base, int Altura)
{
this.Base = Base;
this.Altu... | IvethS/Tarea2 | src/Rectangulo.java | Java | gpl-3.0 | 1,004 |
/*
* This file is part of "U Turismu" project.
*
* U Turismu is an enterprise application in support of calabrian tour operators.
* This system aims to promote tourist services provided by the operators
* and to develop and improve tourism in Calabria.
*
* Copyright (C) 2012 "LagrecaSpaccarotella" team.
*
* ... | spa-simone/u-turismu | src/main/java/uturismu/dao/BookingDao.java | Java | gpl-3.0 | 1,133 |
/**
* Module dependencies.
*/
var express = require('express')
, http = require('http')
, path = require('path')
, mongo = require('mongodb')
, format = require('util').format;
var app = express();
// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.se... | jkamga/INM5151-payGoStore | app.js | JavaScript | gpl-3.0 | 991 |
/*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2016 Cppcheck 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 Foundation, either version 3 of the License, or
* (at ... | Nicobubu/cppcheck | cli/cmdlineparser.cpp | C++ | gpl-3.0 | 46,169 |
<?php
/**
* Created by PhpStorm.
* User: Ermin Islamagić - https://ermin.islamagic.com
* Date: 22.8.2016
* Time: 09:37
*/
// Check if root path is defined
if (!defined("ROOT_PATH"))
{
// Show 403 if root path not defined
header("HTTP/1.1 403 Forbidden");
exit;
}
/**
* Class LocaleAppController
*/
c... | clientmarketing/food-factory | source/app/plugins/Locale/controllers/LocaleAppController.controller.php | PHP | gpl-3.0 | 1,402 |
/***************************************************************************
begin : Thu Apr 24 15:54:58 CEST 2003
copyright : (C) 2003 by Giuseppe Lipari
email : lipari@sssup.it
***************************************************************************/
/*********... | glipari/rtlib | src/jtrace.cpp | C++ | gpl-3.0 | 6,330 |
# -*- coding: utf-8 -*-
from django.shortcuts import render
from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
def centres(request):
#Python练习项目管理中心Center
return render(request, 'cen... | xBoye/xHome | centres/views.py | Python | gpl-3.0 | 1,162 |
import cv2
import numpy as np
np.set_printoptions(threshold=np.nan)
import util as util
import edge_detect
import lineseg
import drawedgelist
# img = cv2.imread("img/Slide2.jpg", 0)
img = cv2.imread("unsorted/Unit Tests/lambda.png", 0)
im_size = img.shape
returnedCanny = cv2.Canny(img, 50, 150, apertureSize = 3)
cv2.... | Jordan-Zhu/RoboVision | scratch/testingColorImg.py | Python | gpl-3.0 | 2,023 |
"use strict";
module.exports = function registerDefaultRoutes( baseUrl,
app,
opts ){
var controller = opts.controller;
var listRouter = app.route( baseUrl );
if( opts.all ){
listRouter = listRouter.all( opts.all... | beni55/d-pac.cms | app/routes/api/helpers/registerDefaultRoutes.js | JavaScript | gpl-3.0 | 999 |
package it.ads.activitiesmanager.model.dao;
import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Tran... | paoloap/activitiesmanager | activitiesmanager-model/src/main/java/it/ads/activitiesmanager/model/dao/AbstractDao.java | Java | gpl-3.0 | 1,147 |
#include "VRConstructionKit.h"
#include "selection/VRSelector.h"
#include "core/objects/geometry/VRGeometry.h"
#include "core/objects/material/VRMaterial.h"
#include "core/utils/toString.h"
#include "core/utils/VRFunction.h"
#include "core/setup/devices/VRDevice.h"
#include "core/setup/devices/VRSignal.h"
using names... | Victor-Haefner/polyvr | src/core/tools/VRConstructionKit.cpp | C++ | gpl-3.0 | 4,295 |
/*
_
/_\ _ _ ___ ___
/ _ \| '_/ -_|_-<
/_/ \_\_| \___/__/
*/
#include "Ares.h"
/*
Description:
Function that is called when the library is loaded, use this as an entry point.
*/
int __attribute__((constructor)) Ares() {
SDL2::SetupSwapWindow();
return 0;
}
| gitaphu/Ares | Source/Ares.cpp | C++ | gpl-3.0 | 277 |
#!/usr/bin/env python
# setup of the grid parameters
# default queue used for training
training_queue = { 'queue':'q1dm', 'memfree':'16G', 'pe_opt':'pe_mth 2', 'hvmem':'8G', 'io_big':True }
# the queue that is used solely for the final ISV training step
isv_training_queue = { 'queue':'q1wm', 'memfree':'32G', 'pe_opt... | guker/spear | config/grid/para_training_local.py | Python | gpl-3.0 | 1,092 |
package ca.six.tomato.util;
import org.json.JSONArray;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import org.robolectric.shadows.ShadowEnvironment;
import java.io.File;
import ca.six.tomato.BuildConfig;
import stati... | SixCan/SixTomato | app/src/test/java/ca/six/tomato/util/DataUtilsTest.java | Java | gpl-3.0 | 2,002 |
/*
* The basic test codes to check the AnglogIn.
*/
#include "mbed.h"
static AnalogIn ain_x(A6); // connect joistics' x axis to A6 pin of mbed
static AnalogIn ain_y(A5); // connect joistics' y axis to A5 pin of mbed
static void printAnalogInput(AnalogIn *xin, AnalogIn *yin)
{
uint8_t point[2] = { 0 };
point[0]... | Darkblue38/mbedTrust | MiniProjects/AnalogInOut/Joistick/TestAnalogInUsingJoistick.cpp | C++ | gpl-3.0 | 563 |
/***
* Copyright (c) 2013 John Krauss.
*
* This file is part of Crashmapper.
*
* Crashmapper 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 yo... | talos/nypd-crash-data-bandaid | map/src/views/app.js | JavaScript | gpl-3.0 | 1,396 |
/* ****************************************************************************
*
* Copyright Saab AB, 2005-2013 (http://safirsdkcore.com)
*
* Created by: Lars Hagström / stlrha
*
*******************************************************************************
*
* This file is part of Safir SDK Core.
*
* Safir SDK Core ... | SafirSDK/safir-sdk-core | src/dots/dots_dotnet.ss/src/ContainerBase.cs | C# | gpl-3.0 | 4,296 |
#!/usr/bin/python2
# -*- coding: utf-8 -*-
# coding=utf-8
import unittest
from datetime import datetime
from lib.escala import Escala
import dirs
dirs.DEFAULT_DIR = dirs.TestDir()
class FrameTest(unittest.TestCase):
def setUp(self):
self.escala = Escala('fixtures/escala.xml')
self.dir = dirs.T... | camponez/importescala | test/test_escala.py | Python | gpl-3.0 | 3,876 |
package net.thevpc.upa.impl;
import net.thevpc.upa.*;
import net.thevpc.upa.impl.transform.IdentityDataTypeTransform;
import net.thevpc.upa.impl.util.NamingStrategy;
import net.thevpc.upa.impl.util.NamingStrategyHelper;
import net.thevpc.upa.impl.util.PlatformUtils;
import net.thevpc.upa.types.*;
import net.thevpc.up... | thevpc/upa | upa-impl-core/src/main/java/net/thevpc/upa/impl/AbstractField.java | Java | gpl-3.0 | 27,988 |
#include "../../VM/Handler/Opcode8030Handler.h"
#include "../../VM/Script.h"
namespace Falltergeist
{
namespace VM
{
namespace Handler
{
Opcode8030::Opcode8030(VM::Script *script, std::shared_ptr<ILogger> logger) : OpcodeHandler(script)
{
this->logger = s... | falltergeist/falltergeist | src/VM/Handler/Opcode8030Handler.cpp | C++ | gpl-3.0 | 731 |
<?php
/**
* Fired during plugin activation.
*
* This class defines all code necessary to run during the plugin's activation.
*
* @link https://wordpress.org/plugins/woocommerce-role-based-price/
* @package Role Based Price For WooCommerce
* @subpackage Role Based Price For WooCommerce/core
* @since ... | technofreaky/WooCommerce-Role-Based-Price | includes/helpers/class-activator.php | PHP | gpl-3.0 | 2,218 |
<!-- jQuery -->
<script src="<?php echo base_url('assets/frontend/js/jquery.js') ?>"></script>
<!-- Bootstrap Core JavaScript -->
<script src="<?php echo base_url('assets/frontend/js/bootstrap.min.js') ?>"></script>
<!-- Contact Form JavaScript -->
<!-- Do not edit these files! In order to set the ... | SisteminformasisekolahMANCibadak/Sistem-informasi-sekolah-menggunakan-framewok-codeigniter-dengan-sub-modul-akademik | aplikasi/SIA_mancib/application/views/portalv/js.php | PHP | gpl-3.0 | 1,548 |
<?php
/*
* bla-tinymce
* Copyright (C) 2017 bestlife AG
* info: oxid@bestlife.ag
*
* 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) ... | vanilla-thunder/bla-tinymce | copy_this/modules/bla/bla-tinymce/application/core/blatinymceoxviewconfig.php | PHP | gpl-3.0 | 11,435 |
/*
* Copyright (C) 2016 Stuart Howarth <showarth@marxoft.co.uk>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be use... | marxoft/cutenews | plugins/independent/independentfeedrequest.cpp | C++ | gpl-3.0 | 13,483 |
package com.dmtools.webapp.config;
import com.dmtools.webapp.config.locale.AngularCookieLocaleResolver;
import org.springframework.boot.bind.RelaxedPropertyResolver;
import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Co... | jero-rodriguez/dmtools | src/main/java/com/dmtools/webapp/config/LocaleConfiguration.java | Java | gpl-3.0 | 1,616 |
/**
* This class is generated by jOOQ
*/
package com.aviafix.db.generated.tables.pojos;
import java.io.Serializable;
import java.time.LocalDate;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.5"
... | purple-sky/avia-fixers | app/src/main/java/com/aviafix/db/generated/tables/pojos/PAYBYCREDITCARDPROJECTION.java | Java | gpl-3.0 | 2,891 |
from test_support import *
# this test calls a prover which is correctly configured but whose execution
# gives an error (here: the prover executable doesn't exist). The intent is to
# test the output of gnatprove in this specific case
prove_all(prover=["plop"], opt=["--why3-conf=test.conf"])
| ptroja/spark2014 | testsuite/gnatprove/tests/N804-036__bad_prover/test.py | Python | gpl-3.0 | 296 |
import altConnect from 'higher-order-components/altConnect';
import { STATUS_OK } from 'app-constants';
import ItemStore from 'stores/ItemStore';
import ProgressBar from '../components/ProgressBar';
const mapStateToProps = ({ itemState }) => ({
progress: itemState.readingPercentage,
hidden: itemState.status !== ST... | BramscoChill/BlendleParser | information/blendle-frontend-react-source/app/modules/item/containers/ProgressBarContainer.js | JavaScript | gpl-3.0 | 518 |
/*
* Author: Bob Limnor (info@limnor.com)
* Project: Limnor Studio
* Item: Visual Programming Language Implement
* License: GNU General Public License v3.0
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
... | Limnor/Limnor-Studio-Source-Code | Source/LimnorDesigner/TypeSelector.cs | C# | gpl-3.0 | 2,549 |
/*
ComJail - A jail plugin for Minecraft servers
Copyright (C) 2015 comdude2 (Matt Armer)
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) ... | comdude2/ComJail | src/net/mcviral/dev/plugins/comjail/events/TeleportEvent.java | Java | gpl-3.0 | 1,828 |
package se.solit.timeit.resources;
import java.net.URI;
import java.net.URISyntaxException;
import javax.servlet.http.HttpSession;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
public class BaseResource
{
protected WebApplicationException redirect(String destination) throws URISynta... | Hoglet/TimeIT-Server | src/main/java/se/solit/timeit/resources/BaseResource.java | Java | gpl-3.0 | 703 |
/*
* This file is part of rasdaman community.
*
* Rasdaman community 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.
*
* Rasdam... | miracee/rasdaman | applications/petascope/src/main/java/petascope/wcs2/handlers/Response.java | Java | gpl-3.0 | 2,322 |
function createCategorySlider(selector)
{
$(document).ready(function(){
var checkforloadedcats = [];
var firstImage = $(selector).find('img').filter(':first');
if(firstImage.length > 0){
checkforloadedcats[selector] = setInterval(function() {
var image = firstImage.get(0);
if (image.complete || i... | desarrollosimagos/puroextremo.com.ve | modules/categoryslider/categoryslider.js | JavaScript | gpl-3.0 | 1,648 |
<?php
/**
* Skeleton subclass for performing query and update operations on the 'transaction' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* Sun Jul 17 20:02:37 2011
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be gen... | joseortega/finance | lib/model/basic/TransactionPeer.php | PHP | gpl-3.0 | 505 |
from itertools import combinations
def is_good(n):
return 1 + ((int(n) - 1) % 9) == 9
def generate_subsequences(n):
subsequences = []
combinations_list = []
index = 4
#Generate all combinations
while index > 0:
combinations_list.append(list(combinations(str(n), index)))
index... | Dawny33/Code | HackerEarth/BeCoder 2/nine.py | Python | gpl-3.0 | 882 |
package com.hacks.collegebarter.fragments;
import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.hacks.collegebarter.R;
import com.hacks.collegebarter.navdrawer.MainAppActivity;
publi... | ReggieSackey/CollegeBarter | CollegeBarter/src/com/hacks/collegebarter/fragments/TradeboardFragment.java | Java | gpl-3.0 | 1,009 |
# -*- coding: utf-8 -*-
from pyload.plugin.internal.DeadCrypter import DeadCrypter
class FiredriveCom(DeadCrypter):
__name = "FiredriveCom"
__type = "crypter"
__version = "0.03"
__pattern = r'https?://(?:www\.)?(firedrive|putlocker)\.com/share/.+'
__config = [] #@TODO: Remove in 0.4.10
... | ardi69/pyload-0.4.10 | pyload/plugin/crypter/FiredriveCom.py | Python | gpl-3.0 | 474 |
package visualk.gallery.db;
import java.awt.Color;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import visualk.db.MysqlLayer;
import visualk.gallery.objects.Artist;
import visualk.gallery.objects.Work;
public class DbGallery extends MysqlLayer{
public DbGallery(String us... | lamaken/visualk | src/java/visualk/gallery/db/DbGallery.java | Java | gpl-3.0 | 7,208 |
/**
* Java Settlers - An online multiplayer version of the game Settlers of Catan
* Copyright (C) 2003 Robert S. Thomas <thomas@infolab.northwestern.edu>
* Portions of this file Copyright (C) 2014,2017,2020 Jeremy D Monin <jeremy@nand.net>
*
* This program is free software; you can redistribute it and/or
* modif... | jdmonin/JSettlers2 | src/main/java/soc/message/SOCRejectConnection.java | Java | gpl-3.0 | 2,564 |
(function (angular) {
'use strict';
var config = {
githubApiUrl: 'https://api.github.com/',
};
angular.module('myGithubApp').constant('config', config);
})(angular);
| PetrusStarken/MyGit | app/scripts/app-config.js | JavaScript | gpl-3.0 | 180 |
/* Copyright 2013-2017 Matt Tytel
*
* helm 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.
*
* helm is distributed in the hope t... | mtytel/helm | src/look_and_feel/fonts.cpp | C++ | gpl-3.0 | 1,106 |
package org.codefx.jwos.file;
import org.codefx.jwos.analysis.AnalysisPersistence;
import org.codefx.jwos.artifact.AnalyzedArtifact;
import org.codefx.jwos.artifact.CompletedArtifact;
import org.codefx.jwos.artifact.DownloadedArtifact;
import org.codefx.jwos.artifact.FailedArtifact;
import org.codefx.jwos.artifact.Fai... | CodeFX-org/jdeps-wall-of-shame | src/main/java/org/codefx/jwos/file/YamlAnalysisPersistence.java | Java | gpl-3.0 | 9,278 |
package Calibradores;
import java.io.File;
import Metricas.MultiescalaConBorde;
import Modelo.UrbanizandoFrenos;
public class TanteadorTopilejo extends Tanteador {
UrbanizandoFrenos CA;
public TanteadorTopilejo() {
// int[] unConjuntoDeParametros = {1, 1, 1, 333, 333, 333, 1, 1, 444, 400, 400, 555};... | sostenibilidad-unam/crecimiento-urbano | Calibradores/TanteadorTopilejo.java | Java | gpl-3.0 | 2,250 |
/*
* Copyright (C) 2017 phantombot.tv
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dist... | MrAdder/PhantomBot | source/me/mast3rplan/phantombot/event/ytplayer/YTPlayerStateEvent.java | Java | gpl-3.0 | 1,295 |
package com.plasmablazer.tutorialmod.proxy;
public interface IProxy
{
}
| PlasmaBlazer/TutorialMod | src/main/java/com/plasmablazer/tutorialmod/proxy/IProxy.java | Java | gpl-3.0 | 74 |
using System;
namespace org.btg.Star.Rhapsody
{
public struct SkeletalPoint
{
public int x
{
get;
set;
}
public int y
{
get;
set;
}
public int z
{
get;
... | chrisatkin/star | Rhapsody/SkeletalPoint.cs | C# | gpl-3.0 | 447 |
package org.thoughtcrime.securesms.jobs;
import androidx.annotation.NonNull;
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies;
import org.thoughtcrime.securesms.jobmanager.Data;
import org.thoughtcrime.securesms.jobmanager.Job;
import org.thoughtcrime.securesms.jobmanager.impl.NetworkConstraint... | WhisperSystems/TextSecure | app/src/main/java/org/thoughtcrime/securesms/jobs/MultiDeviceVerifiedUpdateJob.java | Java | gpl-3.0 | 6,361 |
require_relative '../../spec_helper'
describe TypedRb::TypeSignature::Parser do
it 'parses a unit type' do
result = described_class.parse('unit')
expect(result).to eq(:unit)
end
it 'parses an atomic type' do
result = described_class.parse('Bool')
expect(result).to eq('Bool')
end
it 'parses... | antoniogarrote/typed.rb | spec/lib/type_signature/parser_spec.rb | Ruby | gpl-3.0 | 9,936 |
import queue
import logging
import platform
import threading
import datetime as dt
import serial
import serial.threaded
import serial_device
from .or_event import OrEvent
logger = logging.getLogger(__name__)
# Flag to indicate whether queues should be polled.
# XXX Note that polling performance may vary by platfor... | wheeler-microfluidics/serial_device | serial_device/threaded.py | Python | gpl-3.0 | 9,719 |
__author__ = "Harish Narayanan"
__copyright__ = "Copyright (C) 2009 Simula Research Laboratory and %s" % __author__
__license__ = "GNU GPL Version 3 or any later version"
from cbc.twist import *
from sys import argv
""" DEMO - Twisting of a hyperelastic cube """
class Twist(StaticHyperelasticity):
""" Definition... | hnarayanan/twist | demo/static/twist.py | Python | gpl-3.0 | 2,606 |
#include "house2.h"
int House2::objCount = 0;
GImage *House2::image = nullptr;
House2::House2(int x, int y)
{
posx = x;
posy = y;
width = 336;
height = 366;
if(!objCount)
image = new GImage("./assets/house-a.gif",width,height,GImage::IS_TRANSPARENT,0);
objCount++;
if(Debug::debug_en... | Tai-Min/Projekt-Inf2-AiR | game elements/tiles/house2.cpp | C++ | gpl-3.0 | 730 |
package com.silvermatch.advancedMod.block;
import com.silvermatch.advancedMod.init.ModBlocks;
import com.silvermatch.advancedMod.reference.Reference;
import com.silvermatch.advancedMod.utility.Names;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.Ent... | SilverMatch/TutoMineMaarten | src/main/java/com/silvermatch/advancedMod/block/BlockFrenchFlag.java | Java | gpl-3.0 | 901 |
using System;
using System.Linq;
using LeagueSharp;
using LeagueSharp.Common;
using EloBuddy;
using LeagueSharp.Common;
namespace ezEvade.SpecialSpells
{
class Darius : ChampionPlugin
{
static Darius()
{
// todo: fix for multiple darius' on same team (one for all)
}
... | eliteironlix/portaio2 | Core/Utility Ports/EzEvade/SpecialSpells/Darius.cs | C# | gpl-3.0 | 1,570 |
// Copyright (C) 1999-2021
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"
#include "basepolygon.h"
#include "fitsimage.h"
BasePolygon::BasePolygon(Base* p, const Vector& ctr,
const Vector& b)
: Marker(p, ctr, 0)
{
}
B... | SAOImageDS9/SAOImageDS9 | tksao/frame/basepolygon.C | C++ | gpl-3.0 | 4,927 |
package pg.autyzm.friendly_plans.manager_app.view.task_create;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGrou... | autyzm-pg/friendly-plans | Friendly-plans/app/src/main/java/pg/autyzm/friendly_plans/manager_app/view/task_create/TaskCreateFragment.java | Java | gpl-3.0 | 11,189 |
/**
Copyright 2010 Christian Kästner
This file is part of CIDE.
CIDE is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3 of the License.
CIDE is distributed in the hope th... | ckaestne/CIDE | CIDE_Export_Virtual/src/de/ovgu/cide/export/virtual/internal/IPPExportOptions.java | Java | gpl-3.0 | 2,375 |
class HomeController < ApplicationController
def index
@movies = Movie.all.sort_by{|movie| movie.rank}.reverse.first(7)
@books = Book.all.sort_by{|book| book.rank}.reverse.first(7)
@albums = Album.all.sort_by{|album| album.rank}.reverse.first(7)
end
end
| ricarora/media-ranker | app/controllers/home_controller.rb | Ruby | gpl-3.0 | 270 |
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
def initialize(info = {})
super(update_info(info,
'Name' =... | cSploit/android.MSF | modules/auxiliary/gather/solarwinds_orion_sqli.rb | Ruby | gpl-3.0 | 3,119 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.0... | abeym/incubator | Trials/hdp/reference-apps/iot-trucking-app/trucking-data-simulator/src/main/java/hortonworks/hdp/refapp/trucking/simulator/impl/domain/transport/route/jaxb/package-info.java | Java | gpl-3.0 | 584 |
<?php
/**
* Mahara: Electronic portfolio, weblog, resume builder and social networking
* Copyright (C) 2006-2009 Catalyst IT Ltd and others; see:
* http://wiki.mahara.org/Contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU G... | richardmansfield/richardms-mahara | htdocs/artefact/resume/composite.json.php | PHP | gpl-3.0 | 2,211 |
<?php
$client = ClientData::getById($_GET["id"]);
$client->del();
$_SESSION['message'] = L::messages_del_with_success;
$_SESSION['alert_type'] = 'success';
Core::redir("./index.php?view=clients");
?> | CTA-IFRS/Sistema-bibliotecario | core/modules/index/action/delclient/action-default.php | PHP | gpl-3.0 | 201 |
/**
* @addtogroup OutputTranslator
* @{
* @file OutputTranslator/Scala.hh
* @author Massimiliano Pagani
* @version 1.0
* @date 2016-10-18
*
*/
#if !defined( OUTPUTTRANSLATOR_SCALA_HH )
#define OUTPUTTRANSLATOR_SCALA_HH
#include "OutputTranslator/Base.hh"
#include "Tydal/Grammar/BaseType.hh"
#include "Tydal/G... | maxpagani/tydal | Sources/OutputTranslator/Scala.hh | C++ | gpl-3.0 | 3,843 |
'use strict';
angular.module('aurea')
.directive('d3Bars', function ($window, $timeout, d3Service) {
return {
restrict: 'EA',
scope: {
data: '=',
onClick: '&'
},
link: function (scope, ele, attrs) {
d3Service.d3... | apuliasoft/aurea | public/js/directives/d3.js | JavaScript | gpl-3.0 | 4,457 |
package com.softech.ls360.lms.api.proxy.service;
import com.softech.vu360.lms.webservice.message.lmsapi.serviceoperations.user.AddUserResponse;
import com.softech.vu360.lms.webservice.message.lmsapi.serviceoperations.user.UpdateUserResponse;
import com.softech.vu360.lms.webservice.message.lmsapi.types.user.UpdateableU... | haider78github/apiProxy | LmsApiProxy/src/main/java/com/softech/ls360/lms/api/proxy/service/LmsApiUserService.java | Java | gpl-3.0 | 685 |
<!-- <div class="jumbotron">
<h1>Welcome!</h1>
<?php echo $content->getHtml(); ?>
</div> -->
<div class="row" style="padding: 15px;">
<?php
$bgcolors = array('blue','green','orange','grey');
$i=0;
foreach($content->children as $child){
$mod = $i % count($bgcolors);
$color = $bgcolors[$mod];
... | deependhulla/powermail-debian9 | files/rootdir/usr/local/src/groupoffice-6.3/modules/manualsite/views/site/manualsite/home.php | PHP | gpl-3.0 | 514 |
package cz.cuni.lf1.lge.ThunderSTORM.estimators;
import cz.cuni.lf1.lge.ThunderSTORM.detectors.CentroidOfConnectedComponentsDetector;
import cz.cuni.lf1.lge.ThunderSTORM.estimators.PSF.EllipticGaussianPSF;
import cz.cuni.lf1.lge.ThunderSTORM.estimators.PSF.EllipticGaussianWAnglePSF;
import cz.cuni.lf1.lge.ThunderSTORM... | imunro/thunderstorm | src/test/java/cz/cuni/lf1/lge/ThunderSTORM/estimators/EstimatorsTest.java | Java | gpl-3.0 | 6,620 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# dépendances
import requests
import xml.dom.minidom
import sys
import signal
import os
import getopt
from queue import Queue
from threading import Thread
import time
class SetQueue(Queue):
def _init(self, maxsize):
Queue._init(self, maxsize)
self.a... | adalmieres/scriptsIBMConnections | IBMConnectionsSocialGraph.py | Python | gpl-3.0 | 8,111 |
package org.renjin.invoke.codegen;
import com.google.common.collect.Lists;
import com.sun.codemodel.*;
import org.apache.commons.math.complex.Complex;
import org.renjin.invoke.annotations.PreserveAttributeStyle;
import org.renjin.invoke.model.JvmMethod;
import org.renjin.invoke.model.PrimitiveModel;
import org.renjin.... | hlin09/renjin | core/src/main/java/org/renjin/invoke/codegen/DeferredVectorBuilder.java | Java | gpl-3.0 | 16,612 |
/*
* Geopaparazzi - Digital field mapping on Android based devices
* Copyright (C) 2016 HydroloGIS (www.hydrologis.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 ... | geopaparazzi/geopaparazzi | geopaparazzi_core/src/main/java/eu/geopaparazzi/core/preferences/ForceLocalePreference.java | Java | gpl-3.0 | 4,020 |
/*
* Author: patiphat mana-u-krid (dew)
* E-Mail: dewtx29@gmail.com
* facebook: https://www.facebook.com/dewddminecraft
*/
package dewddgetaway;
import java.util.Random;
import java.util.Stack;
import org.bukkit.Bukkit;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
im... | dewtx29/dewdd_minecraft_plugins | old/dewdd_getaway/src/dewddgetaway/dewgetaway2.java | Java | gpl-3.0 | 13,351 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# pkpgcounter : a generic Page Description Language parser
#
# (c) 2003-2009 Jerome Alet <alet@librelogiciel.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 Soft... | lynxis/pkpgcounter | setup.py | Python | gpl-3.0 | 2,361 |
const actions = {
// Video ended
ended({dispatch,commit}, video) {
video.isPlaying = false;
dispatch('next', video);
commit('PLAYING',video);
},
// Add video to queue
addToQueue({state, dispatch, commit }, obj) {
var index = _.findIndex(state.qu... | iamspal/playtube | src/store/actions.js | JavaScript | gpl-3.0 | 2,955 |
// core
import React from 'react';
import PropTypes from 'react';
// components
import Loading from '../../components/loading/Loading';
// styles
var style = require('./_index.scss');
// data
var Timeline = require('react-twitter-widgets').Timeline;
var Twitter = React.createClass({
getInitialState: function()... | JoeDahle/fic | app/components/twitter/Twitter.js | JavaScript | gpl-3.0 | 946 |
/*
===========================================================================
Copyright (c) 2010-2014 Darkstar Dev Teams
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... | maikuru23/darkstar | src/map/utils/battlefieldutils.cpp | C++ | gpl-3.0 | 15,998 |
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
// Fichier source, a modifier dans svn://zone.spip.org/spip-zone/_plugins_/seo/lang/
if (!defined('_ECRIRE_INC_VERSION')) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
// S
'S.E.O' => 'SEO',
// A
'alexa' => 'Alexa',
'alexa_activate'... | VertigeASBL/genrespluriels | plugins/seo-v1/lang/seo_fr.php | PHP | gpl-3.0 | 2,485 |
/*
* Copyright (C) 2017 GG-Net 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program i... | gg-net/dwoss | ui/redtapext/src/main/java/eu/ggnet/dwoss/redtapext/ui/cao/document/package-info.java | Java | gpl-3.0 | 865 |
using System;
using System.Threading;
using Viki.LoadRunner.Engine.Core.Scenario.Interfaces;
using Viki.LoadRunner.Engine.Strategies.Replay.Interfaces;
using Viki.LoadRunner.Engine.Strategies.Replay.Scheduler.Interfaces;
namespace Viki.LoadRunner.Playground.Replay
{
public class ReplayScenario : IReplayScenario<s... | Vycka/LoadRunner | src/Viki.LoadRunner.Playground/Replay/ReplayScenario.cs | C# | gpl-3.0 | 2,474 |
#!/usr/bin/env python
"""This utility script was adopted from StackExchange:
http://stackoverflow.com/questions/12090503/listing-available-com-ports-with-python
Adopted for use with arduino_GC connection project
"""
import sys
import glob
import serial
def serial_ports():
""" Lists serial port names
:ra... | Mobleyta/GasChromino | PythonCode/serial_ports.py | Python | gpl-3.0 | 1,189 |
function Greeter(person) {
return "Hello, " + person;
}
var RandomGuy = "Random Dude";
alert(Greeter(RandomGuy));
//# sourceMappingURL=HelloWorld.js.map | LenardHessHAW/TypeScriptTesting | JavaScript/HelloWorld.js | JavaScript | gpl-3.0 | 156 |
<?php
namespace sebastiangolian\php\logger;
/*
Logger::getInstance()->addDefaultLog('test');
Logger::getInstance()->addLog(new Message('type', 'message'));
echo Logger::getInstance()->generateAllMessages();
*/
class Logger
{
private static $instance;
private $messages = [];
private ... | sebastiangolian/php | logger/Logger.php | PHP | gpl-3.0 | 1,533 |
/**
* This file defines the fitness_params object.
*
* TODOs:
* - a few TODOs in the file but ok
*
* FINISHED!
*
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.IO;
using toolbox;
/**
* namespace for biogas plant optimization
*
* Definition of:
* -... | dgaida/matlab_toolboxes | biogas_c#/scripts/scripts/toolbox/optim_params/fitness_params.cs | C# | gpl-3.0 | 12,539 |
/*
_ _ _ _
___| (_) ___| | __ (_)___
/ __| | |/ __| |/ / | / __|
\__ \ | | (__| < _ | \__ \
|___/_|_|\___|_|\_(_)/ |___/
|__/
Version: 1.8.1
Author: Ken Wheeler
Website: http://kenwheeler.github.io
Docs: http://kenwheeler.github.io/slick
Repo: http://github.com/kenwh... | JoeSz/exopite-multifilter | exopite-multifilter/public/js/slick.dev.js | JavaScript | gpl-3.0 | 90,524 |
namespace BarionClientLibrary.Operations.Common
{
public class ShippingAddress
{
public string Country { get; set; }
public string City { get; set; }
public string Region { get; set; }
public string Zip { get; set; }
public string Street { get; set; }
public stri... | szelpe/barion-dotnet | BarionClientLibrary/Operations/Common/ShippingAddress.cs | C# | gpl-3.0 | 444 |
#include <iostream>
#include <stdexcept>
#include <vector>
#include "latticeBase.hpp"
#include "collisionBase.hxx"
#include "latticeNode.hxx"
#include "latticeModel.hxx"
#include "ZouHeNode.hpp"
#include "latticeNode.hxx"
ZouHeNode::ZouHeNode
(
latticeBase &lb,
collisionBase &cb,
latticeModelD2Q9 &D2Q9,... | zhishang72/OpenLBM | src/ZouHeNode.cpp | C++ | gpl-3.0 | 8,375 |
package net.minecraft.server;
import java.io.IOException;
public class PacketPlayOutEntityHeadRotation implements Packet<PacketListenerPlayOut> {
private int a;
private byte b;
public PacketPlayOutEntityHeadRotation() {}
public PacketPlayOutEntityHeadRotation(Entity entity, byte b0) {
this.... | bergerkiller/SpigotSource | src/main/java/net/minecraft/server/PacketPlayOutEntityHeadRotation.java | Java | gpl-3.0 | 839 |
package cmake.icons;
import com.intellij.openapi.util.IconLoader;
import javax.swing.*;
/**
* Created by alex on 12/21/14.
*/
public class CMakeIcons {
public static final Icon FILE = IconLoader.getIcon("/icons/cmake.png");
public static final Icon MACRO = IconLoader.getIcon("/icons/hashtag.png");
publ... | dubrousky/CMaker | src/cmake/icons/CMakeIcons.java | Java | gpl-3.0 | 462 |
/*
* Cantata
*
* Copyright (c) 2011-2013 Craig Drummond <craig.p.drummond@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 2 of the License, or
* (a... | polpo/cantata-mac | devices/umsdevice.cpp | C++ | gpl-3.0 | 8,544 |
HostCMS 6.7 = 9fdd2118a94f53ca1c411a7629edf565
| gohdan/DFC | known_files/hashes/admin/wysiwyg/plugins/imagetools/plugin.min.js | JavaScript | gpl-3.0 | 47 |
def _setup_pkgresources():
import pkg_resources
import os
import plistlib
pl = plistlib.readPlist(os.path.join(
os.path.dirname(os.getenv('RESOURCEPATH')), "Info.plist"))
appname = pl.get('CFBundleIdentifier')
if appname is None:
appname = pl['CFBundleDisplayName']
path = os... | nCoda/macOS | .eggs/py2app-0.14-py2.7.egg/py2app/bootstrap/setup_pkgresource.py | Python | gpl-3.0 | 453 |
<?php
/**
* Kunena Plugin
* @package Kunena.Plugins
* @subpackage Joomla16
*
* @Copyright (C) 2008 - 2012 Kunena Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.org
**/
defined ( '_JEXEC' ) or die ();
class plgKunenaJoomla extends JPlugin {
public f... | 810/k3.0-frontend | administrator/components/com_kunena/install/plugins/plg_kunena_joomla/joomla.php | PHP | gpl-3.0 | 1,295 |
<?php
/**
* Automatically loads the specified file.
*
* @package PluginName\Lib
*/
namespace PluginName\Lib;
/**
* Automatically loads the specified file.
*
* Examines the fully qualified class name, separates it into components, then creates
* a string that represents where the file is loaded on disk.
*
* ... | bjonesy/plugin-name | lib/autoloader.php | PHP | gpl-3.0 | 1,681 |
/*
Copyright (C) 2011 Equinor ASA, Norway.
The file 'rsh_driver.c' is part of ERT - Ensemble based Reservoir Tool.
ERT 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... | andreabrambilla/libres | lib/job_queue/rsh_driver.cpp | C++ | gpl-3.0 | 14,676 |
require 'package'
class Harfbuzz < Package
description 'HarfBuzz is an OpenType text shaping engine.'
homepage 'https://www.freedesktop.org/wiki/Software/HarfBuzz/'
version '1.7.6-0'
source_url 'https://github.com/harfbuzz/harfbuzz/releases/download/1.7.6/harfbuzz-1.7.6.tar.bz2'
source_sha256 'da7bed39134826... | thedamian/chromebrew | packages/harfbuzz.rb | Ruby | gpl-3.0 | 1,486 |