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 |
|---|---|---|---|---|---|---|---|---|
4694f5678dd3e701cabb7b88cf09c48ff222e8b5f0209a46cdd1c2a18be5baa5 | <?php
G::LoadSystem('inputfilter');
$filter = new InputFilter();
$_REQUEST = $filter->xssFilterHard($_REQUEST);
$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] :'';
// Function call from ajax_function for calling to lookForNameOutput.
if ($action == '') {
$action = isset( $_REQUEST['function'] ) ? $_... | PHP | workflow/engine/methods/outputdocs/outputdocs_Ajax.php | FusionProfessionalsAU/ProcessMaker | agpl-3.0 | 4,852 | 114 | codeparrot/github-code |
b4fa03f52850a0aea915e0d64857cdba9557bae78d6db0be39f9dc8737639679 | <?php
/*********************************************************************************
* TimeTrex is a Workforce Management program developed by
* TimeTrex Software Inc. Copyright (C) 2003 - 2021 TimeTrex Software Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms ... | PHP | classes/modules/policy/ExceptionPolicyControlListFactory.class.php | aydancoskun/timetrex-community-edition | agpl-3.0 | 10,238 | 281 | codeparrot/github-code |
a75c280cd9437d829dbb7b9793c3cb7ab1d4ff51fb1c53559ecaa01598a76b4b | <?php
/**
* Copyright (c) 2016 Manuel Lopez <manuel.lopez@stud.bbbaden.ch>
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the GNU Affero General Public License,
* version 3, as published b... | PHP | API/src/Models/ForgotPasswordModel.php | timetabio/code | agpl-3.0 | 1,117 | 50 | codeparrot/github-code |
7add63b8c9fe48fff6cefe880d2dc0acde1254acf0366cf27c61974e69fdbea6 | package com.surgingsystems.etl;
import java.util.Map;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.context.support.GenericXmlApplicationContext;
import com.surgingsystems.etl.testing.EtlTest;
public class TestRunner {
private static Logger logge... | Java | pneumatic/src/main/java/com/surgingsystems/etl/TestRunner.java | objectuser/pneumatic | agpl-3.0 | 1,379 | 40 | codeparrot/github-code |
becdb7b525b983add2110ab873db37c718f670ec675c01d0d65a68d5a6a169da | <?php
/**
* hwsensors sensor class
*
* PHP version 5
*
* @category PHP
* @package PSI_Sensor
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @version SVN: $Id: class.hwsensors.i... | PHP | www/phpsysinfo/includes/mb/class.hwsensors.inc.php | southskies/osdial | agpl-3.0 | 3,164 | 122 | codeparrot/github-code |
33214b5aeb3cbc6a13842bb662b50f177e2fed9c91a655ecd6d643af4e891d73 | // ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | Java | KalturaClient/src/main/java/com/kaltura/client/types/SftpDropFolder.java | kaltura/KalturaGeneratedAPIClientsAndroid | agpl-3.0 | 2,605 | 83 | codeparrot/github-code |
17bfc22c3fde42cb4bf78bbe2c46a6932c6cc2ac68d1a638405fe39d2f264569 | // ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | Java | src/main/java/com/kaltura/client/enums/KalturaDropFolderOrderBy.java | moskiteau/KalturaGeneratedAPIClientsJava | agpl-3.0 | 3,074 | 106 | codeparrot/github-code |
ad2cb12b9fb44afbf399ca960754b93d1dbf61acd125af3022489ce033f6bcd3 | # -*- coding: utf-8 -*-
# This file is part of Mconf-Web, a web application that provides access
# to the Mconf webconferencing system. Copyright (C) 2010-2015 Mconf.
#
# This file is licensed under the Affero General Public License version
# 3 or later. See the LICENSE file.
# The mailer with methods inherited by all... | Ruby | app/mailers/base_mailer.rb | mconf/mconf-web | agpl-3.0 | 2,612 | 81 | codeparrot/github-code |
6c8c6145aba874a505167f555478273a32dea65090d6867610cd702cf18079b8 | /*##############################################################################
Copyright (C) 2011 HPCC Systems.
All rights reserved. This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foun... | C++ | esp/bindings/SOAP/Platform/soapmessage.hpp | afishbeck/HPCC-Platform | agpl-3.0 | 27,466 | 673 | codeparrot/github-code |
a873d17ba5c1aeed40d21fb21bdf1086a62a5fa8a1fe1588775182c49264b446 | #include <emp-tool>
#include "malicious/malicious.h"
#define AES
#ifdef AES
static char file[] = "circuits/files/AES-non-expanded.txt";
static int l1 = 128;
static int l2 = 128;
static int l3 = 128;
#endif
#ifdef SHA1
static char file[] = "circuits/files/sha-1.txt";
static int l1 = 512;
static int l2 = 512;
static int ... | C++ | crislib/libscapi/lib/EMP/emp-m2pc/bench/mal_decompose.cpp | cris-iisc/mpc-primitives | agpl-3.0 | 1,968 | 84 | codeparrot/github-code |
208bb51a794e8a2b20e6788e38ab6f8808bb38a6ecc9b0c5fa21cf4b2611c154 | """
A command to notify non active users
"""
from datetime import datetime, timedelta
from logging import getLogger
from django.core.management.base import BaseCommand
from pytz import utc
from common.lib.mandrill_client.client import MandrillClient
from courseware.models import StudentModule
from lms.djangoapps.bran... | Python | common/djangoapps/philu_commands/management/commands/notify_non_active_users.py | philanthropy-u/edx-platform | agpl-3.0 | 3,635 | 88 | codeparrot/github-code |
4c29c941127aa905a4d67a6c2929acb38b2f54b9e2c96192467bf1c0115f6869 | package com.google.android.gms.b;
import android.net.Uri;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.text.TextUtils;
import java.util.Collections;
import java.util.Iterator;
import java.util.Map;
import java.util.Queue;
public abstract class hs<T> implements Com... | Java | Reference/IPGWAndroid/com/google/android/gms/b/hs.java | WenbinHou/PKUAutoGateway.Android | agpl-3.0 | 3,639 | 132 | codeparrot/github-code |
1d925836893bb84d00f6da36a2ac7ead17040379f5f383e23d46da6e636297ab | package objective.taskboard.monitor;
import java.math.BigDecimal;
import objective.taskboard.data.ScenarioChartDataSet;
import objective.taskboard.scenario.model.LogbookModel;
public class ScopeSectionGenerator extends DeltaSectionGenerator {
public ScopeSectionGenerator(ScenarioChartDataSet scopeData) {
... | Java | strategical-dashboard/src/main/java/objective/taskboard/monitor/ScopeSectionGenerator.java | objective-solutions/taskboard | agpl-3.0 | 794 | 34 | codeparrot/github-code |
31bb1413fb6a8af5615c5735fe2ec99d9631ca55f1fc68dea6b6976e5aa27543 | /*
* This program was produced for the U.S. Agency for International Development. It was prepared by the USAID | DELIVER PROJECT, Task Order 4. It is part of a project which utilizes code originally licensed under the terms of the Mozilla Public License (MPL) v2 and therefore is licensed under MPL v2 or later.
*
... | Java | modules/equipment/src/main/java/org/openlmis/equipment/repository/EquipmentInventoryRepository.java | vimsvarcode/elmis | agpl-3.0 | 1,872 | 44 | codeparrot/github-code |
896251f1144e5825b2ce1816d32fb4bdc689212510d85b45c6e885a88f9c994f | /*
* Clutter.
*
* An OpenGL based 'interactive canvas' library.
*
* Authored By: Matthew Allum <mallum@openedhand.com>
* Øyvind Kolås <pippin@o-hand.com>
* Emmanuele Bassi <ebassi@linux.intel.com>
*
* Copyright (C) 2007, 2008 OpenedHand
* Copyright (C) 2009 Intel Corp
*
* This... | C | clutter/deprecated/clutter-shader.c | djdeath/clutter-multithreaded | lgpl-2.1 | 25,731 | 943 | codeparrot/github-code |
d76979605247f620f34e115ce6ab762194703e8a3263aefe4f7047326ba3e3d8 | package elementsmc.common.main;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.network.NetHandlerPlayServer;
import net.minecraft.tileentity.TileEntity;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.... | Java | src/main/java/elementsmc/common/main/EMNetworkHandler.java | miucat17/ElementsMC | lgpl-2.1 | 1,597 | 58 | codeparrot/github-code |
a584f3397a021cdf9ca70213165431f55da1a311c2657288a80ddfcdeeb4ed83 | /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_git_types_h__
#define INCLUDE_git_types_h__
#include "common.h"
/**
* @file git2/types... | C | include/git2/types.h | zodiac/libgit2.js | lgpl-2.1 | 6,602 | 227 | codeparrot/github-code |
e1dcdcccb7437174997b0ee2d0f2652e61009f4584a30cbcc2b80fbe50ba56d7 | # - Searches for GNU Scientific Libraries
# See
# http://www.gnu.org/software/gsl/ and
# http://gnuwin32.sourceforge.net/packages/gsl.htm
#
# Adopted from the following blog post:
# http://www.miscdebris.net/blog/2010/06/21/cmake-module-to-find-gnu-scientific-library-findgsl-cmake/
# Which was in turn based on ... | CMake | cmake/FindGSL.cmake | pemryan/DAKOTA | lgpl-2.1 | 6,351 | 184 | codeparrot/github-code |
1d6069b30e59f43536c2daf7ff11182dbd491da9a49072a9db7021d545346430 | //==============================================================================
// Brief : QOS_LIST Data Type
// Authors : Carlos Guimarães <cguimaraes@av.it.pt>
//------------------------------------------------------------------------------
// ODTONE - Open Dot Twenty One
//
// Copyright (C) 2013 Universidade Avei... | Java | src/mih/types/qos/QosList.java | ATNoG/MIH-JAVA-Library | lgpl-2.1 | 3,560 | 102 | codeparrot/github-code |
cb4e0ff8212b65d42a6d503cf650a1246a634d258f5daf301dd2c286eeaf6b2b | /*
* agent_registry.c
*/
/* Portions of this file are subject to the following copyright(s). See
* the Net-SNMP's COPYING file for more details and other copyrights
* that may apply:
*/
/*
* Portions of this file are copyrighted by:
* Copyright © 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subjec... | C | apps/snmp/net-snmp-5.4.4/agent/agent_registry.c | stanxii/wr1004sjl | lgpl-2.1 | 58,467 | 1,885 | codeparrot/github-code |
85fc201447adc363a23f4a337a1f0aa8c50c4f85dbd66126609ea73b473cacaf | /*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software
* Foundation.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, you c... | Java | engine/core/src/main/java/org/pentaho/reporting/engine/classic/core/modules/gui/commonswing/SwingUtil.java | mbatchelor/pentaho-reporting | lgpl-2.1 | 6,054 | 168 | codeparrot/github-code |
603ccf610a7ebd6daef0ef5299861bc0e05e42f645c731f9078e6653ac94c92d | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
*
* This program 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 Found... | C | camel/camel-mempool.c | Distrotech/evolution-data-server | lgpl-2.1 | 5,438 | 223 | codeparrot/github-code |
df50f49d15a5d0bb8793129db7227f081eb4a691888324e7767064edd29a5dda | // The libMesh Finite Element Library.
// Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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 ... | C | include/numerics/laspack_matrix.h | certik/libmesh | lgpl-2.1 | 13,555 | 576 | codeparrot/github-code |
739165ac648e8bef05762b2c0bb1ef3760988195da636e332685de875ae9eb0b | #=======================================================================
# Screen-scraping framework
#=======================================================================
import logging
try:
import bs4 as soup
except ImportError:
import BeautifulSoup as soup
import urllib2
from urllib import urlencode
... | Python | ptscrape.py | pythontech/ptscrape | lgpl-2.1 | 2,668 | 83 | codeparrot/github-code |
f7120693cefa8b81d03959530f5c9fa5b0351e93c675de015e6cee7ab321e2f9 | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of th... | C++ | examples/network/torrent/trackerclient.cpp | sicily/qt4.8.4 | lgpl-2.1 | 7,992 | 237 | codeparrot/github-code |
e0a9527a37fb4a8145f0a6ce2d194ee99dc5c85407395d3521193949214ef718 |
public class AlarmClock
{
// these are instance variables - each alarm clock has its
// own copy of these variables
// current time
private long currentHour;
private long alarmHour;
private Boolean alarmShot;
private Boolean alarmOn;
private long day = 24 * 60 * 60 * 1000;
public ... | Java | Dutch_Auction/src/AlarmClock.java | joaofloressantos/Dutch_Auction | lgpl-2.1 | 1,606 | 77 | codeparrot/github-code |
b104b89eb7c529a7038c54d337e34c0ee368ba6c815e1bd2b9d3b08f17b6298f | package com.outlookphone.corporeaextender;
import vazkii.botania.api.lexicon.IAddonEntry;
import vazkii.botania.api.lexicon.LexiconCategory;
import vazkii.botania.api.lexicon.LexiconEntry;
import vazkii.botania.api.lexicon.LexiconPage;
public abstract class BaseEntry extends LexiconEntry implements IAddonEntry {
pu... | Java | src/main/java/com/outlookphone/corporeaextender/BaseEntry.java | Eladkay/Corporea-Extender | lgpl-2.1 | 817 | 35 | codeparrot/github-code |
af88219dee87f3afa3c513eedae5a6169034965a0d1647d651d34f7058560766 | /* Copyright (c) 2013-2014 Boundless and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/edl-v10.html
*
* Cont... | Java | src/api/src/main/java/org/locationtech/geogig/repository/DiffObjectCount.java | jodygarnett/GeoGig | lgpl-2.1 | 4,681 | 171 | codeparrot/github-code |
02e527003d48cda8a39c7fc8d581bc3546d72fce09ffec3964872d2611180b50 | /*****************************************************************
SPINE - Signal Processing In-Node Environment is a framework that
allows dynamic configuration of feature extraction capabilities
of WSN nodes via an OtA protocol
Copyright (C) 2007 Telecom Italia S.p.A.
�
GNU Lesser General Public License
�... | Java | Spine_Android_serverApp/src/spine/PropertiesImpl.java | raffy1982/spine-project | lgpl-2.1 | 3,257 | 121 | codeparrot/github-code |
4c2f4bb16975c60b0201b6c2c1ce89ae41ac43f8e9f8a52447653699f5c8866d | //---------------------------------------------------------------------------
//
// MadTracker Objects
//
// Platforms: All
// Processors: All
//
// Copyright � 1999-2006 Yannick Delwiche. All rights reserved.
//
// $Id: MTFilter.cpp 100 2005-11-30 20:19:39Z Yannick $
//
//--------------------------------------------... | C++ | MTObjects/MTFilter.cpp | MadTracker-FOSS/MadTracker3 | lgpl-2.1 | 3,778 | 184 | codeparrot/github-code |
889c34f9ccafca76cc253dda142a192624a6e8d4b30dc8a25b9a7276c2aed6c0 | /* dlvhex -- Answer-Set Programming with external interfaces.
* Copyright (C) 2005-2007 Roman Schindlauer
* Copyright (C) 2006-2015 Thomas Krennwallner
* Copyright (C) 2009-2016 Peter Schüller
* Copyright (C) 2011-2016 Christoph Redl
* Copyright (C) 2015-2016 Tobias Kaminski
* Copyright (C) 2015-2016 Antonius Wei... | C++ | src/Benchmarking.cpp | hexhex/core | lgpl-2.1 | 17,294 | 472 | codeparrot/github-code |
76a38d7624894e84caa2ada2acf26d9fb5b93144e28070cb222fe0b949c4863d | // rbOOmit: An implementation of the Certified Reduced Basis method.
// Copyright (C) 2009, 2010 David J. Knezevic
// This file is part of rbOOmit.
// rbOOmit 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 Fou... | C++ | src/reduced_basis/transient_rb_theta_expansion.C | certik/libmesh | lgpl-2.1 | 1,668 | 57 | codeparrot/github-code |
052c7d1ada827b7aff77a53831359b3ba27fd4a8493e386775a68f49c8abf650 | // SPDX-License-Identifier: GPL-2.1-or-later
/*
* Copyright (C) 2009-2014 Cyril Hrubis <metan@ucw.cz>
*/
/*
Shows how to register custom image loader/saver.
Feed it with small image (cca 60x60 pixels) to produce ASCII art version.
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <g... | C | demos/c_simple/loaders_register.c | gfxprim/gfxprim | lgpl-2.1 | 2,385 | 125 | codeparrot/github-code |
f35a3c4904095cf0a18945965d031a9b0f3873e7c817203cd2530bc68ca16c15 | /*
* Copyright (c) 2009-2013 Rubrica.ec
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*/
package ec.rubric... | Java | src/main/java/ec/rubrica/cert/bce/CertificadoBancoCentralViejo.java | rarguello/rubrica | lgpl-2.1 | 1,933 | 71 | codeparrot/github-code |
b1db8ac6bd93a6bacee12cc9ab212f773291464f9455105e6e2b2e1ddfdfb63d | package com.stek101.projectzulu.common.potion.brewingstands;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class SlotBrewingStandSingleIngredient extends Slot {
/** The brewing stand this slot belongs to. */
final ContainerBrewingSt... | Java | src/main/java/com/stek101/projectzulu/common/potion/brewingstands/SlotBrewingStandSingleIngredient.java | soultek101/projectzulu1.7.10 | lgpl-2.1 | 1,197 | 38 | codeparrot/github-code |
af0faba8e5674237af13af4ab3cc5a2aea4d7e5346fd37e477f4ab0874c916fd | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | C | modules/SofaExporter/VTKExporter.h | Anatoscope/sofa | lgpl-2.1 | 4,204 | 113 | codeparrot/github-code |
4ad6449a97b5099eeba01a23f8d3a5a534eb6b12fe49bfc88596e4a5531b053f | /*
* libiio - Library for interfacing industrial I/O (IIO) devices
*
* Copyright (C) 2015 Analog Devices, Inc.
* Author: Paul Cercueil <paul.cercueil@analog.com>
*
* 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 ... | C# | bindings/csharp/Context.cs | Sunderfield/libiio | lgpl-2.1 | 9,165 | 217 | codeparrot/github-code |
b43d13d7f0c8305ac5f2a3e28f3477880163a148d12ce8873de5de9bb546b345 | //
// BooleanEditorCell.cs
//
// Author:
// Lluis Sanchez Gual
//
// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without res... | C# | Docking/Monodevelop.PropertyGrid/Editors/BooleanEditorCell.cs | Michael--/DockingFramework | lgpl-2.1 | 3,035 | 93 | codeparrot/github-code |
94cc37f7ed2145aa1098b421beac42389139bbac50b5d70f543d4c729f60e780 | /* Part of SWI-Prolog
Author: Jan Wielemaker
E-mail: J.Wielemaker@vu.nl
WWW: http://www.swi-prolog.org/projects/xpce/
Copyright (C): 1985-2013, University of Amsterdam
VU University Amsterdam
This program is free software; you can redistribute it and/or
modify... | Perl | library/prolog_colour.pl | edechter/swipl-devel | lgpl-2.1 | 70,370 | 2,223 | codeparrot/github-code |
b738000475b65fa6f9c610cfac70abccda229a047c2f555a513ae78aaa1ee451 | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Rocblas(CMakePackage):
"""Radeon Open Compute BLAS library"""
homepage = "https://gi... | Python | var/spack/repos/builtin/packages/rocblas/package.py | iulian787/spack | lgpl-2.1 | 4,299 | 107 | codeparrot/github-code |
62b1d53a4a943c6e77715b4de1695c86c366e0c97bc6460449f935abd44974dd | /******************************************************************************
* $Id: pcidskdataset2.cpp 22004 2011-03-21 14:18:53Z warmerdam $
*
* Project: PCIDSK Database File
* Purpose: Read/write PCIDSK Database File used by the PCI software, using
* the external PCIDSK library.
* Author: Frank... | C++ | 3rdparty/gdal/frmts/pcidsk/pcidskdataset2.cpp | thahemp/osg-android | lgpl-2.1 | 69,649 | 1,975 | codeparrot/github-code |
bacd2539136f8b3983c644f7378742eb10b559a9134f77a5ad21139be988f00d | (function () {
var ScaleMaker = require('scale-maker');
var InstrumentFactory = require('./modules/instrumentFactory');
var LayerStack = require('./modules/layerStack');
var _ = require('lodash');
function onDOMReady () {
var scaleNames = ScaleMaker.getScaleNames(),
scales = {};
scaleNames.... | JavaScript | src/js/main.js | davidcole1977/tenori-on-alike | lgpl-2.1 | 5,826 | 188 | codeparrot/github-code |
64780922327153387a0783efaaf118c4ae265e325edb9c6ffdafe9dcff4c94c1 | package com.camp.block;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
impor... | Java | src/main/java/com/camp/block/NetherRedstone.java | trainboy2019/1.7modrecove4r2 | lgpl-2.1 | 2,172 | 70 | codeparrot/github-code |
0463a6487003f5006101335fd2c2709fa72bc906f5d06f9d2309073a33ac4abb | #region Licence
/*
Babbacombe SockLib
https://github.com/trevorprinn/SockLib
Copyright © 2015-2017 Babbacombe Computers Ltd.
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 Founda... | C# | Extensions.cs | trevorprinn/Babbacombe.SockLib | lgpl-2.1 | 3,621 | 96 | codeparrot/github-code |
d60d13c9041d804790684b7693bcd19b8674d91c05ab0a34f8f9b605ba6a57b6 | /*
* GStreamer Plugins VR
* Copyright (C) 2016 Lubosz Sarnecki <lubosz.sarnecki@collabora.co.uk>
*
* 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 Licens... | C | gst-libs/gst/3d/gst3dshader.h | lubosz/gst-plugins-vr | lgpl-2.1 | 2,807 | 82 | codeparrot/github-code |
a26460ba1d270a86920dd5b65dd19392aaa8a764c2a367e5abcd982853478676 | /* gst-editing-services
* Copyright (C) <2013> Thibault Saunier <thibault.saunier@collabora.com>
* <2013> Collabora Ltd.
*
* gst-editing-services 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 | ges/ges-timeline-element.c | cfoch/gst-editing-services | lgpl-2.1 | 25,126 | 883 | codeparrot/github-code |
d9e00d59139c26b45c033104ec279c4a42e0b9954f9e838f9623b4a033c4975c | /*
* This software is based upon the book CUDA By Example by Sanders and Kandrot
* and source code provided by NVIDIA Corporation.
* It is a good idea to read the book while studying the examples!
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawin... | C# | CudafyByExample/chapter06/ray_gui.cs | KarimLUCCIN/Cudafy | lgpl-2.1 | 2,391 | 85 | codeparrot/github-code |
f7d7ea1d795baf6a03bcd25652e0a629a148343143a3bb0a07754bff2daeacad | /*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | C | src/3rdparty/webkit/JavaScriptCore/runtime/MarkStack.h | kobolabs/qt-everywhere-opensource-src-4.6.2 | lgpl-2.1 | 5,896 | 188 | codeparrot/github-code |
37e5a5cd67cbc5ee61882b6d04a6eba53356cc358ce1f239585bbf92ef7e4d1f | /*
* Copyright (c) 2016 Thomas Pornin <pornin@bolet.org>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, ... | C | src/md5/md5.c | rofl0r/libulz | lgpl-2.1 | 5,885 | 222 | codeparrot/github-code |
f7c9ab50ae5034f2fe5aa7cead1e4608b4110f502773f85a4f0d0c44db5664d3 | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | C++ | src/xml_tree.cpp | zerebubuth/mapnik | lgpl-2.1 | 11,765 | 452 | codeparrot/github-code |
980c29fad4fefb15889dadbf824ca81bb1a5dcd8c40c331af416776f8a28d978 | /**
* Copyright (c) 2009-2014 Câmara dos Deputados. Todos os direitos reservados.
*
* e-Democracia é um software livre; você pode redistribuí-lo e/ou modificá-lo dentro
* dos termos da Licença Pública Geral Menor GNU como publicada pela Fundação do
* Software Livre (FSF); na versão 2.1 da Licença, ou (na sua opin... | Java | cd-priorizacao-portlet/src/main/java/br/gov/camara/edemocracia/portlets/priorizacao/model/VotoWrapper.java | camaradosdeputadosoficial/edemocracia | lgpl-2.1 | 8,671 | 355 | codeparrot/github-code |
979ba9e345abca282e63d6ecf546965d4dcd1e336c99bb04bd89bc7d23dbd69f | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | C++ | SofaKernel/framework/sofa/simulation/VectorOperations.cpp | hdeling/sofa | lgpl-2.1 | 8,086 | 217 | codeparrot/github-code |
4f08485f79310636143bc10ddadd8d85f8c95f26528902d6d7d6c01eb33c57f7 | /**
* Copyright (C) 2013 Orbeon, Inc.
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation; either version
* 2.1 of the License, or (at your option) any later version.
*
* This program is distr... | Scala | src/main/scala/org/orbeon/oxf/xforms/XFormsModelBindsBase.scala | martinluther/orbeon-forms | lgpl-2.1 | 15,581 | 296 | codeparrot/github-code |
5ff9fc348960fd539c62341b1edc8721a54621770dd913fcd0c43dbc9f8cec6a | /****************************************************************************************************
Copyright (C) 2010 RapidWebDev Organization (http://rapidwebdev.org)
Author: Eunge, Legal Name: Jian Liu, Email: eunge.liu@RapidWebDev.org
The GNU Library General Public License (LGPL) used in RapidWebDev is
... | C# | src/RapidWebDev.FileManagement/FileHeadObject.cs | TatumAndBell/RapidWebDev-Enterprise-CMS | lgpl-2.1 | 3,038 | 96 | codeparrot/github-code |
6870708d7914a09d43976a0c84fe0c2ee07de63a4ae99c385a8834c4a793114d | /**
* Copyright (C) 2013 Orbeon, Inc.
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation; either version
* 2.1 of the License, or (at your option) any later version.
*
* This program i... | JavaScript | xforms/jvm/src/main/assets/ops/javascript/orbeon/xforms/controls/Help.js | brunobuzzi/orbeon-forms | lgpl-2.1 | 8,765 | 184 | codeparrot/github-code |
21cea21cc3ac0cfafb40ef05d98db969c949a95e0df2be8f9b9111856e38e611 | /* _______________________________________________________________________
DAKOTA: Design Analysis Kit for Optimization and Terascale Applications
Copyright (c) 2010, Sandia National Laboratories.
This software is distributed under the GNU Lesser General Public License.
For more information, see the R... | C++ | src/MorseSmaleComplex.hpp | pemryan/DAKOTA | lgpl-2.1 | 4,414 | 193 | codeparrot/github-code |
ca2cb5615bbd5be421c733b0988c18f96bae2b383ef20f25d5fe1a961ad7deae | /* Copyright (C) 2008 Egon Willighagen <egonw@users.sf.net>
*
* Contact: cdk-devel@lists.sourceforge.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of ... | C# | NCDK/Tools/Diff/Tree/ChemObjectDifference.cs | kazuyaujihara/NCDK | lgpl-2.1 | 2,010 | 61 | codeparrot/github-code |
c168ee018389d2a759787a823aa087baf292d9262a2ad931c9b2de9057be8ea3 | /***************************************************************************
begin : Tue Jul 07 2009
copyright : (C) 2009 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* ... | C | src/os/gwendate.c | Zauberstuhl/gwenhywfar | lgpl-2.1 | 16,991 | 855 | codeparrot/github-code |
7612ae8f5ec4feab495e29f2daf21118b8e5bdb9299f2a4d6eabc1d5b26d50b2 | //Copyright Paul Reiche, Fred Ford. 1992-2002
/*
* 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 pr... | C | project/jni/application/sc2/src/uqm/commglue.h | greenrobot/sdl-android | lgpl-2.1 | 3,997 | 160 | codeparrot/github-code |
18f44c6f1f4583d67d0aea9f5205f2caef31df66b374d3d9f9d3dfe41bd02811 | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of th... | C++ | examples/opengl/samplebuffers/glwidget.cpp | sicily/qt4.8.4 | lgpl-2.1 | 5,156 | 165 | codeparrot/github-code |
4540ec76fafee5a20f141ecb06c0a095646a5b5e7e9696f63dbbdf0c32b66516 | ##############################################################################
# adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD)
# Simulations on HPC Resources
# Copyright 2017 FU Berlin and the Authors
#
# Authors: Jan-Hendrik Prinz
# Contributors:
#
# `adaptiveMD` is free software: ... | Python | adaptivemd/misc/archive.py | thempel/adaptivemd | lgpl-2.1 | 2,560 | 86 | codeparrot/github-code |
8d3cd87e195288c588ea568f1a3e3baa70d5bc8d8dc4af04ae09d46acee76580 | /* Copyright (c) 2015 Boundless.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/edl-v10.html
*
* Contributors:
* Gab... | Java | src/storage/postgres/src/test/java/org/locationtech/geogig/storage/postgresql/integration/PGRevertOpTest.java | jodygarnett/GeoGig | lgpl-2.1 | 1,501 | 41 | codeparrot/github-code |
98d779b11c9bfe136f6421fd86d43660d7774d5cf3a4ed0f5bd5e6419a3143fe | package me.creepinson.packet;
import me.creepinson.capability.IMagicalDust;
import me.creepinson.capability.MagicDustProvider;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.network.simpleimpl.IM... | Java | essenceplus/src/main/java/me/creepinson/packet/GetManaHandler.java | dafuq360/essenceplusnew | lgpl-2.1 | 1,213 | 30 | codeparrot/github-code |
5b33598663389d059cf8f14df566c2a2a21c30e256b2c022d5b11a274f50ff32 | /*
* FastRPC -- Fast RPC library compatible with XML-RPC
* Copyright (C) 2005-7 Seznam.cz, a.s.
*
* 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.1 of the Licen... | C++ | src/frpctreefeeder.cc | mody/fastrpc | lgpl-2.1 | 4,123 | 147 | codeparrot/github-code |
e15e27257f009ac70ad9ffb0356ac07ec683be173cd075b49fab677d552f29fd | #
# This file is part of Dist-Zilla-PluginBundle-RSRCHBOY
#
# This software is Copyright (c) 2013 by Chris Weyl.
#
# This is free software, licensed under:
#
# The GNU Lesser General Public License, Version 2.1, February 1999
#
package Pod::Weaver::Section::RSRCHBOY::RoleParameters;
our $AUTHORITY = 'cpan:RSRCHBOY';
... | Perl | lib/Pod/Weaver/Section/RSRCHBOY/RoleParameters.pm | gitpan/Dist-Zilla-PluginBundle-RSRCHBOY | lgpl-2.1 | 3,581 | 108 | codeparrot/github-code |
0c3ae21c0523fac8062be6e44e60c674f3236b9f6e7aa57dedd3854037e0d77c | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2010, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* T... | Java | com.huawei.soa.ldae/src/main/java/org/hibernate/internal/FilterConfiguration.java | kevin-chen-hw/LDAE | lgpl-2.1 | 3,222 | 95 | codeparrot/github-code |
433d9e200a53a5440f49ccb4fa9db0820543d4bd066070d4dbc7e02ad758ea84 | /****************************************************************************
**
** Copyright (C) Qxt Foundation. Some rights reserved.
**
** This file is part of the QxtCore module of the Qxt library.
**
** This library is free software; you can redistribute it and/or modify it
** under the terms of the Common ... | C++ | maqxt/core/maqxtglobal.cpp | an9bit-movavi/maqxt | lgpl-2.1 | 7,981 | 242 | codeparrot/github-code |
f4ce81022ebbf3c1c720dd89ecd516a456a1b48c4a6a705daaca7f1c8edad0de | #include "net/gnrc.h"
#include "xtimer.h"
#include "bloom.h"
#include "ccnlriot.h"
#include "dow.h"
/* data format of beacons */
#define BEACONING_MK (0x1701)
typedef struct __attribute__((packed)) {
uint16_t magic_key;
uint32_t id;
} beacon_t;
/* initialize some global variables */
uint16_t dow_positio... | C | ccnl_caching/beaconing.c | OlegHahm/miniature-dangerzone | lgpl-2.1 | 4,509 | 141 | codeparrot/github-code |
ae4a1d7520ece6187caccbe73a757877bd7be62ad62c33f38988cef35fd461ff | //-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// GRINS - General Reacting Incompressible Navier-Stokes
//
// Copyright (C) 2014-2016 Paul T. Bauman, Roy H. Stogner
// Copyright (C) 2010-2013 The PECOS Developm... | C | src/physics/include/grins/spalart_allmaras_helper.h | nicholasmalaya/grins | lgpl-2.1 | 1,891 | 69 | codeparrot/github-code |
c8627366911f6a67e42a0d5188cee4f50f025571d33a8a10889e068b0e24ff59 | package org.cytoscape.command.internal;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import java.util.List;
import org.cytoscape.command.StringToModel;
import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.CyNode;
import or... | Java | command-executor-impl/src/test/java/org/cytoscape/command/internal/StringToModelTest.java | cytoscape/cytoscape-impl | lgpl-2.1 | 3,619 | 111 | codeparrot/github-code |
5d9a726c8e1a15f351c9f335c6b25c766e2f9e86843378219a57e0989fc75c07 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: m... | HTML | doc/html/network-broadcastsender-main-cpp.html | sicily/qt4.8.4 | lgpl-2.1 | 12,187 | 258 | codeparrot/github-code |
1c3a8604a03653ead1edf47834fbdf7386cd307ecaf5e12a8670f70d13182441 | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.opengis.cat.csw20.impl;
import java.lang.String;
import net.opengis.cat.csw20.Csw20Package;
import net.opengis.cat.csw20.RecordPropertyType;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import... | Java | modules/ogc/net.opengis.csw/src/net/opengis/cat/csw20/impl/RecordPropertyTypeImpl.java | geotools/geotools | lgpl-2.1 | 7,118 | 255 | codeparrot/github-code |
da3fe2a1b74efb89131ce79c6f59651849de8ef45561d40f253d191dfab793ec | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: c... | HTML | doc/html/webkit-webkit-guide-css-css3-multicol-css.html | sicily/qt4.8.4 | lgpl-2.1 | 13,213 | 312 | codeparrot/github-code |
14e21d66b3fa7c69c1670550b86a84f4c254b7a564349cfbac6351d5f07fd18c | /* ========================================================================= *
*
* This file is part of Alarmd
*
* Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
*
* Contact: Simo Piiroinen <simo.piiroinen@nokia.com>
*
* Alarmd is free software; you can redistribute it and/or
* modify i... | C | src/strbuf.c | community-ssu/alarmd | lgpl-2.1 | 26,869 | 1,086 | codeparrot/github-code |
a65a7e07f28f8d1b663daefea002df2d7aafa7abc0547bda0527d649f4e91e5c | #region netDxf library licensed under the MIT License
//
// netDxf library
// Copyright (c) 2019-2021 Daniel Carvajal (haplokuon@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softwa... | C# | netDxf/Collections/DimensionStyles.cs | haplokuon/netDxf | lgpl-2.1 | 9,883 | 252 | codeparrot/github-code |
0b0f4cb269f1af7712e2be8df8ae63166f3deda590e57d38e8169888b21d847a | /*
* Copyright © 2015 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is ... | C | builder/builder-source.h | matthiasclasen/xdg-app | lgpl-2.1 | 3,392 | 91 | codeparrot/github-code |
dee061362872a91d9c836057a5cbf7de193a87471117110e703e0c45e9a37804 | /*
* This library is part of OpenCms -
* the Open Source Content Management System
*
* Copyright (c) Alkacon Software GmbH (http://www.alkacon.com)
*
* 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 So... | Java | src/org/opencms/repository/CmsRepository.java | serrapos/opencms-core | lgpl-2.1 | 5,707 | 158 | codeparrot/github-code |
de1609195110c8ef15fdb67d0d3987f6ddb6de82be6c0c95630ba384e531003c | class MainframesController < ApplicationController
before_action :set_mainframe, only: [:show, :edit, :update, :destroy]
load_and_authorize_resource
# GET /mainframes
# GET /mainframes.json
def index
#@mainframes = Mainframe.all.paginate(:page => params[:page], :per_page => 10)
@mainframes = initiali... | Ruby | app/controllers/mainframes_controller.rb | klys2004/bjsp | lgpl-2.1 | 3,155 | 99 | codeparrot/github-code |
ecdafef740520a42bcc5efb411bef0ce0d261197b0408cc87c1eb6cdebef340a | //
// JOOReports - The Open Source Java/OpenOffice Report Engine
// Copyright (C) 2004-2006 - Mirko Nasato <mirko@artofsolving.com>
//
// 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; e... | Java | src/main/java/org/jodreports/templates/UnzippedDocumentTemplate.java | jodreports/jodreports-library | lgpl-2.1 | 1,996 | 55 | codeparrot/github-code |
6764e11c2e107efd2b19c6c88eaf239676e036b71e57532116d13414696f5a3f | /*
* SpanDSP - a series of DSP components for telephony
*
* v17_v32bis_tx_constellation_maps.h - ITU V.17 and V.32bis modems
* transmit part. Constellation mapping.
*
* Written by Steve Underwood <steveu@coppice.org>
*
* Copyright (C) 2004, 2012 Steve Underwood
*
* All rig... | C | src/v17_v32bis_tx_constellation_maps.h | nc543/spandsp | lgpl-2.1 | 17,071 | 334 | codeparrot/github-code |
a9f705e1378af4d9bdd35f2c7b081a75a9d635554800a9da69683e6cd1cdc371 | /*
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | C | Source/WebCore/loader/cache/CachedFont.h | youfoh/webkit-efl | lgpl-2.1 | 3,237 | 95 | codeparrot/github-code |
226a9f9f474e44fb3a075df729f1116fa51046d857ca65376bab4ac9beb8b59a | # PyUI
# Copyright (C) 2001-2002 Sean C. Riley
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but... | Python | pyui/themeBase.py | burito/PyUI | lgpl-2.1 | 7,045 | 219 | codeparrot/github-code |
199b2c0708903d3c69d22a8445f4eda1768b8ef602fb44664c754c5e2c07f85c | /* This file is part of ccc
*
* AUTHORS
* Canek Pelaez <canek@ciencias.unam.mx>
*
* Copyright (C) 2006 Sven Herzberg <herzi@gnome-de.org>
*
* This program 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 Softwa... | C | demo/layers.c | herzi/ccc | lgpl-2.1 | 4,955 | 138 | codeparrot/github-code |
de61ce872a0b35b6b9070a3fc7a24f3ca3ff75b73beca253efae75abaabdab8a | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- q3url.cpp -->... | HTML | doc/html/q3url-members.html | sunblithe/qt-everywhere-opensource-src-4.7.1 | lgpl-2.1 | 13,069 | 238 | codeparrot/github-code |
b7042c92aba0bccb6789fd9a0a4e660f80dc780bcb52cd9c8854b44542fc006a | from random import randint
import gobject
import clutter
import mxpy as mx
sort_set = False
filter_set = False
def sort_func(model, a, b, data):
return int(a.to_hls()[0] - b.to_hls()[0])
def filter_func(model, iter, data):
color = iter.get(0)[0]
h = color.to_hls()[0]
return (h > 90 and h < 180)
def ... | Python | examples/test-item-view.py | buztard/mxpy | lgpl-2.1 | 1,682 | 67 | codeparrot/github-code |
84e5f784c0395abda38f54a37674ae86f076e093b486b1d7ddc70df0985c94e3 | /*
* This file is part of libFirm.
* Copyright (C) 2012 University of Karlsruhe.
*/
/**
* @file
* @brief The main amd64 backend driver file.
*/
#include "amd64_abi.h"
#include "amd64_bearch_t.h"
#include "amd64_emitter.h"
#include "amd64_finish.h"
#include "amd64_new_nodes.h"
#include "amd64_optimize.h"
#inc... | C | ir/be/amd64/amd64_bearch.c | MatzeB/libfirm | lgpl-2.1 | 26,585 | 845 | codeparrot/github-code |
d4754d90278aca9290eda218edfe9eea275e2ce1ff87c4a299614bd6701b8938 | /*
EEPROM.h - EEPROM library
Plain-C version for SDuino by Michael Mayer 2018.
This is a rewrite from scratch. The basic API is inspired by the
Arduino EEPROM library, but none of the operator overloading functions
can be ported in any sensible way to C.
Original Copyright (c) 2006 David A. Mellis. All r... | C | sduino/stm8/libraries/EEPROM/src/utility/eeprom_write_block.c | tenbaht/sduino | lgpl-2.1 | 1,886 | 57 | codeparrot/github-code |
981c527e8e4c9355e553d6db0625931031e19e22ef18cc3499cfe1879807357c | /*
Copyright (C) 2005, 2004 Erik Eliasson, Johan Bilien
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.1 of the License, or (at your option) any later version.
... | C | include/libmsip/SipHeaderFrom.h | 8Yards/libmsip_modification | lgpl-2.1 | 1,767 | 73 | codeparrot/github-code |
2b3bddb70ba65efddfd4324dc580776e213c8d255052827780ed9f6b8dcbbdaf | /***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding the use of this ... | C | src/views/style/mlabelstyle.h | dudochkin-victor/libgogootouch | lgpl-2.1 | 2,823 | 111 | codeparrot/github-code |
a6f4d3458ef1482f935871a6360247b24d42c2af6955530cb8e39c34c3857bd3 | /*
* Platforma MUNDO – Dane po Warszawsku http://danepowarszawsku.pl/
*
* @authors Jarosław Legierski, Tomasz Janisiewicz, Henryk Rosa Centrum Badawczo – Rozwojowe/ Orange Labs
* copyright (c) 2014-2015 Orange Polska S.A. niniejszy kod jest otwarty i dystrybuowany
* na licencji: Lesser General Public License ... | Java | mundo-java-backend/src/main/java/pl/orange/labs/mundo/http/LocalDefaultHttpClient.java | MUNDO-platform/srccode | lgpl-2.1 | 8,977 | 217 | codeparrot/github-code |
e9509d7c122f48452a8b371c2355d4e5c820ccc779335c82c1b65ccd5438e595 | /*
************************************************************************
* twi.c
*
* Arduino core files for MSP430
* Copyright (c) 2012 Robert Wessels. All right reserved.
*
*
***********************************************************************
Derived from:
twi.c - TWI/I2C library for Wiring... | C | hardware/msp430/cores/msp430/twi.c | vigneshmanix/Energia | lgpl-2.1 | 37,590 | 1,140 | codeparrot/github-code |
8dc6a7fe6d63face40a4df209c42f6d534024a7b683e79b3dc093759587edf5b | import { document, console } from '@ephox/dom-globals';
import { Arr, Future, Option, Result, Strings } from '@ephox/katamari';
import { Class, Element, Value } from '@ephox/sugar';
import { Representing } from 'ephox/alloy/api/behaviour/Representing';
import * as Attachment from 'ephox/alloy/api/system/Attachment';
i... | TypeScript | modules/alloy/src/demo/ts/ephox/alloy/demo/TypeaheadDemo.ts | FernCreek/tinymce | lgpl-2.1 | 4,425 | 167 | codeparrot/github-code |
efb5268bb5f870cf28ec5c2c35351ca86ef08f833280dfba375afbee7d0a85a9 | using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OfficeOpenXml;
using OfficeOpenXml.FormulaParsing;
using OfficeOpenXml.FormulaParsing.LexicalAnalysis;
namespace EPPlusTest.FormulaParsing.LexicalAnalysis
{
[TestClass]
public class SourceCodeTokenizerTests
{
#region Class Va... | C# | EPPlusTest/FormulaParsing/LexicalAnalysis/SourceCodeTokenizerTests.cs | jetreports/EPPlus | lgpl-2.1 | 39,178 | 1,027 | codeparrot/github-code |
785afb799a0f1d9ef01846be2397fe06b90092b6e1046298c9d67999eb3e08b1 | /*
* Copyright (C) 2008-2012 The QXmpp developers
*
* Authors:
* Ian Reinhart Geiser
* Jeremy Lainé
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General... | C++ | examples/example_3_transferHandling/xmppClient.cpp | projedi/qxmpp-ffmpeg | lgpl-2.1 | 3,910 | 136 | codeparrot/github-code |
668beb0860a02bb3ed50ff53a45cc18c659074d12b796a6de7d10e38553417d1 | /*
* Copyright (C) 2008 by Marc Boris Duerner
*
* 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.1 of the License, or (at your option) any later version.
*
* A... | C | include/cxxtools/decomposer.h | maekitalo/cxxtools | lgpl-2.1 | 2,501 | 90 | codeparrot/github-code |
28ccf1c28fb7db6378b8c80bced40cd7c220810f63a65755ffc239609459cf63 | require 'capture'
# This file is part of FatNS, a DNS sniffing and attack detection tool.
# Copyright (C) 2006 Ohad Lutzky and Boaz Goldstein
#
# This program 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 Founda... | Ruby | gui/capture_control.rb | lutzky/fatns | lgpl-2.1 | 5,543 | 176 | codeparrot/github-code |
ed0571a9484de230c3714f0f7ca6bbc6aff5ac5e48aae44a9772b074fec65f76 | // uatraits is a simple tool for user agent detection
// Copyright (C) 2011 Yandex <highpower@yandex-team.ru>
// 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 Licen... | C++ | include/uatraits/details/iterator.hpp | highpower/uatraits | lgpl-2.1 | 8,416 | 186 | codeparrot/github-code |
ee1e72cee7ff7784d02dc2ad6a7ddd5066e445a96b2ca7667570e78f2d65d529 | #include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <errno.h>
#include "log.h"
#include "bug.h"
#include "kerndat.h"
#include "fs-magic.h"
#include "mem.h"
#include "compiler.h"
#include "sysctl.h"
#include "syscall... | C | kerndat.c | biddyweb/criu | lgpl-2.1 | 6,962 | 347 | codeparrot/github-code |
454af94af6f20efb2f48dd1364892919490c468e9e3784d398697e229064c693 | /*
* OpenConnect (SSL + DTLS) VPN client
*
* Copyright © 2008-2011 Intel Corporation.
* Copyright © 2008 Nick Andrew <nick@nick-andrew.net>
*
* Author: David Woodhouse <dwmw2@infradead.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | C | auth.c | sihde/openconnect | lgpl-2.1 | 12,560 | 484 | codeparrot/github-code |
50a48cc50fa5d5f00d893b92f0ee453e8bf9a022466424d97843149eb5bc5e1b | /* Copyright (C) 2009-2012 D. V. Wiebe
*
***************************************************************************
*
* This file is part of the GetData project.
*
* GetData 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
... | C | bindings/python/pygetdata.c | syntheticpp/dirfile | lgpl-2.1 | 17,613 | 623 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.