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 |
|---|---|---|---|---|---|---|---|---|
977e6b8a462d88a1b9a5a595cfc3b1dcffad079d771e22b4ae2fafefff2b4b15 | from datetime import *
from Tweetstream import *
from UserAnalyser import *
from TimeAnalyser import *
import math
import sys
import pickle
#Frequency over the common
def load_list(filein):
d = dict()
for l in filein:
l = eval(l)
d[l[0]] = l[1]
return d
if __name__ == "__main__":
follow = load_list(open(sys.... | Python | gen_user_followers.py | agdavis/contextual_features | gpl-2.0 | 1,139 | 45 | codeparrot/github-code |
8ac475c7c9b0fd157ee17084deec32efb9dcfe5a454f6f1b0b500240573571ae | // Copyright (c) 2012- PPSSPP Project.
// 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.0 or later versions.
// This program is distributed in the hope that it will be useful,
// b... | C | Core/FileSystems/DirectoryFileSystem.h | glaubitz/ppsspp-debian | gpl-2.0 | 3,011 | 98 | codeparrot/github-code |
aa1f6e0b04d45b985257d59b46de70066f1a6eff7c15693d7be562da00c62445 | /**
* MaNGOS is a full featured server for World of Warcraft, supporting
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
*
* Copyright (C) 2005-2022 MaNGOS <https://getmangos.eu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publ... | C | src/game/WorldHandlers/AccountMgr.h | mangoszero/server | gpl-2.0 | 2,219 | 67 | codeparrot/github-code |
dd95f6526a41764afe37effdbb366f05296657912dfd048a16d59d4a9d44b446 | var path = require('path');
var ndir = require('ndir');
var express = require('express');
var MongoStore = require('connect-mongo')(express);
var ejs = require('ejs');
var routes = require('./routes');
var config = require('./config').config;
var adminFilter = require('./filter/adminFilter');
var businessFilter... | JavaScript | wanzi/app.js | victzero/wanzi | gpl-2.0 | 2,438 | 95 | codeparrot/github-code |
4e06ba24ed0386dd35da5e04da6e2b7b48f6bf69a849d4152d7873df69760cba |
#include "xineCommon.h"
#include "xineLib.h"
namespace PluginXine
{
static eKeys KeyMap[] =
{
kNone,
kUp,
kDown,
kMenu,
kOk,
kBack,
kLeft,
kRight,
kRed,
kGreen,
kYellow,
kBlue,
k0, k1, k2, k3, k4, k5, k6, k7, k8, k9,
kPlay,
kPause,
kStop,
k... | C | xineRemote.c | mhop/vdr-plugin-xine | gpl-2.0 | 7,133 | 282 | codeparrot/github-code |
3fc6b38d38ccceb8dfbadeca06eabe466be32feccf2561e08efcac9233942691 | <?php
/* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.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 Sof... | PHP | htdocs/cactioncomm.class.php | philazerty/dolibarr | gpl-2.0 | 4,684 | 173 | codeparrot/github-code |
4fee2fb6e56613e9776cce8e72df23f5691e81e635c2752caefbe44e5ccbda21 | package com.github.ivanmarban.movies;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
public class MovieRestController {
@Autowired
private MovieRepository repo;
@RequestMapping(value = ... | Java | src/main/java/com/github/ivanmarban/movies/MovieRestController.java | ivanmarban/spring-boot-movies-restful | gpl-2.0 | 1,466 | 47 | codeparrot/github-code |
865bec2d77a7e9ccdd342535c55462c6d6390e01d1e79574ed0f4bb318490264 | #include "convection.h"
#include "sem.h"
using namespace mnl;
using namespace std;
deformedConvectionEvaluator::deformedConvectionEvaluator(const basics::matrixStack& G,
const basics::Matrix& D,
const basics::Vector& weight,
const basics::Field2<basics::Matrix>& u,
basics::Matrix& buffer,
basics::... | C++ | bm/convection.cpp | akva2/benard-marangoni | gpl-2.0 | 6,649 | 195 | codeparrot/github-code |
3c6b78a1dafabab8936ac5c0e87600b7f6961dc0152e5e849e9f51a657bc3fb1 |
#include "mv_sas.h"
static struct scsi_transport_template *mvs_stt;
static const struct mvs_chip_info mvs_chips[] = {
[chip_6320] = { 1, 2, 0x400, 17, 16, 9, &mvs_64xx_dispatch, },
[chip_6440] = { 1, 4, 0x400, 17, 16, 9, &mvs_64xx_dispatch, },
[chip_6485] = { 1, 8, 0x800, 33, 32, 10, &mvs_64xx_dispatch, },
[c... | C | drivers/scsi/mvsas/mv_init.c | leemgs/OptimusOneKernel-KandroidCommunity | gpl-2.0 | 16,623 | 682 | codeparrot/github-code |
959ad3a5d9c240b7262ee75cb1714e5297c5d587c3956420706d03af7b4265a4 | <?php
/**
*
* BoldR Lite WordPress Theme by Iceable Themes | http://www.iceablethemes.com
*
* Copyright 2013-2014 Mathieu Sarrasin - Iceable Media
*
* Theme's Function
*
*/
/*
* Set default $content_width
*/
if ( ! isset( $content_width ) )
$content_width = 590;
/* Adjust $content_width depending on the pa... | PHP | wp-content/themes/boldr-lite/functions.php | delfintrinidadIV/firstproject | gpl-2.0 | 11,779 | 393 | codeparrot/github-code |
699d33d02e26007134e772a5f7a4084bdcc4033ed559e9f93b6ee797f12ce939 | <?php
namespace FluidTYPO3\Vhs\ViewHelpers\Math;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FluidTYPO3\Vhs\Traits\ArrayConsumingViewHelperTrait;... | PHP | typo3conf/ext/vhs/Classes/ViewHelpers/Math/AbstractMultipleMathViewHelper.php | ahmedRguei/job | gpl-2.0 | 2,206 | 74 | codeparrot/github-code |
f7940b4a3c0d8f9fd8fe87412d2bbca2cc1c3aa7e30cb5b85a1807eeff7109fd | var events = {};
function showEvent(e) {
eid = e.getAttribute('data-event-id');
fid = e.getAttribute('data-frame-id');
var url = '?view=event&eid='+eid+'&fid='+fid;
url += filterQuery;
window.location.href = url;
//video element is blocking video elements elsewhere in chrome possible interaction with mous... | JavaScript | web/skins/classic/views/js/timeline.js | Simpler1/ZoneMinder | gpl-2.0 | 6,613 | 208 | codeparrot/github-code |
f37379b479e5a9eaab38b9f1dca156a381012e6ffcd547ac3606efc00981d599 | <?php
/**
* @package Advanced Module Manager
* @version 4.4.6
*
* @author Peter van Westen <peter@nonumber.nl>
* @link http://www.nonumber.nl
* @copyright Copyright © 2012 NoNumber All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*... | PHP | administrator/components/com_advancedmodules/views/select/view.html.php | lau-ibarra/ETISIGChacoJoomla | gpl-2.0 | 1,716 | 75 | codeparrot/github-code |
b201b76ea5b4743ab76cd3d934a83396d96511f3e6b1a06949aca28f6b8263c0 | /* wmgeneral miscellaneous functions
*
* from dock.c - built-in Dock module for WindowMaker window manager
*
* Copyright (c) 1997 Alfredo K. Kojima
*
* 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 Sof... | C | wmgeneral/misc.c | d-torrance/wmppp.app | gpl-2.0 | 3,763 | 172 | codeparrot/github-code |
c52b6a9241aeca4d5de1b59ccfe6d088f59782b65a7b832f422a4bddf798ba67 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Opensips_form{
function __construct() {
$this->CI = & get_instance();
}
function get_opensips_form_fields() {
$form['forms'] = array(base_url() . 'opensips/opensips_save/',array("id"=>"opensips_fo... | PHP | web_interface/astpp/application/modules/opensips/libraries/opensips_form.php | mayank19882001/ASTPP | gpl-2.0 | 11,170 | 147 | codeparrot/github-code |
79329e75c087f49a5098c0ef747605badc8fac1ab57f90e6be698730e8db62eb | #include <QString>
#include <QtGlobal>
#include <QFileInfo>
#include <QtXml>
#include "meshmodel.h"
#include "meshlabdocumentxml.h"
#include <wrap/qt/shot_qt.h>
bool MeshDocumentToXMLFile(MeshDocument &md, QString filename, bool onlyVisibleLayers)
{
md.setFileName(filename);
QFileInfo fi(filename);
QDir tmpDir =... | C++ | src/common/meshlabdocumentxml.cpp | guerrerocarlos/meshlab | gpl-2.0 | 5,491 | 194 | codeparrot/github-code |
419795f52955bb263f8a8a651d82080dc05e4af207a927f69a201780dac88a28 | /*
* NETLINK Generic Netlink Family
*
* Authors: Jamal Hadi Salim
* Thomas Graf <tgraf@suug.ch>
* Johannes Berg <johannes@sipsolutions.net>
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/socket.h>
#inc... | C | net/netlink/genetlink.c | Alucard24/Dorimanx-SG2-I9100-Kernel | gpl-2.0 | 22,938 | 989 | codeparrot/github-code |
9a3dcc8b2932adce046bdeb4258c86d2b2ee8e42c7624ef67d53ff224deffebe | /*
* 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/game/PlayerDump.cpp | kicho/Ebon-Hold-Converted | gpl-2.0 | 24,000 | 697 | codeparrot/github-code |
35adf41ab698f999fdd06ec94213611e7a9b3b1388b2d7f7a800c3d90a3b8d93 |
#ifndef _LINUX_NTFS_COLLATE_H
#define _LINUX_NTFS_COLLATE_H
#include "types.h"
#include "volume.h"
static inline bool ntfs_is_collation_rule_supported(COLLATION_RULE cr) {
int i;
/*
* FIXME: At the moment we only support COLLATION_BINARY and
* COLLATION_NTOFS_ULONG, so we return false for everything else fo... | C | kernel/fs/ntfs/collate.h | luckasfb/OT_903D-kernel-2.6.35.7 | gpl-2.0 | 734 | 31 | codeparrot/github-code |
5ea363c5eca8ce0a4dd88e3ad12b5f373362ed7370154ae044aedb7ad39ae7f8 | <?php
/*-----------------------------------------------------------------------------------
Plugin Name: BYT Company Address
-----------------------------------------------------------------------------------*/
// Add function to widgets_init that'll load our widget.
add_action( 'widgets_init', 'byt_address_widge... | PHP | wp-content/themes/BookYourTravel/includes/plugins/widgets/widget-address.php | maskcodex/xecuatoi | gpl-2.0 | 5,774 | 137 | codeparrot/github-code |
55c1737866e6bb68d13c366b6ec5011708e0473038d2058daccd6b4b9ad6ca82 | //===-- Function.cpp - Implement the Global object classes ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | llvmCore/lib/VMCore/Function.cpp | bathtub/llvm-gcc | gpl-2.0 | 13,533 | 410 | codeparrot/github-code |
bde68a2e93f024368629726b665f81faa1ec396213d2d81c20763bf8cf5ae260 | // Catch Flames Custom Scripts
jQuery(document).ready(function() {
/* Waypoint */
if ( jQuery.isFunction( jQuery.fn.waypoint ) ) {
var waypointheader = new Waypoint({
element: document.getElementById('page'),
handler: function(direction) {
if( direction == 'down' ) {
jQuery('#header-top').addClass(... | JavaScript | wp-content/themes/catch-flames/js/catchflames-custom.js | ilke-zilci/newcomers-wp | gpl-2.0 | 1,623 | 72 | codeparrot/github-code |
c4a1ab33ebe25295f56ef3bcb740a4231c422c9780f8a8408738f0b57b761a3f | #include "TCS3200.h"
#include "HMC.h"
#define tl0 0x00
#define th0 0xB8 //Timer0
void ColorInt()
{
AUXR&= 0x00;
TMOD = 0xE0;
AUXR = 0x14; //T2Ϊ1Tģʽ, ²¢Æô¶¯¶¨Ê±Æ÷2 page 470
AUXR |= 0x01;
}
unsigned int CheckRed()
{
unsigned int Red;
TL0= tl0;
TH0= th0;
TH1= 0;
TL1= 0;
TCS_S2= 0;
TCS_S... | C | TCS3200.c | CCluv/CarryMan_STC15 | gpl-2.0 | 1,404 | 72 | codeparrot/github-code |
b18fe31f84b1d9750dac2e02955c11537870b5d36bbf430e3c7b0f38eed1eb52 | // $Id: text.cpp 1016 2004-05-07 00:20:29Z rmcruz $
//
// SuperTux
// Copyright (C) 2004 Tobias Glaesser <tobi.web@gmx.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either ver... | C++ | src/text.cpp | jnetterf/supertux-bb10 | gpl-2.0 | 9,452 | 375 | codeparrot/github-code |
e4eb5a0177f75bb885b463682b7935368a08f0970afc97cefece90827b498a35 | /* $Id: GuestDnDTargetImpl.h $ */
/** @file
* VBox Console COM Class implementation - Guest drag'n drop target.
*/
/*
* Copyright (C) 2014-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can r... | C | src/VBox/Main/include/GuestDnDTargetImpl.h | miguelinux/vbox | gpl-2.0 | 4,038 | 110 | codeparrot/github-code |
c57ec0e414dfbb2b310412d49cb0a1b4d35b71b3b1879f0eb0ffb82b4ba9b81e | #include <GsTLAppli/actions/property_group_actions.h>
#include <GsTLAppli/actions/defines.h>
#include <GsTLAppli/utils/string_manipulation.h>
#include <GsTLAppli/utils/error_messages_handler.h>
#include <GsTLAppli/appli/manager_repository.h>
#include <GsTLAppli/appli/project.h>
#include <GsTLAppli/grid/grid_model... | C++ | GsTLAppli/actions/property_group_actions.cpp | fnavarrov/SGeMS | gpl-2.0 | 8,054 | 287 | codeparrot/github-code |
8fa5858b90bf4d037f33c128239a644c157ae86b81e48e4e9bcfbd71beaad119 | // jshint ignore: start
/* eslint-disable */
/**
* WordPress dependencies
*/
const { __ } = wp.i18n;
const { Component, createRef, useMemo, Fragment } = wp.element;
const {
ToggleControl,
withSpokenMessages,
} = wp.components;
const { LEFT, RIGHT, UP, DOWN, BACKSPACE, ENTER, ESCAPE } = wp.keycodes;
const { getRect... | JavaScript | src/components/inline.js | semperfiwebdesign/all-in-one-seo-pack | gpl-2.0 | 9,828 | 355 | codeparrot/github-code |
3dc9fe8480ff603117dd9097264d197a058731aab93cdd9074b9b80dc06d442c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CL/cl.h>
unsigned char *read_buffer(char *file_name, size_t *size_ptr)
{
FILE *f;
unsigned char *buf;
size_t size;
/* Open file */
f = fopen(file_name, "rb");
if (!f)
return NULL;
/* ... | C | test/math/asin_float/asin_float_src.c | xianggong/m2c_unit_test | gpl-2.0 | 9,583 | 305 | codeparrot/github-code |
6ee853bce3c1753581d100a33d8ecb0137c01d7746049d02e35aefa31078601d | /*
JPC: An x86 PC Hardware Emulator for a pure Java Virtual Machine
Copyright (C) 2012-2013 Ian Preston
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 progra... | Java | src/main/java/com/github/smeny/jpc/emulator/execution/opcodes/pm/shrd_Ed_Gd_Ib_mem.java | smeny/JPC | gpl-2.0 | 2,407 | 77 | codeparrot/github-code |
5546e7b0efa8607d98af141f3d21349bf286a61790080844664ed1676487cdac | package dbfit.environment;
import dbfit.annotations.DatabaseEnvironment;
import dbfit.api.AbstractDbEnvironment;
import dbfit.util.DbParameterAccessor;
import dbfit.util.DbParameterAccessorsMapBuilder;
import dbfit.util.Direction;
import static dbfit.util.Direction.*;
import static dbfit.util.LangUtils.enquoteAndJoin;... | Java | dbfit-java/sqlserver/src/main/java/dbfit/environment/SqlServerEnvironment.java | dbfit/dbfit | gpl-2.0 | 10,073 | 249 | codeparrot/github-code |
368fe0a5499bcf8dd1671d22c49dac55afd2001d9aea1e6afc88c20cb0fb192a | /*
* Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
* All rights reserved
* www.brocade.com
*
* Linux driver for Brocade Fibre Channel Host Bus Adapter.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License (GPL) Version 2 a... | C | drivers/scsi/bfa/bfa_hw_cb.c | dduval/kernel-rhel5 | gpl-2.0 | 3,907 | 156 | codeparrot/github-code |
3aa73e4e5b499b0c110bd6e33f0322aa1297502c2c33e5028a75587ea2559a47 | /*
* viunix.c
*
* $Id$
*
* OpenLink Virtuoso VDBMS Server main
*
* This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
* project.
*
* Copyright (C) 1998-2012 OpenLink Software
*
* This project is free software; you can redistribute it and/or modify it
* under the terms of th... | C | binsrc/virtuoso/viunix.c | trueg/virtuoso-opensource | gpl-2.0 | 18,338 | 818 | codeparrot/github-code |
49c77f1beb46a53b89e77b94f18d8da75d0422be731cbf4924c3b1f7ee8f36b9 | /*
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | Java | src/java.base/share/classes/sun/security/tools/keytool/Resources_ja.java | md-5/jdk10 | gpl-2.0 | 45,912 | 487 | codeparrot/github-code |
d4a906edbb60350e8a76858379e259b93ea4e6f384a28a112c555139177e0e05 | """
core/api/serializers.py is the module for core model api data serializers
"""
#import core django module
from django.contrib.auth.models import User, Permission
#import external modules
from rest_framework import serializers
#import project modules
from core.models import (Product, ProductCategory, UnitOfMea... | Python | LMIS/core/api/serializers.py | eHealthAfrica/LMIS | gpl-2.0 | 3,856 | 169 | codeparrot/github-code |
fd9d56f4a793f4341a1a17bc6f8a42bacd29449f686508bd8175bd920e5b1fa0 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "defs.h"
#include "protos.h"
#include "globals.h"
FILE * fpgn;
char * pgn;
char * w_pgn;
char * line;
int max_pgn;
char * pos_body;
char * pv;
char fen[64];
char * labels[256];
char * values[256];
int pos_label;
int raw;
char * ... | C | LCEngine/irina/pgn.c | lukasmonk/lucaschess | gpl-2.0 | 13,996 | 604 | codeparrot/github-code |
f7a1364d34b40dc7accb1d6c2db0651b707be0c52ebd8b93141e5e8b528f1d9d | /**
* @file md5.h
* A simple class for MD5 calculation
*
* @author Ben Gardner
* @license GPL v2+
*/
#ifndef MD5_H_INCLUDED
#define MD5_H_INCLUDED
#include "base_types.h"
class MD5
{
public:
MD5();
~MD5() { }
void Init();
void Update(const void *data, UINT32 len);
void Final(char digest[33]);
... | C | src/md5.h | thomasthorsen/toks | gpl-2.0 | 680 | 40 | codeparrot/github-code |
f0988c647b7789a61988d17111f8c610066f7b287b8e17c4cedee989fff6d822 | package com.charlesdream.office.word.enums;
import com.charlesdream.office.BaseEnum;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* Specifies how text is laid out in the layout mode for the current document.
* <p>
*
* @author Charles Cui on 3/4/16.
* @since 1.0
*/
public enum W... | Java | src/main/java/com/charlesdream/office/word/enums/WdLayoutMode.java | Lotusun/OfficeHelper | gpl-2.0 | 2,574 | 105 | codeparrot/github-code |
0147574385f4e4164971936876f91d87264f19f34358afcb859d4b055228e035 | using System;
using System.Collections.Specialized;
using System.Drawing;
using System.Text.RegularExpressions;
using System.Xml;
namespace Wilco.SyntaxHighlighting
{
/// <summary>
/// Represents an Xml scanner.
/// </summary>
public class XmlScanner : ScannerBase
{
private Xml... | C# | Source/Wilco.SyntaxHighlighting/Engine/Scanner/Implementation/XmlScanner.cs | Verlic/BlueMoon | gpl-2.0 | 26,019 | 551 | codeparrot/github-code |
52d46f2373a6d5bd249f4c384bac3448d269463081cfa47111de7bcb26e9784a | /* Copyright (c) 2012-2013, The Linux Foundation. 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 version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | C | drivers/video/msm/mdss/mdss_mdp_overlay.c | g3tsum/kernel_msm8974 | gpl-2.0 | 60,407 | 2,370 | codeparrot/github-code |
af8c073c103fe1260446d9e095aca2501827ce7eef7aa380821509d83d0b9fa4 | package com.netease.xmpp.websocket.handler;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.channel.ChannelFuture;
import org.jboss.netty.channel.ChannelFutureListener;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.... | Java | src/java/com/netease/xmpp/websocket/handler/NettyWebSocketChannelHandler.java | onlychoice/ws-xmpp-proxy | gpl-2.0 | 12,857 | 294 | codeparrot/github-code |
5a9da131db5d04451718501fec8df29f5e58c4a1885b05532967b09a4c0945c3 | <?php
/**
* DP Posts Widget
*
* Display posts in various ways you'd like.
*
* @package deTube
* @subpackage Widgets
* @since deTube 1.0
*/
class DP_Widget_Posts extends WP_Widget {
function __construct() {
$widget_ops = array('classname' => 'widget-posts', 'description' => __( "Display posts in various wa... | PHP | wp-content/themes/yoo_nano2_wp/inc/widget-posts.php | bradryan13/MLS | gpl-2.0 | 7,808 | 207 | codeparrot/github-code |
923124e6757c21356452b7e2edac19350024320b9516bf586ecff769a79b4573 | /*****************************************************************************
* Tuner sample code
*
* History:
* Date Athor Version Reason
* ============ ============= ========= =================
* 1.Apr.29.2010 Version1.0
*****************************************************************************/
//#include "Board... | C | drivers/amlogic/dvb_tv/avl6211/AV2011/ExtAV2011.c | EPDCenter/android_kernel_amlogic_s805_3go_aplay2 | gpl-2.0 | 13,437 | 463 | codeparrot/github-code |
c15f2488f18e6071748745ec9881a04d7c58af4cbf4399db03eefea5810f1025 | #include "operators.h"
#define ROI_SIZE (100)
Operator::Operator(cvb::CvID id):id_(id) {
prev_label_ = cur_label_ = BACKGROUND;
action_angle_ = -1.0;
}
void Operator::Process(const cv::Mat &frame) {
ac_.ClassifyFrame(frame, &cur_label_);
if ((cur_label_... | C++ | src/detection/operators.cpp | elialshan/mav_gesture_control | gpl-2.0 | 4,383 | 115 | codeparrot/github-code |
91fd9ce1f601f9cbacbff4cb2dc059637fa59d321a6d245497ed471d8a9c6fbd | /*
* Created on Dec 7, 2004
*
* This is the object given to the web-form.
* It's a mapping between the report as seen from the JSP-code to the
* way it's used in the service and domain layers.
*/
package no.abmu.abmstatistikk.annualstatistic.service;
import java.beans.XMLEncoder;
import java.io.OutputStream;
... | Java | old-and-depricated/annualstatistic/src/main/java/no/abmu/abmstatistikk/annualstatistic/service/SchemaReport.java | NationalLibraryOfNorway/Bibliotekstatistikk | gpl-2.0 | 10,238 | 279 | codeparrot/github-code |
2bff45b55fdc5d1ed0cc1d4c13bdea7ca296d0dab070f64eb82fc79ddbb41891 | /* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1999 Manish Singh <yosh@gimp.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at y... | C | src/gimp-2.6.12/modules/display-filter-high-contrast.c | jdburton/gimp-osx | gpl-2.0 | 8,178 | 269 | codeparrot/github-code |
274116157aa3a3d13ba0ba486be236b49c6184cec0d62253f72d8288eb1bdf2a | /*
* Copyright (C) 2012, Samsung Electronics Co. Ltd. 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... | C | drivers/sensorhub/ssp_firmware.c | jxxhwy/Thunder-Kenel-JB-N719 | gpl-2.0 | 6,988 | 306 | codeparrot/github-code |
9d758fcd2b46f72fd3b9c018e9e59ae587a31e12aa001789e142009629a5df4a | <?php
/**
* Created by PhpStorm.
* User: Paul
* Date: 22/02/2015
* Time: 22:15
*/
namespace MyCrm\Modules\LibertaVisualBuilder\Lib;
class FormsXmlTools
{
public function testAndCreateXmlDef($module_name, $form_name)
{
$form_name = str_replace(".html", "", $form_name);
if (!file_exists($... | PHP | src/MyCrm/Modules/LibertaVisualBuilder/Lib/FormsXmlTools.php | paulcoiffier/Mobissime-Liberta | gpl-2.0 | 9,685 | 252 | codeparrot/github-code |
c83b8f19d9f682bd05387d2e7ddabc103516acfd8f2ee85069ce44ec539ff05c | <?php
/**
* @package mail_edit.php
* @author John Doe <john.doe@example.com>
* @since 2009-02-18
* @version 2012-10-23
*/
/*
2/18/09 initial release
2/28/09 added email addr validation
7/19/10 title handling corrected
7/28/10 Added inclusion of startup.inc.php for checking of network status and setting of file nam... | PHP | mail_edit.php | khoegenauer/tickets-cad | gpl-2.0 | 10,577 | 260 | codeparrot/github-code |
9ecc52d722b3861a251b36f2a73c9407ac445e60ae94b7fdeabf99b6e23bb06f | /*************************************************************************************
Extended WPF Toolkit
Copyright (C) 2007-2013 Nequeo Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
For... | C# | Source/Components/Wpf/Nequeo.Wpf.Toolkit.Docker/Nequeo.Wpf.Toolkit.Docker/Controls/LayoutAutoHideWindowControl.cs | drazenzadravec/nequeo | gpl-2.0 | 21,393 | 552 | codeparrot/github-code |
75070567ad5f3b798c76726abec12541cc43a4abd9abfd31ba79de46640b06c9 | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2013 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright noti... | C++ | zsim-nvmain/pin_kit/source/tools/ManualExamples/fork_jit_tool.cpp | cyjseagull/SHMA | gpl-2.0 | 3,436 | 118 | codeparrot/github-code |
7dfa19068781d3d8212cbcb6eafcd89441448a2847a818f8c46a7f93b9d33b96 | //
// lat - AttributeEditorWidget.cs
// Author: Loren Bandiera
// Copyright 2006 MMG Security, Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; Version 2
//
// This program is distri... | C# | lat/AttributeEditorWidget.cs | MrJoe/lat | gpl-2.0 | 16,363 | 614 | codeparrot/github-code |
811c3bf8cabb0a590afcf09038b02a08ccf83cc55c1ed349390efd42395545dc | <?php
?>
<div id="page-wrapper">
<div id="page">
<div id="header"><div class="container section header clearfix">
<?php if ($logo): ?>
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo" class="logo">
<img src="<?php print $logo; ... | PHP | sites/all/themes/jackson/templates/page--blog.tpl.php | NathanSF/drupal_filmfest | gpl-2.0 | 8,182 | 199 | codeparrot/github-code |
86a32ba54e68de7db899d6a923eb2c6556373fb954502cd7f2bd54feb79bcb3d | /* ***** BEGIN LICENSE BLOCK *****
* This file is part of Natron <http://www.natron.fr/>,
* Copyright (C) 2013-2017 INRIA and Alexandre Gauthier-Foichat
*
* Natron 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 Fou... | C | Gui/AnimationModuleTreeView.h | kcotugno/Natron | gpl-2.0 | 8,129 | 254 | codeparrot/github-code |
c896463032b4cc7909b6d5c0bce005a97f677267ba89ab1ebe7161db9d031996 | /*****************************************************************************\
* test7.3.prog.c - Test of "user managed" IO with the slurm_step_launch()
* API function (required for "poe" launch on IBM
* AIX systems).
*
* Usage: test7.3.prog [min_nodes] [max_nodes] [tasks]
*... | C | testsuite/expect/test7.3.prog.c | grondo/slurm | gpl-2.0 | 6,359 | 228 | codeparrot/github-code |
d8970905f0ccc1aa2f9a04c0edbb129111c4df998d89830e2b7c02e04168cec9 | /*
* linux/kernel/time/timekeeping.c
*
* Kernel timekeeping code and accessor functions
*
* This code was moved from linux/kernel/timer.c.
* Please see that file for copyright and history logs.
*
*/
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/percpu.h>
#include <linux/init.h>
#in... | C | kernel/time/timekeeping.c | alebcay/android_kernel_oneplus_msm8974 | gpl-2.0 | 40,682 | 1,492 | codeparrot/github-code |
e3744644e462b562af48e2ea27a66eec180cbc146f4bbdb1effaa536eaf06425 | /*
* kernel/sched/debug.c
*
* Print the CFS rbtree
*
* Copyright(C) 2007, Red Hat, Inc., Ingo Molnar
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/pro... | C | kernel/sched/debug.c | daeiron/LG_G3_Kernel | gpl-2.0 | 12,811 | 536 | codeparrot/github-code |
fb6be32cee36c39cfb01eadbbaadf36dd2f3fa9f5e5b5754ec56592ad0d5bc8d | <?php include("includes/head.inc.php"); ?>
<body>
<!-- Headwrap Include -->
<?php include("includes/masthead.inc.php"); ?>
<div id="mainwrap">
<!-- TopNav Include -->
<?php include("includes/topnav.inc.php"); ?>
<div id="main">
<!-- Breadcrumb Include -->
<?php include("includes/breadcrumb.inc.php"); ?>... | PHP | www/useradmin.php | cogini/rconfig | gpl-2.0 | 4,287 | 96 | codeparrot/github-code |
c2d663f4f2df554c0452a8529aefe2af860bd74eb3b6c91e9b7b5050ba3a420c | // Copyright 2013 Shaun Simpson shauns2029@gmail.com
package uk.co.immutablefix.wifireset;
import java.net.InetAddress;
import java.net.UnknownHostException;
import android.os.AsyncTask;
public class NetTask extends AsyncTask<String, Integer, String>
{
@Override
protected String doInBackground(String... par... | Java | src/uk/co/immutablefix/wifireset/NetTask.java | shaun2029/Wifi-Reset | gpl-2.0 | 628 | 31 | codeparrot/github-code |
acd0a8d09f9cc5bcf58815580feab55f0dccc93d8dd32cf756ef7ca3042eca01 | /**
* Express configuration
*/
'use strict';
import express from 'express';
import favicon from 'serve-favicon';
import morgan from 'morgan';
import compression from 'compression';
import bodyParser from 'body-parser';
import methodOverride from 'method-override';
import cookieParser from 'cookie-parser';
import er... | JavaScript | server/config/express.js | arkdelkaos/EECR | gpl-2.0 | 3,663 | 134 | codeparrot/github-code |
e673968444b8f1d2cdd6e8a8526622a2bf87e76007f016d3edbdb1112d2508b7 | package com.cheng.zenofdesignpatterns.patterns.state.liftstate;
/**
* 在电梯门开启的状态下能做什么事情
*/
public class OpenningState extends LiftState {
// 开启当然可以关闭了,我就想测试一下电梯门开关功能
@Override
public void close() {
// 状态修改
super.context.setLiftState(LiftContext.closeingState);
// 动作委托为CloseState来执行
super.context.getLiftSt... | Java | DesignPatternStudy/src/main/java/com/cheng/zenofdesignpatterns/patterns/state/liftstate/OpenningState.java | DIY-green/AndroidStudyDemo | gpl-2.0 | 553 | 35 | codeparrot/github-code |
b2629029a704dba75f1d7b6f9d2d51fde487ec86c771093c957d527c7f87c5f5 | #include "diffusion.hpp"
#include "support_classes.hpp"
template <int dim>
kappa_inv_class<dim, Eigen::MatrixXd> Diffusion<dim>::kappa_inv{};
template <int dim>
tau_func_class<dim> Diffusion<dim>::tau_func{};
template <int dim>
u_func_class<dim> Diffusion<dim>::u_func{};
template <int dim>
q_func_class<dim, dealii::Te... | C++ | elements/diffusion.cpp | samiiali/nargil | gpl-2.0 | 21,756 | 581 | codeparrot/github-code |
df752dfb8ce89492ee5aab3ffa84018906ca81b577445f53da266a9b7cd1d183 | /* Copyright (C) 1991-1999, 2000, 2001, 2003, 2004, 2005, 2006 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
Bugs can be reported to bug-glibc@prep.ai.mit.edu.
This program is free software; you can redistribute it and/or modify
it under th... | C | libgnu/strftime.c | mfisk/smacq | gpl-2.0 | 37,170 | 1,467 | codeparrot/github-code |
ffae13759f31a178851b654a4702fd7fc0e0598dce99e8c65eb689aed18c0157 | # -------------------------------------------------------------------------------------------------
# Rick, a Rust intercal compiler. Save your souls!
#
# Copyright (c) 2015-2021 Georg Brandl
#
# This program is free software; you can redistribute it and/or modify it under the terms of the
# GNU General Public License... | Python | test.py | birkenfeld/rick | gpl-2.0 | 4,893 | 127 | codeparrot/github-code |
8d5da583c7ba1cadf89cda6e5e6da337c5ce5d5778218c254b619bb8af35a0fc | """
Windows Process Control
winprocess.run launches a child process and returns the exit code.
Optionally, it can:
redirect stdin, stdout & stderr to files
run the command as another user
limit the process's running time
control the process window (location, size, window state, desktop)
Works on Windows NT, 20... | Python | jobmanager/winprocess.py | alexei-matveev/ccp1gui | gpl-2.0 | 7,039 | 194 | codeparrot/github-code |
93b3d77c036840111b7260f0bc4d27d7671f498dd48877e8bea0815dccd04181 | /*
* linux/drivers/mmc/pxa.c - PXA MMCI driver
*
* Copyright (C) 2003 Russell King, 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 version 2 as
* published by the Free Software Foundation.
*
* This hardware... | C | drivers/mmc/pxamci.c | hackndev/linux-hnd | gpl-2.0 | 14,166 | 621 | codeparrot/github-code |
deb0c8383029856627e7651acc403b88ee718bdf4b228db9d3d47ed0c34cea11 | #include "razer_daemon.h"
char *daemon_parameter_to_json(struct razer_parameter *parameter)
{
char *parameter_json = str_CreateEmpty();
parameter_json = str_CatFree(parameter_json,"{\n \"key\": \"");
parameter_json = str_CatFree(parameter_json,parameter->key);
parameter_json = str_CatFree(parameter_json,"\",\n");
... | C | daemon/razer_daemon_parameters.c | TheKiwi5000/razer_blackwidow_chroma_driver | gpl-2.0 | 20,697 | 702 | codeparrot/github-code |
db94beb01bad79d1f819fada722babc8aeb3d2caa470e3e91e4891f60561875e | <?php
/**
* @author Ilja Neumann <ineumann@owncloud.com>
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
* @author Thomas Heinisch <t.heinisch@bw-tech.de>
*
* @copyright Copyright (c) 2017, ownCloud GmbH
* @license GPL-2.0
*
* This program is free software; you can redistribute it and/or
* modify it under the... | PHP | lib/Hooks.php | owncloud/guests | gpl-2.0 | 2,844 | 141 | codeparrot/github-code |
8667cf821e0ca7cde1a5a0e14c02d989908d3f3d081d1e0d2e5e3dae391edcbd | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>7.9. Notification Escalations</title>
<link rel="stylesheet" href="../stylesheets/icinga-docs.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
<meta name="keywords" content="Supervision, Icing... | HTML | html/docs/en/escalations.html | Icinga/icinga-core | gpl-2.0 | 19,147 | 379 | codeparrot/github-code |
4aab8d4f6eee83967c6531b24b557d64480fdb56ba5268ed632018ad4f1a5602 | /*
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | Java | test/gc/TestVerifySilently.java | mohlerm/hotspot_cached_profiles | gpl-2.0 | 2,959 | 87 | codeparrot/github-code |
2ae3ea8664b21e781e1415faf0dab24e6f75ad1c464e183e5c2a118ad14d4df2 | /**
* $Id$
* @file rlm_ldap.h
* @brief LDAP authorization and authentication module headers.
*
* @note Do not rename to ldap.h. This causes configure checks to break
* in stupid ways, where the configure script will use the local ldap.h
* file, instead of the one from libldap.
*
* @author Arran Cudbard-Bell <... | C | src/modules/rlm_ldap/rlm_ldap.h | TheMysteriousX/freeradius-server | gpl-2.0 | 22,914 | 608 | codeparrot/github-code |
fdeb18ac20094640c96d02006c1c2ff12ee361a4f11b535701a6ed8af9568250 | /*
* The Fascinator - Portal
* Copyright (C) 2008-2011 University of Southern Queensland
*
* 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... | Java | src/main/java/com/googlecode/fascinator/portal/services/PortalManager.java | the-fascinator/fascinator-portal | gpl-2.0 | 1,896 | 66 | codeparrot/github-code |
d79d980ae1049d35963cf2c78a454959923c23ed81fb97d3a3a699aa4afd3500 | <?php
function showSearchEngine() {
global $srv, $stgs;
$output = "<?xml version=\"1.0\"?>";
$output .= "<OpenSearchDescription xmlns=\"http://a9.com/-/spec/opensearch/1.1/\">";
$output .= "<ShortName>".$stgs->getConf('sitename')."’s Search</ShortName>";
$output .= "<Description>";
$output .= $stgs->get... | PHP | modules/search/main.inc.php | FlaPer87/phanet | gpl-2.0 | 2,117 | 59 | codeparrot/github-code |
00e91e0dde890a301c8f686048ccf07955f29c12b15a51451ceb3fba258cc558 | #!/bin/bash
source experiment/run-library.sh
manifest="${PARAM_manifest:-conf/contperf/manifest.zip}"
inventory="${PARAM_inventory:-conf/contperf/inventory.ini}"
private_key="${PARAM_private_key:-conf/contperf/id_rsa_perf}"
registrations_per_docker_hosts=${PARAM_registrations_per_docker_hosts:-5}
registrations_itera... | Shell | experiment/full.sh | redhat-performance/satellite-performance | gpl-2.0 | 17,535 | 230 | codeparrot/github-code |
46fbe8b5f0229be56a9ac1ef6694253aba193405aa15140006801a5420afe0bb | <?php
/**
* @package HUBzero CMS
* @author Shawn Rice <zooley@purdue.edu>
* @copyright Copyright 2005-2009 by Purdue Research Foundation, West Lafayette, IN 47906
* @license http://www.gnu.org/licenses/gpl-2.0.html GPLv2
*
* Copyright 2005-2009 by Purdue Research Foundation, West Lafayette, IN 47906.
... | PHP | components/com_resources/models/element/list.php | pkdash/HubZeroCIWaterPortal | gpl-2.0 | 3,797 | 106 | codeparrot/github-code |
d7b9d3b3a03db827bd90b4d1ab4be9a7ea7ac3fe79cc9d2ce559d081ec582627 | /**
*
*/
package ca.lc.stimesheet.web.login.userdetails;
import java.util.ArrayList;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import ca.lc.stimesheet.model.User;
/**
* @author Marc-Andre Lacroix
*
*/
public class TimesheetUserDetails extends org.springframework.security.cor... | Java | src/main/java/ca/lc/stimesheet/web/login/userdetails/TimesheetUserDetails.java | malacroix/stimesheet | gpl-2.0 | 883 | 39 | codeparrot/github-code |
000db1e8f009f717123cc2d9db567a9fb0f5afd535d1f6f4bb1be63939bc9135 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RBEntryView</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Rhythmbox Development Reference Manual"... | HTML | doc/reference/html/RBEntryView.html | dardevelin/rhythmbox-shuffle | gpl-2.0 | 75,224 | 1,265 | codeparrot/github-code |
eb205abc5a3f6d8bec308dfdb068753f1489c36c27dbc01058e129d1c3ea23f3 | // license:BSD-3-Clause
// copyright-holders:Aaron Giles,Couriersud,Miodrag Milanovic
/***************************************************************************
delegate.h
Templates and classes to enable delegates for callbacks.
****************************************************************************
... | C | src/lib/util/delegate.h | sum2012/mame | gpl-2.0 | 21,153 | 594 | codeparrot/github-code |
a3883c4180fd2e4c6dbe757c5f8f055251dcd02b029671ac0fd9f756b572c3c3 | module.exports = async ({ client, configJS, Utils: { IsURL }, Constants: { Colors } }, msg, commandData) => {
const handleQuit = () => {
msg.reply({
embed: {
color: Colors.RED,
description: `You've exited the profile setup menu!`,
},
});
};
if (msg.suffix === "setup") {
let m = await msg.reply({... | JavaScript | Commands/PM/profile.js | GilbertGobbels/GAwesomeBot | gpl-2.0 | 6,225 | 172 | codeparrot/github-code |
45dbac65f2f05d8ae0cf0d6eb529763298c03879679f8b2beee8e1af10de4812 | /*
* gsf-command-context.c: Command context class
*
* Copyright (C) 2002-2006 Rodrigo Moya (rodrigo@gnome-db.org)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2.1 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
... | C | gsf/gsf-command-context.c | Distrotech/libgsf | gpl-2.0 | 7,607 | 277 | codeparrot/github-code |
06b772950328b0cd15e60d1b342b7ffcd20d02581c7b9b17283de0fec7c471a4 | <?php
/**
* Climbuddy API namespace
*
* @package CB\Api
*/
namespace CB\Api;
/**
* API layer controller
*
* @author Bojan Hribernik <bojan.hribernik@gmail.com>
* @version 1.0
* @package CB\Api
*/
class Layer extends AbstractController
{
/**
* Read layers
*
* @acces... | PHP | api/CB/Api/Layer.php | terloger/cb5 | gpl-2.0 | 5,995 | 216 | codeparrot/github-code |
748357c09593fdb1d7d0d957f569e810a9ec0792b7e2f63d540623441edc577c | # pylint: disable = C0301
from bs4 import BeautifulSoup
from urllib2 import urlopen
import pandas as pd
pos_idx_map = {
'qb': 2,
'rb': 3,
'wr': 4,
'te': 5,
}
def make_url(pos, wk):
ii = pos_idx_map[pos]
fstr = "http://fantasydata.com/nfl-stats/nfl-fantasy-football-stats.aspx?fs=1&stype=0&sn=1... | Python | htmls2csvs.py | yikelu/nfl_fantasy_data | gpl-2.0 | 2,265 | 87 | codeparrot/github-code |
54ba99cbfc95a955ee4d500fb8bc96279b4e93fbce971d5771e4b47ce4f0d540 | package edu.asu.spring.quadriga.dao.profile.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewor... | Java | Quadriga/src/main/java/edu/asu/spring/quadriga/dao/profile/impl/ProfileManagerDAO.java | diging/quadriga | gpl-2.0 | 6,447 | 184 | codeparrot/github-code |
361868d05872035310be4774279beb3e90c062e1181843235a0ee3add4e6173c | // =============================================================================
// Module to configure an ExpressJS web server
// =============================================================================
// Requires
// {
// "express": "4.13.3",
// "cookie-parser": "1.4.0",
// "morgan": "1.6.1",
// "bo... | JavaScript | modules/express-cfg.js | apycazo/nodes | gpl-2.0 | 971 | 31 | codeparrot/github-code |
448a93ba6445136bea869109def4aa36da8a6080ad128699a04a211527f30a80 | (function ($) {
/**
* Attaches double-click behavior to toggle full path of Krumo elements.
*/
Drupal.behaviors.devel = {
attach: function (context, settings) {
// Add hint to footnote
$('.krumo-footnote .krumo-call').once().before('<img style="vertical-align: middle;" title="Click to expand. Dou... | JavaScript | sites/default/files/js/js_-uAWVNNLs-CDqxUul18yVdZpeIHUZse1JmT6XcSAYNU.js | tapclicks/tapanalytics | gpl-2.0 | 15,031 | 470 | codeparrot/github-code |
eda6e91eede5be3de05d7c947b4dc9efb220b8f7ca2302d3ed84e444705c7cb5 | using System;
using MetaphysicsIndustries.Ligra.RenderItems;
using MetaphysicsIndustries.Solus.Commands;
namespace MetaphysicsIndustries.Ligra.Commands
{
public class CdCommand : Command
{
public static readonly CdCommand Value = new CdCommand();
public override string Name => "cd";
pu... | C# | Commands/CdCommand.cs | izrik/Ligra | gpl-2.0 | 2,200 | 67 | codeparrot/github-code |
c9968040f2ed11ef38af57133e74cf2ab5084e8ca0fe4dc1d5db6ecce70c158e | <?php
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
require_once(__DIR__."/../server/tools.php");
require_once(__DIR__."/../server/auth/Config.php");
require_once(__DIR__."/../server/auth/AuthManager.php");... | PHP | agility/public/pbmenu_finales_equipos.php | jonsito/AgilityContest | gpl-2.0 | 4,212 | 99 | codeparrot/github-code |
ae0d5ee01fe11a0d024754578ec5533bf56189d1397655f2ff06b2f9c6af4381 | /* SSA Jump Threading
Copyright (C) 2005-2016 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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, or (at your option)
any later versi... | C | gcc/tree-ssa-threadbackward.c | PrasadG193/gcc_gimple_fe | gpl-2.0 | 21,677 | 697 | codeparrot/github-code |
5ce8ea885a0a680578894120f4f411c4cd2c2948391a883f8077120a9dc3be02 | /**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | Java | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest08472.java | iammyr/Benchmark | gpl-2.0 | 2,918 | 76 | codeparrot/github-code |
c837d8ff2a314af513764f32105af7d1140398a70d86f52be68556e9c2cec3c2 | /*
File: TextServices.h
Contains: Text Services Manager Interfaces.
Version: Technology: System 8.2
Release: QuickTime 6.0.2
Copyright: (c) 1991-2001 by Apple Computer, Inc., all rights reserved.
Bugs?: For bug reports, consult the following page on
... | C | src/include/qt/TextServices.h | systembugtj/playasa | gpl-2.0 | 16,687 | 371 | codeparrot/github-code |
58c538f26f256c4d4fdcf1bb5f131f163bb0867f7a93a1ed40f8ed0209dd0111 | /* readable.c: check if a filename is a readable non-directory file.
Copyright 1993, 1995, 1996, 2008, 2011, 2012 Karl Berry.
Copyright 1998, 1999, 2000, 2001, 2005 Olaf Weber.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licen... | C | source/texk/kpathsea/readable.c | omasanori/luatex-mirror | gpl-2.0 | 4,383 | 141 | codeparrot/github-code |
8034058ff2a70d4518240077fb1803fb42f1a279dc2fa48d0c715630f4eb4205 | <!-- Email Scheduling Settings -->
<?php
$scheduling = $this -> get_option('scheduling');
$queuesendorder = $this -> get_option('queuesendorder');
$queuesendorderby = $this -> get_option('queuesendorderby');
?>
<input type="hidden" name="scheduling" value="Y" />
<table class="form-table">
<tbody>
... | PHP | wp-content/plugins/newsletters-lite/views/admin/metaboxes/settings-scheduling.php | shotgunmm/cloudband-dev | gpl-2.0 | 8,816 | 135 | codeparrot/github-code |
04f5475f0696482d246612ac2ccf96eb0fe5c2d170cde292790db6e1c044ac16 | /*
* Copyright (c) 2006 - 2010 LinogistiX GmbH
*
* www.linogistix.com
*
* Project myWMS-LOS
*/
package de.linogistix.los.inventory.query.dto;
import java.util.Date;
import de.linogistix.los.inventory.model.LOSOrderRequestState;
import de.linogistix.los.inventory.model.OrderReceipt;
import de.linogistix.los... | Java | server.app/los.inventory-ejb/src/de/linogistix/los/inventory/query/dto/OrderReceiptTO.java | Jacksson/mywms | gpl-2.0 | 1,492 | 76 | codeparrot/github-code |
098ab5e69de11a38f02444c7308d3f9e6dcfb840e07d9441ae95057e693e0847 | require_dependency 'api_exception'
# The Group class represents a group record in the database and thus a group
# in the ActiveRbac model. Groups are arranged in trees and have a title.
# Groups have an arbitrary number of roles and users assigned to them.
#
class Group < ApplicationRecord
has_many :groups_users, in... | Ruby | src/api/app/models/group.rb | kulmesa/open-build-service | gpl-2.0 | 4,742 | 158 | codeparrot/github-code |
d1d6ecd888b133bb22f6cb056d74fc26ae7262f6a19663b017b792e1d3d2608a | <?php
/***
Primary Functions
For the sake of organization, this file should only include
require statements for the various types of function files
that you are going to be using.
***/
// Enqueue Scripts & Stylesheets
require_once(dirname(__FILE__) . '/functions/queue-scripts.php');
// // Initialize Custom Post T... | PHP | wp-content/themes/codeforrva/functions.php | codeforrva/codeforrva | gpl-2.0 | 2,906 | 114 | codeparrot/github-code |
473a96c9f50b28258f3673eef06e7488eaad30cc17acf920a8873496dbaadf50 | /************************************************************************
$Id: rtbinit.h,v 1.2 2005/02/24 10:27:55 jonico Exp $
RTB - Team Framework: Framework for RealTime Battle robots to communicate efficiently in a team
Copyright (C) 2004 The RTB- Team Framework Group: http://rtb-team.sourceforge.n... | C | rtb-team-framework/rtbglobal/rtbinit.h | ezag/realtimebattle | gpl-2.0 | 3,567 | 88 | codeparrot/github-code |
a93b32416b511430c33de9ddafa01ae6335c44800ea92329f440ddf40bca799b | <?php
/**
* @package 2JToolBox
* @Copyright (C) 2011 2Joomla.net
* @ All rights reserved
* @ Joomla! is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: 1.0.10 $
**/
defined('_JEXEC') or die('Restricted access');
class TwojToolboxControllerAjax extends Tw... | PHP | components/com_twojtoolbox/controllers/ajax.raw.php | trungjc/caravancountry | gpl-2.0 | 8,723 | 286 | codeparrot/github-code |
4de0369563eae0dba4937f726b4eea2355979c9dc076f62472f6d5d1f552de73 | /* packet-ip.c
* Routines for IP and miscellaneous IP protocol packet disassembly
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* Wednesday, January 17, 2006
* Support for the CIPSO IPv4 option
* (http://sourceforge.net/docman/displ... | C | epan/dissectors/packet-ip.c | giuliano108/wireshark-rtpmon | gpl-2.0 | 98,088 | 2,582 | codeparrot/github-code |
c15d47a31f7d6662d1cea04b7b7a17d4e57f9b003327b135f1616ee42e824835 | /*
* IRIS -- Intelligent Roadway Information System
* Copyright (C) 2009-2015 Minnesota Department of Transportation
* Copyright (C) 2012 Iteris Inc.
* Copyright (C) 2014 AHMCT, University of California
* Copyright (C) 2015 SRF Consulting Group
*
* This program is free software; you can redistribute it and/o... | Java | src/us/mn/state/dot/tms/SystemAttrEnum.java | SRF-Consulting/NDOR-IRIS | gpl-2.0 | 14,208 | 480 | codeparrot/github-code |
1e056205493bfc99ae45c5b2b31facce4d3cd429dc83301aafde4986352516f2 | // Copyright (c) 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 CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
#define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
#imp... | C | external/chromium_org/chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.h | qtekfun/htcDesire820Kernel | gpl-2.0 | 3,088 | 123 | codeparrot/github-code |
806d48b5119f33a4d76c4ea7ef3b376d22f78208773d017a87d73bd38eb0c021 | var gulp = require("gulp"),
concat = require("gulp-concat"),
karma = require("karma").server,
mocha = require("gulp-mocha"),
nodemon = require("gulp-nodemon"),
notify = require("gulp-notify"),
size = require("gulp-filesize"),
sourcemaps = require("gulp-sourcemaps"),
uglify = require("gulp-uglify"),
typescript ... | JavaScript | gulpfile.js | litchi-io/litchi-awesome | gpl-2.0 | 2,767 | 122 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.