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 |
|---|---|---|---|---|---|---|---|---|
4e6f405851ad77bf67e20bdda7e109ae8f01d2aae5649af76eb895602aac64e8 | /*
* surveyforge-classification - Copyright (C) 2006 OPEN input - http://www.openinput.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... | Java | surveyforge-classification/src/test/java/org/surveyforge/classification/LevelTest.java | jsegura/surveyforge | gpl-2.0 | 3,814 | 109 | codeparrot/github-code |
8e3f6f7627ee8268d7aca199884a0cddb807d6e80d722dedbaac971d903559ad | package sample.views;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.geometry.HPos;
import javafx.geometry.Insets;
import javafx.geometry.Orientation;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*;... | Java | src/main/java/sample/views/AccountCreateView.java | hadareanrares/epaas-pos | gpl-2.0 | 6,631 | 166 | codeparrot/github-code |
d77399ecbf3e10d492b956b3b461d0fb0117e98c2518d16dd69c5da14a7503a6 | <?php
/**
* @package Joomla.Site
* @subpackage Templates.sica
* @copyright Copyright (C) 2005 - 2012 SICÁ (tm).
* @license GNU General Public License version 2; see LICENSE.txt
*/
defined('_JEXEC') or die;
$params = JFactory::getApplication()->getTemplate(true)->params;
$logo = $pa... | PHP | error.php | mundoSICA/mundosica-joomla-template | gpl-2.0 | 8,904 | 241 | codeparrot/github-code |
a50064ede533eb380052321f3bcd225da21e63c613691c9d43cc6bd9f63da8c2 | package org.gudy.bouncycastle.jce.provider;
import java.security.Provider;
/**
* To add the provider at runtime use:
* <pre>
* import java.security.Security;
* import org.gudy.bouncycastle.jce.provider.BouncyCastleProvider;
*
* Security.addProvider(new BouncyCastleProvider());
* </pre>
* The provider can also... | Java | core/src/org/gudy/bouncycastle/jce/provider/BouncyCastleProvider.java | BiglySoftware/BiglyBT | gpl-2.0 | 40,678 | 589 | codeparrot/github-code |
9ac39ab2af1c5f50a5c647cfa9e2680d2527ffd9f1e30f45ba1557b98bcb6619 | <?php
/**
* @package HikaShop for Joomla!
* @version 2.3.1
* @author hikashop.com
* @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class OrderController extends hikasho... | PHP | administrator/components/com_hikashop/controllers/order.php | adrian2020my/gavick | gpl-2.0 | 21,120 | 696 | codeparrot/github-code |
42bdd4259d5eb6148751d0524cfddfdf103038014b7313477a2b0b1c7497e226 | /*
* conference-subject-event.h
* Copyright (C) 2010-2018 Belledonne Communications SARL
*
* 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 o... | C | submodules/linphone/src/event-log/conference/conference-subject-event.h | raj-bhatia/grooveip-ios-public | gpl-2.0 | 1,541 | 52 | codeparrot/github-code |
5f163b9e447669383c109e1a1e76bff339cacba60ea72a5478cb226a2fc0fe09 | /*
* Copyright (c) 2008-2009 Atheros Communications Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
... | C | drivers/bluetooth/ath3k.c | damoxc/linux | gpl-2.0 | 10,470 | 444 | codeparrot/github-code |
b422b7932b8ee06007a2a0a355564694265efe73eb6d2703fc73a28435f1b630 | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<title>Rey de la c... | HTML | index.html | Kirissuno/Cocinillas | gpl-2.0 | 25,572 | 560 | codeparrot/github-code |
b012b1c606da79cf7163979e82acc15ab5f2cc12b91a801d99ad768901acb777 | <?php
/**************************************************************************************************
SWISScenter Source
This is one of a selection of scripts all designed to obtain information from the internet
relating to tv series that the user has added to their database. It typically collects
... | PHP | swisscenter/ext/parsers/tv/wwwTHETVDBcom.php | Pernod70/SwissCenter | gpl-2.0 | 17,371 | 435 | codeparrot/github-code |
48b4c83bad1dee326d4660eff0937fb7f4c41b2957c121ea61843b00c2aa7178 | /*
* Copyright (c) 2006 - 2010 LinogistiX GmbH
*
* www.linogistix.com
*
* Project myWMS-LOS
*/
package de.linogistix.common.userlogin;
import de.linogistix.common.res.CommonBundleResolver;
import de.linogistix.common.services.J2EEServiceLocator;
import de.linogistix.common.services.J2EEServiceNotAvailable;
... | Java | rich.client/los.clientsuite/LOS Common/src/de/linogistix/common/userlogin/SecurityManager.java | Jacksson/mywms | gpl-2.0 | 6,149 | 159 | codeparrot/github-code |
aaaa411b1bec93a7e94985b530abfde0abaead39b6f2e86227e25844344c0ccd |
/* *
* Copyright (C) 2015 Trever Hallock *
* *
* This program is free software; you can redistribute it and/or modify *
* it u... | Java | Common/src/org/cnv/shr/util/CircularOutputStream.java | tlhallock/ballin-meme-share | gpl-2.0 | 4,822 | 161 | codeparrot/github-code |
f3b626911a75b26e415abea6c7b02ab11db5d392b1ce7a7d5ffb083fde9d9aba | from liblightbase import lbutils
from liblightbase.lbutils.conv import dict2document
class OrderBy(object):
"""
The ORDER BY keyword sorts the records in ascending order by default.
To sort the records in a descending order, you can use the DESC keyword.
To sort the records in a ascending order, you c... | Python | liblightbase/lbsearch/search.py | antonygc/liblightbase | gpl-2.0 | 5,160 | 207 | codeparrot/github-code |
8d8ac95324b9594388eac8f140a64e18ae3988ab710d6a3987b55e64eec3a1a8 | #
# Makefile for the linux kernel.
#
obj-y = sched.o fork.o exec_domain.o panic.o printk.o \
cpu.o exit.o itimer.o time.o softirq.o resource.o \
sysctl.o capability.o ptrace.o timer.o user.o \
signal.o sys.o kmod.o workqueue.o pid.o \
rcupdate.o extable.o params.o posix-timers.o \
kthread.... | Makefile | kernel/Makefile | Evervolv/android_kernel_lge_pecan | gpl-2.0 | 4,950 | 134 | codeparrot/github-code |
ce6be018375dc33b94e427638d52be21a4b94e5dd81bf1c46207813b24512742 | /*
* Copyright (C) 2016 Robin Gareus <robin@gareus.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 version.
*
* Th... | C | libs/pbd/pbd/natsort.h | napcode/ardour | gpl-2.0 | 3,841 | 173 | codeparrot/github-code |
9c2180edded443780af2754df644f24f78d0a85b0fd02b43c527d996f31ae584 |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#define TRUE 1
#define FALSE 0
#define PLUGIN_MSG_PARSE_ERR -1 // also interpreted as 'no more output'
#define PLUGIN_PROGR... | C | plugins/ripperX_plugin_tester.c | sanbeg/ripperx | gpl-2.0 | 8,029 | 365 | codeparrot/github-code |
5b5d8d5f42d85b95c6bc3bd22349631a9cace922808c82adff8615bf28438f27 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CircuitDiagram.Circuit.Metadata
{
/// <summary>
/// Represents the metadata for a circuit document.
/// </summary>
public class CircuitDocumentMetadata
{
/// <summa... | C# | CircuitDiagram/CircuitDiagramCore/Circuit/CircuitDocumentMetadata.cs | circuitdiagram/circuitdiagram | gpl-2.0 | 1,335 | 50 | codeparrot/github-code |
f698e461a723e745614f5f052c84834aaea5677d96a2e4726809d9d63bad1d2b | /**
* This file is part of Tartarus Emulator.
*
* Tartarus 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.
*
* Tartarus is distribut... | C# | Game/DataClasses/Network/ClientGame/CheckCharacterName.cs | guilherme-gm/Tartarus | gpl-2.0 | 1,363 | 48 | codeparrot/github-code |
6260e40d73573e69aa63a42264db14956b32145927d19ba3c0c9cf5317bd4479 | <?php
/**
* Functions
*
* The secret sauce and other funky flavors
*
* @package Desk_Mess_Mirrored
* @since 1.0
*
* @link http://buynowshop.com/themes/desk-mess-mirrored/
* @link https://github.com/Cais/desk-mess-mirrored/
* @link http://wordpress.org/extend/themes/desk-mess-mir... | PHP | wp-content/themes/desk-mess-mirrored/functions.php | mxr1027/Xinrui-Ma | gpl-2.0 | 24,157 | 638 | codeparrot/github-code |
4a07ddc892dce64d447a9210968a15eb2d3e218ebf02ad60565dfe6118a6eb89 | package org.grape.galaxy.client;
import org.grape.galaxy.model.Transportation;
import com.google.gwt.core.client.JavaScriptObject;
public class ResourceTransportation3dView extends Transportation3dView {
private JavaScriptObject emitter;
public ResourceTransportation3dView(TransportationView parentView,
Trans... | Java | src/org/grape/galaxy/client/ResourceTransportation3dView.java | Xeenice/grape-galaxy | gpl-2.0 | 2,446 | 71 | codeparrot/github-code |
1baf974ee2c14508b941bc5ee853489ed5113d24ce0f90074cfcad5d1bde2190 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (C) 2015 Comcast Cable Communications Management, LLC
*
* 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++ | dmc.cc | Comcast/dmc-sim | gpl-2.0 | 4,185 | 140 | codeparrot/github-code |
3c2469737ab8d8b56e6c5e7aacfb2a3ee4cdf769ad80f0daaf217bf456b220f5 | --インフェルニティ・ビショップ
function c54320860.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,54320860+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c54320860.sp... | Lua | c54320860.lua | Fluorohydride/ygopro-scripts | gpl-2.0 | 1,477 | 42 | codeparrot/github-code |
aecebcbe13993f1b36d0c228f641ea79429e05b7e12481a2020f8158254cfb09 | /*
* drivers/mmc/host/omap_hsmmc.c
*
* Driver for OMAP2430/3430 MMC controller.
*
* Copyright (C) 2007 Texas Instruments.
*
* Authors:
* Syed Mohammed Khasim <x0khasim@ti.com>
* Madhusudhan <madhu.cr@ti.com>
* Mohit Jalori <mjalori@ti.com>
*
* This file is licensed under the terms of the GNU General Publi... | C | drivers/mmc/host/omap_hsmmc.c | qkdxorjs1002/nov_kernel_razr | gpl-2.0 | 73,519 | 2,896 | codeparrot/github-code |
d28c3a5cba10f9261ce31660be827b5143e5972e65a7e24a4820d2d6ee9e33a6 | #!/usr/bin/perl
#
# LODEL - Logiciel d'Edition ELectronique.
#
# Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos
# Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot
# Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cé... | Perl | lodel/install/notice.pl | charlycoste/lodel-old | gpl-2.0 | 4,256 | 127 | codeparrot/github-code |
f84940b92073d105fca7cf75cb84c86bc7e114c74a2f96fb33df45e6b57cabdd | /*
* Copyright (C) 2009 Red Hat, Inc.
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the top-level directory.
*/
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/highmem.h>
#include <linux/hugetlb.h>
#include <linux/mmu_notifier.h>
#include <linux/... | C | mm/huge_memory.c | cloudlinux/cl7-kernel | gpl-2.0 | 79,678 | 2,968 | codeparrot/github-code |
68fa27d111628a85385e42c2d5ad8aa5d04186497108b4dd8d8e8ed80d67030c | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <uae/uae.h>
#include <fs/conf.h>
#include <fs/glib.h>
#include "options.h"
#include "fs-uae.h"
#include "config-accelerator.h"
#include "config-common.h"
#include "config-model.h"
static void configure_accelerator_rom(const char *default_rom)
{
char *path =... | C | src/fs-uae/config-accelerator.c | cnvogelg/fs-uae | gpl-2.0 | 3,205 | 101 | codeparrot/github-code |
ffa066ca5e6d9ae076fcbeda849b2e50fc24a103cd19dc0cc8a13e09298e42b1 | /***************************************************
* Timer
* ------------------------------------------------
* A simple command-line utility to use as a timer,
* stopwatch, etc.
* ------------------------------------------------
* Blah blah, GNU General Public License v3, blah
* this program is open-source, b... | C | timer.c | Prince781/timer | gpl-2.0 | 1,480 | 61 | codeparrot/github-code |
b5e57a765b107aa5499bec6ba18cd84ba8a8218f10423909638caaa5db189d28 | <?php
/**
* @file
* Contains \Drupal\my_event_subscriber\EventSubscriber\MyEventSubscriber.
*/
namespace Drupal\my_event_subscriber\EventSubscriber;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInter... | PHP | modules/custom/my_event_subscriber/src/EventSubscriber/MyEventSubscriber.php | davidlfg/d8-study | gpl-2.0 | 1,068 | 39 | codeparrot/github-code |
80d136a35d00fc7e04483e657be42e1bcdd9e285dddeb250fb5dedcad16061d7 | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 Ralf Baechle
*/
#ifndef _ASM_PGTABLE_H
#define _ASM_PGTABLE_H
#include <linux/mm_types.h>
#include <linux/mmzone.h>
#... | C | arch/mips/include/asm/pgtable.h | volk3/CS736 | gpl-2.0 | 16,687 | 655 | codeparrot/github-code |
17788e98d0844d1e2ff5e93bae7d7a525929b84a7cc96b7e67640c5939442f1d | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package facturatron.lib;
import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
import com.phesus.facturatron.presentation.mvc.model.RenglonModel;
import facturatron.lib.entities.CFDv3Tron;
i... | Java | src/facturatron/lib/Main.java | ZooMMX/Facturatron | gpl-2.0 | 10,858 | 239 | codeparrot/github-code |
4a8436663304efa3801de689747be9760116331e2b627929ba96bc41bafc4c63 | /* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | C | engines/twine/scene/extra.h | somaen/scummvm | gpl-2.0 | 4,077 | 126 | codeparrot/github-code |
9f1a3875df190824a7561cd5f6c776cd17370a5f112dd9bfa35358fbba09ebac | #include "../include/style.hpp"
namespace ux
{
bool operator==(const ElementShape& lhs, const ElementShape& rhs)
{
bool same_shape = lhs.m_type == rhs.m_type ;
if(same_shape)
{
switch(lhs.m_type)
{
case RECTANGLE: same_shape = lhs.m_rec... | C++ | src/style.cpp | ajax-crypto/UX | gpl-2.0 | 6,835 | 250 | codeparrot/github-code |
b6480ee857faee7974432211e01d293de3c60f028bccf5bf5cbf8a430bd144b8 | <?php
/**
* Note : Code is released under the GNU LGPL
*
* Please do not change the header of this file
*
* 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 Li... | PHP | modules/custom/shipment/src/DHL/Entity/GB/CancelPURequest.php | csctwx/ups459 | gpl-2.0 | 3,007 | 112 | codeparrot/github-code |
c6208152b0713a104fbf28e34061b8617da682833fba5e44aa47f6a75826a2e4 | <?php
/**
* Shopping cart class.
* @since 0.3.8
* @package IT_Exchange
*/
class IT_Exchange_Shopping_Cart {
/**
* Class constructor.
*
* Hooks default filters and actions for cart
*
* @since 0.3.8
* @return void
*/
function IT_Exchange_Shopping_Cart() {
add_action( 'template_redirect', array( $this... | PHP | wp-content/plugins/ithemes-exchange/lib/cart/class.cart.php | itaddy/permiekids | gpl-2.0 | 19,026 | 531 | codeparrot/github-code |
a50713fc26c095b17889b0bfadba0daee3b9b90d7dee7d513c648eb395e97cdf | /*
* This file is part of the flashrom project.
*
* Copyright (C) 2009,2010,2011 Carl-Daniel Hailfinger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, ... | C | programmer.c | alterapraxisptyltd/flashrom-lenovo | gpl-2.0 | 4,278 | 145 | codeparrot/github-code |
ceba56a57316251785aaa2867eadb09a18b6a686b7374cac9798da4ea134ebec | package com.neuo.glshader;
import com.neuo.globject.GlObject;
import android.opengl.GLES20;
public class ShaderLight {
protected int mulightLocation;
protected int mulightAmbient;
protected int mulightDiffuse;
protected int mulightSpecular;
protected int muIsLightOpen;
public void setLightLocation(int lightL... | Java | Simim/src/com/neuo/glshader/ShaderLight.java | chongtianfeiyu/Simim | gpl-2.0 | 1,217 | 43 | codeparrot/github-code |
6bdd752b72ae38df3a7b87a08867ad95d5d17658842678ca20505734112c3ecc | # ########################################################################
#
# SweetHome3D HTML5 to Blender importer
#
# ########################################################################
#
# Copyright (c) : 2018 Luis Claudio Gambôa Lopes
#
# This program is free software; you can redistribute it and/or ... | Python | old/sh3d_html5_to_blender.py | lcgamboa/sh3dtoblender | gpl-2.0 | 16,265 | 431 | codeparrot/github-code |
cf1d33f637c3f474dab3720fe0240eb3452bda8ddfb0cf62c0c3e7c6101eaeea | /* ************************************************************************************
* mem_alloc.c
* @description : This program will consume memory using sbrk() to a size where
* there is about COMMITED_AS KB left in free{swap+ram}.
* The program realized that a process can consume so much memor... | C | tools/pounder21/src/mem_alloc_test/mem_alloc.c | shubmit/shub-ltp | gpl-2.0 | 16,000 | 470 | codeparrot/github-code |
1273785075d9406f8136a9e679bf24fe04204b6efc3b9229ee3a930bd2b025f0 | package hu.bme.mit.v37zen.sm.messaging;
import hu.bme.mit.v37zen.sm.datamodel.smartmetering.Account;
import hu.bme.mit.v37zen.sm.datamodel.smartmetering.AccountContactAssociation;
import hu.bme.mit.v37zen.sm.datamodel.smartmetering.AccountSDPAssociation;
import hu.bme.mit.v37zen.sm.datamodel.smartmetering.Contact;
imp... | Java | lib/data-model/src/main/java/hu/bme/mit/v37zen/sm/messaging/SeedData.java | kdanni/thesis | gpl-2.0 | 9,129 | 259 | codeparrot/github-code |
bcd97d1441c2d9db8f14f273f38491ab43dd000e65aca72a16d0b78ca3f843e4 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* 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/mm-charsets.h | mkotsbak/ModemManager | gpl-2.0 | 2,414 | 67 | codeparrot/github-code |
07cbbc1dfaa36872f1194e399715b43606dbf2ee7cc4af66d2b91445632d63d7 | package com.groupalarm.asijge.groupalarm.AlarmManaging;
import android.annotation.SuppressLint;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.groupalarm.asi... | Java | GroupAlarm/app/src/main/java/com/groupalarm/asijge/groupalarm/AlarmManaging/AlarmHelper.java | AlexanderHederstaf/groupalarm | gpl-2.0 | 13,370 | 368 | codeparrot/github-code |
8d50c8de82b94c9e03a72cd9148d7a2a311c6b3f9b38f2393dd06185973ece21 | #
# Copyright (c) 2008--2014 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | Perl | web/modules/sniglets/Sniglets/ListView/GeneralList.pm | moio/spacewalk | gpl-2.0 | 9,825 | 351 | codeparrot/github-code |
cc6c08c881704593626ad295d7811045c8e54bec408adc79f5330703bb3bb24b | /* Copyright (C) 2004 J.F.Dockes
* 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 dis... | C++ | rcldb/rcldb.cpp | norandom/recoll | gpl-2.0 | 67,325 | 2,187 | codeparrot/github-code |
18faf6b052e1ec2b32eb540648fab618494d4d85af8dbe5960005ccee87d5789 | /*
* Copyright (C) 2011 Mark Hills <mark@pogo.org.uk>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but... | C | library.c | doublerebel/s-xwax | gpl-2.0 | 9,399 | 427 | codeparrot/github-code |
eb4df84b84425ce7b7a775515c6bd9379ff3be7cd739ff4c2a596fdc51e58af4 | "use strict";
var http = require('http');
var path = require('path');
var fs = require('fs');
var URL = require('url');
// This all runs in the browser
var clientSide = function() {
// Grab reference to the commit button
var buttons = Array.prototype.slice.call(document.body.getElementsByTagName('button')).filter(fu... | JavaScript | sync.js | peterwilli/screeps | gpl-2.0 | 4,087 | 142 | codeparrot/github-code |
aecfa69903907271a319a537b67942ffa5b62f869a602dd0550213a994a29cfa | /*
* error.c
*
* Copyright (c) 2009 Laszlo Papp <djszapi@archlinux.us>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any ... | C | lib/libalam/error.c | BackupTheBerlios/aurman | gpl-2.0 | 5,144 | 162 | codeparrot/github-code |
f001cb4449b0265eb10b03e8d2d24cd74656e594ef4bb1a84b9fd9ed5a623d51 |
/* ====================================================================
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 ... | Java | OldJavaImplementation/poi-3.2-FINAL/src/scratchpad/src/org/apache/poi/hslf/util/MutableByteArrayOutputStream.java | benjaminy/STuneLite | gpl-2.0 | 1,648 | 44 | codeparrot/github-code |
961d6c217374a96d034d43621ca968cece695888f2f197a5ffd26455ea30fabf | package tl;
import java.nio.ByteBuffer;
public class Chat extends tl.TChat {
public Chat(ByteBuffer buffer) throws Exception {
id = buffer.getInt();
title = new String(TL.readString(buffer), "UTF8");
photo = (tl.TChatPhoto) TL.read(buffer);
participants_count = buffer.getInt();
date = buffer... | Java | src/tl/Chat.java | deNULL/Wire-Desktop | gpl-2.0 | 1,755 | 54 | codeparrot/github-code |
9b2da8bc2d026b299a6f1e0a5888ac0950a62e76f8f1cd0e1132114445f22a84 | #include "kernel.h"
#include <iostream>
#include <cstdio>
using std::cerr;
using std::endl;
namespace ggraf
{
bool Kernel::init(int majVersion, int minVersion)
{
initialized = false;
Logger::getInstance()->log("ggraf::Kernel::init");
if(gl3wInit()) {
Logger::getInstance(... | C++ | Kernel/kernel.cpp | schardong/Visualizer | gpl-2.0 | 927 | 44 | codeparrot/github-code |
47df4045aecfb05072e6dfdff6c93e02bb0d855cb16a56e9a5dfd1d36815da81 | <?php
include('includes/session.inc');
$Title = _('Bank Account Users');;// Screen identificator.
$ViewTopic = 'GeneralLedger';// Filename's id in ManualContents.php's TOC.
/* To do this section in the manual.
$BookMark = 'BankAccountUsers';// Anchor's id in the manual's html document.*/
include('includes/header.inc')... | PHP | BankAccountUsers.php | fahadhatib/KwaMoja | gpl-2.0 | 7,756 | 224 | codeparrot/github-code |
a1e2c47a9647e05605c611bb230f5f634b4ccc09b32f09bf82793f9b2a25aad1 | <?php
// ------------------------------------------------------------------------- //
// XooNIps - Neuroinformatics Base Platform System //
// Copyright (C) 2005-2011 RIKEN, Japan All rights reserved. //
// http://xoonips.sourceforge.jp/ ... | PHP | xoonips/xoonips/admin/actions/maintenance_account_edit.php | neuroinformatics/xcl-module-xoonips | gpl-2.0 | 16,808 | 418 | codeparrot/github-code |
3df22667ae561c6dfa98631aca68ae9966eef50900bfc1ec15ca8fb8b2c1d6e5 | // Copyright (C) 2005 - 2009 Philip Aston
// All rights reserved.
//
// This file is part of The Grinder software distribution. Refer to
// the file LICENSE which is part of The Grinder distribution for
// licensing details. The Grinder distribution is available on the
// Internet at http://grinder.sourceforge.net/
//
... | Java | lib/grinder/grinder-http/src/test/java/net/grinder/plugin/http/tcpproxyfilter/TestConnectionCache.java | slantview/DrupalLoadTest | gpl-2.0 | 4,808 | 154 | codeparrot/github-code |
89f89cdfb374f4157a831f419a28a081a6c2ee052a1da372e4e60f616b1ac9be | /*
* Block driver for the Virtual Disk Image (VDI) format
*
* Copyright (c) 2009, 2012 Stefan Weil
*
* 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
*... | C | block/vdi.c | SPICE/qemu | gpl-2.0 | 30,688 | 918 | codeparrot/github-code |
00114a4fd1cca75faa0f4c31a92a60efc42b6d2ea05cc0ac5f26bcc670b59bce | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>LLVM Makefile Guide</title>
<link rel="stylesheet" href="llvm.css" type="text/css">
</head>
<body>
<div class="doc_title">LLVM Makefi... | HTML | llvm/docs/MakefileGuide.html | vrtadmin/clamav-bytecode-compiler | gpl-2.0 | 52,345 | 1,032 | codeparrot/github-code |
37a81ed21880dfb357dd737c92d742366a5e79bd9bf6bd60d0948b91e441c47c | var tbn = {};
jQuery(document).ready( function(){
$('body').append('<div id="add-image-dlg"></div>');
$('body').append('<div id="update-success">Your data has been saved.</div>');
$('#from-date').datepicker({minDate : 0, dateFormat: 'yy-mm-dd'});
$('#to-date').datepicker({minDate : 0, dateFormat: 'yy-mm-dd'});... | JavaScript | sites/all/modules/best_nests/js/best_nests.js | thebestnests/base | gpl-2.0 | 13,922 | 497 | codeparrot/github-code |
d87619576887fc04fb5af4ef009381bd612ddede5a1d4a00b3836768259b9b77 | <?php
namespace Drupal\entity_browser\Plugin\EntityBrowser\WidgetSelector;
use Drupal\entity_browser\WidgetSelectorBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Displays widgets in a select list.
*
* @EntityBrowserWidgetSelector(
* id = "drop_down",
* label = @Translation("Drop down widget"),
* de... | PHP | modules/entity_browser/src/Plugin/EntityBrowser/WidgetSelector/DropDown.php | marteenzh/d1 | gpl-2.0 | 2,240 | 84 | codeparrot/github-code |
d7662c8946aafdbc6536f00d259b897a7fcdb0e87528745f63916eb7d36d8df1 | <?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2015 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| ... | PHP | include/top_graph_header.php | 304471720/cacti | gpl-2.0 | 8,201 | 124 | codeparrot/github-code |
00c2c779e23747515cf0de063705d249d8ba7f8fafdca1d80bddec07f434a4c3 | <?php
//
// Definition of eZNodeviewfunctions class
//
// Created on: <20-Apr-2004 11:57:36 bf>
//
// ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
// SOFTWARE NAME: eZ Publish
// SOFTWARE RELEASE: 4.4.0
// COPYRIGHT NOTICE: Copyright (C) 1999-2010 eZ Systems AS
// SOFTWARE LICENSE: GNU General Public License v2.0... | PHP | kernel/classes/eznodeviewfunctions.php | liberator44/kindle-publish | gpl-2.0 | 23,593 | 539 | codeparrot/github-code |
cae775124b0605f564ddeee622e0884b7164ae239971c338a15f41ff43114a38 | package edu.xtec.qv.editor.bd;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.CallableStatement;
import java.sql.Types;
import ... | Java | qv_editor/src/editor/edu/xtec/qv/editor/bd/UserDatabase.java | projectestac/qv | gpl-2.0 | 3,989 | 129 | codeparrot/github-code |
7ba1a895b03452fb349b82adc3c5a081bfb3d77121d9cd68e2dfe3295b304973 | <?php
/**
* @file classes/subscription/IndividualSubscriptionDAO.inc.php
*
* Copyright (c) 2003-2011 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class IndividualSubscriptionDAO
* @ingroup subscription
* @see IndividualSubscription
*
* @brief O... | PHP | classes/subscription/IndividualSubscriptionDAO.inc.php | fernao/almanack | gpl-2.0 | 16,152 | 650 | codeparrot/github-code |
fe283e059b22910b7038699aeaa835d2becac6f148d18e9aa7b528ae2c0aeee7 | <!DOCTYPE HTML>
<html lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="http://huascapueblomagico.gob.mx/wp-content/uploads/2014/06/huasca-32x32.jpg">
<!-- This site i... | HTML | wp-content/cache/supercache/huascapueblomagico.gob.mx/comodidad/index.html | ConceptHaus/huasca | gpl-2.0 | 92,871 | 1,925 | codeparrot/github-code |
32851dbbd6e7c7b49222d8583b3c8f85a6ea31110cb6852c24b858c3764f5e07 | //////////////////////////////////////////////////////////////////////
// This file is part of Remere's Map Editor
//////////////////////////////////////////////////////////////////////
#ifndef _RME_NETWORK_ACTION_H_
#define _RME_NETWORK_ACTION_H_
#include "action.h"
class NetworkedActionQueue;
class NetworkedActio... | C | source/live_action.h | krugerdevelopers/RME | gpl-2.0 | 1,175 | 54 | codeparrot/github-code |
4d411624a467f938ccb651ab90df954212262d87740d7073f1d023cee4d89b24 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Mail;
using Trabajo_Final.DTO;
namespace Trabajo_Final.Dominio
{
/// <summary>
/// Clase abstracta que representa un servicio de correo electronico
/// </summary>
public... | C# | Trabajo Final/Trabajo Final/Dominio/Servicio.cs | UTNSolutions/Trabajo-Final | gpl-2.0 | 1,195 | 42 | codeparrot/github-code |
7b64a32dfac7ca7552eef18b1b2180a8488ec4fe75b4c47983560901fe4a502a | /*
** Zabbix
** Copyright (C) 2000-2011 Zabbix SIA
**
** 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 pro... | C | src/zabbix_agent/zbxconf.c | mihu/zabbix-lua | gpl-2.0 | 7,725 | 204 | codeparrot/github-code |
8c033988db703a760c19115395ac66e5b42c148e0482c67ea208eb6ce86d1b23 | package com.yh.hr.info.ver.unit.comm.web.form;
import org.apache.struts.validator.ValidatorForm;
public class PbLanguageInfoForm extends ValidatorForm{
/**
*
*/
private static final long serialVersionUID = -4257388392500232510L;
/**
*主键
**/
private java.lang.Long languageOid;
/**
*PersonOi... | Java | freelance-hr-info/src/java/com/yh/hr/info/ver/unit/comm/web/form/PbLanguageInfoForm.java | meijmOrg/Repo-test | gpl-2.0 | 3,051 | 150 | codeparrot/github-code |
4c580c47e691f6a5e2e72abf27ca1042acd721c816dfb56717a4e03ff6d6382d | from Screen import Screen
from Components.ActionMap import ActionMap
from Components.ActionMap import NumberActionMap
from Components.Label import Label
from Components.config import config, ConfigSubsection, ConfigSelection, ConfigSubList, getConfigListEntry, KEY_LEFT, KEY_RIGHT, KEY_0, ConfigNothing, ConfigPIN
from ... | Python | lib/python/Screens/Ci.py | popazerty/dvbapp2-gui | gpl-2.0 | 11,228 | 397 | codeparrot/github-code |
4da2692b843d1daa3b73e196705a4c8f4782c161169f93b6cb42473a5c1af337 | /*******************************************************************************
* File Lexicon.java
*
* Authors:
* Wolfgang Maier
*
* Copyright:
* Wolfgang Maier, 2011
*
* This file is part of rparse, see <www.wolfgang-maier.net/rparse>.
*
* rparse is free software; you can redistribute it and/... | Java | src/de/tuebingen/rparse/treebank/lex/Lexicon.java | wmaier/rparse | gpl-2.0 | 7,591 | 246 | codeparrot/github-code |
0f4e4015b986b72232f56a000e05fddbcbf691356c595eb36f223816079ceca8 | /*
JPC: An x86 PC Hardware Emulator for a pure Java Virtual Machine
Copyright (C) 2012-2013 Ian Preston
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as published by
the Free Software Foundation.
This progra... | Java | src/main/java/com/github/smeny/jpc/emulator/execution/opcodes/rm/fmul_ST3_ST3.java | smeny/JPC | gpl-2.0 | 2,014 | 64 | codeparrot/github-code |
177086b4b1091818625ef25c1a8db73dc47e69be669f8146f3ea585229969f05 | # - Try to find the Fftw3 Library
# Once done this will define
#
# FFTW3_FOUND - system has Fftw3
# FFTW3_INCLUDE_DIR - the Fftw3 include directory
# FFTW3_LIBRARIES
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
if (... | CMake | cmake/modules/FindFFTW3.cmake | abhishekmurthy/Calligra | gpl-2.0 | 911 | 38 | codeparrot/github-code |
6f483dba1d02b88fb46c5fa8a2e17a1e3c181ba89c02469194b75ae2302438ae | C Copyright (c) 2003-2010 University of Florida
C
C This program is free software; you can redistribute it and/or modify
C it under the terms of the GNU General Public License as published by
C the Free Software Foundation; either version 2 of the License, or
C (at your option) any later version.
C This program ... | FORTRAN | sip/pardo_loop.f | certik/ACESIII | gpl-2.0 | 18,955 | 485 | codeparrot/github-code |
ae03683338fd6af4ddee1cb3575f390879acbfb81fbe7237d9aab0b2980de9c8 | /*
Copyright (c) 1998--2006 Benhur Stein
This file is part of Pajé.
Pajé 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) an... | C | Tracers/JRastro/libRastro/examples/rastro_read_example.c | schnorr/paje | gpl-2.0 | 1,425 | 49 | codeparrot/github-code |
39642a2e50da18c78cf9b15f20965695a5f9d04eb4c6b1cc96463eb34d60592a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Asciidoctor 1.5.4">
<title>git-relink(1)</title>
<link rel="styleshe... | HTML | mingw64/share/doc/git-doc/git-relink.html | Eechul/simpleboard | gpl-2.0 | 32,087 | 480 | codeparrot/github-code |
9f315fd16ce33dfdc33ed6538d208878e0badf5951c6a74b4d105da04f19469e | import db
import db.exceptions
import sqlalchemy
import string
import random
KEY_LENGTH = 40
def generate(owner_id):
"""Generate new key for a specified user.
Doesn't check if user exists.
Args:
owner_id: ID of a user that will be associated with a key.
Returns:
Value of the new ke... | Python | db/api_key.py | metabrainz/acousticbrainz-server | gpl-2.0 | 2,579 | 101 | codeparrot/github-code |
0cc2ca960914cedaea6b722e3ae2ebc8997055e8b4c3f005f966d1dc8c40432d | /*
* Copyright (C) Kreogist Dev Team
*
* 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 distr... | C++ | src/plugin/knmusicplugin/sdk/knmusiclistviewbase.cpp | Kreogist/Mu | gpl-2.0 | 18,622 | 588 | codeparrot/github-code |
002fa9ed4ad946f46ef383b305c42a8fe0747262d538b8a946017ab8ce8e3820 | #! /bin/sh
# Copyright (C) 2002-2022 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | Shell | t/subobj9.sh | autotools-mirror/automake | gpl-2.0 | 2,141 | 88 | codeparrot/github-code |
31b821076149283bbc4f790b6f7b3ba7d40ae46ed2e1e0bc40fecc2c679cab30 | <?
/**[N]**
* JIBAS Education Community
* Jaringan Informasi Bersama Antar Sekolah
*
* @version: 3.2 (September 03, 2013)
* @notes: JIBAS Education Community will be managed by Yayasan Indonesia Membaca (http://www.indonesiamembaca.net)
*
* Copyright (C) 2009 Yayasan Indonesia Membaca (http://www.indon... | PHP | jibas/keuangan/lapbayarcalon_all_header.php | nurulimamnotes/sistem-informasi-sekolah | gpl-2.0 | 11,686 | 292 | codeparrot/github-code |
1e3ecf49487fb7a14b2ed54561be875d9c1001d25979260bda83752f57bea1a2 | package game;
public class Board {
private Cell[][] cells;
public Board(int size) {
cells = new Cell[size][size];
for(int i = 0; i < cells.length; i++) {
for(int j = 0; j < cells[i].length; j++) {
cells[i][j] = new Cell();
}
}
}
public void print() {
for(int i = 0; i < cells.le... | Java | TicTacToe-lab1/src/game/Board.java | iproduct/Programming-Data-Structures-in-Java | gpl-2.0 | 1,112 | 54 | codeparrot/github-code |
1329b0238bdfb76aed4c77ffcd03a4ce88477d541d82b234b49244e56f7a70f3 | /*
* Copyright (c) 2010-2011 Atheros Communications Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | C | drivers/net/wireless/ath/ath9k/htc_drv_gpio.c | kaber/net-next-netlink-mmap | gpl-2.0 | 9,187 | 322 | codeparrot/github-code |
34e84add1bc329333789f5c3b8ce322436196540d2fae8e4d76bca4320e8b386 | /**
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* $Id$
* Universidad de los Andes (Bogotá - Colombia)
* Departamento de Ingeniería de Sistemas y Computación
* Licenciado bajo el esquema Academic Free License version 2.1
*
* Proyecto Cupi2 (http://cupi2.uniandes.edu.co)
* Ejer... | Java | java/apo/n3_sistemaLockers/source/uniandes/cupi2/sistemaLockers/interfaz/PanelImagen.java | vargax/ejemplos | gpl-2.0 | 1,346 | 48 | codeparrot/github-code |
8302336d884dd372dba3b629bea035b50d6d0fad35a68e23badf1b2cfa9ffe73 | /* SpiralSound
* Copyleft (C) 2001 David Griffiths <dave@pawfal.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 late... | C++ | SpiralSound/Plugins/SplitSwitchPlugin/SplitSwitchPlugin.C | aiju/spiralsynthmodular | gpl-2.0 | 4,721 | 153 | codeparrot/github-code |
a9aebe226eac29a91837c01bb4f5135322d38c0ac175403c2a9ebc3744c87c2d | /*
* Copyright 2000-2004 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Fou... | Java | openjdk/hotspot/agent/src/share/classes/sun/jvm/hotspot/code/RuntimeStub.java | TheTypoMaster/Scaper | gpl-2.0 | 1,791 | 59 | codeparrot/github-code |
32334ab81772b5927ae5c35f8cccb7750ad17fa3fe9de918e6163dedbd2fd8d4 | /* Target-dependent code for the HP PA-RISC architecture.
Copyright (C) 1986-2017 Free Software Foundation, Inc.
Contributed by the Center for Software Science at the
University of Utah (pa-gdb-bugs@cs.utah.edu).
This file is part of GDB.
This program is free software; you can redistribute it and/or ... | C | gdb/hppa-tdep.c | mickael-guene/binutils | gpl-2.0 | 99,698 | 3,217 | codeparrot/github-code |
6b4fc80e6981fea313006e5c75dc9bceff27e545dd93ecf8ab405ee4b9e4f82d | /* Copyright (C) 2007-2008 The Android Open Source Project
**
** This software is licensed under the terms of the GNU General Public
** License version 2, as published by the Free Software Foundation, and
** may be copied, distributed, and modified under those terms.
**
** This program is distributed in the hope that i... | C | telephony/sim_card.c | android-nostalgic/platform_external_qemu | gpl-2.0 | 12,928 | 433 | codeparrot/github-code |
8221283408a6a46d1214b73bb1094fdea65f95efc3b66566803a398273bda0b8 | <?php if(!defined('_VALID')){header('Status: 404 Not Found');die;}
## AnyXML class
# @author legolas558
# @license GPL
# @copyright (c) 2007 legolas558
# @website http://sourceforge.net/projects/anyxml
#
# This class provides a common abstraction layer for
# all possible combinations of XML parsers
#
# expat binding
#... | PHP | classes/anyxml/expat_xml.php | shafiqissani/Thunrianz | gpl-2.0 | 2,914 | 124 | codeparrot/github-code |
d8db002d996c0c801064ce943b93739d01d95d50e2196e2f98cbc9b40becf154 | /*
Author: Alex Belits (abelits@nyx.net)
Copyright (C) 2012 Meyer Sound Laboratories Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option... | C | mbbl/avb-boot.c | jdkoftinoff/mbbl-gpl | gpl-2.0 | 16,514 | 644 | codeparrot/github-code |
e215c61ac9fbc10ebbc3e84676aad4b7a6f18916e48460b539488263095cf4e8 | package com.xxboy.services.asynctasks;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import android.os.AsyncTask;
import com.xxboy.activities.mainview.XCamera;
import com.xxboy.activities.mainview.XCamera.X... | Java | src/com/xxboy/services/asynctasks/XReloadPhoto.java | armstrongli/XCamera | gpl-2.0 | 5,813 | 184 | codeparrot/github-code |
dd9c168e41ca4c98b5b2028bd249482c85a0dd6ea830f73e4492c9b2797c83a4 | using System.ComponentModel.DataAnnotations;
namespace AngularFlashCard.Models
{
public class ExternalLoginConfirmationViewModel
{
[Required]
[Display(Name = "User name")]
public string UserName { get; set; }
}
public class ManageUserViewModel
{
[Required]
... | C# | AngularFlashCard/Models/AccountViewModels.cs | schluect/AngularFlashCard | gpl-2.0 | 1,969 | 64 | codeparrot/github-code |
900f22c487c923b2cd9dd8769eacc5505d76bf382c7f5536edf7c66fbe36c98c | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2022 UniPro <ugene@unipro.ru>
* http://ugene.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 version 2
* ... | C++ | src/plugins/external_tool_support/src/blast/BlastNTask.cpp | ugeneunipro/ugene | gpl-2.0 | 4,140 | 109 | codeparrot/github-code |
a90ccad0a9e8b049f1acf5d997314ac0a2a48f039a70443995b3d89e3c18ff2f | module.exports = angular.module('preVisitLog', [])
.config(route)
.directive('preVisitLog', preVisitLog)
.directive('preVisitLogSybx', preVisitLogSybx)
.directive('preVisitLogQnz', preVisitLogQnz)
.name;
route.$inject = ['$stateProvider'];
function route($stateProvider) {
$stateProvider.state(... | JavaScript | app/page/doc/preVisitLog/preVisitLog.route.js | john-lius/ais_3.0 | gpl-2.0 | 5,694 | 151 | codeparrot/github-code |
6d950c3fa6d27b3a4958d08045a3bfb7335de4ef9f327f3f6ec14c82ee7b0003 | import argparse
import importlib
import inspect
import logging
import os
import shelve
import time
import matplotlib.pyplot
import numpy as np
import nengo
def find_offset(a, b):
assert len(a) == len(b)
corr = np.correlate(a, b, 'full')
index = np.argmax(corr[len(a):])
return index
class Benchmark(... | Python | code/benchmark.py | tcstewar/2015-Embodied_Benchmarks | gpl-2.0 | 5,094 | 162 | codeparrot/github-code |
998f200a234777483aa69fea1e54f5a392957aa96d5407d7491ef4811ebe84ae | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package GUI;
import GUI.Util.FileNameParser;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.nio.charset.Charset;
import java.nio... | Java | Netus/src/GUI/PersistShapeNode.java | fad777/Netus | gpl-2.0 | 23,445 | 664 | codeparrot/github-code |
90a645a71ca6f81fe0de627bb35430f35f69560f15ead8b9e15fc8ed2900aa45 | import { By } from 'selenium-webdriver';
import AsyncBaseContainer from '../async-base-container';
// import DisconnectSurveyPage from '../pages/disconnect-survey-page.js';
import * as dataHelper from '../data-helper';
import * as driverHelper from '../driver-helper.js';
import * as driverManager from '../driver-manage... | JavaScript | test/e2e/lib/components/sidebar-component.js | Automattic/wp-calypso | gpl-2.0 | 11,726 | 363 | codeparrot/github-code |
0dd08ca11557eeeebffd4c1dbda387a09b4f8452b8147617983ba0da74d30d36 | '''
Created on Oct 12, 2013
@author: pglauner
'''
import random
from my_decorators import memo
from uncertainty import best_action
goal = 40
other = {1:0, 0:1}
def roll(state, d):
"""Apply the roll action to a state (and a die roll d) to yield a new state:
If d is 1, get 1 point (losing any accumulated 'pe... | Python | src/cs212/pig_game.py | pglauner/misc | gpl-2.0 | 3,539 | 121 | codeparrot/github-code |
989ef2303a13a1cc2a932d189f13aa16518a11366ae4fccb0176502bfe1a91ca | /*
* sysctl.c - Code for sysctl handling in NTFS Linux kernel driver. Part of
* the Linux-NTFS project. Adapted from the old NTFS driver,
* Copyright (C) 1997 Martin von Löwis, Régis Duchesne
*
* Copyright (c) 2002-2005 Anton Altaparmakov
*
* This program/include file is free software; you can redist... | C | fs/ntfs/sysctl.c | MatiasBjorling/lightnvm-moved-to-OpenChannelSSD-Linux | gpl-2.0 | 2,300 | 84 | codeparrot/github-code |
3c8ada24fa8b477af32caf92ca6400bd841f30af211fbb87b2b7d53bfadaaebb | #include "d3d_common.h"
#ifndef D3D_DEFAULT_DEVICE_FLAGS
# define D3D_DEFAULT_DEVICE_FLAGS 0
#endif
namespace QD3D
{
//----------------------------------------------------------------------------
// Returns true if the debug layers are available
//------------------------------------------------------------... | C++ | code/d3d11/d3d_common.cpp | PJayB/Quake-III-Arena-D3D11 | gpl-2.0 | 25,237 | 744 | codeparrot/github-code |
8249bbfe788928306992bdc0b320e1c4d4be0198d4e5b471d8c5620ee16d862f | <?php
namespace mnhcc\ml\classes {
use \mnhcc\ml\traits;
/**
* Description of URI
*
* @author Michael Hegenbarth (carschrotter)
* @package MinimalusLayoutilus
* @copyright (c) 2013, Michael Hegenbarth
*/
class SERVER extends MNHcC implements \ArrayAccess{
use traits\NoIns... | PHP | classes/SERVER.class.php | carschrotter/MinimalusLayoutilus | gpl-2.0 | 4,685 | 146 | codeparrot/github-code |
b958ccc04875ae4ee646230441601da5ade080f2c1c028b2ca7a5b60fb0650b4 | #ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "cdi.h"
#include "dmemory.h"
#include "grid.h"
#include "institution.h"
#include "model.h"
#include "cdi_int.h"
#include "vlist.h"
#include "namespace.h"
#include "serialize.h"
#include "resource_handle.h"
#include "resource_unpack.h"
#include "taxis.h"
#inclu... | C | libcdi/src/resource_unpack.c | AZed/cdo | gpl-2.0 | 3,580 | 111 | codeparrot/github-code |
f6613e898bd4cc9e679aa73ae272b79b3f521b2061b791bbe4781061b8be06b2 | #!/usr/bin/env python
# ##
# Copyright 2009-2015 Ghent University
#
# This file is part of hanythingondemand
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),... | Python | hod/utils.py | ehiggs/hanythingondemand | gpl-2.0 | 2,111 | 58 | codeparrot/github-code |
2792d29f1679947b3576e8dbbbc6d8a5111a5c2b3ff266f4c271dce1436ae4f1 | /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | Java | src/com/sun/lwuit/table/Table.java | angelorohit/lwuitstripped | gpl-2.0 | 10,516 | 326 | codeparrot/github-code |
d7599611cace1a6a97a8540e36d70bf22001092669269401da6688ebac95efc5 | <?php
require_once( 'functions.php');
/*
Inserting and publishing new post
*/
if (isset($_GET['blogform']) && $_GET['blogform']=='newpost') {
/*
update_post_meta($post_id, $meta_key, $meta_value);
if(!wp_set_post_terms($id, $values['complaint_type'], 'complaint-type'))
... | PHP | wp-content/themes/twentysixteen/blogform.php | anaseya/wpblog | gpl-2.0 | 2,066 | 81 | codeparrot/github-code |
2a384ebb53b3dba3c60471343e73b176eac545235abce5087033c10a804796dc | # Importe la biblioteque pygame
import pygame
# La syntaxe from x import y permet de ne pas devoir ecrire x.y mais juste y
# L'etoile indique que l'on importe tout
from constantes import *
from Sauvegarde import *
from jouer import *
from options import *
pygame.init()
sauvegarde = Sauvegarde()
try:
sauvegarde = ... | Python | main.py | Elyjax/Snake | gpl-2.0 | 2,389 | 72 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.