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 |
|---|---|---|---|---|---|---|---|---|
bbba13a5e5636d43efcd098d4a6a897ecce3e787b4ece06fab6796ad5e1f6caf | /*
* nassh-relay - Relay Server for tunneling ssh through a http endpoint
*
* Website: https://github.com/zyclonite/nassh-relay
*
* Copyright 2014-2020 zyclonite networx
* http://zyclonite.net
* Developer: Lukas Prettenthaler
*/
package net.zyclonite.nassh.util;
import io.vertx.core.... | Java | src/main/java/net/zyclonite/nassh/util/RequestHelper.java | zyclonite/nassh-relay | gpl-2.0 | 953 | 35 | codeparrot/github-code |
aad6f4b4c3be891ec028159af4542f6aea0abab90f467c4b463aca6e4980291a | /**
* 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/BenchmarkTest05767.java | iammyr/Benchmark | gpl-2.0 | 2,444 | 74 | codeparrot/github-code |
ffa870bc2a84dcff5a006ef6b9eda523ce07d960acfdaa81f995c50ffe180d52 | /*
* Copyright (C) 2008-2015 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... | C++ | src/server/bnetserver/Server/Session.cpp | TonyHoyle/TrinityCore | gpl-2.0 | 44,221 | 1,173 | codeparrot/github-code |
8b9aa70719504a04c4d279ed1195a567403304f6b0f7b9aa844ce129ba820675 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
from django.db import models
from django.apps import apps
from empresa.models import Empresa
import json
import os
import tempfile
import datetime
import requests
class Parking(models.Model):
empresa = models.OneToOneField(Empresa)
... | Python | inventario/models.py | amd77/parker | gpl-2.0 | 7,557 | 214 | codeparrot/github-code |
cfb03121703b067aaf3a1a5c2dd83d7f7d590d55ef3fe39a1742754caf58b46b | // padthv1_ramp.h
//
/****************************************************************************
Copyright (C) 2012-2021, rncbc aka Rui Nuno Capela. 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 ... | C | src/padthv1_ramp.h | rncbc/padthv1 | gpl-2.0 | 5,697 | 295 | codeparrot/github-code |
acb70afcbd932bae161f232df9868db8354d251c3ed17375cd0b78f807e5f3ec | /*
* NETJet mISDN driver
*
* Author Karsten Keil <keil@isdn4linux.de>
*
* Copyright 2009 by Karsten Keil <keil@isdn4linux.de>
*
* 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 Foun... | C | drivers/isdn/hardware/mISDN/netjet.c | evolver56k/xpenology | gpl-2.0 | 29,370 | 1,164 | codeparrot/github-code |
9aa90ed0da37d9cdcc07d7faa4eb57580fc8739c1cc5305ed94a6cd53a04471f | /**
\file "Object/inst/channel_collection_type_manager.hh"
Template class for instance_collection's type manager.
$Id: channel_collection_type_manager.hh,v 1.3 2007/04/15 05:52:17 fang Exp $
*/
#ifndef __HAC_OBJECT_INST_CHANNEL_COLLECTION_TYPE_MANAGER_H__
#define __HAC_OBJECT_INST_CHANNEL_COLLECTION_TYPE_MANAGER... | C++ | src/Object/inst/channel_collection_type_manager.hh | fangism/hackt | gpl-2.0 | 3,301 | 122 | codeparrot/github-code |
990f960ea8d806d85058f6292726fc26f37a6f1a369e45b51f3a081403ec023f | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package clay;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.... | Java | src/clay/Things.java | MultiTool/Clay | gpl-2.0 | 9,794 | 270 | codeparrot/github-code |
3976ba0d7d4ccb01e28d769d4361f736cde3435fee553a8fa39b58dec9978d7c | #include "stdafx.h"
#include <textserv.h>
#pragma comment(lib, "riched20.lib")
// These constants are for backward compatibility. They are the
// sizes used for initialization and reset in RichEdit 1.0
namespace DirectUICore {
const LONG cInitTextMax = (32 * 1024) - 1;
EXTERN_C const IID IID_ITextServices = { //... | C++ | DirectUICore/UIRichEdit.cpp | zxlooong/directui | gpl-2.0 | 58,623 | 2,145 | codeparrot/github-code |
c8ce64efa5f1129ea259ab2a3fe03a0c2d1b99d353a3ce760f5a5f4e9a114910 | /*
* ipod_atom.h
*
* Duane Maxwell
* (c) 2005 by Linspire Inc
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later v... | C | lib/libipod/libipod-0.1/src/ipod_atom.h | scs/uclinux | gpl-2.0 | 5,015 | 144 | codeparrot/github-code |
7325fb467893fb00dd8418bcca784c783b7e83b5cacff2b09e4582b842f922e2 | <?php
/**
* Element: Version
* Displays the version check
*
* @package NoNumber Framework
* @version 14.6.9
*
* @author Peter van Westen <peter@nonumber.nl>
* @link http://www.nonumber.nl
* @copyright Copyright © 2014 NoNumber All Rights Reserved
* @license ht... | PHP | plugins/system/nnframework/fields/version.php | bundocba/unitedworld | gpl-2.0 | 1,734 | 73 | codeparrot/github-code |
e9afeea48915ff40d27381a8907098b75f78f43c4c16f0750c2e21f8ab0637a2 | /* ----------------------------------------------------------------------
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/fix_pour.cpp | nchong/ic_liggghts | gpl-2.0 | 25,668 | 796 | codeparrot/github-code |
beb559353a7418e28906693f10a8a7d62b6df35f8f6ec2f22287b93f0d4a7342 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.Composition;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
using ReviveThis.AddIn.WinSock.Entities;
using ReviveThi... | C# | Add-In/Scan/ReviveThis.Net.AddIn.WinSock/LayeredServiceProvider.cs | wdcossey/ReviveThis.Net | gpl-2.0 | 23,269 | 622 | codeparrot/github-code |
59fd8d2a161f39086c125eab86a0343af560beafd963b5c0d16b5be5065bcf59 | package QBit::WebInterface::Test::Request;
use qbit;
use base qw(QBit::WebInterface::Request);
sub http_header {
my ($self, $name) = @_;
my $value = $self->{'headers'}{$name};
return defined($value) ? $value : '';
}
sub method {shift->{'method'}}
sub uri {
my ($self) = @_;
my $result = "/$se... | Perl | t/lib/QBit/WebInterface/Test/Request.pm | QBitFramework/QBit-WebInterface | gpl-2.0 | 769 | 44 | codeparrot/github-code |
bbd95e8de932f0746fe6a2898ef46ac75b968465c607fe140a46e68ecea6005f | <?php if ( is_user_logged_in() ) : ?>
<fieldset>
<label><?php _e( 'Your account', 'wp-job-manager' ); ?></label>
<div class="field account-sign-in">
<?php
$user = wp_get_current_user();
printf( __( 'You are currently signed in as <strong>%s</strong>.', 'wp-job-manager' ), $user->user_login );
?>
... | PHP | wp-content/themes/listable/job_manager/account-signin.php | golfcoastmagazine/golfcoastmagazine | gpl-2.0 | 3,081 | 60 | codeparrot/github-code |
87e72060b15ddfaad6b459304457939f3a127ab9d51ac585fe2b1e62fab5fafa | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="LightButton.cs" company="LeagueSharp">
// Copyright (C) 2015 LeagueSharp
//
// This program is free software: you can redistribute it and/or modify
// it under the terms ... | C# | Core/UI/IMenu/Skins/Light/LightButton.cs | CjShuMoon/TwLS.SDK | gpl-2.0 | 6,951 | 199 | codeparrot/github-code |
fa9eab8886b6b8d5636046f540d0dc4b03b99be001a6a79b0bd97d1c8a8a160c | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 19 17:38:50 2015
@author: deep
"""
from binaryTree import BTree, generateRandomTree, inorder
def largestBST(root):
if root.left is None and root.right is None:
return True, 1, root.value, root.value
if root.left:
isBSTL, sizeL, minL, maxL = large... | Python | Binary-Tree/largest_BST_in_a_binary_tree.py | ddeepak6992/Algorithms | gpl-2.0 | 953 | 41 | codeparrot/github-code |
bee795251abae4f325a91bbd43a693978f0c75d41db73fb5a84d64708ff5f0a9 | package edu.stanford.nlp.parser.lexparser;
import edu.stanford.nlp.trees.CompositeTreeTransformer;
import edu.stanford.nlp.trees.TreebankLanguagePack;
import edu.stanford.nlp.trees.TreeTransformer;
import edu.stanford.nlp.util.Function;
import edu.stanford.nlp.util.ReflectionLoading;
import edu.stanford.nlp.util.Strin... | Java | edu/stanford/nlp/parser/lexparser/Options.java | chbrown/stanford-parser | gpl-2.0 | 45,340 | 1,087 | codeparrot/github-code |
4d9bbef8f85ff286aaa068be36677e82a38516ae05df25d38fa7159c8bbb2d53 | #ifndef TRUE
#define TRUE 1
#endif //TRUE
#ifndef FALSE
#define FALSE 0
#endif //FALSE
#include <plib/ssg.h>
#include <plib/sg.h>
#include <raceman.h>
#include <track.h>
#include "grscene.h"
typedef struct LightInfo
{
int index;
ssgVtxTable *light;
//ssgSimpleState* onState;
//ssgSimpleState* offState;
ssgState... | C++ | src/modules/graphic/ssggraph/grtracklight.cpp | xy008areshsu/speed-dreams-2 | gpl-2.0 | 8,533 | 334 | codeparrot/github-code |
119bcee3f53c1eb9abaf43ec6d6ee6ced9845ea6ab5c01b16c9822fc84ef32bf | define(['jquery','config','base','ajax','checkInput','serializeJson'],function($,config,base,AjaxFunUtils){
var defaultAddr = '';
var init = function(){
getAddress(defaultAddr);
};
//加载模板
var loadhtml = function(){
var telhtml = '<div id="addressbox" class="addressbox">'+
'<form id="addressform" method="po... | JavaScript | moblie/require/js/address.js | 38695248/require-gulp | gpl-2.0 | 18,588 | 576 | codeparrot/github-code |
ed111e22811d63bd2361bd19da2b7ee0ecce43a2574f711467179be1cbd12190 | package org.masterylearning.domain.data;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import org.masterylearning.domain.Entry;
import org.... | Java | backend/src/main/java/org/masterylearning/domain/data/EntryData.java | lanoxx/masterylearning | gpl-2.0 | 1,748 | 50 | codeparrot/github-code |
b6d3ca5d6d9dfaa1d6cd44b3038355cc4deedbbfdf9b5fd6661a71a20ba1a62d | /*-------------------------------------------------------------------------
SDCCBBlock.c - routines to manipulate basic Blocks
Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Pub... | C | src/SDCCBBlock.c | darconeous/sdcc | gpl-2.0 | 24,715 | 844 | codeparrot/github-code |
398af931c5642801b7901bbc8c8750b9724d3c5e6d54791cc4f248b3e17033d2 | /*
* APIC driver for "bigsmp" xAPIC machines with more than 8 virtual CPUs.
*
* Drives the local APIC in "clustered mode".
*/
#include <linux/threads.h>
#include <linux/cpumask.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/dmi.h>
#include <linux/smp.h>
#include <asm/apicdef.h>
#include <asm/... | C | arch/x86/kernel/apic/bigsmp_32.c | DirtyDev/DirtyKernel-ANDROID | gpl-2.0 | 7,117 | 303 | codeparrot/github-code |
a63a2e301d8f5fdfe00f20f0e6c4ab4fb96c024b76f1f8ca5917c1f37ae01e13 | package org.dolphinemu.dolphinemu.features.settings.ui.viewholder;
import android.view.View;
import android.widget.TextView;
import org.dolphinemu.dolphinemu.R;
import org.dolphinemu.dolphinemu.features.settings.model.view.SettingsItem;
import org.dolphinemu.dolphinemu.features.settings.model.view.SliderSetting;
impo... | Java | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/viewholder/SliderViewHolder.java | riking/dolphin | gpl-2.0 | 1,213 | 50 | codeparrot/github-code |
a5eb8e136191b7bfe93ccd03e082dff7fc49aac35f4e6138f546fb978f05b775 | require "core/lib/utils/dev/ews/tree_control/CoreBaseTreeNode"
CoreEWSTreeCtrlTreeNode = CoreEWSTreeCtrlTreeNode or class(CoreBaseTreeNode)
function CoreEWSTreeCtrlTreeNode:init(ews_tree_ctrl, item_id, checkbox_style)
self._checkbox_style = checkbox_style
self._tree_ctrl = assert(ews_tree_ctrl, "nil argument supp... | Lua | core/lib/utils/dev/ews/tree_control/coreewstreectrltreenode.lua | zjohn4/PD2-lua-src | gpl-2.0 | 3,031 | 106 | codeparrot/github-code |
127ec7cedc37331b2a335feb584174459a5bf2a49916f3711ff3a226220b70fc | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) Under one or more
contributor license agreements. See the NOTICE file distributed with
this work for Additional information regarding copyright ownership.
The ASF licenses this file to Y... | C# | AL.Utils/Document/Excel/NPOI/SS/Formula/PTG/RefErrorPtg.cs | alexchentao/AL.Web | gpl-2.0 | 2,556 | 84 | codeparrot/github-code |
5c1cddf58c98e21abb675f590f06c78e74bdc465bd2e81679f92970697ce23bc | /*
* Copyright (c) 2021 Charles University in Prague, Faculty of Arts,
* Institute of the Czech National Corpus
* Copyright (c) 2021 Martin Zimandl <martin.zimandl@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public ... | TypeScript | public/files/js/views/options/general/style.tsx | czcorpus/kontext | gpl-2.0 | 2,389 | 100 | codeparrot/github-code |
4206a0d1ce29634c5ed032c8956da565f793610c478e772081914d066d1f319b | /////////////////////////////////////////////////////////////////////////////
// Name: exec.cpp
// Purpose: exec sample demonstrates wxExecute and related functions
// Author: Vadim Zeitlin
// Modified by:
// Created: 15.01.00
// RCS-ID: $Id: exec.cpp 54352 2008-06-25 07:51:09Z JS $
// Copyrigh... | C++ | ap/gpl/amule/wxWidgets-2.8.12/samples/exec/exec.cpp | hajuuk/R7000 | gpl-2.0 | 34,871 | 1,231 | codeparrot/github-code |
7231ccefbfef4049a7a0f7f3adb830484bbb5c98c93e6feff815fae2f1d29612 | /* This file is part of KDevelop
Copyright 2006 Hamish Rodda <rodda@kde.org>
Copyright 2007-2008 David Nolden <david.nolden.kdevelop@art-master.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published b... | C | language/duchain/identifier.h | blackjack/kdevplatform | gpl-2.0 | 15,129 | 471 | codeparrot/github-code |
4399567ac4708af0e69cc105efef33cb939ae2b51e5896163738f73be0ffb2ec | #!/usr/bin/perl -w
#
# Copyright (C) 2012 Intel Corporation
#
# 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... | Perl | webapps/webui/public_html/tests_execute_manual.pl | Shao-Feng/testkit-manager | gpl-2.0 | 33,217 | 805 | codeparrot/github-code |
5b235aa31d10293e6d2ede30ca211acf66cd87df00a26c55bdb78c5696d4a8ae | <? use \Studip\Button; ?>
<br />
<a name="users"></a>
<form action="<?= $controller->url_for('course/members/edit_accepted/') ?>" method="post" data-dialog="size=50%>
<?= CSRFProtection::tokenTag() ?>
<table class="default collapsable">
<caption>
<span class="actions">
<... | PHP | app/views/course/members/accepted_list.php | ratbird/hope | gpl-2.0 | 6,994 | 132 | codeparrot/github-code |
3bfcc8d17c78fe8ac7bcfc64441967e1761f1eb1d406e3a025607f3a8a9bddcf | /*
* IdeaVim - Vim emulator for IDEs based on the IntelliJ platform
* Copyright (C) 2003-2019 The IdeaVim authors
*
* 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 ... | Java | test/org/jetbrains/plugins/ideavim/action/AutoIndentTest.java | dhleong/ideavim | gpl-2.0 | 5,517 | 159 | codeparrot/github-code |
e342c87888b8f52169de0cf8855b663b6c826acea5ed22d05745d4b9d3cb0456 | /*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... | C++ | src/server/scripts/Spells/spell_hunter.cpp | Multigaming/WoW434 | gpl-2.0 | 30,225 | 762 | codeparrot/github-code |
15dadcbd83b3bb0f7203d6c819dd352d0805e416befad1ddea8b27486a1bf1f4 | /*
* LSpec.java
*
* Created on April 24, 2007, 11:06 PM
*/
package org.das2.qds.util;
import java.util.LinkedHashMap;
import java.util.Map;
import org.das2.datum.Datum;
import org.das2.datum.Units;
import org.das2.qds.ArrayDataSet;
import org.das2.qds.DDataSet;
import org.das2.qds.DataSetUtil;
impo... | Java | QDataSet/src/org/das2/qds/util/LSpec.java | autoplot/app | gpl-2.0 | 16,160 | 395 | codeparrot/github-code |
ef8230e406e6ab1a12da759ce20658cae9924d0b2855df32b1645e2a1ef2cb63 | //{{COMPONENT_IMPORT_STMTS
package MetaRepos;
import java.util.Enumeration;
import java.util.Vector;
import versata.common.*;
import versata.common.vstrace.*;
import versata.vls.*;
import java.util.*;
import java.math.*;
import versata.vls.cache.*;
//END_COMPONENT_IMPORT_STMTS}}
/*
** Activity
*/
//{{COMPONENT_RULE... | Java | Source/VLS/DataObjects/WorkFlow/ActivityImpl.java | tylerm007/MetaRepos | gpl-2.0 | 947 | 62 | codeparrot/github-code |
8c4ed0afef45042c73c30a4261c7f4802bd6f3217c57bc4149258f0b7f7c9ed3 | /*
* Copyright (c) 1988, 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain th... | C | src/slirp/cksum.c | mborjesson/PCem-wx-SDL2 | gpl-2.0 | 4,063 | 138 | codeparrot/github-code |
29d631e0543740c2a882d37039d719378b27a734320de12b54ffe1063d0a8016 | /*
* Copyright (C) 2020 Emweb bv, Herent, Belgium.
*
* See the LICENSE file for terms of use.
*/
package eu.webtoolkit.jwt.auth;
import eu.webtoolkit.jwt.*;
import eu.webtoolkit.jwt.chart.*;
import eu.webtoolkit.jwt.servlet.*;
import eu.webtoolkit.jwt.utils.*;
import java.io.*;
import java.lang.ref.*;
import java.... | Java | src/eu/webtoolkit/jwt/auth/UpdatePasswordWidget.java | kdeforche/jwt | gpl-2.0 | 7,657 | 219 | codeparrot/github-code |
5445e098523351ad6dd53b25cc338dfab1d46b859126e45510f5bf3acf18b7ad | /*
* linux/include/linux/cpufreq.h
*
* Copyright (C) 2001 Russell King
* (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
*
* 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 F... | C | include/linux/cpufreq.h | NieNs/IM-A840S-kernel | gpl-2.0 | 13,231 | 421 | codeparrot/github-code |
1dd42297557091ef8fb2301ba582ff317c8a2c7a7d1fc19d3fa096be37abd992 | <?php
/**
* @file
* Returns the HTML for a single Drupal page.
*
* Complete documentation for this file is available online.
* @see https://drupal.org/node/1728148
*/
?>
<div id="page">
<div class="top">
<?php print render($page['top']); ?>
</div>
<header class="header" id="header" role="banner">
<?php i... | PHP | sites/all/themes/mythemes/templates/page.tpl.php | tarasdj/intetrane | gpl-2.0 | 3,104 | 102 | codeparrot/github-code |
519a0cf808ff71c529318961c13ee1deaa3b0e9a76278bfa1f40f4054c87e6d7 | #include "MeshRenderer.h"
#include "Data/ShapeMesh.h"
#include "Data/Utility.h"
#include <GLBlaat/GLFramebuffer.h>
#include <GLBlaat/GLProgram.h>
#include <GLBlaat/GLTextureManager.h>
#include <GLBlaat/GLUtility.h>
#include <NQVTK/Rendering/Camera.h>
#include <cassert>
#include <sstream>
namespace D... | C++ | Rendering/MeshRenderer.cpp | bwrrp/shapespaceexplorer | gpl-2.0 | 6,514 | 256 | codeparrot/github-code |
f7df12e226e6920ed2b94865a798ec5909ed62d0cf5e2ce200ba7686efa5421c | // third-party deps
import { reduce, sortBy, isNil, isEmpty, mapValues, each, Dictionary } from 'lodash';
import { IHttpService, ILogService, IPromise } from 'angular';
import * as moment from 'moment';
type ILocalStorageService = angular.local.storage.ILocalStorageService;
// internal deps
import { ILineItem } from '... | TypeScript | src/app.ng1/models/price.ts | lunches-platform/fe | gpl-2.0 | 9,779 | 317 | codeparrot/github-code |
a68a1de3843d4b8965668b4dde4db61ab96b96c1c0ed29efb653593aa4dd1dca | /*____________________________________________________________________________
FreeAmp - The Free MP3 Player
Portions copyright (C) 1998-1999 EMusic.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as ... | C | io/esound/include/esoundpmo.h | mayhem/freeamp | gpl-2.0 | 2,372 | 78 | codeparrot/github-code |
7ebe2398f4eed157e0de1dcce51ebddad81c50b06137b18b5389fb594bee7ab3 | /*
Copyright (c) 2002 XFree86 Inc
*/
#ifndef _XRESPROTO_H
#define _XRESPROTO_H
#define XRES_MAJOR_VERSION 1
#define XRES_MINOR_VERSION 2
#define XRES_NAME "X-Resource"
/* v1.0 */
#define X_XResQueryVersion 0
#define X_XResQueryClients 1
#define X_XResQueryClientResources 2
#define X_XRe... | C | unix/Xvnc/include/xorgproto/include/X11/extensions/XResproto.h | TurboVNC/turbovnc | gpl-2.0 | 5,168 | 228 | codeparrot/github-code |
35afdbb75ae906ee6dba87b3938e78c3d6cd5fd73d5b7755df06b855d05bb092 | using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Mobiles;
using System.Collections;
using Server.Targeting;
using Server.Engines.XmlSpawner2;
/*
** LastManStandingGauntlet
** ArteGordon
** updated 12/05/04
**
** used to set up a last man standing pvp challenge game through the XmlPoin... | C# | Scripts/Engines/XmlSpawner/XMLSpawner Extras/XmlPoints/ChallengeGames/LastManStandingGauntlet.cs | jackuoll/Pre-AOS-RunUO | gpl-2.0 | 16,786 | 461 | codeparrot/github-code |
eea06e5fb67bb0d981834ab421b783e9c0186ce41026d27bf8e4188e9f27cb0b | <?php
/**
* Jobs for XOOPS
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program is distributed in the hope that ... | PHP | admin/delcomp.php | mambax7/jobs | gpl-2.0 | 3,003 | 78 | codeparrot/github-code |
112210863ca9a1ed1dec65d4b01f4c3ed7806069d4057b4f7b655b1e7a714553 | #!/usr/bin/python3
import argparse
import traceback
import sys
import netaddr
import requests
from flask import Flask, request
from jinja2 import Environment, FileSystemLoader, TemplateNotFound
endpoints = "read/networks read/oplog read/snmp read/switches-management public/distro-tree public/config public/dhcp publ... | Python | templating/templating.py | tech-server/gondul | gpl-2.0 | 3,215 | 90 | codeparrot/github-code |
9c2584fd21741ef6f9c664c78eea9bf52fc91cb6b6585687cfdbb2ab891efbfc | /*
* Copyright (C) 2013 Leszek Mzyk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Java | src/com/convenientbanner/CBLoopViewPager.java | bairutai/SinaWeibo | gpl-2.0 | 6,473 | 194 | codeparrot/github-code |
d65d39d39ec50a675a4915c4650bdc450531871b556807bd60be7d205320704e | <!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Maya Chopra's portfolio</title>
<!-- Viewport meta tag to prevent iPhone from scaling our page -->
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="./css/style.css"/>
<!-- Normalize hide a... | HTML | RWD_All_Student_Assets/All_Lesson_Files/09_Lesson_files/portfolio_start.html | givan/aquentprofile | gpl-2.0 | 5,212 | 182 | codeparrot/github-code |
7bc800ad3f25c4a65211e5715df82471f8c115aefbf4a26a1b4a051d10177cd9 | /****************************************************************************
*
* Copyright (C) 2014 Cisco and/or its affiliates. All rights reserved.
* Copyright (C) 2003-2013 Sourcefire, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | C | src/preprocessors/HttpInspect/server/hi_server.c | adwisatya/snort_ids | gpl-2.0 | 62,915 | 1,917 | codeparrot/github-code |
c1ee9dad0ad5bea8d8497e1b5d2e491b3e044b38b796e3af6a56271dc406a966 | <?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit when accessed directly
/**
* @since 1.0
*/
class CPAC_WC_Column_Post_Price extends CPAC_Column_Default {
/**
* @see CPAC_Column::init()
* @since 1.0
*/
public function init() {
parent::init();
// define properties
$this->properties['type'] = 'price';... | PHP | data/plugins/cac-addon-woocommerce/classes/column/product/price.php | kappuccino/wp-fast-start | gpl-2.0 | 1,058 | 47 | codeparrot/github-code |
7fd172be70a0c876fe244832576e510a69aeb4b9323fb3662107f239ab8a39fd | using iTextSharp.text;
using iTextSharp.text.pdf;
namespace Discovery.iTextSharp.infrastructure.helper
{
internal static class Layout
{
internal static Font GetBaseFont()
{
return FontFactory.GetFont("Segoe UI", 12.0f, BaseColor.BLACK);
}
internal static Font GetSm... | C# | src/Discovery.iTextSharp/infrastructure/helper/Layout.cs | corycoffee/discovery | gpl-2.0 | 1,536 | 52 | codeparrot/github-code |
2d470d5b4ebbbcbd2811c75ab58c8d83938c2c39988dbcacfbb0cae086926526 | /*
Jeeps wrapper for Garmin serial protocol.
Copyright (C) 2002, 2003, 2004, 2005, 2006 Robert Lipe, robertlipe@usa.net
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... | C | garmin.c | twpayne/gpsbabel-flytec | gpl-2.0 | 28,718 | 1,138 | codeparrot/github-code |
a97be6465939260657c91abb9da3b7f7f0c3c3ca18cd9bca8d8aaf0242991fcc | /*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | C | sound/soc/mediatek/mt_soc_audio_6580/mt_soc_digital_type.h | nik124seleznev/ZC500TG | gpl-2.0 | 23,326 | 903 | codeparrot/github-code |
42c86c1c41dc4653c706d0ffbf26afd0aae4980ba166939d04980d64907cf338 | /**
* Copyright (c) 2001-2002. Department of Family Medicine, McMaster University. All Rights Reserved.
* This software is published under the GPL GNU General Public License.
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published... | Java | src/main/java/org/oscarehr/common/model/ConsultationRequest.java | scoophealth/oscar | gpl-2.0 | 10,011 | 408 | codeparrot/github-code |
2849ab5384ce940fffefdfc6ec4d70bb00df8119432291a1da70d79eb3b7a81d | /*
* linksync commander -- Command line interface to LinkSync
* Copyright (C) 2016 Andrew Duncan
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* found in the file LICENSE that should have accompanied this file.
*
* This program is... | JavaScript | lib/sync.js | lakesite/linksync-commander | gpl-2.0 | 3,119 | 101 | codeparrot/github-code |
83933a4b634b0d72f307c18a4f7686968126165c3e46f36b83dc996a77a18019 | namespace Clinica.Listados_Estadisticos
{
partial class Pantalla2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/... | C# | src/Clinica/Listados Estadisticos/Pantalla2.Designer.cs | eldie1984/GESTIONAR | gpl-2.0 | 1,195 | 38 | codeparrot/github-code |
eb45ef566a80c82e600b17145cd8c31296776cea5416a02614328fb114059960 | //============================================================================
//ZedGraph Class Library - A Flexible Line Graph/Bar Graph Library in C#
//Copyright © 2004 John Champion
//
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU Lesser General Public
//Lice... | C# | TDMaker/Lib/BDInfo/ZedGraph/CurveList.cs | McoreD/TDMaker | gpl-2.0 | 23,063 | 746 | codeparrot/github-code |
c57284c54fbd854c97ca318a3ba86fbfaf4ca370483cd666e491e4ce1da7a2ca | /*
* Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any la... | C++ | src/server/scripts/Commands/cs_ban.cpp | madisodr/legacy-core | gpl-2.0 | 30,765 | 754 | codeparrot/github-code |
0c22b78167ecda05c3c8f94ab21745a64e64ef3f9beaf68d78fd22045694164a | VERSION = 3
PATCHLEVEL = 4
SUBLEVEL = 82
EXTRAVERSION = +
NAME = Saber-toothed Squirrel
# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
# More info can be located in ./README
# Comments in this file are targeted only to the developer, do not
# expect to learn how to build the kernel reading th... | Makefile | Makefile | talnoah/Lemur_kernel | gpl-2.0 | 56,076 | 1,598 | codeparrot/github-code |
194362a91e5b03d763a7886892d4bedc75c7b58eb523272f968ae042ca40f3bb | package model.device;
/**
* Title : The Mobile Robot Explorer Simulation Environment v2.0
* Copyright: GNU General Public License as published by the Free Software Foundation
* Company : Hanze University of Applied Sciences
*
* @author Dustin Meijer (2012)
* @author Alexander Jeurissen (2012)
... | Java | leertaak3DynamicProgramming/leertaak4MobileRobot/src/model/device/Device.java | TranceCake/SoftwareEngineering | gpl-2.0 | 3,923 | 164 | codeparrot/github-code |
3fe469a3b581c4a73354b8edd87d1f775b9fe2bf5277747bb86b62f462776f7d | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | 3rdParty_sources/commons-validator/org/apache/commons/validator/routines/AbstractCalendarValidator.java | lamsfoundation/lams | gpl-2.0 | 16,430 | 428 | codeparrot/github-code |
235f9a2a3fa6e19cf80860adefb70549c1ef8842e0a68167b8164334979598ce | /**
@file
Host-key wrapper.
@if license
Copyright (C) 2010, 2013 Alexander Lamaison <awl03@doc.ic.ac.uk>
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... | C++ | ssh/host_key.hpp | alamaison/swish | gpl-2.0 | 8,313 | 299 | codeparrot/github-code |
e8dd82bea6e5cede9173fe9b1394096431eb6846854a568701a306e32a242598 | <?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<title>Makerway</title>
<script type="text/javascript" src="/passon... | PHP | makerway/Application/Runtime/Cache/Home/15d459605ca1272097c790b0a93a119a.php | huran2014/huran.github.io | gpl-2.0 | 2,623 | 61 | codeparrot/github-code |
2bfa0c3263a40ba6a172d41d6fe8e3e3d9467423c13393cac97145aad2bf33e8 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.cgc.bean;
import java.sql.Timestamp;
/**
*
* @author com02
*/
public class MessageBean {
private int runno;
private String message_id;
private String message_detail;
private String statu... | Java | src/com/cgc/bean/MessageBean.java | beckpalmx/ImportTask | gpl-2.0 | 3,859 | 196 | codeparrot/github-code |
5b48d7ca473213c46cea0ee82ca45365bbf82bed91eb969fe21e77046dbc5028 | package org.openstreetmap.osmaxil;
import org.apache.log4j.Logger;
import org.openstreetmap.osmaxil.flow.__AbstractImportFlow;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;
@Compone... | Java | src/main/java/org/openstreetmap/osmaxil/Application.java | vince-from-nice/osmaxil | gpl-2.0 | 1,528 | 47 | codeparrot/github-code |
029c8671cb96efe00caf5a7e7cd2fe086b53b0fc53cd11b492fb0fde562d8c57 | <?php
/**
* Do authentication of users and session management
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2002-2005 Markus Westphal,
* 2006-2008 Malcol... | PHP | inc/inc.Authentication.php | FavioGalvis/DIDOC | gpl-2.0 | 3,495 | 109 | codeparrot/github-code |
036426ef595d8cd1dd1493f5b4f0c40000ac6f4074a59a5b410b1eafdfd90be9 | /**
* Created by kliu on 10/10/2015.
*/
var jsonschema = require("jsonschema");
var utils = {};
utils.validateJSON = function(schema, json){
var result = jsonschema.validate(json, schema);
if(result.errors.length == 0){
return json;
}else{
throw new Error("message not valid, " + result.e... | JavaScript | utils.js | adleida/adx-nodejs | gpl-2.0 | 1,027 | 40 | codeparrot/github-code |
81c1b07b0d240aadb65bf263af492d846bf0f4088cfe4b2f3c0d480e00934170 | package com.aw.swing.mvp.action;
import com.aw.swing.mvp.Presenter;
import com.aw.swing.mvp.navigation.Flow;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;
import java.util.Iterator;
... | Java | atux-jrcp/src/main/java/com/aw/swing/mvp/action/BackBeanProvider.java | AlanGuerraQuispe/SisAtuxPerfumeria | gpl-2.0 | 1,684 | 57 | codeparrot/github-code |
4289a3efc927faff8b8eb87f5d10e40b6bb62da52fcba3a75839da792eaec858 | /* This file is part of the KDE project
Copyright 2007 Stefan Nikolaus <stefan.nikolaus@kdemail.net>
Copyright (C) 2008 Thomas Zander <zander@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Fr... | C++ | sheets/Binding.cpp | TheTypoMaster/calligra | gpl-2.0 | 8,416 | 282 | codeparrot/github-code |
a2cc31fdd57c3a66eb174e344dca2f9e78a2eaf83bb09dacfb742ed3bc3bf512 | from kvmap.code.projections import *
from urllib2 import urlopen
from httplib import HTTPConnection
from threading import Thread
from kivy.logger import Logger
from kivy.loader import Loader
from os.path import join, dirname
import time, os
import hashlib
try:
from pyproj import Proj
from xml.etree import Element... | Python | kvmap/overlays/WMSOverlayServer.py | jchome/LocalGuide-Mobile | gpl-2.0 | 5,614 | 161 | codeparrot/github-code |
6a99b4d24b6302b92a93a0db5a09f9ac0163628ef432f0af38336d64df4a6c62 | #include "../vidhrdw/cbuster.cpp"
/***************************************************************************
Crude Buster (World version FX) (c) 1990 Data East Corporation
Crude Buster (World version FU) (c) 1990 Data East Corporation
Crude Buster (Japanese version) (c) 1990 Data East Corporation
Two Cru... | C++ | src/drivers/cbuster.cpp | Neo2003/mame4all-pi-adv | gpl-2.0 | 23,569 | 653 | codeparrot/github-code |
5bf39a4096362a61512296e567dbb97b3da17608a961448193d17542abfde9f3 | <?php
class FaqController extends Controller {
protected $logAction = false;
public function accessRules() {
return array(
array(
'allow',
'users'=>array('*'),
),
);
}
public function actionIndex() {
$categoryId = $this->iGet('category_id', 1);
$model = new Faq();
$model-... | PHP | protected/controllers/FaqController.php | CubingChina/cubingchina | gpl-2.0 | 841 | 35 | codeparrot/github-code |
cd044bf537fcac3e5138afeec1ab0d618f5004378ff1a3363fc29ab7d1bd4472 | <?php
namespace Drupal\simple_columns\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
/**
* Defines the "simplecolumns" plugin.
*
* @CKEditorPlugin(
* id = "simplecolumns",
* label = @Translation("Simple Columns"),
* module = "cke_columns"
* )
*/
class Si... | PHP | web/modules/custom/simple_columns/src/Plugin/CKEditorPlugin/SimpleColumns.php | ilrWebServices/ilr | gpl-2.0 | 1,127 | 50 | codeparrot/github-code |
f40fb84ea2e61742802485ecd5239855c049f20c5aa432364237fc88d5c01cb7 | /* global Ext, ViewStateManager, App */
Ext.define( 'App.ux.StatefulTabPanel', {
extend: 'Ext.tab.Panel',
alias: 'widget.statefultabpanel',
initComponent: function()
{
this.iconCls = this.iconCls || this.itemId;
this.on( 'afterrender', this.onAfterRender, this);
this.callParent( arguments);
},
... | JavaScript | web/app/ux/StatefulTabPanel.js | liancastellon/cellstore-admin | gpl-2.0 | 1,141 | 58 | codeparrot/github-code |
2758689df420dd8624cc4a439ef8ada397915da86135b3a66e2f563eb3aa23a9 | #pragma once
/* DEFINES *******************************************************************/
/* formerly located in kdbg/kdb_symbols.c */
#define TAG_KDBS 'SBDK'
#define TAG_KDBG 'GBDK'
/* TYPES *********************************************************************/
/* from kdb.c */
typedef struct _KDB_KTRAP_FRAME
{... | C | ntoskrnl/kdbg/kdb.h | sunnyden/reactos | gpl-2.0 | 6,041 | 272 | codeparrot/github-code |
6b184bddcc27d781be3c063fe84199b6646fd7c383be36aa7b224161f2b160f1 | {% extends "base.html" %}
{% block title %}Arch Linux - RSS Feeds{% endblock %}
{% block content %}
<div id="rss-feeds" class="box">
<h2>RSS Feeds</h2>
<p>Several RSS feeds are available for consumption from the Arch website.
The majority of these are package-related and allow feeds to be customized
... | HTML | templates/public/feeds.html | brain0/archweb | gpl-2.0 | 6,419 | 124 | codeparrot/github-code |
9f20f90468c155004d4e154fc29c31bfce78c84719514ccb6b2568b69bde791c | <?php
/**
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licensing details.
*/
namespace ACP3\Modules\ACP3\Newsletter\Controller\Frontend\Index;
use ACP3\Core;
use ACP3\Modules\ACP3\Newsletter;
class Activate extends Core\Controller\AbstractFrontendAction
{
... | PHP | Controller/Frontend/Index/Activate.php | ACP3/module-newsletter | gpl-2.0 | 2,433 | 71 | codeparrot/github-code |
9f9d3359988dc84ffb3ae6e3b43f062b70d72bb47682313099464bf4fd89e074 | #pragma once
#include"agk.h"
#include "GF.h"
#include "World.h"
#include "Input.h"
#include "Item.h"
#include "Weapon.h"
#include "LUA/lua.hpp"
//#include "Script.h"
class Player
{
public:
Player(void);
~Player(void);
void begin(World* world);
void load(uString name);
void setupLuaFunctions();
void spawn... | C | MedievalPlat/Player.h | TheZoq2/JungleSeals | gpl-2.0 | 1,229 | 98 | codeparrot/github-code |
d31a314d46819a42de74125cfe7b59756c494087e6261b82691e85e2fc4ad935 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Liquidsoap 1.1.1 :: Audio Stream Gene... | HTML | website/orig/legacy/doc-1.1.1/scripts/set_json_metadata.html | savonet/liquidsoap-full | gpl-2.0 | 3,296 | 104 | codeparrot/github-code |
84aa50186cd0fb28e1e9781edac6b6a53ee884bfb328884c7602abcfbbf270a0 | <?php
// +-------------------------------------------------+
// © 2002-2012 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: cms_module_carousel_datasource_notices.class.php,v 1.5 2012-11-15 09:47:40 arenou Exp $
if (stristr($_... | PHP | web_appli/pmb/cms/modules/carousel/datasources/cms_module_carousel_datasource_notices.class.php | Gambiit/pmb-on-docker | gpl-2.0 | 2,475 | 74 | codeparrot/github-code |
cc698536444b3242a3ce174598d45561b525fae2f5a4e6e86bb2bdef05c5664a | /*
Greeter module for xdm
Copyright (C) 1997, 1998 Steffen Hansen <hansen@kde.org>
Copyright (C) 2000-2003 Oswald Buddenhagen <ossi@kde.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 ... | C++ | kdm/kfrontend/kgapp.cpp | iegor/kdebase | gpl-2.0 | 5,569 | 254 | codeparrot/github-code |
89d872fb82c8774d17cb9f0f845964dd217d43c0571e3b0669afbd692a2b195e | <?php
class Bbpress_Meta_Commands extends WP_CLI_Command {
/**
* This will install bbPress metas plugin required table and migrate data over.
*
* ## EXAMPLES
*
* wp bbpress_metas install
*/
public function install() {
global $wpdb;
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
// ... | PHP | inc/wp-cli-commands.php | mainsocial/bbpress-meta | gpl-2.0 | 2,895 | 97 | codeparrot/github-code |
448e55db8376324e029bb1296f29959808d03b661fcf65b7353c03065139c94b | $(function(){
$('.home .bxslider').bxSlider({
auto: true,
mode: 'fade'
});
/**
* QUICK REFERENCE
*/
// check if the window bindings should be applied (only if the element is present)
var $reference = $('.reference-wrap');
if($reference.length > 0){
// toggle the menu
$('.reference-wrap h3').click(... | JavaScript | html/js/scripts.js | naka211/tellusavokater | gpl-2.0 | 3,481 | 114 | codeparrot/github-code |
2b2a52af18c6c871856f0cf0011ccf560017950c6fd871a97025d94d2dd17aae | package com.meetup.agileim.web.rest.errors;
import java.util.List;
import org.springframework.dao.ConcurrencyFailureException;
import org.springframework.http.HttpStatus;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.validation.BindingResult;
import org.springframework.v... | Java | src/main/java/com/meetup/agileim/web/rest/errors/ExceptionTranslator.java | lazcatluc/agileim | gpl-2.0 | 2,547 | 68 | codeparrot/github-code |
30abda7a8d2e1adbea63524ab84107031bfbae44b94f98a6af76c5d1b4f22a3d | import ctypes.wintypes as ctypes
import braille
import brailleInput
import globalPluginHandler
import scriptHandler
import inputCore
import api
INPUT_MOUSE = 0
INPUT_KEYBOARD = 1
INPUT_HARDWARE = 2
MAPVK_VK_TO_VSC = 0
KEYEVENTF_EXTENDEDKEY = 0x0001
KEYEVENTF_KEYUP = 0x0002
KEYEVENT_SCANCODE = 0x0008
KEY... | Python | addon/globalPlugins/remoteClient/input.py | nishimotz/NVDARemote | gpl-2.0 | 3,588 | 130 | codeparrot/github-code |
d5b53220755c2d2fd25f345c8a5d0427fb08369ffe0aa0934c974626dd1003f8 | using System;
using System.Linq;
using System.Net;
using LeagueSharp;
using LeagueSharp.Common;
namespace D_MissF
{
class Program
{
private const string ChampionName = "MissFortune";
private static Orbwalking.Orbwalker _orbwalker;
private static Spell _q, _w, _e, _r;
private... | C# | D-MissF/Program.cs | evilbaby/HuyNK-Ass | gpl-2.0 | 24,401 | 522 | codeparrot/github-code |
e42df4ca5eefdfc850efea332c6dd783d498210ce7921ffd2d8911dc6fb40ba4 | #!/bin/sh
#
# apache-install-configure-ssl-v01.sh (2 August 2013)
# GeekPeek.Net scripts - Install and configure Apache Virtual Hosts and SSL
#
# INFO: This script was created and tested on fresh CentOS 6.4 minimal installation. This script enables you
# to install and configure Apache, Apache Virtual Hosts (HTTP, HT... | Shell | geekpeek/english/apache-install-configure-ssl-v01.sh | kernt/inshelp | gpl-2.0 | 12,015 | 212 | codeparrot/github-code |
5c1a69654b87b49ef26d752aa2d0bc5ddd059082f9a2a1804c810377d463fa78 | /**
@file project_euler_problem_15.cpp
@author Terence Henriod
Project Euler Problem 15
@brief Solves the following problem for the general case of any power of 2
(within system limitations):
"2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
What is the sum of the d... | C++ | Project-Euler/project_euler_problem_16.cpp | T-R0D/JustForFun | gpl-2.0 | 2,633 | 107 | codeparrot/github-code |
0f443fe3e804e8b853a52be8d78e6084b75f701aeb6543e5e38f4bc97e4eb554 | package DDB::PROGRAM::BLAST::PSSM;
$VERSION = 1.00;
use strict;
use vars qw( $AUTOLOAD $obj_table );
use Carp;
use DDB::UTIL;
{
$obj_table = "$ddb_global{commondb}.sequencePSSM";
my %_attr_data = (
_id => ['','read/write'],
_sequence_key => ['','read/write'],
_file => ['','read/write'],
_insert_date => ['','r... | Perl | PROGRAM/BLAST/PSSM.pm | dpenfoldbrown/DDB_ginzu | gpl-2.0 | 6,778 | 209 | codeparrot/github-code |
a35dff3d8a59e789ed21694fd6ffb827e369466a5ca0fbc432e1ee9d7ac2bd06 | // Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include <algorithm>
#include <mbedtls/error.h>
#ifndef _WIN32
#include <arpa/inet.h>
#include <unistd.h>
#endif
#include "Common/FileUtil.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "... | C++ | Source/Core/Core/IPC_HLE/WII_Socket.cpp | sigmabeta/dolphin | gpl-2.0 | 22,315 | 717 | codeparrot/github-code |
a9ac827036999ded9a9d1257c9d8c641c3befab732da8f58b1ac85326574697f | #ifndef PCB_H
#define PCB_H
/*******************************************************************
OS Eercises - Homework 5 - HOST dispatcher
pcb - process control block functions for HOST dispatcher
PcbPtr startPcb(PcbPtr process) - start (or restart) a process
PcbPtr suspendPcb(PcbPtr process) - suspend a pr... | C | cse381-OperatingSystems/hw5-dispatcher/Resource Management/pcb.h | nijave/miami-university | gpl-2.0 | 2,292 | 92 | codeparrot/github-code |
03cb5727fc7d99f6d81e7658eb8c3c353a40ab43682604bad27bec761320953a | /*
* linux/arch/arm/kernel/traps.c
*
* Copyright (C) 1995-2009 Russell King
* Fragments that appear the same as linux/arch/i386/kernel/traps.c (C) Linus Torvalds
*
* 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
* publ... | C | arch/arm/kernel/traps.c | xobs/novena-linux.aqs | gpl-2.0 | 22,416 | 904 | codeparrot/github-code |
035360471efd106b68e75ea3424cccd6971ee3d934a6285209bee492cba8e940 | <?php
global $wpdb, $byt_multi_language_count;
function bookyourtravel_register_location_post_type() {
$locations_permalink_slug = of_get_option('locations_permalink_slug', 'locations');
$labels = array(
'name' => _x( 'Locations', 'Post Type General Name', 'bookyourtravel' ),
'singu... | PHP | wp-content/themes/BookYourTravel/includes/post_types/locations.php | stanleyr15/samter | gpl-2.0 | 3,435 | 106 | codeparrot/github-code |
842b9c57da5befa16e442f60f4b0baaf9052c14b564b9121f48826bb7128f92e | from django import template
from django.template.loader_tags import BaseIncludeNode
from django.template import Template
from django.conf import settings
from pages.plugins import html_to_template_text, SearchBoxNode
from pages.plugins import LinkNode, EmbedCodeNode
from pages import models
from django.utils.text impo... | Python | editkit/pages/templatetags/pages_tags.py | mivanov/editkit | gpl-2.0 | 6,764 | 195 | codeparrot/github-code |
0a162cdc578d5bb8f5ccac27ee5f17ade18acfc22eb6dcc23f149954b729d25a | package ru.ncedu.ecomm.servlets.services.passwordRecovery;
import ru.ncedu.ecomm.data.models.dao.UserDAOObject;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import static ru.ncedu.ecomm.data.DAOFactory.getDAOFactory;
public class PasswordRecoveryService {
private final static Str... | Java | src/main/java/ru/ncedu/ecomm/servlets/services/passwordRecovery/PasswordRecoveryService.java | ncedu-tlt/ecomm | gpl-3.0 | 2,999 | 85 | codeparrot/github-code |
0e21a198dd1f5b930108c44608cde9605868539fb103569a2f0f851083a2ec1f | using System;
using System.Globalization;
#if WINDOWS_UWP || WINDOWS_APP || WINDOWS_PHONE_APP
using Windows.UI;
using Windows.UI.Xaml.Media;
#endif
#if WINDOWS_DESKTOP
using System.Windows.Data;
using System.Windows.Media;
#endif
namespace SmokSmog.Extensions
{
public static class ColorExtensions
{
... | C# | Core/SmokSmog.Core.Shared/Extensions/ColorExtensions.cs | SmokSmog/smoksmog-windows | gpl-3.0 | 1,545 | 51 | codeparrot/github-code |
dd5863036c0f76e0fc789e7e43dcb20328baa0991cc5ff098e3d65616543c439 | /*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2009 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your... | C | grub-core/lib/i386/relocator.c | albertz/grub-fuse | gpl-3.0 | 7,620 | 271 | codeparrot/github-code |
5757f34dd3884da827eb418f15985ec56066693e1d0600da49ccc6ffcdb54a6c | /*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... | C++ | alethzero/DownloadView.cpp | arkpar/cpp-ethereum | gpl-3.0 | 2,368 | 84 | codeparrot/github-code |
2b9cbfe6bca784d19e3e37e85defe37d5491379487980ee6dd1cf29597951b96 |
%% AAPT Physics Bowl Exams Questions
%%----------------------------------------
%% This section has XX problems
%% PhysicsBowl 2015
%%----------------------------------------
\element{aapt}{ %% Bowl-D2
\begin{question}{bowl-2015-q10}
For the circuit shown, the three light bulbs have identical resistance $R$,
... | TeX | qbank/aapt/Bowl-D2.tex | jphafner/physicsAMC | gpl-3.0 | 31,420 | 871 | codeparrot/github-code |
7703d11c7fa189a7772dc1674d4b7bdc3399311b096f48544e958b02a41fb39d | <?php
/**
* Properties
*
* @package Cherry_Framework
* @subpackage Model
* @author Cherry Team <cherryframework@gmail.com>
* @copyright Copyright (c) 2012 - 2016, Cherry Team
* @link http://www.cherryframework.com/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
/**
* Mod... | PHP | models/model-properties.php | gcofficial/tm-real-estate | gpl-3.0 | 24,914 | 1,031 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.