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 |
|---|---|---|---|---|---|---|---|---|
58cf3611dad0a3bd828fdc9f8d5ccaafa1c9479242315aac916ce345afe81c3d | /*
* Copyright (c) 2000, 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 ... | C++ | src/share/vm/c1/c1_LIRAssembler.cpp | gaoxiaojun/dync | gpl-2.0 | 23,698 | 861 | codeparrot/github-code |
f2f137cfe7a02204afb9b17ceeba29be7e4b2520a68050ee33a19e96732d6cbc | /*
* linux/include/linux/jbd2.h
*
* Written by Stephen C. Tweedie <sct@redhat.com>
*
* Copyright 1998-2000 Red Hat, Inc --- All Rights Reserved
*
* This file is part of the Linux kernel and is made available under
* the terms of the GNU General Public License, version 2, or at your
* option, any later version,... | C | include/linux/jbd2.h | athurg/linux_kernel | gpl-2.0 | 37,930 | 1,236 | codeparrot/github-code |
0c0d842acbcf0464665c51ee10274586a20ae17715878ab9a0645d79c9832456 | <?php
global $VISUAL_COMPOSER_EXTENSIONS;
?>
<div id="ts-settings-files" class="tab-content">
<div class="ts-vcsc-section-main">
<div class="ts-vcsc-section-title ts-vcsc-section-show"><i class="dashicons-download"></i>External Files Settings</div>
<div class="ts-vcsc-section-content">
<div class="ts-vcsc-noti... | PHP | wp-content/plugins/ts-visual-composer-extend/assets/ts_vcsc_settings_external.php | baochung26/happy-c | gpl-2.0 | 14,684 | 196 | codeparrot/github-code |
93a8e0b4372ff30fbc6402e41f09092f8f45ce34ef1fa22192659acb252a3ff0 | /**
* 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-2019 MaNGOS project <https://getmangos.eu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gen... | C | src/game/WorldHandlers/GridNotifiers.h | H0zen/M2-server | gpl-2.0 | 46,372 | 1,306 | codeparrot/github-code |
81341dd5d6dfd0a65de1ce98747e176e214e5159ce9e5e7ce6809835ce806006 | package com.app.labeli;
import com.app.labeli.member.Member;
import net.tools.*;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import an... | Java | src/com/app/labeli/FragmentConnection.java | asso-labeli/labeli-android-app | gpl-2.0 | 3,863 | 130 | codeparrot/github-code |
9247093ec4c1c5ceec59d759c60bd5e3ff44f07ead892f178bb15e57b3cad4bc | <?php
if (isset($_POST['_wpcf7_mail_sent'])) {
$expire=time()+60*60*24*30*2;
setcookie("surveySent2", "true", $expire, '/');
}
/*************
!!!!!!!IMPORTANT!!!!!!!!
If you change the styles then edit the stylesheet querystring here!
*************/
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... | PHP | wp-content/themes/aparatus/header.php | leeparsons/tpp | gpl-2.0 | 7,679 | 131 | codeparrot/github-code |
9d5be95897e88088b8c00d26226ffb9e3e3d393d0aa051c91f63b40baf953904 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
/// <summary>
/// An AND gate class to store the correct image and
/// calculate the appropriate output
/// </summary>
public class AndGate : Gate
{
/// <summary>
/// Constructor
/// ... | C# | Circuit Simulator/CircuitSimLib/GeneratedCode/AndGate.cs | Dominykasrr/Logic-Circuit-Sim | gpl-2.0 | 942 | 35 | codeparrot/github-code |
bc58f03868b6fc0f28c8423c9467ffe4c6232347c7cb8f130fd8711dc2518568 | import os
from collections import OrderedDict
from .sqldatabase import SqlDatabase
from .retrieve_core_info import retrieveCoreInfo
# Root class that all SQL table updaters derive from
class SqlTableUpdater():
def __init__(self, tableName, tableColumns=[], coreInfo={}):
self.tableName = tableName
... | Python | frontend/python/updaters/sqlTableUpdater.py | team-phoenix/Phoenix | gpl-2.0 | 50,003 | 490 | codeparrot/github-code |
2388b8a6f4d46d86ec84a49bbd39e0e4318a7dc7e981b061d50333380cbfc7ec | // -*-C++ -*-
/** \file
********************************************************************
* Device shape base class for route window.
*
* \author Rüdiger Krauße,
* Tobias Schlemmer <keinstein@users.sourceforge.net>
* \license GPL
*
* This program is free software; you can redistribute it and/or modify
* it und... | C++ | src/wxGUI/Routing/DeviceShape.cpp | keinstein/mutabor | gpl-2.0 | 15,499 | 672 | codeparrot/github-code |
cfb4bbc7223126ca210996dc7809305c33bf9870b1ab85d787271c4118651bfc | /* iCalByDayMask.h - this file is part of SOPE
*
* Copyright (C) 2010-2015 Inverse inc.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later ve... | C | SOPE/NGCards/iCalByDayMask.h | saydulk/sogo | gpl-2.0 | 2,502 | 79 | codeparrot/github-code |
487b125e8a41f2809cda7bc82f55e0a4ba3dfb16a3a14b7d904b519e0f4af3b1 | package teammates.test.cases.action;
import org.testng.annotations.Test;
import teammates.common.datatransfer.DataBundle;
import teammates.common.datatransfer.attributes.FeedbackQuestionAttributes;
import teammates.common.datatransfer.attributes.FeedbackResponseAttributes;
import teammates.common.datatransfer.attribu... | Java | src/test/java/teammates/test/cases/action/InstructorFeedbackSubmissionEditSaveActionTest.java | Gorgony/teammates | gpl-2.0 | 34,801 | 693 | codeparrot/github-code |
c10e124b32ab7b92f1d42ce1de9b91ed0ff74167f89d745de2c75cc3cc7bec03 | /*
* Copyright (c) 2001-2006 TIBCO Software Inc.
* All rights reserved.
* For more information, please contact:
* TIBCO Software Inc., Palo Alto, California, USA
*
* $Id: emserr.h 23734 2006-11-21 20:02:10Z $
*
*/
#ifndef _INCLUDED_emserr_h
#define _INCLUDED_emserr_h
#include "types.h"
#include "status.h"
... | C | include/tibems/emserr.h | shured/TIBCO-Test | gpl-2.0 | 895 | 44 | codeparrot/github-code |
9865ef079424dd90ab9021b6c6779764e6c8652406f50f5a868c9f19604738ab | # accounts/authentication.py
import requests
import logging
from django.conf import settings
from django.contrib.auth import get_user_model
logger = logging.getLogger(__name__)
User = get_user_model()
PERSONA_VERIFY_URL = 'https://verifier.login.persona.org/verify'
#DOMAIN = 'localhost'
#DOMAIN = 'http://hotzenplot... | Python | accounts/authentication.py | thomec/tango | gpl-2.0 | 1,296 | 43 | codeparrot/github-code |
0c78bd3886e3f670bef6f9abf2cd520e263a13bed65b5c9cc8af304accb14f07 | /***************************************************************************
* Copyright (C) 2009 by Andrey Afletdinov <fheroes2@gmail.com> *
* *
* Part of the Free Heroes2 Engine: *
* http://... | C | Games/FHeroes2/src/engine/midi_chunk.h | blchinezu/EZX-Projects | gpl-2.0 | 2,213 | 61 | codeparrot/github-code |
4c26e537a06ea7d378e4224f97ff0e4ae9c8723440ceb63241ad2442197b369d | #include <iostream>
#include <fstream>
#include <iterator>
#include <string>
#include <set>
#include <stdio.h>
#include <algorithm>
using namespace std;
typedef unsigned long long U64;
typedef int S32;
typedef unsigned int U32;
typedef struct tag_things
{
U64 nCode; // 编码
S32 nLongitu... | C++ | set_rec.cc | opensvn/cpp_primer_5th | gpl-2.0 | 2,479 | 107 | codeparrot/github-code |
057cb48d72a4b287fa1a14d19e9874355b226cb118f0ce44538d2a33f53b9849 | <html lang="en">
<head>
<title>abbr - GNU Texinfo 4.8</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Texinfo 4.8">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Indicating.html#Indicating" titl... | HTML | OS2tree/usr/share/doc/texinfo-4.8/texinfo.html/abbr.html | OS2World/APP-WORDPROC-GNU_texinfo | gpl-2.0 | 4,261 | 90 | codeparrot/github-code |
cecf742bb06d65998e3b9df92b0333809c510193ccb70f40d0be64f40605c94e | using System;
namespace Server.Items
{
public class StatuetteDyeTub : DyeTub, Engines.VeteranRewards.IRewardItem
{
public override bool AllowDyables{ get{ return false; } }
public override bool AllowStatuettes{ get{ return true; } }
public override int TargetMessage{ get{ return 1049777; } } // Target the stat... | C# | scripts/legacy/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs | brodock/sunuo | gpl-2.0 | 1,609 | 67 | codeparrot/github-code |
a2e3309d2168a95a0d9413cbd315a50a2e2b6e6b0f643489cff9dbc5a39b1107 | /*
* ISDB subtitle decoding
* Copyright (c) 2013 0p1pp1
*
* This file is part of FFmpeg.
*
* FFmpeg 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 y... | C | sub/isdbsubdec.c | 0p1pp1/mplayer | gpl-2.0 | 81,372 | 2,316 | codeparrot/github-code |
7cc37ddac3d938382e2f9329be7c4dd676375a2595a6e44f9a4d0df4c18ab1bb | /*
* BSD compression module
*
* Patched version for ISDN syncPPP written 1997/1998 by Michael Hipp
* The whole module is now SKB based.
*
*/
/*
* Update: The Berkeley copyright was changed, and the change
* is retroactive to all "true" BSD software (ie everything
* from UCB as opposed to other peop... | C | drivers/isdn/i4l/isdn_bsdcomp.c | Jackeagle/android_kernel_sony_c2305 | gpl-2.0 | 24,813 | 929 | codeparrot/github-code |
7d0edef7be39933dc6fce81d576b7d07612f90229217341e65c998426d4a3c2c | // Copyright (c) 2016- 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++ | GPU/Vulkan/VulkanUtil.cpp | Orphis/ppsspp | gpl-2.0 | 12,334 | 360 | codeparrot/github-code |
f75d76dae498789a0b6d429cceff2aea18123b34d4b4223c8ccdb7be8807e54a | 'use strict';
angular.module('sbAdminApp')
.controller('CustomerListCtrl', function ($scope, $http, $rootScope, $stateParams, $location) {
$scope.page = {itemsPerPage: 20};
$scope.iForm = {pageSize : $scope.page.itemsPerPage};
$scope.showLevel = true;
if ($stateParams.searchFound... | JavaScript | admin/src/main/webapp/app/org/customer-list.js | wangguodong577/qqj-backend | gpl-2.0 | 1,606 | 59 | codeparrot/github-code |
e1079f5a5536f12785bda53e64cf6f23a55c589b5bad0ca20afdc1c237156262 | <?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
/**
* Add meta boxes to selected post types
*/
function bpg_add_meta_box() {
$post_types = bpg_allowed_post_types();
if ( ! $post_types )
return;
foreach ( $post_types as $post_type => $status ) {
add_meta_box( 'bpg', apply_fi... | PHP | includes/metabox.php | stevendejongnl/WordPress-Better-Photo-Gallery-Plugin | gpl-2.0 | 7,550 | 242 | codeparrot/github-code |
0dcd7a7521d07e378a8f03c13883d829332c2c573b9963c6f5574573b848c6d1 | #!/usr/bin/env lua
-- -*-lua-*-
--
-- $Id: pm_led.lua $
--
-- Author: Markus Stenberg <markus stenberg@iki.fi>
--
-- Copyright (c) 2013 cisco Systems, Inc.
--
-- Created: Wed Mar 13 09:38:57 2013 mstenber
-- Last modified: Mon Sep 30 13:33:12 2013 mstenber
-- Edit time: 21 min
--
-- This is used to indicate ... | Lua | pm_led.lua | fingon/hnet-core | gpl-2.0 | 2,583 | 116 | codeparrot/github-code |
e6fabc63b325f5558544ae20e544818ae52a69b6a418970d75f91299823fbe11 | /*
* resolve.c - resolve names and tags into specific devices
*
* Copyright (C) 2001, 2003 Theodore Ts'o.
* Copyright (C) 2001 Andreas Dilger
*
* %Begin-Header%
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
* %End-Header%
*/
#include <stdio.h>
#if HAVE_UNISTD_H
... | C | e2fsprogs/blkid/resolve.c | jgunthorpe/busybox | gpl-2.0 | 3,032 | 141 | codeparrot/github-code |
01f2e67695d0a00ecc06f624f3cf0936d06fef10e483dbc46bda63aaeb3d4a3c | /* Copyright (c) 2009-2012, Code Aurora Forum. 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 ho... | C | drivers/video/msm/mdp4.h | xdajog/kernel_fx3q_aosp | gpl-2.0 | 31,096 | 1,016 | codeparrot/github-code |
18f2ca1db00b7d6d20388a70e0329a3a951b68d16f8c7600277bfbdabf5e7e06 |
package Net::Gopher::Response;
=head1 NAME
Net::Gopher::Response - Class encapsulating Gopher responses
=head1 SYNOPSIS
use Net::Gopher;
...
my $response = $ng->request($request);
if ($response->is_success) {
if ($response->is_menu) {
# you can use as_menu() to parse Gopher menus:
my ... | Perl | lib/Net/Gopher/Response.pm | gitpan/Net-Gopher-0 | gpl-2.0 | 33,624 | 1,254 | codeparrot/github-code |
9354adfc87c5a58cf486be55de9c5d2ca5d3f344b0ca0006bd83f51b03378e96 | <?php
/**
* This houses all the code to integrate with X
*/
class Cornerstone_Integration_X_Theme {
/**
* Theme integrations should provide a stylesheet function returning the stylesheet name
* This will be matched with get_stylesheet() to determine if the integration will load
*/
public static function sty... | PHP | wp-content/plugins/cornerstone/includes/integrations/x-theme.php | elinberg/ericlinberg | gpl-2.0 | 12,573 | 337 | codeparrot/github-code |
50cc1099b1b6e32684862d2084921ee13ba06718fe5e81ab63497d16a07ce6b9 | /* $Id$ */
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* The main() function
*/
/*
* Copyright (C) 2006-2009 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 redistribute it and/or mo... | C++ | src/VBox/Frontends/VirtualBox/src/main.cpp | dezelin/virtualbox | gpl-2.0 | 23,802 | 706 | codeparrot/github-code |
e554abdf7084a6cb322a9ed3211dadab7050cb1ef7f89c8518ff726a32c3906a | /* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... | C | src/force.h | anshumang/lammps-analytics | gpl-2.0 | 5,306 | 156 | codeparrot/github-code |
1e5fe5615a3dcd603c5690ebf1e1de50060d7021468b5d65a3921b28816ec731 | package remasterkit;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.border.TitledBorder;
import javax.swing.b... | Java | app.remasterkit/src/remasterkit/Menu_Utama.java | anugrahbsoe/RemasterKit | gpl-2.0 | 6,973 | 218 | codeparrot/github-code |
ecdafe5678b70193c6be2ff3dbcac2713a50b65ceeb5136f75c4d2098667285b | /*
* Copyright (c) 2002-2003, Intel Corporation. All rights reserved.
* Created by: rusty.lynch REMOVE-THIS AT intel DOT com
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
Test case for assertion #4 of the si... | C | testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-90.c | rogerq/ltp-ddt | gpl-2.0 | 900 | 41 | codeparrot/github-code |
3666cc4418c32610d0a52b2b26f7a2b2ceb2c5d2fadfe0d860667abe41ecfb3f | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016-2017 University of Dundee & Open Microscopy Environment.
# All Rights Reserved.
# Use is subject to license terms supplied in LICENSE.txt
#
import requests
from Parse_OMERO_Properties import USERNAME, PASSWORD, OMERO_WEB_HOST, \
... | Python | examples/Training/python/Json_Api/Login.py | jburel/openmicroscopy | gpl-2.0 | 3,163 | 110 | codeparrot/github-code |
5d095c4ecb73f78e0af67da0776be8b43c4835c7cc98565a9f99233ff463dc30 | #python imports
import sys
import os
import time
import datetime
import subprocess
import json
import requests
from termcolor import colored
#third-party imports
#No third-party imports
#programmer generated imports
from logger import logger
from fileio import fileio
'''
***BEGIN DESCRIPTION***
Type: Search - Descri... | Python | modules/malware_bazaar_search.py | slaughterjames/static | gpl-2.0 | 5,588 | 138 | codeparrot/github-code |
825f38d8ab1742cbb4d66a5a71a542001e205257e92359f7cc0ffc24720c73e5 | /*
* linux/kernel/exit.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/capability.h>
#include <linux/completion.h>
#include <linux/personality.h>
#include <linux/tty.h>
#include <linux/iocontext... | C | kernel/exit.c | PennPanda/litmus-rt | gpl-2.0 | 44,381 | 1,704 | codeparrot/github-code |
ee2491405c6409e648e7e7b1de8d84aa2e31c7a124b14b34114a420fd97b12ce | // QueenMaxima, a chess playing program.
// Copyright (C) 1996-2013 Erik van het Hof and Hermen Reitsma
//
// 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... | C++ | src/legality.cpp | hof/queenmaxima | gpl-2.0 | 14,849 | 514 | codeparrot/github-code |
bddf1fa4a44f3031c110ed136fa894422b1332ae9d0f9d2724994dbfb93ecb4a | <?php
/*
* Comments cell type.
* Displays form and coments
*
*/
if( !function_exists('register_comments_cell_init') )
{
function register_comments_cell_init() {
if ( function_exists('register_dd_layout_cell_type') ) {
register_dd_layout_cell_type ( 'comments-cell',
array (
'name' => ... | PHP | wp-content/plugins/layouts/classes/cell_types/wpddl.cell_comments.class.php | juliusmiranda/wordpress | gpl-2.0 | 15,614 | 362 | codeparrot/github-code |
3cfeba0b8c03c7eed058b0e5d0c6ce76ddb8bd5fd83d71c74431315787a58279 | <?
class CategoryID extends Handler {
protected $REST_vars;
protected $DBs;
protected $User;
// RUN //
public function run() {
switch ( $this->REST_vars["method"] ) {
case "get":
$this->get();
break;
case "delete":
case "put":
case "post":
default:
throw new Erro... | PHP | jackelow.gjye.com/api/category/category-id.php | jetwhiz/jackelo | gpl-2.0 | 1,147 | 58 | codeparrot/github-code |
62c833e5f10d0e18d002aedbceb3818b6aa3d2981cae78cad5046522306a425f | /*
* Copyright (C) 2005-2012 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/Map.h | blueboy/gmguy | gpl-2.0 | 17,335 | 453 | codeparrot/github-code |
7357bc9946b7df4fdc30d64d1a1e2e1d0ce6b66f531e89692b975b141d82aa28 | const fs = require('fs');
const util = require('../../util');
// test equality
function equal(a, b, options) {
if (a === b) {
return options.fn(this);
}
return options.inverse(this);
}
// great than
function gt(a, b, options) {
if (a >= b) {
return options.fn(this);
}
return options.inverse(this);... | JavaScript | server/lib/template/helpers/logic.js | IMA-WorldHealth/bhima | gpl-2.0 | 1,228 | 67 | codeparrot/github-code |
51749eeca8b7d23ffbbb1bb930826a9be562b19d34acd16dea02b6efc77fb16d | <?php
/**
* @file
* Definition of Drupal\views_ui\ViewUI.
*/
namespace Drupal\views_ui;
use Drupal\views\ViewExecutable;
use Drupal\Core\Database\Database;
use Drupal\Core\TypedData\ContextAwareInterface;
use Drupal\views\Plugin\views\query\Sql;
use Drupal\views\Plugin\Core\Entity\View;
use Drupal\views\ViewStora... | PHP | core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php | adirkuhn/expressoDrupal | gpl-2.0 | 38,054 | 1,133 | codeparrot/github-code |
0157de01c9ca9de6c4ccb7a150c970b3994cfaad535d799cd944c91a4af5e17e | //=============================================================================
//
// m25pxx.c
//
// SPI flash driver for Numonyx M25Pxx devices and compatibles.
//
//=============================================================================
// ####ECOSGPLCOPYRIGHTBEGIN####
// -----------------------------... | C | src/ecos/packages/devs/flash/spi/m25pxx/current/src/m25pxx.c | reille/proj_ecos | gpl-2.0 | 17,781 | 474 | codeparrot/github-code |
3db48aa9540748366e4fe94a31b0864ea3ed7503b872a2e38d21b2855d6c2e33 | /*
* Core definitions and data structures shareable across OS platforms.
*
* Copyright (c) 1994-2002 Justin T. Gibbs.
* Copyright (c) 2000-2002 Adaptec Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | C | drivers/scsi/aic7xxx/aic79xx.h | skywalker01/Samsung-Galaxy-S-Plus | gpl-2.0 | 46,794 | 1,479 | codeparrot/github-code |
6f9ae3a0af3d948ba56bcc7ad83018546926d64b3f9ec0279423faa13cc0f216 | /*
* Timeval.cc -- time arithmetic
*
* (c) 2003 Dr. Andreas Mueller, Beratung und Entwicklung
*
* $Id: Timeval.cc,v 1.7 2009/01/10 19:00:25 afm Exp $
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
#include <Timeval.h>
#ifdef HAVE_MATH_H
#include <math.h>
#endif /* HAVE_MATH_H */
#ifdef HAV... | C++ | lib/Timeval.cc | martinluther/meteo | gpl-2.0 | 2,129 | 107 | codeparrot/github-code |
389abf977c94a1570eebda1e772352ace164ec8e0dddf8f0c4810d4aed7880e4 | using Rocket.API;
using Rocket.API.Extensions;
using Rocket.Core.Logging;
using Rocket.Unturned.Chat;
using Rocket.Unturned.Commands;
using Rocket.Unturned.Player;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace coolpuppy24.rpevents
{
public class ArrestFinishCommand : IRocketCommand
... | C# | Commands/ArrestFinishCommand.cs | Coolpuppy24/RPEvents | gpl-2.0 | 1,994 | 84 | codeparrot/github-code |
f0ad54d6fcccbc3be79f8d71e37890a867cf42c1799af0d91b67c73b981dc2f5 | ///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/custombgwin.h
// Purpose: wxMSW implementation of wxCustomBackgroundWindow
// Author: Vadim Zeitlin
// Created: 2011-10-10
// RCS-ID: $Id: custombgwin.h 69378 2011-10-11 17:07:43Z VZ $
// Copyright: ... | C | Externals/wxWidgets3/include/wx/msw/custombgwin.h | nattthebear/dolphin-avsync | gpl-2.0 | 1,987 | 59 | codeparrot/github-code |
ae59b47586ebddea4ec88ce9ec0b694ec412f80d760b1de7e6223540db6f03a4 | package com.omnicrola.panoptes.ui.autocomplete;
import static org.easymock.EasyMock.expect;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import com.omnicrola.panoptes.control.DataController;
import com.... | Java | Panoptes.Test/src/com/omnicrola/panoptes/ui/autocomplete/CardNumberProviderTest.java | Omnicrola/Panoptes | gpl-2.0 | 3,813 | 99 | codeparrot/github-code |
77f95f6b93d3603a0e2ba4e0aa3e34ed2830a21b1a8341f60054e6281d80ceb8 | <?php
/**
* @package syscart
* libraries/platform/language.php
*
* @autor majeed mohammadian
*/
defined('syscart') or die('access denied...!');
class platformLanguage
{
private $language = 'persian';
private $code = 'fa-IR';
private $direction = 'rtl';
private $id = null;
public functio... | PHP | libraries/platform/language.php | syscart/syscart | gpl-2.0 | 2,177 | 100 | codeparrot/github-code |
e0fffc732f66a1b1b26478a7b2d174f3da1d4488e46707dae9aff21c2c787bfa | #ifndef PLAYER_H
#define PLAYER_H
#include "Vector2d.h"
#include "Polygon.h"
#include "CollisionController.h"
#include <vector>
const float WALKING_ACCEL = 0.5;
const float MAX_WALKING_SPEED = 11.0;
const float FALLING_ACCEL = 1.2;
const float MAX_FALLING_SPEED = 20.0;
const float JUMPING_SPEED = -25.0;
class Player... | C | src/Player.h | Slabity/Senior-Project-2013 | gpl-2.0 | 1,098 | 55 | codeparrot/github-code |
01da92006bf88b5f83b6fc65aae447a0baddc8dc379366a1adb31f7416fc08e7 | <?php
/**
* TOP API: taobao.wlb.inventory.detail.get request
*
* @author auto create
* @since 1.0, 2012-11-01 12:40:06
*/
class WlbInventoryDetailGetRequest
{
/**
* 库存类型列表,值包括:
VENDIBLE--可销售库存
FREEZE--冻结库存
ONWAY--在途库存
DEFECT--残次品库存
ENGINE_DAMAGE--机损
BOX_DAMAGE--箱损
EXPIRATION--过保
**/
private $inventoryTypeL... | PHP | API/taobao/top/request/WlbInventoryDetailGetRequest.php | Jeepal/iLogin | gpl-2.0 | 1,515 | 89 | codeparrot/github-code |
ba6e8eea608395f2e2263875cf2da621fe66e5bbb0f9c856d40a195ee3771aea | <?php
if(!class_exists('WP_List_Table')){
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
}
class EasySocialMetricsLiteResultTable extends WP_List_Table {
public $total_results = array();
public $top_content = array();
/** *********************************************************... | PHP | wp-content/plugins/easy-social-share-buttons/lib/modules/easy-social-metrics-lite/esml-render-results.php | rvfeed/rfeed | gpl-2.0 | 27,672 | 664 | codeparrot/github-code |
81e01a7e3483abe3502b815f0fd2abb9e02a2e6ec451560a17e47d05bbf23ce7 | <?php
/**
* @file
* Contains Drupal\views\Plugin\views\display\DisplayPluginBase.
*/
namespace Drupal\views\Plugin\views\display;
use Drupal\views\Plugin\views\area\AreaPluginBase;
use Drupal\views\ViewExecutable;
use \Drupal\views\Plugin\views\PluginBase;
use Drupal\views\Views;
/**
* @defgroup views_display_p... | PHP | core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php | eugenesia/eugenesia.co.uk | gpl-2.0 | 93,395 | 2,733 | codeparrot/github-code |
45c22ca87009c28a1da6de74f2bdc3f4514e2a57e1013b830c37c7c5fe64b2e9 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>basic_datagram_socket::cancel (2 of 2 overloads)</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="../../... | HTML | lib/boost/boost_1_38_0/doc/html/boost_asio/reference/basic_datagram_socket/cancel/overload2.html | scs/uclinux | gpl-2.0 | 6,346 | 112 | codeparrot/github-code |
6dd8165e5a2b0f3137e8ef627d792da676c8e42c1139659ac3430b8b7825b184 | <?php
namespace Nutri\IngredientBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Nutri\Ingredien... | PHP | src/Nutri/IngredientBundle/Controller/IngredientController.php | blacksad12/oliorga | gpl-2.0 | 7,210 | 179 | codeparrot/github-code |
f2229d7c52ff5aa6818442943c1d74d3a4638de019fc9b5761c6c12754663299 | class Java::Util::ArrayList < Array
overload_protected {
include Java::Util::JavaList
}
class Iterator
def initialize(array, from_index = 0, to_index = nil)
@array = array
@index = from_index
@to_index = to_index || @array.size
end
def has_next
@index < @to_index
end
... | Ruby | jre4ruby/rep/java/util/ArrayList.rb | neelance/jre4ruby | gpl-2.0 | 1,889 | 111 | codeparrot/github-code |
c812f1143ba4dee17be670ea0218446ccfbc1710956e3726811b124d695ffbc2 | using NPOI.HSSF.UserModel;
using NPOI.HSSF.Util;
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
namespace NoRain.Toolkits
{
public class XMLOutputTool
{
private static Type[] ... | C# | Code/NoRain.Toolkits/Export/XMLOutputTool.cs | DonnotRain/NoRainWeb | gpl-2.0 | 5,346 | 130 | codeparrot/github-code |
2cc9b76e243faddf12dfc076cd21ba9d5195eed4459b478fd85556e18d6edfd6 | #region License
// Copyright (c) 2007 James Newton-King
//
// 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 without limitation the rights to use,
// copy,... | C# | AeraClass/Newtonsoft.Json/Serialization/ReflectionValueProvider.cs | marhazk/HazTechClass | gpl-2.0 | 3,185 | 84 | codeparrot/github-code |
973927d85ace83e06de2fe3e2a8e96eab19af63635914ffed4b819dbe3313608 | // **********************************************************************
//
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// ***************************************************... | C++ | cpp/demo/Ice/throughput/Server.cpp | dayongxie/zeroc-ice-androidndk | gpl-2.0 | 1,094 | 45 | codeparrot/github-code |
f2386212105fe1845fbe7bddf518211fe3d84d6a223f026d8947e0b1ea2abd39 | # This file shows how to program a computer to calculate
# logarithms and powers, without a calculator.
# The benefit of this method is that it does not
# require any multiplications. It can be implemented
# entirely with shift and additions. Therefore, it
# is well suited for a FPGA.
# TODO: Change the logarithms, s... | Ruby | math/math_comp.rb | MJoergen/ruby | gpl-2.0 | 4,061 | 194 | codeparrot/github-code |
fec0340635b4093e1036cce22cd2ceb505b495c6927f1b5b06d82970d326c736 | <?php
// Just some basics.
$per_page_limit = 20;
// get all forms
$forms = Caldera_Forms::get_forms();
$forms = apply_filters( 'caldera_forms_admin_forms', $forms );
$style_includes = get_option( '_caldera_forms_styleincludes' );
if(empty($style_includes)){
$style_includes = array(
'alert' => true,
'form' => t... | PHP | wp-content/plugins/caldera-forms/ui/admin.php | janmolemans/wordpressdrugs | gpl-2.0 | 9,468 | 231 | codeparrot/github-code |
ca66ae5663a8682eac1eeefd2f4165bca9310b4d3fa99d9fe83eb5c45df2254e | <?php
declare(strict_types=1);
class CommentListTest extends ShimmiePHPUnitTestCase
{
public function setUp(): void
{
global $config;
parent::setUp();
$config->set_int("comment_limit", 100);
$this->log_out();
}
public function tearDown(): void
{
global $conf... | PHP | ext/comment/test.php | shish/shimmie2 | gpl-2.0 | 3,485 | 109 | codeparrot/github-code |
bceac384cafe7f1ca2531c1b2749c9c290d85569f3a230e3a566c4dd8f6d61e9 | #ifndef VALUESCOPE_H_
#define VALUESCOPE_H_
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "ValueEntry.h"
#include "types/Type.h"
namespace semantic_analyzer {
class ValueScope {
public:
bool insertSymbol(std::string name, const type::Type& type, translation_unit::Context context)... | C | src/semantic_analyzer/ValueScope.h | rieske/trans | gpl-2.0 | 862 | 33 | codeparrot/github-code |
ab2b00aeec9575bd517e4c32895391135d0ee031a7507b7b0e974348cf69c6f7 | //-*-c++-*-
// ====================================================================
// ====================================================================
//
// Module: opt_ssa.h
// $Revision: 1.99 $
// $Date: 2000/04/06 15:25:34 $
// $Author: dlstephe $
// $Source: /isms/cmplrs.src/osprey1.0/be/opt/RCS/opt_ss... | C | be/opt/opt_ssa.h | qiyao/xcc | gpl-2.0 | 12,937 | 349 | codeparrot/github-code |
f85675b9e27b7071134928087ec83bc4b2bc4eb981deeb02b359632819499313 | /*
* drivers/power/process.c - Functions for starting/stopping processes on
* suspend transitions.
*
* Originally from swsusp.
*/
#undef DEBUG
#include <linux/interrupt.h>
#include <linux/oom.h>
#include <linux/suspend.h>
#include <linux/module.h>
#include <linux/syscalls.h>
#include ... | C | kernel/power/process.c | forfivo/v500_kernel_aosp | gpl-2.0 | 5,537 | 249 | codeparrot/github-code |
9eb5a8edc9683d443da35b00f6062f15a45825bd3eb6409723fabb9f8ab94bdb | <?php
namespace TYPO3\CMS\T3editor;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information,... | PHP | typo3/sysext/t3editor/Classes/CodeCompletion.php | michaelklapper/TYPO3.CMS | gpl-2.0 | 5,509 | 147 | codeparrot/github-code |
2a92c0668de53b638c80122c1d3eae4f81187406c18b27dad43f413bd0b966c6 | # -*- encoding: utf-8 -*-
try:
from httplib import HTTPSConnection
from urlparse import urlparse
except ImportError:
from http.client import HTTPSConnection
from urllib.parse import urlparse
from json import dumps, loads
from django.conf import settings
class GCMError(Exception):
pass
def send... | Python | dbmail/providers/google/android.py | LPgenerator/django-db-mailer | gpl-2.0 | 1,265 | 56 | codeparrot/github-code |
c6cf42978586d42e5940f3f79416b5d4207b4ac550d649dbe0fe03ff7579072d | #!/usr/bin/perl
#[SUMMARY] Flashcard program. Used to train yourself for vocab retention, possibly other uses (e.g. general question and answer format).
# Read through an input file (key - value), shuffle the keys randomly, and prompt the user for an answer.
# If the answer doesn't match (case insensitive), retry (opt... | Perl | perl_exercises/vocab.pl | huther/personal_projects | gpl-2.0 | 4,111 | 123 | codeparrot/github-code |
f21bcd6c15abb3f570bfcba169eeba4630e95564c07703c0153d5a285b03368c | #ifndef COIN_SBPIMPLPTR_HPP
#define COIN_SBPIMPLPTR_HPP
/**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) 1998-2008 by Kongsberg SIM. All rights reserved.
*
* This library is free software; you can redistrib... | C++ | deps/include/Inventor/tools/SbPimplPtr.hpp | erik132/MolekelCUDA | gpl-2.0 | 2,699 | 121 | codeparrot/github-code |
bc1b79d668f4a4511ffad65d03eb25229822b36fdfdadb031dd4016a1c4f2cb4 | /* $Id$
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope ... | C | src/events.c | xfce-mirror/xfwm4 | gpl-2.0 | 95,564 | 2,908 | codeparrot/github-code |
019708af533581dc89967fa9ef12b279efb08cbf2ca544353ca74b433a7330a0 | {% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block ogtitle %}{{ SITENAME }}{% endblock %}
{% block ogurl %}{{ SITEURL }}{%endblock%}
{% block canonicalurl %}{{ SITEURL }}{%endblock%}
{% block content %}
<div class="content-grid">
{% if articles %}
{% for article in articles_page.obj... | HTML | templates/index.html | Samael500/w3-personal-blog | gpl-2.0 | 4,584 | 105 | codeparrot/github-code |
cc44dbb66d74f8ca5f3e29956752d3c5a2f196436d6a2a6e7bc618cb3d45c04a | #include "StdInc.h"
#include <ShellAPI.h>
unsigned int _gameFlags;
typedef struct
{
const wchar_t* argument;
unsigned int flag;
} flagDef_t;
flagDef_t flags[] =
{
{ L"offline", GAME_FLAG_OFFLINE },
{ L"console", GAME_FLAG_CONSOLE },
{ 0, 0 }
};
void DetermineGameFlags()
{
int numArgs;
LPCWSTR commandLine =... | C++ | steam_api/Flags.cpp | Sofakante/iw4m-lan | gpl-2.0 | 740 | 45 | codeparrot/github-code |
19c023764ae5da9efa5a58e3b798a1eb4b7e751777d2059c1bcc2d7960ec56d8 | #
# Copyright (c) 2013 The Linux Foundation. All rights reserved.
# Copyright (C) 2008-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
JFFS2_BLOCKSIZE = 64k 128k 256k
define ... | Makefile | target/linux/ar71xx/image/Makefile | qianguozheng/qsdk | gpl-2.0 | 46,467 | 1,018 | codeparrot/github-code |
5c32ae961f38b004d02923b1f6f49c245c7008e511b2f6eed078d7fc65bc7ee1 | /*
* Copyright 2006-2020 The MZmine Development Team
*
* This file is part of MZmine.
*
* MZmine is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation; either version 2 of the
* License, or (at your option) an... | Java | src/main/java/io/github/mzmine/parameters/parametertypes/ranges/DoubleRangeParameter.java | tomas-pluskal/mzmine3 | gpl-2.0 | 5,669 | 178 | codeparrot/github-code |
c526a3ef1bb4cc82f6e4ebfc01780a013428463e27ac758d5795aa918a0c0807 | //----------------------------------------------------------------------------
#pragma hdrstop
#include <stdio.h>
#include <memory>
#include "uCM.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma classgroup "Vcl.Controls.TControl"
#pragma resource "*.... | C++ | uCM.cpp | cassioferrazzo/fila.cliente.desktop | gpl-2.0 | 695 | 32 | codeparrot/github-code |
08765a5ccf6eb617b9e92a799df94005a49030793a2e43d1b7271a049789d817 | package Lacuna::DB::Result::Building::SSLa;
use Moose;
use utf8;
no warnings qw(uninitialized);
extends 'Lacuna::DB::Result::Building';
use Lacuna::Constants qw(ORE_TYPES INFLATION);
around 'build_tags' => sub {
my ($orig, $class) = @_;
return ($orig->($class), qw(Construction Ships));
};
use constant univer... | Perl | lib/Lacuna/DB/Result/Building/SSLa.pm | Imzogelmo/Lacuna-Server-Open | gpl-2.0 | 6,610 | 220 | codeparrot/github-code |
73f53170fcd5817c822adf866c9f08535afd7c2a5707996201a27a053e54c12d | /*
* RapidMiner
*
* Copyright (C) 2001-2008 by Rapid-I and the contributors
*
* Complete list of developers available at our web site:
*
* http://rapid-i.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public Lice... | Java | src/com/rapidminer/gui/tools/ProgressUtils.java | ntj/ComplexRapidMiner | gpl-2.0 | 3,354 | 92 | codeparrot/github-code |
4f6210aa6fa8e27ace83af2f1e4dde3ad59b2a49c2484adad8850e448f1a8d73 | #include <filezilla.h>
#include "directorycache.h"
#include "list.h"
enum listStates
{
list_init = 0,
list_waitresolve,
list_waitlock,
list_list
};
int CStorjListOpData::Send()
{
LogMessage(MessageType::Debug_Verbose, L"CStorjListOpData::Send() in state %d", opState);
switch (opState) {
case list_init:
if ... | C++ | src/engine/storj/list.cpp | madnight/filezilla | gpl-2.0 | 4,511 | 176 | codeparrot/github-code |
c725c878436487be5a251ba0a4c6c20f0a70193a4df3e20bf63f517204abdda5 | /* Copyright (c) 2011-2012, Code Aurora Forum. 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 ho... | C | arch/arm/mach-msm/lge/l_dcm/board-l_dcm-panel.c | jameskdev/lge-kernel-d1l_kr | gpl-2.0 | 35,276 | 1,216 | codeparrot/github-code |
3933408dba24c735bbb415438c48d3cbde5e5245fcc17d41e46754b320c18f1f | /***************************************************************************
* Copyright (C) 2011 by Christoph Thelen *
* doc_bacardi@users.sourceforge.net *
* *
* This pr... | C++ | application/muhkuh_split_testdescription.cpp | muhkuh-sys/org.muhkuh.tools-muhkuh_gui | gpl-2.0 | 9,641 | 345 | codeparrot/github-code |
857da9a064dee3d80357942e590921eebbd539174762e24c7de0c0c3a6c6081a | -- VirtueMart table SQL script
-- This will install all the tables need to run VirtueMart
--
-- Table structure for table `#__virtuemart_adminmenuentries`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_adminmenuentries` (
`id` tinyint(1) unsigned NOT NULL AUTO_INCREMENT,
`module_id` tinyint(10) unsigned NOT NULL D... | SQL | administrator/components/com_virtuemart/install/install.sql | Jbouska419/craftsman | gpl-2.0 | 57,936 | 1,336 | codeparrot/github-code |
8f983968eed3a28fd646b138586355345f048140ff30d3eb8bdef768f0bd805d | <?php
/*
*
* Swift Page Builder - Default Shortcodes
* ------------------------------------------------
* Swift Framework
* Copyright Swift Ideas 2016 - http://www.swiftideas.com
*
*/
/* TEXT BLOCK ASSET
================================================== */
class S... | PHP | wp-content/plugins/swift-framework/includes/page-builder/shortcodes/default.php | tuffon/imaginewithus | gpl-2.0 | 31,195 | 656 | codeparrot/github-code |
c8f7387f09bfc6f67b44c31e7a20bad17ab660147dfbba33df2cdc5a8070ef98 | /*
* *************************************************************************************
* Copyright (C) 2008 EsperTech, Inc. All rights reserved. *
* http://esper.codehaus.org *
* http://www.espertech.com ... | Java | esper/src/test/java/com/espertech/esper/epl/join/rep/TestRepositoryImpl.java | sungsoo/esper | gpl-2.0 | 4,571 | 140 | codeparrot/github-code |
4205bdba44ce3c70c8a7709fe90c7f036125874d87a5dd390cc9e8510d161fd0 | /*
* Copyright (c) 2009, Yauhen Kharuzhy <jekhor@gmail.com>
*
* See file CREDITS for list of people who contributed to this
* 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; e... | C | common/cmd_update.c | OpenInkpot-archive/uboot-n516 | gpl-2.0 | 19,636 | 891 | codeparrot/github-code |
82aec0be16d5c5bac282e998e481daab76da9e88d71e2c08cf399386d5a2f109 | package doodle;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Comparator;
import java.util.Date;
/**
* A poll is made up of two or more time slots, which are voted on by poll
* invitees. A time slot is defined by a start datetime and optionally an end
*... | Java | joram-jms/samples/src/joram/doodle/TimeSlot.java | jonasrmichel/jms-doodle-poll | gpl-2.0 | 3,355 | 147 | codeparrot/github-code |
90b2fdc5431736d7ba0743bdb6cb85b38b26d51b1952f11b6c557de720e6c97e | package tim.prune.threedee;
import java.awt.event.InputEvent;
/*
* Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistribution of source... | Java | src/tim/prune/threedee/UprightOrbiter.java | activityworkshop/GpsPrune | gpl-2.0 | 10,939 | 329 | codeparrot/github-code |
07e97987e0f45a201b5544779b001f54316143afda951412280b31481ab2332e | /*
* A framebuffer driver for VBE 2.0+ compliant video cards
*
* (c) 2007 Michal Januszewski <spock@gentoo.org>
* Loosely based upon the vesafb driver.
*
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/skbuff.h>
#include <linux/timer.h>
#include <linux/compl... | C | drivers/video/uvesafb.c | manveru0/FeaCore_Phoenix_S3 | gpl-2.0 | 52,031 | 2,071 | codeparrot/github-code |
bff3d0ec52353f01edcf0c1cbe3f0a99bf32274e066b7d24dcf08cb88c500382 | /**
* 对公众平台发送给公众账号的消息加解密示例代码.
*
* @copyright Copyright (c) 1998-2014 Tencent Inc.
*/
// ------------------------------------------------------------------------
package com.weixin.sdk.encrypt;
import java.security.MessageDigest;
import java.util.Arrays;
/**
* SHA1 class
*
* 计算公众平台的消息签名接口.
... | Java | wholly-demo/wholly_weixin/src/main/java/com/weixin/sdk/encrypt/SHA1.java | teabo/wholly-framework | gpl-2.0 | 1,454 | 62 | codeparrot/github-code |
b4410568f4b6ba9a1b9681381e15cf307539db7f52adc5e76c2d56df5fd2a23f | /*
Copyright (C) 2015 Panagiotis Roubatsis
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 p... | C# | Map Creator/MapAdjacency.cs | proubatsis/Map-Creator | gpl-2.0 | 1,310 | 46 | codeparrot/github-code |
f323ec8c1b524285572e4f0918daba9692ae8b25a5f5fccbb8ddf51cbc975d2e | set term ^;
CREATE OR ALTER PROCEDURE RELDRE( PDTA1 DATE
, PDTA2 DATE, PCC INTEGER )
-- ATS Soluções 11/03/2009
RETURNS ( CONTA VARCHAR( 30 )
, DESC_CONTA VARCHAR( 80 )
... | SQL | script/relDre_warong107.sql | ATSTI/administra | gpl-2.0 | 18,336 | 583 | codeparrot/github-code |
98be091b0f5ef1b3318ba9aca52af74fd8bab4f8995076ada215b5f195ddf836 | package com.rockey.emonitor.jms.controller;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.log... | Java | emonitor/src/main/java/com/rockey/emonitor/jms/controller/MessageController.java | RockeyHoo/icheck | gpl-2.0 | 3,945 | 118 | codeparrot/github-code |
e294ade47787a600990ee143c2202e5168a80d28530a2de08378126dbfca9040 | <?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
if ( ! class_exists( 'Mega_Menu_Nav_Menus' ) ) :
/**
* Handles all admin related functionality.
*/
class Mega_Menu_Nav_Menus {
/**
* Return the default settings for each menu item
*
* @since 1.5
*/
public static ... | PHP | wp-content/plugins/megamenu/classes/nav-menus.class.php | Metrashev/Obuhte | gpl-2.0 | 12,985 | 399 | codeparrot/github-code |
512867195384f874e4c03237cb6c17aa0e1bbf4aea311e7fbb402cb4241b740d | /*
* Copyright (C) 2011-2021 Project SkyFire <https://www.projectskyfire.org/>
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2021 MaNGOS <https://www.getmangos.eu/>
* Copyright (C) 2006-2014 ScriptDev2 <https://github.com/scriptdev2/scriptdev2/>
*
* This program is free ... | C++ | src/server/scripts/Outland/zone_shattrath_city.cpp | ProjectSkyfire/SkyFire.548 | gpl-2.0 | 16,677 | 550 | codeparrot/github-code |
aced5f814469ea0487f0768f370271644932c633789e374d54b28b5114981a6d | //
// CRTDispatchConnection.cpp
// dyncRTConnector
//
// Created by hp on 12/8/15.
// Copyright (c) 2015 hp. All rights reserved.
//
#include "CRTDispatchConnection.h"
#include "CRTConnManager.h"
#include "CRTConnection.h"
#include "CRTConnectionTcp.h"
#include "rtklog.h"
void CRTDispatchConnection::DispatchMsg(... | C++ | MsgServer/MsgServerConnector/CRTDispatchConnection.cpp | Teameeting/Teameeting-MsgServer | gpl-2.0 | 3,277 | 79 | codeparrot/github-code |
c849ab3e1a888b8db809e02fd92132f11cc551363edc6b9bb5f6b0812a47c4a5 | class ActorEffectActorPen < ActorEffect
title 'Actor Pen'
description 'Uses chosen actor as a brush tip, rendering it multiple times per frame to smoothly follow a chosen X,Y point.'
hint 'This effect is primarily intended for use with the Canvas actor.'
categories :canvas
setting 'actor', :actor
setting '... | Ruby | engine/plugins/actor_effects/actor-pen.luz.rb | lighttroupe/luz-next | gpl-2.0 | 1,787 | 71 | codeparrot/github-code |
9798135e50cb3e590fef8128d908142595c2f0201e8cd3592b80178c218b32ef | <?php // (C) Copyright Bobbing Wide 2012, 2017
/**
* Determine the reference_type from PHP tokens
*
* Attempt to determine what sort of API this is using token_get_all()
*
* @param string $string - the "api" name
* @return string - the reference type determined from token_name()
*
*/
function oikai_determi... | PHP | shortcodes/oik-api.php | bobbingwide/oik-shortcodes | gpl-2.0 | 7,237 | 274 | codeparrot/github-code |
2124499973ca7e41282988400614c628b77466d97999e09e8603a52ee840c453 | <?php
/**
* Custom Article Page Type
*
* @package tub
*/
/*
* Register an article post type.
*/
add_action( 'init', 'tub_articles_init' );
function tub_articles_init() {
$labels = array(
'name' => _x( 'Articles', 'post type general name', 'tub' ),
'singular_name' => _x( 'Article', 'post ... | PHP | wp-content/plugins/tub-functions/cpt/articles.php | joshevensen/theunassistedbaby.com | gpl-2.0 | 4,026 | 152 | codeparrot/github-code |
0871069ab772f2ae51c53787383fd19e0df4bf549fb1f24401fdbb8b4e910b02 | /* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... | C | bootable/bootloader/uboot/arch/powerpc/cpu/mpc83xx/pcie.c | luckasfb/OT_903D-kernel-2.6.35.7 | gpl-2.0 | 11,152 | 353 | codeparrot/github-code |
a0231b8c3af18e15a117ff5b894c3baccb7d14e61ede3bf1928b69ae8e92f770 | /* $Id$ */
/** @file
* IPRT - User & Kernel Memory, Ring-0 Driver, Solaris.
*/
/*
* Copyright (C) 2009 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 redistribute it and/or modify it under the... | C | src/VBox/Runtime/r0drv/solaris/memuserkernel-r0drv-solaris.c | dezelin/vbox-haiku | gpl-2.0 | 2,352 | 83 | codeparrot/github-code |
9f1800d570ffe9ea375700a28f80e561e0b48e2d74bf1061da0f7bc4b60c0420 | /**
* @file g_func.c
* @brief func_* edicts
*/
/*
All original material Copyright (C) 2002-2011 UFO: Alien Invasion.
Original file from Quake 2 v3.21: quake2-2.31/game/g_spawn.c
Copyright (C) 1997-2001 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the... | C | src/game/g_func.c | ptitSeb/UFO--AI-OpenPandora | gpl-2.0 | 11,042 | 392 | codeparrot/github-code |
f9e5f3230be6b6e352e0062306c16dbfe5d514ac0474e085f4f639d037858041 | <?php
include_once "../libs/myLib.php";
if (!isset($_SESSION['login'])) {
session_start();
}
$nombre = $_POST['nombre'];
$fechaInicio= $_POST['fechaInicio'];
$horaInicio = $_POST['horaInicio'];
$fechaFin = $_POST['fechaInicio'];
$horaFin = $_POST['horaFin'];
$precio = $_POST['precio'];
$plazas = $_POST['plazas']... | PHP | G-Tech/scripts/crearEvento.php | fblupi/grado_informatica-DIU | gpl-2.0 | 3,656 | 99 | codeparrot/github-code |
c7cb452b7fa2e4ecf71b3c2be0f93034020a95642425713a985e5827dcbc2384 | /*
* This file is part of the OregonCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
... | C++ | src/scripts/Kalimdor/RuinsOfAhnQiraj/boss_moam.cpp | OregonCore/OregonCore | gpl-2.0 | 3,347 | 126 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.