id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
d09fee8b8e57c60b5fa41d97a36439436c93823772d26bdcbf31ced7e78042f9 | <form class="form-horizontal" method="POST" action="{{ request.url }}">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">{{ _('Edit Participant') }}</h4>
</div>
<div class="modal-body" style="padding-bot... | HTML | apollo/frontend/templates/frontend/participant_edit_modal.html | nditech/elections | gpl-3.0 | 1,808 | 41 | codeparrot/github-code |
6df44a4f299891064d87e8e59abe52ce4c5c3acfb9fa111171c064ff7a67adbc | 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... | Python | serial_device/threaded.py | wheeler-microfluidics/serial_device | gpl-3.0 | 9,719 | 273 | codeparrot/github-code |
7c43410e3bea63ec8e8ff8684c6a4fe05ceaad986f158c79d03dd8b22937e653 | __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... | Python | demo/static/twist.py | hnarayanan/twist | gpl-3.0 | 2,606 | 77 | codeparrot/github-code |
852435952a8fde50ff0fb653741b06c48f933aa627fff1f7cd7da3cadd8dc46a | 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)
}
... | C# | Core/Utility Ports/EzEvade/SpecialSpells/Darius.cs | eliteironlix/portaio2 | gpl-3.0 | 1,570 | 48 | codeparrot/github-code |
2902f5c9bb8412a0f605537cf75d7f497689f9b5691fa9905e866a35d55025d6 | // 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... | C++ | tksao/frame/basepolygon.C | SAOImageDS9/SAOImageDS9 | gpl-3.0 | 4,927 | 236 | codeparrot/github-code |
fb91e39107a6e827713161e50a31ffb57b46a725afc63d8a9dd6b7ec9519fe67 | 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... | Java | Friendly-plans/app/src/main/java/pg/autyzm/friendly_plans/manager_app/view/task_create/TaskCreateFragment.java | autyzm-pg/friendly-plans | gpl-3.0 | 11,189 | 309 | codeparrot/github-code |
1754a6a6ad7c62bedec68659d065b732e04c19664b16ebe30cd385ea894ecb95 | /**
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... | Java | CIDE_Export_Virtual/src/de/ovgu/cide/export/virtual/internal/IPPExportOptions.java | ckaestne/CIDE | gpl-3.0 | 2,375 | 81 | codeparrot/github-code |
7c197d70480e28f1444dcc7dc0fc6b8461c0147a182b856a343882ce9ceb4650 |
/**
* \file stack.c
*
* Time-stamp: "2012-03-31 13:16:41 bkorb"
*
* This is a special option processing routine that will save the
* argument to an option in a FIFO queue.
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
* AutoOpts is Copyright (c) 1992-2012 ... | C | src/libopts/stack.c | nobled/gnutls | gpl-3.0 | 7,335 | 265 | codeparrot/github-code |
40acacd0df28264585b00dae11421d905c6d354b8c7db57860ef339cff97ae89 | ##
# 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' =... | Ruby | modules/auxiliary/gather/solarwinds_orion_sqli.rb | cSploit/android.MSF | gpl-3.0 | 3,119 | 100 | codeparrot/github-code |
a92145c370ddb4bab69305910f661c5863c2e9de7329e57d7c859c17de1d2314 | /*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
Copyright (C) 2008-2014 Marco Costalba, Joona Kiiski, Tord Romstad
Stockfish is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License a... | C | src_c++11/thread.h | Kozlov-Sergey/Wizard-Junior-chess | gpl-3.0 | 4,548 | 156 | codeparrot/github-code |
fb46e2042a594e98cf77276615225cd0824bb6048f6b38e081bb5a052b84d05a | <?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... | PHP | htdocs/artefact/resume/composite.json.php | richardmansfield/richardms-mahara | gpl-3.0 | 2,211 | 79 | codeparrot/github-code |
2b7c92b1adbde06db1424547b766ed31d7d097789bdb0061769549bf26363018 | /**
* @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... | C++ | Sources/OutputTranslator/Scala.hh | maxpagani/tydal | gpl-3.0 | 3,843 | 83 | codeparrot/github-code |
9540a1d94d9acf07449b977d6ba3f16a96e53d1db047781fe6a031b71085571a | {% load wagtailcore_tags wagtailimages_tags jetstream_tags %}
<div class="row-wrapper {{ self.style }}
{% if self.background.background_color or self.background.background_image %} bg {% endif %}
{% if self.background.background_color and not self.background.background_image %} bg-color-{{ self.background.backgrou... | HTML | jetstream/templates/jetstream/blocks/layout/four_column_block.html | caltechads/wagtail-jetstream | gpl-3.0 | 4,509 | 84 | codeparrot/github-code |
9d83f49ff2e3bc80802940bf09c9479d0f965e99d33c06ba4c503bc72b46c20c | /* ptinit.c - ptinit */
#include <xinu.h>
struct ptnode *ptfree; /* list of free message nodes */
struct ptentry porttab[NPORTS]; /* port table */
int32 ptnextid; /* next table entry to try */
/*------------------------------------------------------------------------
* ptinit -- initialize all ports
*----... | C | xinu/system/ptinit.c | rhexsel/xinu-cMIPS | gpl-3.0 | 1,044 | 41 | codeparrot/github-code |
32be4e1ec1118ec4376c13af85f8ceb04a32879d9bd665115b8c8225c7adf1b7 | 'use strict';
angular.module('aurea')
.directive('d3Bars', function ($window, $timeout, d3Service) {
return {
restrict: 'EA',
scope: {
data: '=',
onClick: '&'
},
link: function (scope, ele, attrs) {
d3Service.d3... | JavaScript | public/js/directives/d3.js | apuliasoft/aurea | gpl-3.0 | 4,457 | 110 | codeparrot/github-code |
e8b9aee0421d8ebaf2c73c75e4ac48e8827fb67f200280b39ee1cec1a8ca9e08 | 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... | Java | src/test/java/cz/cuni/lf1/lge/ThunderSTORM/estimators/EstimatorsTest.java | imunro/thunderstorm | gpl-3.0 | 6,620 | 153 | codeparrot/github-code |
4077d8835590f7b2e973dba400e036be3402bfb9559ec8f7cbdf28ced82d6629 | 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.... | Java | core/src/main/java/org/renjin/invoke/codegen/DeferredVectorBuilder.java | hlin09/renjin | gpl-3.0 | 16,612 | 500 | codeparrot/github-code |
ed71b774f96931831a63fc1f460f7a0ff5c255333653acf60157ea30fc13ecf1 | /*
* 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 ... | Java | geopaparazzi_core/src/main/java/eu/geopaparazzi/core/preferences/ForceLocalePreference.java | geopaparazzi/geopaparazzi | gpl-3.0 | 4,020 | 111 | codeparrot/github-code |
33c2d768038662f7db75bd813c3943214a5873bc9761bfddfb833e381fa67639 | /*
* 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... | Java | old/dewdd_getaway/src/dewddgetaway/dewgetaway2.java | dewtx29/dewdd_minecraft_plugins | gpl-3.0 | 13,351 | 571 | codeparrot/github-code |
7a526b736928002cea62c5798f4235b84cfb181b7470309670bea38ace031b7e | <?php
class removeAccents extends CommonServices{
private $accented;
private $unaccented;
public function __construct($string) {
$this->accented = $string;
$this->unaccented = $this->removeAccents($string);
}
public function get(){
return $this->unaccen... | PHP | startup/protected/components/CommonServices/removeAccents.php | futurable/futural | gpl-3.0 | 10,085 | 160 | codeparrot/github-code |
832a4611dcd437036bf00bdf1257d0407aef3c2bac3a5a16cae7ad6d0445292c | 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... | JavaScript | src/store/actions.js | iamspal/playtube | gpl-3.0 | 2,955 | 82 | codeparrot/github-code |
d9f9757e22bc074908fb997fb51518a5afec25a872d47bdd2fa712244e89d4cf | <!DOCTYPE html>
<html>
<head>
<title>Washington State Courts - Supreme Court Calendar </title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-cache... | HTML | sources/wasc/2003/01/22-docket.html | jeffpar/courtcasts | gpl-3.0 | 13,526 | 314 | codeparrot/github-code |
b9e31b7a24a0120f48f44fca376772738c54b065efb43a531cbd905864a80345 | package com.baeldung.collection.filtering;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import org.hamcrest.Matchers;
import org.junit.Assert;
import org.junit.Test;
/**
* Various filtering examples.
*
* @author Rodolfo Felip... | Java | projects/tutorials-master/tutorials-master/core-java-modules/core-java-collections-list-2/src/test/java/com/baeldung/collection/filtering/CollectionFilteringUnitTest.java | Niky4000/UsefulUtils | gpl-3.0 | 2,531 | 74 | codeparrot/github-code |
e5f6e1c0bdcb848698d89a7e0bd5b8b4ec92312e772ccddcd3da0842f50ce26d | // 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()... | JavaScript | app/components/twitter/Twitter.js | JoeDahle/fic | gpl-3.0 | 946 | 51 | codeparrot/github-code |
8eb0617269222df41d759b56d2e4a3733cfb872a5ead577905bbc82014ee5a57 | /*
===========================================================================
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... | C++ | src/map/utils/battlefieldutils.cpp | maikuru23/darkstar | gpl-3.0 | 15,996 | 459 | codeparrot/github-code |
5281781fff1e38bff5ca50a78dc999ce7e4579acd84c9e7b368c63793d0acad4 | 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... | C# | src/Viki.LoadRunner.Playground/Replay/ReplayScenario.cs | Vycka/LoadRunner | gpl-3.0 | 2,472 | 64 | codeparrot/github-code |
be3e3ccf8402f7f697d933b37f1dd7b57e66b091c9ba63f8d13fa1c21c2c623a | #!/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... | Python | PythonCode/serial_ports.py | Mobleyta/GasChromino | gpl-3.0 | 1,189 | 43 | codeparrot/github-code |
6e69b5867d24e154420facc93211fc30f2cd8f8b656cc374517dde7be5f12627 | <?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 ... | PHP | logger/Logger.php | sebastiangolian/php | gpl-3.0 | 1,533 | 65 | codeparrot/github-code |
11a38f786be859b7d3899c162205c883c381c19672002c55d1fe6fc619df2687 | /**
* 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:
* -... | C# | biogas_c#/scripts/scripts/toolbox/optim_params/fitness_params.cs | dgaida/matlab_toolboxes | gpl-3.0 | 12,534 | 368 | codeparrot/github-code |
0f5470d7b477dab9bd092fee8c242b9a0440bfc4f55861a419f058f7d65627f1 | /* This file is part of libcuzmem
Copyright (C) 2011 James A. Shackleford
libcuzmem 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 l... | C | tuner_exhaust.c | tshack/libcuzmem | gpl-3.0 | 6,949 | 193 | codeparrot/github-code |
02db30da79251483407c1ea34694096d2718ed6da34cf44633007cdef383385b | /* Copyright 2004,2007,2008,2010,2011,2014 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distri... | C | ThirdParty-0.1/scotch_6.0.3/src/libscotch/bgraph_bipart_bd.c | HopeFOAM/HopeFOAM | gpl-3.0 | 29,153 | 600 | codeparrot/github-code |
5e0d9c12a28f64ec779d9584a77a2af0e429af2b9f60daab0ee96433fe792662 | <?php
/**
* Usage Statistics
*
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2019 MyAAC
* @link https://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
class Usage_Statistics {
private static $report_url = 'https://my-aac.org/report_usage.php';
public st... | PHP | system/libs/usage_statistics.php | slawkens/myaac | gpl-3.0 | 3,356 | 120 | codeparrot/github-code |
ba13eb905ef885f3bc786b0602c32fd600641d37f81a1ce003b80795b66fcb04 | using System;
using System.Linq;
using LeagueSharp;
using LeagueSharp.Common;
using Slutty_ryze.Properties;
namespace Slutty_ryze
{
internal class Program
{
readonly static Random Seeder = new Random();
private static bool _casted;
private static int _lastw;
#region onload
... | C# | 英雄脚本/【红叶推介】Slutty 瑞兹/Program.cs | 654955321/HY_Recommend | gpl-3.0 | 11,622 | 306 | codeparrot/github-code |
2bcd07f19009bb4c6de5595986f4fcc320ce6a16012ec56d1c3aa1a93c278e6d | /*
_ _ _ _
___| (_) ___| | __ (_)___
/ __| | |/ __| |/ / | / __|
\__ \ | | (__| < _ | \__ \
|___/_|_|\___|_|\_(_)/ |___/
|__/
Version: 1.8.1
Author: Ken Wheeler
Website: http://kenwheeler.github.io
Docs: http://kenwheeler.github.io/slick
Repo: http://github.com/kenwh... | JavaScript | exopite-multifilter/public/js/slick.dev.js | JoeSz/exopite-multifilter | gpl-3.0 | 90,524 | 3,053 | codeparrot/github-code |
4ad8b63fcd2dd1626aeda7910321e11b73f8c41090e6428a6cf7411d2f9102fb | /*******************************************************************************************************************************************************
* Copyright ¨Ï 2016 <WIZnet Co.,Ltd.>
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f... | C | W7500P-Tau-FW/Projects/Peripheral_Examples/ADC/Illumination_RGBLED/W7500x_it.h | arm8686/W7500P-Tau | gpl-3.0 | 3,886 | 92 | codeparrot/github-code |
b64254210ace60a24be51b32a5618e23779926d0951f110070f15f88cbb1a377 | /*
* Moondust, a free game engine for platform game making
* Copyright (c) 2014-2019 Vitaly Novichkov <admin@wohlnet.ru>
*
* This software is licensed under a dual license system (MIT or GPL version 3 or later).
* This means you are free to choose with which of both licenses (MIT or GPL version 3 or later)
* you ... | C | Engine/data_configs/obj_npc.h | Wohlhabend-Networks/PGE-Project | gpl-3.0 | 2,920 | 100 | codeparrot/github-code |
8ce6489274368d15e9f41897687f427a5f1614260d6dc8d520ff613e717f0d25 | -----------------------------------
-- Catastrophe
-- Scythe weapon skill
-- Skill Level: N/A
-- Drain target's HP. Bec de Faucon/Apocalypse: Additional effect: Haste
-- This weapon skill is available with the stage 5 relic Scythe Apocalypse or within Dynamis with the stage 4 Bec de Faucon.
-- Also available without Af... | Lua | scripts/globals/weaponskills/catastrophe.lua | Fenix-XI/Fenix | gpl-3.0 | 2,090 | 47 | codeparrot/github-code |
1ca44bbdd5aa85bdfd19ae84ea29c8570fc283b24e438b0c2255a6831e63e2e4 | /*! \file st.h
\brief Class representing FPU's ST register.
*/
#ifdef ST_H
#error Already included
#else
#define ST_H
class st: public reg
{
public:
st();
st(std::string const &name);
~st();
st &operator()(size_t i);
std::string name() const override;
private:
... | C | src/st.h | aelfimow/cppasm | gpl-3.0 | 559 | 31 | codeparrot/github-code |
6aa1eb75dbf21bc442574b02fb57f78374ad08a4cb3f8bf170e219d4f32b2237 | #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,... | C++ | src/ZouHeNode.cpp | zhishang72/OpenLBM | gpl-3.0 | 8,375 | 239 | codeparrot/github-code |
a227aa776e499bc0945f2f0951e6d914fb8984681cbf1f48f7d6379eae4902e5 | 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.... | Java | src/main/java/net/minecraft/server/PacketPlayOutEntityHeadRotation.java | bergerkiller/SpigotSource | gpl-3.0 | 839 | 31 | codeparrot/github-code |
8a32a5473421b8fa1573d2860a3737f2ab4a5a2528fe97fe834349b14631c580 | /*
* 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... | C++ | devices/umsdevice.cpp | polpo/cantata-mac | gpl-3.0 | 8,544 | 295 | codeparrot/github-code |
c43148d4d57aa5867435b18e7c4594ea9ac10b9c3d9921b99a5b0f0a8ecb80e9 | <?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... | PHP | administrator/components/com_kunena/install/plugins/plg_kunena_joomla/joomla.php | 810/k3.0-frontend | gpl-3.0 | 1,295 | 49 | codeparrot/github-code |
6781170e31ea07e5c90bba76149be7654b9c87c6bca14cf39dc01f440a09c10e | <?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.
*
* ... | PHP | lib/autoloader.php | bjonesy/plugin-name | gpl-3.0 | 1,681 | 60 | codeparrot/github-code |
88a2b8e5b7bd871a5de3f8bb9cd696f736d7a15ca83b2d923e8b059e12fe79a0 | -----------------------------------
-- Area: Cloister of Storms
-- BCNM: Trial by Lightning
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
local ID = require("scripts/zones/Cloister_of_Storms/IDs");
-----------------------------------
-- What should go h... | Lua | scripts/zones/Cloister_of_Storms/bcnms/trial_by_lightning.lua | m3rlin87/darkstar | gpl-3.0 | 2,159 | 65 | codeparrot/github-code |
b06f96e09b50cd4f9e857896a358edf453d7db55bf5ad53741a4f2724c979fdb | /*
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... | C++ | lib/job_queue/rsh_driver.cpp | andreabrambilla/libres | gpl-3.0 | 14,676 | 479 | codeparrot/github-code |
3d252aff10a8c28b11f0b412ef6505c98c4bed8633457a2d6441b6bb6e4b988e | #ifndef PHOTONS_PhaseSpace_Generate_Dipole_Photon_Angle_H
#define PHOTONS_PhaseSpace_Generate_Dipole_Photon_Angle_H
#include "ATOOLS/Math/Vector.H"
namespace PHOTONS {
class Generate_Dipole_Photon_Angle {
private:
double m_b1;
double m_b2;
double m_c;
... | C++ | PHOTONS++/PhaseSpace/Generate_Dipole_Photon_Angle.H | cms-externals/sherpa | gpl-3.0 | 4,769 | 142 | codeparrot/github-code |
20142758bded8c4a1804deab46cfeb88314a486678f0a5ef6afc1dee6916da7c | /* Utilities for MPFR developers, not exported.
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
Contributed by the Arenaire and Caramel projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redi... | C | src/mpfr-impl.h | qsnake/mpfr | gpl-3.0 | 87,932 | 1,910 | codeparrot/github-code |
a2910f4af1840ab454f22676286492a096ecd2714b0ba292a9c79fcefc000af2 | /**
*/
package net.paissad.waqtsalat.core.impl;
import java.util.Calendar;
import net.paissad.waqtsalat.core.WaqtSalatPackage;
import net.paissad.waqtsalat.core.api.Pray;
import net.paissad.waqtsalat.core.api.PrayName;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.... | Java | plugins/net.paissad.waqtsalat.core/src/net/paissad/waqtsalat/core/impl/PrayImpl.java | paissad/waqtsalat-eclipse-plugin | gpl-3.0 | 9,597 | 325 | codeparrot/github-code |
4655da2f450ef995e4a0ebbb6ac7116245d9a2af92dd8e97d1a38f2e2c7d1a33 | package xigua.battle.of.elements.model;
import org.junit.Before;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class IntWithMaxTest {
private IntWithMax intWithMax;
@Before
public void setUp() {
intWithMax = new IntWithMax(42);
}
@Test
publi... | Java | src/test/java/xigua/battle/of/elements/model/IntWithMaxTest.java | YuKitAs/battle-of-elements | gpl-3.0 | 879 | 38 | codeparrot/github-code |
5dd3d19f9c28d048e0c78752fd9e19e86c09a49e452d510f92c385780212679d | import {
DASHBOARD_ACTIVE_COIN_CHANGE,
DASHBOARD_ACTIVE_COIN_BALANCE,
DASHBOARD_ACTIVE_COIN_SEND_FORM,
DASHBOARD_ACTIVE_COIN_RECEIVE_FORM,
DASHBOARD_ACTIVE_COIN_RESET_FORMS,
DASHBOARD_ACTIVE_SECTION,
DASHBOARD_ACTIVE_TXINFO_MODAL,
ACTIVE_COIN_GET_ADDRESSES,
DASHBOARD_ACTIVE_COIN_NATIVE_BALANCE,
DASH... | JavaScript | react/src/reducers/activeCoin.js | pbca26/EasyDEX-GUI | gpl-3.0 | 12,574 | 442 | codeparrot/github-code |
bb6ed53e1c13dc6e0bddcfc460100d4809e46fe53474c86ceb7a0b4e3ff32ea6 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <volk_fft/volk_fft_prefs.h>
//#if defined(_WIN32)
//#include <Windows.h>
//#endif
void volk_fft_get_config_path(char *path)
{
if (!path) return;
const char *suffix = "/.volk_fft/volk_fft_config";
char *home = NULL;
if (home == NULL) h... | C | lib/volk_fft_prefs.c | hamgravy/volk-fft | gpl-3.0 | 1,442 | 52 | codeparrot/github-code |
b11bf267b5a56c2f41d42bf3db29d0efd780aca4fbd436d5a05d14aaafaad44b | // urlParams is null when used for embedding
window.urlParams = window.urlParams || {};
// isLocalStorage controls access to local storage
window.isLocalStorage = window.isLocalStorage || false;
// Checks for SVG support
window.isSvgBrowser = window.isSvgBrowser || (navigator.userAgent.indexOf('MSIE') < 0 || document... | JavaScript | war/js/diagramly/Init.js | crazykeyboard/draw.io | gpl-3.0 | 6,435 | 260 | codeparrot/github-code |
036f3ae0da87910d6731f4760c26a4901a1ee6e3720a99134d916edbabd6f16e | var chai = require('chai')
, sinon = require('sinon')
, sinonChai = require('sinon-chai')
, expect = chai.expect
, Promise = require('es6-promise').Promise
, UpdateTemplatesController = require('../../../platypi-cli/controllers/cli/updatetemplates.controller');
chai.use(sinonChai);
describe('Temp... | JavaScript | test/controllers/cli/updatetemplates.controller.test.js | tonylegrone/platypi-cli | gpl-3.0 | 2,556 | 82 | codeparrot/github-code |
fc88b6b9c05690aeb47b27f5a32bfe3e90c622e7fb299b4de30c52f1dace71c2 | """ Class that contains client access to the transformation DB handler. """
__RCSID__ = "$Id$"
import types
from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC.Core.Base.Client import Client
from DIRAC.Core.Utilities.List ... | Python | TransformationSystem/Client/TransformationClient.py | avedaee/DIRAC | gpl-3.0 | 22,189 | 513 | codeparrot/github-code |
18024d5bd7c420215b13151527978570608a8779dcccc7413e148b1dfc160fff | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "serial.h"
#include "inputprocessor.h"
#include "commandsender.h"
#include "plothelper.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainW... | C | mainwindow.h | quadwitharm/DebugConsole | gpl-3.0 | 2,007 | 88 | codeparrot/github-code |
2ac2f4431b47e51e6fb5ce70f28eb4b1d002d5de0f08e09f4fc0ddeb5f7400e3 | /******************************************************************************
*
* MantaFlow fluid solver framework
* Copyright 2011 Tobias Pfaff, Nils Thuerey
*
* This program is free software, distributed under the terms of the
* GNU General Public License (GPL)
* http://www.gnu.org/licenses
*
* Plugin ti... | C | source/timing.h | CoderDuan/mantaflow | gpl-3.0 | 1,387 | 61 | codeparrot/github-code |
f9a48e8e7a6c0ed262e1c9aca05ebdc3187a6927f6b034cb2d361fdcd6c1da89 | from django.db import models
from django.contrib.auth.models import User
import MySQLdb
# Create your models here.
class Comentario(models.Model):
"""Comentario"""
contenido = models.TextField(help_text='Escribe un comentario')
fecha_coment = models.DateField(auto_now=True)
def __unicode__(self):
return self.c... | Python | blog/models.py | darciga/cf | gpl-3.0 | 1,127 | 41 | codeparrot/github-code |
af9f2fdf26cd15ea75a7b3a6704b714b7d81fa03a436feb810d67e4c9400349c | /*
This file is part of solidity.
solidity 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.
solidity is distributed in the hope that i... | C++ | libsolutil/CommonIO.cpp | ethereum/solidity | gpl-3.0 | 4,494 | 164 | codeparrot/github-code |
d77f655c4ae09949d8ddc4fbe25470ba7a721ff613eb6c9e97dd5925e4b8160f | /**
* Copyright (c) 2012 Todoroo Inc
*
* See the file "LICENSE" for the full license governing this code.
*/
package com.todoroo.astrid.reminders;
import android.app.Dialog;
import android.content.Intent;
import android.view.View;
import android.widget.TextView;
import com.todoroo.astrid.activity.AstridActivity;
... | Java | src/main/java/com/todoroo/astrid/reminders/NotificationFragment.java | xVir/tasks | gpl-3.0 | 2,884 | 90 | codeparrot/github-code |
3bff182db8e27db58213ec24c88ad510a8fd3c4bb697a2d558e0d91f138b151e | package com.simplecity.amp_library.model;
import android.content.Context;
import com.simplecity.amp_library.R;
import java.io.File;
public class ArtworkModel {
private static final String TAG = "ArtworkModel";
@ArtworkProvider.Type
public int type;
public File file;
public ArtworkModel(@Artwor... | Java | app/src/main/java/com/simplecity/amp_library/model/ArtworkModel.java | timusus/Shuttle | gpl-3.0 | 1,505 | 52 | codeparrot/github-code |
d5d28f71ae5c92ab1f23401a9c871ee1be088109baaf793d5666d8323b0b51c5 | /*
* Generic DSI Command Mode panel driver
*
* Copyright (C) 2013 Texas Instruments
* Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Found... | C | drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c | williamfdevine/PrettyLinux | gpl-3.0 | 28,860 | 1,581 | codeparrot/github-code |
114f46683aac912304104eeaf84ab4aaef18acf99dc4bf0b8d6413c4761fff3d | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**************************************************************************
*
* Copyright 2010 American Public Media Group
*
* This file is part of AIR2.
*
* AIR2 is free software: you can redistribute it and/or modify
* it under... | PHP | lib/AIR2_Record.php | publicinsightnetwork/audience-insight-repository | gpl-3.0 | 13,214 | 457 | codeparrot/github-code |
ead381e4011795fb731ba5d85090bb770c97a57da98c69fac8c5f0948f514dcd | <?php
/*
oauthcallback.php
This script handles the oAuth grant 'code' that is returned from the provider
(google/fb/openid), and calls the 'authenticate' method of the PBS_LAAS_Client.
That method exchanges the grant 'code' with PBS's endpoints to get access and refresh tokens,
uses those to get user info (email, n... | PHP | templates/oauthcallback.php | tamw-wnet/pbs-passport-authenticate | gpl-3.0 | 3,067 | 99 | codeparrot/github-code |
8fbf343897dec93b3c0ae32b93a4243453ad22f8bb4e4dcfcece6d0b1e511aec | #ifndef MUSPLAY_USE_WINAPI
#include <QtDebug>
#include <QFileDialog>
#include <QMessageBox>
#include <QSlider>
#include <QSettings>
#include <QMenu>
#include <QDesktopServices>
#include <QUrl>
#include "ui_mainwindow.h"
#include "musplayer_qt.h"
#include "../Player/mus_player.h"
#include "../AssocFiles/assoc_files.h"
... | C++ | MusicPlayer/MainWindow/musplayer_qt.cpp | jpmac26/PGE-Project | gpl-3.0 | 19,656 | 646 | codeparrot/github-code |
91779e985aaf87ca9c877917a435b203008e814ee3ac1be837b70816cc02e516 | // tinygettext - A gettext replacement that works directly on .po files
// Copyright (C) 2006 Ingo Ruhnke <grumbel@gmx.de>
//
// 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 versi... | C++ | src/tinygettext/dictionary.cpp | clbr/stk | gpl-3.0 | 5,378 | 212 | codeparrot/github-code |
2d8595875d845ea1f2348b6176a3c1a9ad28930492cc8474992e5ea643cc1cf9 | /*
* gtpm-mgr
*
* Version 1.00
* Copyright (C) 2012-2014 Nicolas Provost dev AT doronic DOT fr
*
* 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... | C | src/tpm/mgr/gtpm_mgr.c | doronic/llib | gpl-3.0 | 5,773 | 196 | codeparrot/github-code |
7cffabd0c5c2bc0d995958adbd868fab778d9448918f98ed00d966465581e190 | /*
Copyright 2011 Anton Kraievoy akraievoy@gmail.com
This file is part of Holonet.
Holonet 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 vers... | Java | src/main/java/algores/holonet/core/events/EventNetLookup.java | akraievoy/holonet | gpl-3.0 | 3,225 | 100 | codeparrot/github-code |
bac5ce960a21d329c870005ce7873349dad8b670ad350453f9f2bd4017faf2b5 | var path = require('path');
var Q = require('q');
var fs = require('fs');
var mv = require('mv');
var Upload = require('./upload.model');
exports.upload = function (req, res) {
var tmpPath = req.files[0].path;
var newFileName = Math.random().toString(36).substring(7)+path.extname(tmpPath);
var targetPath =... | JavaScript | server/api/upload/upload.controller.js | NishantDesai1306/lost-and-found | gpl-3.0 | 1,066 | 38 | codeparrot/github-code |
4aa8529ff9a245ea2b7463fa34d0d28ae304df9292671823866e02345a594c69 | package br.ifrn.meutcc.visao;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import br.ifrn.meutcc.modelo.Aluno;
import br... | Java | MeuTCCApp/src/br/ifrn/meutcc/visao/ViewAlunoCandidatou.java | hayssac/MeuTCC_Grupo1 | gpl-3.0 | 1,286 | 44 | codeparrot/github-code |
21159cbc9b4e4b88b6571ba095c35e40b75cf2ea719a3e070f7b538efece0cf6 | package com.idega.development.presentation;
import com.idega.idegaweb.IWBundle;
import com.idega.idegaweb.IWMainApplication;
import com.idega.presentation.IWContext;
import com.idega.presentation.Image;
import com.idega.presentation.Layer;
import com.idega.presentation.PresentationObject;
import com.idega.presentation... | Java | src/com/idega/development/presentation/IWDeveloper.java | idega/platform2 | gpl-3.0 | 5,611 | 169 | codeparrot/github-code |
ac32561b063647b9667142e06f5226548d152cb0cce32b49e5c32d6e5f07da43 | /*
* Copyright 2018 Mauricio Colli <mauriciocolli@outlook.com>
* AnimationUtils.java is part of NewPipe
*
* License: GPL-3.0+
* 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 versio... | Java | app/src/main/java/org/schabi/newpipe/util/AnimationUtils.java | theScrabi/NewPipe | gpl-3.0 | 20,114 | 479 | codeparrot/github-code |
314db84f4a6b7a5d877598c68b8d9c1875d37989145ab4ed34dff615b7ded5f4 | /* -*- tab-width: 4 -*-
*
* Electric(tm) VLSI Design System
*
* File: FillGeneratorTool.java
*
* Copyright (c) 2006 Sun Microsystems and Static Free Software
*
* Electric(tm) is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fr... | Java | com/sun/electric/tool/generator/layout/fill/FillGeneratorTool.java | imr/Electric8 | gpl-3.0 | 32,233 | 862 | codeparrot/github-code |
1c2519f256c857afc1b9dfb75c112b204b5b236ca1d1243cb3f7601ed286ad5c | #include "session.h"
// This file is part of MCI_Host.
// MCI_Host 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.
... | C++ | src/session.cpp | Zi-i/MCI_Host | gpl-3.0 | 23,063 | 736 | codeparrot/github-code |
0ff51708ee08a90f52069c0e9d292099ab5cd8497f9ea85d2340075262d547e8 | using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using Kontract.IO;
namespace Kontract.Compression
{
public class LZSSVLE
{
public static byte[] Decompress(Stream input, bool leaveOpen = false)
{
using (var br = new BinaryReader(input, Encoding.De... | C# | src/Kontract/Compression/LZSSVLE.cs | IcySon55/Kuriimu | gpl-3.0 | 2,084 | 59 | codeparrot/github-code |
f486ac06ac05c59f498419971afb151fd0c37ed66677a971d40466a24c371bb9 | #ifndef UNIFORMVARIABLEEDITOR_H
#define UNIFORMVARIABLEEDITOR_H
#include <QDialog>
#include <QDebug>
#include <QComboBox>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QScrollBar>
#include <QWidget>
#include "setvariablewidget.h"
namespace Ui {
class UniformVariableEditor;
}
class Unif... | C | uniform/dialogs/uniformvariableeditor.h | jkonecny12/ShaderMan | gpl-3.0 | 1,132 | 53 | codeparrot/github-code |
d67f718c8cede962ac61ea12332d3bf4e215a6df8a4589ccb6b498228f082294 | #include <vigir_footstep_planning_plugins/plugin_aggregators/world_model.h>
namespace vigir_footstep_planning
{
WorldModel::WorldModel()
: ExtendedPluginAggregator<WorldModel, CollisionCheckPlugin>("WorldModel")
{
}
void WorldModel::loadPlugins(bool print_warning)
{
ExtendedPluginAggregator<WorldModel, CollisionC... | C++ | vigir_footstep_planning_plugins/src/plugin_aggregators/world_model.cpp | team-vigir/vigir_footstep_planning_basics | gpl-3.0 | 2,257 | 92 | codeparrot/github-code |
023b147a4cf47887e4e7eedc51275f73aa95d4698aa0d7084ac671aef0336a21 | package com.lizardtech.djvubean.outline;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.ListCellRenderer;
import javax.swing.UIManager;
public class ImageListCellRenderer implements ListCellRenderer
{
/**
* Fro... | Java | djuvpp-djvureader-_linux-f9cd57d25c2f/DjVuReader++/src/com/lizardtech/djvubean/outline/ImageListCellRenderer.java | DJVUpp/Desktop | gpl-3.0 | 2,058 | 47 | codeparrot/github-code |
544e7a23ea27826a6d8606d19a3e5f1a3bc06912d928596f5f6b05253bcba415 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by texi2html, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Singular 2-0-4 Manual: D.5.5.15 newtonpoly</title>
<meta name="description" content="Singular 2-0-4 Manual: D.5.5.15 newtonpoly... | HTML | texi2html/test/singular_manual/res/singular_httex/newtonpoly.html | cgwalters/texinfo-git-mirror | gpl-3.0 | 7,795 | 155 | codeparrot/github-code |
a92392b03606ee22d046cd9fcaff4a39df6eee707d8d94e1b873818a810eeed4 | /*****************************************************************************
* 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... | C | src/openrct2/rct12/RCT12.h | pizza2004/OpenRCT2 | gpl-3.0 | 25,235 | 825 | codeparrot/github-code |
39ab018c5f02f7d4f5f453bb4383ef851396aa36e598f966dbf3a443237017ad | /*
* Copyright (c) by Michał Niedźwiecki 2016
* Contact: nkg753 on gmail or via GitHub profile: dzwiedziu-nkg
*
* This file is part of Bike Road Quality.
*
* Bike Road Quality is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... | Java | proof-of-concept/apk/app/src/main/java/pl/nkg/brq/android/ui/MainActivity.java | dzwiedziu-nkg/cyclo-bruxism | gpl-3.0 | 5,330 | 141 | codeparrot/github-code |
dd7eb9d39f166d48757ee456761d05764d04870df17ceb6a897d249ddc5caaa8 | package com.malak.yaim.model;
import java.util.List;
public class FlickrFeed {
private String title;
private String link;
private String description;
private String modified;
private String generator;
private List<Item> items = null;
public String getTitle() {
return title;
}
public void setT... | Java | app/src/main/java/com/malak/yaim/model/FlickrFeed.java | xavarius/FlickrFeed | gpl-3.0 | 1,050 | 61 | codeparrot/github-code |
bf40fe6ce42a41df74e51d641f0a9051e65a4864a55ee73756056fbb8248b3e5 | """
Contains format specification class and methods to parse it from JSON.
.. codeauthor:: Tomas Krizek <tomas.krizek1@tul.cz>
"""
import json
import re
def get_root_input_type_from_json(data):
"""Return the root input type from JSON formatted string."""
return parse_format(json.loads(data))
def parse_form... | Python | src/gm_base/model_data/format.py | GeoMop/GeoMop | gpl-3.0 | 4,784 | 143 | codeparrot/github-code |
9e5e5d32af20fda529bcddb1b22b761d75264867e407b394d5fecee8bf279310 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEditor;
using System.IO;
public class Serializer : MonoBehaviour {
//save defaults are only used to set the data used when initializing that map the next time.
string saveFile;
str... | C# | Terry's Tower/Assets/Scripts/Serializer.cs | ZepedaJake/2D-RPG-Unity | gpl-3.0 | 27,851 | 912 | codeparrot/github-code |
355397c1aa26f435fc50152d9a7cd39b7d2b48c344c1144894f9e78b1f0034a3 | package grid;
import java.util.Comparator;
import world.World;
/*
* AP(r) Computer Science GridWorld Case Study:
* Copyright(c) 2002-2006 College Entrance Examination Board
* (http://www.collegeboard.com).
*
* This code is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... | Java | src/grid/Location.java | fazerlicourice7/botWorld2017 | gpl-3.0 | 8,439 | 286 | codeparrot/github-code |
82b2af3e584f45f6306eb6351166dc719d88dcc7f24f467fce87267e8adb47aa | /* This file is part of LiveCG.
*
* Copyright (C) 2013 Sebastian Kuerten
*
* 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 late... | Java | project/src/main/java/de/topobyte/livecg/ui/geometryeditor/preferences/LAFSelector.java | sebkur/live-cg | gpl-3.0 | 2,265 | 81 | codeparrot/github-code |
9b1d2db61e5a53711da81cbe380ffc453a411b981b3589e3949ca7ad176c218f | package com.yoavst.quickapps.calendar;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.provider.CalendarContract;
import android.provider.CalendarContract.Events;
import com.yoavst.quickapps.Prefe... | Java | app/src/main/java/com/yoavst/quickapps/calendar/CalendarUtil.java | gaich/quickapps | gpl-3.0 | 13,741 | 319 | codeparrot/github-code |
5e46f9a8573083610c43e41b186166fd6525218b41a9211fdcb28a481188f4b4 | local render2d = ... or _G.render2d
do
local X, Y, W, H = 0,0
function render2d.SetScissor(x, y, w, h)
X = x
Y = y
W = w or render.GetWidth()
H = h or render.GetHeight()
if not x then
X = 0
Y = 0
render.SetScissor()
else
x, y = render2d.ScreenToWorld(-x, -y)
render.SetScissor(-x, -y, w, ... | Lua | framework/lua/libraries/graphics/render2d/stencil.lua | CapsAdmin/goluwa | gpl-3.0 | 3,304 | 166 | codeparrot/github-code |
1f2044ef0bf54ca6dd63429f994ea2ced3f4a874a18edc9c529695c8c907f911 | package uk.tim740.skUtilities.util;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.SkriptParser;
import ch.njol.skript.lang.util.SimpleExpression;
import ch.njol.util.Kleenean;
import org.bukkit.event.Event;
import uk.tim740.skUtilities.skUtilities;
import javax.annotation.Nullable;
import java.io.... | Java | src/uk/tim740/skUtilities/util/ExprTimeInTimeZone.java | tim740/skUtilities | gpl-3.0 | 1,995 | 75 | codeparrot/github-code |
318d6c68557ef3d732602f05c8de3899be022549c34e9aeefe081e1f101b445d | -- Erase all reading notes for this VMeasurementID
CREATE OR REPLACE FUNCTION cpgdb.ClearReadingNotes(
tblVMeasurement.VMeasurementID%TYPE -- the vmeasurement to tie this to
) RETURNS integer AS $_$
DECLARE
_VMID ALIAS FOR $1;
VMOp text;
ret integer;
BEGIN
-- Get the VMeasurementOp
SELECT op.name I... | SQL | Databases/cpgdb/readingnotes.sql | petebrew/tellervo | gpl-3.0 | 9,192 | 260 | codeparrot/github-code |
ba44cf15b1d07256039d0d89126c2654d599ef4ecd837ee7366cecc7ef59f418 | /*
* Copyright (C) 2010 The UAPI Authors
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at the LICENSE file.
*
* You must gained the permission from the authors if you want to
* use the project into a commercial product
*/
package uapi.service;
import ... | Java | uapi.service/src/main/java/uapi/service/ResponseCode.java | minjing/uapi | gpl-3.0 | 1,491 | 47 | codeparrot/github-code |
0f99b47dcbc03675dfa4584891e5be72d01f830c65de51e9af7baa44f7deb35b | <?php
namespace SHC\Event;
//Imports
use RWF\Date\DateTime;
use RWF\Util\StringUtils;
use SHC\Condition\Condition;
use SHC\Condition\ConditionEditor;
use SHC\Core\SHC;
use SHC\Switchable\Switchable;
use SHC\Switchable\SwitchableEditor;
/**
* Ereignise Verwalten
*
* @author Oliver Kleditzsch
* @copyright ... | PHP | shc/lib/event/eventeditor.class.php | agent4788/SHC_Framework | gpl-3.0 | 39,875 | 1,365 | codeparrot/github-code |
fc61e11f61d40456a25e8e87cb12ab36eefc78788570b7acb8c54e1f551fe6ca | #include <iostream>
using namespace std;
#define FLOAT(name, value) float name = value
#define CONST_FLOAT(name, value) const FLOAT(name, value)
#define VAR_FLOAT(name) FLOAT(name, 0)
#define VAR_INT(name) int name = 0
#define DEFINE_LINEAR_EQUATION(n)\
VAR_FLOAT(a##n);\
VAR_FLOAT(b##n);\
VAR_FLOAT(c##n)\
#define... | C++ | homework1/task10.cc | NoHomey/FMI-introduction-to-programming-course | gpl-3.0 | 4,135 | 143 | codeparrot/github-code |
9395a44e7c4d4189d82ad19f0a725bada70ed7cd4f8373c9e01b16142b5a66c8 | /**
* Copyright (C) 2011 Whisper Systems
*
* 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 d... | Java | src/org/smssecure/smssecure/recipients/RecipientFactory.java | matlink/SMSSecure | gpl-3.0 | 4,267 | 127 | codeparrot/github-code |
3a6ac5995dbda4937d5c885e1ade2568e525da4d51067071388f56d2e3806b94 | /*
* Grakn - A Distributed Semantic Database
* Copyright (C) 2016 Grakn Labs Limited
*
* Grakn 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... | Java | grakn-test/test-integration/src/test/java/ai/grakn/generator/RelationPlayers.java | burukuru/grakn | gpl-3.0 | 1,612 | 53 | codeparrot/github-code |
b3725bb1162443d182eb555c6f884d6ff9cd15ee9a777019a4a11ed29a02d54d | package org.janus.miniforth;
import org.janus.data.DataContext;
public class Compare extends WordImpl {
public enum Comp {
EQ, NEQ, LT, GT, LEQ, GEQ
}
Comp comp;
public Compare(Comp comp) {
super(-1);
this.comp = comp;
}
@Override
public void perform(DataContext context) {
super.... | Java | JanusMiniForth/src/org/janus/miniforth/Compare.java | ThoNill/JanusMiniForth | gpl-3.0 | 1,226 | 55 | codeparrot/github-code |
d38ab4984180acb58c86b1d355ab7519832b92e60db024b4edbb50e1e412a1a6 | /*
SuperCollider Qt IDE
Copyright (c) 2012 Jakob Leben & Tim Blechmann
http://www.audiosynth.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 Licens... | C++ | editors/sc-ide/widgets/code_editor/highlighter.hpp | wdkk/iSuperColliderKit | gpl-3.0 | 3,435 | 131 | codeparrot/github-code |
63753004bb8a118ff12166790476b8484c2d81b7c688e93dc49aa07404e7dda5 | /*
* Copyright (C) 2018 The "MysteriumNetwork/node" Authors.
*
* 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.
*
... | GO | core/service/manager.go | MysteriumNetwork/node | gpl-3.0 | 5,078 | 168 | codeparrot/github-code |
c612cc2da52a03a683e12def3b219593144f7486ba6194a004b7149cb273e2d3 | <!DOCTYPE html >
<html>
<head>
<title>IndexRange - ScalaFX API 8.0.0-R4 - scalafx.scene.control.IndexRange</title>
<meta name="description" content="IndexRange - ScalaFX API 8.0.0 - R4 - scalafx.scene.control.IndexRange" />
<meta name="keywords" content="IndexRange ScalaFX API 8.0.... | HTML | Documents/ohjelmointistuff/ProjectAsteroid/docs/scalafx/scene/control/IndexRange$.html | TarmoA/ProjectAsteroid | gpl-3.0 | 23,451 | 455 | codeparrot/github-code |
03a59012b62442659590994b6207406faf4397d8eff7477d1016d025046618e2 | /*
* This file is part of Track It!.
* Copyright (C) 2013 Henrique Malheiro
* Copyright (C) 2015 Pedro Gomes
*
* TrackIt! 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... | Java | src/main/java/com/trackit/business/domain/Folder.java | Spaner/TrackIt | gpl-3.0 | 2,498 | 100 | codeparrot/github-code |
10343d99c2745814ff94e47cb1009b5bf26e784acddcb37dd2fb55caf41d12eb | <?php namespace eduTrac\Classes\Models;
if ( ! defined('BASE_PATH') ) exit('No direct script access allowed');
/**
* Profile Model
*
* PHP 5.4+
*
* eduTrac(tm) : Student Information System (http://www.7mediaws.org/)
* @copyright (c) 2013 7 Media Web Solutions, LLC
*
* This program is free software; you can re... | PHP | eduTrac/Classes/Models/ProfileModel.php | vb2005xu/eduTrac | gpl-3.0 | 2,264 | 65 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.