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 |
|---|---|---|---|---|---|---|---|---|
ba9e2f0b8c0b6dc8ba0aa507dbbd4c6721f35cc5897ade7db71297056e9db446 | package cz.muni.fi.scheduler.model.criteria;
import static cz.muni.fi.scheduler.extensions.ValueCheck.*;
import cz.muni.fi.scheduler.model.Agenda;
import cz.muni.fi.scheduler.model.SchModel;
import cz.muni.fi.scheduler.model.domain.Slot;
import cz.muni.fi.scheduler.model.domain.Ticket;
import org.apache.log4j.Logger;
... | Java | model/src/main/java/cz/muni/fi/scheduler/model/criteria/BlockCriterion.java | Cweorth/Scheduler | lgpl-3.0 | 3,000 | 86 | codeparrot/github-code |
e92d6db29b813776d7b15aa98b37de8cbfc50550060fc48a6357eae6588f75c3 | #ifndef GRAPHICSPAGEITEM_H
#define GRAPHICSPAGEITEM_H
#include "ADocumentView.hpp"
#include <QGraphicsPixmapItem>
#include <mvc/icontroller.h>
class GraphicsBlockItem;
class GraphicsPageItem
: public QGraphicsPixmapItem
, public ADocumentView<Doc::Page>
{
public:
explicit GraphicsPageItem(Mvc::IC... | C++ | software/DocCreator/src/Document/GraphicsPageItem.hpp | DocCreator/DocCreator | lgpl-3.0 | 1,613 | 54 | codeparrot/github-code |
fc2d9fc34da9ea936200f76d219dc16843541bea8a8ef6408c7735db09d3361e | /*
* Tulip Indicators
* https://tulipindicators.org/
* Copyright (c) 2010-2019 Tulip Charts LLC
* Lewis Van Winkle (LV@tulipcharts.org)
*
* This file is part of Tulip Indicators.
*
* Tulip Indicators is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public L... | C | beta/dc.c | TulipCharts/tulipindicators | lgpl-3.0 | 4,975 | 175 | codeparrot/github-code |
c2ba7ac0e8e134bc009c4dabf71928563db2270faf740f3ee99c4ace04eb69c1 | /*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* 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... | JavaScript | core/baseclasses/contenteditable/clipboard.js | sshwsfc/apf | lgpl-3.0 | 2,951 | 88 | codeparrot/github-code |
1de448a727f787d01800cba09724bbd383f91cdd63e2fff056938f2a42debcd0 | /*
Aseba - an event-based framework for distributed robot control
Copyright (C) 2007--2016:
Stephane Magnenat <stephane at magnenat dot net>
(http://stephane.magnenat.net)
and other contributors, see authors.txt for details
This program is free software: you can redistribute it and/or modify
it under the te... | C++ | clients/studio/DashelTarget.cpp | marvelous/aseba | lgpl-3.0 | 31,656 | 1,102 | codeparrot/github-code |
3190e76197a3c89cd5ef9b09dff916355f1d010e3f0b10690029311715af35ad | #pragma once
#include "itemnode.h"
namespace engine
{
namespace items
{
class SlopedBridge : public ModelItemNode
{
private:
const int m_div;
public:
SlopedBridge(const gsl::not_null<engine::Engine*>& engine,
const gsl::not_null<const loader::file::Room*>& room,
const loader... | C | src/engine/items/slopedbridge.h | stohrendorf/OpenTomb | lgpl-3.0 | 2,435 | 83 | codeparrot/github-code |
ccc122b1348e0a1a778b4854932303f512dfc159fb78ca3aaa7375788164b2ce | /** \file
* A local fit functor--used for threaded local fitting if USE_PTHREAD is true.
*
* Copyright 2006 Spencer Olson
*
*/
#ifndef olson_tools_fit_detail_LocalFitFunctor_h
#define olson_tools_fit_detail_LocalFitFunctor_h
#include <olson-tools/fit/Individual.h>
namespace olson_tools {
namespace fit {
... | C | src/olson-tools/fit/detail/LocalFitFunctor.h | olsonse/olson-tools | lgpl-3.0 | 1,373 | 51 | codeparrot/github-code |
e7898b55b7104716769ca1de45f45369e608da17d3aca066f108eefb38bdad1d | /*
** This file is part of the GT Core Library.
** It is based on a merger of QT along with development of new classes.
** License information is in the License.h file
** This software was merged and developed by:
**
** Anthony Daniels
** QT by Nokia
**
** GT is free software: you can redistribute it and/... | C | GtCore/GtCoreStructs.h | trident99/granturismo | lgpl-3.0 | 2,917 | 121 | codeparrot/github-code |
3e5e1596cc2bae4a8d95d53918fbe25a62c31ec75ca5b1766d0f9f88b58ea7c9 | #include <FlightController.hpp>
#include <iostream>
struct MyIdent : public msp::Message {
MyIdent(msp::FirmwareVariant v) : Message(v) {}
virtual msp::ID id() const override { return msp::ID::MSP_IDENT; }
msp::ByteVector raw_data;
virtual bool decode(const msp::ByteVector &data) override {
... | C++ | examples/fcu_custom_type.cpp | christianrauch/msp | lgpl-3.0 | 1,012 | 42 | codeparrot/github-code |
63c6e2f8c58d76d77344abaae2a54d6f010fdf4b53e3b39d8ffbfbb4025eaadd | /*
* This file is part of Spoutcraft.
*
* Copyright (c) 2011 SpoutcraftDev <http://spoutcraft.org/>
* Spoutcraft is licensed under the GNU Lesser General Public License.
*
* Spoutcraft is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as publish... | Java | src/main/java/org/spoutcraft/client/gui/settings/controls/ResetButton.java | Spoutcraft/Spoutcraft | lgpl-3.0 | 1,560 | 46 | codeparrot/github-code |
54e882657f5728e843d839beb0f79615723615298cd282afdfbd81175d26f963 | <?php
/**
* This file is part of FacturaScripts
* Copyright (C) 2017-2020 Carlos Garcia Gomez <carlos@facturascripts.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 Foundation, either ve... | PHP | Core/Controller/ListFacturaProveedor.php | ArtexTrading/facturascripts | lgpl-3.0 | 4,126 | 110 | codeparrot/github-code |
6dbaae0836ad8591c0f4d7adf24a9fcd6bf71cc6a0e2cba7bea28015ac20dac5 | #
# This file is part of CasADi.
#
# CasADi -- A symbolic framework for dynamic optimization.
# Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl,
# K.U. Leuven. All rights reserved.
# Copyright (C) 2011-2014 Greg Horn
#
# CasADi is free software; you can... | Python | docs/examples/python/simulation.py | ghorn/debian-casadi | lgpl-3.0 | 4,875 | 186 | codeparrot/github-code |
f9fd09433de4375852839c615420a10c72edb30214eaf530f6db7f4815cdc46a | /*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | C | src/waf/deleterulerequest.h | pcolby/libqtaws | lgpl-3.0 | 1,321 | 51 | codeparrot/github-code |
f72d3865d7d7b3b4696ed4b9c6de33ea2e8c103359fac22d36f4cf4794adffc5 | package com.silicolife.textmining.ie.utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import com.silicolife.textmining.core.datastructures.annotation.AnnotationType;
import com.silicolife.textmining.cor... | Java | src/main/java/com/silicolife/textmining/ie/utils/BioTMLConversionUtils.java | biotextmining/machinelearning | lgpl-3.0 | 13,896 | 285 | codeparrot/github-code |
034f83e01c2744874f18efeeef026e02f03f8a3a78c689ddf2d6b7745c547d8e | // -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
// DESCRIPTION: Verilator: Add temporaries, such as for task nodes
//
// Code available from: http://www.veripool.org/verilator
//
// AUTHORS: Wilson Snyder with Paul Wasson, Duane Gabli
//
//******... | C++ | src/V3Task.cpp | jeras/verilator | lgpl-3.0 | 47,242 | 1,232 | codeparrot/github-code |
70a2258d0272867e2a3f53842f7e894a4c02aae010f90a782e2df24eefd432ff | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="t... | HTML | samplecenter/doc/source/autoheight.html | yonghuang/fastui | lgpl-3.0 | 3,566 | 117 | codeparrot/github-code |
4510794217a93e30c827c3077cbbf0188086237fe154a647f8542ad3646425ee | package com.darkona.adventurebackpack.item;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import com.darkona.adventurebackpack.inventory.ContainerAdventure;
import com.darkona.adventurebackpack.util.EnchUtils;
/**
* Created o... | Java | src/main/java/com/darkona/adventurebackpack/item/ItemAdventure.java | runescapejon/AdventureBackpack2 | lgpl-3.0 | 1,200 | 53 | codeparrot/github-code |
a5439eb71dfa8bc23f84403d88564c289a33b20567bfb2d97f7b7376ee3ff4f3 | -- LOG_UTIL.sql
--
-- Author: Felix Kunde <felix-kunde@gmx.de>
--
-- This script is free software under the LGPL Version 3
-- See the GNU Lesser General Public License at
-- http://www.gnu.org/copyleft/lgpl.html
-- for more details.
------------------------------... | SQL | src/LOG_UTIL.sql | pgMemento/pgMemento | lgpl-3.0 | 17,144 | 622 | codeparrot/github-code |
af87003bd14120766101cf8c196d95eb3ca266ea174b8073d8259089569a8bf3 | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT 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 Foundation; either
* version 3 of the License... | Java | server/sonar-server/src/main/java/org/sonar/server/qualitygate/ws/CopyAction.java | joansmith/sonarqube | lgpl-3.0 | 2,315 | 64 | codeparrot/github-code |
8cc1d71de94dc32e26640e51150ad8c7f9a9e59aab07155fa06df084ca2d3d1e | /*
* Copyright (c) 2016-2017 Contributors as noted in the AUTHORS file
*
* This file is part of nlib.
*
* nlib 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 ... | C | include/buffer.h | nitinjavakid/nlib | lgpl-3.0 | 1,682 | 81 | codeparrot/github-code |
2c9bc459f4abef2ce7849b7bc2ee835f689d8d18f272a7f338ba36a5a1ed1fbf | using System;
using System.Collections.Generic;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using Catharsis.Commons;
namespace Catharsis.Web.Widgets
{
/// <summary>
/// <para>Renders Yandex social "Share" button.</para>
/// <para>Requires Yandex scripts bundle to be included.</para>
///... | C# | src/VS2010/Catharsis.Web.Widgets/Widgets/Yandex/YandexSharePanelWidget.cs | prokhor-ozornin/Catharsis.NET.Web.Widgets | lgpl-3.0 | 4,153 | 106 | codeparrot/github-code |
547789306e4057db277c9e21471af733022d0f5c061702e6a914b06f8919332d | <?php
require_once('../../assets_backend/be_includes/config.php');
if (isset($_GET['display']))
{
$_SESSION['display_type']=trim($_GET['display']);
} else {
$_SESSION['display_type']="graph";
}
if (isset($_GET['reportname']))
{
$_SESSION['reportname']=trim($_GET['reportname']);
}
?>
<!DOCTYPE html PUBLIC ... | PHP | myac/reports/pending_tkts_dpts_region.php | CustomerFeedback/System-Files-Installable | lgpl-3.0 | 6,382 | 176 | codeparrot/github-code |
128c9609ce93565172aecedbd91bdeb0ab25337a601decf36ac9864e4711b064 | /**
* Copyright (C) 2015 Michael Schnell. All rights reserved.
* http://www.fuin.org/
*
* 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 3 of the License, or (a... | Java | src/test/java/org/fuin/srcgen4j/commons/ParentChildTest.java | fuinorg/srcgen4j-commons | lgpl-3.0 | 3,069 | 83 | codeparrot/github-code |
fe53be650033cdf10692032af1603a5828110999da9418a4ffde94bc35eb371a | /* Copyright (c) 2009 Joseph Robert. All rights reserved.
*
* This file is part of Fiasco.
*
* Fiasco is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 3.0 of
* the License, or ... | C# | Fiasco/Engine/Eval.cs | joeyrobert/fiasco | lgpl-3.0 | 10,600 | 268 | codeparrot/github-code |
46f921defafc1284373e7d8c2bb1d1376fd1aca710ab6ccbae1a7daa63e2e040 | package uk.co.mmscomputing.util;
import java.io.*;
import java.net.*;
public class JarLib{
static public boolean load(Class cl, String libname){
try{
loadX(cl,libname);
return true;
}catch(Exception e){
System.out.println("JarLib.load\n\tException = "+e.getMessage());
System.err.pri... | Java | src/uk/co/mmscomputing/util/JarLib.java | alex73/mmscomputing | lgpl-3.0 | 4,554 | 112 | codeparrot/github-code |
5af1cab1e8b179cafab0537a09ce6af9df995ac476b32e8a18649bf9b6c96f83 | /*
* This file is part of MyPet
*
* Copyright © 2011-2016 Keyle
* MyPet is licensed under the GNU Lesser General Public License.
*
* MyPet 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... | Java | modules/v1_11_R1/src/main/java/de/Keyle/MyPet/compat/v1_11_R1/entity/types/EntityMyPolarBear.java | jjm223/MyPet | lgpl-3.0 | 3,912 | 119 | codeparrot/github-code |
8c4c0a17f65fa255bd4498c0136615db6c1c25b6836899056962d05240bf4f85 | <?php
namespace ZendBricks\BricksUser\Model;
class RoutesExtractor
{
protected $router;
protected $routes;
public function __construct(array $router)
{
$this->router = $router;
}
public function getRoutes()
{
$routes = [];
if (array_key_exists('routes', $this-... | PHP | src/Model/RoutesExtractor.php | zend-bricks/bricks-user | lgpl-3.0 | 1,090 | 43 | codeparrot/github-code |
1706da013bf57a798b0082561e60f1b88c5a02e1ce762d723756401899fc9f77 | /**************************************************************************************************
* This file is part of [SpringAtom] Copyright [kornicameister@gmail.com][2013] *
* *
* [SpringAtom] is f... | Java | src/main/java/org/agatom/springatom/data/model/activity/NAssignedActivity.java | kornicameister/RSpringAtom-Server | lgpl-3.0 | 2,742 | 56 | codeparrot/github-code |
b1b388089eff7fa944843b1e833dc227c9cb24e91025696eb65f65e735bb7936 | /*! Selector_py.h
*
* Copyright (C) 2011 Alastair Quadros.
*
* This file is part of LaserLib.
*
* LaserLib is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at... | C | DataStore/Python/Selector_py.h | aquad/laserlib | lgpl-3.0 | 3,972 | 128 | codeparrot/github-code |
c811ae2f96679b511afee588cf6bc012cdcfaf43965f9ee68921121f2f71ba97 | /***************************************************
*
* cismet GmbH, Saarbruecken, Germany
*
* ... and it just works.
*
****************************************************/
package de.cismet.cids.custom.wunda_blau.search.actions;
import Sirius.server.middleware.impls.domainserver.DomainServerImpl;
impor... | Java | src/main/java/de/cismet/cids/custom/wunda_blau/search/actions/Sb_stadtbildserieUpdatePruefhinweisAction.java | cismet/cids-custom-wuppertal-server | lgpl-3.0 | 3,792 | 121 | codeparrot/github-code |
f112872c9ec68c780c48d03445cac7e54c7675b8fddb1c7446081796407331d3 | import {InstanceModel, InstanceModelProperty} from 'models/instance-model';
import _ from 'lodash';
describe('Instance Model', ()=> {
describe('Model creation', ()=> {
it('should wrap fed model on creation', ()=> {
let model = new InstanceModel(_.cloneDeep(testData));
Object.keys(model._instanceModel... | JavaScript | docker/sep-ui/test/models/instance-model.spec.js | SirmaITT/conservation-space-1.7.0 | lgpl-3.0 | 23,679 | 618 | codeparrot/github-code |
d8ce0ea855d907238608f792e6038089e7578f89a4f1a0dc1bdbf5c9e5ed2704 | package org.opennaas.extensions.network.capability.queue.shell;
/*
* #%L
* OpenNaaS :: Network :: Queue Capability
* %%
* Copyright (C) 2007 - 2014 Fundació Privada i2CAT, Internet i Innovació a Catalunya
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except i... | Java | extensions/bundles/network.capability.queue/src/main/java/org/opennaas/extensions/network/capability/queue/shell/ExecuteCommand.java | dana-i2cat/opennaas | lgpl-3.0 | 3,038 | 86 | codeparrot/github-code |
9ef1b7a67ad98deaec2d3ed7605c7f1c706b24bcce586cb54f275bf76133fe10 | /*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | C | src/opsworks/describestacksummaryrequest_p.h | pcolby/libqtaws | lgpl-3.0 | 1,491 | 48 | codeparrot/github-code |
7e7315dcae04ffccfae08534faac0a3af2074b81265acb6b9856fa3dd3d5fdd6 | /*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | C++ | src/sagemaker/startmonitoringscheduleresponse.cpp | pcolby/libqtaws | lgpl-3.0 | 3,474 | 116 | codeparrot/github-code |
a84bcb9fb45007fa81de139eefed8eb3269c9b497afad6ed9a7712de3d5af977 | /*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | C | src/guardduty/createsamplefindingsresponse_p.h | pcolby/libqtaws | lgpl-3.0 | 1,361 | 48 | codeparrot/github-code |
b0874e8a2160935a5071170bf5b84b1b2786a8c06af153f0720eec295819da34 | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... | C | Compile/CompileDependencies/ThirdParty/PhysX/PhysX_3.4/Source/PhysX/src/NpConstraint.h | Bang3DEngine/Bang | lgpl-3.0 | 5,717 | 132 | codeparrot/github-code |
b2bb1e8ba1afe29a9d4b92a1f44641ac21ff1efa5e798dfacdc66ea1e7ea2b22 | /***********************************************************************
* fmenulist.cpp - Menu item container base class *
* *
* This file is part of the FINAL CUT widget toolkit *
* ... | C++ | final/menu/fmenulist.cpp | gansm/finalcut | lgpl-3.0 | 5,904 | 232 | codeparrot/github-code |
23d930926798f27d991bb711fcec4e182ac5b29d99c1333b091634d71f2d933f | // Copyright 2016, Georg Sauthoff <mail@georg.so>
/* {{{ LGPLv3
This file is part of tree-model.
tree-model is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License... | C++ | test/editor/preview.cc | gsauthof/tree-model | lgpl-3.0 | 1,775 | 61 | codeparrot/github-code |
8a011575bf5b6580491021e596fe22d10048daa327b444ff5829ef88cb0fbb2f | /*
dsh-bio-assembly Assemblies.
Copyright (c) 2013-2022 held jointly by the individual authors.
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 3 of the Li... | Java | assembly/src/main/java/org/dishevelled/bio/assembly/gfa1/Traversal.java | heuermh/dishevelled-bio | lgpl-3.0 | 8,167 | 270 | codeparrot/github-code |
4be1a900fdbb77ab3259a3955678ea5184c5b9d63718624001d303302dae4533 | /* global define */
/**
*Dragoon Project
*Arizona State University
*(c) 2014, Arizona Board of Regents for and on behalf of Arizona State University
*
*This file is a part of Dragoon
*Dragoon is free software: you can redistribute it and/or modify
*it under the terms of the GNU Lesser General Public License as p... | JavaScript | www/js/load-save.js | Dragoon-Lab/LaitsV3 | lgpl-3.0 | 9,850 | 307 | codeparrot/github-code |
4ed33d158cae82bab58139512f3dfb5e74cf2b2fb33fad106f256f6cf91f9fc2 | /*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | C | src/forecastservice/describedatasetrequest_p.h | pcolby/libqtaws | lgpl-3.0 | 1,471 | 48 | codeparrot/github-code |
3f69f2d4d193ecab8804cb316fbb017644e25228bed039f554f86a2ce1e8267b | #ifndef QUADTREENODE_H
#define QUADTREENODE_H
#include <set>
#include "Point.h"
#include <QRectF>
#include <QVector2D>
#include <QGraphicsRectItem>
#include <QGraphicsEllipseItem>
namespace Elve {
typedef std::vector<Point*> Masses;
struct QuadTreeParams {
qreal theta;
size_t depth;
size_t maxMasses;
};... | C | Core/QuadTreeNode.h | stdgregwar/elve | lgpl-3.0 | 1,429 | 61 | codeparrot/github-code |
8718731670d01825f302a11197cf16e1bd1be538a333dc4fbe49016143c56573 | /**
* This file is part of jSeduite::SchoolLife
*
* Copyright (C) 2008- Sebastien Mosser
*
* jSeduite::SchoolLife 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
* ... | Java | webservices/SchoolLife/src/java/fr/unice/i3s/modalis/jSeduite/technical/news/summon/StudentSummon.java | malaverdiere/jseduite | lgpl-3.0 | 3,177 | 83 | codeparrot/github-code |
2982eeab8c2d4f237fb93ad936570f953f7122a559db7310b4ce44144bf6749c | <?php
class Technooze_Stores_Model_Convert_Adapter_Store extends Mage_Dataflow_Model_Convert_Adapter_Abstract
{
protected $_storeModel;
protected $_step = 1;
protected $_address = array();
public function load() {
// you have to create this method, enforced by Mage_Dataflow_Model_Convert_Adapter_... | PHP | trunk/app/code/community/Technooze/Stores/Model/Convert/Adapter/Store.php | dbashyal/MagentoStarterBase | lgpl-3.0 | 5,803 | 147 | codeparrot/github-code |
951249af15ba71b1a28f01bdf3e35b657af1ff8f00488c1d9df607046805c314 | /*
This source file is part of KBEngine
For the latest info, see http://www.kbengine.org/
Copyright (c) 2008-2012 KBEngine.
KBEngine is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the... | C++ | kbe/src/server/tools/message_log/logwatcher.cpp | 75651/kbengine_cloud | lgpl-3.0 | 2,695 | 102 | codeparrot/github-code |
b3a40db5d41bb08e58a7e7ff0df99bad114dddb09e82918ac1d88f2b17b2d4a6 | $(document).ready(function () {
$("#fec").datepicker({minDate:"0", maxDate:"+6M", changeMonth: true, changeYear: true, showAnim:"slide", dateFormat:"yy-mm-dd"});
});
function showfirst (nro) {
if (nro!= '') {
$("#nros").val(nro);
$("#mcotiza").modal('show');
}
}
function showlast () {
$("#mcotiza").modal('hide'... | JavaScript | icrperu/media/js/logistica/sumcotizacion.js | christian6/django-upicr | lgpl-3.0 | 4,229 | 179 | codeparrot/github-code |
2038b5fb73e86db084b360653dd19a4f4bee1d88f054c34449d506234e7ef29b | /*-------------------------------------------------------------------------
*
* tidbitmap.h
* PostgreSQL tuple-id (TID) bitmap package
*
* This module provides bitmap data structures that are spiritually
* similar to Bitmapsets, but are specially adapted to store sets of
* tuple identifiers (TIDs), or ItemPoin... | C | Code/Includes/PostgreSQL/server/nodes/tidbitmap.h | yokarno/MTCommonLib | lgpl-3.0 | 2,239 | 67 | codeparrot/github-code |
a1de79913d82c1bcad7713981cb742b323114feeacd5d0e9867aa71c35316654 | <?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" lang="es" xml:lang="es">
<head>
<!-- 2016-06-12 dom 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"... | HTML | introduccion-emacs-2/introduccion-emacs-2.html | maxxcan/blog | lgpl-3.0 | 20,255 | 433 | codeparrot/github-code |
740014527d3b9dcf6a8a34ff0bef789ea584a81219740a4255296eedcf6680a6 | /*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor 1.3.1</a>, using an XML
* Schema.
* $Id: CashBackInfoRetDescriptor.java,v 1.1.1.1 2010-05-04 22:06:01 ryan Exp $
*/
package org.chocolate_milk.model.descriptors;
//---------------------------------/
//- Imported classes... | Java | src/org/chocolate_milk/model/descriptors/CashBackInfoRetDescriptor.java | galleon1/chocolate-milk | lgpl-3.0 | 11,435 | 346 | codeparrot/github-code |
79a5a57b404d57aa0a441fcb051b60832d9f3527f8cc2beeee71171a10bb068d | // Copyright 2017 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum 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 3 of the License... | GO | swarm/testutil/http.go | fireblock/go-ethereum | lgpl-3.0 | 3,031 | 113 | codeparrot/github-code |
b2e13ac1809e24154b77207cb2f4bae57c99ba63db0e64f0c0c41707cbfba2c0 | /*
* @BEGIN LICENSE
*
* Psi4: an open-source quantum chemistry software package
*
* Copyright (c) 2007-2018 The Psi4 Developers.
*
* The copyrights for code used from other parties are included in
* the corresponding files.
*
* This file is part of Psi4.
*
* Psi4 is free software; you can redistribute it an... | C++ | psi4/src/psi4/libmints/symop.cc | amjames/psi4 | lgpl-3.0 | 6,433 | 234 | codeparrot/github-code |
3a98898b9726f8f1984e14f468a3e5d9fafdb46433717d701acbd7dc3fcd5b14 | /* Copyright (c) 2014 Tamme Schichler [tammeschichler@googlemail.com]
*
* This file is part of FacePuncher.
*
* FacePuncher is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of
*... | C# | FacePuncher.Shared/Network/NetworkStreamExtensions.cs | Metapyziks/FacePuncher | lgpl-3.0 | 5,546 | 112 | codeparrot/github-code |
1e524987646fd1e83c2f0cddc350ecbb7813f12395d2364d1683995237f6568f | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* 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 la... | Java | adaptive-media-api/src/main/java/com/liferay/adaptive/media/internal/processor/AdaptiveMediaAsyncProcessorImpl.java | csierra/com-liferay-adaptive-media | lgpl-3.0 | 4,696 | 169 | codeparrot/github-code |
430a4f0bc1abb1cd2ac308820e70363a964778a4b16086af54c539e1092c714a | from pyblish import api
from pyblish_bumpybox import inventory
class ValidateDatatype(api.InstancePlugin):
"""Validate output datatype matches with input."""
order = inventory.get_order(__file__, "ValidateDatatype")
families = ["write"]
label = "Datatype"
optional = True
targets = ["default",... | Python | pyblish_bumpybox/plugins/nuke/validate_datatype.py | Bumpybox/pyblish-bumpybox | lgpl-3.0 | 1,133 | 40 | codeparrot/github-code |
be9a9f89a2903b89f3ad18954ae7ed5edf29ce677c927998ae4d5cf991c21c2a | /*
* CMessage.cpp
*
* Created on: 26.10.2014
* Author: JoH
*/
#include "CMessage.h"
#include "MAXException.h"
#include "Helpers/Helpers.h"
#include "Base64.h"
namespace MAXCPP {
// The C response contains information about the configuration of a device.
CMessage::CMessage(std::string rawMessage_p) : MAXMe... | C++ | Messages/CMessage.cpp | KnuthLohse/MAXCPP | lgpl-3.0 | 1,053 | 43 | codeparrot/github-code |
d8ea1044ae2509510ad35898b5d93b5b8cd934b897cd3e65fe0a0b2f3f9d53db | @echo off
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=..\..\gpyfft-docs
set PDFBUILDDIR=\tmp
set PDF= ..\manual.pdf
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
set I18NSPHINXOPTS=%SPHINXOPTS% source
if NOT "%PAPER%" == "" (
set... | Batchfile | docs/make.bat | geggo/gpyfft | lgpl-3.0 | 5,559 | 210 | codeparrot/github-code |
ac392481afd9089c8532e8d0b30f0f9e71aa32c05bcf29512039ec9adf59092f | package com.telenav.osv.common;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;
import com.telenav.osv.common.service.KVBaseBinder;
import com.telenav.osv.common.service.KVBaseService;
import com.telenav.osv.utils.Log;
/**
* Connection class for upload serv... | Java | app/src/main/java/com/telenav/osv/common/KVServiceConnection.java | openstreetview/android | lgpl-3.0 | 2,608 | 80 | codeparrot/github-code |
bc77e8385e9fad470c355e1a4d77a586a000dd3e60366c9dee7afa7f4d23667c | /**********************************************************************************************
//////##////////##//////////##//##########//##////////##////////##////////##########//##########
////##//##//////##//////////##//##//////////####//////##//////##//##//////////##//////##////////
////##//##//////##//////////##... | Lua | avehicle_jumperv29/lua/weapons/jumper29_remote/shared.lua | Kinathka/gmod_airbase_vehicles | lgpl-3.0 | 10,369 | 332 | codeparrot/github-code |
aea804400fb941b40dced9cd949e26635161495448e6d17a470c143068ab5886 | /*
* This file ("ComponentFancyButton.java") is part of the RockBottomAPI by Ellpeck.
* View the source code at <https://github.com/RockBottomGame/>.
* View information on the project at <https://rockbottom.ellpeck.de/>.
*
* The RockBottomAPI is free software: you can redistribute it and/or modify
* it under the ... | Java | src/main/java/de/ellpeck/rockbottom/api/gui/component/FancyButtonComponent.java | RockBottomGame/API | lgpl-3.0 | 2,052 | 57 | codeparrot/github-code |
055bb6a052cedc18e30b72382b413e5bd5b571a5b90552899522eb91dd534e3d | #include "include/esp_system.h"
#include "include/esp_timer_legacy.h"
#include <hostlib/threads.h>
#include <driver/hw_timer.h>
#include <muldiv.h>
#include <assert.h>
static os_timer_t* timer_list;
static CMutex mutex;
static void timer_insert(uint32_t expire, os_timer_t* ptimer)
{
os_timer_t* t_prev = nullptr;
au... | C++ | Sming/Arch/Host/Components/esp_hal/timer_legacy.cpp | anakod/Sming | lgpl-3.0 | 2,796 | 126 | codeparrot/github-code |
fb1ab1b8be00960bd64d2a8646510b11d96fd06585ee8f86cc974a0544a8256a | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import traceback
from lazagne.config.module_info import ModuleInfo
from xml.etree.cElementTree import ElementTree
from lazagne.config import homes
class Pidgin(ModuleInfo):
def __init__(self):
ModuleInfo.__init__(self, 'pidgin', 'chats')
# If... | Python | Linux/lazagne/softwares/chats/pidgin.py | AlessandroZ/LaZagne | lgpl-3.0 | 2,313 | 73 | codeparrot/github-code |
550d8c0474ce60f19fdfed0c2b063e34fb34bad03edeb54118c994a53fe62d8f | using UnityEngine;
using System.Collections.Generic;
using IsoUnity.Entities;
namespace IsoUnity.Sequences {
public abstract class EventEditorFactory {
private static EventEditorFactory instance;
public static EventEditorFactory Intance {
get{
if(instance == null)
instance = new EventEditorFactoryI... | C# | Assets/IsoUnity/Editor/SequenceEditor/NodeEditors/NodeEditors/EventEditors/EventEditorFactory.cs | Narratech/TRPGMaker | lgpl-3.0 | 2,177 | 73 | codeparrot/github-code |
40fb4ff8d8b72a574289c9f595c89f2ed117b770400b8f94079c8ed175f11f5f | /*
* Copyright (c) 2012-2015, Andrea Funto'. All rights reserved. See LICENSE for details.
*/
package org.dihedron.core.xml;
import java.util.ArrayList;
import java.util.List;
import org.dihedron.core.License;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.No... | Java | src/main/java/org/dihedron/core/xml/DOM.java | dihedron/dihedron-commons | lgpl-3.0 | 2,223 | 83 | codeparrot/github-code |
3e719a31bfae8205d2b2634af6b1fdb6d70dfabe437ae0ef24c7a796306086a9 | package cz.cvut.felk.cig.jcool.benchmark.method.hgapso;
import cz.cvut.felk.cig.jcool.core.ObjectiveFunction;
import cz.cvut.felk.cig.jcool.core.Point;
import cz.cvut.felk.cig.jcool.core.ValuePoint;
import java.util.Arrays;
/**
* Class representing HGAPSO individual.
*/
public class Individual {
/*... | Java | jcool/benchmark/src/main/java/cz/cvut/felk/cig/jcool/benchmark/method/hgapso/Individual.java | dhonza/JCOOL | lgpl-3.0 | 3,743 | 127 | codeparrot/github-code |
ab234b5b85e9526b1f36315ccdd0c1148a40dbb47e8b50f53ede530e0d16862e | #include <iostream>
#include <vector>
#include <string>
#include "../eve/io/socket.hpp"
#include "../eve/io/epoll.hpp"
#include "../eve/eve.hpp"
using namespace eve::io;
using namespace eve::rt;
struct guarded : monitor
{
volatile int a, b;
guarded() : monitor(), a(0), b(0) {}
};
class write_task : public task
{
... | C++ | runtime/examples/monitors.cpp | jprafael/eve | lgpl-3.0 | 2,217 | 131 | codeparrot/github-code |
f3582cdd819eabeef8fc6c5309878b1a3a5ccbdd073e312c5226d89f8ae3b1ab | /* Mesquite source code. Copyright 1997-2011 W. Maddison and D. Maddison.
Version 2.75, September 2011.
Disclaimer: The Mesquite source code is lengthy and we are few. There are no doubt inefficiencies and goofs in this code.
The commenting leaves much to be desired. Please approach this source code with the sp... | Java | trunk/Mesquite Project/Source/mesquite/minimal/Installer/Installer.java | MesquiteProject/MesquiteArchive | lgpl-3.0 | 31,377 | 627 | codeparrot/github-code |
ebb90ac2d3b32957e48d6552def1c18ad8a7b049081ef115d8fb0855cd6b1bd1 | /*
**
** Minetest-Blockiverse
**
** Incorporates portions of code from minetest 0.4.10-dev
**
** Blockiverse
** Copyright (C) 2014 Brian Jack <gau_veldt@hotmail.com>
** Distributed as free software using the copyleft
** LGPL Version 3 license:
** https://www.gnu.org/licenses/lgpl-3.0.en.html
** See file LICENSE... | C++ | blockiverse/common.hpp | gau-veldt/Minetest-Blockiverse | lgpl-3.0 | 1,875 | 91 | codeparrot/github-code |
3c7e073a4786b0137a49f446104b03fcd359f9317895548e8577974464048758 | <?php
/**
* GitElephant - An abstraction layer for git written in PHP
* Copyright (C) 2013 Matteo Giachino
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licen... | PHP | src/GitElephant/Status/StatusIndex.php | matteosister/GitElephant | lgpl-3.0 | 2,082 | 80 | codeparrot/github-code |
4bf655d185e2d31b829fd9e019d6fd6974f351270398e52a98a2fb8415aa92ea | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link type="text/css" rel="stylesheet" href="style.css"/>
<title>Keystone - Installing</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/>
</head>
<body>
<div align="center">
<image width="450" h... | HTML | doc/doc_installing.html | jacoblister/keystone-framework | lgpl-3.0 | 6,233 | 195 | codeparrot/github-code |
d8519022e3e8ddf586ed51c487abe46242611686964146be413a302728008243 | /* radare - LGPL - Copyright 2009-2021 - pancake, nibble */
#include <r_anal.h>
#include <r_util.h>
#include <r_list.h>
#include <r_io.h>
#include <config.h>
#include "../config.h"
R_LIB_VERSION(r_anal);
static RAnalPlugin *anal_static_plugins[] = {
R_ANAL_STATIC_PLUGINS
};
R_API void r_anal_set_limits(RAnal *anal... | C | libr/anal/anal.c | as0ler/radare2 | lgpl-3.0 | 18,991 | 759 | codeparrot/github-code |
3bad79f136b71785802706f9c83853c318feec37a0ecdc87da4168112899e453 | package nightkosh.gravestone_extended.potion;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.SoundEvents;
import net.minecraft.server.MinecraftServer;
import nightkosh.gravestone_extended.core.ModInfo;
impor... | Java | src/main/java/nightkosh/gravestone_extended/potion/PotionRecall.java | NightKosh/Gravestone-mod-Extended | lgpl-3.0 | 2,015 | 49 | codeparrot/github-code |
c418a1ad412b0a34e991da40259beb2e92b24a8506e31e250c137b1399577b77 | /*
* Copyright (C) 2008-2015 by Holger Arndt
*
* This file is part of the Java Data Mining Package (JDMP).
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership and licensing.
*
* JDMP is free software; you can redistribute it and/or modify
* it under the te... | Java | jdmp-core/src/main/java/org/jdmp/core/algorithm/classification/meta/SemiSupervisedEM.java | jdmp/java-data-mining-package | lgpl-3.0 | 3,555 | 106 | codeparrot/github-code |
804880a13b9aaa3ec0319a9802603e07919c214445a2e950617c460f2b340040 | <?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Set of methods used to build dumps of tables as JSON
*
* @package PhpMyAdmin-Export
* @subpackage JSON
*/
if (! defined('PHPMYADMIN')) {
exit;
}
/* Get the export interface */
require_once 'libraries/plugins/ExportPlugin.class.php';
/**
... | PHP | phpadmin/libraries/plugins/export/ExportJson.class.php | dmitriyzhdankin/fonarikloc | lgpl-3.0 | 6,570 | 221 | codeparrot/github-code |
18baea3b26bd81f715e8c33fa6d96584023504886dd2faba8126abaa67189559 | #ifndef DIRTABLE_H_
#define DIRTABLE_H_
#define CLEAN_IF_DIRTY(pdirtable) \
if ((pdirtable)->dirty_) (pdirtable)->makeClean()
// Generates a getter that calls makeClean() before returning.
// Use like this:
// MAKE_GETTER(int foo::getVal(), some_var)
#define MAKE_GETTER(func_sig, ret_val) \
... | C | include/Dirtable.h | ElkMonster/geometry | lgpl-3.0 | 1,156 | 54 | codeparrot/github-code |
ca72588c672c8d176d58e9a4816e2343151a136df26515e1a5e6e7a281e2d565 | package com.qagwaai.starmalaccamax.client.game.mvp.handlers;
import com.qagwaai.starmalaccamax.client.core.HistoryManager;
import com.qagwaai.starmalaccamax.client.core.Locations;
import com.qagwaai.starmalaccamax.client.core.LoginWatcher;
import com.qagwaai.starmalaccamax.client.event.EventBus;
import com.smart... | Java | src/com/qagwaai/starmalaccamax/client/game/mvp/handlers/PlayerOpportunitiesClickHandlerImplementation.java | qagwaai/StarMalaccamax | lgpl-3.0 | 1,046 | 34 | codeparrot/github-code |
29a1352a6568955e21b444a46ef7a0d09f83ae1e65174203be7a3dd2b770dd25 | /*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | C++ | src/acmpca/createpermissionrequest.cpp | pcolby/libqtaws | lgpl-3.0 | 3,810 | 123 | codeparrot/github-code |
e1600d4e266e2953588c2cbbe08c86d50389b7bccde51c93c4735a071325bb31 | /***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... | C | jni/alac/m4a.h | DonTomika/andless | lgpl-3.0 | 4,291 | 156 | codeparrot/github-code |
5e82fffd02f1dc4b548d509f8d1fc02ab309e2f653b183ff730b942387e90239 | #ifndef DECRYPTWRAPPER_H
#define DECRYPTWRAPPER_H
#include <QThread>
#include <openssl/evp.h>
class DecryptWrapper : public QThread
{
Q_OBJECT
public:
explicit DecryptWrapper(QObject *parent = 0);
void setData(const QByteArray &data, QString pwd);
signals:
void errors(QString msg);
void getData(QByteArray data... | C | cryptfile/cryptography/decryptwrapper.h | bx10/cryptfile | lgpl-3.0 | 515 | 31 | codeparrot/github-code |
97962b301beac0997d8fa8e9bdbc8502d2ba122ffe38dcb98ea3a9e2a50eb2ee | /*
* Copyright (C) 2003-2014 eXo Platform SAS.
*
* 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 3 of
* the License, or (at your option) any later version.
*
* This softwar... | Java | app/src/main/java/org/exoplatform/ui/login/LoginWarningDialog.java | exoplatform/mobile-android | lgpl-3.0 | 3,218 | 117 | codeparrot/github-code |
55032dd9e9c7afbf4fe2c483e305469d3ad2453b9b685185439650e2be9b9202 | #!/usr/bin/env python
import argparse
import ConfigParser
import os.path
import digitaloceanmanager
import getpass
from passlib.hash import sha512_crypt
token = None
user = None
passwd = None
ssh_port = None
if __name__ == "__main__":
config = ConfigParser.RawConfigParser()
if (os.path.isfile('doma.cfg')):
... | Python | doma.py | Elhodred/python-digitaloceanmanager | lgpl-3.0 | 4,258 | 95 | codeparrot/github-code |
fe2511d3586a9aa23c42b14b7d4743ee0304d6baae3d9756e2085f92ff582bef | /*****************************************************************************
Copyright (c) 2010, Intel Corp.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source cod... | C | lapacke/src/lapacke_dtrcon.c | mfine/libswiftnav | lgpl-3.0 | 3,362 | 78 | codeparrot/github-code |
8f9783c292f1205b6ce2db99a420daad99541ee12e15e14f259ba17ec7d455fd | <?php
/*
* Copyright 2012, Darius Glockenmeier.
*/
/**
* Description of dgs_ProductAttributesMetabox
*
* @author Darius Glockenmeier <darius@glockenmeier.com>
* @package dg-shop
* @subpackage model
*/
abstract class dgs_Metabox extends DopeMetabox {
/**
* The view
* @var DopeView
*/
pr... | PHP | model/dgs_Metabox.php | glockenmeier/dg-shop | lgpl-3.0 | 5,605 | 175 | codeparrot/github-code |
d10bccc02b05b5b2139c8b0e1f2bac78775325987761eb9fe2e01b7e9320763e | /*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | C | src/sms/getreplicationjobsresponse.h | pcolby/libqtaws | lgpl-3.0 | 1,512 | 52 | codeparrot/github-code |
8d4eda6201b38a6f8e298411f090169ea4d85f71863d79f5b703aebf84d79a57 | import sys
import json
import importlib
import http.client
import traceback
from netrackclient import broker
from netrackclient import errors
class HTTPClient(object):
def __init__(self, *args, **kwargs):
super(HTTPClient, self).__init__()
self._broker = broker.RequestBroker()
self.serv... | Python | netrackclient/client.py | netrack/python-netrackclient | lgpl-3.0 | 2,454 | 86 | codeparrot/github-code |
8ff001fbb3788bb377b942dd28830a37252dc8da4d5d518fa0663a5e1959b07b | const ROWS = 7;
import { BoardActions } from './BoardActions.js';
import { Stone } from './Stone.js';
import { UIUpdater } from '../ui/UIUpdater.js';
let stonesList;
let actions;
let uiUpdater;
let reds;
let blues;
class Board {
constructor(app, turnHandler) {
this.stonesList = new Array(45);
thi... | JavaScript | public/scripts/logic/Board.js | xoliba/xoliba | lgpl-3.0 | 5,446 | 163 | codeparrot/github-code |
22159e1442b4f332e4037960fb61793fe138c8af5d040de136cbcf3f23bb7eb5 | /*-------------------------------------------------------------------------
*
* include/pg_rest_shm.h
*
* shared memory mgmt.
*
*-------------------------------------------------------------------------
*/
#ifndef PG_REST_SHM_H
#define PG_REST_SHM_H
#include "pg_rest_config.h"
#include "pg_rest_core.h"
typede... | C | include/pg_rest_shm.h | robertmu/pg_rest | lgpl-3.0 | 993 | 41 | codeparrot/github-code |
361111cdd69e783f3f0644106863d523280686fa9ce4ec20fd47a71d8389da5f | /*!
Copyright (C) 2014, 申瑞珉 (Ruimin Shen)
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 3 of the License, or
(at your option) any later version.
This program is distributed i... | C | Include/OTL/Problem/ZDT/ZDT3.h | O-T-L/OTL | lgpl-3.0 | 2,086 | 80 | codeparrot/github-code |
eaaa38210004ac607f5172b11439b97325ea87849a0978e2fdfdb86b1101d6d0 | /** \file
* \brief Tests for SugiyamaLayout
*
* \author Carsten Gutwenger, Tilo Wiedera
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.md in the OGDF root directory for details.
*
* \par
* This program is free software; you can re... | C++ | thirdparty/OGDF/test/src/layout/sugiyama.cpp | anlambert/tulip | lgpl-3.0 | 4,099 | 108 | codeparrot/github-code |
9e0669f9ff8aa10b8aa04fb29b25273c318cbd5c77c2f6b4615ce630ccf23ed0 | /*
* (C) Copyright 2009-2013 CNRS.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-2.1.html
*
* This... | Java | src/main/java/grph/algo/topology/manet/EuclideanGrph.java | MichaelRoeder/Grph | lgpl-3.0 | 2,718 | 108 | codeparrot/github-code |
4a6b615ac5b835277727b5514245668bf0980a5f834f75983bae1be04fa1e810 | package de.claas.mosis.io;
import de.claas.mosis.annotation.Category;
import de.claas.mosis.annotation.Documentation;
import de.claas.mosis.annotation.Parameter;
import de.claas.mosis.model.Condition;
import de.claas.mosis.util.Utils;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import ... | Java | src/main/java/de/claas/mosis/io/BlockingQueueHandler.java | claasahl/MOSIS | lgpl-3.0 | 4,197 | 100 | codeparrot/github-code |
ee26bcc0282ebc40bb74ec5fe624d2c4b4a5f7319c68b44aa9b90540a88ec032 | /***********************************************************************
Copyright 2011 Carnegie Mellon University and Intel Corporation
Author: Mike Vande Weghe <vandeweg@cmu.edu>
This file is part of owd.
owd is free software; you can redistribute it and/or modify
it under the terms of the GNU Le... | C++ | ft.cc | CURG/owd | lgpl-3.0 | 2,980 | 90 | codeparrot/github-code |
3cb1d5953caf9bc364366184f878d1b04a0a0d9af73369bfb3a7e70483172f4d | package org.etb.app.components;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.List;
import org.apache.tapestry5.BindingConstants;
import org.apache.tapestry5.annotations.Environmental;
import org.apache.tapestry5.annotations.Parameter;
import org.apache.t... | Java | src/main/java/org/etb/app/components/Params.java | etbTeam/tapestry5-ace | lgpl-3.0 | 2,496 | 97 | codeparrot/github-code |
070acd51ec60cc7a7e94d362d55a03c24ffc45cfe9251c737338162216b28476 | package org.bladerunnerjs.utility.reader;
import static org.junit.Assert.*;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.io.StringWriter;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;
public class JsCommentStr... | Java | brjs-core/src/test/java/org/bladerunnerjs/utility/reader/JsCommentStrippingReaderTest.java | andreoid/testing | lgpl-3.0 | 6,575 | 326 | codeparrot/github-code |
b8b923fb958fe17db485bc77251812dcb0c0cce64e003e41d188e69732f9600d | {-
- This file is part of Bilder.
-
- Bilder is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- Bilder i... | Haskell | src/Compiler/Merge.hs | ingemaradahl/bilder | lgpl-3.0 | 10,847 | 318 | codeparrot/github-code |
ad1d77e994b85a045e44d646fbb3cc8e1aa5bc2afd49ba460feea19e3ba53f74 | /**
* Kopernicus Planetary System Modifier
* Copyright (C) 2014 Bryce C Schroeder (bryce.schroeder@gmail.com), Nathaniel R. Lewis (linux.robotdude@gmail.com)
*
* http://www.ferazelhosting.net/~bryce/contact.html
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of ... | C# | Kopernicus/Configuration/RingLoader.cs | ThomasKerman/Kopernicus | lgpl-3.0 | 10,392 | 288 | codeparrot/github-code |
79cee832c039be266cfa17b1a0ec601f020d9233d5bf536eff732d883feb3114 | package com.samourai.wallet.network;
import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.google.android.material.snackbar.Snackbar;
... | Java | app/src/main/java/com/samourai/wallet/network/NetworkDashboard.java | Samourai-Wallet/samourai-wallet-android | unlicense | 17,767 | 460 | codeparrot/github-code |
88d7b91926abc165cdeee7a01a238f2819b16d03788a81c3e3fc63f0919fe669 | package ganymedes01.etfuturum.recipes;
import ganymedes01.etfuturum.ModBlocks;
import ganymedes01.etfuturum.tileentities.TileEntityBanner;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecr... | Java | src/main/java/ganymedes01/etfuturum/recipes/RecipeDuplicatePattern.java | ganymedes01/Et-Futurum | unlicense | 1,882 | 81 | codeparrot/github-code |
ec702afe3ad352dc7dd8a1b74383884cac8c1641d441c9337a31d3ec7fafdaaf | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Earl.Reflection;
using System.Globalization;
namespace Earl
{
internal class PlaceholderGenerator : ISectionGenerator
{
public PlaceholderGenerator(IEnumerable<Variable> variables)
{
Variable... | C# | Earl/PlaceholderGenerator.cs | jehugaleahsa/Earl | unlicense | 4,304 | 136 | codeparrot/github-code |
013e2ea3425890dd621981bd94b33e0b1052a7702b66166a302493ac20dad00d | # -*- coding: utf-8 -*-
"""
Spyder Editor
APRI和FIB4推测肝纤维化或肝硬化情况
This is a temporary script file.
"""
import math
#APRI缩写:AST to Platelet Ratio Index
#AST单位iu/l
#PRI单位10**9/L
#如果APRI>2,可能有肝硬化
def APRI(AST,upper_AST,PRI):
apri=((AST*1.0/upper_AST)*100)/PRI
return apri
#FIB-4缩写Fibrosis-4
#age单位:年
#AST和ALT单... | Python | HBV_APRI_FIB4.py | kyokyos/bioinform | unlicense | 1,391 | 74 | codeparrot/github-code |
aa8d3de1843d67ea2f3ebcfcf98e021e3715e0b81dcaef708c813c4e99b61089 | package com.dudvat.rms.test;
import java.math.BigInteger;
import java.util.List;
import org.hibernate.Session;
import com.dudvat.rms.dao.TransEntryDao;
import com.dudvat.rms.db.RmsSessionFactory;
import com.dudvat.rms.db.TransEntry;
import com.dudvat.rms.db.Users;
import com.dudvat.rms.utils.RmsDbException;
import c... | Java | src/test/java/com/dudvat/rms/test/TransEntryTest.java | prathapdudvat/JSF-Samples | unlicense | 1,522 | 60 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.