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 |
|---|---|---|---|---|---|---|---|---|
b3e6c74881ca6872a31036dad9ba604930a10754c893a77842a80aeddf084652 | /*
* Copyright (c) 2013 Patrick Meyer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dist... | Java | src/main/java/com/itemanalysis/jmetrik/stats/irt/estimation/IrtPersonScoringAnalysis.java | meyerjp3/jmetrik | gpl-2.0 | 20,384 | 477 | codeparrot/github-code |
9e606bd03e4351613a5efe8e755e4937d30fb631e677ab0a4d04b9dbaf1b007d | // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
// FGx FlightGear Launcher // xprocess.cpp
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
// (c) 2010-2012
// Yves Sablonier, Pete Morgan
// Geoff McLane
// GNU GPLv2, see main.cpp and shipped licence.txt for further ... | C++ | src/xobjects/xprocess.cpp | fgx/fgx | gpl-2.0 | 3,626 | 138 | codeparrot/github-code |
877500902192fef9ca8b89a70d6118f6cd29036bf1529b8c273d265cc08d1bdd | #include <iostream>
#include <string>
#include <vector>
#include <list>
using namespace std;
template <typename T>
void printContainer(const T & var)
{
for(auto &e : var)
cout << e << " ";
cout << endl;
}
int main(int argc, char *argv[])
{
vector<string> v;
// read from standard input, putting each word... | C++ | Part.II.TheCplusplusLibrary/Chapter9.SequentialContainers/9.3.1.AddingElementsToASequentialContainer.cpp | Passw/CPlusPlusPrimer5th | gpl-2.0 | 1,605 | 70 | codeparrot/github-code |
ef67f015e73d3e7854f75379e7eef350d2a31eed1644d91d4eccd331260605d1 | #ifndef PLANAR_SURFACE_HPP
#define PLANAR_SURFACE_HPP
#include <boost/bind.hpp>
#include "Surface.hpp"
#include "Plane.hpp"
template<typename Ttraits_>
class PlanarSurface
: public BasicSurfaceImpl<Ttraits_, Plane>
{
public:
typedef BasicSurfaceImpl<Ttraits_, Plane> base_type;
typedef typename base_type::... | C++ | PlanarSurface.hpp | ecell/epdp_ecell4_impl_temporary | gpl-2.0 | 2,071 | 67 | codeparrot/github-code |
12d863bd162761b7b7db6f0da4b4851f3e2c8f3c41ce024abca76566e5eb323e | /*
* Copyright (C) 2014 Red Hat
*
* This file is part of openconnect-gui.
*
* openconnect-gui is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any ... | C | src/server_storage.h | openconnect/openconnect-gui | gpl-2.0 | 3,371 | 128 | codeparrot/github-code |
b0e6bacc72fc6dedfd11eba5b3c8f8be3e9946c3be5d7f89ccda660e147ee46b | <?php
/**
* NoNumber Framework Helper File: Cache
*
* @package NoNumber Framework
* @version 15.6.1
*
* @author Peter van Westen <peter@nonumber.nl>
* @link http://www.nonumber.nl
* @copyright Copyright © 2015 NoNumber All Rights Reserved
* @license http://www.... | PHP | plugins/system/nnframework/helpers/cache.php | Raul-mz/web-erpcya | gpl-2.0 | 804 | 42 | codeparrot/github-code |
742d9aa5ce986e6d84dc6aef73d0949b9085f50c252ed2136572bf613d1babb7 | /*
* Based on libkmod-hash.c from libkmod - interface to kernel module operations
* Copyright (C) 2011-2012 ProFUSION embedded systems
* Copyright (C) 2013 Leandro Pereira <leandro@hardinfo.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Genera... | C | common/hash.c | schets/lwan | gpl-2.0 | 10,028 | 415 | codeparrot/github-code |
6798da547726bc3ab2cc912bb836d0321991376f1fcf79d4e76b589aa7c0de05 | package org.telegram.messenger.exoplayer.hls;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.r... | Java | TMessagesProj/src/main/java/org/telegram/messenger/exoplayer/hls/HlsPlaylistParser.java | mihangram/Source | gpl-2.0 | 13,630 | 388 | codeparrot/github-code |
5cd57ec083cbf6b82ce5d9e09abb194608d4b3a443769e5159fb196635bb90e1 | /*
Copyright (C) 2005-2009 Michel de Boer <michel@twinklephone.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... | C++ | src/abstract_dialog.cpp | LubosD/twinkle | gpl-2.0 | 9,120 | 325 | codeparrot/github-code |
e7ec5f68f5aa99204ee5722ee4edd05a329cc3ac3b3745f5664dc201ec9f91d0 | <?php
namespace Epsi\Bundle\BlogBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
/**
* {@inheritDoc}
*/
class BlogCon... | PHP | blog/src/Epsi/Bundle/BlogBundle/Controller/BlogController.php | mveyrenc/mveyrenc.github.io | gpl-2.0 | 1,803 | 82 | codeparrot/github-code |
feeb056aa4c524d72d108716bf406b5d81420b639ad7b358f1e0af258453c2f5 | #region Using directives
using System;
using System.Collections;
using System.Data;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.MD.Runtime.Implement;
#endregion
namespace UFIDA.U9.Cust.FJGX.SupplierDocLineListDQryUIModel
{
[Serializable]
public partial class SupplierDocLineListDQryUIModelModel : UIModel
... | C# | 广鑫/XMGX_Code/SupplierQueryUI/Model/SupplierDocLineListDQryUIModelModel.cs | amazingbow/yonyou | gpl-2.0 | 4,681 | 220 | codeparrot/github-code |
0bd806ce90ae7cb97c1e14cd7027058e795f24d0c4aa8d90d6df6eb6fad5a908 | #include <iostream>
#include<string>
using namespace std;
int main()
{
cout << "Please enter your name: ";
string name;
cin >> name;
const string greeting = "Hello, " + name + "!";
const int pad = 2;
const int rows = 2 * pad + 3;
const string::size_type cols = greeting.size() + 2 * pad + 2;
for (int r = 0; ... | C++ | chapter02/text_2-1-2.cpp | JieHe0205/Accelerated-CPP | gpl-2.0 | 711 | 48 | codeparrot/github-code |
067783ee019a794532ca0625118fb9d2c22fe41a531f4d7e23fe0c4ae9189400 | /*
* $Id: cpl_nonsig.c,v 1.4 2003/09/01 17:44:12 bogdan Exp $
*
* Copyright (C) 2001-2003 Fhg Fokus
*
* This file is part of ser, a free SIP server.
*
* ser 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 Foundat... | C | user/ser/modules/cpl-c/cpl_nonsig.c | atmark-techno/atmark-dist | gpl-2.0 | 7,407 | 275 | codeparrot/github-code |
40f63be1f6aa2fa15a2f333bdde5685c486c633bbefe638de011140937ac5340 | /*
* Copyright (c) 1998-2011 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms o... | Java | modules/kernel/src/com/caucho/xml/readers/Utf8Reader.java | dlitz/resin | gpl-2.0 | 4,175 | 165 | codeparrot/github-code |
dbda932a353aade92b5ef283c5581438fd3f07b580a11d0dd1ac80c19607c3c9 | /*
* This file Copyright (C) Mnemosyne LLC
*
* This file is licensed by the GPL version 2. Works owned by the
* Transmission project are granted a special exemption to clause 2 (b)
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* th... | C | transmissionbt/gtk/filter.c | RaoulDebaze/TransmissionSync | gpl-2.0 | 31,031 | 1,011 | codeparrot/github-code |
b498ce71adc385795b4a20e416480d615e4528f982a8f74c906025f864c7caed | var sortablescaptcha = {
init: function() {
// JavaScript is enabled, so show the normal version
$('#enable_js').css('display', 'block');
// Make divs sortable
$("#sortable1, #sortable2").sortable({
connectWith: '.sortables_captcha_list',
items: 'li',
forcePlaceholderSize: true,
placeholder: ... | JavaScript | styles/prosilver/template/js/sortablescaptcha.js | Mauron/Sortables-CAPTCHA-Plugin | gpl-2.0 | 3,220 | 95 | codeparrot/github-code |
a909a5c7858641a62a0907f24f132cb2ccc70b645c05a3ab263edb44cc003d4a | <?php
/**
* @package Joomla.Site
* @subpackage mod_banners
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
require_once JPATH_ROOT . '/components/com_banners/... | PHP | templates/bestquality/html/mod_banners/default.php | alons182/best-quality | gpl-2.0 | 4,396 | 115 | codeparrot/github-code |
822b8a3ecb0c907b34e34b21c130c6897626153bc57457ece09391e8ba117506 | /*
* FSDefineJPEGImage2.cpp
* Transform SWF
*
* Created by smackay on Tue Feb 25 2003.
* Copyright (c) 2001-2003 Flagstone Software Ltd. All rights reserved.
*
* This file contains Original Code and/or Modifications of Original Code as defined in
* and that are subject to the Flagstone Software Source Lic... | C++ | src/flagStonePort/transform-cxx-bsd/transform/FSDefineJPEGImage2.cpp | ozkanpakdil/f4l | gpl-2.0 | 7,622 | 259 | codeparrot/github-code |
8ee35543abd89a6cceb233768e95b9160e3e8ff4bbd90a039f2c2bae661b3031 | <?php namespace XoopsModules\Xsitemap\Common;
/*
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 th... | PHP | htdocs/modules/xsitemap/class/Common/Breadcrumb.php | mambax7/257 | gpl-2.0 | 2,209 | 81 | codeparrot/github-code |
53eb7a8a4a0b05481f07a4f615966e93cae7974c6ef2a229d530ff8ae5168fcd | #include <linux/module.h>
#include <linux/vermagic.h>
#include <linux/compiler.h>
MODULE_INFO(vermagic, VERMAGIC_STRING);
struct module __this_module
__attribute__((section(".gnu.linkonce.this_module"))) = {
.name = KBUILD_MODNAME,
.init = init_module,
#ifdef CONFIG_MODULE_UNLOAD
.exit = cleanup_module,
#endif
.a... | C | drivers/input/touchscreen/gslX680.mod.c | qubir/PhoenixA20_linux_sourcecode | gpl-2.0 | 2,431 | 82 | codeparrot/github-code |
24485cbaa80f1a936b882bb797c859ccf32c48e1cbf1c56507e0c3e2229fff98 | package edu.cmu.tetrad.algcomparison.algorithm.continuous.dag;
import edu.cmu.tetrad.algcomparison.algorithm.Algorithm;
import edu.cmu.tetrad.data.DataModel;
import edu.cmu.tetrad.data.DataUtils;
import edu.cmu.tetrad.util.Parameters;
import edu.cmu.tetrad.data.DataType;
import edu.cmu.tetrad.graph.Graph;
import java... | Java | tetrad-lib/src/main/java/edu/cmu/tetrad/algcomparison/algorithm/continuous/dag/Lingam.java | lizziesilver/tetrad | gpl-2.0 | 1,110 | 45 | codeparrot/github-code |
bc1333645b7d7550382de74fdaebe5ef895e855f9c810384ef7ae825e00146b1 |
/* net/atm/resources.h - ATM-related resources */
/* Written 1995-1998 by Werner Almesberger, EPFL LRC/ICA */
#ifndef NET_ATM_RESOURCES_H
#define NET_ATM_RESOURCES_H
#include <linux/atmdev.h>
#include <linux/mutex.h>
extern struct list_head atm_devs;
extern struct mutex atm_dev_mutex;
int atm_dev_ioctl(unsigned... | C | kernel/net/atm/resources.h | luckasfb/OT_903D-kernel-2.6.35.7 | gpl-2.0 | 997 | 49 | codeparrot/github-code |
9044e5f8a91031c516f1a312a6fd0e75fba9733cce95ec2def7c5f095821b002 | /*
* PROJECT: ReactOS Sound System "MME Buddy" NT4 Library
* LICENSE: GPL - See COPYING in the top level directory
* FILE: lib/drivers/sound/mment4/registry.c
*
* PURPOSE: Registry operation helper for audio device drivers.
*
* PROGRAMMERS: Andrew Greenwood (silverblade@reactos.org)
*/
#inclu... | C | sdk/lib/drivers/sound/mment4/registry.c | sunnyden/reactos | gpl-2.0 | 3,443 | 134 | codeparrot/github-code |
b2cc98d72117d65a364b243b2fd2d45ddfe256cd238cee65114d3a3d5ade83e0 | import __init__
import math
import numpy as np
class Point:
'''Point at 3D. Some method for it. '''
def __init__ (self, x=0.0, y=0.0 ,z=0.0):
self.x=x
self.y=y
self.z=z
def coors(self):
coor=(self.x,self.y,self.z)
return coor
def dist_to(self,a... | Python | python/basic/HHGeometry.py | platinhom/CADDHom | gpl-2.0 | 2,547 | 73 | codeparrot/github-code |
84f5c681d0cc53d0451327b05aca3b4bf4972b1286763dd718cf6a67c079b7a9 | <?php
/**
* Copyright 2006 - 2014 TubePress LLC (http://tubepress.com)
*
* This file is part of TubePress (http://tubepress.com)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http... | PHP | wp-content/plugins/tubepress/src/main/php/add-ons/vimeo/classes/tubepress/addons/vimeo/impl/listeners/http/VimeoOauthRequestListener.php | eltondias/SiteMica | gpl-2.0 | 1,708 | 52 | codeparrot/github-code |
2f96a6825ecbd37455081ad6fee485b57e71a79150dda0ebd2af8f693fec0c55 | /* ------------------------------------------------------------------
libofa -- the Open Fingerprint Architecture library
Copyright (C) 2006 Predixis Corporation
All rights reserved.
-------------------------------------------------------------------*/
// FILE: "ofa.cpp"
// MODULE: Top level calling code an... | C++ | libofa/ofa.cpp | jtentor/libofa | gpl-2.0 | 8,731 | 342 | codeparrot/github-code |
391053b807e80dc53320420e80d0bfa2e189ff415a8a6a573009b94a4beebbd1 | <?php get_header(); ?>
<script type="text/javascript">
function submitsearch()
{
document.getElementById('toursearchform').submit();
}
</script>
<div id="searchtour">
<h2 id="generictitle">Private Guided Tours</h2>
<h1>Book a Tour</h1>
<p class="top"><strong>CREATE YOUR DAY-TO-DAY ITINERARY:</str... | PHP | wp-content/themes/default/searchtour.php | davidsevcik/ppg_website | gpl-2.0 | 8,383 | 157 | codeparrot/github-code |
78b027d8851325c9875280516bf90c72533ac3470dee9cefe3298ba03a3e2ae2 | /////////////////////////////////////////////////////////////////////////////
// Name: src/msw/printdlg.cpp
// Purpose: wxPrintDialog, wxPageSetupDialog
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id: printdlg.cpp 70516 2012-02-05 15:45:03Z VZ $
// Copyright:... | C++ | Externals/wxWidgets3/src/msw/printdlg.cpp | Zombiebest/Dolphin | gpl-2.0 | 39,491 | 1,133 | codeparrot/github-code |
9ec4ba8ded4691eb585dd524995410629ef1fb80f10ead7e9ab4a37e62b6841c | module.exports = twitAuthStrategy;
var passport = require('passport');
var TwitterStrategy = require('passport-twitter').Strategy;
var request = require('request');
passport.serializeUser(function(user, done) {
done(null, user);
});
passport.deserializeUser(function(obj, done) {
done(null, obj);
});
function tw... | JavaScript | general/twitterAuthStrategy.js | CaptureYou/captureyou-www | gpl-2.0 | 1,440 | 60 | codeparrot/github-code |
50019ae1ccf7cf18bfe11cbfc61c40d9305eb9f7e54b5a97a5764b62939deb18 | /*
* mcp23017.c - 16 bit I/O ports
*
* Derived from drivers/i2c/chips/pca9539.c
* Derived from drivers/gpio/gpio-pca953x.c
*
* 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... | C | drivers/gpio/mcp23017.c | rfbsoft/polievanie_kernel | gpl-2.0 | 21,258 | 869 | codeparrot/github-code |
907becfac188dbfde7a07d5403179d0aab5e9b8a7d178dc29da33e3393b2e48d | (function (global) {
var DiseaseDetailsViewModel,
DiseaseDetailsService,
app = global.app = global.app || {};
DiseaseDetailsViewModel = kendo.data.ObservableObject.extend({
imageId: "",
name: "",
control: "",
symptoms: "",
images: null,
init: function () {
var that = this;
that.imag... | JavaScript | LeafZone/scripts/modules/diseases/disease-details.js | paveldk/leafzone-mobile | gpl-2.0 | 1,862 | 79 | codeparrot/github-code |
6ebd0809ddb5917a8c4a90f3f8432f287bd2643a7d3b35242f91866fca00e234 | package org.telegram.messenger;
import android.os.AsyncTask;
import com.aniways.service.utils.AniwaysServiceUtils;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.NameValuePair;
import org.apache.http.StatusLine;
import org.apache.http.client.ClientProtocolException;
im... | Java | TMessagesProj/src/main/java/org/telegram/messenger/RequestTask.java | Aniways/Telegram | gpl-2.0 | 2,798 | 73 | codeparrot/github-code |
44a83f8d8613501aca6db0f0ce52c54fca042e47b29729ed9ea9d1b8d27dc0d9 | #region Header
// Vorspire _,-'/-'/ GumpImageShadow.cs
// . __,-; ,'( '/
// \. `-.__`-._`:_,-._ _ , . ``
// `:-._,------' ` _,`--` -: `_ , ` ,' :
// `---..__,,--' (C) 2016 ` -'. -'
// # Vita-Nex [http://core.vita-nex.com] #
// {o)xxx|===============- # -==============... | C# | Scripts/VitaNex/Core/SuperGumps/Framework/Base/Entries/GumpImageShadow.cs | Andries1985/Shards-of-Nagash | gpl-2.0 | 3,642 | 127 | codeparrot/github-code |
7aeae646fc6376a29dfa6b422842a9a3f30f245b9bbea39f5aaf52761022bddf | /*
* Linux cfgp2p driver
*
* Copyright (C) 1999-2012, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License version 2 (the "GPL"),
* avail... | C | drivers/net/wireless/bcmdhd/wl_cfgp2p.c | bauner/kernel_n7000_tw_jb | gpl-2.0 | 68,787 | 2,388 | codeparrot/github-code |
a5400344ed823504e1cbd66e96dae0dcd72b63add6cd14ceddbb6a2b96e59944 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>海报画廊</title>
<style type="text/css">
*{padding:0;margin:0;}
body{color:#555;
background-color: #fff;
font-size:14px;
font-family:'Avenir Next','Lantinghei SC';
/*这是针对chrome中的文字设置,抗文字锯齿,使文字看起来更清晰*/
-webkit-font-smoothing:ant... | HTML | gallery realization/index.html | Lengjunxiaogu/lengxiaogu1 | gpl-2.0 | 7,424 | 203 | codeparrot/github-code |
9c13882d52fb35a393a0ec7b597fdf2c08a6931d0793db76b81780cab490606a | /*
(c) Copyright 2001-2008 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by Denis Oliver Kropp <dok@directfb.org>,
Andreas Hundt <andi@fischlustig.de>,
Sven Neumann <neo@di... | C | lib/DirectFB/DirectFB-1.2.3/systems/x11/primary.c | ZHAW-INES/rioxo-uClinux-dist | gpl-2.0 | 16,853 | 584 | codeparrot/github-code |
79fb841dc211245a8bb495a3f47e43e2872c8a89b8a4eebfcc3c19f132f0ef09 | /* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
package freenet.node;
import freenet.crypt.Util;
import freenet.io.comm.*;
import freenet.io.xfer.BulkReceiver;
impo... | Java | src/freenet/node/OpennetManager.java | deepstupid/fred | gpl-2.0 | 67,553 | 1,481 | codeparrot/github-code |
ee30839d17e4536f86cec175ba3375e9e50a271af0eca52316eac82850a64fa1 | #include "Header.h"
using namespace std;
using namespace cv;
string face_cascade_name = "/home/cheeku/Projects/opencv-2.4.9/data/haarcascades/haarcascade_frontalface_alt.xml";//location of face detector in haar cascades
CascadeClassifier face_cascade;//specify a new CascadeClassifier which will detect faces
int fi... | C++ | sandbox/ayush/Header.cpp | cheekujodhpur/cs101 | gpl-2.0 | 7,086 | 160 | codeparrot/github-code |
168dc487e7436adbe40abbba05fdd7c53384950845db5c92e4f3d72b56a1b2fd | <?php
/**
* File containing the Date field value converter class
*
* @copyright Copyright (C) 1999-2013 eZ Systems AS. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
* @version //autogentag//
*/
namespace eZ\Publish\Core\Persistence\Legacy\Content\FieldValue... | PHP | eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/Date.php | gbentley/ezpublish-kernel | gpl-2.0 | 4,250 | 127 | codeparrot/github-code |
8ea390bbe8aa21765231bf81383f6d0157fd7c04040b5b3a9cd0a2bde968a821 | #ifndef QTMAIN_H
#define QTMAIN_H
#include <QTouchEvent>
#include <QMouseEvent>
#include "gfx_es2/glsl_program.h"
#include <QGLWidget>
#include <QAudioOutput>
#include <QAudioFormat>
#ifdef USING_GLES2
#include <QAccelerometer>
QTM_USE_NAMESPACE
#endif
#include "base/display.h"
#include "base/logging.h"
#include "ba... | C | native/base/QtMain.h | ChomperT/ppsspp4webos | gpl-2.0 | 5,006 | 222 | codeparrot/github-code |
906d37f4f855fd3687d1ed3e73dc87779d258f33284373dbdd27d810a897ed27 | /*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2012 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2012 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(R) is... | Java | opennms-config/src/main/java/org/opennms/netmgt/config/NotificationFactory.java | opennms-forge/poc-nms-core | gpl-2.0 | 5,019 | 160 | codeparrot/github-code |
8e04133c7f15c164459be1200a28fb2c03e94ac00e0e731532dac3af62f5bdda | package com.amlogic;
import java.util.ArrayList;
import java.util.List;
import org.geometerplus.zlibrary.ui.android.library.ZLAndroidActivity;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.AbsoluteLayout;
import com.amlogic.pmt.Resolution;
import com.amlogic.... | Java | packages/MusicPlayer/src/com/amlogic/MenuUIOp.java | giannoug/android_device_jxd_s7300b | gpl-2.0 | 7,183 | 308 | codeparrot/github-code |
1d91b56efefd9eb32fb1a5c34739bdcee8fc3912ee5d073e0cd5267661534984 | // Password strength meter
function passwordStrength(password1, username, password2) {
var shortPass = 1, badPass = 2, goodPass = 3, strongPass = 4, mismatch = 5;
var symbolSize = 0, natLog, score, complexity = 0, valid = false, options;
var MIN_COMPLEXITY = 40; // 12 chars with Upper, Lower and Number
var MED_... | JavaScript | js/password-strength-meter.js | dachisgroupuk/dg-security | gpl-2.0 | 6,703 | 196 | codeparrot/github-code |
89bc1966c535b74acbc59654edb3360294c546537209a9c709add3a4c7571f4f | /*
==============================================================================
This file is part of the ambix Ambisonic plug-in suite.
Copyright (c) 2013/2014 - Matthias Kronlachner
www.matthiaskronlachner.com
Permission is granted to use this software under the terms of:
the GPL v2 (or any later version)
... | C++ | ambix_encoder/Source/SphereOpenGL.cpp | kronihias/ambix | gpl-2.0 | 6,961 | 252 | codeparrot/github-code |
6b7c1040be51eaef8179a0716fa5d59469ddb23084fc0d5a586b8ea56aef9b2a | /*
Copyright (C) 2008 Erik Lax
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed ... | C++ | src/poitem.cpp | eriklax/potatis | gpl-2.0 | 1,491 | 66 | codeparrot/github-code |
ff0de89e85bad5e5ab447d907f04d0069b961189379bc95c929d6a880024e3d3 | /*
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
... | C++ | src/game/QuestHandler.cpp | valens735/pandore | gpl-2.0 | 22,200 | 647 | codeparrot/github-code |
f297017843af25216881b334fcff04ec43149d3d1d627742c5b814c800c7c606 | <script language="Javascript">
function disable(disableIt)
{
document.addschedulepolicyform.opponentplayer1.disabled = disableIt;
document.addschedulepolicyform.opponentplayer2.disabled = disableIt;
}
function toggle()
{
if(document.addschedulepolicyform.starttime.disabled != "" ){
... | PHP | templates/add_scheduling_policy_form.php | sportsynergy/clubpro | gpl-2.0 | 7,744 | 187 | codeparrot/github-code |
f8082f212ee1d6da41eafa01a8ec66b61ea8626d5662fa4db88c5bc9ae6d4ff0 | #ifndef __INA_APP_VIEWS_COMPARTMENTVIEW_HH__
#define __INA_APP_VIEWS_COMPARTMENTVIEW_HH__
#include <QWidget>
#include <QTableView>
#include <QPushButton>
#include "../doctree/compartmentsitem.hh"
#include "../models/expressiondelegate.hh"
/** A simple view for the compartments. */
class CompartmentView : public QWi... | C++ | app/views/compartmentview.hh | hmatuschek/intrinsic-noise-analyzer | gpl-2.0 | 1,441 | 48 | codeparrot/github-code |
b59c57c6b417a0b0c75051277ca3f17e2ca7d57a12a04c111ccda429bc6270c6 | /***************************************************************************
* Copyright (C) 2007 by PCMan (Hong Jen Yee) *
* pcman.tw@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it u... | C | src/image-view.c | geekless/spicview | gpl-2.0 | 12,245 | 394 | codeparrot/github-code |
f05b0dfda04504b2fd5dcde1ee3d837a598a1080c4fc50c01a9f6a96d7985b7b | /* This file is part of the KDE project
* Copyright (C) 2007-2008 Jan Hambrecht <jaham@gmx.net>
*
* 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 Free Software Foundation; either
* version 2 of the License,... | C | plugins/karbonplugins/tools/KarbonGradientTool.h | TheTypoMaster/calligra | gpl-2.0 | 2,761 | 80 | codeparrot/github-code |
8d942fdad22ba6d0e8fedbebbce0d404dc117d4cbce609e41be88982aa262d7e | <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
.KEYW {color: #933;}
.COMM {color: #bbb; font-style: italic;}
.NUMB {color: #393;}
.STRN {color: #393;}
.REGX {color: #339;}
.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
</style></head><body><pre><s... | HTML | js/webodf/webodf.js-0.5.0/docs/symbols/src/lib_ops_OpApplyHyperlink.js.html | wunderlins/learning | gpl-2.0 | 27,494 | 165 | codeparrot/github-code |
f470e804ffe292694724d6ae87edafe1dd347ac952f2f2291a41bafb9b811ca9 | /* This file is part of the KDE project
Copyright (C) 2001, 2002, 2003, 2004 Nicolas GOUTTE <goutte@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 Free Software Foundation; either
version 2 of... | C++ | filters/kword/oowriter/ExportFilter.cc | KDE/koffice | gpl-2.0 | 69,347 | 1,951 | codeparrot/github-code |
6a4c7dee9737c5bb63bf24ba81671e08445d94b1e0d7e232612500288d414470 | # Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2011 Nick Hall
#
# 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 late... | Python | gramps/plugins/gramplet/repositorydetails.py | pmghalvorsen/gramps_branch | gpl-2.0 | 5,196 | 151 | codeparrot/github-code |
e1e68378d5471cc5ce479462b139fea0a1d9522f72ed505ca1c70ce957c330af | .controller('articleSection',[
'$scope',
'$sce',
'api',
'columns',
'tealium',
function ($scope,$sce,api,columns,tealium){
var url = window.location.href,
paths = window.location.pathname.split('/'),
section = paths[2];
$scope.test = true
$scope.ready = false;
$scope.pageNumber = 1;
$scope.... | JavaScript | grunt/DEV/app/templates/discover/section-controller.js | dannyoz/tls | gpl-2.0 | 2,317 | 111 | codeparrot/github-code |
61ebe58d1ed5b98a3cb7e2c00f68c3fc68851127f6b0c13f9cc1d55f97d91d51 | #include "Report.h"
#include <unistd.h>
map<string, string> MakeMap(string a, string b)
{
map<string, string> m;
m.insert(std::pair<string, string>(a, b));
return m;
}
Report &Report::GetInstance()
{
static Report instance;
return instance;
}
void Report::AddReport(string report, Result result)
... | C++ | src/Report/Report.cpp | Voyager2718/Command-Executor | gpl-2.0 | 1,487 | 68 | codeparrot/github-code |
4ac69f2a1ffbb4c99dd473ec6b92e5a9b4a33a10e34924ace267b3074144122f | package org.openstreetmap.osmaxil.model.misc;
import java.util.ArrayList;
import java.util.List;
import org.openstreetmap.osmaxil.model.ElementType;
public class ElementIdWithParentFlags {
Long osmId;
ElementType type;
List<Parent> parents = new ArrayList<>();
public class Parent {
privat... | Java | src/main/java/org/openstreetmap/osmaxil/model/misc/ElementIdWithParentFlags.java | vince-from-nice/osmaxil | gpl-2.0 | 999 | 64 | codeparrot/github-code |
78e11072d5cfc490f0bf23b8b8e693c3990fc8bb37146b446a494bc0711623ae | using System;
using System.Collections.Generic;
using System.Linq;
using Tsc.Domain.InternalServices;
namespace Tsc.Domain
{
public class Tournament : IIdentifiable
{
private List<Team> _participants = new List<Team>();
private List<Round> _rounds = new List<Round>();
private readonly... | C# | Tsc.Server/Tsc.Domain/Tournament.cs | gpehartz/tsc | gpl-2.0 | 3,910 | 116 | codeparrot/github-code |
ed70b869c57d8bf306df2aeb26ad0c4dd04b6ab9b5f2e012228e04e0f04c1241 | <?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: func_ascodocpsy.inc.php,v 1.5 2014-01-10 14:21:07 mbertin Exp $
if (stristr($_SERVER['REQUEST_URI'], "... | PHP | web_appli/pmb/admin/import/func_ascodocpsy.inc.php | Gambiit/pmb-on-docker | gpl-2.0 | 11,801 | 316 | codeparrot/github-code |
5b52c994de335cfcb770c3e751136d33392488e8e78cc9616325fd63735b71f3 | /*
* Definitions for the 'struct sk_buff' memory handlers.
*
* Authors:
* Alan Cox, <gw4pts@gw4pts.ampr.org>
* Florian La Roche, <rzsfl@rz.uni-sb.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Soft... | C | include/linux/skbuff.h | kmihelich/linux-smileplug | gpl-2.0 | 61,167 | 2,165 | codeparrot/github-code |
8f75cac80b88c963d6524348a4486364b438fc2803a1eee3d6ca6f2f50eaacf6 | /**************************************************
mbot - mirage irc bot
***************************************************
This file is part of mbot.
mbot 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 Soft... | C++ | src/mbot.cpp | ticklemynausea/mbot | gpl-2.0 | 2,914 | 131 | codeparrot/github-code |
fc48b69d9f18b45e39cd91a85096fe21f95eea3762ae2bb02af88081d0b0c031 | <?php
// These are our callback functions for each settings option GROUP described above.
function jwl_setting_section_callback_function1() {
_e('<p> <strong><u>Description</u></strong><span style="margin-left:200px;"><strong><u>Enable</u></strong></span><span style="margin-left:20px;"><stro... | PHP | wp-content/plugins/ultimate-tinymce/options_callback_functions.php | workprojects/autostar | gpl-2.0 | 85,397 | 1,086 | codeparrot/github-code |
f1927e68e5b3cc873b75a6bbe78d3a34c41c7c788041337d74d04cabeefac31c | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import pkg_resources
import html
from PyQt5.QtCore import Qt
from PyQt5.QtCore import QTextCodec
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtGui import QKeySequence
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QWidget
from PyQt5.QtWidgets import QVB... | Python | modules/core/ace_editor/ace_editor.py | lheido/Mojuru | gpl-3.0 | 6,201 | 184 | codeparrot/github-code |
dc44b4608eb19efc5cbf99d09521d030b9eed9e976bd2f2a897b06a6b0e5ccf8 | // Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim... | C | Detectors/MUON/MID/CTF/include/MIDCTF/CTFCoder.h | sawenzel/AliceO2 | gpl-3.0 | 5,913 | 159 | codeparrot/github-code |
a7932160641d76ce1c83cd3fadeb50c85403f4cad97145c74f678e0a730499fe | /*jslint nomen: true, white: true */
/*global PS */
"use strict";
var selectedPiece = null,
availableMoves = [],
state = {},
unicodePieces = {
// Unicode chess pieces.
black: {
king: 0x265A,
queen: 0x265B,
rook: 0x265C,
bishop: 0x265D,
knight: 0x265E,
pawn: 0x265F
},
... | JavaScript | game.js | grahamboree/passant | gpl-3.0 | 9,260 | 415 | codeparrot/github-code |
01835bd316427ca51caba095dcc1880776a3a2a12b44361adec828826f3bdedc | using System.Collections.Generic;
using System.Drawing;
using System.IO;
using Kontract.Interface;
using Kontract.IO;
namespace archive_level5.X3
{
public class X3Manager : IArchiveManager
{
private X3 _format = null;
#region Properties
// Information
public string Name => "X... | C# | src/archive/archive_level5/X3Manager.cs | IcySon55/Kuriimu | gpl-3.0 | 2,610 | 93 | codeparrot/github-code |
be4fea908086407efafcd48c87f19b35eb30998dc82b5b9e0dca7712bb167def | /*********************************************************************
* Copyright (c) 2017 TCT DEVs *
* Distributed under the GPLv3.0 software license *
* contact us before using our code *
**********************************************************************/
#incl... | C++ | src/MCP/MCP03/txOut.cpp | TrustChainTechnologies/metachain | gpl-3.0 | 912 | 40 | codeparrot/github-code |
a7bd52a395c0bd52760ad5371e5668e1b0d90b3cba8f58f55e39ccfc1230d9f5 |
--- Predator-prey dynamics.
-- @arg data.dim The x and y dimensions of space.
-- @arg data.finalTime The final simulation time.
-- @image predatorprey.bmp
PredatorPrey = Model{
finalTime = 500,
dim = 30,
init = function(model)
model.cell = Cell{
state = "pasture",
count = 0,
who = function(self)
if s... | Lua | lua/PredatorPrey.lua | pedro-andrade-inpe/logo | gpl-3.0 | 3,030 | 157 | codeparrot/github-code |
4d6a4617494e67edb1671cf5dc77579fe2f159d17aa234f9e19d4fdba2c8b607 | package me.ccrama.redditslide.ui.settings;
import android.app.Activity;
import android.widget.TextView;
import androidx.appcompat.widget.SwitchCompat;
import me.ccrama.redditslide.R;
import me.ccrama.redditslide.SettingValues;
public class SettingsCommentsFragment {
private final Activity context;
... | Java | app/src/main/java/me/ccrama/redditslide/ui/settings/SettingsCommentsFragment.java | ccrama/Slide | gpl-3.0 | 11,325 | 186 | codeparrot/github-code |
73a83ed23787ade24ca18aa194572d7802ce7224350eccc8208dd6d7c8c4ad22 | import pycurl
import cStringIO
import random
import HTMLParser
def generate_TAXII_header(xml, ssl=True):
headers = {
"Content-Type": "application/xml",
"Content-Length": str(len(xml)),
"User-Agent": "TAXII Client Application",
"Accept": "application/xml",
"X-TAXII-Accept": "urn:taxii... | Python | taxiigenerator.py | hazmalware/sharephish | gpl-3.0 | 3,968 | 115 | codeparrot/github-code |
667e371e5431a99bef4e2c2da0551f4eac699663781e8ae149aeb491032d8027 | import fs from 'fs';
import path from 'path';
import { DestinationAction } from './actions';
import Reporter from './reporter';
export default class DestinationFileAction extends DestinationAction {
constructor(config) {
super(config);
this.folder = config.fs.folder;
this.pretty = config.fs.pretty || fal... | JavaScript | app/destination-file-action.js | StatEngine/spade | gpl-3.0 | 1,083 | 38 | codeparrot/github-code |
ee447b323ca88ca67b532cb53dda8279fd491e536643307e3adb48bfa923d5f0 | <?php
class ModelCustomerCustomField extends Model {
public function addCustomField($data) {
$this->db->query("INSERT INTO `" . DB_PREFIX . "custom_field` SET type = '" . $this->db->escape($data['type']) . "', value = '" . $this->db->escape($data['value']) . "', validation = '" . $this->db->escape($data['validation... | PHP | public_html/admin/model/customer/custom_field.php | fahrettinaksoy/anet-support-center | gpl-3.0 | 11,309 | 169 | codeparrot/github-code |
08cf97eb861c4b2bfeb3db8e64b12fba7a7de2e0c057ec9d44860c4fe1ba4a2b | /* Lips of Suna
* Copyright© 2007-2010 Lips of Suna development team.
*
* Lips of Suna 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 3 of the
* License, or (at your option) any la... | C | src/lipsofsuna/model/model-bone.h | bsmr-games/lipsofsuna | gpl-3.0 | 1,316 | 48 | codeparrot/github-code |
e7e7196d64e8e2e3e2cc7c5921a42a2561593850063212dbcd429f58847de1e8 | using System;
using System.Data;
using System.Text;
using CMS.Helpers;
using CMS.Localization;
using CMS.MacroEngine;
using CMS.PortalControls;
using CMS.SiteProvider;
using CMS.DocumentEngine;
using CMS.Taxonomy;
using CMS.DataEngine;
public partial class CMSWebParts_TaggingCategories_TagCloud : CMSAbstractWebPart
... | C# | CMS/CMSWebParts/TaggingCategories/TagCloud.ascx.cs | CCChapel/ccchapel.com | gpl-3.0 | 16,571 | 587 | codeparrot/github-code |
5d37ca7ea6ddd27e14fde055b40b479d230503c42463d36fe4d66a1d27b3ba16 | /*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2016 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* J... | Java | lib/JasperReport/src/net/sf/jasperreports/charts/design/JRDesignTimePeriodSeries.java | MHTaleb/Encologim | gpl-3.0 | 4,290 | 137 | codeparrot/github-code |
c156143b285fb9ba4796c50a735d925c33f70d8e2ca283a473e47a19142dc754 | <?php
require_once(dirname(__FILE__). '/../../setup.php');
require_once($BASE_DIR .'core/web_diario.php');
$conn = new connection_factory($param_conn);
$periodo_id = (string) $_GET['periodo_id'];
$curso_id = (int) $_GET['curso_id'];
$diario_id = (int) $_GET['diario_id'];
if (empty($periodo_id) OR $curso_... | PHP | app/web_diario/coordenacao/lista_diarios_coordenacao.php | wasare/sistema-academico-eprotec | gpl-3.0 | 10,565 | 303 | codeparrot/github-code |
aaa1ba814c62a9db97a606f1c038144d63973ed8f7ca3cb9f3f3795545552178 | package org.lucidfox.questfiller.parser;
import static org.lucidfox.questfiller.parser.ParseUtils.collectTextUntilNextTag;
import static org.lucidfox.questfiller.parser.ParseUtils.getFirstWithOwnText;
import static org.lucidfox.questfiller.parser.ParseUtils.getRegexGroup;
import java.util.ArrayList;
import java.util.... | Java | src/main/java/org/lucidfox/questfiller/parser/MissionParser.java | lucidfox/questfiller | gpl-3.0 | 8,860 | 249 | codeparrot/github-code |
4bd8c50457f7acb77612956c8dbc78dc4c4fba13c022c479116832496d33edd8 | // This file is part of tralloc. Copyright (C) 2013 Andrew Aladjev aladjev.andrew@gmail.com
// tralloc is free software: you can redistribute it and/or modify it under the terms of the GNU General Lesser Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) an... | C | src/tralloc/helpers/string/extensions.c | andrew-aladev/tralloc | gpl-3.0 | 3,058 | 68 | codeparrot/github-code |
6b6ad3a57bfe1fcb823ea24b8fb5046f93fec94a2d9ad15fd1489b3c950c725c | /*
* Copyright 2012 Friedrich Große, Paul Seiferth,
* Sebastian Starroske, Yannik Stein
*
* This file is part of MetaHeuristics4Java.
*
* MetaHeuristics4Java is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fr... | Java | MetaHeuristics4Java/src/main/java/de/mh4j/solver/genetic/mutation/AggregateMutator.java | MH4J/MetaHeuristics4Java | gpl-3.0 | 1,757 | 61 | codeparrot/github-code |
e1ac9882fc0319f3fcde85169a504fda96bb95167f37dfead12e38e2f00a4440 | /*
* Grakn - A Distributed Semantic Database
* Copyright (C) 2016 Grakn Labs Limited
*
* Grakn 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... | Java | grakn-test-tools/src/main/java/ai/grakn/util/GraqlTestUtil.java | burukuru/grakn | gpl-3.0 | 2,206 | 72 | codeparrot/github-code |
24ee3dc5408ae8097a198dfd78172fbf08a01fa9b04a5f3db3c4f29d2ce56cca | /*
* Developer : Andy Gimma (andy.n.gimma@gmail.com)
* Date : 08/14/13
* All code (c)2013 Andy Gimma all rights reserved
*/
// use async and dstk to get lat,lng
// then add to database
var async = require('async');
var flash = require('connect-flash');
var DeliveryModel = require('../models/Delivery.js');
mod... | JavaScript | controllers/view_deliveries.js | andygimma/mutualaidrelief | gpl-3.0 | 1,059 | 47 | codeparrot/github-code |
b66759c71f40afe7cf4aa23175eeab1bf670d2e4bdbdf33404fc06af35526f17 | package se.llbit.chunky.block;
import se.llbit.chunky.entity.BeaconBeam;
import se.llbit.chunky.entity.Entity;
import se.llbit.chunky.model.BeaconModel;
import se.llbit.chunky.model.BlockModel;
import se.llbit.chunky.resources.Texture;
import se.llbit.math.Vector3;
import se.llbit.nbt.CompoundTag;
public class Beacon... | Java | chunky/src/java/se/llbit/chunky/block/Beacon.java | leMaik/chunky | gpl-3.0 | 841 | 38 | codeparrot/github-code |
e929bb6146df18fffbf1774c0a04f9e882452459d631927ebc6d1720883f2cc5 | \begin{lstlisting}
int const N = , M = , G = ;
struct node {
int col, row, left, right, up, down;
inline void clear() { col = row = left = right = up = down = 0; }
} grid[G];
int n, m, tot;
int cnt[M], head[N], tail[N];
inline void prepare() {
tot = m + 1;
for (int i = 1; i <= n; ++i) head[i] = tail[i] = 0;
for (i... | TeX | Template of Other Teams/NewMeta-Final/Tempest/Dancing_Links.tex | kzoacn/Grimoire | gpl-3.0 | 2,083 | 63 | codeparrot/github-code |
18fcc00a299bbc90b3e922de6d8e699b51225e826715f5f525d830744cac8000 | import logging
from logging import config
import paramiko
import os
from read_config import *
class FileDownloader(object):
ip = None
port = None
user = None
password = None
local_file_path = None
remote_file_path = None
abs_file_list = []
ssh = None
logger = None... | Python | utils/FileDownloader.py | 10177591/BnB-bot | gpl-3.0 | 2,539 | 74 | codeparrot/github-code |
e4ec0e004948c9fb5c1fab7c86181cc23710240f3131e409428757268dbaff6e | module.exports = {
"tracks": [
{
"album": {
"album_type": "album",
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/1aVONoJ0EM97BB26etc1vo"
},
"href": "https://api.spotify.com/v1/artists/1aVONoJ0EM97BB26... | JavaScript | client/Api/fakeResponse.js | evenius/rotating-contemporary | gpl-3.0 | 54,402 | 2,243 | codeparrot/github-code |
700c33258dcda0bfe45de42db91ecd5637412d315762b2e1e5b4c05a9552d5dc | #ifndef _AFFICHAGE
#define _AFFICHAGE
#include "cube.h"
#include "calculs.h"
#include "initialisation.h"
Cube* cubeGlobal ;
Bille* billeGlobal ;
GLfloat modelViewCube[16] ;
/* Fonction qui permet de récupérer les cube et bille du main en variable globale
* à cause de Glut qui ne permet pas de passer des paramètre... | C | affichage.h | joubu/3DCube | gpl-3.0 | 3,744 | 153 | codeparrot/github-code |
c12d64c29f7a8b171863d6010291d7f9d305e30e8765cc5a15da11e4a2a0f566 | /*
Purpose:
Hook function at beginning, irrelevant to following flow.
*/
#include <stdio.h>
typedef void (*Step1)(void);
typedef void (*Step2)(void);
typedef void (*Step3)(void);
struct Drive {
Step1 one;
Step2 two;
Step3 three;
};
// Car functions for hook
void CarStep1(void) { printf("CarStep1\n"); }
void C... | C | C/A01_FunctionPoint/src/main.c | flake123p/ProjectH | gpl-3.0 | 1,029 | 60 | codeparrot/github-code |
046506f5c1276a3f9388754c2a179fbea2a35cd7881882a8c6e6c1024a95b885 | package com.bianyi.entity;
import org.springframework.stereotype.Component;
@Component
public class Production {
private String leftProduction;
private String[] rightProduction;
public Production(String leftProduction,String[] rightProduction){
this.leftProduction = leftProduction;
this.rightProduction = righ... | Java | src/main/java/com/bianyi/entity/Production.java | 17549/bianyi | gpl-3.0 | 865 | 37 | codeparrot/github-code |
0431d5ee34055bf658d661a89135be8658c76b757c07b1046e4c626f5d8aa041 | #ifndef GRAPH_ALGORITHM_OPERATIONS_HPP
#define GRAPH_ALGORITHM_OPERATIONS_HPP
#include "predicates.hpp"
#include "collections.hpp"
#include "mst.hpp"
#include "../graph.hpp"
#include <cmath>
#include<string>
/** \brief operations.hpp - Header file that has collection of operations possible on any graph
* datastruture... | C++ | algorithm/operations.hpp | manasij7479/graph | gpl-3.0 | 12,355 | 341 | codeparrot/github-code |
cde7254070edab01d857d9d6c2164671532e1ab28afb219a935fada4ede1747b | #!/usr/bin/env python
"""
Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import os
import re
from lib.controller.action import action
from lib.controller.checks import checkSqlInjection
from lib.controller.checks import checkDynParam
from lib.cont... | Python | sqlmap/lib/controller/controller.py | undefinedv/Jingubang | gpl-3.0 | 30,449 | 689 | codeparrot/github-code |
e95718b9193098ab2babbc36430f6a13505294c71c109449ffdb88e77c344725 |
import sys, os, os.path, re, xml.dom.minidom, xml.dom, optparse
def usage():
print """
usage:
checkcase.py -f [fzp folder] -s [svg folder]
ensure all fzp files case-sensitively match svg file names
"""
def main():
parser = optparse.OptionParser()
parser.add_optio... | Python | fritzing/fritzing.0.9.2b.64.pc/parts/part-gen-scripts/misc_scripts/checkcase.py | rmelo19/rmelo19-arduino | gpl-3.0 | 3,904 | 110 | codeparrot/github-code |
29315c99d2438902032b7dcab27bf1b185b32d09e48ed74cfac8451d410dd5a3 | # =============================================================================
# Copyright (C) 2010 Diego Duclos
#
# This file is part of pyfa.
#
# pyfa 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 ... | Python | gui/builtinStatsViews/resistancesViewFull.py | DarkFenX/Pyfa | gpl-3.0 | 9,855 | 232 | codeparrot/github-code |
8607e6cda9d6730afa7104b7e05966d4deb6ffc092cbea0c08db0d15828cd96f | /* filename: FormTalk.h 2008/12/26 */
/*************************************************************************
LuLu Messenger: A LAN Instant Messenger For Chatting and File Exchanging.
Copyright (C) 2008,2009 Wu Weisheng <wwssir@gmail.com>
This file is part of LuLu Messenger.
LuLu Messe... | C | FormTalk.h | mahdiattarbashi/lulum | gpl-3.0 | 4,735 | 147 | codeparrot/github-code |
772311d56d5640dcfa65ced88509010427023423d820377e37ff172b540c079c | # -*- coding: utf-8 -*-
"""
"""
# Copyright (C) 2015 ZetaOps Inc.
#
# This file is licensed under the GNU General Public License v3
# (GPLv3). See LICENSE.txt for details.
from pyoko import Model
from pyoko.fields import Integer, String, Date
from zengine.lib.translation import gettext as _
from zengine.lib.translat... | Python | ulakbus/models/akademik_faaliyet.py | zetaops/ulakbus | gpl-3.0 | 2,284 | 67 | codeparrot/github-code |
59ce660ae0ce340335203be247ff841ca66022b7b394f99703024fde459ae2c5 | /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
pYIN - A fundamental frequency estimator for monophonic audio
Centre for Digital Music, Queen Mary, University of London.
This program is free software; you can redistribute it and/or
modify it under the terms of the... | C | source/pyin/MonoNote.h | xstreck1/LibPyin | gpl-3.0 | 1,428 | 47 | codeparrot/github-code |
9d88598caeeca6bbf03e0e8262908453cd451ff635a8beca6d5e115d64e78f66 | <?php
/* Copyright (C) 2007-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2007-2010 Jean Heimburger <jean@tiaris.info>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2013 Chri... | PHP | htdocs/accountancy/journal/sellsjournal.php | guerrierk/dolibarr | gpl-3.0 | 28,547 | 720 | codeparrot/github-code |
5d8b6cae08725c0e8688f0906e48db9ee0b4f9bb66b5aac2a951c21e467f8edf | #ifndef AREA_H
#define AREA_H
#include "opencv2/imgproc/imgproc.hpp"
/**
* The class defines what an "area" is.
* That is, a ROI (i.e. abounding rectangle),
* a mask (i.e. a binary image) of the same size than ROI.
* and a map of territory (an image in which non-zero values are equal to the territory).
* It also... | C++ | headers/Area.hpp | JoGall/ubitrail | gpl-3.0 | 1,637 | 56 | codeparrot/github-code |
128945c4559f9c8af668a7c90d2176cf32efd36e7281c5cfde3debb2a477f3db | <?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin - Licence Number VBF98A5CB5
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ©2000-2006 ... | PHP | otmfaq.com/htdocs/forums/impex/systems/ldu/002.php | chrisplough/otmfaq | gpl-3.0 | 8,616 | 209 | codeparrot/github-code |
fe99010e735aaf7015304588ee839c5193138470c01545e3a53b2795ec2d2fa3 | /* Copyright (C) 2015 Eloi DU BOIS - All Rights Reserved
* The license for this file is available here:
* https://github.com/edubois/kaliscope/blob/master/LICENSE
*/
#include "RecordingSettingsDialog.hpp"
#include "PluginListDialog.hpp"
#include "EditPluginParamsDialog.hpp"
#include <kali-core/settingsTools.hpp>
... | C++ | applications/kaliscope_qt/src/settings/RecordingSettingsDialog.cpp | edubois/kaliscope | gpl-3.0 | 15,060 | 432 | codeparrot/github-code |
a966c5c7c13ace8de62af8f705ca984fcd793f81118cd3929fcf4b0bc7b22ea2 | package com.supermap.desktop.CtrlAction.Layout;
import javax.swing.tree.DefaultMutableTreeNode;
import com.supermap.data.Workspace;
import com.supermap.desktop.Application;
import com.supermap.desktop.CommonToolkit;
import com.supermap.desktop.Interface.IBaseItem;
import com.supermap.desktop.Interface.IForm;
import c... | Java | LayoutView/src/com/supermap/desktop/CtrlAction/Layout/CtrlActionBrowserLayout.java | highsad/iDesktop-Cross | gpl-3.0 | 2,409 | 63 | codeparrot/github-code |
42d526d0336aaa55d4fcbe7ba8cf853f893f1553740bc83674177837acd31c68 | /*
This file is part of heresyRL.
heresyRL 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.
heresyRL is distributed ... | C | src/monster/monster.h | luctius/heresyrl | gpl-3.0 | 12,089 | 375 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.