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 |
|---|---|---|---|---|---|---|---|---|
cc0fd76d7aa4921ed742df3848d82a0083f845af5b708083406dc5661ca45466 | package org.cnv.shr.db.h2;
import java.io.IOException;
import java.nio.file.Path;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.logging.Level;
import org.cnv.shr.db.h2.ConnectionWrapper.QueryWrapper;
import org.cnv.shr.db.h2.Connectio... | Java | ConvenienceShare/src/org/cnv/shr/db/h2/DbRootPaths.java | tlhallock/ballin-meme-share | gpl-2.0 | 5,264 | 191 | codeparrot/github-code |
253f70c80764fd8a0355da331061cd8ead980577a190d966f3626f5de7436d85 | /*
* Copyright (C) 2008-2012 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 General Public License as published by the
* Free Software Foundation; eith... | C | src/server/game/DataStores/DBCfmt.h | S-proyect/Emu-S | gpl-2.0 | 7,674 | 130 | codeparrot/github-code |
adb74179e4a3f76a64c3b5dae0301361c5a6552091247e09b8718be80e8778ad | /*
* Copyright (c) 1998-2011 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms o... | Java | modules/kernel/src/com/caucho/make/VersionDependency.java | dlitz/resin | gpl-2.0 | 2,367 | 91 | codeparrot/github-code |
e9e995bfb486962590e420b2fc862297d10cfe6c6a49dac056d3638dcbd56308 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Threading;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using RacingGame.Collision;
using RacingGame.Graphics;
namespace RacingGame.Map... | C# | Map/Level.cs | davidsundelius/SLERP3D | gpl-2.0 | 15,725 | 465 | codeparrot/github-code |
552e92742cf43cb7cdcad34049a0ba5f191a37abf7a6996702093a1f92fd5852 | /*
* The file intends to implement the functions needed by EEH, which is
* built on IODA compliant chip. Actually, lots of functions related
* to EEH would be built based on the OPAL APIs.
*
* Copyright Benjamin Herrenschmidt & Gavin Shan, IBM Corporation 2013.
*
* This program is free software; you can redistri... | C | arch/powerpc/platforms/powernv/eeh-ioda.c | badkiller/kernel_cubietruck | gpl-2.0 | 24,508 | 890 | codeparrot/github-code |
306fc929ebe3b07e4b308aecc744ec59fc4435737479b6b30da71f54661685bc | /*
* linux/arch/arm/vfp/vfpmodule.c
*
* Copyright (C) 2004 ARM Limited.
* Written by Deep Blue Solutions Limited.
*
* 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.
*/
#incl... | C | arch/arm/vfp/vfpmodule.c | MikeC84/mac_kernel_lge_hammerhead | gpl-2.0 | 21,807 | 841 | codeparrot/github-code |
e9ca8cd096bb6567d38de6319209f2393924eec11a7de12fb62c045d907d1328 | <?php
namespace jtmce\components;
use jtmce\models\Formats;
/**
* Adds hooks and methods to extend TinyMCE WordPress editor
*/
class TinyMceExt extends \jtmce\core\Component
{
/**
* initialize wordpress hooks
*/
public function __construct()
{
add_filter( 'mce_buttons_2', array($this, 'enableFormatButton')... | PHP | components/TinyMceExt.php | justcoded/just-tinymce-custom-styles | gpl-2.0 | 2,513 | 109 | codeparrot/github-code |
cc470f9adc35be4a193e3b5bffffc50c62440dba5ad4a7abbe892a151cfc5154 | <?php
/**
* @version $Id: view.html.php 501 2010-06-24 19:25:30Z joomlaworks $
* @package K2
* @author JoomlaWorks http://www.joomlaworks.gr
* @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gp... | PHP | components/com_k2/views/comments/view.html.php | rlee1962/diylegalcenter | gpl-2.0 | 4,221 | 92 | codeparrot/github-code |
a092b722e4c4f8c8cf68891fa414462f35fb2ab939ea79df01aa200a5a271f83 | package org.umsa.domain;
import java.io.Serializable;
public class Clientes implements Serializable {
private int id_usuario;
private String clave;
private String apodo;
private String usuario;
private int gestion;
private int id_rol;
private String ruta_firm;
private int cod_almacen;
private ... | Java | src/org/umsa/domain/Clientes.java | Taxxx/capri-web1.0 | gpl-2.0 | 1,721 | 88 | codeparrot/github-code |
e49cbd3e719f1ea4676668cb7f35f951385777eb43c31eb692e4f0a00d4b6d08 | #define PARAM_FILE_COUNTER 0x3A
#define PARAM_EXPOSURE_COUNTER 0x02
#include "platform.h"
// These F-numbers are the "mock" values shown by the cam.
// They're linked to FL (zoom) and ND8 filter.
// aperture_sizes_table[].id is just a serial number.
const ApertureSize aperture_sizes_table[] = {
{ 9, 200, "... | C | platform/s100/shooting.c | c10ud/CHDK | gpl-2.0 | 5,057 | 169 | codeparrot/github-code |
d3bbe018c1a33456702d3edd55395d9ae033c21c9f946603f054425824e76a6d | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | C | libs/curl/http_chunks.c | ensiform/jk2mv | gpl-2.0 | 12,375 | 386 | codeparrot/github-code |
b2382233ea58a631cb681b19c345b84c6e041f8e704ffe48896a23e316f64b23 | /* $Id: zen.css,v 1.14.2.1 2009/02/13 07:46:04 johnalbin Exp $ */
/*
* ZEN STYLES
*
* This is an example stylesheet. Sub-themes should NOT include the zen/zen.css
* file, but instead copy this CSS to their own stylesheets.
*
* In this stylesheet, we have included all of the classes and IDs from this
* theme's t... | CSS | sites/all/themes/girlsknowhow/girlsknowhow.css | btribulski/girlsknowhow | gpl-2.0 | 24,027 | 901 | codeparrot/github-code |
91a360593f044e18f03e665c2ac719e9d47159cde339b36e7f8f99b33f83b209 | <?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Displays table create form and handles it
*
* @package PhpMyAdmin
*/
/**
* Get some core libraries
*/
require_once 'libraries/common.inc.php';
$action = 'tbl_create.php';
$titles = PMA_Util::buildActionTitles();
// Check parameters
PMA_Util::checkParameter... | PHP | tbl_create.php | remicollet/phpmyadmin | gpl-2.0 | 15,935 | 455 | codeparrot/github-code |
9962b5b5c12c5bf1a0ab8d1d3932dd31339b964aff401ca4788d329870f97302 | <!DOCTYPE html>
<html itemscope itemtype="http://schema.org/website" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" lang="en">
<head>
<title>2005 Maryland Terrapins Statistics | College Football at Sports-Reference.com</title>
<script type="text/javascript">var sr_gzipEnabl... | HTML | source_data/2005/stats/Maryland.html | vrivellino/cfs | gpl-2.0 | 71,952 | 1,949 | codeparrot/github-code |
d6c97d3d858d5b228c7c073cf6f677523f000d2d58b3d23e466a4dae7d337157 | <?php
include('actions.php');
add_action( 'admin_head', 'eb_admin_add_scripts' );
function eb_admin_add_scripts(){
//FONTAWESOME STYLE //font-awesome-css
wp_register_style('font-awesome-ccc', PL_URL.'/css/font-awesome.css',true);
wp_enqueue_style('font-awesome-ccc');
wp_register_style('style_st', PL_URL.'/css... | PHP | wp-content/plugins/woo-product-tab/includes/embed.php | MagicMediaInc/ironmanrecovery | gpl-2.0 | 14,012 | 375 | codeparrot/github-code |
e98be528c68f25ed1d2340c46caf31f0b48683f5ebca5ae7c659bc1cbffa062a | <?php
/*
* Copyright (C) 2009-2016 Internet Neutral Exchange Association Company Limited By Guarantee.
* All Rights Reserved.
*
* This file is part of IXP Manager.
*
* IXP Manager is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the F... | PHP | library/IXP/Form/Interface/Physical.php | rowanthorpe/IXP-Manager | gpl-2.0 | 6,497 | 166 | codeparrot/github-code |
bf91af502bb48f2486515d706f23740cbf174a708df7c069e5136d31859e95c6 | '''app.routing.sheet'''
import re, time
from flask import g
from .. import get_keys
from app.lib import gdrive
from app.lib.gsheets_cls import SS
from app.main.parser import has_postal
from logging import getLogger
log = getLogger(__name__)
#-----------------------------------------------------------------------------... | Python | app/routing/sheet.py | SeanEstey/Bravo | gpl-2.0 | 6,147 | 184 | codeparrot/github-code |
be46944bbc3a368c61e639817f97465e47419af9d190ca2af42eba5d29e1b3b8 | <?php
/**
* @project OGProyect
* @version 1.0.1
*****************************
* @Archivo sessions.php.
*****************************
* @copyright Copyright (C) 2015.
* @copyright EX XGProyect By Lucky (C) 2008 - 2014.
*/
if ( ! defined ( 'INSIDE' ) ) { die ( header ( 'location:../../' ) ) ; }
class Sessions ... | PHP | application/core/Sessions.php | FGServers/OGProyect | gpl-2.0 | 2,981 | 164 | codeparrot/github-code |
d612ee5b2fb20e2d5d08af1123b3d97093b28731f59411b8f80820cd7c1823d1 | class TopicController {
constructor($scope, $http, Settings, Quaternions) {
this.$scope = $scope;
this.$http = $http;
this.setting = Settings.get();
this.Quaternions = Quaternions;
this.isSubscribing = false;
}
$onInit() {
this.roslibTopic = new ROSLIB.Topic({
ros,
name: this... | JavaScript | ros-control-center/app/topics/topic.component.js | MS71/raspirover | gpl-2.0 | 1,371 | 58 | codeparrot/github-code |
a5c91ec94e581a8e298b8c14d57d8f8ca5a19b1c5b48e846ec886f1e60855b82 | #include <windows.h>
#include <obs-module.h>
#include <util/windows/win-version.h>
#include <util/platform.h>
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("win-capture", "en-US")
extern struct obs_source_info duplicator_capture_info;
extern struct obs_source_info monitor_capture_info;
extern struct obs_source_i... | C | plugins/win-capture/plugin-main.c | ForgeGaming/obs-studio | gpl-2.0 | 1,737 | 66 | codeparrot/github-code |
3173e7e9aa170f2f763c8ac3a404efeff482574b5fb10b764bb2b549ad1e1cbd | /*********************************************************************************
WiFi Mesh Simulator PRO
Copyright (C) 2009 Denis Itskovich
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 ve... | C++ | WiFiMesh/MeshGUI/App/MeshApp.cpp | denis-itskovich/wifi-mesh | gpl-2.0 | 1,641 | 56 | codeparrot/github-code |
bbcd65eb4004ad94e1845dda46f7b6ea905752c26967b4970b492ad702bd04e5 | <?php
/**
* davidpenuela functions and definitions
*
* @package davidpenuela
*/
/**
* Set the content width based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) ) {
$content_width = 640; /* pixels */
}
if ( ! function_exists( 'davidpenuela_setup' ) ) :
/**
* Sets up theme defaults and... | PHP | wp-content/themes/davidpenuela/functions.php | davidpenuelab/asexualsproject.com | gpl-2.0 | 4,569 | 138 | codeparrot/github-code |
1318eeb424961fc448428de27d1c220b4915a8dc4a401d16f1c67b2309b5226e | /*
===========================================================================
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 free software; you can redistribute it and/or... | C++ | codemp/game/NPC_AI_Sniper.cpp | mrwonko/Jedi-Academy--Renaissance | gpl-2.0 | 25,309 | 888 | codeparrot/github-code |
25c3d727c45916f1e15e6498172c60fe9e76436c21b8da024470cc460fd6e84f | package main
import (
"fmt"
"github.com/wmarbut/go-epdfuse"
"image"
_ "image/jpeg"
_ "image/png"
"os"
)
func main() {
if len(os.Args) != 2 {
fmt.Println("Please specify one image to render.")
fmt.Println("Handles png and jpg files.")
fmt.Println("Example: `./papirus-image test.png`")
os.Exit(1)
}
f, ... | GO | examples/papirus-image/main.go | wmarbut/go-epdfuse | gpl-2.0 | 539 | 34 | codeparrot/github-code |
0589cfc6f860c3557a1c755734b91b1da8f3b4d4e626cc6adc88b8d0eee85836 | /*
* errno.c -- look up errno names and descriptions
* Copyright 2012 Lars Wirzenius (liw@iki.fi)
*
* 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... | C | errno.c | ghuls/moreutils-parallel | gpl-2.0 | 5,083 | 228 | codeparrot/github-code |
7ca2ca36a9c145b07e19bf37adf14772c11ef0b35e762a581e265f061b17d229 | \message{ !name(Cheatsheet.tex)}\documentclass[8pt]{extarticle} % extarticle: font sizes < 10
\usepackage[
pdftitle={LIGGGHTS Commands Reference},
pdfauthor={Siddharth Kanungo},
pdfkeywords={LIGGGHTS},
pdfsubject={Quick Reference Card for LIGGGHTS}
]{hyperref}
\usepackage{refcards}
\usepackage... | TeX | CheatSheet/_region_.tex | mendax-grip/DEM-Documentation | gpl-2.0 | 26,285 | 533 | codeparrot/github-code |
579a5d0ce57a4fda40c1a62e4ae0ee61eddbc91e26f22287195cc953e9292bd9 | <?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
class RP4WP_Post_Type_Manager {
/**
* Get the available post types
*
* @since 1.0.0
* @access public
*
* @return array
*/
public function get_available_post_types() {
$raw_post_types = get_post_types( array( '_builtin' => ... | PHP | wp-content/plugins/related-posts-for-wp-premium/classes/class-post-type-manager.php | mgratch/metroinvestments | gpl-2.0 | 3,373 | 170 | codeparrot/github-code |
044f848227fdd80fda568c8e4a940692cca0f7e58fd812cf03f26573d7d18ecf | /****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Comm... | C++ | qtopiacore/qt/examples/network/torrent/trackerclient.cpp | librelab/qtmoko-test | gpl-2.0 | 7,936 | 238 | codeparrot/github-code |
11b1c2ceead018b5be55169bb834becd33eaf07448c7d893a9f1a9675991e1a7 |
#include "SWGMeasurementPost.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace Swagger {
SWGMeasurementPost::SWGMeasurementPost(QString* json) {
init();
this->fromJson(*json);
}
SWGMeasurementPost::SWGMeasurementPost() {
init();
}... | C++ | client/SWGMeasurementPost.cpp | QuantiModo/QuantiModo-SDK-Qt5cpp | gpl-2.0 | 2,899 | 139 | codeparrot/github-code |
7238a30033533ec4d96467ded36d338a9dd6a9b3f7c2f6d1fbbaa946471f36ae | /*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2007 Nokia Corporation
* Copyright (C) 2004-2009 Marcel Holtmann <marcel@holtmann.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 b... | C | src/device.c | thentenaar/bluez-dinovo | gpl-2.0 | 53,338 | 2,298 | codeparrot/github-code |
de2c683284ca9084d46abe5dc0c7a2d6e0cdd0a50e2e1f25de633fa8bec22eac | #ifndef __INCL_ARG_H
#define __INCL_ARG_H
#include <argp.h>
#define ARG_STATUS_UNKNOWN 0x00
#define ARG_STATUS_HELP 0x01
#define ARG_STATUS_INVALID_USAGE 0x02
#define opt_full(typename, nameval, requiredval, shortval, longval, stringval, flagsval, docstrval, groupval, has_defaultval, dfltval ... | C | arg.h | misterfish/fish-pines | gpl-2.0 | 2,264 | 80 | codeparrot/github-code |
4fca1504f6a65b03701c92dc12f4b3b77dbcd08c2b465a4f458020fed5708556 | /*
* Copyright 2006-2021 The MZmine Development Team
*
* This file is part of MZmine.
*
* MZmine 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 ... | Java | src/main/java/io/github/mzmine/modules/dataprocessing/featdet_adapchromatogrambuilder/ModularADAPChromatogramBuilderTask.java | mzmine/mzmine3 | gpl-2.0 | 13,464 | 349 | codeparrot/github-code |
a5a64ee89a931470b89982d3318a0ccdaf1fccde76c91c026ede5f2640cabe21 | /*
* Copyright 2005 PB Consult Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Java | third-party/common-base/src/java/com/pb/common/calculator/Expression.java | moeckel/silo | gpl-2.0 | 38,848 | 1,274 | codeparrot/github-code |
4afe1eed4fac354cf21a9a571a216b2b27c0ce72fc8849958bbad6eb7c8bf0a2 | /*
* Copyright (c) 1997, 2013, 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++ | src/share/vm/oops/oop.inline.hpp | mur47x111/JDK8-concurrent-tagging | gpl-2.0 | 31,744 | 748 | codeparrot/github-code |
76abc45fc0a76ff547c041c276a251365de745f343913df7d764054094dbad97 | <?php
/**
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licensing details.
*/
namespace ACP3\Modules\ACP3\Auditlog\EventListener;
use ACP3\Core\Authentication\Model\UserModelInterface;
use ACP3\Core\Date;
use ACP3\Core\Model\Event\ModelSaveEvent;
use ACP3\Cor... | PHP | ACP3/Modules/ACP3/Auditlog/src/EventListener/OnModelAfterSaveListener.php | ACP3/cms | gpl-2.0 | 3,197 | 109 | codeparrot/github-code |
c896c1475ab90b7c4ccb1738c543926837c8810215f75a7a03cfebb3b4c247bb | /*
* WEMAC Fast Ethernet driver for Linux.
* Copyright (C) 2012 ShugeLinux@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... | C | drivers/net/ethernet/sun7i/sun7i_wemac.c | armpc/Armcore-a20-V12-kernel | gpl-2.0 | 54,482 | 2,116 | codeparrot/github-code |
37344d133645ba71c6e70e39911f393dcdeecffeace754eee0a447d0268d4a54 | <?php
function open_flash_chart_object_str( $width, $height, $url, $use_swfobject=true, $base='' )
{
//
// return the HTML as a string
//
return _ofc( $width, $height, $url, $use_swfobject, $base );
}
function open_flash_chart_object( $width, $height, $url, $use_swfobject=true, $base='' )
{
//
... | PHP | php-ofc-library/open-flash-chart-object.php | yumileroy/Aion-Legion-Roster | gpl-2.0 | 4,036 | 120 | codeparrot/github-code |
8f67b29ce36034cecde32f85d5fcf6509da735a7f32370043a66b3bf99db20dc | /*
* Ultra Wide Band
* UWB API
*
* Copyright (C) 2005-2006 Intel Corporation
* Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.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 Soft... | C | include/linux/uwb.h | Jackeagle/android_kernel_sony_c2305 | gpl-2.0 | 26,658 | 832 | codeparrot/github-code |
28cd415ccac89f4104eb13e7c6857d94db4a2617b13ede5bec8e7898ebaab4d2 | /*
* Copyright (c) 2015, 2016, 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 ... | Java | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/tutorial/StaticAnalysis.java | zapster/graal-core | gpl-2.0 | 26,062 | 618 | codeparrot/github-code |
640cec3b9e05898a158182f9b411f992a917c0e4cc535e636a8aacc7db3bc7eb | /*
* This file is part of the coreboot project.
*
* Copyright (C) 2015 Intel Corp.
*
* 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 distri... | C | src/drivers/intel/fsp1_1/fsp_gop.c | NamanG/coreboot2.0 | gpl-2.0 | 3,083 | 102 | codeparrot/github-code |
312bde68bc50891c614c3d8d47205a4ceabdf142f089417b544c9935faf0722c | # -*- python -*-
# Copyright (C) 2009-2017 Free Software Foundation, Inc.
# 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 versio... | Python | toolchain/arm_cm0/arm-none-eabi/lib/thumb/v7-ar/libstdc++.a-gdb.py | jocelynmass/nrf51 | gpl-2.0 | 2,483 | 62 | codeparrot/github-code |
307820e9614e900ad5879cf632a8396849d0d3e4473ae959f6ade56b07b2609e | /*
* This file is part of OpenTTD.
* OpenTTD 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.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the im... | C | src/widgets/vehicle_widget.h | JGRennison/OpenTTD-patches | gpl-2.0 | 5,045 | 84 | codeparrot/github-code |
e6e27e83a10b4b004ce2ab36da9f362ea24d1f69ae98aebbac2e7abd1c1adfc4 | /*
* Author: Konstantinos Xinidis, <xinidis@csd.uoc.gr>
*
* 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 | libmapi/src/linux/mapi-ioctl.c | BackupTheBerlios/monitoringapi | gpl-2.0 | 4,433 | 339 | codeparrot/github-code |
fc02ccb6577f19bb5c4e5b77a59e0dbd275d424100cf640c775fcac6e37a9930 | /* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
* Copyright (c) 2008 Sven Mallach <sven.mallach@honei.org>
*
* This file is part of the LA C++ library. LibLa 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 Sof... | C++ | honei/backends/cell/spe/libla/fill_double.cc | dribbroc/HONEI | gpl-2.0 | 1,519 | 50 | codeparrot/github-code |
f3486d532b910ee74ef493745a95da114ad01caf22832d9e9cca4902705f0dd9 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2011 UNINETT AS
#
# This file is part of Network Administration Visualized (NAV).
#
# NAV 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... | Python | python/nav/web/seeddb/utils/edit.py | sigmunau/nav | gpl-2.0 | 6,406 | 187 | codeparrot/github-code |
a3caad089326ae7363a7e3206fd4dcb2c61f60632bec9dbf806017fe7fca289d | --This is not my coding
local extra_loot = {
{hasName = "poisonous bug", items = {
{id = 2152, count = 2, chance = 3000}
}},
}
function Container:addExtraLoot(c, t)
if t.hasName then
local cn = c:getName():lower()
local cm = t.hasName:lower()
if not cn:match(cm) then
return true
end
end
for i = 1,... | Lua | 1.2/ExtraLoot.lua | Jeffro-ot/Abraham | gpl-2.0 | 1,013 | 47 | codeparrot/github-code |
2d3ed71988c9948352b9e5cde14d3199c215d59d79f341b3fd9f968d53cc67db | <?php
/**
* Fieldset component filters for admin list pages.
*/
class Simian_Admin_Fieldset_Filters {
/**
* The current content type filter.
*/
static $content_filter;
/**
* Assign filters to Simian hooks.
*/
static public function init() {
// get current filters
self::$content_filter = isset( $... | PHP | wp-content/plugins/smartsimian-creator/admin/components/list-fieldset.php | zdislaw/fiercefamily_wp | gpl-2.0 | 3,494 | 123 | codeparrot/github-code |
cedf1d557d5cf215448ccf4fb40bedcb1f9bdc6f9f77bf2037f8a91cfbf82172 | /* Base class for SPECTACLE* instruments
John Gibson <johgibso at indiana dot edu>, 11/28/02.
*/
//#define DUMP
//#define DEBUG
#include "SPECTACLE_BASE.h"
/* -------------------------------------------------------- SPECTACLE_BASE -- */
SPECTACLE_BASE :: SPECTACLE_BASE()
{
first_time = 1;
iamp_branch = 0;
... | C++ | insts/jg/SPECTACLE/SPECTACLE_BASE.cpp | CreativeInquiry/RTcmix | gpl-2.0 | 18,516 | 578 | codeparrot/github-code |
0f6ebeee68d5c9637378a4bde9dde0d188e9df7a8f42631ce1fda22d2b3eee02 | ;
; Copyright (C) 1996-2006 by Narech K. 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 li... | Assembly | dos32a-912-src/src/sb/sbind.asm | MarkZ87/BloodBox | gpl-2.0 | 14,037 | 820 | codeparrot/github-code |
54c3c1358bff48d4e427b61347b9c93cd58e9f612d5cb5da02c465bc5605de15 | /*
* Copyright (C) 2006 The Concord Consortium, Inc.,
* 25 Love Lane, Concord, MA 01742
*
* 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
* ... | Java | src/org/myjmol/viewer/PlanesRenderer.java | concord-consortium/mw | gpl-2.0 | 6,257 | 213 | codeparrot/github-code |
4446fa3c96eec7a47c068d5a4be35c3b15c7458b64ca3416aeb54237c29d5ad4 | // Snap Websites Server -- password policy handling
// Copyright (c) 2012-2019 Made to Order Software Corp. 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; either ver... | C++ | snapserver-core-plugins/src/password/blacklist.cpp | m2osw/snapwebsites | gpl-2.0 | 3,210 | 134 | codeparrot/github-code |
5877797c7ee39ac0af44bd22d03320ee6a53863641fa31d2b2859cb633522f75 | package diodevisualizer;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.math.FastMath;
import com.jme3.math.Vector2f;
import com.jme3.scene.Geometry;
import com.jme3.scene.Node;
import com.jme3.scene.shape.*;
/**
* Class containing informations about object to be displayed during ... | Java | DiodeVisualizer/src/diodevisualizer/VisibleObject.java | eiotec/DiodeFinder | gpl-2.0 | 2,755 | 107 | codeparrot/github-code |
0e8f030e4a46dc1b3c6fab5cc54a014bb9ba2e7c7f8c96b20bb5e40dd3e3eac3 | /*
* Copyright (C) 2008 Karel Zak <kzak@redhat.com>
*
* Inspired by libvolume_id by
* Kay Sievers <kay.sievers@vrfy.org>
*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <... | C | build_dir/target-mips_r2_uClibc-0.9.33.2/ubox-2013-07-31/libblkid-tiny/squashfs.c | shizhai/wprobe | gpl-2.0 | 1,937 | 88 | codeparrot/github-code |
8e74a7c5b368fbe30a9b3a26f7279cd3c8b9b6cbc6980b5138b114f29cd9a003 | /* Copyright (c) 2013-14 Codethink Ltd. (http://www.codethink.co.uk)
*
* This file is part of frepo.
*
* frepo 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 y... | C | src/git.c | CodethinkLabs/frepo | gpl-2.0 | 8,250 | 399 | codeparrot/github-code |
ea750b28b51647a79594c4408af3623dd235ff87b38260c63900b34ade9be4f8 | import httplib
import urllib
import json
client_id = "UkDnoQzEWYdVMkvbtQeNfP0B"
client_secret = "LoooyWceGKIrxNyG0niwiwjCYLB8X0xw"
parameters_code = {"client_id": client_id,
"response_type": "device_code",
"scope": "netdisk"}
parameters_token = {"grant_type": "device_token",
"code": ... | Python | storage/auth/baidu_auth.py | Tefx/turnip | gpl-2.0 | 1,525 | 48 | codeparrot/github-code |
563b260eb1e97e3c58ffd7fbdfa769687d157faaa618e9c4958d627c7f13f789 | /***************************************************************************
Copyright (C) 2008 Christoph Reichenbach
This program may be modified and copied freely according to the terms of
the GNU general public license (GPL), as long as the above copyright
notice and the licensing information contained herein... | C | src/sfx/seq/instrument-map.c | wjp/freesci-archive | gpl-2.0 | 14,233 | 540 | codeparrot/github-code |
5c066e91d20aed0b35094125b2f01c151de51c4a830ee05fe29bebb36db1d949 | <?php
/**
* Fruitful theme functions and definitions
*
* @package Fruitful theme
* @since Fruitful theme 1.0
*/
/**
* Set the content width based on the theme's design and stylesheet.
*
* @since Fruitful theme 1.0
*/
if ( ! isset( $content_width ) )
$content_width = 960; /* pixels */
/*woocommerce theme... | PHP | wp-content/themes/fruitful/functions.php | Factor-X/p3-old-website | gpl-2.0 | 81,068 | 1,790 | codeparrot/github-code |
c677e136b4fe7f224d3cf50d863c36d5ce31045da1a009aa2c3f36cf127a40ff | #ifndef _UMLITEM_H
#define _UMLITEM_H
#include "UmlBaseItem.h"
#include <qcstring.h>
#include <qvector.h>
// This class is a mother class for all the other Uml* classes, this
// allows to generalize their management, declare virtual operations etc ...
//
// You can modify it as you want (except the constructor)
cla... | C | genplugouts/sort/cpp/UmlItem.h | gregsmirnov/bouml | gpl-2.0 | 684 | 35 | codeparrot/github-code |
bf14ba823db63a394a2b6ba120bf70398d6a5d2c9ce378dea4691e24f1814372 | <?php
/**
*@return string
* create shortcode for onclick popups
*/
function rapidology_on_click_intent( $atts, $content = null ) {
extract(shortcode_atts(array(
"optin_id" => '0'
), $atts));
return '<div class="rad_rapidology_click_trigger_element" data-optin_id="'.$optin_id.'">'.$content.'</div>';
}
add_shortc... | PHP | includes/rapidology_functions.php | blbraner1234/rapidology | gpl-2.0 | 5,594 | 155 | codeparrot/github-code |
b630a8920c06a7bccb717f8a910300bd2916dd36f8c13f7a84f92f1164d2bb28 | /*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | C | kernel/sound/soc/mediatek/mt_soc_audio_v1/mt_soc_pcm_voice_extint.c | meizuosc/m75 | gpl-2.0 | 16,188 | 490 | codeparrot/github-code |
e156e790a87640358d138922aece11282e703327fbc4dccfeda626aeec3c5e8f | <?php
namespace Acquia\Blt\Robo\Commands\Acsf;
use Acquia\Blt\Robo\BltTasks;
use Acquia\Blt\Robo\Common\YamlMunge;
use Acquia\Blt\Robo\Exceptions\BltException;
use Robo\Contract\VerbosityThresholdInterface;
/**
* Defines commands in the "acsf" namespace.
*/
class AcsfCommand extends BltTasks {
/**
* Prints i... | PHP | src/Robo/Commands/Acsf/AcsfCommand.php | danepowell/blt | gpl-2.0 | 4,346 | 117 | codeparrot/github-code |
2ddc162d83afe04b02bd8010867f370a4dddfd0f0559310d244c70e0a7da3d18 | <?php
// PukiWiki - Yet another WikiWikiWeb clone.
// unfreeze.inc.php
// Copyright 2003-2017 PukiWiki Development Team
// License: GPL v2 or (at your option) any later version
//
// Unfreeze(Unlock) plugin
// Show edit form when unfreezed
define('PLUGIN_UNFREEZE_EDIT', TRUE);
function plugin_unfreeze_action()
{
glo... | PHP | plugin/unfreeze.inc.php | pukiwiki/pukiwiki | gpl-2.0 | 2,069 | 73 | codeparrot/github-code |
2eb46bd34ea43eac13b88e65907a397ad32f1f10beb8730320d6e07bcd9b10ac | #ifndef __MY_OBJECT_H__
#define __MY_OBJECT_H__
#include <glib-object.h>
#include <dbus/dbus-glib.h>
typedef struct MyObject MyObject;
typedef struct MyObjectClass MyObjectClass;
void my_object_register_marshallers (void);
GType my_object_get_type (void);
struct MyObject
{
GObject parent;
GError *saved_error;
... | C | libraries/dbus-glib-0.102/test/core/my-object.h | maria-msu-seclab/mpotrDevelopment | gpl-2.0 | 5,002 | 129 | codeparrot/github-code |
238dcaccbf2fe8d905d30879988251066c626c9fcfb189fb407ec9ec34ba6257 | /*----------------------------------------------------------------------
* Purpose: Raster Data
*
* Created: Junzhi Liu
* Date: 29-July-2012
*
* Revision:
* Date:
*---------------------------------------------------------------------*/
#include <fstream>
#include <string>
#include "GridLayering.h"
#include <iostr... | C++ | preprocess/cpp_src/grid_layering/Data.cpp | liujunzhi321/SEIMS | gpl-2.0 | 6,516 | 240 | codeparrot/github-code |
722c0088812678e43195ef24da14fd326425d12192168ac1566b733bc33ffdd0 | package edu.wayne.cs.severe.redress2.controller.metric;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import edu.wayne.cs.severe.redress2.controller.HierarchyBuilder;
import edu.wayne.cs.severe.redress2.controller.MetricUtils;
import edu.wayne.cs.severe.redress2.entity.Type... | Java | BIO-RIMP/src/main/java/edu/wayne/cs/severe/redress2/controller/metric/NOMMetric.java | BIORIMP/biorimp | gpl-2.0 | 1,522 | 56 | codeparrot/github-code |
cf41a2b69daeb57300980b1382379805b743b87d848dfaffccb4e363312bc4bd | <?php
/**
* Metabox Oject
*
* @package EPL
* @subpackage Classes/MetaboxesCustomFields
* @copyright Copyright (c) 2019, Merv Barrett
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 2.3
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
... | PHP | lib/includes/class-epl-metabox.php | wpdevstudio/Easy-Property-Listings | gpl-2.0 | 15,740 | 460 | codeparrot/github-code |
a5aad3cf32f8e64f5b1dd670bdffb2c10e74d54802b8ded1f809800919b1ebd1 | /*!
* jquery.event.drop - v 2.2
* Copyright (c) 2010 Three Dub Media - http://threedubmedia.com
* Open Source MIT License - http://threedubmedia.com/code/license
*/
// Created: 2008-06-04
// Updated: 2012-05-21
// REQUIRES: jquery 1.7.x, event.drag 2.2
;(function($){ // secure $ jQuery alias
// Events: drop, drop... | JavaScript | js/lib/jquery-event-drag-drop.js/jquery.event.drop.js | aliyun-UED/open5 | gpl-2.0 | 10,011 | 302 | codeparrot/github-code |
ce0a2e675a9f1b93b18a25573653c54cb7f2a1de1995c8b88b45fa30cfc30b1c | /*
* misc.c: Miscellaneous prom functions that don't belong
* anywhere else.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1996,1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
*/
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/in... | C | arch/sparc/prom/misc_64.c | Core2idiot/Kernel-Samsung-3.0...- | gpl-2.0 | 9,269 | 461 | codeparrot/github-code |
359d11b85059a8bd63e471ac6451a32a948a50be6b2a5e2067d96fe31e127dab | // clang-format off
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of ... | C++ | src/min_linesearch.cpp | jeremiahyan/lammps | gpl-2.0 | 27,747 | 925 | codeparrot/github-code |
5a4bd5e1bdef895a2817df9440c262c303dbb33f6ae1097fba91c535dd07b3e8 | package TopCoder.SRM642_DIV2;
public class LightSwitchingPuzzle20141229 {
private int arraySize;
public int minFlips(String state){
arraySize = state.length();
int[] stateArray = new int[arraySize];
char[] stateChars = state.toCharArray();
for(int i=0;i<arraySize;i++){
stateArray[i] = stateChars[i] =... | Java | src/main/java/TopCoder/SRM642_DIV2/LightSwitchingPuzzle20141229.java | emoken/topcoder-study | gpl-2.0 | 1,388 | 80 | codeparrot/github-code |
ad4721fb3a973cefb31c7043b8234e36a2e1fbcec7c2c4f1db7dc4dba9febe49 | /*
* Copyright (c) 1994, 2010, 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 | ojluni/src/main/native/canonicalize_md.c | debian-pkg-android-tools/android-platform-libcore | gpl-2.0 | 8,084 | 278 | codeparrot/github-code |
47723dd9fd03b2fa5f4825c1adf8e24264e8b991504ea546200bc0e053417f8a | /*
* sec-switch.c
*
* Copyright (C) 2012 Samsung Electronics
*
*
* 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.
*/
#include <linux/platform_device.h>
#include <linux/i2c.h>... | C | arch/arm/mach-msm/sec-switch.c | vanyasvl/android_kernel_samsung_picassoeur | gpl-2.0 | 84,270 | 3,350 | codeparrot/github-code |
f5b93467df7e28ec96db7898f13c9f3905809eef6a91dc6dcda54225f3a7fe08 | package com.austinv11.peripheralsplusplus.init;
import com.austinv11.collectiveframework.minecraft.reference.ModIds;
import com.austinv11.peripheralsplusplus.event.handler.PocketComputerCraftingHandler;
import com.austinv11.peripheralsplusplus.recipe.ContainerRecipe;
import com.austinv11.peripheralsplusplus.reference.... | Java | src/main/java/com/austinv11/peripheralsplusplus/init/Recipes.java | Vexatos/PeripheralsPlusPlus | gpl-2.0 | 9,655 | 112 | codeparrot/github-code |
51e33aac81c34426726266663108facabe74c76862f2bc7955f64cdfae5d141d | #include <stdio.h>
#include <math.h>
#include "hmm.h"
#include "nrutil.h"
#include "sample.h"
#include "rand.h"
HMM* createHMM(int N, int D);
int main()
{
int i,j,k;
HMM hmm;
HMM *phmm = &hmm;
int N = 5;
int D = 1764;
int T = 100;
HMM *phmm_gt = createHMM(N,D);
PrintHMM("test_gt... | C | testest.c | wps712/hmm | gpl-2.0 | 3,248 | 140 | codeparrot/github-code |
6bdab9ad1fda4dca4ddcc9646012986734b6e2d3df3c276aa9f2b30d9d748192 | /*
* Copyright (C) 2008 Per Dalen <per.dalen@cnw.se>
*
* Parts of this software are based on (derived) the following:
*
* - Kvaser linux driver, version 4.72 BETA
* Copyright (C) 2002-2007 KVASER AB
*
* - Lincan driver, version 0.3.3, OCERA project
* Copyright (C) 2004 Pavel Pisa
* Copyright (C) 2001 Ar... | C | drivers/net/can/sja1000/kvaser_pci.c | evolver56k/xpenology | gpl-2.0 | 10,208 | 400 | codeparrot/github-code |
afae7cdaaa25e3e2532f53d64f8a42d046117c284f1cec770f282ca5578e8ce4 | <?php
/**
* @file classes/scheduledTask/ScheduledTask.inc.php
*
* Copyright (c) 2000-2011 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class ScheduledTask
* @ingroup scheduledTask
* @see ScheduledTaskDAO
*
* @brief Base class for executing sche... | PHP | lib/pkp/classes/scheduledTask/ScheduledTask.inc.php | fernao/almanack | gpl-2.0 | 752 | 36 | codeparrot/github-code |
c8ac8a4318f9bb3c0a187a210317af8b97aad78291341d28bd568e0f8af0eb17 | <?php
class delete
{
function deldir($dirname)
{
// Sanity check
if (!file_exists($dirname)) {
echo "<br>$dirname does not exist";
return false;
}
// Simple delete for a file
if (is_file... | PHP | class/delete.class.php | lanrat/PHPRepo | gpl-2.0 | 3,610 | 133 | codeparrot/github-code |
04fecb94e3d9b85c2c55e6ab752d248da0a6255be59d4c2d3c21f20892ba2385 | from app import application
from flask import render_template, flash, redirect, url_for, request, Response
from datetime import datetime
from kartograph import Kartograph
from .forms import SearchForm
import json
import os
import httplib2
import pycountry
from aviato import *
#Used as the filtering function
def southe... | Python | app/views.py | hrishioa/Aviato | gpl-2.0 | 5,183 | 125 | codeparrot/github-code |
f46158e13c5c7dabf51d7f2e4f4e4b0740777baf913dc3ec09129ee36c209f2e | <?php
/*
+---------------------------------------------------------------------------+
| OpenX v2.8 |
| ========== |
| ... | PHP | www/admin/userlog-maintenance.php | soeffing/openx_test | gpl-2.0 | 6,542 | 164 | codeparrot/github-code |
da900a63eb057e86029f3cf517ddd3114f3e11bebbffe4f4b3dbbbe76a430ef9 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* git-shell-test
* Copyright (C) James Liggett 2010 <jrliggett@cox.net>
*
* git-shell-test 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 | plugins/git/git-stash-changes-pane.c | rosedu/anjuta | gpl-2.0 | 5,019 | 161 | codeparrot/github-code |
ea4dfaa993f21130e176794a5f2345ee53b383316385a9ab298bbb43d0fb3474 | <?php
// $Id: page.tpl.php,v 1.1 2009/06/26 00:33:39 duvien Exp $
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?p... | PHP | sites/default/themes/dabernig_design/page-front.tpl.php | dasjo/dabernig.net | gpl-2.0 | 4,904 | 149 | codeparrot/github-code |
db8e630d55710ed705c3ec6a36d4419e365bc143b5af636f38bc0327fb9826f9 | /*
* Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/>
*
* This program is free software you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation either version 2 of the License, or (at your
* option) any later ver... | C++ | src/server/game/DungeonFinding/LFGQueue.cpp | conan513/SingleCore_TC | gpl-2.0 | 27,058 | 745 | codeparrot/github-code |
1366ec63172ed46a9dc099d20eb5638e660ef977bdaee52971958681bc3c00ff |
public class FloatCmpTests {
private static boolean test_isEq(float a, float b) {
return a == b;
}
private static boolean test_isNe(float a, float b) {
return a != b;
}
private static boolean test_isLt(float a, float b) {
return a < b;
}
private static boolean test_isLe(float a, floa... | Java | hotspot/test/aarch64/FloatCmpTests.java | ojdkbuild/lookaside_java-1.8.0-openjdk | gpl-2.0 | 2,147 | 103 | codeparrot/github-code |
6111550b0143db6e3405876b5e585a6e3bf084bb58f13e1ec7b05455326dd3fa | /* /linux/drivers/misc/modem_if/modem_modemctl_device_esc6270.c
*
* Copyright (C) 2010 Google, Inc.
* Copyright (C) 2010 Samsung Electronics.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed... | C | drivers/misc/modem_if_baffinve/modem_modemctl_device_esc6270.c | tyler6389/android_kernel_samsung_baffinve | gpl-2.0 | 8,831 | 348 | codeparrot/github-code |
a79d831adf8d6a49fa5038a528c156f1322e2d9ad6ad913d91ead7e7bb2fc873 | <?php
/**
* Extractor IO - Includes - Connector Mapping Table
* Copyright (C) 2015 Nialto Services
*
* 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
* ... | PHP | includes/class-eio-connector-mapping-table.php | NialtoServices/Extractor-IO | gpl-2.0 | 4,913 | 198 | codeparrot/github-code |
ac8281342ce18c0c96faf92a1b73340dfc3bac1e90f6ed76693af592748d27fd | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002,2008 Oracle. All rights reserved.
*
* $Id: SortedLSNTreeWalker.java,v 1.17.2.5 2008/01/07 15:14:09 cwl Exp $
*/
package com.sleepycat.je.dbi;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import ja... | Java | client/trunk/shared/libraries/je-3.2.74/src/com/sleepycat/je/dbi/SortedLSNTreeWalker.java | nologic/nabs | gpl-2.0 | 15,117 | 506 | codeparrot/github-code |
1248193c23ec493866fa968b54bb1b7cbd8c5cc58876a2fa6b75de8bc874e09b | /*
This file is part of the KDE games library
Copyright (C) 2001-2003 Nicolas Hadacek (hadacek@kde.org)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This... | C++ | highscore/kexthighscore_item.cpp | alasin/libkdegames | gpl-2.0 | 9,320 | 328 | codeparrot/github-code |
9abfa9433390cd48af3ce7d042240f9000c1a89e1e41afeb934ddf28647bb295 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package finalsupermercado04;
/**
*
* @author Francisco Matamoros
*/
public class Stack extends ADTStack {
protected Node head; // nodo cabeza
public Stack() { // constructor vacio
super();
... | Java | finalSupermercado04/src/finalsupermercado04/Stack.java | MatamorosF3/FinalSupermercado04 | gpl-2.0 | 2,285 | 82 | codeparrot/github-code |
94178c01512fa8a950cf6e829ec799b0edcd89b87f7b0fd3a9ee1eba9b06aeea | import java.io.IOException;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.catalina.Context;
import org.apache.catalina.... | Java | examples/tomcat-party/PartyServer.java | nosid/parallel-2015 | gpl-2.0 | 2,109 | 56 | codeparrot/github-code |
c68893cc8c136ef9b1dfdf4b008fe61ade5a97573a65eb3e99274c8fa8e954c1 | #include "commonutils.h"
#include "opengl.h"
#include <QSize>
#include <QPoint>
#include <QRect>
int nextPowerOf2(int n)
{
int ret = 1;
while (ret < n)
ret *= 2;
return ret;
}
void glViewport(const QRect& rect)
{
glViewport(rect.x(), rect.y(), rect.width(), rect.height());
}
void glViewport(const QPoint& pos,... | C++ | libcommongl/commonutils.cpp | hatstand/Bequnge | gpl-2.0 | 1,048 | 62 | codeparrot/github-code |
bb8d6ec084eb9cc99f57dc310b003c44b92cd13277fcc66ce77c692fd8b111ba | /*
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it w... | C | fs/xfs/xfs_btree.h | rickgaiser/linux-2.4.17-ps2 | gpl-2.0 | 18,763 | 588 | codeparrot/github-code |
f756bc3031c91cd24a97a4a2343e5934b8a24ef989ff67e3ad8d6514a7a1f8ff | #!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
# FIXME: load selinux policy. this should really be done after we switchroot
rd_load_policy()
{
# If SELinux is disabled exit now
getarg "selinux=0" > /dev/null && return 0
SELINUX="en... | Shell | modules.d/98selinux/selinux-loadpolicy.sh | zfsonlinux/dracut | gpl-2.0 | 2,336 | 71 | codeparrot/github-code |
097897d7e485097ff0835252de0af2d2782c56f6c96ab827f3beed819738d3eb | <?php
/**
* Syndication Export
* Export RSS and atom feed to PHP array or JSON
* PHP 5
*
* @author MILLET Maxime <maxime@milletmaxime.net>
* @license CC-BY-SA see http://www.milletmaxime.net
* @version 1.1 (07/15/2012)
* @doc http://milletmaxime.net/142510-php-class-syndexport-parser-flux-atom-et-... | PHP | inc/syndexport.php | memiks/shareyourfeeds | gpl-2.0 | 11,395 | 250 | codeparrot/github-code |
45bd4a6d5884674d79f2aec7c3c82d7a947c00bdfe422d926abd00551a377f03 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- template designed by Marco Von Ballmoos -->
<title>Docs for page pdo.php</title>
<li... | HTML | Joomla-Platform/Database/_libraries---joomla---database---iterator---pdo.php.html | asika32764/Joomla-CMS-API-Document | gpl-2.0 | 4,705 | 144 | codeparrot/github-code |
d2a2cf7c798c132ba589a70c7c1a0e1b65d4b26005ad7acb3e37ae908e8284c4 | // **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// ***************************************************... | Java | java-compat/src/Ice/src/main/java/Ice/Callback_Connection_heartbeat.java | ljx0305/ice | gpl-2.0 | 1,358 | 56 | codeparrot/github-code |
d1bd04c78c9e43d4be70c48bc96c0fd1e2fbae697b86fe48ce3080a3e149dbe2 | #pragma once
#include <mutex>
#include <condition_variable>
class Semaphore {
public:
//1. When you create the semaphore, you can initialize its value to any
//integer, but after that the only operations you are allowed to perform are
//increment (increase by one) and decrement (decrease by one). You cannot
//read t... | C | Semaphore.h | spakai/record_writer | gpl-2.0 | 1,041 | 50 | codeparrot/github-code |
b007cb819a5f1d063790ad29ad02ce2fee6933f0d72b956b2ec00f6f74eda616 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1997, 1998
* Sleepycat Software. All rights reserved.
*
* @(#)LockExample.cpp 10.6 (Sleepycat) 10/18/98
*/
#include "config.h"
#ifndef NO_SYSTEM_INCLUDES
#include <sys/types.h>
#include <errno.h>
#include <iostream.h>
#include <stdl... | C++ | db/examples_cxx/LockExample.cpp | kenpeter/htdig | gpl-2.0 | 5,488 | 219 | codeparrot/github-code |
a75371894db03dd2308c546298dd60fe204882744607ccec1bc7fc10d6fc3212 | <?php
/**
* @file
* Template for Zurb Foundation Four column bricks Display Suite layout.
*/
?>
<<?php print $layout_wrapper; print $layout_attributes; ?> class="zf-4col-bricks <?php print $classes;?>">
<?php if (isset($title_suffix['contextual_links'])): ?>
<?php print render($title_suffix['contextu... | PHP | sites/all/themes/zurb_foundation/ds_layouts/zf_4col_bricks/zf-4col-bricks.tpl.php | dayscript/sobreruedaschevrolet.com | gpl-2.0 | 3,288 | 82 | codeparrot/github-code |
80e5df7734cc0ad5bcf1e2aefa05458cc23cff62acee841503cbf5033db160c3 | 'use strict'
var search
$(document).ready(function () {
var $COOKIE_PREFS = 'tuneefyPrefs'
var $COOKIE_HELP = 'tuneefyHelpBox'
var $COOKIE_SEARCH = 'tuneefySearchType'
var searchForm = $('#find')
var queryField = $('#query')
var queryLabel = queryField.attr('data-placeholder')
var searchButton = $('#la... | JavaScript | src/tuneefy/Resources/js/search.js | tchapi/tuneefy2 | gpl-2.0 | 12,299 | 400 | codeparrot/github-code |
a4e689cf23edf6b614be86f10983c2985777efb4e141ffbabac657fc8c5bfea0 | package com.onblur7.controller;
import com.onblur7.entity.Author;
import com.onblur7.entity.InvitationCode;
import com.onblur7.entity.Role;
import com.onblur7.repository.InvitationCodeRepository;
import com.onblur7.repository.RoleRepository;
import com.onblur7.service.AuthorService;
import com.onblur7.util.MD5Tools;
i... | Java | src/main/java/com/onblur7/controller/RegisterController.java | ronger-x/player | gpl-2.0 | 2,321 | 67 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.