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 |
|---|---|---|---|---|---|---|---|---|
4de6ab4397cc28e07fdf8a8baa81e186fd7b7c7453d52d4e2deba5a821c00d36 | <?php
class EditorLayout {
function __construct( ){
add_filter('pl_settings_array', array( $this, 'add_settings'));
add_filter('pless_vars', array( $this, 'add_less_vars'));
add_filter('pagelines_body_classes', array( $this, 'add_body_classes'));
}
function add_body_classes($classes){
$classes[]... | PHP | wp-content/themes/dms/dms/editor/editor.layout.php | benpeck/experticity-fools | gpl-2.0 | 3,183 | 137 | codeparrot/github-code |
093188407546757d77a78a279a956cad2c13364e2cbdcfb1b38f6594e465aace | package com.ag.baidumap;
import android.content.Context;
import com.baidu.location.BDLocation;
import com.baidu.location.BDLocationListener;
import com.baidu.location.LocationClient;
import com.baidu.location.LocationClientOption;
/**
* Created by zxr on 2015/8/24.
*/
public class BaiduMapUtil {
private Conte... | Java | ag_baidumap/src/main/java/com/ag/baidumap/BaiduMapUtil.java | ZhanJohn/AG_Modules | gpl-2.0 | 2,666 | 76 | codeparrot/github-code |
53d7622de340b900bcdf40baf4e0e7b260512832c2eea09ed018b47239e8b101 | package com.digiarea.fxml;
import java.util.List;
import com.digiarea.fxml.visitor.GenericVisitor;
import com.digiarea.fxml.visitor.VoidVisitor;
public class PropertyElement extends Element {
public enum PropertyType {
INSTANCE_PROPERTY,
STATIC_PROPERTY;
public <C> void accept(VoidVis... | Java | com.digiarea.fxml/src/com/digiarea/fxml/PropertyElement.java | DigiArea/fxml-model | gpl-2.0 | 1,761 | 71 | codeparrot/github-code |
05f7617dd2245dd7c6a47ab4d2fac7207016cbf78799c47dbeff19a42010a362 | package config
import (
"fmt"
"os"
"path/filepath"
"strings"
"github.com/prashantv/autobld/log"
"gopkg.in/fsnotify.v1"
)
func setupListener(c *Config, m Matcher, watcher *fsnotify.Watcher) error {
if len(m.Dirs) == 0 {
m.Dirs = []string{""}
}
for _, d := range m.Dirs {
dir := c.BaseDir + "/" + d
if ... | GO | config/listener.go | prashantv/autobld | gpl-2.0 | 2,140 | 89 | codeparrot/github-code |
72e492f7d8d64132ac2d006bf1dd55297fb8cbd1faf887966dbdb0b4548630d7 | /* ========================================================================== */
/* STC - SIMPLE TETRIS CLONE */
/* -------------------------------------------------------------------------- */
/* Game logic implementation. ... | C++ | VideoGameHelper/examples/tetris/stc.cpp | Arduino-IoT/libraries | gpl-2.0 | 23,016 | 641 | codeparrot/github-code |
f1730cd40f1798a236c9b59b7e8fc3a924d0b90892e8ad8eeb35b6a27e746ff4 | /* Copyright (c) 2014, 2017, 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 t... | C++ | unittest/gunit/innodb/ut0new-t.cc | gunnarku/mysql-8.0 | gpl-2.0 | 4,943 | 230 | codeparrot/github-code |
d4876907b6060fd61cc2cdcf98f6a38c534c7c2beaad58566a34880df544955c | package com.zhixinzhoubian.net.request;
public class UpdateUserInfoRequest {
/**
* 用户uid
*/
private long userId = -1L;
/**
* 用户名称
*/
private String nickName = null;
/**
* 用户电话
*/
private String telephone = null;
/**
* 设备UUID
*/
private String deviceId = null;
public long getUserId(... | Java | zhoubian_android/src/com/zhixinzhoubian/net/request/UpdateUserInfoRequest.java | zxbin2000/zhoubangbang | gpl-2.0 | 812 | 61 | codeparrot/github-code |
4e1bb9ceb84837f30414d571f35e5a6bdadfdcfaa9d7292a2fd87b37455b96fc | /***************************************************************************
qgsproviderregistry.cpp - Singleton class for
registering data providers.
-------------------
begin : Sat Jan 10 2004
copyright : (C) 2004... | C++ | src/core/providers/qgsproviderregistry.cpp | rouault/Quantum-GIS | gpl-2.0 | 29,323 | 910 | codeparrot/github-code |
ed5fb7827b0ff937f55915764a81cd611ccd733185641ac87c60fe3ec30114c8 | /*
* 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 distributed in the hope that it will be us... | Java | eHour-wicketweb/src/main/java/net/rrm/ehour/ui/common/authorization/AuthService.java | momogentoo/ehour | gpl-2.0 | 2,097 | 61 | codeparrot/github-code |
30c813fe3855ec099563fc0a764bd6e2dd46962575b98c557a52d67309766b4f | var zmq = require('zmq');
var socketRouter = zmq.socket('router');
var portRouter = 'tcp://127.0.0.1:12345';
var portPublisher = 'tcp://127.0.0.1:12346';
var EJDB = require("ejdb");
var jb = EJDB.open("events", EJDB.DEFAULT_OPEN_MODE | EJDB.JBOTRUNC | EJDB.JBOCREAT);
var databaseUrl = "mydb"; // "userna... | JavaScript | eventServer.js | arnaudcoquelet/myEventConcentrator | gpl-2.0 | 1,800 | 57 | codeparrot/github-code |
4095aba9d4f771a25e112224634f9ccb9215442e08a1cdb938b83e648dc569da | /***********************************************************************
GLLineLightingShader - Automatic shader class for Phong illumination of
lines with tangent vectors.
Copyright (c) 2012 Oliver Kreylos
This file is part of the OpenGL Support Library (GLSupport).
The OpenGL Support Library is free software; you c... | C++ | GL/GLLineLightingShader.cpp | VisualIdeation/Vrui-2.3-001 | gpl-2.0 | 8,861 | 276 | codeparrot/github-code |
8d1b2df16910b092ebd519ef292d408f0e96e1a51533386d11b1850a2deca4b4 | # Movable Type (r) Open Source (C) 2001-2012 Six Apart, Ltd.
# This program is distributed under the terms of the
# GNU General Public License, version 2.
#
# $Id$
package MT::Filter;
use strict;
use warnings;
use MT::Serialize;
use base qw( MT::Object );
__PACKAGE__->install_properties(
{ column_defs => {
... | Perl | lib/MT/Filter.pm | senshi2000/Repo121403 | gpl-2.0 | 21,372 | 717 | codeparrot/github-code |
3c29931518b05cafea836b20273b878fc28cf4f1a97d9124d31e0fc88e1c442d | /*****************************************************************************
FILE: analbeat.cpp
AUTHOR: Patrick S. Hamilton
REVISED: 5/13/2002
___________________________________________________________________________
analbeat.cpp: Analyze Beat
Copywrite (C) 2001 Patrick S. Hamilton
This file is free software; yo... | C | newanalbeat.c | ruipimenta/newOseaClassifier | gpl-2.0 | 13,407 | 431 | codeparrot/github-code |
fc03d5085de488907e99366e48bf5fce17dd141728edb7ff5051904a6770034d | /**
* WordPress dependencies
*/
import { useState } from '@wordpress/element';
/**
* Internal dependencies
*/
import { getExternalLibrary } from '../sources';
import MediaButtonMenu from './media-menu';
const isFeaturedImage = props =>
props.unstableFeaturedImageFlow ||
( props.modalClass && props.modalClass.in... | JavaScript | jetpack-9.1/extensions/shared/external-media/media-button/index.js | Automattic/vip-go-mu-plugins | gpl-2.0 | 1,511 | 52 | codeparrot/github-code |
8ad9055da6780ae9694ed7a82cdb2ac1c84cb02b803acff0e2eea4758132c032 | <?php
/**
* @package Joomla.Site
* @subpackage mod_articles_latest
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Module\ArticlesLatest\Site\Helper;
defined('_JEXEC')... | PHP | modules/mod_articles_latest/Helper/ArticlesLatestHelper.php | joomla-projects/media-manager-improvement | gpl-2.0 | 3,696 | 141 | codeparrot/github-code |
5f0e720c6b832ab043093f6929f6dc11b2dfb4ae64e93b4b279f0c98e1bcb58d | /*
* GNUitar
* Rotary speaker simulation -- a stereo effect
* Copyright (C) 2006 Antti S. Lankila <alankila@bel.fi>
*
* GPL license.
*
* $Id$
*/
#include <math.h>
#include "gui.h"
#include <stdlib.h>
#include "biquad.h"
#include "rotary.h"
static void
update_speed(GtkAdjustment *adj, struct rotary_params *p... | C | src/rotary.c | gnu-guitar/effects | gpl-2.0 | 5,197 | 177 | codeparrot/github-code |
7de59c59523c00d6656412d5789ca4230e0fda312392964079dc2b52fc9a9f4f | /* Copyright 2015 Roychoudhury, Abhishek */
package org.abhishek.fileanalytics.parse.impl;
import org.abhishek.fileanalytics.exception.ValidationFailureException;
import org.abhishek.fileanalytics.parse.AbstractFragmentParser;
public class LengthBasedParser<E> extends AbstractFragmentParser<E> {
/**
* Minim... | Java | src/main/java/org/abhishek/fileanalytics/parse/impl/LengthBasedParser.java | aroychoudhury/fileanalytics | gpl-2.0 | 2,298 | 67 | codeparrot/github-code |
b8d9fdb9f398932c079de2023daaa9a1f59441ac7f451c21569920cba893453f | package ru.alastar.game;
import java.util.ArrayList;
import ru.alastar.enums.ActionType;
import ru.alastar.enums.EquipType;
public class CraftInfo
{
public ArrayList<String> neededItems;
public String skill;
public int skillVal;
public String caption;... | Java | The_Erder_Dedicated_New/src/ru/alastar/game/CraftInfo.java | Hertuno/the-erder | gpl-2.0 | 786 | 32 | codeparrot/github-code |
797e1afe32f6dae48b70297ffbdcddf5b7c5fcc60dc1a751ab47d522d73143e7 | package com.dxyh.fqrtmpplayer.player.util;
import org.videolan.libvlc.LibVLC;
import org.videolan.libvlc.util.VLCUtil;
import android.content.Context;
import android.util.Log;;
public class VLCInstance {
public final static String TAG = "VLCInstance";
private static LibVLC sLibVLC = null;
/** A set of ... | Java | player-android/src/com/dxyh/fqrtmpplayer/player/util/VLCInstance.java | dengxiayehu/fqrtmpplayer | gpl-2.0 | 1,505 | 47 | codeparrot/github-code |
7c5cd22db56b1bfa12e1a3c51bf7dc2065ab3c3120178d9e0ab082d70ae7d471 | <?php
/**
* @package Joomla.Site
* @subpackage mod_menu
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Note. It is important to remove spaces between elem... | PHP | templates/marble/html/mod_menu/default-marble.php | elayarajap/dolo_dev | gpl-2.0 | 2,217 | 113 | codeparrot/github-code |
0ad6491496c7463b487aec7986c9433e37beb3c269d8c2526bed899c9916e6ba | <div id="address_div" title="<?lsmb text('Addresses') ?>" class="lsmbtab">
<div class="listtop"><?lsmb text('Locations') ?></div>
<!-- This entire form should probably be optionaly automated with AJAX
in order to prevent user confusion -CT -->
<form data-dojo-type="lsmb/lib/Form" id="location_form" action="<?... | HTML | UI/Contact/divs/address.html | ledgersmb/pkg-ledgersmb-1.4 | gpl-2.0 | 6,656 | 213 | codeparrot/github-code |
fb68b4ab5d32dcca31c8fe3fae7702c7e08a6f6a7ea205df35c04195c63c8c8e | #region License
/*
* Copyright (C) 1999-2017 John Källén.
*
* 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.
*
* This program i... | C# | src/Core/Serialization/SerializedCall_v1.cs | Lukas-Dresel/reko | gpl-2.0 | 1,871 | 62 | codeparrot/github-code |
42248acb615037c404a9358e2eab0f62c0fae324418cf72dc35424146678439c | /*
* The ManaPlus Client
* Copyright (C) 2008-2009 The Mana World Development Team
* Copyright (C) 2009-2010 The Mana Developers
* Copyright (C) 2011-2013 The ManaPlus Developers
*
* This file is part of The ManaPlus Client.
*
* This program is free software; you can redistribute it and/or modify
* i... | C++ | src/avatar.cpp | koo5/manaplus | gpl-2.0 | 1,785 | 72 | codeparrot/github-code |
38fe5438658fc18f2a9ae9b51bda7b92f711cb18f9efe6a4361e6cd4027e75c0 | /* Copyright (C) 2006 - 2011 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 Software Foundation; either version 2 of the License, or
* (at your option) a... | C++ | scripts/northrend/azjol-nerub/ahnkahet/boss_taldaram.cpp | Reamer/cyber-scriptdev2 | gpl-2.0 | 9,396 | 297 | codeparrot/github-code |
fad26a0c9b2473b171240070263128df8fd0755b72df55829bc8509748266d63 | /* jshint eqeqeq: false */
/* global $ */
"use strict";
/**
*
*/
function Client(id, clientId, clientName, clientSecret, clientType, redirectURI, location, description, icon) {
var _id = 0, _clientId = '', _clientName = '', _clientSecret = '', _clientType = 0, _redirectURI = '', _location = '', _descrip... | JavaScript | lib/model/Client.js | lay595715148/imagine | gpl-2.0 | 5,880 | 187 | codeparrot/github-code |
eb8bf4f699a635c4a45c929bd5b546bd09e70238356d48f25767c2ae40aa965a | <html>
<head>
<link rel="stylesheet" type="text/css" href="dhtmlx/dhtmlxlayout.css"></link>
<link rel="stylesheet" type="text/css" href="dhtmlx/skins/dhtmlxlayout_dhx_skyblue.css"></link>
<link rel="STYLESHEET" type="text/css" href="dhtmlx/dhtmlxgrid.css"></link>
<link rel="stylesheet" type="text/css" href="dhtmlx... | HTML | grid_pages/grid_drupal_menu_custom_9620f7c3-b3e5-4bf6-9f96-e4513764a1d0.html | dl4gbe/kernel | gpl-2.0 | 3,641 | 96 | codeparrot/github-code |
f37fb5b283d1f5c66a48e2b39cee70d99923f2dfdbf6784c9388520431cc1195 | /*
* *************************************************************************************
* Copyright (C) 2008 EsperTech, Inc. All rights reserved. *
* http://esper.codehaus.org *
* http://www.espertech.com ... | Java | esper/src/test/java/com/espertech/esper/regression/context/TestContextInitatedTerminatedWithNow.java | sungsoo/esper | gpl-2.0 | 9,381 | 182 | codeparrot/github-code |
69eeb329ff3b6e32239d0e72dac8941964db28a3627250a599aa9b5e2f61f107 | /*
* Memory merging support.
*
* This code enables dynamic sharing of identical pages found in different
* memory areas, even if they are not shared by fork()
*
* Copyright (C) 2008-2009 Red Hat, Inc.
* Authors:
* Izik Eidus
* Andrea Arcangeli
* Chris Wright
* Hugh Dickins
*
* This work is licensed under t... | C | mm/ksm.c | Owain94/android_kernel_htc_msm8974 | gpl-2.0 | 46,543 | 2,071 | codeparrot/github-code |
5f7127c6a692f40f1ca61867983003c3d70349e584890d6fd89c7352fe92723f | /***************************************************************************
* Copyright 2011 by Davide Bettio <davide.bettio@kdemail.net> *
* *
* This program is free software; you can redistribute it and/or modify *
* it unde... | C | src/kernel/include/net/arp.h | bettio/FluxOS | gpl-2.0 | 2,266 | 55 | codeparrot/github-code |
299526212c9b194c3eb5b93eaef7afb47b0cb5a83a2c70836f89029a97f59758 | <?php
/**
* WooCommerce General Settings
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'WC_Settings_General' ) ) :
/**
* WC_Admin_Settings_General
*/
class WC... | PHP | wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-general.php | joshquila/demo2-youse | gpl-2.0 | 12,191 | 331 | codeparrot/github-code |
5bfc25f6f3d058a4ac986de0f4c65abccf7d2a3c1e3e8c5b6ac1f08efb77cc57 | package com.tuneit.salsa3.ast;
import com.tuneit.salsa3.ast.serdes.annotations.NodeParameter;
import com.tuneit.salsa3.ast.serdes.annotations.Parameter;
/**
* <strong>NewObject</strong> is an AST node
* <ul>
* <li> className --
* <li> constructorCall --
* </ul>
*
* @author Sergey Klyaus
*/
public cla... | Java | salsa3/src/com/tuneit/salsa3/ast/NewObject.java | myaut/salsa3 | gpl-2.0 | 896 | 44 | codeparrot/github-code |
a5223866674d788e42e1eaf98ea5007f98f9808ffb9bbd547da7364adbb5066d | <?php
/* --------------------------------------------------------------
TemplateContol.inc.php 2014-07-14 gm
Gambio GmbH
http://www.gambio.de
Copyright (c) 2014 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
-------------------------... | PHP | system/classes/layout/TemplateControl.inc.php | carlosway89/testshop | gpl-2.0 | 3,148 | 118 | codeparrot/github-code |
05326027be2650987ea0f9e4caee4bebb690f8d3e1e8cd79c10c7bb71c1a75ac | # encoding: utf-8
# module samba.dcerpc.samr
# from /usr/lib/python2.7/dist-packages/samba/dcerpc/samr.so
# by generator 1.135
""" samr DCE/RPC """
# imports
import dcerpc as __dcerpc
import talloc as __talloc
class RidWithAttribute(__talloc.Object):
# no doc
def __init__(self, *args, **kwargs): # real signa... | Python | .PyCharm30/system/python_stubs/-1247972723/samba/dcerpc/samr/RidWithAttribute.py | ProfessorX/Config | gpl-2.0 | 1,272 | 49 | codeparrot/github-code |
82d6916bc3cfe6f3ebc02063ef6d1b81e5283ceabdcf2a34d8ff7518629d0f70 | /*
+ ======================================================================
NAME:
Lens.java
PURPOSE:
This class holds the data corresponding to the current lens
configuration. Its main purpose is to store variables and
provide getter and setter functions.
In addition, this class has a subclass (EllipM... | Java | Lens.java | drphilmarshall/Mowgli | gpl-2.0 | 6,067 | 379 | codeparrot/github-code |
a1673f57a35665127c3b3d766fb594e3eac7d054153c1fe59c4f7fff31ebd9f6 | package Apache::Filter;
use strict;
use Symbol;
use Apache::Constants(':common');
use vars qw($VERSION @ISA);
$VERSION = '1.024';
@ISA = qw(Apache);
# $r->pnotes('FilterInfo') contains a hashref ($info) which works like member data of $r.
#
# $info->{'fh_in'} is a Apache::Filter filehandle containing the output of ... | Perl | kzadeadatallereselectricos_v1.0.0_win32_installer/windows/xampp/perl/site/lib/Apache/Filter.pm | Esleelkartea/kz-adeada-talleres-electricos- | gpl-2.0 | 17,019 | 505 | codeparrot/github-code |
5c9aca6cf4ce3e8daedaeb5dc2a4c6d8b01e8696962f087278857cbb6f44ecb7 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
namespace System.Extensions
{
public static class Extension
{
/// <summary>
/// Wählt einen zusammenhängenden Bereich einer Sequenz aus, der zwischen 2 Elementen liegt, die durch je eine Bedingu... | C# | eStd/System.Extensions/Extension.cs | Myvar/eStd | gpl-2.0 | 6,567 | 139 | codeparrot/github-code |
528964c946fb310503d66cbfd01c2b4a7f38e9527c4dce03969dc7d1d73a2d40 | package it.unibas.silvio.web.vista;
import it.unibas.silvio.modello.MessaggioSbloccoManuale;
import java.io.Serializable;
import java.util.List;
import javax.faces.component.UIData;
public class VistaSbloccoAsincrono implements Serializable{
private UIData tabellaMessaggi;
private List<MessaggioSbloccoMa... | Java | silvio/src/it/unibas/silvio/web/vista/VistaSbloccoAsincrono.java | donatellosantoro/freESBee | gpl-2.0 | 1,253 | 49 | codeparrot/github-code |
34b00998a72d6a4f342ddaa05510bda7d54c902fcbfb32b10179b96c8ce2e92d | /*
Copyright (c) 2014 Red Hat, Inc. <http://www.redhat.com>
This file is part of GlusterFS.
This file is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3 or
later), or the GNU General Public License, version 2 (GPLv2), in all
cases as... | C | libglusterfs/src/unittest/mem_pool_unittest.c | lkzhd/glusterfs-annotation | gpl-2.0 | 13,424 | 484 | codeparrot/github-code |
29da3cec8ccc44d3f4e2e1173e6a4a7b34fda095437e420548737e47f2dc757a | // whcgiapplication.cpp
//
// Base class for CGI Applications
//
// (C) Copyright 2015 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundat... | C++ | src/wh/whcgiapplication.cpp | ElvishArtisan/webhost | gpl-2.0 | 4,049 | 175 | codeparrot/github-code |
21c520744013457877ed264ab15e3515cd99d89a4be381daa894c19460db21b8 | package com.github.pomona.application.alimento.query;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import javax.... | Java | src/main/java/com/github/pomona/application/alimento/query/AlimentoQueryService.java | pioalpha/Pomona | gpl-2.0 | 17,009 | 406 | codeparrot/github-code |
7017206f4b277f9b2d1aeb92ba35de113e343ec63a70cb577768d82df8d71012 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Qt 4.3: QtNetwork Module</title>
<link rel="prev" href="qtgui.html" />
<link rel="contents" href="modu... | HTML | doc/html/qtnetwork.html | muromec/qtopia-ezx | gpl-2.0 | 19,884 | 121 | codeparrot/github-code |
02fa15b507d018922778d4bba85cabc281ef65f1da90bb85eb99e9dba3035870 | <?php
/**
* @package WordPress
* @subpackage BuddyPress, Woocommerce
* @author Boris Glumpler
* @copyright 2011, Themekraft
* @link https://github.com/Themekraft/BP-Shop-Integration
* @license http://www.opensource.org/licenses/gpl-2.0.php GPL License
*/
// No direct acces... | PHP | wp-content/plugins/wc4bp-basic-integration/core/wc4bp-component.php | accruemarketing/DanceEnergy | gpl-2.0 | 10,909 | 351 | codeparrot/github-code |
3b8f2d3afc9d9b84a1eaf037d74b4dece91dba3414fd1477fffa6799f78147d1 | <?php
/*
* This is the page users will see logged out.
* You can edit this, but for upgrade safety you should copy and modify this file into your template folder.
* The location from within your template folder is plugins/login-with-ajax/ (create these directories if they don't exist)
*/
?>
<?php
if( $is_... | PHP | wp-content/plugins/login-with-ajax/widget/inline-registration/widget_out.php | vapvarun/MicrocerptBIZ | gpl-2.0 | 7,803 | 149 | codeparrot/github-code |
f6a086692a4b72793e2699ce982bb74eacf69aa559f88ed3d4141e5304d994ed | ##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# https://www.morningstarsecurity.com/research/whatweb
##
Plugin.define do
name "Zoph"
authors [
"Brendan Coles <bcoles@gmail.com>... | Ruby | plugins/zoph.rb | bcoles/WhatWeb | gpl-2.0 | 1,711 | 62 | codeparrot/github-code |
0f6b94de540d19e5bfd7ac02970d1c33d4d6706e824f717e87dd240e28100ac3 | <?php // $Id: notes.php 68 2009-07-31 18:23:01Z dlandau $
require('../../../../config.php');
require('../../lib.php');
require('assignment.class.php');
$id = required_param('id', PARAM_INT); // Course Module ID
$userid = required_param('userid', PARAM_INT); // User ID
$offset = opti... | PHP | mod/assignment/type/upload/notes.php | bobpuffer/1.9.12-LAE1.3 | gpl-2.0 | 2,338 | 66 | codeparrot/github-code |
1de81c69e1760bf2af819b1798e2342910b6434ab64766fab5babc805fcf3e15 | /*
* $Id: RenderedHdmvSubtitle.h 2804 2010-12-28 13:48:24Z aleksoid $
*
* (C) 2006-2010 see AUTHORS
*
* This file is part of mplayerc.
*
* Mplayerc 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/subtitles/RenderedHdmvSubtitle.h | msimic/MediaPoint | gpl-2.0 | 2,480 | 76 | codeparrot/github-code |
d133800b20dd49d881ccce478f1bd2516a87efbd44b4363438e267176451345c | #include "BinarySearchTree.h"
#include <algorithm>
using namespace std;
BinarySearchTree::BinarySearchTree()
{
root = nullptr;
}
BinarySearchTree::~BinarySearchTree()
{
post_order_delete(root);
root = nullptr;
}
BinarySearchTree::BinarySearchTree(const BinarySearchTree &source)
{
root = pre_order_copy... | C++ | leetcode/bst/dev2/BinarySearchTree.cpp | passByReference/Algorithms | gpl-2.0 | 10,651 | 410 | codeparrot/github-code |
26503d06fac9d54f297e30194d263a6deaecebdfdad8f3178bfc87904c84da43 | /* 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/kyra/screen.cpp | MaddTheSane/scummvm | gpl-2.0 | 88,735 | 3,781 | codeparrot/github-code |
d276931ff7e2a51494c370a25f124707f4497a6cc190aad1b4712b90c8793213 | /*
terminate.h
Copyright (C) 2016 Belledonne Communications, Grenoble, France
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or (at
your option) any later v... | C | submodules/linphone/daemon/commands/terminate.h | raj-bhatia/grooveip-ios-public | gpl-2.0 | 1,085 | 33 | codeparrot/github-code |
c4280f87a3912c8de9f422cdb5ea625823efa960f6de7d353d9dabc7ebd643bc | #include "AxisMapper.h"
#include "Data/Util.h"
#include "State/UtilState.h"
#include "CartaLib/AxisInfo.h"
#include "CartaLib/Hooks/GetWcsGridRenderer.h"
#include "Globals.h"
#include <QDebug>
#include <set>
namespace Carta {
namespace Data {
const QString AxisMapper::AXIS_X = "xAxis";
const QString AxisMapper::AXIS... | C++ | carta/cpp/core/Data/Image/Grid/AxisMapper.cpp | astrilet/CARTAvis | gpl-2.0 | 4,137 | 139 | codeparrot/github-code |
42d5cf3a860a88bfd55496fb465d656c41ddf9cc26c4b46c53b7bfcaa89f8e21 | // Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
... | C# | Pijlpunten/Examples/Microsoft.Phone.Controls.Toolkit.WP8/LongListMultiSelector/LongListMultiSelector.cs | ggiinnoo/WindowsPhoneArcher | gpl-2.0 | 42,393 | 1,050 | codeparrot/github-code |
e05792146ac912f13749cc09b6e83297ac3d510b82e54be0f6cd53c2ac0ef608 | /* arch/arm/mach-msm/htc_35mm_jack.c
*
* Copyright (C) 2009 HTC, Inc.
* Author: Arec Kao <Arec_Kao@htc.com>
* Copyright (C) 2009 Google, Inc.
* Author: Eric Olsen <eolsen@android.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software F... | C | arch/arm/mach-msm/htc_35mm_jack.c | wesgarner/wg-android-kernel | gpl-2.0 | 9,204 | 387 | codeparrot/github-code |
97679957d5f686b30a2503e12bc647bc26c409036626ac63697b9d30598ee27b | //===-- MachineLICM.cpp - Machine Loop Invariant Code Motion Pass ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | llvmCore/lib/CodeGen/MachineLICM.cpp | bathtub/llvm-gcc | gpl-2.0 | 49,556 | 1,347 | codeparrot/github-code |
106a25cd57a6ca9648405e60af736644605b6c08da44c2cd22471592bcb6c272 | using System;
using Server.Network;
using Server.Items;
namespace Server.Items
{
[FlipableAttribute( 0x13F6, 0x13F7 )]
public class ButcherKnife : BaseKnife
{
public override WeaponAbility PrimaryAbility{ get{ return WeaponAbility.InfectiousStrike; } }
public override WeaponAbility SecondaryAbility{ get{ return... | C# | scripts/legacy/Items/Weapons/Knives/ButcherKnife.cs | brodock/sunuo | gpl-2.0 | 1,328 | 50 | codeparrot/github-code |
e5e2c5bbf09b22e938eac865483185c0b863670f15e05e0b3b4af52580085a5d | <?php session_start();
/*
Template Name: Contact Page
*/
?>
<?php
$et_ptemplate_settings = array();
$et_ptemplate_settings = maybe_unserialize( get_post_meta($post->ID,'et_ptemplate_settings',true) );
$fullwidth = isset( $et_ptemplate_settings['et_fullwidthpage'] ) ? (bool) $et_ptemplate_settings['et_fullwidthp... | PHP | wp-content/themes/13Floor/page-contact.php | egiggy/githubericgiguere | gpl-2.0 | 6,804 | 141 | codeparrot/github-code |
9672c990595438d4798ed17e430691035dc14c796771639627b2cd15b95129de | #pragma once
namespace Spike {
struct __attribute__ ((__packed__)) dummy {
enum PACKET_TYPE {
DUMMY,
SYNC,
SPIKES = 0xff
};
// for now: full-width timestamps
uint64_t timestamp0;
uint64_t timestamp;
uint16_t label;
uint16_t packet_type;
};
// packet format used for UHEI-SpiNNAker udp-based spike comm
... | C | vercl/spike.h | muffgaga/vercl | gpl-2.0 | 550 | 34 | codeparrot/github-code |
a12f821ddaad5734bd286f358b2ade24c1ad2e978ac517b3b6c0d6ea23bb9935 | package org.lastbamboo.client.search;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import javax.servlet.http.Http... | Java | client/services/src/main/java/org/lastbamboo/client/search/SearchResultManager.java | adamfisk/littleshoot-client | gpl-2.0 | 6,121 | 181 | codeparrot/github-code |
8a463dd77c1d9ed1b33ad7ba17c908240a55bd3525a50dd9f68c4803fe2be52b | using System;
namespace Server.Mobiles
{
[CorpseName("a chicken lizard corpse")]
public class BattleChickenLizard : BaseCreature
{
[Constructable]
public BattleChickenLizard()
: base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.05, 0.1)
{
Name = "a battle ... | C# | Scripts/Mobiles/Normal/BattleChickenLizard.cs | Argalep/ServUO | gpl-2.0 | 2,762 | 106 | codeparrot/github-code |
ac35c781b74ac6e08ff981b4dd3200a5a9100de4020cfacd8b9cea2efeaadca9 | /* $Id: ImperialPrincess.java,v 1.30 2013/04/26 21:33:38 kiheru Exp $ */
/***************************************************************************
* (C) Copyright 2003-2010 - Stendhal *
***************************************************************************
***************... | Java | src/games/stendhal/server/maps/quests/ImperialPrincess.java | sourceress-project/archestica | gpl-2.0 | 13,234 | 343 | codeparrot/github-code |
fd38918c797e40ba9021a59aa5695e87fd11ecf47b7453df7a7da277de8175aa |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Xml.Linq;
using ESPSharp.Enums;
using ESPSharp.Enums.Flags;
using ESPSharp.Interfaces;
using ESPSharp.Subrecords;
using ESPSharp.SubrecordCollections;
using ESPSharp.DataTy... | C# | ESPSharp/Records/GeneratedCode/Note.cs | TaleOfTwoWastelands/ESPSharp | gpl-2.0 | 9,134 | 361 | codeparrot/github-code |
905315d1a001c24f5048e38205598b5f01b37bbee8d7683b281d331e48c267c7 | <?php
/**
* Plugin Name: Exemplos nivel 3
* Plugin URI: http://link.onde.seu.plugin.esta.hospedado
* Description: Este plugin é apenas um exemplo do nivel 3 do curso de criação de plugins
* Version: 1.0
* Author: rapahaeru
* Author URI: http://github.com/rapahaeru
*/
// função extendida nativa para widgets
cla... | PHP | wp-content/plugins/ex-nivel3/ex-nivel3.php | rapahaeru/wp-devplugin | gpl-2.0 | 1,848 | 75 | codeparrot/github-code |
fe03e0d1abb4e80339cd25104fcf632f64567693fc052b6b48216af163c531b4 | /*
* PROJECT: ReactOS system libraries
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll\win32\stobject\stobject.cpp
* PURPOSE: Systray shell service object
* PROGRAMMERS: Robert Naumann
David Quintana <gigaherz@gmail.com>
*/
#pragma once
extern const GUID CLSID_RegistryFold... | C | dll/shellext/ntobjshex/regfolder.h | zefklop/reactos-playground | gpl-2.0 | 4,095 | 149 | codeparrot/github-code |
fc4479743bf72599022cc210a171f14e63560d5e00e5a76ff67ab2107eeb8d59 | // Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_DEBUG_OVERDRAW_METRICS_H_
#define CC_DEBUG_OVERDRAW_METRICS_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
namespace gfx... | C | external/chromium_org/cc/debug/overdraw_metrics.h | qtekfun/htcDesire820Kernel | gpl-2.0 | 2,780 | 116 | codeparrot/github-code |
da190c9b3bf1074951a62f5075c256897ccacfa8e4823e365ca6e5516d3aee72 | package za.co.idea.ip.orm.dao;
import static org.hibernate.criterion.Example.create;
import java.util.List;
import org.apache.log4j.Logger;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.context.ApplicationConte... | Java | ip-orm/src/main/java/za/co/idea/ip/orm/dao/IpSolutionCatDAO.java | iKlipse/primeidea | gpl-2.0 | 4,911 | 160 | codeparrot/github-code |
ba343444beb5463c9a956ba35525349799d4204e9e849686a3df863e84a8e74d | using System;
using System.Collections.Generic;
using System.Linq;
namespace Pipes.Models.TieBreakers
{
public interface ITieBreaker
{
/// <summary>
/// Return the competitor who won by resolving the tie. Each competitor is represented by an integer, and the same competitor should always
... | C# | Pipes/Pipes/Models/TieBreakers/TieBreaker.cs | michaelbradley91/Pipes | gpl-2.0 | 1,718 | 38 | codeparrot/github-code |
356060c7aa63308dd01706d50d398b57a8ba6bb920166cf815cd9388d872ba76 | #ifndef TAGDIALOG_H
#define TAGDIALOG_H
#include <QDialog>
#include <verse.h>
#include "verse_node.h"
#include "verse_taggroup.h"
namespace Ui {
class TagDialog;
}
class TagDialog : public QDialog
{
Q_OBJECT
public:
explicit TagDialog(QWidget *parent = 0,
uint8_t session_id = 0,... | C | include/tagdialog.h | verse/verse-explorer | gpl-2.0 | 640 | 40 | codeparrot/github-code |
81c0806154a4d970e86bb7213ff63ea1aca39b9ac85f4dd1f31e2c35dc7f3225 | namespace DoubleFile
{
class LVitemProject_Explorer : LVitem_ProjectVM
{
internal LVitemProject_Explorer(LVitem_ProjectVM lvItemTemp = null)
: base(lvItemTemp)
{
}
internal LVitemProject_Explorer(LVitemProject_Explorer lvItemTemp)
: base(lvItemTemp)
... | C# | DoubleFile/DoubleFile/LocalTreeNode/LVitemProject_Explorer.cs | timrichards/Windows | gpl-2.0 | 1,894 | 62 | codeparrot/github-code |
0a391ac0fbe10eab33bf26a638f4ad60acaae02bc20440948f13f36469a766a3 | # Copyright (C) 2013-2014 Fox Wilson, Peter Foley, Srijay Kasturi, Samuel Damashek and James Forcier
#
# 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 y... | Python | commands/stopwatch.py | sckasturi/saltlake | gpl-2.0 | 3,644 | 106 | codeparrot/github-code |
c0850a0a1197c805a76f929f8a2dcfe82ed7b87a34b972fac0bc39b21b8494fd | /* Copyright (c) 2012, 2013, Adrian M. Partl, eScience Group at the
Leibniz Institut for Astrophysics, Potsdam
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.
... | C | src/query_queue.h | adrpar/mysql_query_queue | gpl-2.0 | 1,462 | 41 | codeparrot/github-code |
973da3282cc354d1b7c588b9230f02b7024dffd25b10c8d08da3dec2d1864db3 | <?php
/* Begin Add New Adwidget Content */
add_action('wp_ajax_wp_insert_adwidgets_new_form_get_content', 'wp_insert_adwidgets_new_form_get_content');
function wp_insert_adwidgets_new_form_get_content() {
check_ajax_referer('wp-insert', 'wp_insert_nonce');
wp_insert_adwidgets_form_get_content(uniqid());
die()... | PHP | wp-content/plugins/wp-insert/includes/adwidgets.php | davoodll/Regius | gpl-2.0 | 24,556 | 335 | codeparrot/github-code |
00903ee4dcfaea006f3344d1cf463a266fe84b1cd7ba2a2db31197552764df0d | #!/usr/bin/python
#~ from pprint import pprint
import getopt
import sys
import signal
import yaml
import socket
from dnslib import *
def usage (progName):
""" Print the program's usage and then sys.exit() """
print ("Usage: %s -c <configuration file> -l <listening address> -p <listening port> -r <remote resolver IP... | Python | AF_DNS.py | SK-011/AF_DNS | gpl-2.0 | 7,971 | 348 | codeparrot/github-code |
45f75606a7acbf976956acb9855db9350dbf809f435f545f98b753b463d7bc95 | /* 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 Software Foundation; either version 2 of the License, or
* (at your option) any l... | C++ | src/bindings/ScriptDev2/scripts/outland/tempest_keep/the_mechanar/boss_nethermancer_sepethrea.cpp | kicho/Ebon-Hold-Converted | gpl-2.0 | 7,348 | 248 | codeparrot/github-code |
e37e6704e7f95ac23ab45e11a33e2f1a32514606bde9205adc798423d913539c | /////////////////////////////////////////////////////////////////////////////
// Name: src/msw/frame.cpp
// Purpose: wxFrame
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id: frame.cpp 70511 2012-02-05 14:18:22Z VZ $
// Copyright: (c) Julian Smart
// Licence... | C++ | Externals/wxWidgets3/src/msw/frame.cpp | Zombiebest/Dolphin | gpl-2.0 | 30,802 | 1,017 | codeparrot/github-code |
4a05cfcdf19036822938845d58fa0809a27ebfa4f6c8063596fbf2a5a89dbfda | class ResponseController < ApplicationController
helper :wiki
helper :submitted_content
helper :file
def delete
@response = Response.find(params[:id])
return if redirect_when_disallowed(@response)
map_id = @response.map.id
@response.delete
redirect_to :action => 'redirection', :id => m... | Ruby | app/controllers/response_controller.rb | sgurinder/E720 | gpl-2.0 | 15,545 | 432 | codeparrot/github-code |
bfe9d061ae4d2eccaf19fb1686bbc7e405a8260369f9b1ccd213b8afeb110357 | <?php
include ('clases/obj_peticion_externa.php');
include ('clases/obj_mail.php');
// *********************************************
// Solicitar la beta (efectivo)
// *********************************************
if ($accion == 'solicitar')
{
$tipo = $_REQUEST['tipo'];
$email = $_REQUEST... | PHP | html/registrobeta.php | amentoraz/gene-overload | gpl-2.0 | 11,479 | 340 | codeparrot/github-code |
5ddf78c5cf9d26a409c1f609ed2e1ed0912483dbd2b1a021b9d733e9aa8e726b | from django.shortcuts import get_object_or_404, render_to_response
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.template import RequestContext
from django.utils import simplejson
from django.conf import settings
from models import *
from functions i... | Python | irving/dashboard/views.py | AWegnerGitHub/IRVING | gpl-2.0 | 14,966 | 391 | codeparrot/github-code |
77c6fe2e832dca1733a440536acf64c30ace1f0b8850d5f06d20a6e425d8b772 | <?
# Lifter010: TODO
use Studip\Button, Studip\LinkButton;
?>
<?
$cssSw = new CSSClassSwitcher();
$pos = 0;
$style = "style=\"background-image: url('". Assets::image_path('forumstrich') ."');"
." background-position: right;"
." background-repeat: repeat-y;"
."\" ";
if ($semi... | PHP | templates/statusgruppen/role_administration.php | japhigu/stup.ID | gpl-2.0 | 8,097 | 159 | codeparrot/github-code |
01f6a45072c76d043f050cefd98e0e6aafc22fcd5f0221d4413bb20f0eb6dc47 | /**
* @defgroup js_controllers_form
*/
/**
* @file js/controllers/form/FormHandler.js
*
* Copyright (c) 2013 Simon Fraser University Library
* Copyright (c) 2000-2013 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class FormHandler
* @ingroup js_controllers_f... | JavaScript | lib/pkp/js/controllers/form/FormHandler.js | ubiquitypress/OJS-Draft-Editorial | gpl-2.0 | 12,315 | 457 | codeparrot/github-code |
2636f22429ab1e9edb09365ff068ec53d5dfff7b0e76ee61d54ddd392c65f29c | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of PySide2.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this... | C | libshiboken/basewrapper_p.h | qtproject/pyside-shiboken | gpl-2.0 | 8,580 | 288 | codeparrot/github-code |
c6781f237c956ef5e785197dc0a7002bcc1f4ec1d97ec90a03e7e662ba900e5a | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details... | C++ | src/third_party/JUCE/JUCE/examples/Demo/Source/Demos/Box2DDemo.cpp | mojofunk/alta | gpl-2.0 | 9,381 | 343 | codeparrot/github-code |
fae00073f4cee3209772aea8cadf68b157a3eda9d93607546704a04143ad7f63 | /* Code based on Google Map APIv3 Tutorials */
var gmapdata = new Array();
var gmapmarker = new Array();
function if_gmap_init(id, form_id) {
if (document.getElementById(id + "_element" + form_id)) {
map = document.getElementById(id + "_element" + form_id);
var def_zoomval = parseInt(map.getAttribute("zoom... | JavaScript | sites/all/modules/drupal-form/js/form_maker_if_gmap_front_end.js | championswimmer/dtustudies.com | gpl-2.0 | 4,911 | 154 | codeparrot/github-code |
834dd535d18644d19caf06f57708c6f39dba1382760d27c3c73ddc8a81258d66 | /*----------------------------------------------------------------------------
* U S B - K e r n e l
*----------------------------------------------------------------------------
* Name: usbuser.c
* Purpose: USB Custom User Module
* Version: V1.20
*------------------------------------------------------... | C | firmware/xlink-kickstart/App/usbuser.c | mcufans/xlink | gpl-2.0 | 9,018 | 400 | codeparrot/github-code |
a4d1bc8e6658f138c9b3832bc0b4d04f8ab25634c524fc941864d176f0de6929 | # -*- coding: utf-8 -*-
# Copyright 2008-2012 Jaap Karssenberg <jaap.karssenberg@gmail.com>
'''This module supports dumping to HTML'''
# TODO paragraph indenting using margin CSS ?
# TODO use global CSS for checkboxes instead of inline style - needs also support from tempalte etc
import re
import string
from zim.f... | Python | zim/formats/html.py | gdw2/zim | gpl-2.0 | 5,384 | 217 | codeparrot/github-code |
0be67e22c3fe5c5a66f17f14f0ce46f8570af53c72a5e711b9f38184ff25ca5a | import json
#import jsonical
import time
import socket
from twisted.protocols.basic import LineOnlyReceiver
from twisted.internet import defer, reactor, error
from twisted.python.failure import Failure
#import services
import stats
import signature
import custom_exceptions
import connection_registry
import settings
... | Python | stratum/stratum/protocol.py | oxagast/hashnet | gpl-2.0 | 13,461 | 332 | codeparrot/github-code |
c069aeaeaa499003562022e192e470798d9b4ec9e4b00e90aba598e0400f550a | <?php
/**
* Contains code for language boxes.
*
* @file
* @author Robert Leverington
* @author Robin Pepermans
* @author Niklas Laxström
* @author Brian Wolff
* @author Purodha Blissenbach
* @author Sam Reed
* @author Siebrand Mazeland
* @license GPL-2.0-or-later
*/
declare( strict_types = 1 );
namespace ... | PHP | includes/BabelBox/LanguageBabelBox.php | wikimedia/mediawiki-extensions-Babel | gpl-2.0 | 6,045 | 230 | codeparrot/github-code |
bbb97c4516cc50f4d338a95af367ebd32f0105f7ac2f8b0a0547e76d46a0c1e3 | /*
* Adopted to Mint-Net 1994, Kay Roemer.
*/
/*-
* Copyright (c) 1980, 1983, 1988 Regents of the University of California.
* 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. Redistr... | C | include/netdb.h | ArmstrongJ/MiNTLib | gpl-2.0 | 5,143 | 149 | codeparrot/github-code |
043d7cf88a2d5ff7d2d0fb69bc47c56decfd07edc6e3458994c0acb96d24c737 | /*
* $Id: entry.h 443 2006-05-30 04:37:13Z darren $
*
* Copyright (c) 1998-2002, Darren Hiebert
*
* This source code is released for free distribution under the terms of the
* GNU General Public License.
*
* External interface to entry.c
*/
#ifndef _ENTRY_H
#define _ENTRY_H
/*
* INCLUDE FILES
*/
#include "... | C | plugins/symbol-db/anjuta-tags/entry.h | GNOME/anjuta | gpl-2.0 | 2,957 | 105 | codeparrot/github-code |
587c2261ce54c6143d06bb45bc6eac3f42c78b56f00be01a9ac79ee297099c91 | /* vi: set sw=4 ts=4: */
/* fdisk.c -- Partition table manipulator for Linux.
*
* Copyright (C) 1992 A. V. Le Blanc (LeBlanc@mcc.ac.uk)
* Copyright (C) 2001,2002 Vladimir Oleynik <dzo@simtreas.ru> (initial bb port)
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
/* Looks like someone... | C | util-linux/fdisk.c | stevenhoneyman/busybox | gpl-2.0 | 79,337 | 3,123 | codeparrot/github-code |
e540c3d660c0710cf68b9f561cf56431427bfd28e676c2fe7f086cb110d267bb | //=============================================================================
// MuseScore
// Linux Music Score Editor
// $Id: editstaff.cpp 5149 2011-12-29 08:38:43Z wschweer $
//
// Copyright (C) 2002-2010 Werner Schweer and others
//
// This program is free software; you can redistribute it and/or modify
// ... | C++ | mscore/editstaff.cpp | DDMAL/MuseScore | gpl-2.0 | 18,163 | 480 | codeparrot/github-code |
47afb9b8ee58bb5803c50f0ff1da9e2989e3cfebd0e50969090749c0ae2be921 | ///////////////////////////////////////////////////////////////////////////////
// For information as to what this class does, see the Javadoc, below. //
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, //
// 2007, 2008, 2009, 2010, 2014, 2015 by Peter Spirtes, Richard Scheines, Joseph... | Java | tetrad-gui/src/main/java/edu/cmu/tetradapp/editor/RandomGraphEditor.java | jmogarrio/tetrad | gpl-2.0 | 25,628 | 741 | codeparrot/github-code |
159ebe08e1c62206f040e90724646a9f7fbac8ce12ecfcd687c007534b4bff9f | <?php
/**
* @package Joomla.Site
* @subpackage com_users
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
?>
<div class="login-... | PHP | templates/industrix/html/com_users/login/default_login.php | L16jovenesTIC/portal-web | gpl-2.0 | 3,651 | 107 | codeparrot/github-code |
1c156855ca3ffd251db1d2e7d7b8bfa9db7d93e30bbf017545e5a0b66a7113e7 | package Coat::Meta;
use strict;
use warnings;
use Carp 'confess';
use Scalar::Util 'reftype';
# This is the classes placeholder for attribute descriptions
my $CLASSES = {};
my $ROLES = {};
# the root accessor: returns the whole data structure, all meta classes
sub classes { $CLASSES }
# returns all attributes for... | Perl | lib/Coat/Meta.pm | sukria/Coat | gpl-2.0 | 8,117 | 294 | codeparrot/github-code |
6ee69391c019de8adb65aa24627b4b5e12880680b2aa7942a19d1b0210b7fcc3 | <?php
/**
* Shortcode Title: Images slider
* Shortcode: our_clients
* Usage: [our_clients][our_clients_item url="http://test.com" target="_blank"]image.png[/our_clients_item][/our_clients]
* Options: action="url/open"
*/
add_shortcode('our_clients', 'ts_our_clients_func');
function ts_our_clients_func( $atts, $co... | PHP | wp-content/themes/Circles/inc/shortcodes/our_clients.php | Jwiens92/CumberLandSpice | gpl-2.0 | 1,935 | 76 | codeparrot/github-code |
cd9c71c52a52043ab5b4e57ebb184136756143c68bde09683a43c19d9fce550a | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 CERN.
##
## Invenio 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
## ... | Python | modules/miscutil/lib/mailutils.py | EUDAT-B2SHARE/invenio-old | gpl-2.0 | 17,746 | 442 | codeparrot/github-code |
3b0156f7ad8282286b818bb06eb2fea07084cbafa085fc6eda347fba265fd000 | package goalp.evaluation.plans;
import java.util.List;
import java.util.function.Function;
import javax.inject.Inject;
import org.slf4j.Logger;
import com.panayotis.gnuplot.dataset.Point;
import goalp.Conf;
import goalp.Conf.Keys;
import goalp.evaluation.model.Execution;
import goalp.evaluation.model.PlanningExper... | Java | scalability-evaluation/src/main/java/goalp/evaluation/plans/ReportAllExperimentsResultsToOneEpsGraph.java | lesunb/goalp | gpl-2.0 | 2,426 | 85 | codeparrot/github-code |
be3f138f4b40b8859c66be84aed886b3d8b429fa73f9e8790864efdaa7164d89 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.granolamatt.htmlhelpers;
import com.granolamatt.html.HTMLBody;
import com.granolamatt.html.HTMLMETA;
import com.granolamatt.html.HTMLP;
import com.granolamatt.html.HTMLhtml;
/**
*
* @author root
*/
publi... | Java | src/com/granolamatt/htmlhelpers/BasicDocument.java | granolamatt/GranolaServer | gpl-2.0 | 1,382 | 59 | codeparrot/github-code |
fd31bc235ec6cfbb039dac21390a338dbf34d1fca9c64212ec1e7a08f000ac1b | /* expert.c
* Collecting Expert information.
*
* Implemented as a tap named "expert".
*
* $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 ... | C | epan/expert.c | hb9cwp/wireshark-jdsu | gpl-2.0 | 6,805 | 244 | codeparrot/github-code |
833b29df4814ad07015479c1bde74188a1fbac9070caea1a929b25562c3282d6 | package Panotools::Script::Line::Panorama;
use strict;
use warnings;
use Panotools::Script::Line;
=head1 NAME
Panotools::Script::Line::Panorama - Panotools panorama parameters
=head1 SYNOPSIS
Panorama parameters are described by a 'p' line
=head1 DESCRIPTION
w1000 width in pixels
h600 height i... | Perl | lib/Panotools/Script/Line/Panorama.pm | gitpan/Panotools-Script | gpl-2.0 | 6,080 | 156 | codeparrot/github-code |
6b30d18bc3aca99d27c8c81af4e56e67e39e05fff577e507cb53c89bd605f323 | package edu.iastate.CornCompare;
import java.io.File;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import edu.iastate.javacyco.Frame;
import edu.iastate.javacyco.JavacycConnection;
import ed... | Java | CornCompare/src/edu/iastate/CornCompare/ReactionComparison.java | jrwalsh/CornCompare | gpl-2.0 | 9,467 | 236 | codeparrot/github-code |
31935f221b0d835c034bbe087447c2bfe383cca6065bf2ea029f4a0cb3ae09fb | <?php
/**
* @package hubzero-cms
* @copyright Copyright (c) 2005-2020 The Regents of the University of California.
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Components\Courses\Admin\Controllers;
use Components\Courses\Tables;
use Hubzero\Component\AdminController;
use Exception;
use Fi... | PHP | core/components/com_courses/admin/controllers/assets.php | hubzero/hubzero-cms | gpl-2.0 | 11,134 | 473 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.