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 |
|---|---|---|---|---|---|---|---|---|
30f94d24e5ddd5cf0d97cadbf3a89a9f70a4abdda7f7c7f7bd950e45d0779c16 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0... | C | eigenlib/Eigen/src/Core/CwiseBinaryOp.h | cnr-isti-vclab/vcglib | gpl-3.0 | 7,590 | 185 | codeparrot/github-code |
f3a66f2ed7cdabe8cd813aa0b90eafadeca040f23a9340c2331192d09c4819f3 | // Resources:
// http://doctrina.org/How-RSA-Works-With-Examples.html
#include "rsa.hpp"
#include <iostream>
using namespace std;
struct EuclidTriple {
BigInt d, x, y;
EuclidTriple(BigInt argD, BigInt argX, BigInt argY) {
d = argD;
x = argX;
y = argY;
}
};
// Solves e*d mod n =
EuclidTriple ExtendedEuclid... | C++ | TrabRSA/rsa/rsa.cpp | nobreconfrade/CAL | gpl-3.0 | 1,406 | 65 | codeparrot/github-code |
2c357fcf462404fd61edffd76bd06d1bfe0c6f8af863dee16dd1f1e98058acbd | /*
* Hamburg-Nord Geocoder, by John King.
* Copyright (C) 2014, John King
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any ... | Java | src/main/java/com/jejking/hh/nord/corpus/DrucksachenLinkExtractor.java | jejking/hh-nord-geocoder | gpl-3.0 | 2,845 | 85 | codeparrot/github-code |
180dd595668dc92914ca667859dc20653473c10e58f9ab5d5895fd5b17d449af | /* GeoGen - Programmable height map generator
Copyright (C) 2015 Matej Zabsky
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later ver... | C++ | src/GeoGen/corelib/BitLogicOperatorFunctionDefinition.hpp | mzabsky/geogen | gpl-3.0 | 1,958 | 60 | codeparrot/github-code |
c383a3b479a432f5ce0f903fdb2bffb8ceaf93a6de6ea5914ce8677a2720a800 | /*
* Copyright (C) 2019 Sun.Hao(https://www.crazy-coder.cn/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
... | Java | lodsve-rdbms/src/main/java/lodsve/rdbms/configuration/DataSourceTransactionManagementConfiguration.java | lodsve/lodsve-framework | gpl-3.0 | 2,368 | 63 | codeparrot/github-code |
8583a707efe9dc48ce4c5b75c28e8d1be8e4ad028afd32143702d534f04d6cb7 | #!/usr/bin/env python2.7
"""A python script to manage minecraft servers
Designed for use with MineOS: http://minecraft.codeemo.com
"""
__author__ = "William Dizon"
__license__ = "GNU GPL v3.0"
__version__ = "0.6.0"
__email__ = "wdchromium@gmail.com"
import cherrypy
import os
from mineos import mc
class cron(cherr... | Python | server.py | MiLk/mineos | gpl-3.0 | 10,406 | 277 | codeparrot/github-code |
d69eb03a4f7d0f8992efcc9b54a43e051a74ca299edd5ab171b028ee2304cf1d | #ifndef _foobar2000_sdk_abort_callback_h_
#define _foobar2000_sdk_abort_callback_h_
namespace foobar2000_io {
PFC_DECLARE_EXCEPTION(exception_aborted,pfc::exception,"User abort");
typedef pfc::eventHandle_t abort_callback_event;
#ifdef check
#undef check
#endif
//! This class is used to signal underlyin... | C | foobar2000/SDK/abort_callback.h | nohajc/foobar_sync | gpl-3.0 | 4,066 | 105 | codeparrot/github-code |
8e5c60130e2dbc93d6ff534fdcfac17c3b7d90587d40a22b7c399daccb733503 | /*
* Copyright (C) 2015 Michael Browell <mbrowell1984@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.... | Java | src/com/base/engine/rendering/ForwardSpot.java | mbrowell/3DGameEngine | gpl-3.0 | 4,226 | 133 | codeparrot/github-code |
2dd1b93d34772ca0b2d5302fa40989caf51e7785a92a7254f07b6a5c659d82e7 | <?php
/**
* @package Mautic
* @copyright 2014 Mautic Contributors. All rights reserved.
* @author Mautic
* @link http://mautic.org
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
if ($tmpl == 'index')
$view->extend('MauticLeadBundle:Lead:index.html.php');
?>
<?php if (c... | PHP | app/bundles/LeadBundle/Views/Lead/list.html.php | MAT978/mautic | gpl-3.0 | 7,427 | 157 | codeparrot/github-code |
d2936e8d4df97da043da9f7afc96613450316e94623cf6797b8369a1ac7b4b4e | /*
A class to parse color values
@author Stoyan Stefanov <sstoo@gmail.com>
@link http://www.phpied.com/rgb-color-parser-in-javascript/
Use it if you like it
canvg.js - Javascript SVG parser and renderer on Canvas
MIT Licensed
Gabe Lerner (gabelerner@gmail.com)
http://code.google.com/p/canvg/
Requires: rgb... | JavaScript | public/javascripts/Highcharts-4.2.5/js/modules/canvas-tools.js | DEV1-0/OPENROC_CONTROLLER | gpl-3.0 | 72,841 | 1,772 | codeparrot/github-code |
b7dd82c06c85ef8f3e6cd085e42cee9ab4e636dd30def1548892742e39510c6f | #-------------------------------------------------------------------------------
# Name: Table
# Purpose: Tabularise data
#
# Author: James Burke
# Created: 8/09/2014
#
# Copyright: (c) James Burke 2014
# Licence: MIT
# Permission is hereby granted, free of charge, to any person obtaining a co... | Python | src/modules/table.py | tKroopy/tkroopy | gpl-3.0 | 8,168 | 206 | codeparrot/github-code |
940865cef9ee868727788b64b2716aae553d5759d1366728ead716204a33641d | #include "vipsdisp.h"
/*
#define DEBUG_VERBOSE
#define DEBUG
*/
struct _Displaybar {
GtkWidget parent_instance;
/* The image_window we attach to.
*/
ImageWindow *win;
GtkWidget *action_bar;
GtkWidget *gears;
GtkWidget *page;
GtkWidget *scale;
... | C | displaybar.c | jcupitt/vipsdisp | gpl-3.0 | 8,561 | 313 | codeparrot/github-code |
d27b9808a86936b05888564638931f2b0e74458833ba64f010f41f59ddd6cbbf | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2015 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the h... | Python | snapcraft/plugins/maven.py | jocave/snapcraft | gpl-3.0 | 5,693 | 168 | codeparrot/github-code |
5a0c334e4711cc3df2906dabb2b2adc6c7d3d8204559e308ccadff852a026348 | // MESSAGE NOVATEL_DIAG PACKING
#define MAVLINK_MSG_ID_NOVATEL_DIAG 195
typedef struct __mavlink_novatel_diag_t
{
uint32_t receiverStatus; ///< Status Bitfield. See table 69 page 350 Novatel OEMstar Manual
float posSolAge; ///< Age of the position solution in seconds
uint16_t csFails; ///< Times the CRC ha... | C | src/main/mavlink/slugs/mavlink_msg_novatel_diag.h | aravinds92/cleanflight | gpl-3.0 | 14,550 | 354 | codeparrot/github-code |
af42b03fb2d1efb664c4670acd80de46c1bea69eda5f24b104a59c2d0ee47527 | <?php
/**
* User: simon
* Date: 27.07.2018
*/
namespace MediaCloud\Vendor\ShortPixel;
/**
* Class SPCache will cache in memcached the objects received, if memcached is available
* @package ShortPixel
*/
class SPCache {
private static $instance;
private $mc;
private $local;
private $time;
pri... | PHP | lib/mcloud-shortpixel/shortpixel-php/lib/ShortPixel/SPCache.php | Interfacelab/ilab-media-tools | gpl-3.0 | 2,277 | 75 | codeparrot/github-code |
53f38e5b77aba0d17163952248f7d1b30e969a83f34456dedf4c06584ac8975e | package com.yoxjames.coldsnap.reducer;
import android.graphics.Color;
import com.yoxjames.coldsnap.model.ForecastHour;
import com.yoxjames.coldsnap.model.WeatherData;
import com.yoxjames.coldsnap.model.Windspeed;
import com.yoxjames.coldsnap.ui.cards.graph.DataSeries;
import com.yoxjames.coldsnap.ui.cards.graph.DataV... | Java | app/src/main/java/com/yoxjames/coldsnap/reducer/WindspeedCardReducer.java | yoxjames/ColdSnap | gpl-3.0 | 3,168 | 84 | codeparrot/github-code |
ceb1487838f6a24ac1e2d69c89f323fbe64aaaf15ba01e842d47416eef216920 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace katSharp.Componets
{
public abstract class ConvertirDatos : ConvertirTipoDeDatos
{
public abstract byte BYTE();
public byte BYTE(char a)
{
... | C# | katSharp.Controls/katSharp.Componets/ConvertirDatos.cs | RodrigoKasutoru/katSharp | gpl-3.0 | 3,971 | 172 | codeparrot/github-code |
bc6f98d6f93d2632b7c4deeed3949caaf461675c4ce4ac9320adb25ab7c345e2 | // Fill out your copyright notice in the Description page of Project Settings.
#include "Sinah.h"
#include "MusicItem.h"
UMusicItem::UMusicItem() : Turns(1) {}
void UMusicItem::Init(int Victory, int Epicness, TArray<ECivs> Civ, USoundWave* Sound, FString Info)
{
VictoryPoints = Victory;
EpicnessPoints = Epicness;
... | C++ | Code/Sinah/MusicItem.cpp | fataly27/SINAH | gpl-3.0 | 1,022 | 48 | codeparrot/github-code |
8fb01515f69b33881aedc0acb61b631e2dfb4dd17395cc929b73289c460475ce | /*
* Copyright (C) 2021 B3Partners B.V.
*
* SPDX-License-Identifier: MIT
*
*/
package nl.b3p.brmo.bag2.loader.cli;
import picocli.CommandLine;
public class BAG2LoadOptions {
@CommandLine.Option(names="--no-create-schema", negatable = true)
boolean noCreateSchema;
@CommandLine.Option(names={"--drop-... | Java | bag2-loader/src/main/java/nl/b3p/brmo/bag2/loader/cli/BAG2LoadOptions.java | B3Partners/brmo | gpl-3.0 | 1,585 | 67 | codeparrot/github-code |
aae4eaccfa9f74d1dbf40632effd880b1a556e7c95595d7a33a05131948739b8 | # -*- coding: utf-8 -*-
# Author: Mikhail Polyanskiy
# Last modified: 2017-04-02
# Original data: Djurišić and Li 1999, https://doi.org/10.1063/1.369370
import numpy as np
import matplotlib.pyplot as plt
# LD model parameters - Normal polarization (ordinary)
ωp = 27
εinf = 1.070
f0 = 0.014
Γ0 = 6.365
ω0 = 0
... | Python | scripts/Djurisic 1999 - Graphite-o.py | polyanskiy/refractiveindex.info-scripts | gpl-3.0 | 2,592 | 119 | codeparrot/github-code |
f6b8a263bad5bac0dac959302612c05c5bf9f2ffa9890aca593ea360d55a66f2 | /*
* Copyright (C) 2016 - WSU CEG3120 Students
*
* Brian Denlinger <brian.denlinger1@gmail.com>
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | Java | src/edu/wright/cs/jfiles/core/FileStruct.java | rsanchez-wsu/jfiles | gpl-3.0 | 8,300 | 279 | codeparrot/github-code |
6be513b2d372e9a03ae88d99d572424fb8a7ea1260d5f14d363e586f0b74552f | #include<iostream>
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<cctype>
#include<cstring>
#include<iomanip>
#include<string>
#include<vector>
#include<stack>
#include<queue>
#include<deque>
#include<set>
#include<map>
#include<list>
#include<algorithm>
#include<utility>
using namespace... | C++ | Codeforce/Contest/Codeforces Round #356 (Div. 2)/A.cpp | ZOARDER-JR/Programming | gpl-3.0 | 1,317 | 79 | codeparrot/github-code |
e58f1ab31d7981fdb57d02c74f8614a8d169bef3693d96b50e23b1c517856c16 | package texas
type SeatResultList []*SeatResult
type SeatResult struct {
m_seat *SeatPlayer
pot_idx int
card_type int
card_list CardDataList
}
func NewSeatResult(seat *SeatPlayer, cards []int16) *SeatResult {
this := new(SeatResult)
this.m_seat = seat
this.pot_idx = seat.m_pot_point
this.card_type, this... | GO | src/app/server/game/texas/result.go | mikestrange/goser | gpl-3.0 | 777 | 39 | codeparrot/github-code |
66ff468c6c39e2f911e2d63bd4e8b8bdd56b87cca990957915993eee3b2d9056 | /* GeoGen - Programmable height map generator
Copyright (C) 2015 Matej Zabsky
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later ver... | C++ | src/GeoGen/corelib/MathSqrtFunctionDefinition.hpp | mzabsky/geogen | gpl-3.0 | 1,240 | 36 | codeparrot/github-code |
10f047f7d4102dd5cbe21e75024c500a9e50e758d741c551585d9924fca6fb6c | namespace Mutateful.State;
public enum InternalCommandType
{
UnknownCommand,
OutputString,
LegacyProcessClips,
SetFormulaOnServer, // set a single clip slot without triggering evaluation
SetClipDataOnServer, // set and trigger evaluation of a single clip slot
SetAndEvaluateFormulaOnServer,
... | C# | src/Mutateful/State/InternalCommand.cs | carrierdown/m4l-offline-clip-processor | gpl-3.0 | 955 | 30 | codeparrot/github-code |
e4bcd6a91ab8dda16937437b0f2804d493c81bd02f208711b62fd0d530108f9d | /*
# PostgreSQL Database Modeler (pgModeler)
#
# Copyright 2006-2021 - Raphael Araújo e Silva <raphael@pgmodeler.io>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation version 3.
#
# This program ... | C | libs/libgui/src/messagebox.h | pgmodeler/pgmodeler | gpl-3.0 | 2,773 | 80 | codeparrot/github-code |
307322fcf5425b436451dde0ec4063793f1167a387ed17684b8de3c3d86e253a | package com.springapp.mvc.service.impl;
import com.springapp.mvc.commons.interceptor.mybatis.page.Page;
import com.springapp.mvc.commons.interceptor.mybatis.page.PageParameter;
import com.springapp.mvc.dao.MessageMapper;
import com.springapp.mvc.dao.UserInfoMapper;
import com.springapp.mvc.dto.MessageToReturn;
import ... | Java | back-end/src/main/java/com/springapp/mvc/service/impl/MessageServiceImpl.java | ljz2051/messageWall | gpl-3.0 | 6,462 | 167 | codeparrot/github-code |
2bb2ba822ac7069d1deb733524f906a3bec090cf7a2eb630c538b3c91df73204 | /*
* utils.c: Support funs for ectc
* Copyright (C) 2016 Charles C. Berry <cberry@ucsd.edu>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
* Public License as published by the Free Software
* Foundation; either version 2 of the License, or (... | C | src/utils.c | BushmanLab/LDppA | gpl-3.0 | 2,657 | 92 | codeparrot/github-code |
9d12114d6c07db143e8684c613708688ebc6e4a2cb02f312bbf2e62cebcbb0c9 | package greymerk.roguelike.worldgen.shapes;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import greymerk.roguelike.worldgen.Cardinal;
import greymerk.roguelike.worldgen.Coord;
import greymerk.roguelike.worldgen.IBlockFactory;
import greymerk.roguelike.worldgen... | Java | src/main/java/greymerk/roguelike/worldgen/shapes/RectSolid.java | Greymerk/minecraft-roguelike | gpl-3.0 | 2,521 | 109 | codeparrot/github-code |
61656fe3686b201d85c206db02d999fcd7a6903885644ba393fbdd2151d3e2ef | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef C_ORDER_BUILDSENTRYGUN_H
#define C_ORDER_BUILDSENTRYGUN_H
#ifdef _WIN32
#pragma once
#endif
#include "c_order.h"... | C | root/cl_dll/tf2_hud/c_order_buildsentrygun.h | RaisingTheDerp/raisingthebar | gpl-3.0 | 617 | 35 | codeparrot/github-code |
309c35ed8b9783e95905ad1f1766ef4cb1b4c9697ba44d4c9c3dbf39f18da955 | """Helper functions and base classes for restapi module"""
from __future__ import print_function
import requests
import fnmatch
import datetime
import collections
import mimetypes
import urllib
import tempfile
import time
import codecs
import json
import copy
import os
import sys
import munch
from itertools import izip... | Python | serverAdminTools/restapi/rest_utils.py | CalebM1987/serverAdminTools | gpl-3.0 | 41,101 | 1,161 | codeparrot/github-code |
b4dfab31c8cbb9a5dfccc427fdad42ba7b3742071a8b1840d0b6eeac4ac4045d | #include "qmrofswindow.h"
#include "qmrofsscreen.h"
#include "qmrofscompositor.h"
#include <QtGui/QScreen>
#include <qpa/qwindowsysteminterface.h>
QT_BEGIN_NAMESPACE
QMrOfsWindow::QMrOfsWindow(QWindow *window)
: QPlatformWindow(window), mBackingStore(0), mWindowState(Qt::WindowNoState)
{
static QAtomicInt win... | C++ | myqt/qtbase/src/plugins/platforms/mrofs_pvr2d/qmrofswindow.cpp | haitdai/qtbase5-inprocess-surface-compositor-remote-display | gpl-3.0 | 1,975 | 95 | codeparrot/github-code |
08dc48e0fb10be0c469ece29b7f9f54f267070e10691d9d8430d899b37b2c529 | package kr.rvs.mclibrary.bukkit.gson;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import org.bukkit.configuration.serialization.ConfigurationSerializable;
import org.bukkit.configuration.serialization.ConfigurationSerialization;
import java.i... | Java | src/main/java/kr/rvs/mclibrary/bukkit/gson/ConfigurationSerializableAdapter.java | DevCrafters/MCLibrary | gpl-3.0 | 2,504 | 73 | codeparrot/github-code |
7e7ae5c269327a7d2df919bbfff74a670f1141e7f5859a163fc8d0b311a3608a | #!/usr/bin/env python
#
# sockets.py
#
# Copyright (c) 2012-2013 by Alexey Gladkov
# Copyright (c) 2012-2013 by Nikolay Ivanov
#
# This file is covered by the GNU General Public License,
# which should be included with billing as the file COPYING.
#
import socket as pysocket
import threading, time, struct, errno, logg... | Python | lib/bc/sockets.py | legionus/billing | gpl-3.0 | 4,022 | 195 | codeparrot/github-code |
6e3499f3977c450d24442e6e55f5fd07dfa102a6ad1149f48c5ebb992439bc8d | package de.abscanvas.additional.swinginterface;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
import jav... | Java | src/de/abscanvas/additional/swinginterface/StandardServerWindow.java | Mikescher/AbsCanvas | gpl-3.0 | 13,547 | 460 | codeparrot/github-code |
b7c7249d21acd1d080a4397e7c49f4f8347c59c2866508f6b1a103606fac3a5c | package algol;
/**
* Created by Gabriel on 06/03/2016.
*/
import java.lang.reflect.Array;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Hashtable;
class Type {
private Class<?> classRep;
private static Hashtable<String, Type> types = new Hashtabl... | Java | src/algol/Type.java | weber09/sptests | gpl-3.0 | 16,256 | 523 | codeparrot/github-code |
041d4ce9f996ebb2b4527f430004c6c05fef5147e2e48953706a85c77e4492d9 | <?php
namespace exface\Core\Facades\AbstractHttpFacade\Middleware;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use exface\Core\Interfaces\Facades\HttpFacadeInterface;
use exface\Core\Facades\A... | PHP | Facades/AbstractHttpFacade/Middleware/PrefixedFilterUrlParamsReader.php | ExFace/Core | gpl-3.0 | 3,086 | 87 | codeparrot/github-code |
363e145698fa1ecde42350572fc574561ce26ae068f0f4bccf5f7274600d01ef | /*
* (C) 2006-2012 see Authors.txt
*
* This file is part of MPC-HC.
*
* MPC-HC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later v... | C++ | src/filters/renderer/VideoRenderers/QT9AllocatorPresenter.cpp | MikeSouza/mpc-hc | gpl-3.0 | 3,827 | 135 | codeparrot/github-code |
82e1451ec25112f608517b1dcb0f73fc7d58ecd367c2ae7879a4f9903c4ab36b | /*
* Copyright (c) 2008-2009 Christian Buchner <Christian.Buchner@gmail.com>
* 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 code must retain the above copyrig... | C | deprecated/cudacomplex.h | canercandan/linear-algebra | gpl-3.0 | 11,987 | 361 | codeparrot/github-code |
d50e204e74c8118834c19099c1b30423cded2331e28ab29c341363a1122693f0 | /*
*
* Panbox - encryption for cloud storage
* Copyright (C) 2014-2015 by Fraunhofer SIT and Sirrix AG
*
* 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 versi... | Java | panbox-common/src/org/panbox/desktop/common/gui/ImportIdentitiesWoPINDialog.java | Sirrix-AG/PanBox | gpl-3.0 | 17,599 | 486 | codeparrot/github-code |
4cddb45dca269aa485a5e06499c751d11c53e0c3190358728b56592a7073575d | '''
Written by Dmitry Chirikov <dmitry@chirikov.ru>
This file is part of Luna, cluster provisioning tool
https://github.com/dchirikov/luna
This file is part of Luna.
Luna 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 Foun... | Python | luna/utils/ip.py | dchirikov/luna | gpl-3.0 | 5,972 | 237 | codeparrot/github-code |
8a9491c4699a0adf3652444c908aaf49ded215c8a3c3812383136f19e8d83611 | // RowVector manipulations.
/*
Copyright (C) 1994-2017 John W. Eaton
This file is part of Octave.
Octave is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any ... | C++ | liboctave/array/CRowVector.cc | xmjiao/octave-debian | gpl-3.0 | 9,227 | 444 | codeparrot/github-code |
0a6810912dc239bdae0aa223fc61c826be99af03a5cd10542a9307a555779fa7 | package org.thoughtcrime.securesms.crypto.storage;
import android.content.Context;
import android.support.annotation.NonNull;
import org.thoughtcrime.securesms.database.Address;
import org.thoughtcrime.securesms.database.DatabaseFactory;
import org.thoughtcrime.securesms.database.SessionDatabase;
import org.thoughtcr... | Java | src/org/thoughtcrime/securesms/crypto/storage/TextSecureSessionStore.java | jmue/TextSecure | gpl-3.0 | 3,794 | 106 | codeparrot/github-code |
ca2567047e2d9d4cb45b56a95ae435dab2f0a39bcb0750bd7f919fdab3152d4f | /*
Copyright (C) 2010-2013 Jounayd Id Salah https://github.com/smogpill/dataspace. This file is part of the Dataspace project.
Dataspace 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... | C | src/core/container/coDatabase_v3.h | smogpill/dataspace | gpl-3.0 | 8,357 | 295 | codeparrot/github-code |
b9dbe585e55af4cad2634fb4f8a907aeff02acd6b84820bea95ec1a6bd7cafcb | package com.csy.commodity.dto;
import java.io.Serializable;
import com.csy.common.domain.dto.BasePageDTO;
public class CommoditySearchDTO extends BasePageDTO implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private Long commodityId;
private String commodityTitle;
pr... | Java | cloud.group.api/src/main/java/com/csy/commodity/dto/CommoditySearchDTO.java | csycurry/cloud.group | gpl-3.0 | 1,591 | 98 | codeparrot/github-code |
c75197c92f1ea563811e81cf51bf3e87acf9e7797e6b4ae7635fd307dba4b7f8 | #pragma once
#include <iostream>
#include "../util/types.h"
namespace Yoko
{
struct vec2;
struct vec3
{
float x, y, z;
vec3();
vec3(float x, float y, float z);
vec3(const vec2& other);
vec3& Add(const vec3& other);
vec3& Subtract(const vec3& other);
vec3& Multiply(const vec3& other);
vec3& Divid... | C | src/math/vec3.h | fisty256/Yoko | gpl-3.0 | 926 | 42 | codeparrot/github-code |
3aa501d9f68797c9cdf567dbfffc91d2b71bb7157ad21303cbc89d7bcf869627 | /*
* Copyright (C) 2013 4th Line GmbH, Switzerland
*
* The contents of this file are subject to the terms of either the GNU
* Lesser General Public License Version 2 or later ("LGPL") or the
* Common Development and Distribution License Version 1 or later
* ("CDDL") (collectively, the "License"). You may no... | Java | app/src/main/java/org/fourthline/cling/protocol/RetrieveRemoteDescriptors.java | offbye/DroidDLNA | gpl-3.0 | 16,526 | 374 | codeparrot/github-code |
426e84c3f40afd9c94c4991c7fae5dc127836f5d6f480d6f7b3894944ac3f258 | <?php class OMK_Authentification_Session extends OMK_Authentification_Adapter {
protected $lifetime;
function __construct( $options = NULL) {
parent::__construct($options = NULL);
switch( session_status() ){
case PHP_SESSION_DISABLED:
throw new OMK_Exception(_("... | PHP | src/OMK/Authentification/Session.php | octopuce/omk-client | gpl-3.0 | 2,274 | 71 | codeparrot/github-code |
52ac502b400c04971a08150cab975576d5fc2d98cd2ad6c73682fba16162801d | /*
* gui-chat.c - chat functions (used by all GUI)
*
* Copyright (C) 2003-2014 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pub... | C | src/gui/gui-chat.c | torhve/weechat | gpl-3.0 | 29,356 | 1,038 | codeparrot/github-code |
f4649c9e337ae696ae26b24f5e0bff2a79f553eba07be5a565e576915ae74ffe | <html>
<head>
<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>
</head>
<body onload="prettyPrint();">
<pre class="prettyprint lang-js"><div id="cls-Ext... | HTML | ext/docs/source/Field.html | ducbo/extbind | gpl-3.0 | 24,530 | 655 | codeparrot/github-code |
57f491f619f930c0b281b0298613bd307dbc5830e866938364a140d7bd60cf03 | //
// ATUS2 - The ATUS2 package is atom interferometer Toolbox developed at ZARM
// (CENTER OF APPLIED SPACE TECHNOLOGY AND MICROGRAVITY), Germany. This project is
// founded by the DLR Agentur (Deutsche Luft und Raumfahrt Agentur). Grant numbers:
// 50WM0942, 50WM1042, 50WM1342.
// Copyright (C) 2017 Želimir Marojević... | C++ | source_students/tammy/src/compute_rabi_times.cpp | GPNUM/atus2 | gpl-3.0 | 8,586 | 326 | codeparrot/github-code |
800d64b689e5564bf86b3bf98c4eb57cf506e83ea69ed448dddac9e0ab185fe8 | package com.calderagames.mpfw.inputs;
public class MouseInputEvent extends InputEvent {
/**Mouse button pressed or released, see {@link Input#MOUSE_BTN_1}*/
public int button;
/**Action can be {@link Input#PRESS} or {@link Input#RELEASE}*/
public int action;
/**Bit field describing which modifiers keys w... | Java | src/main/java/com/calderagames/mpfw/inputs/MouseInputEvent.java | Hanksha/mpfw | gpl-3.0 | 2,009 | 43 | codeparrot/github-code |
d179ca82e90f87d8006d09f3c75a16fc58c096cfd869f71853b98759ef2beae8 | #ifndef QTRIPLE_H
#define QTRIPLE_H
#include <QtCore/qdatastream.h>
template <class T1, class T2, class T3>
struct QTriple
{
typedef T1 first_type;
typedef T2 second_type;
typedef T3 third_type;
QTriple() : first(T1()), second(T2()), third(T3()) {}
QTriple(const T1 &t1, const T2 &t2,... | C | libwidgets/qtriple.h | jkriege2/LitSoz3 | gpl-3.0 | 2,307 | 79 | codeparrot/github-code |
d6d09203c2e16dd0a1f1fb6016ff700d27dc696d8ba39853de68090f5e9a521c | #include "text.h"
#include "dingle_dots.h"
#include "vwcolor.h"
#include "text.h"
#include <cairo/cairo.h>
#include <pango/pangocairo.h>
Text::Text()
{
active = 0;
allocated = 0;
}
void Text::create(char *text, char *font, DingleDots *dd)
{
PangoLayout *layout;
PangoFontDescription *desc;
int width, height;
ch... | C++ | text.cc | dsheeler/v4l2_wayland | gpl-3.0 | 2,781 | 99 | codeparrot/github-code |
8b506dadfd53aba6da7bdd485c14e12321866082920974d2645b7c07d4d05c77 | package main
import (
"encoding/json"
"io/ioutil"
"log"
"os"
telegram "github.com/PeterCxy/gotelegram"
"github.com/PeterCxy/gotgbot/support/loader"
"github.com/PeterCxy/gotgbot/support/types"
)
var Telegram *telegram.Telegram
var Commands types.CommandMap
var Default types.Command
var BotName string
var Debug... | GO | tgbot/tgbot.go | PeterCxy/gotgbot | gpl-3.0 | 1,177 | 66 | codeparrot/github-code |
8fbd46dd7384c924f44ba472f07afbe520dfc73c934cc33558efed9ad4735eae | import numpy as np
from bmtools.filters import filtfilt_butter
def derivatefilterQ(model, q, t, cutoff, fs, filter_order=4):
'''
Differentiate data using backwards finite differences and
butterworth low pass filter. Takes care of quaternions
Inputs: ... | Python | motorog/filterKinematics.py | GaloMALDONADO/motorg | gpl-3.0 | 2,952 | 93 | codeparrot/github-code |
b53520b5b3173c532a9de934a214e54aec6cc8119cac3221e0d8685ecf9b83d3 | var app = angular.module('sar-log', [
'ui.select',
'ngSanitize',
'ui.bootstrap',
'ui-notification',
'webStorageModule'
]);
app.run([ '$rootScope', '$log', 'Notification', 'webStorage', function ($rootScope, $log, Notification, webStorage){
for (var key in config){
$rootScope[key] = config[key];
}
... | JavaScript | src/js/app.app.js | agustik/sar-log | gpl-3.0 | 3,373 | 108 | codeparrot/github-code |
1cda93b76bc6cc2d3029bf55c998e50eee24e40e63f99456d0f46bb9d0d9a12c | /** @file
\brief Struct containing options info for imfit, along with function for
setting up default values within the struct.
*
*/
#ifndef _IMFIT_OPTION_STRUCT_H_
#define _IMFIT_OPTION_STRUCT_H_
#include <string>
#include <vector>
#include "definitions.h"
//! struct for holding various imfit opti... | C | oldstuff/option_struct_imfit.h | perwin/imfit | gpl-3.0 | 4,234 | 169 | codeparrot/github-code |
d7d864f20dc75c0175eb01643aa4e6663c3313c867d4948a0b21a9b0559f3fa8 | <?php
/*
This file is part of Erebot.
Erebot is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Erebot is distributed ... | PHP | src/GoF.php | Erebot/Module_GoF | gpl-3.0 | 48,406 | 1,405 | codeparrot/github-code |
177eefb3d9dde4204d67b35a9c83e272b7b1d5bf3b7009c5fb6543e8ff23b6b4 | package org.ovirt.engine.ui.common.widget.table.resize;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.ovirt.engine.ui.common.CommonApplicationTemplates;
import org.ovirt.engine.ui.common.gin.Asse... | Java | ovirt/3.6_source/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/resize/ColumnResizeCellTable.java | jtux270/translate | gpl-3.0 | 18,851 | 487 | codeparrot/github-code |
8c1e923e6b67e83d17ea0786b248c885930cca3e387fa713682de5a910557cfa | import os
import datetime
from datetime import timedelta
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from core.utils import date_range
class Package(models.Model):
title = models.CharField(max_length=200, unique=True)
level = models.SmallIntegerF... | Python | apps/games/listening/models.py | hamasho/endojo | gpl-3.0 | 4,489 | 142 | codeparrot/github-code |
91887c4cac5a046e709750d5a47415f1b101e78fc249aec089baf5af88ba3f13 | package frontend.ui;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.widgets.Display;
public class FontList {
private static final String monospaceName = getMon... | Java | src/frontend/ui/FontList.java | dmac100/vm | gpl-3.0 | 952 | 37 | codeparrot/github-code |
471fcf8f7d9e83d068c2fe4c3a64965889df78b88935d5c6acdfc9ea5d5ca2bd | /*
* mGoban - GUI for Go
* Copyright (C) 2007, 2009, 2010 sanpo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... | Java | app/Config.java | msanpopo/mgoban | gpl-3.0 | 4,452 | 138 | codeparrot/github-code |
75cbc7f0f47a13907ffe6d26be023603bcf9099e2bdc6c5380b543a2dd2bdeac | /* This file is a part of the sqlHawk project.
* http://timabell.github.com/sqlHawk/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... | Java | src/uk/co/timwise/sqlhawk/html/implied/ImpliedForeignKeyConstraint.java | timabell/sqlHawk | gpl-3.0 | 1,769 | 64 | codeparrot/github-code |
2d6d3542e1d2d0680d568fa0ad2c5b54386e2f7fa9a2c52c250b2902685bfeb1 | <?php
/*
Gibbon, Flexible & Open School System
Copyright (C) 2010, Ross Parker
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | PHP | modules/Planner/resources_manage_edit.php | SKuipers/core | gpl-3.0 | 7,605 | 156 | codeparrot/github-code |
16b7a265889918a146bf9355c6a98dab9273c3d06d421e7a60e09978f7235595 | package com.earth2me.essentials.commands;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.MetaItemStack;
import com.earth2me.essentials.User;
import com.earth2me.essentials.Util;
import com.earth2me.essentials.craftbukkit.InventoryWorkaround;
import java.util.Locale;
import org.bukkit.Mate... | Java | Essentials/src/com/earth2me/essentials/commands/Commandgive.java | joansmith/Essentials | gpl-3.0 | 3,287 | 104 | codeparrot/github-code |
cad8bd9e629e0a549d668f47664528bfde5210c4eb5657506ff35160c2aaa7c7 | /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a zlib-style license that can
* be found in the License.txt file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#ifndef ZenLib_MemoryUtils... | C | src/ExtLib/ZenLib/ZenLib/MemoryUtils.h | WinnerSoftLab/WinnerMediaPlayer | gpl-3.0 | 9,069 | 260 | codeparrot/github-code |
39bf33e232cab8cf94c01f581a87107e79a57993f8d9718997f9a7be3d02b9d9 | /*Copyright (c) 2011—2017. Pierre-Yves AQUILANTI and Xinzhe WU in Maison de la Simulation. All rights reserved */
#include "mpi_lsa_com.h"
/***********************************************************************************
Exchange information about the vector location within each intracommunicator to allow asynchron... | C | Libs/mpi_lsa_com.c | brunowu/UCGLE | gpl-3.0 | 16,862 | 515 | codeparrot/github-code |
1a70ed4030e8cf45a67e07b10e5515ec177cc387a2332a8f26451a1ed107b858 | /*
* Copyright (C) 2019 Stichting Akvo (Akvo Foundation)
*
* This file is part of Akvo Flow.
*
* Akvo Flow is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your... | Java | app/src/main/java/org/akvo/flow/ui/view/media/photo/MediaMapper.java | akvo/akvo-flow-mobile | gpl-3.0 | 1,398 | 43 | codeparrot/github-code |
aff5e8293f75330446038d2971988b6991b607de220ae0fad062eea716bcf792 | /*
* WANDORA
* Knowledge Extraction, Management, and Publishing Application
* http://www.wandora.org/
*
* Copyright (C) 2004-2015 Wandora Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free So... | Java | encode/src/org/wandora/application/gui/topicpanels/ProcessingTopicPanel.java | Anisorf/ENCODE | gpl-3.0 | 74,020 | 1,904 | codeparrot/github-code |
57c411943d24b4a296a630d88030a6007b8ff1925ec02a44239bfab0d3f680b8 | /*******************************************************************************
* Copyright (c) 2013, 2015 EclipseSource.
*
* 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 restr... | Java | src/main/java/com/cryptoregistry/json/JsonWriter.java | buttermilk-crypto/tweetPepper | gpl-3.0 | 4,740 | 146 | codeparrot/github-code |
d843dfd17fe78bd6ca651932c2880d34ee74ecfc9369e4b39ed130b1ca1395a0 | var TripleComponent = {
"Subject": "tripleSubject",
"Relation": "tripleRelation",
"Object": "tripleObject",
};
class TripleState{
clear(){
this.subject = null;
this.relation = null;
this.object = null;
this.vacant = [
TripleComponent.Object,
TripleComponent.Relation,
TripleComponent.Subj... | JavaScript | src/textCanvas.js | ben-schulz/quickfox | gpl-3.0 | 8,124 | 514 | codeparrot/github-code |
7ee5b87d36ce3cee552768a3dd9a0c507b66231d009a388efb42cabf995fc40a | var checkedDirs = new Array();
var showCount = 0;
var sYearInfo = "";
var theQual;
var thisSeason, thisEpisode, thisShow;
var k = 0;
var doneCount = 1;
var remainCount = 1;
var startDir;
var disabledLibraries = 0;
var doneLibraries = 0;
var libraryDepth = 0;
var folderList = new Array();
var iFolder = 0;... | JavaScript | resources/script/Find-movies.js | danielt113/MovieBox | gpl-3.0 | 15,946 | 410 | codeparrot/github-code |
b0fc0bd954386d1da24e0c84848b8319585b53b7e6427104f397dc35e9340129 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2017-2018 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in ... | Python | snapcraft/internal/repo/_base.py | snapcore/snapcraft | gpl-3.0 | 13,377 | 371 | codeparrot/github-code |
111a07b590ea8a58126b7159da013133275c6b42ac569e3c6d9e9126b43a23b7 | #include "InspectorAtemKeyerStateWidget.h"
#include "Global.h"
#include "DatabaseManager.h"
#include "EventManager.h"
#include "Models/Atem/AtemKeyerModel.h"
#include <QtGui/QApplication>
InspectorAtemKeyerStateWidget::InspectorAtemKeyerStateWidget(QWidget* parent)
: QWidget(parent),
model(NUL... | C++ | src/Widgets/Inspector/Atem/InspectorAtemKeyerStateWidget.cpp | CasparPlay/CasparPlay | gpl-3.0 | 2,354 | 74 | codeparrot/github-code |
161d1721900476e85d9d0f615c5ee66e07307ba8433d88fd3b19feec554fc817 |
/*
* Copyright (c) Calin Crisan
* This file is part of streamEye.
*
* streamEye is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.... | C | auth.c | ccrisan/streameye | gpl-3.0 | 3,077 | 116 | codeparrot/github-code |
49fade2226a4273d0312b7f2307ad70c376016011e391ea37c33defcd596b9ed | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using ABoard.DAL.Abstract;
using ABoard.DAL.Entity;
using ABoard.Web.Infrastrusture;
namespace ABoard.Web.Controllers
{
public class NavController : DbReposito... | C# | ABoard/ABoard.Web/Controllers/NavController.cs | cygwin255/ABoard | gpl-3.0 | 1,344 | 47 | codeparrot/github-code |
8aeee2212a2f1941cc2486dfacc0e0eb2687935c7033bca202afec0fc3dfe924 | /*
* Copyright (C) 2000 - 2008 TagServlet Ltd
*
* This file is part of Open BlueDragon (OpenBD) CFML Server Engine.
*
* OpenBD is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* Free Software Foundation,version 3.
*
* Open... | Java | src/com/naryx/tagfusion/expression/function/string/left.java | OpenBD/openbd-core | gpl-3.0 | 2,519 | 77 | codeparrot/github-code |
78dee67b4153a050524426abf63d812e2100a9591540613eb8d21d13ce2ae69e | #ifndef _ASSEMBLER_H_
#define _ASSEMBLER_H_
#include <sstream>
#include "ryggrad/src/base/ThreadHandler.h"
#include "AlignmentParams.h"
#include "SuffixArray.h"
#include "DNASeqs.h"
#include "SeedingObjects.h"
#include "SyntenicSeeds.h"
//======================================================
class FastAlignTargetU... | C | src/fastAlign/FastAlignUnit.h | nedaz/cola | gpl-3.0 | 5,312 | 109 | codeparrot/github-code |
30017100bb3adb7746baf36c9ba09be4137748c0a7a4b14a138466894edfd382 | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2013 Mellanox Technologies, Inc.
* All rights reserved.
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyright... | C | Parametros/CosmoMC/prerrequisitos/openmpi-2.0.2/oshmem/mca/atomic/basic/atomic_basic_component.c | ClaudioNahmad/Servicio-Social | gpl-3.0 | 2,650 | 93 | codeparrot/github-code |
7a092c24905d979231751835ded55b68bd78bd43072ebd5e528e888987a8cc2c | from django.db import models
GENDER=(
('Male','Male'),
('Female','Female'),
('Transgender','Transgender'),
('Unknown','Unknown'),
)
QUALIFICATION =(
('SSLC','SSLC'),
('Unknown','Unknown'),
)
ATTENDANCE =(
('Present','Present'),
('Absent','Absent'),
('N.A','N.A'),
)... | Python | src/misc/models.py | askyourgovt/nammamla2 | gpl-3.0 | 6,418 | 128 | codeparrot/github-code |
44edb68426a2bfc7df7bb58ae91e4f2a8db74a8c5a5c5b354ba4d515e0bcd17d | /*
Copyright (C) 2010,2011,2012 The ESPResSo project
Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010
Max-Planck-Institute for Polymer Research, Theory Group
This file is part of ESPResSo.
ESPResSo is free software: you can redistribute it and/or modify
it under the terms of the GNU Gener... | C | src/particle_data.c | icimrak/espresso | gpl-3.0 | 33,841 | 1,449 | codeparrot/github-code |
72ae79c6ce850602d635f3971c97ab226d110b26cbf8aee3ee19d88737a662b7 | #include "AminoAcidState.h"
#include "RbException.h"
#include <stdio.h>
#include <iostream>
#include <sstream>
using namespace RevBayesCore;
/** Default constructor */
AminoAcidState::AminoAcidState(size_t n) : DiscreteCharacterState( 20 ),
is_gap( false ),
is_missing( false ),
index_single_state( 0 ),
... | C++ | src/core/datatypes/phylogenetics/character/AminoAcidState.cpp | wrightaprilm/revbayes | gpl-3.0 | 3,028 | 174 | codeparrot/github-code |
11ae0b1b08c613937c24d412ac4f71143dfbe26454e3ea9973a9153d9bbde9ce | #ifndef RIBI_HISTOGRAM_R_H
#define RIBI_HISTOGRAM_R_H
#include <memory>
#include <string>
#include <vector>
#include "RInside.h"
namespace ribi {
struct HistogramR
{
enum class GraphicsFormat { png, svg };
HistogramR();
std::string GetVersion() const noexcept;
std::vector<std::string> GetVersionHistory() ... | C | CppHistogramR/histogram_r.h | richelbilderbeek/RibiClasses | gpl-3.0 | 628 | 38 | codeparrot/github-code |
ed3f5cc2a79f88dbc00af390dd2178d17501c8032d01ba3765c79008a81f1bb7 | // Copyright 2018-2021, University of Colorado Boulder
import Property from '../../../axon/js/Property.js';
import ISLCObjectDescriptionNode from '../../../inverse-square-law-common/js/view/ISLCObjectDescriptionNode.js';
import ISLCObjectEnum from '../../../inverse-square-law-common/js/view/ISLCObjectEnum.js';
import... | JavaScript | js/view/MassDescriptionNode.js | phetsims/gravity-force-lab | gpl-3.0 | 4,790 | 119 | codeparrot/github-code |
a6046015195245c8711493b97c3b9bf3d6ca7bf66b19f3b89e798616f5c802ef | /* Copyright (C) 2014-2022 FastoGT. All right reserved.
This file is part of FastoNoSQL.
FastoNoSQL 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 yo... | C | src/app/credentials_dialog.h | fastogt/fastonosql | gpl-3.0 | 1,795 | 70 | codeparrot/github-code |
0c76bef2d478b33cc1b98d22fa9400275c0a0652dee60d222540e6919b66b937 | /**Currently not used and only left for reference for future use**/
package com.ack.util;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.xml.sax.Input... | Java | src/com/ack/util/XmlUtil.java | Jiiks/Liquid-Notify-Rev2 | gpl-3.0 | 1,497 | 49 | codeparrot/github-code |
ef7db43367c9af3617e5bac2986dca75d6a76da262d16582904a7583c8cf895b | /*------------------------------------------- Sensor Library --------------------------------------------*/
/* This Library support almost all need function to work with Sensor
*
* Created 2017
* by Nguyen Thanh Long
* Modified 13 April 2017 - version 1
* by Nguyen Thanh Long
* File require: MySensor.h, MySens... | C | MySensor.h | thanhlong1996/intel-galileo | gpl-3.0 | 1,869 | 68 | codeparrot/github-code |
9448485f5ecf6e7ca6dc8f7406d7a582d441c9f48a723b2e529eea06b21342ad | var searchData=
[
['l_5faddr_5foffset',['l_addr_offset',['../structlink__map__offsets.html#a9a5fa43a5b4a5581d6e655e4afd82f8d',1,'link_map_offsets']]],
['l_5fld_5foffset',['l_ld_offset',['../structlink__map__offsets.html#a322e19fb1143c8d8ad24158a273285a3',1,'link_map_offsets']]],
['l_5fname_5foffset',['l_name_offs... | JavaScript | gdbserver/search/all_6c.js | StanShebs/gdb-doxy-test | gpl-3.0 | 31,798 | 224 | codeparrot/github-code |
efae3067a3a7d03ddc824b85d61b18e6a21b30f9cec1cc20e31372cafaf5d9d5 | <?php
class PDFMasse {
public $resultmasssend;
public $nbignored=0;
public $nbsent=0;
public $subject = "";
public $message = "";
public $sendtocc = "";
function substitutionarray($facture ) {
return $substitutionarray=array(
'__ID__' => $facture->id,
'__EMAIL__' => $facture->thirdparty->email,
... | PHP | relance/pdfmasse.class.php | tonin/abonibarr | gpl-3.0 | 5,814 | 155 | codeparrot/github-code |
3b706a0f870d1af99df98946d520ecf9403cc76fdce29ddbac02cbfa3b1ad66c | "use strict";
var _ = require("underscore");
var Stats = require("fast-stats").Stats;
var Layer = require("../../layer/Layer");
var Arc = require("../../element/Arc");
const _default_config = {
input: "close",
upperBandOutputPrefix: "_bb_upper",
midOutputPrefix: "_bb_mid",
lowerBandOutputPrefix: "_bb_lower",
... | JavaScript | src/layer/indicator/BollingerBandsLayer.js | dojichart/dojichart | gpl-3.0 | 4,013 | 149 | codeparrot/github-code |
82a83063790a99e88771947e6f5d96322a1eb26c3ff93445940c5f7b82f7f7c1 | package com.droidplanner;
import android.app.Application;
import com.MAVLink.Messages.MAVLinkMessage;
import com.MAVLink.Messages.ardupilotmega.msg_heartbeat;
import com.MAVLink.Messages.enums.MAV_MODE_FLAG;
import com.droidplanner.MAVLink.MavLinkMsgHandler;
import com.droidplanner.MAVLink.MavLinkStreamRates;
import ... | Java | DroidPlanner/src/com/droidplanner/DroidPlannerApp.java | FenomPL/droidplanner | gpl-3.0 | 2,459 | 93 | codeparrot/github-code |
8135adc6cd2dbae02daaa8c51db1fa7a3045272ddfe4772cc85baf78a9fadc19 | // Copyright 2012 the V8 project authors. 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 code must retain the above copyright
// notice, this list of ... | C++ | src/3rdparty/v8/src/platform-linux.cc | Distrotech/qtjsbackend | gpl-3.0 | 36,206 | 1,288 | codeparrot/github-code |
ac3cbde3fdbb2c46bfa36fab0dcb68e939cf3cef7ad31bd4f894c1c54efd8491 | package ru.ibs.pmp.zzztestapplication.threads;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @author NAnishhenko
*/
public class TreadTest2 {
public static void testService() {
ExecutorService service = Executors.newFixedThreadPool(2);
for (int i = 0;... | Java | projects/ibs/ZZZTestApplication/src/main/java/ru/ibs/pmp/zzztestapplication/threads/TreadTest2.java | Niky4000/UsefulUtils | gpl-3.0 | 1,459 | 45 | codeparrot/github-code |
f7e47af27ce5751abae91a2a0500edda5737b7b46da8b8387ac81eaa8fc1c52b | package com.taobao.api.request;
import java.util.Map;
import com.taobao.api.ApiRuleException;
import com.taobao.api.TaobaoRequest;
import com.taobao.api.internal.util.RequestCheckUtils;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.response.SimbaNonsearchAdgroupplacesGetResponse;
/**
* TO... | Java | src/main/java/com/taobao/api/request/SimbaNonsearchAdgroupplacesGetRequest.java | kuiwang/my-dev | gpl-3.0 | 2,850 | 117 | codeparrot/github-code |
acd375adaca9004f781f121f36e25be6589588627b8f55c56a4a43d616da6a68 | /************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2022 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* EspoCRM is free software: you can redistribute... | JavaScript | client/modules/crm/src/views/knowledge-base-article/record/row-actions/default.js | espocrm/espocrm | gpl-3.0 | 2,750 | 72 | codeparrot/github-code |
8ea21c138c04995519a7227741691e3114740aec42910c620ece3487c5957ce4 | -----------------------------------------
-- ID: 5636
-- Item: shrimp_cracker_+1
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Vitality 2
-- Defense +10
-- Amorph Killer 12
-- Resist Virus 12
-- HP Recovered While Healing 9
-----------------------------------------
require("scripts/global... | Lua | scripts/globals/items/shrimp_cracker_+1.lua | m3rlin87/darkstar | gpl-3.0 | 1,140 | 42 | codeparrot/github-code |
fbc373b83fe38408aa51f3be1e1921ac6dae70a91ab481436a7c7b36ad82996d | /***************************************************************************************************
* Title : Divide Two Integers
* URL : https://leetcode.com/problems/divide-two-integers
* Date : 2019-02-17 (update)
* Author: Atiq Rahman
* Comp : O(n)
* Status: TLE
* Notes :
* Second version: turns out... | C# | leetcode/0029_divide-two-integers.cs | atiq-cs/Problem-Solving | gpl-3.0 | 3,310 | 123 | codeparrot/github-code |
408252e8944bdedb258a45fe85b1893d1205f64defcee6ba08e2912664c38815 | import org.junit.*;
import static org.junit.Assert.*;
import java.io.*;
import java.util.ArrayList;
public class WordTest {
@After
public void tearDown() {
Word.clearWordArray();
}
@Test
public void Word_instantiatesCorrectly_true(){
Word testWord = new Word("Test");
assertTrue(testWord instan... | Java | src/test/java/WordTest.java | johnmbklein/dictionary | gpl-3.0 | 2,635 | 98 | codeparrot/github-code |
8546843403d692771864be3eeca3a18f48cbe9b3fd5e46927ab4ba05b537d322 | /*
CVMob - Motion capture program
Copyright (C) 2013 The CVMob contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your optio... | C++ | src/view/graphicsitems/distanceitem.cpp | romariorios/CVMob | gpl-3.0 | 1,555 | 57 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.