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 |
|---|---|---|---|---|---|---|---|---|
5ee00e3fe96a2fffa0d1b87509787a369e7c21e02cdd136f869cb4759ed29d95 | <?php
// creating Ajax call for WordPress
add_action( 'wp_ajax_nopriv_RegisterSubscriber', 'RegisterSubscriber' );
add_action( 'wp_ajax_RegisterSubscriber', 'RegisterSubscriber' );
function RegisterSubscriber(){
wp_mail("vp@hioa.no", "Viten+praksis", $_POST["email"]);
// wp_mail("daniel.mathiesen@gmail.com"... | PHP | wp-content/themes/hioa/functions.php | danielmathiesen/hioa | gpl-2.0 | 4,397 | 154 | codeparrot/github-code |
bda4e7ef507985ee88355737e18ede1f6f48c8b43fb0cf75e8f9fe1af49a469d | <?php
/*------------------------------------------------------------------------
# com_k2store - K2 Store
# ------------------------------------------------------------------------
# author Ramesh Elamathi - Weblogicx India http://www.weblogicxindia.com
# copyright Copyright (C) 2012 Weblogicxindia.com. All Rights ... | PHP | administrator/components/com_k2store/elements/taxselect.php | google-code/bcv-xh | gpl-2.0 | 1,679 | 52 | codeparrot/github-code |
732961654185f8e4f9026ff48a406e21ad95dfd068ab4ae2f1330ceed37bdd2f | <html>
<head>
<title>Project 0 Mistakes</title>
<link rel="stylesheet" type="text/css" href="/~cs3204/spring2007/gback/css/vtdoopal.css" />
</head>
<body>
<h2>Project 0 Mistakes</h2>
Any of these will sink your project.
<ul>
<li> <b>Ignoring compiler warnings.</b>
You should not ignore compiler warni... | HTML | src/prep/project0mistakes.html | kumarjatin/pintos-selfrr | gpl-2.0 | 6,274 | 185 | codeparrot/github-code |
3e66aeae3731d9b8cd6bf68ea2cc211383340aa688a1901e27b016672c1ee8d9 | /*
* Copyright (C) 2007 Mark Hills <mark@pogo.org.uk>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, bu... | C | timecoder.h | lodsb/vinylcontrol | gpl-2.0 | 2,672 | 77 | codeparrot/github-code |
46fcbceb408f30ce78628dfa308943c6ab7fa4fa975f714d6d263c77a85390dd | /*
* validator/validator.c - secure validator DNS query response module
*
* Copyright (c) 2007, NLnet Labs. All rights reserved.
*
* This software is open source.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... | C | unbound-svn/validator/validator.c | davidhubbard/cwave | gpl-2.0 | 99,302 | 2,941 | codeparrot/github-code |
7d722bcc44ded312ed46229331a901ebba858a5ed8dafadca04bf372c80d76e8 | namespace System.Windows.Forms
{
internal abstract class DataBlock
{
internal DataMap _map;
internal DataBlock _nextBlock;
internal DataBlock _previousBlock;
public abstract long Length
{
get;
}
public DataMap Map
{
get
... | C# | QuestAnalyser/src/HexBox/DataBlock.cs | DragonFiestaTeam/DragonFiesta_Tools | gpl-2.0 | 740 | 40 | codeparrot/github-code |
2155a0128a0820740ef9f4b8822ee97e1a128f147cae93a798714ec148ebb58c | /*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright (C) 1994, Karl Keyte: Added support for disk statistics
* Elevator latency, (C) 2000 Andrea Arcangeli <andrea@suse.de> SuSE
* Queue request tables / lock, selectable elevator, Jens Axboe <axboe@suse.de>
* kernel-doc documentation started by NeilBrown <... | C | block/blk-core.c | jmztaylor/android_kernel_amazon_ariel | gpl-2.0 | 88,300 | 3,195 | codeparrot/github-code |
7b56fe1b6fb7c346baf2850aa8e78def30bd9a4c4b60750e93319cf3ba692de7 | using System;
using System.Linq;
using CmsData.View;
using UtilityExtensions;
using System.Collections.Generic;
using System.Data;
namespace CmsData
{
public partial class Transaction
{
public bool CanCredit(CMSDataContext db)
{
return db.Gateway().CanVoidRefund
&& A... | C# | CmsData/Finance/Transaction.cs | sengithub/SenSourcecode | gpl-2.0 | 3,703 | 102 | codeparrot/github-code |
3302bb2b5e5bb6b0dec565f7c6b553dd3cc21eb1c11f544a687f3370d96e1062 | package org.b.v.tools.soccer.tournament.extra;
import java.io.Serializable;
public abstract class Entity implements Comparable<Entity>,Serializable {
private static final long serialVersionUID = 1L;
private Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public ... | Java | src/main/java/org/b/v/tools/soccer/tournament/extra/Entity.java | bartvoet/org.b.v.tools.soccer.tournament | gpl-2.0 | 789 | 47 | codeparrot/github-code |
bcdc2116fbe2f84c9e96cdb5b2c3dced0c91efd3a036af8c061295505e810f12 | from enigma import eTimer, eEnv
from Screens.Screen import Screen
from Components.ActionMap import ActionMap, NumberActionMap
from Components.Pixmap import Pixmap,MultiPixmap
from Components.Label import Label
from Components.Sources.StaticText import StaticText
from Components.Sources.List import List
from Components.... | Python | lib/python/Plugins/SystemPlugins/WirelessLan/plugin.py | idrogeno/IdroMips | gpl-2.0 | 16,367 | 402 | codeparrot/github-code |
709c6081d9ea5989f0a16b4d253fd22cfe3bc826e3992529d89e77ed83bb782e | <?php
/**
* @Project NUKEVIET 4.x
* @Author VINADES.,JSC (contact@vinades.vn)
* @Copyright (C) 2014 VINADES.,JSC. All rights reserved
* @License GNU/GPL version 2 or any later version
* @Createdate 24-06-2011 10:35
*/
if (! defined('NV_IS_FILE_ADMIN'))
die('Stop!!!');
$page_title = $lang_module['question_li... | PHP | modules/nvform/admin/question.php | nukeviet/module-nvform | gpl-2.0 | 4,376 | 127 | codeparrot/github-code |
9d5c0608b6f489230478fa1a52d986a97eb4c76090fd6abce039a93d08b2556e | ///////////////////////////////////////////////////////////////////////////////
// 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/model/JpcIndTestParams.java | jmogarrio/tetrad | gpl-2.0 | 5,715 | 184 | codeparrot/github-code |
20cf03b5858791b382e4b4f20651898a9d67d18960e73bd3cba1966bac8ac075 | /* packet-gmr1_rr.c
*
* Routines for GMR-1 Radio Resource dissection in wireshark.
* Copyright (c) 2011 Sylvain Munaut <tnt@246tNt.com>
*
* References:
* [1] ETSI TS 101 376-4-8 V1.3.1 - GMR-1 04.008
* [2] ETSI TS 101 376-4-8 V2.2.1 - GMPRS-1 04.008
* [3] ETSI TS 101 376-4-8 V3.1.1 - GMR-1 3G 44.008
* [4] ... | C | epan/dissectors/packet-gmr1_rr.c | MavEtJu/wireshark-lean | gpl-2.0 | 72,177 | 2,423 | codeparrot/github-code |
95bc93c40a69a59542b5f2f72670b69b7eeef363dca085ac382aa7abc3101690 | /*
* Copyright (C) 2015 William Matrix Peckham
*
* 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 progra... | Java | RayTracer-Core/src/com/matrixpeckham/raytracer/textures/procedural/LinearNoise.java | MatrixPeckham/Ray-Tracer-Ground-Up-Java | gpl-2.0 | 4,557 | 190 | codeparrot/github-code |
e213394920dfbcfc2ac9e199fee5945183bb1940fe213809b4c330f3b149da1a | /**
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
*
* 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... | Java | portlets/iucn-dbservice-portlet/docroot/WEB-INF/service/com/iucn/whp/dbservice/model/state_trend_whvaluesWrapper.java | iucn-whp/world-heritage-outlook | gpl-2.0 | 7,760 | 289 | codeparrot/github-code |
c3dcc1bd1f03f8591e8ee3f7d92a72c73cbf3e53135ef9d9a74a6648319970e1 | namespace AutoWikiBrowser
{
partial class PluginManager
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | C# | AWB/PluginManager.Designer.cs | reedy/AutoWikiBrowser | gpl-2.0 | 10,381 | 192 | codeparrot/github-code |
08ba6406fb43f7d4fe588e81c027820ebd58355d8d1969c62eb85e65092c8026 | /* CoreAnimation - CAValueFunction.h
Copyright (c) 2008 Apple Inc.
All rights reserved. */
#import <QuartzCore/CABase.h>
#import <Foundation/NSObject.h>
@interface CAValueFunction : NSObject <NSCoding>
{
@protected
NSString *_string;
void *_impl;
}
+ (id)functionWithName:(NSString *)name;
@property(reado... | C | MacOSX10.6/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/CAValueFunction.h | sschiesser/ASK_server | gpl-2.0 | 2,329 | 69 | codeparrot/github-code |
ebf3c96e0aa1484dc0e761026e176814d509bfca9bb2bd2132935e13680252bd | /*
* edac_mc kernel module
* (C) 2005-2007 Linux Networx (http://lnxi.com)
*
* This file may be distributed under the terms of the
* GNU General Public License.
*
* Written Doug Thompson <norsk5@xmission.com> www.softwarebitmaker.com
*
*/
#include <linux/ctype.h>
#include <linux/bug.h>
#include "edac_core.h"... | C | drivers/edac/edac_mc_sysfs.c | serj/kernel_graph_2.6.32_rhel | gpl-2.0 | 27,601 | 1,075 | codeparrot/github-code |
f2929c796f15694a04d25cf061c94540b715a29065e00e67a0b680724d4487e4 | <?php
defined('_JEXEC') or die;
class JoomElectionAdminSidebarHelper {
public static function render($activeController) {
$linkHtml = static::renderLink('index.php?option=com_joomelection&task=election.showList', 'COM_JOOMELECTION_ELECTIONS', $activeController == 'election');
$linkHtml .= static:... | PHP | admin/helpers/JoomElectionAdminSidebarHelper.php | anttikekki/joomla-joomelection | gpl-2.0 | 1,267 | 32 | codeparrot/github-code |
7d12713e2d6b93ef7506117121fa0fb2247aa6b8f16a8d68e4722670593a550f | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>½Ó͵ÚÒ»ÆåÅÆÖÐÐÄÏÂÔØ¹Ù·½ÕæÕýºÃ</title>
<meta name="keywords" content="½ÓÍ,µÚÒ»,ÆåÅÆ,ÖÐÐÄ,ÏÂÔØ,¹Ù·½,ÕýºÃ,Æå... | HTML | wulu/2015.11.23/qipai/qipaiyouxipingtai/1615.html | bylu/Test | gpl-2.0 | 14,093 | 258 | codeparrot/github-code |
bc9e0c8b00daefa19939fedf498768327a8e2ca54fa3f0b10dc8351b18310e80 | <?php
/**
* @package nxcSocialNetworks
* @class nxcSocialNetworksOAuth2Twitter
* @author Serhey Dolgushev <serhey.dolgushev@nxc.no>
* @date 16 Sep 2012
**/
class nxcSocialNetworksOAuth2Twitter extends nxcSocialNetworksOAuth2
{
public static $tokenType = nxcSocialNetworksOAuth2Token::TYPE_TWITTER;
public ... | PHP | ezpublish_legacy/extension/nxc_social_networks/classes/handlers/oauth2/twitter.php | medbenhenda/migration-ez5 | gpl-2.0 | 2,292 | 69 | codeparrot/github-code |
ac42bf6d16cf7e46d522e193084e0a9d6b7d7928ce7b333c4ca1f908c590bca0 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FizzWare.NBuilder;
using Spartan.Domain;
namespace Spartan.Data.Generators
{
public partial class Generate
{
public static IQueryable<ApplicationUser> FakeUsers()
{
... | C# | Spartan.Data.Generators/Application.cs | mmangiamusardo/spartan | gpl-2.0 | 949 | 38 | codeparrot/github-code |
00746bb117bb5aa36fae6bff931feddba49ffff382de27e1088f68756627a49a | @echo off
REM ********************************************************
REM This batch file receives the follwing parameters:
REM build/rebuild (optional): should the solution file be rebuilded
REM or just builded before test run (default is rebuild)
REM output files name prefix (mandratory)... | Batchfile | class/System.Data/run-tests.test.connected.bat | hardvain/mono-compiler | gpl-2.0 | 6,952 | 200 | codeparrot/github-code |
7c4a4ac3576cda9616f798733ea49798fa67cbb9a6b50c5c64f5e4b7c4e3696c | /* dnsmasq is Copyright (c) 2000-2012 Simon Kelley
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 dated June, 1991, or
(at your option) version 3 dated 29 June, 2007.
This... | C | external/dnsmasq/src/radv.c | skinzor/henkate_kernel_j5-stock | gpl-2.0 | 23,291 | 756 | codeparrot/github-code |
227c16da55e2557bbb4007473ce1ed6bd9eba1af72c2e9448de4277572e81e67 | /**
* Copyright (c) 2005-2011 springside.org.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* $Id: ServletUtils.java 1493 2011-02-13 16:33:38Z calvinxiu $
*/
package org.guess.core.utils.web;
import java.io.UnsupportedEncodingException;
import java.util.Enumeration;
import java.util.Ma... | Java | eshbase-commons/src/main/java/org/guess/core/utils/web/ServletUtils.java | joezxh/DATAX-UI | gpl-2.0 | 6,557 | 224 | codeparrot/github-code |
7ec4958d982b39bce5a0e219f79c979d93f2b7e1d9a9dcef19e9d2e5165561f7 | <?php
/**
* Created by PhpStorm.
* User: nursultan
* Date: 6/6/14
* Time: 9:29 PM
*/
namespace Application\SchoolBundle\Controller;
use Doctrine\ORM\EntityNotFoundException;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
class ReportClassController exte... | PHP | src/Application/SchoolBundle/Controller/ReportClassController.php | nurolopher/school-monitoring | gpl-2.0 | 1,447 | 47 | codeparrot/github-code |
aea270014472bf1bcca71f1285e91bf76c2cfa054c7536f045a16a876177d8c7 | /*
* Copyright (C) 2009 Marco Martin <notmart@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*... | C++ | kcms/workspaceoptions/workspaceoptions.cpp | ppalaga/plasma-desktop | gpl-2.0 | 3,279 | 103 | codeparrot/github-code |
d95320870450c9acd5a97ddd63fe904b551f517bf4bd8581976eccee1e15e71c | <?php
namespace CrTranslateMate;
class ArrayIterator implements \Iterator
{
private $var = array();
public function __construct($array)
{
if (is_array($array)) {
$this->var = $array;
}
}
public function rewind()
{
reset($this->var);
}
public funct... | PHP | upload/admin/CrTranslateMate/ArrayIterator.php | chrisrollins65/cr_translate_mate | gpl-2.0 | 650 | 41 | codeparrot/github-code |
7fd407ecaa3c7e14605f70132ca4f086d8c5bf34853ba31c40c4b7492158e1f2 | /*
* Copyright (C) Bigly Software. 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 version 2
* of the License, or (at your option) any later version.
*
* T... | Java | uis/src/com/biglybt/ui/swt/config/StringSwtParameter.java | BiglySoftware/BiglyBT | gpl-2.0 | 2,707 | 71 | codeparrot/github-code |
9c9d10d026386ed800b79df1b09a197235500773a0274ff27201c968fbf0ceed | <?php
/**
* Show options for ordering
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.2.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $woocommerce, $wp_query;
if ( 1 == $wp_query->found_posts || ! woocommerce_products_will_display() )
ret... | PHP | wp-content/themes/progressive/woocommerce/loop/orderby.php | gjohn78/WorldWomanSandbox | gpl-2.0 | 1,692 | 53 | codeparrot/github-code |
583e5fd6504035b59eba80a513af7667481caa0d0188d7c0b2495098939c16b4 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
... | Lua | plugins/google.lua | telegrambot81/kingbot-sup | gpl-2.0 | 1,198 | 46 | codeparrot/github-code |
9e7fbbbf59037865e79b3066c8147f1caebcf68377d6d698306888d87c7bdc8a | #include "i18n/i18n.h"
#include "Common/StringUtils.h"
#include "Common/ChunkFile.h"
#include "Common/FileUtil.h"
#include "Core/CoreTiming.h"
#include "Core/CoreParameter.h"
#include "Core/CwCheat.h"
#include "Core/Config.h"
#include "Core/Host.h"
#include "Core/MIPS/MIPS.h"
#include "Core/ELF/ParamSFO.h"
#include "Co... | C++ | Core/CwCheat.cpp | Orphis/ppsspp | gpl-2.0 | 21,576 | 771 | codeparrot/github-code |
06c0db93946aa8f435a18ec3fe3949b5bbf83954cefaba0b033fc1bd264d27bf | package zhangshe.Utils;
import static org.junit.Assert.*;
import org.junit.Test;
public class CounterTest
{
@Test
public void test() throws Exception
{
// Counter alpha = new Counter(0);
Counter beta = new Counter(123);
DecrementableCounter gamma = new DecrementableCounter(-5);
Counter alpha = ... | Java | src/zhangshe/Utils/CounterTest.java | Shen-Zhang/lab-inheritance | gpl-2.0 | 1,198 | 43 | codeparrot/github-code |
c074f563b6463dbdad6b921fb634af011ba2f7eceb67ca4e994d6b69d0b0c887 | package pf::detect::parser::suricata_md5;
=head1 NAME
pf::detect::parser::suricata_md5
=cut
=head1 DESCRIPTION
pfdetect parser class for Suricata MD5 checksum mode
=cut
use strict;
use warnings;
use JSON;
use Moo;
use pf::api::queue;
use pf::iplog;
use pf::log;
extends qw(pf::detect::parser);
sub parse {
... | Perl | lib/pf/detect/parser/suricata_md5.pm | jrouzierinverse/packetfence | gpl-2.0 | 3,631 | 113 | codeparrot/github-code |
ce2c122f213710a0aad0609011b46f364fa2d7878c81a3affaf4c4d48b774e0e | // Copyright Hugh Perkins 2004,2005,2006
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License version 2 as published by the
// Free Software Foundation;
//
// This program is distributed in the hope that it will be useful, but
// WITHO... | C# | Source/Metaverse.Client/MovementAndEditing/PlayerMovement.cs | hughperkins/osmp-cs | gpl-2.0 | 14,007 | 311 | codeparrot/github-code |
f62b865d014d1beb2c1e25c4642add76e6067ad944b5fe61ba5b574caeb99eec | package messages
import (
"bytes"
"message-delivery-system/src/utils"
)
/**
LIST RESPONSE
*/
type ListResponse struct {
// list of ids
List []uint64
// receiver
Receiver uint64
}
/**
CUSTOM CONSTRUCTOR
*/
func NewListResponse(data []byte) ListResponse {
buf := bytes.NewReader(data)
list, _ := utils.Byt... | GO | src/messages/list_response.go | adriwankenobi/message-delivery-system | gpl-2.0 | 789 | 51 | codeparrot/github-code |
8cd90042cd9e8203cc28faa8af7c6e9268436785d91f8230a8096e66288abee3 | <?php
/**
* JS Files Minifier
*
* @author Michael Uno <michael@michaeluno.jp>
* @copyright 2015 (c) Michael Uno
* @license MIT <http://opensource.org/licenses/MIT>
*/
if ( ! class_exists( 'PHP_Class_Files_Script_Generator_Base' ) ) {
require( dirname( dirname( dirname( __FILE__ ) ) ) . '/php_cla... | PHP | tool/css_minifier/class/CSS_Files_Minifier.php | michaeluno/custom-scrollbar | gpl-2.0 | 9,414 | 243 | codeparrot/github-code |
f66ee994544cc1a7610007d6670268077150e005269383ea0beeebcba2ab88f0 | <?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">
<!-- /home/test1/tmp/qtopia/qt//qtopia-core-opensource-src-4.3.6/doc/src/stylesheet.qdoc -->
<head>
<title>Qt 4.3: The S... | HTML | qtopiacore/qt/doc/html/stylesheet-syntax.html | muromec/qtopia-ezx | gpl-2.0 | 21,357 | 197 | codeparrot/github-code |
1723dcdec32f1f9e87716f2ec3d2d844ad5f6807a55a1f756c5bd9aed27d97fe | /*
* LZO1X Compressor from MiniLZO
*
* Copyright (C) 1996-2005 Markus F.X.J. Oberhumer <markus@oberhumer.com>
*
* The full LZO package can be found at:
* http://www.oberhumer.com/opensource/lzo/
*
* Changed for kernel use by:
* Nitin Gupta <nitingupta910@gmail.com>
* Richard Purdie <rpurdie@openedhand.... | C | go12/linux-2.6.28.10/lib/lzo/lzo1x_compress.c | kzlin129/tt-gpl | gpl-2.0 | 4,460 | 228 | codeparrot/github-code |
fb5c85b79278e8d6905d94459d190eee8e253630e095903978049d477bcf4abb | #ifndef FIO_OS_APPLE_H
#define FIO_OS_APPLE_H
#include <errno.h>
#include <sys/sysctl.h>
#include <sys/time.h>
#include <unistd.h>
#include <signal.h>
#include "../file.h"
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 1
#endif
#ifndef CLOCK_REALTIME
#define CLOCK_REALTIME 1
#endif
#define FIO_HAVE_POSIXAIO
#defi... | C | os/os-mac.h | radii/fio | gpl-2.0 | 2,865 | 138 | codeparrot/github-code |
3fdf6e6393e1f0f54bd7bdda46c08456d30a100064a662e987c2cc0e74f79182 | package hillfly.wifichat.common.sql;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class SQLHelper extends SQLiteOpenHelper
{
private static final int VERSION = 1; //数据库版本
private static final String DBNAME="chat... | Java | src/hillfly/wifichat/common/sql/SQLHelper.java | hillfly/WifiChat | gpl-2.0 | 1,142 | 56 | codeparrot/github-code |
e1d7de4ee6143ef97ebecab4494776ef2ed9fb4fb9de1fe52d4747c1542c9408 | <?php
/**
* This class copy only one attachment
*
* As attachments can take long to copy depending on the size
* the class will only get and upload one of them
*/
if ( ! class_exists( 'Site_Copier_Attachment' ) ) {
class Site_Copier_Attachment extends Site_Copier {
public function get_default_args(... | PHP | wp-content/plugins/cloner/copier/class.copier-attachment.php | snappermorgan/snapgen2 | gpl-2.0 | 14,556 | 330 | codeparrot/github-code |
38c12093c1faf531945d413e9894b292ecdab95ee261ebe0d350e89620663634 | /* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include "macro.h"
char octchar(int x) _const_;
int unoctchar(char c) _const_;
char decchar(int x) _const_;
int undecchar(char c) _const_;
char hexchar(int x) _const_;
int unhexc... | C | src/basic/hexdecoct.h | coreos/systemd | gpl-2.0 | 1,188 | 42 | codeparrot/github-code |
ba7374e937552578bbdcc9776c977da7ae8500256ab10ed7142f6542141a1909 | <?php
/**
* @package waterstreet
* @since waterstreet 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'waterstreet' ), the_title_attribute(... | PHP | content.php | saltcod/andrewdraws | gpl-2.0 | 2,536 | 62 | codeparrot/github-code |
fa5e29e6250c3f4ea087da646617f80a2c09112ae5fa55a082566e3edc73791c | package edu.uci.lasso;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/**
* This class demonstrates the usage of LassoFit
*
* @author Yasser Ganjisaffar (http://www.ics.uci.edu/~yganjisa/)
*/
public class TestLasso {
public static void main(... | Java | src/test/java/edu/uci/lasso/TestLasso.java | spulido99/SSA | gpl-2.0 | 2,110 | 74 | codeparrot/github-code |
3d993481b5eef0340df59332c18bbdb43fa39acc3187a6ef11a7db08f536fd1f | using System.Collections.Generic;
using Server.Items;
namespace Server.Mobiles
{
public class SBVeterinarian : SBInfo
{
private List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
private IShopSellInfo m_SellInfo = new InternalSellInfo();
public SBVeterinarian()
{
}
public override... | C# | Scripts/Mobiles/Vendors/SBInfo/SBVeterinarian.cs | felladrin/last-wish | gpl-2.0 | 1,060 | 38 | codeparrot/github-code |
276fb42e2d749a6c31999c7a4c93658ce02ac94c8ff938c2d56d75a983099548 | /*
* Cogl
*
* A Low Level GPU Graphics and Utilities API
*
* Copyright (C) 2012 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including... | C | cogl/cogl/cogl-glsl-shader.c | halfline/mutter | gpl-2.0 | 6,947 | 201 | codeparrot/github-code |
fbd17fa1afe977672c669395a6c3f9c1e3e204e9c0b9f6caf803338550a2b9d6 | /*
* Copyright (C) 2014 AChep@xda <artemchep@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* Th... | Java | project/app/src/main/java/com/achep/acdisplay/widgets/NotificationIcon.java | 0359xiaodong/AcDisplay | gpl-2.0 | 4,586 | 156 | codeparrot/github-code |
99b98c4d7753050880c76c240c557c4daf9ff742d09265686daaaa487af19e6f | document.observe("dom:loaded", function() {
new Ajax.Request("/cgi-bin/admin/admin.pl", {
onSuccess: function(resp) {
if (resp.responseJSON
&& resp.responseJSON.success != 0
&& resp.responseJSON.warnings.length != 0) {
$("admin_messages").hide();
var warnings = resp.responseJSON.warnings;
for (var i ... | JavaScript | site/htdocs/js/bse_adminpage.js | tonycoz/bse | gpl-2.0 | 799 | 32 | codeparrot/github-code |
cb9ce282b6d35d166ebae3e776f1a3543f82ad350f4adc49e34401876e4b5ea3 | /*
* Boundary Devices FTx06 touch screen controller.
*
* Copyright (c) by Boundary Devices <info@boundarydevices.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 ve... | C | drivers/input/touchscreen/ft5x06_ts.c | pacificIT/linux-imx6-1 | gpl-2.0 | 15,166 | 629 | codeparrot/github-code |
899e98409f2ec6609c0b2f3d18996aaa93dbb74ca613768daae9649eeb0fddab | // osrng.cpp - written and placed in the public domain by Wei Dai
// Thanks to Leonard Janke for the suggestion for AutoSeededRandomPool.
#include "pch.h"
#ifndef CRYPTOPP_IMPORTS
#include "osrng.h"
#ifdef OS_RNG_AVAILABLE
#include "rng.h"
#ifdef CRYPTOPP_WIN32_AVAILABLE
#include <windows.h>
#inc... | C++ | plugins/CryptoPP/crypto/src/osrng.cpp | miranda-ng/miranda-ng | gpl-2.0 | 3,580 | 169 | codeparrot/github-code |
221e931adb78dd8995f79d8fb709621237a16cfd492ac2d9ffdda303d9528b90 | #ifndef PositionMonitorManager_h
#define PositionMonitorManager_h
class PositionMonitor;
class SymbolData;
#ifndef PurchaseData_h
#include "PurchaseData.h"
#endif
#ifndef map_h
#include <map>
#define map_h
#endif
#ifndef string_h
#include <string>
#define string_h
#endif
#ifndef DataEnums_h
#i... | C | gcc/PositionInterface/PositionMonitorManager.h | redpine42/RedpineTradingPost | gpl-2.0 | 1,646 | 70 | codeparrot/github-code |
cf7c608f40efdf74006e1ccc002a536b961622519ec800d26271ad731c652d54 | /*
* X11 Xv interface
*
* This file is part of MPlayer.
*
* MPlayer 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 | libvo/vo_xv.c | svn2github/MPlayer-SB | gpl-2.0 | 21,889 | 732 | codeparrot/github-code |
38b5afb7f792918d6704060e1c4e1c5aaa5e279178db32a95a185f8cc16f78d1 | /* Return the offset of one string within another.
Copyright (C) 1994,1996,1997,2000,2001,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as p... | C | string/strstr.c | dtbartle/glibc-opensolaris | gpl-2.0 | 2,942 | 124 | codeparrot/github-code |
68847a5a4371f1856149fe7ac9a243918c5099e6e983c3f78bed72819b38fa05 | /*
* IRC - Internet Relay Chat, src/modules/out.c
* (C) 2004 The UnrealIRCd Team
*
* See file AUTHORS in IRC package for additional names of
* the programmers.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published... | C | src/modules/m_svsfline.c | Hamper/LineIRCd | gpl-2.0 | 3,219 | 138 | codeparrot/github-code |
cba45139c0305b743127a6a4f6e5b05a11bde9a4787efba17780951e1826ad6f | /* Myget - A download accelerator for GNU/Linux
* Homepage: http://myget.sf.net
* Copyright (C) 2005- xiaosuo
*
* 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 th... | C++ | .pc/debian-changes-0.1.0-kmbuild8/src/downloader.cpp | myly10/mwget | gpl-2.0 | 13,342 | 606 | codeparrot/github-code |
6f10cfbee4e98bf822dba69e1c192e18ef8224b0b7fbc9662fd23c5db4a7c653 | <?php
show_admin_bar(false);
add_action('login_enqueue_scripts', 'my_login_logo');
function my_login_logo() {
?>
<style type="text/css">
body.login div#login h1 a {
background-image: url('<?php echo get_bloginfo('template_directory') ?>/images/wahoo_logo.jpg');
background-size:... | PHP | wp-content/themes/profiler/functions.php | mhbagtoons/wahoo-multi | gpl-2.0 | 17,291 | 706 | codeparrot/github-code |
66b7905fb3b91e1ad8dacbfb4ee83d60a7f76c323d336e23c5c6986ecf683ad7 | <?php
/**
* Fired when the plugin is activated.
* Check if db exists, build if necessary
*
* @since 1.0.0 1
*
* @param boolean $network_wide True if WPMU superadmin uses "Network Deactivate" action, false if WPMU is disabled or plugin is deactivated on an individual blog.
*/
c... | PHP | wp-content/plugins/facilities-management/f_m_create_db_regs.php | michael9999/bc-portal | gpl-2.0 | 1,830 | 63 | codeparrot/github-code |
2208e58e9da53aef4515b31940faae8a7477c2e621a1be78f6f34c86ab7918e7 |
/* $Id: appletpalette.c 355 2005-01-11 22:48:55Z andreradke $ */
/*© copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
#include "applet.h"
#define drawinset 3
#define ctperline 2
#define heightpaletteicon (heightsmallicon + 6)
#define widthpaletteicon (widthsmallicon + 6)
#define breakpixels 4
... | C | FrontierSDK/Toolkits/AppletToolkit/Source/appletpalette.c | scripting/frontier | gpl-2.0 | 4,670 | 265 | codeparrot/github-code |
1123b75d49799683870c40f12191f88deb2bde2cc66747fd72e108ab020177b5 | package com.github.zxk.news.UI.activity;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.TextView;
import com.github.zxk.news.Bean.Weather;
import com.github.zxk.news.R;
import com.github.zxk.news.UI.activity.base.BaseActivity;
import com.google.gso... | Java | News/app/src/main/java/com/github/zxk/news/UI/activity/WeatherDetailActivity.java | zxk123/-News | gpl-2.0 | 3,441 | 103 | codeparrot/github-code |
96b899de96dd5cadc03c6c0e8ae1fa701ac316356a856f3a96ed14dd9064d3b7 | ////////////////////////////////////////////////////////////////////////////////
/// AlarmAddLinkAction class implementation.
/// @file AlarmAddLinkAction.cpp
/// @author Hugues Romain
///
/// This file belongs to the SYNTHESE project (public transportation specialized
/// software)
/// Copyright (C) 2002 Hugues Romain... | C++ | server/src/17_messages/AlarmAddLinkAction.cpp | Open-Transport/synthese | gpl-2.0 | 4,980 | 177 | codeparrot/github-code |
cb81638358ce1b9346e8b5925453b77782e67a074a0bbfaa6a6b8e13e2cebc85 | /*
* ioctl32.c: Conversion between 32bit and 64bit native ioctls.
*
* Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com)
* Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
* Copyright (C) 2001,2002 Andi Kleen, SuSE Labs
* Copyright (C) 2003 Pavel Machek (pavel@ucw.cz)
*
* These routines mainta... | C | fs/compat_ioctl.c | mostafa-z/Gabriel_MM | gpl-2.0 | 46,461 | 1,635 | codeparrot/github-code |
768f7616210b7d2f3cd435f81b5caa49954ff0f42a09bd3210d80ac436f90af2 | <?php
##################################################
#
# Copyright (c) 2004-2006 OIC Group, Inc.
# Written and Designed by James Hunt
#
# This file is part of Exponent
#
# Exponent 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 | modules/contactmodule/actions/save_contact.php | exponentcms/exponent-cms-1 | gpl-2.0 | 1,095 | 43 | codeparrot/github-code |
fb3fee1926dcb02442a51c5bd45704556597fe700eb1b7204fe81bc0f6638298 | <?php
/**
* Barre de menu des pages administrateurs utilisant un gabarit
*
*
*
*
* @license GNU/GPL v2
* @package General
* @subpackage Affichage
* @see getSettingValue()
* @todo Réécrire la barre administrateur, le principe des gabarits, c'est d'envoyer des variables aux gabarits,
* pas d'... | PHP | lib/header_barre_admin_template.php | kigeia/gepi | gpl-2.0 | 18,035 | 256 | codeparrot/github-code |
0b48c5dc5a77909db34e0c3f1b878dc383bab3644272ec7739d4b002281beac4 | // Copyright (c) 2014 Erick Bourgeois, All Rights Reserved
package ca.jeb.protobuf;
import ca.jeb.common.infra.JException;
/**
* Exception when raised during the serialization of Protobuf attributes.
*
* @author <a href="mailto:erick@jeb.ca">Erick Bourgeois</a>
*/
public class ProtobufException extends JExcepti... | Java | src/main/java/ca/jeb/protobuf/ProtobufException.java | ebourgeois/protobuf-serializer | gpl-2.0 | 772 | 38 | codeparrot/github-code |
a08cd0652bb503a6471edbd012680b70bdac1ee2fca3547849065007f9c57be9 | /*
* Copyright (c) 2009 Cyrille Berger <cberger@cberger.net>
*
* This program 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; version 2 of the License.
*
* This program is distributed in the ... | C | krita/plugins/extensions/shiva/PaintDeviceImage.h | JeremiasE/KFormula | gpl-2.0 | 1,734 | 51 | codeparrot/github-code |
1a652a9f03d4da5647231cdfa3f9131649c3190608d12c6840bc8203442fa8e9 | import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GObject
import random
import re
import datetime
class GenrePop(Gtk.Popover):
"""Creates a popover to filter by genre"""
__gsignals__ = {
"genres-updated": (GObject.SIGNAL_RUN_FIRST, GObject.TYPE_NONE, (object,))
}
def... | Python | src/gtk-gui/SearchBar.py | Return0Software/Flix-with-Friends | gpl-2.0 | 11,298 | 318 | codeparrot/github-code |
ad4c6dc640e1a1bea9ed14e2b4bc835c386ab3e54123567e7751d168809b1921 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Design;
using System.ComponentModel;
namespace Moras.Net.Design
{
public class IndyComponentDesigner : ComponentDesigner
{
protected override void PreFilterProperties(System.Collections.ID... | C# | Moras.Net.Design/IndyComponentDesigner.cs | DiablosOffens/Moras.Net | gpl-2.0 | 1,190 | 39 | codeparrot/github-code |
35b769c7b38c9481d068e20c63e06f619128ee0f50da60671d6b8b9bcb3b3dc3 | /*
* 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; either version 2 of the License, or
* (at your option) any later version... | C++ | src/shared/Config/Config.cpp | web0316/WOW | gpl-2.0 | 3,864 | 175 | codeparrot/github-code |
cfd38e7e9906570ff577c3e87573fb412b6a1eff2172e2dd463757c64e615400 | // A Bison parser, made by GNU Bison 3.0.4.
// Skeleton implementation for Bison LALR(1) parsers in C++
// Copyright (C) 2002-2013 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... | C++ | ga_parser.tab.cc | ha11owed/germanarticles | gpl-2.0 | 47,864 | 1,697 | codeparrot/github-code |
43aef9c9f5cd69460dbd7d65d0c3e55d2e3f4f51c40d52de14ae66e4fa4cb6d9 | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... | Ruby | config/environments/development.rb | gerardcondon/chinese-learning-app | gpl-2.0 | 1,625 | 44 | codeparrot/github-code |
fa3435db43fdf54f03f505075102c8fa7e196bf0f4c1851b9a32ed912aeae674 | /*
Yet Another Arkanoid
Copyright (C) 2001 Mads Bondo Dydensborg <mads@dydensborg.dk>
Copyright (C) 2001 Jonas Christian Drewsen <jcd@xspect.dk>
Copyright (C) 2001 contributers of the yanoid project
Please see the file "AUTHORS" for a list of contributers
This program is free software; you can ... | C++ | doc/codingstyle_example.cc | madsdyd/yanoid | gpl-2.0 | 1,777 | 60 | codeparrot/github-code |
facece7221c00d83fe1713e99ac8ff47a6254d3027a5eaa6e3295e16d4d5c8f4 | /*
* Copyright (C) 2003, Michael Richardson <mcr@freeswawn.org>
* Derived from code: Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and th... | C | openswan/lib/liblwres/async.c | kidmaple/CoolWall | gpl-2.0 | 9,584 | 413 | codeparrot/github-code |
b8707099733f1777da0d0dbd78d8a358fe0343444631ebdcda3bcc851a877d38 | /*
* Copyright (C) 2006-2014 Ingenic Semiconductor CO.,LTD.
*
* This file is part of MPlayer.
*
* MPlayer 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 | librv9/jzsoc/rv9_pred.c | MIPS/CI20_mplayer | gpl-2.0 | 18,733 | 684 | codeparrot/github-code |
340a2868c1828e11b9cab640cff88e9a8a3c9f0f3db2c4b3a36434645defc246 | <?php
/**
* @package reason
* @subpackage minisite_modules
*/
/**
* Register controller with Reason
*/
$GLOBALS[ '_form_controller_class_names' ][ basename( __FILE__, '.php') ] = 'AbstractFormController';
/**
* Abstract Form Controller
*
* Form controllers need a model in order to function, and option... | PHP | reason_4.0/lib/core/minisite_templates/modules/form/controllers/abstract.php | mischler/reason_package | gpl-2.0 | 8,428 | 322 | codeparrot/github-code |
80acc09673a7091019fa30fa83da701499c1a23737617cae18c7be837f4dd1dd | # This code is part of Wakka.
# Wakka 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.
# Wakka is distributed in the hope that it will... | Python | wakkacore/terminal.py | mayankjohri/wakka-package-manager | gpl-2.0 | 3,148 | 94 | codeparrot/github-code |
4cc753b607edcd6982971c9549ec09d75d8394486f17dc4d101d6664067874c8 | <?php
class Card extends \Eloquent {
protected $fillable = [];
public $timestamps = false;
public function sets() {
return $this->belongsTo('Set');
}
public function decks() {
return $this->belongsToMany('Deck', 'card_deck', 'card_id', 'deck_id')
->withPivot('amount', 'maindeck')
... | PHP | app/models/Card.php | gnumast/mtgbin | gpl-2.0 | 1,020 | 31 | codeparrot/github-code |
4cf09fe7ae44bdd3cae1984f1bcb9d97aea6efa9b5fd55e0a6b8d7a38b5351ee | package de.tum.bgu.msm.io;
import de.tum.bgu.msm.data.job.JobDataManager;
import de.tum.bgu.msm.data.job.JobFactoryMuc;
import de.tum.bgu.msm.data.job.JobMuc;
import de.tum.bgu.msm.io.input.JobReader;
import de.tum.bgu.msm.utils.SiloUtil;
import org.apache.log4j.Logger;
import org.locationtech.jts.geom.Coordinate;
im... | Java | useCases/munich/src/main/java/de/tum/bgu/msm/io/JobReaderMuc.java | msmobility/silo | gpl-2.0 | 3,281 | 77 | codeparrot/github-code |
f924fe2a8ae9f63f01e991ededc7e863a478ffbef2ccf9937815818ea4e9cf5f | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta... | PHP | install.php | jackhughesweb/hydroelectric-php | gpl-2.0 | 6,093 | 203 | codeparrot/github-code |
6961777da124a0490240bb62f3b8dd73efbfcee52d63e17ed160da63b851d276 | /*
* AtmoDisplays.cpp: class for retrieving the current monitor and display setup... can handle up to four different screens on a computer
*
* See the README.txt file for copyright information and how to reach the author(s).
*
* $Id$
*/
#include "StdAfx.h"
#include "atmodisplays.h"
CAtmoDisplays::CAtmoDisplays(... | C++ | AtmoDisplays.cpp | ambilight-4-mediaportal/AtmoWin | gpl-2.0 | 2,280 | 70 | codeparrot/github-code |
f0445eda7d4f446acdc98cc71d8dcf72be0aedf5ef82cf2d0df71c35dfc0cfe6 | package com.meetup.agileim.web.rest;
import com.codahale.metrics.annotation.Timed;
import com.meetup.agileim.domain.Authority;
import com.meetup.agileim.domain.User;
import com.meetup.agileim.repository.AuthorityRepository;
import com.meetup.agileim.repository.UserRepository;
import com.meetup.agileim.security.Authori... | Java | src/main/java/com/meetup/agileim/web/rest/UserResource.java | lazcatluc/agileim | gpl-2.0 | 6,712 | 156 | codeparrot/github-code |
ac3cf7d6880e1405bd64a68d6ac696fe87e296bdd1623c5def0a03d4b8bce934 | package com.fasterxml.jackson.databind.type;
import java.lang.reflect.TypeVariable;
import java.util.Collection;
import com.fasterxml.jackson.databind.JavaType;
/**
* Type that represents things that act similar to {@link java.util.Collection};
* but may or may not be instances of that interface.
* This specifica... | Java | 3rdParty_sources/jackson/com/fasterxml/jackson/databind/type/CollectionLikeType.java | lamsfoundation/lams | gpl-2.0 | 8,536 | 263 | codeparrot/github-code |
55a22228f47bc8452d46d36571e22774a448b379281db534b936d23220ed1507 | // <copyright file="Menu.cs" company="EnsageSharp">
// Copyright (c) 2017 EnsageSharp.
// 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
// (... | C# | Menu/Menu.cs | EnsageSharp/Ensage.Common | gpl-2.0 | 37,936 | 1,288 | codeparrot/github-code |
8b97738b29fef689036306396213d0a6fd09a0078a30a362a8c6232b3bf1e7f7 | <?php
namespace GuerrasEnterprises\Bundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use GuerrasEnterprises\Bundle\Entity\Information;
class InformationController extends RestControlle... | PHP | src/GuerrasEnterprises/Bundle/Controller/InformationController.php | liancastellon/cellstore-admin | gpl-2.0 | 1,244 | 49 | codeparrot/github-code |
acad16854aa514791016edff48ec1e4f4264e326a68c009c50c1ff81b7f5fe36 | /*
Copyright (C) 2000-2006 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is ... | C++ | libs/ardour/source_factory.cc | davidhalter-archive/ardour | gpl-2.0 | 10,053 | 415 | codeparrot/github-code |
9692461e40c801e566754b32b99884ef1b39ffed573d8c6d458ca0c44bf70b81 | <?php
/**
* Class SubjectAwareTrait
* @package ModelFramework\Utility\SplSubject
* @author Vladimir Pasechnik vladimir.pasechnik@gmail.com
* @author Stanislav Burikhin stanislav.burikhin@gmail.com
*/
namespace ModelFramework\Utility\SplSubject;
trait SubjectAwareTrait
{
/**
* @var SplSubject
*/
... | PHP | src/ModelFramework/Utility/SplSubject/SubjectAwareTrait.php | modelframework/modelframework | gpl-2.0 | 675 | 38 | codeparrot/github-code |
5a26c20491a4320e84982b8707209483bd0626fc8be4e3961951d15f5d08aea8 | namespace WindowsFormsApplicationBiblioteca
{
partial class FormGestionLibros
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">tru... | C# | WindowsFormsApplicationBiblioteca/WindowsFormsApplicationBiblioteca/FormGestionLibros.Designer.cs | letylo/practica1-biblioteca | gpl-2.0 | 14,107 | 346 | codeparrot/github-code |
6866a3e50ac3febaf1f84a0d686046337c765f31f95e8cc17e78d38084840af7 | using System;
using System.Collections.Generic;
using System.IO;
using StardewModdingAPI;
using StardewModdingAPI.Events;
using StardewValley;
namespace SprintingMod
{
public class Sprinting : Mod
{
public static SprintingModConfig Config { get; set; }
private const string ModConflicts = "Mov... | C# | SprintingMod/Sprinting.cs | oliverpl/SprintingMod | gpl-2.0 | 5,673 | 179 | codeparrot/github-code |
03cd389ffbc300e004646b197b05c5b7d998e64ead7919c8fbd503e7ed423f44 | # Portions Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
# hgweb/__init__.py - web interface to a mercurial repository
#
# Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net>
# Copyright 2005 ... | Python | eden/hg-server/edenscm/mercurial/hgweb/__init__.py | facebookexperimental/eden | gpl-2.0 | 3,073 | 106 | codeparrot/github-code |
0c6b9caf16c91169aaf5556082b3bc4d2ff0586a7e862064cb699d711eff917e | #!/usr/bin/env python
"""
a simple script can run and test your html rendering classes.
Uncomment the steps as you add to your rendering.
"""
import codecs
import cStringIO
# importing the html_rendering code with a short name for easy typing.
import html_render as hr
## writing the file out:
def render(page, fil... | Python | code/session06/run_html_render.py | AmandaMoen/AmandaMoen | gpl-2.0 | 5,015 | 225 | codeparrot/github-code |
15a8717de5a046992b4291432a1293e9bae83a9e9f581e3a42c42618bba4865c | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"
href="{{ url_for('static', filename='categories.css') }}" />
<meta charset="UTF-8">
{% extends "layout.html" %} {% block title %}Forum {% endblock %} {%
block content %}
<body style="background-color: #A9E2F3">
<p>
<img src="../static/image/road.png" wi... | HTML | templates/forum.html | itucsdb1510/itucsdb1510 | gpl-3.0 | 2,743 | 123 | codeparrot/github-code |
ffe2709669f91fa6ee4a69565557160761c7c5978535db23b3c8e2bdd27d5e9e | <?php
$pageTitle = 'File Import';
include 'includes/header.php';
?>
<script type="text/javascript">
function validateForm(){
if (document.getElementById('usageFile').value == '') {
alert ('Please select a file.');
return false;
}else{
return true;
}
}
</script>
<table ... | PHP | usage/old/fileupload.php | NathanAhlstrom/CORAL | gpl-3.0 | 1,718 | 61 | codeparrot/github-code |
80fc5dcfa1fb8740e3303885eee7d05c119e685ebd31165e687a775e737d9fec | /*****************************************************************************/
/* This is the program skeleton for homework 2 in CSE167x by Ravi Ramamoorthi */
/* Extends HW 1 to deal with shading, more transforms and multiple objects */
/*****************************************************************************/... | C++ | CSE167X/hw2-windows_VS2012/hw2-windows/display.cpp | wessamfathi/GFX | gpl-3.0 | 3,935 | 140 | codeparrot/github-code |
e3bcc1209143f8843f6b3572ddcc8395f77fee0b0932978ca95da1d54845ef38 | // Copyright (c) Clickberry, Inc. All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE Version 3. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using RestSharp;
using RestSharp.Serializers;
namespace Wr... | C# | Source/Common/Wrappers/RestRequestWrapper.cs | clickberry/video-portal | gpl-3.0 | 5,071 | 181 | codeparrot/github-code |
5d8f3e4415d761407ac54721843717c55330d88c1dd8fc31d0dee42f2b21cd62 | use strict;
use vars qw($VERSION %IRSSI);
use Irssi qw(signal_add_last settings_add_bool settings_add_str
settings_get_bool settings_get_str);
$VERSION = '1.00';
%IRSSI = (
authors => 'Kafan Tsumare',
contact => 'github.com/tsumare',
name => 'CIDR Tabcomplete',
descripti... | Perl | cidrtab.pl | tsumare/irssiscripts | gpl-3.0 | 2,650 | 117 | codeparrot/github-code |
3e900f4b7a1d727be27cba524dc5ffaed3bf0320a844225f1cfba94eb7b80eb3 | #include "VRSprite.h"
#include "core/tools/VRText.h"
#include "core/objects/material/VRMaterial.h"
#include "core/setup/VRSetupManager.h"
#include "core/setup/VRSetup.h"
#include "addons/CEF/CEF.h"
#include <OpenSG/OSGNameAttachment.h>
#include <OpenSG/OSGSimpleGeometry.h>
#include <sstream>
OSG_BEGIN_NAMESPACE;
usi... | C++ | src/core/objects/geometry/VRSprite.cpp | infobeisel/polyvr | gpl-3.0 | 1,828 | 76 | codeparrot/github-code |
cf234537ced1b46fa53b114df3624fde479b20c1c213d2178494e393d6125f0b | <?php
/*********************************************************************************
* Zurmo is a customer relationship management program developed by
* Zurmo, Inc. Copyright (C) 2012 Zurmo Inc.
*
* Zurmo is free software; you can redistribute it and/or modify it under
* the terms of t... | PHP | app/protected/modules/activities/views/LatestActivitiesForPortletView.php | deep9/zurmo | gpl-3.0 | 15,120 | 327 | codeparrot/github-code |
3534911dbee3b9331273225254aee644a79a4341fdea68389688585b063be6b9 | /* div.toolbar-tainer contains the div.toolbar-header and div.toolbar.
* div.toolbar contains all of the div.setting-tainers.
* div.toolbar contains the jQuery data.
*/
var PEE = PEE || {};
PEE.toolbar = (function ($, window, undefined) {
var toolbarStack = [];
// toolbar builder
return function toolb... | JavaScript | js/toolbar.js | cgrabowski/webgl-particle-effect-editor | gpl-3.0 | 5,990 | 176 | codeparrot/github-code |
25b803fd3f71a63abcf3ddb23f7eb1f82483043a4924d51fa03edb7e6d4f9124 | // version: 2017-01-02
/**
* o--------------------------------------------------------------------------------o
* | This file is part of the RGraph package - you can learn more at: |
* | |
* | ... | JavaScript | webpage/rgraph/libraries/RGraph.common.sheets.js | jeroenst/Casaan | gpl-3.0 | 10,900 | 353 | codeparrot/github-code |
2428e5200806a99c28cae04f4b72022f3f14f8f1fb183c384a485d9dae07bf0c | var lineno;
var prodLine = 0;
var prodLine1 = 0;
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[... | JavaScript | Web/admin/js/menu_option.js | thepetronics/PetroFDS | gpl-3.0 | 5,946 | 211 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.