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 |
|---|---|---|---|---|---|---|---|---|
3cab9ae0f45570a51701b21377c04f17c922f1f2e645fe79691fc6f508e234cd | <?php
include_once('Component.php');
/**
* Network class contains all informations about one's machine network card.
*
* @author Maxime Wojtczak (Linbox FAS)
*/
class Network extends Component
{
function Network()
{
$this->m_Properties = array( 'CardType'=>'' ,
'NetworkType'=>'' ,
'MIB'=>'' ,
... | PHP | webmin/lrs-inventory/classes/Components/Network.php | cedricde/lrs | gpl-2.0 | 4,199 | 234 | codeparrot/github-code |
e78178d7c5d7cb9952736cbef49fe5fde07833db5773344591c53a867c804906 | /*
* $RCSfile: ROIShape.java,v $
*
* Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
*
* Use is subject to license terms.
*
* $Revision: 1.2 $
* $Date: 2005/11/24 00:04:04 $
* $State: Exp $
*/
package javax.media.jai;
import java.awt.Graphics2D;
import java.awt.Point;
import jav... | Java | JAILibrary/src/javax/media/jai/ROIShape.java | RoProducts/rastertheque | gpl-2.0 | 49,820 | 1,333 | codeparrot/github-code |
77ba9cc726e0e25301c72c816c2511fa4b7e3cb71b86a65e39b6a02683ab7f0a | --ライトニング・トライコーン
function c49389523.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsRace,RACE_BEAST),1)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(49389523,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT... | Lua | c49389523.lua | Fluorohydride/ygopro-scripts | gpl-2.0 | 1,509 | 38 | codeparrot/github-code |
5e4a6efea4e89158766f4c201482899ead35c21b76a55af618fd66d179e162e6 | /**
* (c) 2015 psce4all project. All rights reserved.
* Released under GPL v2 license. Read LICENSE for more details.
*/
#include "qt_instructionsmodel.h"
#include <algorithm>
#include <QColor>
qt_InstructionsModel::qt_InstructionsModel(QObject *parent, std::shared_ptr< const qt_Instructions > instructions, std::sh... | C++ | pspe4all-dbg.qt5/qt_instructionsmodel.cpp | psce4all/psce4all | gpl-2.0 | 5,908 | 207 | codeparrot/github-code |
7a6a1011a6e93896353f74a578012622e96378fd7784e9dc63234ce327ec4e32 | /* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the License.
This program is distributed in the h... | C++ | storage/perfschema/pfs_visitor.cc | zach14c/mysql | gpl-2.0 | 29,794 | 1,199 | codeparrot/github-code |
99d46e07e88c1af1d45d5bf0a0d227cfead367a4575de077188cc3efced23c69 | <?php
$property = iproperty_get_current_property();
$featured_image_html = iproperty_get_featured_image( 'iproperty_archive' );
$has_thumbnail = ( '' != $featured_image_html );
?>
<section class="archive-property primary-border-bottom<?php echo $has_thumbnail ? ' with-thumbnail' : ''; ?>">
<?php if ( $has_thumbna... | PHP | wp-content/plugins/intellectual-property-basic/views/_compact_property.php | daobv/emekong-wp | gpl-2.0 | 3,011 | 72 | codeparrot/github-code |
58ab2f7e54de343157ffe1a25b474582f5c6bd24afc08c087a2360dc9ccb2ee0 | <?php
/**
* @package jCart
* @copyright Copyright (C) 2009 - 2016 softPHP,http://www.soft-php.com
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
class ControllerPaymentBluepayredirect extends Controller {
private $error = array();... | PHP | components/com_jcart/admin/controller/payment/bluepay_redirect.php | reparosemlagrima/producao | gpl-2.0 | 16,830 | 389 | codeparrot/github-code |
e55689970f061556b9c37d1ea916f3c41e7cf08d5cd8b1881c14fc9b80da8aa8 | /* Copyright_License {
XCSoar Glide Computer - http://www.xcsoar.org/
Copyright (C) 2000-2013 The XCSoar Project
A detailed list of copyright holders can be found in the file "AUTHORS".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
... | C++ | python/src/Flight/DouglasPeuckerMod.hpp | DRIZO/xcsoar | gpl-2.0 | 3,913 | 127 | codeparrot/github-code |
b8237e6e97566a8e79912afcceca0c196c0d8ec0b11eb8a010fa7dc531bffa63 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>SB Admin 2 - Bootstrap Admin Th... | HTML | frontend/administrador/pages/index_original.html | giovanimora0527/sigeri | gpl-2.0 | 20,192 | 435 | codeparrot/github-code |
02150b1625f8744cc780c56ab1ac046208d0fdb3ceec70ecff2f99d6f3ef635d | /*
* Copyright (C) 2009-2022 Slava Semushin <slava.semushin@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
* (at your option) any later ve... | Java | src/main/java/ru/mystamps/web/feature/series/importing/ImportSeriesDbDto.java | php-coder/mystamps | gpl-2.0 | 1,128 | 36 | codeparrot/github-code |
60ccbe2087cb230204a592094893ca9d123a5fa30b522df471d29ce9df397fa1 | using UnityEngine;
using System.Collections;
[AddComponentMenu("2D Toolkit/Sprite/tk2dClippedSprite")]
[RequireComponent(typeof(MeshRenderer))]
[RequireComponent(typeof(MeshFilter))]
[ExecuteInEditMode]
/// <summary>
/// Sprite implementation that clips the sprite using normalized clip coordinates.
/// </summary>
publ... | C# | Assets/TK2DROOT/tk2d/Code/Sprites/tk2dClippedSprite.cs | ddionisio/WreckingWhore | gpl-2.0 | 9,331 | 341 | codeparrot/github-code |
025555c1505319248f48332328c80c35b0733377ef9687a95b37336c5a697697 | /*
* recv OOB data - use select()
* This version is error
* 跟UNP测试结果不一致
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <fcntl.h>
#include <netdb.h>
#include <sys/socket.h>
#include <sys/select.h>
/*
* for tcp server: create t... | C | unix_linux/Linux_network/unp_book/mycode/ch24_oob_heartbeat/tcprecv02.c | weiqiangdragonite/blog_tmp | gpl-2.0 | 2,884 | 158 | codeparrot/github-code |
f206277d1c815bb4c9d49705a5db0956fa97217cd8e3e7d443cf9e19eaa8ce32 | using FeedMe.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
namespace FeedMe.Controllers
{
public class RecipeController : Controller
{
public FeedMeRepository R... | C# | FeedMe/Controllers/RecipeController.cs | Shelleydaviswise/FeedMe | gpl-2.0 | 2,817 | 126 | codeparrot/github-code |
d87d61bd8f83112e6c8f2485531f06baaec772e43ab1a27173218dd61194aec0 | <?php
/**
* Jetpack Compatibility File.
*
* @link https://jetpack.me/
*
* @package techgirlz
*/
/**
* Jetpack setup function.
*
* See: https://jetpack.me/support/infinite-scroll/
* See: https://jetpack.me/support/responsive-videos/
*/
function techgirlz_jetpack_setup() {
// Add theme support for Infinite S... | PHP | wp-content/themes/techgirlz/inc/jetpack.php | beccarefford/techgirlz-redesign | gpl-2.0 | 1,055 | 42 | codeparrot/github-code |
6969c3563fad72f93d413050c9ab66dd9d0c11161226afb8a410abce81ba8f53 |
(function($) {
Drupal.behaviors.HierarchicalSelect = {
attach: function (context) {
$('.hierarchical-select-wrapper:not(.hierarchical-select-wrapper-processed)', context)
.addClass('hierarchical-select-wrapper-processed').each(function() {
var hsid = $(this).attr('id').replace(/^hierarchical-select-(\... | JavaScript | sites/all/modules/hierarchical_select/hierarchical_select.js | xstatic/dr4rent | gpl-2.0 | 26,578 | 631 | codeparrot/github-code |
daa74203885639678bfd5b05e6e335dce8de2020547bf4c1d677b88a6b74e00c | from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible
from django.db import models
from django.contrib.auth.models import User
from django.contrib.auth.models import Group
from django.db.models.signals import post_save
from django.dispatch import receiver
from eveonline.... | Python | groupmanagement/models.py | iAddz/allianceauth | gpl-2.0 | 4,177 | 93 | codeparrot/github-code |
3d4044f356ff87a7914fc14aefb51416010901087780294de44ed857445291d7 | /*
* Copyright (C) 2008 - 2011 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Softwar... | C++ | src/server/scripts/EasternKingdoms/westfall.cpp | avalonfr/ArkCORE-4.3.4 | gpl-2.0 | 8,951 | 270 | codeparrot/github-code |
bfe3f6a39fd8c959fe0db0453e6becf0a7a125d6fb55f8f2ba75b8425e57ce5c | using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Movies;
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Controller.Subtitles;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging;
using System;
using System.Collections... | C# | MediaBrowser.Providers/MediaInfo/SubtitleDownloader.cs | jose-pr/Emby | gpl-2.0 | 6,202 | 180 | codeparrot/github-code |
b4fd7f4a47c1ebae5787a8cc78bd490e5fd71d5f3cbd1013fd09411df0d4bb4d | package com.alexnedelcu.wildfirenavigator.data.type;
import java.io.Serializable;
public class LatLong implements Serializable {
double latitude;
double longitude;
public LatLong(double latitude, double longitude) {
this.latitude = latitude;
this.longitude = longitude;
}
public double getLongitude() {
... | Java | backend/src/com/alexnedelcu/wildfirenavigator/data/type/LatLong.java | alexnedelcu/wildfire-navigator | gpl-2.0 | 623 | 34 | codeparrot/github-code |
f161eee4c9510b55e1766bf9ad1fa4d018fd14b29651eef60a0917d3ed6534cd | #include "oslib.h"
//state: 0: normal
void oslUIDrawButtonFrame(int x0, int y0, int w, int h, int state)
{
#define x1 (x0+w)
#define y1 (y0+h)
//Cadre gris
// if (state == 1)
// oslDrawFillRect(x0,y0,x1,y1,RGB(192,192,192));
// else
oslDrawGradientRect(x0,y0,x1,y1, RGB(208,208,208), RGB(188,188,188), ... | C | src/messagebox.c | dogo/oslibmodv2 | gpl-2.0 | 4,315 | 161 | codeparrot/github-code |
f7554c18ad8981323c99fb8215336edabcd6e6a8106bbeab6d44ab8f36309664 | 'use strict';
import utils from './utils/utils';
import Annotation from './Annotation';
import observeStore from './store/observeStore';
import { uncappedSelector, reselectSelector } from './selectors/uiSelectors';
import { addAndNotify, editAndNotify } from './actions/annotations';
import { cap, setReselect } from '.... | JavaScript | src/app/core/Pen.js | tyangliu/fluorescent | gpl-2.0 | 2,155 | 81 | codeparrot/github-code |
32b20f011b02043b6dc87b2dbaf810204c41fe129012dbf9ffb6faea4f2dd7d2 | /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
Rosegarden
A MIDI and audio sequencer and musical notation editor.
Copyright 2000-2018 the Rosegarden development team.
Other copyrights also apply to some parts of this work. Please
see the AUTHORS file and individu... | C | gui/editors/segment/TriggerSegmentManager.h | bownie/RosegardenW | gpl-2.0 | 2,608 | 111 | codeparrot/github-code |
aaa2c6ca7bae216cace60d8c1b6cbf78bb62ac0be55f5367949b367a35495ac4 | from tastypie import fields
from tastypie.authentication import SessionAuthentication, MultiAuthentication
from account.authentication import MultiApiKeyAuthentication
from tastypie.validation import FormValidation
from tastypie.resources import ModelResource
from tastypie.authorization import Authorization
from tastyp... | Python | cred/api.py | ipernet/RatticWeb | gpl-2.0 | 4,527 | 124 | codeparrot/github-code |
175d1ce6f7b8b9302d4150d6a65472f0b8ebad034306ccb8909078f72334a180 | /* TemporaryFile.cpp:
Copyright (C) 2016 Christian Schenk
This file is part of the MiKTeX Core Library.
The MiKTeX Core Library 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, o... | C++ | Tools/MikTex/Libraries/MiKTeX/Core/TemporaryFile/TemporaryFile.cpp | drazenzadravec/nequeo | gpl-2.0 | 1,912 | 97 | codeparrot/github-code |
2487f52456fe83fc042eaec91cff0505a6e423ef649f8cd1a6c71c2d66ba232a | #include <stdio.h>
#include <time.h>
#include <iostream>
#include <vector>
using namespace std;
//accept c_str as input parameters.
#define debug_2_console(fmt,args...) \
do{ \
time_t t_time; \
time(&t_time); \
printf("%s", ctime(&t_time)); \
printf(fmt,##args); \
}while(0)
//accept c_s... | C | tools/query_grid/query_grid.h | lifulong/map-matching-algorithm | gpl-2.0 | 3,084 | 130 | codeparrot/github-code |
41c932e4c1cd9e4c6b761ad93fbe683ce1c90dbc759d78d2c796e75d2d999dca | package radikalchess.model;
import radikalchess.model.pieces.Piece;
/**
* This class represents a cell. A cell is an area listed within the board, and contains at most one piece.
* As is numbered, has a defined position
*
* @author Jose Luis Molina
* @author Eduardo Mendoza García
* @see radikalchess.model.piec... | Java | src/radikalchess/model/Cell.java | jldemolina/RadikalChess | gpl-2.0 | 875 | 41 | codeparrot/github-code |
8bf00a17ca8f477340f883c543a0bb1a508e9dec19a284c1843ce58339060bdd | /*
* linux/fs/proc/base.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* proc base directory handling functions
*
* 1999, Al Viro. Rewritten. Now it covers the whole per-process part.
* Instead of using magical inumbers to determine the kind of object
* we allocate and fill in-core inodes upon lookup. T... | C | fs/proc/base.c | baran0119/android_kernel_samsung_gprimeltexx | gpl-2.0 | 83,254 | 3,458 | codeparrot/github-code |
dfa2e0fc8a84910a343905ed8a20b5644833d23ad20aa7fef1a9bbc4f3d35fdc | /*******************************************************************************
Intel PRO/1000 Linux driver
Copyright(c) 1999 - 2008 Intel Corporation.
This program is free software; you can redistribute it and/or modify it
under the terms and conditions of the GNU General Public License,
version 2, as pub... | C | src/drivers/net/e1000/e1000_hw.h | Phlogistique/iPXE | gpl-2.0 | 18,604 | 752 | codeparrot/github-code |
3c7c61cd388fe1537d57b517f957130e9d8a584fced7113b153c7c263951c33f | /***************************************************
Program Name: dumphux
Purpose: dump hex code
Author: ³¯«i¬w (Chen Yung Chou)
Created Date: 2005/01/23
Modified: ³¯«i¬w (Chen Yung Chou)
Last Modify Date: 2005/01/23
Histtory:
***************************************************/
#include <stdio.h>
#inc... | C | scsi-customize/useful-tools/files/dumphex.c | scsi/scsi-ebuilds | gpl-2.0 | 3,780 | 187 | codeparrot/github-code |
a6276cd1919206a71bd0519497e2bcb89c929627181863cfdde448c28bc57fed | /*
* This file is part of roccat-tools.
*
* roccat-tools 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.
*
* roccat-tools is di... | C | ryosmk/libroccatryosmk/ryos_dbus_services.c | ngg/roccat-tools | gpl-2.0 | 3,249 | 101 | codeparrot/github-code |
44284aec6d789dc6142e73531af0777e1db28d9c8851c39b9e8fccc4304d00a7 | #!/usr/bin/python
# -*- coding: latin1 -*-
# $Id$
#
# Author: Vasilis.Vlachoudis@cern.ch
# Date: 20-Aug-2015
__author__ = "Vasilis Vlachoudis"
__email__ = "Vasilis.Vlachoudis@cern.ch"
__name__ = "Gear"
from ToolsPage import DataBase
import math
from bmath import Vector
from CNC import CNC,Block
from ToolsPage impo... | Python | plugins/gear.py | Sci33/bCNC | gpl-2.0 | 4,988 | 188 | codeparrot/github-code |
7f336fb3d1c3ec4bcf626047725a6fd5f9941f9631588b3c29f36410de19d4b7 | /*
* Neighbour Discovery for IPv6
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
* Mike Shaver <shaver@ingenia.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 Fre... | C | net/ipv6/ndisc.c | pavel-odintsov/openvz_rhel6_kernel_mirror | gpl-2.0 | 47,189 | 1,887 | codeparrot/github-code |
861c50d5e9866fb7f9928604d62177803f94b1c533277c490b660efb3f7e5479 | <?php
class AppEngine extends AE_Base
{
public function __construct() {
/**
* add script appengine
*/
$this->add_action('wp_enqueue_scripts', 'print_scripts', 9);
$this->add_action('admin_enqueue_scripts', 'print_scripts');
$this->add_action('wp_footer'... | PHP | wp-content/themes/qaengine-v.1.6/includes/aecore/framework.php | rinodung/wp-question | gpl-2.0 | 17,571 | 456 | codeparrot/github-code |
04a6165b9c4e1237c39f8c840ae1285722eb60f4a68a240c4db4c83b4f2c1a0d | package SL::Controller::UStVA;
use strict;
use warnings;
use utf8;
use Mojo::Base 'Mojolicious::Controller';
use Mojolicious::Static;
use Mojo::File;
use SL::Model::Config;
use SL::Model::Calc::Document;
use Time::Piece;
use Time::Seconds;
use Data::Dumper;
sub download {
my $c = shift;
my $conf = SL::Mod... | Perl | mojo/lib/SL/Controller/UStVA.pm | sweitmann/rma-community-version | gpl-2.0 | 5,925 | 258 | codeparrot/github-code |
e077dba49d48bb0d21ae48aae8fff24ee36e8e9e22fcf39fdd51eccba4ac0287 | /* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | C++ | engines/voyeur/detection.cpp | blorente/scummvm | gpl-2.0 | 5,553 | 183 | codeparrot/github-code |
e565fc667668405f19234cfa571ca75bd4a94da4ba46c6c2b805918df77d58d2 |
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tty.c
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Forrest Yu, 2005
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
... | C | c7/l/kernel/tty.c | jungle85gopy/orangeS | gpl-2.0 | 3,945 | 156 | codeparrot/github-code |
c6d094ebde60649471e28c4aebdcf6faad64e129348a31b983e8f285bd466620 | {- |
Module : $Header$
Description : printing Isabelle entities
Copyright : (c) University of Cambridge, Cambridge, England
adaption (c) Till Mossakowski, Uni Bremen 2002-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Por... | Haskell | Isabelle/IsaPrint.hs | nevrenato/HetsAlloy | gpl-2.0 | 41,879 | 1,055 | codeparrot/github-code |
7a017fe2b231e50cfbb463afd32ff011e0d9731056768446c0825ec3e2f39e58 | # -*- coding: utf-8 -*-
#
# Atizo - The Open Innovation Platform
# http://www.atizo.com/
#
# Copyright (c) 2008-2010 Atizo AG. All rights reserved.
#
# 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 Foundati... | Python | djangojames/forms/fields.py | atizo/djangojames | gpl-2.0 | 2,436 | 74 | codeparrot/github-code |
54ed942dc03d44bcf7368faaab1fa712550a53780858a3982689465c1c4a1ebe | /*
* DMA helper functions
*
* Copyright (c) 2009 Red Hat
*
* This work is licensed under the terms of the GNU General Public License
* (GNU GPL), version 2 or later.
*/
#ifndef DMA_H
#define DMA_H
#include <stdio.h>
#include "memory.h"
#include "hw/hw.h"
#include "block.h"
#include "kvm.h"
typedef struct DMAC... | C | dma.h | jibaron/q35-qemu | gpl-2.0 | 9,595 | 278 | codeparrot/github-code |
bb8ccee54d631bbdd88f2947cd22f2ab996ec8d322396fac91708f4765c1e168 | <?php
/**
* Numbers_Words
*
* PHP version 4
*
* Copyright (c) 1997-2006 The PHP Group
*
* This source file is subject to version 3.0 of the PHP license,
* that is bundled with this package in the file LICENSE, and is
* available at through the world-wide-web at
* http://www.php.net/license/3_0.txt.
* If you ... | PHP | administrator/components/com_onepage/assets/Words/lang.sk.php | dannysaban/store | gpl-2.0 | 10,223 | 349 | codeparrot/github-code |
fc075c3cb0a5e51b124a7766ddb85152993c616d79567d4889a146e5440dc79c | /*
* LegacySPC - A portable object-oriented SPC emulator.
* Copyright 2007-2008 by Michaël Larouche <larouche@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; version 2 o... | C++ | src/debugger/debuggercentralwidget.cpp | mlarouche/LegacySPC | gpl-2.0 | 1,477 | 49 | codeparrot/github-code |
a22d50180903a8c153f7c694b765b7da277b8303fc9b6dfb5d577f4fa111ac77 | // Vibrator Pebble App
// Copyright (C) 2013 Fazli Sapuan
//
// 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.
//
// ... | C | src/pebble-vibe.c | fuzzie360/pebble-vibe | gpl-2.0 | 4,682 | 183 | codeparrot/github-code |
aad9dc1f335da60ea141391893e722ffd5f2990b0a2fa6d0195260d30c3e2a7e | package Negocio;
/**
* @author Diego
* @version 1.0
* @created 29-sep-2013 23:12:29 p.m.
*/
public class Seccion {
private Ingreso ingreso;
private ZonaDeDescarga zonaDeDescarga;
//Constructores
public Seccion(){
}
public Seccion(Ingreso unIngreso, ZonaDeDescarga... | Java | src/secadero/Seccion.java | robertoerhard/avanzada | gpl-2.0 | 696 | 32 | codeparrot/github-code |
1da3c7ab58187114cd2963482bd97306e1eb197645d7c3a32a9624022f8760c0 | /*
mobblerradioplaylist.h
mobbler, a last.fm mobile scrobbler for Symbian smartphones.
Copyright (C) 2008 Michael Coffey
http://code.google.com/p/mobbler
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 Softw... | C | inc/mobblerradioplaylist.h | mobbler/mobbler | gpl-2.0 | 1,631 | 59 | codeparrot/github-code |
8d1b79683afcc0b427adb91bf1e1e85687025c8afc20ac742d83fd17fc565ed4 | /*
* Copyright (C) 2003-2006 Gabest
* http://www.gabest.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, or (at your option)
* any later version.
*
* Thi... | C++ | src/Source/subtitles/libssf/Node.cpp | systembugtj/playasa | gpl-2.0 | 11,322 | 552 | codeparrot/github-code |
24b201ca4d9d8fe823a15c9a5a3b85ebc75a13888d3f7a49d326f405177f4f32 | //Author: Tushar Jaiswal
//Creation Date: 12/14/2020
/* Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root.
Example:
Given a binary tree
... | Java | Algorithms/543. Diameter of Binary Tree/DiameterOfBinaryTree.java | tushar-jaiswal/LeetCode | gpl-2.0 | 1,578 | 53 | codeparrot/github-code |
66e8e9e03c0d51f96740b7ef7f9f0071565051417cb1297c63a51d2d8bb12676 | /*
* Adium is the legal property of its developers, whose names are listed in the copyright file included
* with this source distribution.
*
* 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; ... | C | Frameworks/Adium.framework/Versions/A/Headers/AIListObject.h | the-kenny/challengereponse | gpl-2.0 | 6,454 | 194 | codeparrot/github-code |
9708858b233c368135cba3ead642126ade2fb38f2d887406e55186dca442318f | #include <graphics/shaders.h>
/*GLhandleARB loadShader(char* filename, unsigned int type)
{
FILE *pfile;
GLhandleARB handle;
const GLcharARB* files[1];
// shader Compilation variable
GLint result; // Compilation code result
GLint errorLoglength ;
char* errorLogText;
GLsizei actualErrorLogLength;
char b... | C++ | src/graphics/shaders.cpp | amper128/tanks | gpl-2.0 | 1,823 | 78 | codeparrot/github-code |
21e198dc3cafddaeed4b184d9ea75bf0e21f87bd4d05a116eed1192ce561760d | /*
* Copyright (C) 2008 Michael J. Chudobiak <mjc@avtechpulse.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
* (at your option) any later versio... | C | plugins/housekeeping/csd-housekeeping-manager.c | chitwanix/sagarmatha-settings-daemon | gpl-2.0 | 11,546 | 360 | codeparrot/github-code |
14d77e0f6e7314655e9291484d73e2a6547b07cf6f066a431eb35f4229736d0c | import { Button, ScreenReaderText, Gridicon } from '@automattic/components';
import { useTranslate } from 'i18n-calypso';
import ButtonGroup from 'calypso/components/button-group';
import type { Moment } from 'moment';
import type { FunctionComponent, Ref } from 'react';
// eslint-disable-next-line @typescript-eslint/... | TypeScript | client/components/date-range/trigger.tsx | Automattic/wp-calypso | gpl-2.0 | 2,279 | 82 | codeparrot/github-code |
0d9fc7e2fe768974f7b0ec3f975d96a6792ff8124d5865da8d431d1de91e20f0 | /*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile: vtkSignedCharArray.h,v $
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | C | deps/include/vtk-5.2/vtkSignedCharArray.h | erik132/MolekelCUDA | gpl-2.0 | 5,092 | 134 | codeparrot/github-code |
0c7253013498dee8a0d504bd50d3ba372287248e71e003ab2acd40ae14e4c05e | /*
* org.openmicroscopy.shoola.agents.metadata.FileLoader
*
*------------------------------------------------------------------------------
* Copyright (C) 2006-2009 University of Dundee. All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of ... | Java | components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/FileLoader.java | stelfrich/openmicroscopy | gpl-2.0 | 6,683 | 233 | codeparrot/github-code |
c96c4262e2a8d76186943550cfcfce96e5b81e5a222b6ce81ccc47fb286fc58c | /**
* @copyright 2009 - 2015 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
// Object initialisation
if (typeof akeeba == 'undefined')
{
var akeeba = {};
}
if (typeof akeeba.Configuration == 'undefined')
{
akeeba.Configuration = {};
akeeba.Configuration.translatio... | JavaScript | media/com_akeeba/js/configuration.js | weavermj/inquire | gpl-2.0 | 48,684 | 1,202 | codeparrot/github-code |
4e20c2b319d082a5ffc7471686d169e561b93f8040baf059062edee015c002ac | /*
nicklist.c : irssi
Copyright (C) 1999-2000 Timo Sirainen
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 versio... | C | src/core/nicklist.c | yath/irssi | gpl-2.0 | 14,759 | 596 | codeparrot/github-code |
5d5df538bf5fd1b334555e7ae0d67fe5fc315daa2317abb47988cf7010b2b262 | #ifndef GAME_H_
#define GAME_H_
//Includes
#include "Globals.h" //Use of the globals variables of the game
#include "Graphics.h" //Use of the Graphics object
#include "Sounds.h" //Use of the Sounds object
#include "Menu.h" //Use of the Menu object
#include "SDLTimer.h" //Use of the SDLTimer object
#i... | C | src/Game.h | carlos-jenkins/galaxy | gpl-2.0 | 1,807 | 81 | codeparrot/github-code |
f0ef08aa2fa10a1c85acb826720316d5862d1fd4202b2c806b4f200812293d8d | /*
* Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | C++ | hotspot/src/share/vm/runtime/vmThread.hpp | openjdk/jdk8u | gpl-2.0 | 5,481 | 159 | codeparrot/github-code |
a70d8db89b420e598592d7b42eb9c6258adf616cb4e180a86098776a74d48b49 | /************************************************************
* Copyright (C), 2008-2012,
* FileName: // ÎļþÃû
* Author: // ×÷Õß
* Date: // ÈÕÆÚ
* Description: // Ä£¿éÃèÊö
* Version: // °æ±¾ÐÅÏ¢
* Function List: // Ö÷Òªº¯Êý¼°Æä¹¦ÄÜ
* 1. -------
* History: // ÀúÊ·Ð޸ļǼ
* <author> <time> ... | C | bsp/stm32f40x_production/drivers/usart_aux.c | GuoZhiyong/RTT_GPS_STUSB_TEST | gpl-2.0 | 3,710 | 144 | codeparrot/github-code |
85ef34cbef545d6ba0f7f4a378089cad4ca77ce4813e993b191fe0fa0ae1f511 | /**
* Galaxy Open-Source Massively Multiplayer Game Simulation Engine
* Copyright (C) 2007 OpenSWG Team <http://www.openswg.com>
*/
// *********************************************************************
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU... | C++ | src/osSOEProtocol/galaxymanagerlistener.cpp | apathyboy/openswg | gpl-2.0 | 2,483 | 66 | codeparrot/github-code |
c7248bf50a9bcb49929d956c631c6d1f191055a94e83a6af85e84049f10b7f30 |
#ifdef HAVE_CONFIG_H
#include <scconfig.h>
#endif
#include <fstream>
#include <util/keyval/keyval.h>
#include <math/isosurf/shape.h>
#include <chemistry/qc/wfn/solvent.h>
#include <chemistry/molecule/formula.h>
#ifdef USING_NAMESPACE_STD
using namespace std;
#endif
using namespace sc;
static inline double
get_ki(i... | C++ | src/lib/chemistry/solvent/disprep.cc | qsnake/mpqc | gpl-2.0 | 10,977 | 336 | codeparrot/github-code |
2e69c2916e2044cfe9148b9562dc9f86d0fb5caf77cc2224600917eb83661ef4 |
define([
'jquery',
'underscore',
'backbone',
'models/Ratings',
'models/RatingsList',
'views/RatingsView',
'baseOptions',
'text!templates/ratingsListView.html'
], function ($, _, Backbone, Ratings, RatingsList, RatingsView, baseOptions, ratingsListViewTemplate) {
var rat... | JavaScript | public_html/js/views/RatingsListView.js | donhenton/backbone-sandbox | gpl-2.0 | 7,837 | 239 | codeparrot/github-code |
b62b75c9b25cb41db9673310a621614f32528266162d735dd0ef79f568bcc13d | package Vista;
import javax.swing.JOptionPane;
public class ClaveAdminNoProgramada extends javax.swing.JFrame {
public ClaveAdminNoProgramada() {
initComponents();
this.setLocationRelativeTo(null);
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Genera... | Java | PlaneacionValidaciones/src/Vista/ClaveAdminNoProgramada.java | cristian0193/EstructuraDatos | gpl-2.0 | 5,507 | 116 | codeparrot/github-code |
ca3fab6c0e29ee7a83680116ee2c03b41edc4a19ec0772188b648f9715241d63 | /*
* drop-action: Drop action for drop targets
*
* Copyright 2012-2015 Stephan Haller <nomad@froevel.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 version 2 of the Licens... | C | xfdashboard/drop-action.h | Zeioth/xfdashboard | gpl-2.0 | 3,133 | 81 | codeparrot/github-code |
956ba6b40ad76c2c8273e5d8f99f06ee1ff2465821c7f4b1df3e0cb8ab821c70 | /*
** Copyright (C) 2014-2016 Cisco and/or its affiliates. All rights reserved.
** Copyright (C) 2002-2013 Sourcefire, Inc.
** Copyright (C) 1998-2002 Martin Roesch <roesch@sourcefire.com>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License ... | C | src/spo_plugbase.h | jasonish/snort | gpl-2.0 | 2,877 | 98 | codeparrot/github-code |
33ae45ea3c1ef3bd61d5725d89d61a4a9542f0d11c21a6b205fa1bee7622186a |
flApp.controller('SeasonEditCtrl', ['$scope', '$stateParams', '$timeout', 'leagueService', 'notificationService',
function($scope, $stateParams, $timeout, leagueService, notificationService) {
'use strict';
var leagueName = $stateParams.league;
var seasonName = $stateParams.season;
$scope.loading = -3;
va... | JavaScript | app/js/controllers/SeasonEditCtrl.js | peledkfir/fire-league | gpl-2.0 | 1,547 | 46 | codeparrot/github-code |
7c83a5663471db0d800cd1ff9051b0a52ba3fd0ce69318d55f8170ecdb42f440 | #ifndef _ASM_X86_IO_H
#define _ASM_X86_IO_H
/*
* This file contains the definitions for the x86 IO instructions
* inb/inw/inl/outb/outw/outl and the "string versions" of the same
* (insb/insw/insl/outsb/outsw/outsl). You can also use "pausing"
* versions of the single-IO instructions (inb_p/inw_p/..).
*
* This f... | C | arch/x86/include/asm/io.h | 01org/prd | gpl-2.0 | 10,407 | 355 | codeparrot/github-code |
b021c7d99fdb2cd48145b64c3e9cbdab50f6aaa51ecb24e9448ac9a4106a3c56 | /*
* linux/arch/arm/mach-omap2/board-3430sdp.c
*
* Copyright (C) 2007 Texas Instruments
*
* Modified from mach-omap2/board-generic.c
*
* Initial code: Syed Mohammed Khasim
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 ... | C | arch/arm/mach-omap2/board-3430sdp.c | johnweber/bbxm-kernel | gpl-2.0 | 22,068 | 897 | codeparrot/github-code |
f58a178b16c3658fdabef6002a3f7627b5498750def7105d196da5cddf384496 | /*
Copyright (C) 2014 Baptiste Covolato <b.covolato@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 (at your option) any later version.
This program is... | C++ | ucc/src/ast/member-expr.cc | Nakrez/ucc | gpl-2.0 | 1,584 | 73 | codeparrot/github-code |
cae696d6c7588ca23bcc105022eccb00b3bf28c050f7157c135f224bd1352f63 | #!/bin/sh
#
# Copyright (c) 2005 Junio C Hamano
#
test_description='Same rename detection as t4003 but testing diff-raw.
'
. ./test-lib.sh
. ../diff-lib.sh ;# test-lib chdir's into trash
test_expect_success \
'prepare reference tree' \
'cat ../../COPYING >COPYING &&
echo frotz >rezrov &&
git-update-... | Shell | t/t4005-diff-rename-2.sh | dmgerman/git-test-ori | gpl-2.0 | 5,453 | 167 | codeparrot/github-code |
08004d832b7616db2b72a6a2a2546871eea32f81260d8d21036439219c7e9bc7 | #ifndef BIT_DHT_INTERFACE_H
#define BIT_DHT_INTERFACE_H
/*
* bitdht/bdiface.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as publishe... | C | libbitdht/src/bitdht/bdiface.h | RedCraig/retroshare | gpl-2.0 | 13,542 | 420 | codeparrot/github-code |
6858d7f9f49b83e2a63a5ce1cda67eccc8b980278fd1856bb447b7d6968ef247 | /*
===========================================================================
Copyright (C) 1999 - 2005, Id Software, Inc.
Copyright (C) 2000 - 2013, Raven Software, Inc.
Copyright (C) 2001 - 2013, Activision, Inc.
Copyright (C) 2013 - 2015, OpenJK contributors
This file is part of the OpenJK source code.
OpenJK is ... | C | code/cgame/cg_media.h | DustysPatch/OpenJK | gpl-2.0 | 10,664 | 466 | codeparrot/github-code |
19b9b6ce904cfe327adc47ced6d3399e064a7d74bddbf49b05cf5253e9ec9ee7 | % -*-LaTex-*-
%-----------------------------------------------------------------------------
% The following content of the file is a verbatim copy of file
% http://www.gnu.org/licenses/fdl-1.3.tex which has been slightly modified
% (these changes do NOT effect the produced pdf document!):
% - adding the ... | TeX | devel/doc/ASKI_developers_manual/fdl-1.3.tex | seismology-RUB/ASKI | gpl-2.0 | 27,224 | 609 | codeparrot/github-code |
07605b2633561ba30ffdf9c4a95231a7eedff035110e4b7dd8596e42546f894b | import sys
import csv
def intersect(a, b):
""" return the intersection of two lists """
return list(set(a) & set(b))
def union(a, b):
""" return the union of two lists """
return list(set(a) | set(b))
def combinarA(x,y):
return (x,y,"A")
def combinarB(x,y):
return (x,y,"B")
def printCSV(list,file... | Python | src/cyclomatic.py | fpradah/change_data_structure | gpl-2.0 | 1,610 | 76 | codeparrot/github-code |
01dc498fa5f687a9dfae0a4a1d57e2ef931c3aa8c27e0d51c9de8134c2fbaf43 | <?php
/**
* FedEx Integration
*
* Copyright (c) 2013. by Way2CU
* Author: Mladen Mijatov
*/
use Core\Module;
class fedex extends Module {
private static $_instance;
/**
* Constructor
*/
protected function __construct() {
global $section;
parent::__construct(__FILE__);
// register backend
if (M... | PHP | modules/fedex/fedex.php | Way2CU/Caracal | gpl-2.0 | 3,292 | 149 | codeparrot/github-code |
aeda3c4a52b735ccefc293595c6f1197ca1e95180b5148019ccd746350c6f573 | # ##### 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... | Python | io_mesh_ms3d/export_ms3d.py | pvint/Blender2MS3d | gpl-2.0 | 11,954 | 480 | codeparrot/github-code |
272bc270f09bd9b0e41d3772ffb0707546f51d3faddabac0941fa886fdde9058 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Vagrant for the People!</title>
<meta name="description" content="impress.js is a presentation tool based on the power of CSS3 trans... | HTML | index.html | gerzenstl/vagrant-slides | gpl-2.0 | 13,111 | 249 | codeparrot/github-code |
47122319b006a33c2b11c39fa0346ba6531b7bc08568edc294c09cfe48c3d61b | /*
* Copyright (C) 2007 Steve Ratcliffe
*
* 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 Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHO... | Java | src/uk/me/parabola/mkgmap/main/MakeTestLangMap.java | balp/mkgmap | gpl-2.0 | 2,531 | 88 | codeparrot/github-code |
1c6556e09906dac4e041561c2f661768d862fd329fcc7d30b6ae02fcc54204fc | <?php
/*
+---------------------------------------------------------------------------+
| Revive Adserver |
| http://www.revive-adserver.com |
| ... | PHP | lib/max/Dal/Admin/Clients.php | sgreiner/revive-adserver | gpl-2.0 | 5,207 | 137 | codeparrot/github-code |
d84f1e62a0337e09c4b50e0567265d18a2ade40ed4212b5d322c792753a1fbbe | package area.gui;
import java.util.Arrays;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.Inventory;
import battle.BattleCalculator;
import effect.SoundEffect;
import m... | Java | [Spigot 1.12.2]/src.main.java.io.github.goldbigdragon.goldbigdragonrpg.advanced/area/gui/AreaMonsterListGui.java | GoldBigDragon/GoldBigDragonRPG | gpl-2.0 | 7,373 | 167 | codeparrot/github-code |
cc9aacc1990cbe3b9f1f7c8beae691bf84787617b8872f785020e02f14f37f53 | using UnityEngine;
using System.Collections;
public enum UGUISide
{
BottomLeft,
Left,
TopLeft,
Top,
TopRight,
Right,
BottomRight,
Bottom,
Center,
}
public class UGUIMath
{
public static Bounds calculateWorldBounds(GameObject go)
{
if (null == go) { return new Bounds(Vector3.zero, Vec... | C# | U3D/Client/Assets/Script/Depend/Util/UGUIMath.cs | oathx/Six | gpl-2.0 | 1,144 | 55 | codeparrot/github-code |
9df5ba5b3f894d0995cc069d96325b0f4f52b06bd31f745d3162eb0e9576a1f5 | /*
Armator - simulateur de jeu d'instruction ARMv5T à but pédagogique
Copyright (C) 2011 Guillaume Huard
Ce programme est libre, vous pouvez le redistribuer et/ou le modifier selon les
termes de la Licence Publique Générale GNU publiée par la Free Software
Foundation (version 2 ou bien toute autre version ultérieure ch... | C | memory.h | dimpolth/projetProg5-ARM_simulator | gpl-2.0 | 2,024 | 48 | codeparrot/github-code |
093509070c385026a3a10e4336afbeb8845637cc8fd44470dfc58757f5c1d676 | /* main_window_slots.cpp
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* 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 ... | C++ | ui/qt/main_window_slots.cpp | hashbrowncipher/wireshark | gpl-2.0 | 72,639 | 2,212 | codeparrot/github-code |
bd176633a9dc8c6384b8c02e316907f6f8d8ba5cfab843f77b3b2b921a2a21fb | /* drivers/char/ser_a2232.c */
/* $Id: ser_a2232.c,v 0.4 2000/01/25 12:00:00 ehaase Exp $ */
/* Linux serial driver for the Amiga A2232 board */
/* This driver is MAINTAINED. Before applying any changes, please contact
* the author.
*/
/* Copyright (c) 2000-2001 Enver Haase <ehaase@inf.fu-berlin.de>
* ... | C | drivers/char/ser_a2232.c | xiandaicxsj/copyKvm | gpl-2.0 | 25,287 | 823 | codeparrot/github-code |
19a6ebfb7226e3d220ea72ffe73889a8fa2b2c63cc69e835309da13d9a07ac01 | package pl.cierniewski.friendlygallery.facebookapi.exceptions;
import com.google.api.client.http.HttpResponse;
import com.google.api.client.http.HttpResponseException;
import com.google.common.base.Optional;
import java.util.Locale;
public abstract class ServerException extends HttpResponseException {
public st... | Java | FacebookApi/src/main/java/pl/cierniewski/friendlygallery/facebookapi/exceptions/ServerException.java | cierniu/FriendlyGallery | gpl-2.0 | 1,952 | 68 | codeparrot/github-code |
ec1f34d043c669f300d9af6add3aead1d29e8983d22039769600f523e35189f1 | /*
* Gui.cpp
*
* Created on: 16 déc. 2013
* Author: Soinou
*/
#include "Gui.hpp"
#include <client/vue/Scene.hpp>
#include <client/Jeu.hpp>
#include <client/utile/Notification.hpp>
Gui::Gui(Scene* scene) :
elements(), messages(), horloge(), scene(scene)
{
}
Gui::~Gui()
{
elements.clear();
observate... | C++ | src/client/vue/gui/Gui.cpp | Barbatos/BatailleSpatiale | gpl-2.0 | 7,757 | 342 | codeparrot/github-code |
9db06e06b092a687490f86fe57fac69536ba279b4a34aa43b27509f01cc5682f | //--------------------------------------------------------------------------
// Copyright (C) 2014-2016 Cisco and/or its affiliates. All rights reserved.
// Copyright (C) 2013-2013 Sourcefire, Inc.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public... | C++ | src/file_api/file_capture.cc | Ghorbani-Roozbahan-Gholipoor-Dashti/Snort | gpl-2.0 | 14,414 | 548 | codeparrot/github-code |
dbbf7e5bcbfe46ca602ab0915d2fafb68dec0583bffc871fe714187b21ec9fa5 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Media;
using System.Xml.Serialization;
using Filtration.ObjectModel.Enums;
namespace Filtration.ObjectModel.ThemeEditor
{
[Serializable]
public class Theme
{
private readonly ThemeComponentCollection _component... | C# | Filtration.ObjectModel/ThemeEditor/Theme.cs | Shtong/Filtration | gpl-2.0 | 1,204 | 43 | codeparrot/github-code |
a46907d0a5f9b47955b163f94d6bb553e63006707954e03a605c0b01799bef1b | /*
* Copyright (C) 2010-2011 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Genera... | C | src/server/game/Instances/InstanceSaveMgr.h | sourceleaker/gaycore | gpl-2.0 | 9,849 | 235 | codeparrot/github-code |
cbb3557de0a5e3c736c03e8f03e829665c5686f458ccd925a9715c61efaba399 | function clock() {
if (!document.layers && !document.all) return;
var hours = theTime.getHours();
var minutes = theTime.getMinutes();
var seconds = theTime.getSeconds();
var m;
theTime.setSeconds( seconds+1 );
var day = theTime.getDate();
var pre = "th";
var ampm = "am";
if (day == 1) pre = "st";
if (day == 21) pre = "... | JavaScript | clock.js | anonv/Traffic-Exchange | gpl-2.0 | 971 | 35 | codeparrot/github-code |
1d01015b9a83abe07d084edfa30af1e5bd3e3df5a97e0f06e48e4c92ca31d1c3 | {-# LANGUAGE DeriveGeneric #-} -- needed for json parsing
module Types where
import GHC.Generics (Generic)
import qualified Data.Map as M
import Data.Maybe (fromMaybe, fromJust)
-- a Symbol gets bound; a Sym is a sort of literal
type Symbol = String
data Sym = Sym String
deriving (Eq, Ord, Generic)
instance Show S... | Haskell | res0/Types.hs | kovach/web | gpl-2.0 | 2,970 | 126 | codeparrot/github-code |
a25c591ca90eb63d23e0a58c310a911913d0dac4b80f2c98f394c8d747106f00 | <?php
/**
* CCTM_checkbox
*
* Implements an HTML text input.
*
* @package CCTM_FormElement
*/
class CCTM_checkbox extends CCTM_FormElement
{
public $props = array(
'label' => '',
'name' => '',
'description' => '',
// checked_by_default determines whether 'checked_value' or 'unchecked_value' is passed t... | PHP | wp-content/plugins/custom-content-type-manager/fields/checkbox.php | noslouch/ucpruk | gpl-2.0 | 8,820 | 254 | codeparrot/github-code |
59d378b057cf1db2692cf7be2b0402e81a91954c0aa6250d74ad9cdb1b56d497 | /****************************************************************************
*
* This file is part of the ViSP software.
* Copyright (C) 2005 - 2015 by Inria. All rights reserved.
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* (... | C | modules/core/include/visp3/core/vpThetaUVector.h | jokla/visp | gpl-2.0 | 6,265 | 200 | codeparrot/github-code |
79eac5b342ce5c436c371dfa7b416311fb27f30c6df68a89def1f6d357a012e2 | package svg.gui.action;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.AbstractAction;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import java... | Java | svg/gui/action/SaveImageAction.java | ivangro/tlahcuiloVC | gpl-2.0 | 1,725 | 52 | codeparrot/github-code |
67e39162c1ad61364edc09461dc1d79b17cf03d468455b861d596b416ce5b02b | #include "bbslib.h"
#if defined(ENABLE_GHTHASH) && defined(ENABLE_FASTCGI)
#include <ght_hash_table.h>
#endif
#ifndef ENABLE_FASTCGI
int looponce = 0;
#define FCGI_Accept() looponce--
#endif
struct cgi_applet applets[] = {
// {bbsusr_main, {"bbsusr", NULL}},
{bbsucss_main, {"bbsucss", NULL}},
{bbsdefcss_main, ... | C | nju09/bbsmain.c | lytsing/ytht | gpl-2.0 | 14,133 | 553 | codeparrot/github-code |
ff8f91aa5b055c84346812e3d8aabd71ea7d3f8092e38d40dc8da7e5324451dd | /*
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2014 individual OpenKinect contributors. See the CONTRIB file
* for details.
*
* This code is licensed to you under the terms of the Apache License, version
* 2.0, or, at your option, the terms of the GNU General Public... | C | src/lib/libfreenect2/depth_packet_processor.h | ethz-asl/libfreenect2 | gpl-2.0 | 6,258 | 200 | codeparrot/github-code |
c59e399f03afb12ad050b8ce0382553d063da4bc395d7ade474a2d9e2b62bf1b | #!/usr/bin/env python
# angelus.py - John Burnett & Will Johnson (c)2015
#
# Angelus does the following:
# -FFT analysis
# -Partial tracking
# -Modal analysis
# -Resynthesis
#
# Angelus will eventually do the following:
# -FFT Analysis -> Notation
# -Modal Analysis -> 3D mesh (and reverse?)
from FFT_Analyzer import ... | Python | src/angelus.py | johncburnett/Angelus | gpl-2.0 | 953 | 44 | codeparrot/github-code |
ebcb09b6c47a984d5bde948222225e740da0ee20803f640f127a5ee1abb4a5f6 | <?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+---------------... | PHP | sites/all/modules/civicrm/CRM/Campaign/Form/Search/Campaign.php | acappellamaniac/eva_website | gpl-2.0 | 4,838 | 130 | codeparrot/github-code |
f78614ed490b7a52daecc0fe2d9a3318ce82b456e748960d5d5d259b7b9ab240 | <?php
/**
* @file
* Main view template.
*
* Variables available:
* - $classes_array: An array of classes determined in
* template_preprocess_views_view(). Default classes are:
* .view
* .view-[css_name]
* .view-id-[view_name]
* .view-display-id-[display_name]
* .view-dom-id-[dom_id]
*... | PHP | sites/all/themes/humanitarianresponse/templates/view/views-view.tpl.php | pcambra/site | gpl-2.0 | 2,740 | 104 | codeparrot/github-code |
d4687a5afbb4f7428dc7d0fda3dc3fc623aee7503a3613fe9a6579de964ea942 | /*
File: partsunn.c
Copyright (C) 1998-2009 Christophe GRENIER <grenier@cgsecurity.org>
This software is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... | C | src/partsunn.c | mqudsi/testdisk | gpl-2.0 | 3,553 | 123 | codeparrot/github-code |
2a3ac1839669a9113b65e5bfdf38c4171a04a5f6e2bf6795dedafa784c91c38e | /*
Copyright (C) 2016 D Levin (https://www.kfrlib.com)
This file is part of KFR
KFR 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 versi... | C++ | include/kfr/simd/impl/function.hpp | kfrlib/kfr | gpl-2.0 | 16,835 | 337 | codeparrot/github-code |
1f1751cc70349cf70132afdff53324ead3930f0d362e07564f3c9690be8f13cc | /*
* Copyright (C) 2014-2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... | C | modules/javafx.web/src/main/native/Source/bmalloc/bmalloc/BoundaryTag.h | teamfx/openjfx-9-dev-rt | gpl-2.0 | 3,940 | 131 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.