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
f872602e3d910ac3acdb6fdbb13ac242390a17d2f4275575c33c2f98346d5408
/* * Copyright (C) 2010-2019 The ESPResSo project * * This file is part of ESPResSo. * * ESPResSo 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) ...
C++
src/script_interface/constraints/fields.hpp
psci2195/espresso-ffans
gpl-3.0
6,017
162
codeparrot/github-code
280be7f895e9af74b9283bb500f5c6b9a4e16e97975d43be2fe56a4aecd7ccec
package routes import ( "crypto/sha256" "crypto/subtle" "database/sql" "encoding/hex" "html" "log" "math" "net/http" "strconv" "strings" c "github.com/Azareal/Gosora/common" p "github.com/Azareal/Gosora/common/phrases" qgen "github.com/Azareal/Gosora/query_gen" ) // A blank list to fill out that paramet...
GO
routes/account.go
Azareal/Gosora
gpl-3.0
33,125
1,024
codeparrot/github-code
980f084856e7384bfac72a9a96505e13941940664dc65e85f461f4ec44b30945
/* * Copyright 2010-2020 OpenXcom Developers. * * This file is part of OpenXcom. * * OpenXcom 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++
src/Basescape/CraftEquipmentState.cpp
kevL/0xC_kL
gpl-3.0
20,783
772
codeparrot/github-code
f6f40677a151cd85ae308992dfb6e872be3f6fdc15ee6498b486083248d185aa
import numpy class DifferentialEvolutionAbstract: amount_of_individuals = None f = None p = None end_method = None def __init__(self, min_element=-1, max_element=1): self.min_element = min_element self.max_element = max_element self.f = 0.5 self.p = 0.9 se...
Python
archive/solver/DifferentialEvolutionAbstract.py
QuantumTechDevStudio/RUDNEVGAUSS
gpl-3.0
1,501
55
codeparrot/github-code
934a78b260580e6ad17ee267f0ef50655b9f63e31c25676ac880d0a7055da1bb
<!DOCTYPE html> <html lang="en" class="no-js"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Unity - Scripting API: ProceduralMaterial.animationUpdateRate</title> ...
HTML
ScriptReference/ProceduralMaterial-animationUpdateRate.html
rakuten/Uinty3D-Docs-zhcn
gpl-3.0
10,399
219
codeparrot/github-code
0c747d10e04c796bf5a4d450d3d2241c3a733cd762e9af2ba5e71592e0da94c8
import pickle from matplotlib import pyplot as plt plt.style.use('classic') import matplotlib as mpl fs = 12. fw = 'bold' mpl.rc('lines', linewidth=2., color='k') mpl.rc('font', size=fs, weight=fw, family='Arial') mpl.rc('legend', fontsize='small') import numpy def grad( x, u ) : return numpy.gradient(u) / nu...
Python
docs/extra_files/electrode_ocv_gen.py
matthewpklein/battsimpy
gpl-3.0
5,199
148
codeparrot/github-code
3d77dd265a73b7bcc10cbe7dba0c322c4e69fca3862ad0d67a9959cbc641c7c5
/* -*- c++ -*- */ /* * Copyright 2013 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio 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, or (at your option...
C
gr-blocks/lib/tcp_connection.h
bastibl/gnuradio
gpl-3.0
1,998
70
codeparrot/github-code
2a817c75d28897441f466336f132e2a0d9d7c7e6f573117da09265dff1d3a03d
package org.istic.synthlab.core.modules.whitenoise; import org.istic.synthlab.components.IComponent; import org.istic.synthlab.core.modules.io.IOutput; import org.istic.synthlab.core.services.Factory; import org.istic.synthlab.core.services.Register; public class WhiteNoise implements IWhiteNoise { private com.js...
Java
src/main/java/org/istic/synthlab/core/modules/whitenoise/WhiteNoise.java
StephaneMangin/Synth
gpl-3.0
1,003
37
codeparrot/github-code
a30c731007a5e34253573766279f3c1cc6bc6f18e60983faf26ea0c58c4684a8
import java.io.IOException; import java.net.Socket; import java.util.Scanner; public class networkRead implements Runnable { //Objects Scanner read; debugLogger myLogger; sharedData myData; arduinoWrite ardWriter; Socket pipe; //Variables String data; long startTime; long endTime; boolean dead = false; ...
Java
dev/java/src/networkRead.java
kc8hfi/mygolfcart
gpl-3.0
1,860
97
codeparrot/github-code
ed6663ddfa4cccab8cc487081c576a2fc60bb0c810b7f9ec1bd2ba5d550a3bc8
/** ****************************************************************************** * @file USB_Host/HID_Standalone/Src/main.c * @author MCD Application Team * @version V1.0.0 * @date 17-February-2017 * @brief USB host HID Mouse and Keyboard demo main file **********************************...
C
libs/STM32Cube_FW_F4_V1.16.0/Projects/STM32F413H-Discovery/Applications/USB_Host/HID_Standalone/Src/main.c
TRothfelder/Multicopter
gpl-3.0
10,131
283
codeparrot/github-code
2e39a91fad169a46a5aed1f27b4d5c156506ee784fd87d4969ed839cb1a0e3c9
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "search-sort.h" int binary_search_int(const int64_t arr[], int start, int end, int64_t key) { int mid; while(start <= end) { mid = start + (end - start) / 2; if(arr[mid] < key) start = mid + 1; else i...
C
data-struct/search-sort.c
AlpacaTunnel/AlpacaTunnel
gpl-3.0
4,457
193
codeparrot/github-code
bf18a5b26d0d71a72e8015741ae44455ef67458ee43e5f693c4b578d1dfdb73d
var jsVars = { appBaseUrl: null, appBasePath: null, init: function () { var jsVarsAttributes = angular.element('#js-vars')[0].attributes; jsVars.appBaseUrl = jsVarsAttributes['data-base-url'].value; jsVars.appBasePath = jsVarsAttributes['data-basepath'].value; ...
JavaScript
web/ng-front/app.js
Antione7/ZCEPracticeTest
gpl-3.0
1,224
61
codeparrot/github-code
579ce70404770de7a9e7cd96a663b41d29060de2c7c40f472a3d425f2cb2f5c2
/************************************************************************* * Copyright 2009-2014 Eucalyptus Systems, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 3 of the ...
Java
clc/modules/dns/src/main/java/com/eucalyptus/cloud/ws/ConnectionHandler.java
davenpcj5542009/eucalyptus
gpl-3.0
17,449
537
codeparrot/github-code
50b60b139b9db364aa7bf6a4e6cdbeb7297e11e8b0b98b546c3994c2bc032660
const Command = require('../../structures/Command'); const request = require('node-superfetch'); const { GOOGLE_KEY } = process.env; module.exports = class ToxicityCommand extends Command { constructor(client) { super(client, { name: 'toxicity', aliases: ['perspective', 'comment-toxicity'], group: 'analyze...
JavaScript
commands/analyze/toxicity.js
dragonfire535/xiaobot
gpl-3.0
1,410
48
codeparrot/github-code
5d9a3be410741aedf95871dfc519cbe6aca6273379dee483498150fa87378ced
// © Copyright 2010 - 2014 BlackTopp Studios Inc. /* This file is part of The Mezzanine Engine. The Mezzanine Engine 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...
C
testframework/testdata.h
BlackToppStudios/DAGFrameScheduler
gpl-3.0
12,521
224
codeparrot/github-code
fce3cf30afe690861bdfe5d2447c43020395c76d0a8e2ae479f4c817021ab578
<?php class AppPaymentPayMate extends App { private $error = array(); public function index() { $this->load->language('payment/paymate'); $this->document->setTitle($this->language->get('heading_title')); $this->load->model('setting/setting'); if (($this->request->server['REQUEST_METHOD'] == 'POST') && $th...
PHP
alpha/admin/app/payment/paymate.php
openxcart/openxcart
gpl-3.0
5,927
164
codeparrot/github-code
49943b44d0379a1c02d66581b91c75baa057d0ab7e240685d6bcf7bf251c81fa
#!/usr/bin/perl # Author: Daniel "Trizen" Șuteu # License: GPLv3 # Date: 14 April 2014 # Website: http://github.com/trizen # A basic A.I. concept, inspired by HAL9000. use utf8; use 5.014; use autodie; use warnings; no if $] >= 5.018, warnings => "experimental::smartmatch"; # For saving the memory use Data::Dump q...
Perl
HAL/HAL8212/HAL8212.pl
trizen/perl-scripts
gpl-3.0
9,013
403
codeparrot/github-code
4af9697f7d0c3d85b11cba9fe286924c4451dea213d99ff79c0e5eec79cfec88
//--------------------------------------------------------------------------- #ifndef SplashFormH #define SplashFormH //--------------------------------------------------------------------------- #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include <ExtCtrls.hpp...
C
src/study/project/registry_report/SplashForm/SplashForm.h
boussole/pfi
gpl-3.0
1,169
37
codeparrot/github-code
02bdc2fd87ecf321fc913bfbcb5bafac63605f5255e99f97fbc39b37d7506226
$templateNameTag = "TemplateName" # Name > Environment > LogicalUnit function New-Deployment { param ( [string]$bucketname, [string]$projectname, [string]$version = "experimental", [string]$deployroot = ".\" ) $prefix = "$projectname/$version/" $oldfiles = Get-S3Object...
PowerShell
src/Deployment.ps1
SleeperSmith/Aws-Lego
gpl-3.0
8,819
268
codeparrot/github-code
fe25cd15619096ee2691be90827a0a6a7e782b07fedc1dfb031fcf412376d1a5
/*++ Copyright (c) 1995-1996 Microsoft Corporation Module Name: lsapi.h Abstract: This module defines the 32-Bit Licensing API. The Licensing API is still pre-release (i.e. beta) code. Revision History: --*/ #ifndef LSAPI_H #define LSAPI_H #define LS_API_ENTRY WINAPI /***...
C++
dm/include/win32/LSAPI.H
dplc/dwin
gpl-3.0
11,774
325
codeparrot/github-code
ed5f9527fe9d27795ab930af7a681c887149c72a7100d41d71ff56e9ed0e40cc
// Powerlink Analyzer - Analyze Ethernet POWERLINK Network Traffic // Copyright (C) 2016, Thomas Keh // // 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 of the License. // // This pr...
Rust
src/main.rs
thk1/powerlink_analyzer
gpl-3.0
3,598
121
codeparrot/github-code
e323ef643b14f72d671357131cb53c43b5d9132a019ad306c756f42a283f968e
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #ifndef _lista_simples_h #define _lista_simples_h /*A implementacao utiliza um noh cabeca apontando * para o primeiro elemento da lista */ // Define um ponteiro void para dados genericos typedef void* gpointer; // Definicao estrutura lista typedef struct n...
C
lista_simples.h
vasconssa/Estrutura-de-Dados-C-
gpl-3.0
1,114
49
codeparrot/github-code
a481def61badaecb4590e2e3676a621dc3d466e9c080f1b31eb56a2d96d4e794
# ifndef CPPAD_CORE_REV_JAC_SPARSITY_HPP # define CPPAD_CORE_REV_JAC_SPARSITY_HPP /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell CppAD is distributed under multiple licenses. This distribution is under the ter...
C++
ThirdParty/cppad/cppad/core/rev_jac_sparsity.hpp
modsim/CADET-semi-analytic
gpl-3.0
7,000
252
codeparrot/github-code
5f69514b21cdb26d7ceed33cc368c97f5be62f5e02b9aa895d53b175c9a8931d
package edu.stanford.rsl.conrad.numerics; import Jama.Matrix; import Jama.util.*; /** Singular Value Decomposition. <P> For an m-by-n matrix A, the singular value decomposition is an m-by-(m or n) orthogonal matrix U, a (m or n)-by-n diagonal matrix S, and an n-by-n orthogonal matrix V so that A = U*S*V'....
Java
src/edu/stanford/rsl/conrad/numerics/DecompositionSVD.java
YixingHuang/CONRAD
gpl-3.0
14,143
620
codeparrot/github-code
e8d6cffeaaa17e9cb6035f265af9544e7b9337d783b4068e7e4d5e5ea5c54fbc
package net.sourceforge.seqware.common.util.filetools.lock; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.nio.channels.FileLock; import java.nio.charset.StandardCharsets; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * ...
Java
seqware-common/src/main/java/net/sourceforge/seqware/common/util/filetools/lock/LockingFileTools.java
oicr-gsi/niassa
gpl-3.0
2,474
65
codeparrot/github-code
1aaf7d14b023ba96aa2be12b0939e6da4c1886ba0159d52c3737ebeb7ebf83ac
<?php App::uses('AppController', 'Controller'); class CentrosController extends AppController { var $name = 'Centros'; public $uses = array('Centro', 'Titulacion'); var $paginate = array('Centro' => array('limit' => 4, 'order' => 'Centro.cue ASC')); public function beforeFilter() { parent::beforeFil...
PHP
Controller/CentrosController.php
santiagogil/siep
gpl-3.0
8,548
249
codeparrot/github-code
637da0876c9c1bf0db86f8b3c70d0f2b355ea4023b7be681a6511e0b95a456af
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license a...
PHP
www/framework/Zend/Gdata/Extension/EntryLink.php
MailCleaner/MailCleaner
gpl-3.0
4,414
168
codeparrot/github-code
d791840b5c95d59dbaa752e95884d808d2db7923c0bf7268c48c586f82a3a946
# PiTimer - Python Hardware Programming Education Project For Raspberry Pi # Copyright (C) 2015 Jason Birch # # 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 ...
Python
PiTimer_Step-8/UserInterface.py
BirchJD/RPiTimer
gpl-3.0
14,823
375
codeparrot/github-code
1029305393d158b9e7244e32b2d490209bd0bbb64dfd86566fd2ffe18a37082e
package eu.fbk.fcw.utils.corpus; import java.io.Serializable; /** * Created by alessio on 12/11/15. */ public class Word implements Serializable { private int id; private String form; private String lemma; private String pos; private int depParent; private String depLabel; private in...
Java
fcw-utils/src/main/java/eu/fbk/fcw/utils/corpus/Word.java
fbk/fcw
gpl-3.0
2,901
137
codeparrot/github-code
c4b60aaa64d5f36663af0806a96e178531ef60b34ef21d4021f0c5c9b8ffe9c8
package com.github.epd.sprout.levels; import com.github.epd.sprout.Assets; import com.github.epd.sprout.messages.Messages; import java.util.Arrays; public class DeadEndLevel extends Level { private static final int SIZE = 5; { color1 = 0x534f3e; color2 = 0xb9d661; } @Override public String tilesTex() { ...
Java
app/src/main/java/com/github/epd/sprout/levels/DeadEndLevel.java
G2159687/espd
gpl-3.0
1,393
80
codeparrot/github-code
e04e331c2e64a9cd378a42a8c95c4b1d8753f34a0295984f085a69b732d7af32
/** * Sky profile implementation * * ICRAR - International Centre for Radio Astronomy Research * (c) UWA - The University of Western Australia, 2016 * Copyright by UWA (in the framework of the ICRAR) * All rights reserved * * Contributed by Aaron Robotham, Rodrigo Tobar * * This file is part of libprofit. * ...
C++
src/sky.cpp
ICRAR/libprofit
gpl-3.0
1,932
74
codeparrot/github-code
2aa1813a7bea1c6033006f5143be0c4080813d9d7b41ca8a9cddbdb6c01c2ed2
package ch.cyberduck.core.cloudfront; /* * Copyright (c) 2002-2013 David Kocher. All rights reserved. * http://cyberduck.ch/ * * 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
s3/src/main/java/ch/cyberduck/core/cloudfront/CloudFrontDistributionConfiguration.java
iterate-ch/cyberduck
gpl-3.0
37,094
670
codeparrot/github-code
f0a8301a4dba621fd8182ee48a20d977b07071a72b169203ed7b5d6f63a718e3
package com.creativecub.iotarduino; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.Switch; import android.widget.TextView; import java.util.List; public cl...
Java
android/mini-IoT/app/src/main/java/com/creativecub/iotarduino/DataAdapter.java
nigelcog/mini-IoT
gpl-3.0
1,899
62
codeparrot/github-code
503d4f65ffb5d349019c4ccf8aec215ee04847fff096a2fa4cf00e8ee5e96512
//Settings actype = ['image/png','image/jpeg','image/jpg','image/gif']; /* Accepted mime type */ maxweight = 819200; /* Max file size in octets */ maxwidth = 150; /* Max width of the image */ maxheight = 150; /* Max height*/ //Caching variable selector ish = $('.ish'); /* On attach element hide or show */ msgUp = $('....
JavaScript
upload.js
Anyon3/simplehtml5upload
gpl-3.0
3,860
155
codeparrot/github-code
988d4941da3bcf099fc6131b40d0cc150361368655e250f5f0e68e35ed3b5b58
<?php /***************************************************************************\ * SPIP, Système de publication pour l'internet * * * * Copyright © avec tendresse depuis 2001 * * ...
PHP
prive/formulaires/configurer_preferences_menus.php
spip/SPIP
gpl-3.0
2,808
79
codeparrot/github-code
d3e6f654bb0ad02f62ce900c39ccb8e09758dacf8a808ce1f57a3459a308e272
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>What to do next! not: What to do next?</title> <link rel="stylesheet" type="text/css" media="screen" href="style.css"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> </head> <body class="sec...
HTML
Documentation/installation.html
scienceopen/AIDA-tools
gpl-3.0
6,824
154
codeparrot/github-code
66d609169c1a126c7fb161d98d1a76acda35e37e44f6ed19af99ecc8cf3cb3f9
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik\Plugins\CoreUpdater; use Piwik\Config; use Piwik\Mail; use Piwik\Option; use Piwik\Piwik; use Piwik\Plugins\UsersManager\API as UsersManagerApi; us...
PHP
plugins/CoreUpdater/UpdateCommunication.php
mneudert/piwik
gpl-3.0
5,094
185
codeparrot/github-code
9747cd85b39647eb56aa6dead43a17280931eb2e24438e22dfc56758d49df283
const {ipcFuncMain, ipcFuncMainCb, getIpcNameFunc, sendToBackgroundPage} = require('./util-main') const {ipcMain} = require('electron') const getIpcName = getIpcNameFunc('ContextMenus') const extInfos = require('../../extensionInfos') const sharedState = require('../../sharedStateMain') ipcMain.on('get-extension-menu'...
JavaScript
src/remoted-chrome/browser/context-menus-main.js
kura52/sushi-browser
gpl-3.0
1,947
47
codeparrot/github-code
a3aab2b19931735feaae5b90a900f713495101fc94123cf872aafec6794a1d5d
var Card = require("./Card"); var CARDS = require("./cards"); var CARDNUM = require("./cardnum"); var api = require("../rpcapi"); var util = require("../util"); var state = require("../state"); var imgUtil = require("../img"); // INDEX ----------------------------------------------------------------------- function In...
JavaScript
src/cards/IndexCard.js
soupytwist/Foxi
gpl-3.0
1,623
60
codeparrot/github-code
cb9aa7fbcec10a855bf78dd5dc71e953f64c9785c23f32d321c70acd19e74b2f
/***************************************************************************** * Copyright 2015-2020 Alexander Barthel alex@littlenavmap.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, eit...
C
src/fs/userdata/airspacereaderopenair.h
abarthel9/atools
gpl-3.0
2,394
77
codeparrot/github-code
c892de1c4c18097eab9010f33c310e3196a063f1cad7c004e46cc15a6d94d300
<?php /** * Base renderer for rendering HTML based diffs for PHP DiffLib. * * PHP version 5 * * Copyright (c) 2009 Chris Boulton <chris.boulton@interspire.com> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follow...
PHP
app/helper/Diff/Renderer/html/base.php
simontaosim/phpprojekt_simon
gpl-3.0
7,456
228
codeparrot/github-code
a037a66cda4817eb1a6465c34565e39e7ada7728dfe438896f5c4ff60d386605
/* sentence.hh * author: Johan Carlberger * last change: 2000-04-27 * comments: Sentence class */ #ifndef _sentence_hh #define _sentence_hh #include "wordtoken.h" // these should be in Sentence: const int MAX_SENTENCE_LENGTH = 150; // can be set arbitrarily class Sentence; class GramError; class Tagger; c...
C
scrutinizer/tagger/sentence.h
viggokann/granska
gpl-3.0
4,038
132
codeparrot/github-code
59e9b0f36924d10e50175ebc45da91ebfec8f48ac782f25b284e445e84c76d69
package com.ebrightmoon.doraemonkit.ui.widget.tableview.listener; import java.util.ArrayList; import java.util.List; public abstract class Observable<T> { public final ArrayList<T> observables = new ArrayList<>(); /**AttachObserver(通过实例注册观察者) **/ public void register(T observer){ if(obser...
Java
doraemonkit/src/main/java/com/ebrightmoon/doraemonkit/ui/widget/tableview/listener/Observable.java
jinsedeyuzhou/NewsClient
gpl-3.0
1,169
54
codeparrot/github-code
3474cba5ffcd6e11f8166860d5a8b3ab925723834a82c0994fe55fb98a73e306
/* * Beautiful Capi generates beautiful C API wrappers for your C++ classes * Copyright (C) 2015 Petr Petrovich Petrov * * This file is part of Beautiful Capi. * * Beautiful Capi is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the ...
C++
examples/down_cast/library/source/CircleImpl.cpp
PetrPPetrov/beautiful-capi
gpl-3.0
1,394
49
codeparrot/github-code
f053af70b5946c982fb24847065dc818559cb980621363764a1582fafe5ace94
#ifndef TEMPERATUREDATA_H #define TEMPERATUREDATA_H #include "Data/healthdata.h" class TemperatureData : public HealthData { public: explicit TemperatureData(); explicit TemperatureData(float temperature); explicit TemperatureData(HealthData data, float temperature); // Accessors float temperatur...
C
cse360project/Data/temperaturedata.h
Aszy/cse360project
gpl-3.0
710
33
codeparrot/github-code
ca2615f3d2d139d32148cf5edc2bcccfd7c899bfc4a7023da82bc3668eed0ab2
package com.fr.plugin.chart.custom.component; import com.fr.chart.chartattr.Plot; import com.fr.chart.web.ChartHyperPoplink; import com.fr.chart.web.ChartHyperRelateCellLink; import com.fr.chart.web.ChartHyperRelateFloatLink; import com.fr.design.ExtraDesignClassManager; import com.fr.design.beans.BasicBeanPane; impor...
Java
designer_chart/src/com/fr/plugin/chart/custom/component/VanChartHyperLinkPane.java
fanruan/finereport-design
gpl-3.0
11,646
293
codeparrot/github-code
e40636769f8ba00eb045484b70212db3b6891e22e77fe8dc31cda95b85b4ba62
package test.janus.data; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.apache.log4j.Logger; import org.janus.data.DataContext; import org.janus.data.DataContextImpl; impo...
Java
JanusData/test/test/janus/data/DataDescriptionTest.java
ThoNill/JanusData
gpl-3.0
3,870
120
codeparrot/github-code
b97ef6288c93c048814c94a55def10350d00aa530c9c5318895912a430dbd37e
package com.minecolonies.coremod.client.gui; import com.ldtteam.blockout.Pane; import com.ldtteam.blockout.controls.Button; import com.ldtteam.blockout.controls.ButtonHandler; import com.ldtteam.blockout.controls.Text; import com.ldtteam.blockout.views.ScrollingList; import com.ldtteam.blockout.views.Window; import co...
Java
src/main/java/com/minecolonies/coremod/client/gui/WindowAssignCitizen.java
Minecolonies/minecolonies
gpl-3.0
8,602
231
codeparrot/github-code
0b5c02c4d5eea0b7803db0569ac85cf087827902072194a2070e4a8d2be70a31
<?php class Default_Model_DbTable_Marketing extends Zend_Db_Table_Abstract { protected $_name = 'marketing'; protected $_primary = 'id'; } class Default_Model_Marketing { protected $_id; protected $_type; protected $_code; protected $_status; protected $_created; protected $_modified; protected $_mapper; ...
PHP
application/models/Marketing.php
tsergium/funcake.org
gpl-3.0
4,540
230
codeparrot/github-code
93468ac61024426a28049afb91fb9863d332344cde7aa94400d625c56d10bd8e
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the class library */ /* SoPlex --- the Sequential object-oriented simPlex. */ ...
C
3rd_soplex/src/ssvectorbase.h
LiangliangNan/PolyFit
gpl-3.0
21,751
910
codeparrot/github-code
ed183e78563856446a01c6a536738f86f17dcc9c3c9de3e83b64e27f95503f87
package eu.clarin.weblicht.bindings.cmd.ws; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; /** * * @author akislev */ @XmlAccessorType(value = XmlAccessType.FIELD) publ...
Java
src/main/java/eu/clarin/weblicht/bindings/cmd/ws/OutputValues.java
weblicht/oaipmh-cmdi-bindings
gpl-3.0
932
41
codeparrot/github-code
d800b5391798e112c1a5f93d3db9262c5ad93f20fb1ff7b779fea9575129f383
package l2s.gameserver.instancemanager; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import l2s.commons.util.Rnd; import l2s.gameserver.model.Player; import l2s.gameserver.model.quest.Quest; import l2s.gameserver.model.quest.QuestState; public class Dai...
Java
gameserver/src/main/java/l2s/gameserver/instancemanager/DailyQuestsManager.java
pantelis60/L2Scripts_Underground
gpl-3.0
1,579
70
codeparrot/github-code
94f29479ae20449e5dc84a654e41153a87e441bd34b368f155ba177c7bceb558
package com.bioxx.tfc.Render.Blocks; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.Tessellator; import net.minecraft.world.IBlockAccess; import org.lwjgl.opengl.GL11; import com.bioxx.tfc.TileEntities.TELoom; import com.bioxx.tfc.a...
Java
src/Common/com/bioxx/tfc/Render/Blocks/RenderLoom.java
raymondbh/TFCraft
gpl-3.0
7,580
226
codeparrot/github-code
ac52d7926919019da9f6ba08f333b7eaa17e8bc257c95ef2f6e60c7ca1642e32
# -*- coding: utf-8 -*- #---------------------------------------------------------------------------- # Menu for quickly adding waypoints when on move #---------------------------------------------------------------------------- # Copyright 2007-2008, Oliver White # # This program is free software: you can redistribute...
Python
modules/_mod_clickMenu.py
ryfx/modrana
gpl-3.0
2,761
79
codeparrot/github-code
ec8320ed4c6b54f7bd3084901c8dc9254a46b77db436224e383b9266af6c23fd
package com.github.kuros.random.jpa.testUtil.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "employee_department") public clas...
Java
src/test/java/com/github/kuros/random/jpa/testUtil/entity/EmployeeDepartment.java
kuros/random-jpa
gpl-3.0
1,656
73
codeparrot/github-code
0a3b258335093c65804054d6fce5561d95b470482c3023e58084d2b2f75c2e65
/* * This file is part of muCommander, http://www.mucommander.com * Copyright (C) 2002-2012 Maxence Bernard * * muCommander 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...
Java
src/main/com/mucommander/ui/main/DrivePopupButton.java
trol73/mucommander
gpl-3.0
26,393
669
codeparrot/github-code
cf3d605caad0fc6ee57a635432efaa041db9f1bc19e5f566343e43ef0f3b8412
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <TITLE> Uses of Class org.apache.poi.hwpf.model.FieldDescriptor (POI API Documentation) </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="St...
HTML
CSC 445 WebCentric Programming/Final Project/poi-3.14/docs/apidocs/org/apache/poi/hwpf/model/class-use/FieldDescriptor.html
jmemmons/university-assignments
gpl-3.0
7,961
182
codeparrot/github-code
915a1be7702d52e26b7cdfe10762496e4286c04f11c648ec2325ca0b2618b24d
<?php /** * @package mod_digisem * @copyright 2011-2013 Patrick Meyer, Tobias Niedl * @license GNU General Public License (GPL) 3.0 (http://www.gnu.org/licenses/gpl.html) */ /** * FTPs file transfer handler * * @author Patrick Meyer * @since d#9 */ class FTPsHandler extends FTPHandler { ...
PHP
filetransfer/ftps.php
digisem/digisem
gpl-3.0
677
33
codeparrot/github-code
ba6ca80c6abd22f3e57f0bf23d0cc100503c2eeaee72848e15afafaed86e3ad9
/* xoreos - A reimplementation of BioWare's Aurora engine * * xoreos is the legal property of its developers, whose names * can be found in the AUTHORS file distributed with this source * distribution. * * xoreos is free software; you can redistribute it and/or * modify it under the terms of the GNU General Publ...
C
src/common/debugman.h
cc9cii/xoreos
gpl-3.0
4,784
149
codeparrot/github-code
90da8b447ede23b943143e5d1703aa21bf8a39fe10ab7455ef3e58dbe4c15da7
/************************************ * AUTHOR: Divyansh Gaba * * INSTITUTION: ASET, BIJWASAN * ************************************/ #include<bits/stdc++.h> #define fast ios_base::sync_with_stdio(0); cin.tie(0); #define F first #define S second #define PB push_back #define MP make_pair #define REP(i,a,b) for (in...
C++
Hackerland Radio Transmitters/main.cpp
divyanshgaba/Competitive-Coding
gpl-3.0
919
50
codeparrot/github-code
ff66d2244743148cb8b56e6b7676acce69270a3f50981f7622908c5d7a60c9ca
package org.shikimori.library.adapters; import android.content.Context; import android.view.View; import android.view.ViewGroup; import com.nostra13.universalimageloader.core.ImageLoader; import org.shikimori.library.R; import org.shikimori.library.adapters.base.BaseListAdapter; import org.shikimori.library.adapters...
Java
library/src/main/java/org/shikimori/library/adapters/CommentsAdapter.java
LeshiyGS/shikimori
gpl-3.0
3,330
96
codeparrot/github-code
84d6c756e536bcc63cdae9b7cc51227014d0396c83ddbba66e9f030e3f0c5a9d
#include <XBeeAtCmd.hpp> #include <iostream> #include <stdlib.h> #include <XBeeDebug.hpp> XBeeAtCmd::XBeeAtCmd(){ _frameId = XBEE_DEFAULT_FRAME_ID; _atCmd = XBEE_DEFAULT_AT_CMD; _paramValue = new vector<uint8_t>(); } vector<uint8_t> XBeeAtCmd::getParamValue(){ return *(_paramValue); } unsigned short XBeeAtCm...
C++
src/XBeeAtCmd.cpp
andresmanelli/XBeeAPI
gpl-3.0
2,470
116
codeparrot/github-code
d7f22f3fb5eb84a83dfca4696037502f2c09a917192ccc78ef03d7e9d0bd1ce7
<?php namespace botwebapi\resources\api\workspaces\directoryBasedWorkspaces; use botwebapi\resources as resources; use botwebapi as botwebapi; class DirectoryBasedWorkspaces extends resources\BotWebApiResource { public function __construct($resource_uri, $parent_resource) { parent::__construct($resour...
PHP
botwebapi/classes/botwebapi/resources/api/workspaces/directoryBasedWorkspaces/DirectoryBasedWorkspaces.php
kipr/botwebapi
gpl-3.0
2,461
78
codeparrot/github-code
263252f2ecae5ffda0a175507070df71496d62d719d5f8a229ca30f6a5fbb4d7
# -*- coding: utf-8 -*- """ Created on Sun Sep 17 22:06:52 2017 Based on: print_MODFLOW_inputs_res_NWT.m @author: gcng """ # print_MODFLOW_inputs import numpy as np import MODFLOW_NWT_lib as mf # functions to write individual MODFLOW files import os # os functions from ConfigParser import SafeConfigParser parser ...
Python
python_scripts/MODFLOW_scripts/print_MODFLOW_inputs_res_NWT.py
UMN-Hydro/GSFLOW_pre-processor
gpl-3.0
3,667
102
codeparrot/github-code
fd999330434370df2273e6dac7202af03c96a6289165b2e7bcf45587a6fa22c5
package dualcraft.org.server.classic.cmd.impl; /*License ==================== Copyright (c) 2010-2012 Daniel Vidmar We use a modified GNU gpl v 3 license for this. GNU gpl v 3 is included in License.txt The modified part of the license is some additions which state the following: "Redistributions of this project i...
Java
org/server/classic/cmd/impl/SummonCommand.java
MinedroidFTW/DualCraft
gpl-3.0
2,455
77
codeparrot/github-code
40b45f6d9ded318aa67976c9fbc473ecf5d1d8baf2d20464acdb98e61c20358c
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="DemoHubManager.cs" company="Exit Games GmbH"> // Part of: Photon Unity Demos // </copyright> // <summary> // Used as starting point to let developer choose amongst all demos av...
C#
Assets/Tools/Photon Unity Networking/Demos/DemoHub/Scripts/DemoHubManager.cs
KonovalovAnton/CoOpMaze
gpl-3.0
7,547
266
codeparrot/github-code
4a937ca68e618a20a95aa30d57b4c05175e47b2d25dbe752376bbe8cd72cc368
package com.mdsgpp.cidadedemocratica.requester; import android.test.AndroidTestCase; import com.mdsgpp.cidadedemocratica.model.Tag; import org.json.JSONArray; import org.json.JSONException; import org.junit.Test; import java.util.ArrayList; /** * Created by andreanmasiro on 04/11/16. */ public class TagRequestR...
Java
app/src/test/java/com/mdsgpp/cidadedemocratica/requester/TagRequestResponseHandlerTest.java
fga-gpp-mds/2016.2-CidadeDemocratica
gpl-3.0
1,856
73
codeparrot/github-code
654f9f4d74a6f2065163ed7371f69b75de57df0c6fb974c6140dd24157e52f79
/* * AC - A source-code copy detector * * For more information please visit: http://github.com/manuel-freire/ac2 * * **************************************************************************** * * This file is part of AC, version 2.x * * AC is free software: you can redistribute it and/or modify it under ...
Java
clover/src/test/java/es/ucm/fdi/clover/model/SimpleRuleClustererTest.java
manuel-freire/ac2
gpl-3.0
13,328
415
codeparrot/github-code
dfa8a0e727a088e92d0dcddbdfedcbda916d9ac90047184f31da94ce4fedba31
/* * Copyright (C) 2011 Carl Green * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is...
Java
mpxg2-cli/src/test/java/info/carlwithak/mpxg2/printing/RoutingPrinterTest.java
carlgreen/Lexicon-MPX-G2-Editor
gpl-3.0
20,288
614
codeparrot/github-code
c5d2b8491100f6daf61c7bb6540e6d2eb691c07fbae1ad9c5cb02686705bfde8
package com.oitsjustjose.vtweaks.common.config; import net.minecraftforge.common.ForgeConfigSpec; public class ItemTweakConfig { private static final String CATEGORY_ITEM_TWEAKS = "item tweaks"; public static ForgeConfigSpec.BooleanValue ENABLE_EGG_HATCHING; public static ForgeConfigSpec.IntValue EGG_HAT...
Java
src/main/java/com/oitsjustjose/vtweaks/common/config/ItemTweakConfig.java
oitsjustjose/V-Tweaks
gpl-3.0
2,337
40
codeparrot/github-code
7bf627e4f2bc6c4122c36ab0da85b8829db2ec3e5cba69da1b56bc2aa44732e1
using System; using System.Globalization; using System.Threading.Tasks; using Microsoft.AspNet.Mvc.ModelBinding; namespace Yavsc { public class MyDecimalModelBinder : IModelBinder { public async Task<ModelBindingResult> BindModelAsync(ModelBindingContext bindingContext) { ValueProvi...
C#
src/Yavsc/CustomModelBinder.cs
pazof/yavsc
gpl-3.0
1,696
45
codeparrot/github-code
3e7207ca172975207b0f77778373279595650fe2fe61b42f6aad09586f34fd36
----------------------------------- -- Base Item Shop ----------------------------------- function onTrigger(player,npc) player:PrintToPlayer("Please buy your Dynamis currency dupe base item, then trade it to me."); player:PrintToPlayer("Red (A) = San d'Oria/coins! Blue (Z) = Bastok/bills! Green (C) = Windurst/shells...
Lua
scripts/zones/Provenance/npcs/Dyna.lua
Fenix-XI/Fenix
gpl-3.0
7,285
112
codeparrot/github-code
144faaa82dee2f941266c2cbbea3fbe80e157626014278b38fdc67b44d3705d8
// Qt #include <QDateTime> // Application #include "CRemoteControlData.h" //------------------------------------------------------------------------------------------------- quint32 CFileTransferData::m_ulNextTransferID = 1; CFileTransferData::CFileTransferData(QTcpSocket* pSocket, const QString& sSourceName, cons...
C++
source/cpp/RemoteControl/CRemoteControlData.cpp
Jango73/qt-plus
gpl-3.0
1,927
68
codeparrot/github-code
27c8255eb6ddcaa21b9f3e14df890ee158ad20d36514193f8f22eddd520d0462
/* * File: graph.c * Last modified on Fri Sep 26 09:34:55 2014 by eroberts * ----------------------------------------------------- * This file implements the graph.h interface using sets to represent the * nodes and arcs. */ #include <stdio.h> #include "foreach.h" #include "cslib.h" #include "generic.h" #include...
C
src/graph.c
eric-roberts/StanfordCSLib
gpl-3.0
9,897
416
codeparrot/github-code
dc2ba77544d5e3ba866df2c2d293839b6376bf48f961c1b6e12ae8438147f2cf
package model.beans; import java.util.Date; /** * * @author Gepardas */ public class Invoice { private String buyerName; private String buyerCode; private String buyerAdress; private String buyerCity; private String buyerCountry; private String buyerPhone; private...
Java
src/model/beans/Invoice.java
GiGsolutions/Invoice_generator
gpl-3.0
655
40
codeparrot/github-code
60fcc4e39f5b8899e9b0019d5fdc1ca1b0ea71502a4015c448361b39fab7044c
/* Command line parsing. Copyright (C) 1996-2014 Free Software Foundation, Inc. This file is part of GNU Wget. GNU Wget 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
src/main.c
giuseppe/wget
gpl-3.0
59,971
1,769
codeparrot/github-code
76192d7290a4f014988958c4d86b8727ca58f8bb5f9a0f3d4d56c1491f210e30
size_t my_fwrite(void *buffer, size_t size, size_t nmemb, void *stream) /* Used by curl */ { struct curlfile *out=(struct curlfile *)stream; if(out && !out->stream) { out->stream=fopen(out->filename, "wb"); if(!out->stream) return -1; } return fwrite(buffer, size, nmemb, out->stream); } int in_arr...
C
functions.c
simonpl/elektrol-gif-maker
gpl-3.0
2,107
76
codeparrot/github-code
baef993f05690a6f2476c70b366e28bd0236beb967c99b9c18e4bc068739e393
/** Copyright (C) 2012 Roberto Costumero Moreno <roberto@costumero.es> This file is part of Cosmofs. Cosmofs 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)...
GO
src/cosmofs/nameserver.go
rcostu/cosmofs
gpl-3.0
10,407
508
codeparrot/github-code
fe76093390c72f37a9f931e6c2579a65838ead9f5db52cb2909284acd6139cb9
// Copyright (C) 2002-2011 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #ifndef __S_SHARED_MESH_BUFFER_H_INCLUDED__ #define __S_SHARED_MESH_BUFFER_H_INCLUDED__ #include "irrArray.h" #include "IMeshBuffer.h" na...
C
dependencies/include/irrlicht/SSharedMeshBuffer.h
kiennguyen1994/game-programming-cse-hcmut-2012
gpl-3.0
6,338
243
codeparrot/github-code
91bcd2ef0645969fdd761c8b04df2e667ec1503669a019350d4b1abedd3c860e
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cs" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Emercoin</source> <translation>O Emercoinu</translation> </messag...
TypeScript
src/qt/locale/bitcoin_cs.ts
coinkeeper/2015-06-22_18-38_emercoin
gpl-3.0
88,526
1,979
codeparrot/github-code
6f7d32386beacbd9a82249c32b089baa2920a8c5cff29d8de7d08d4343a8d5b6
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Drawing; using Gabriel.Cat.Extension; using System.Collections; namespace Gabriel.Cat.Binaris { public class StringBinario : ElementoIListBinario<char> { public StringBinario() : base(ElementoBinario.ElementosTipoAcept...
C#
StringBinario.cs
tetradog/Gabriel.Cat.Binaris
gpl-3.0
971
40
codeparrot/github-code
7e7da85f59e5cf1d70d4d32c6656a51b33be568909b1110e68d2beea4485064f
{-# OPTIONS -O0 #-} {-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, TypeFamilies #-} -- | The themes/ config format module Lamdu.Config.Theme ( Help(..) , helpTextSize, helpTextColor, helpInputDocColor, helpBGColor, helpTint , helpShownIconTint, helpSrcLocColor , Eval(..), neighborsScaleFa...
Haskell
src/Lamdu/Config/Theme.hs
lamdu/lamdu
gpl-3.0
6,252
178
codeparrot/github-code
19c94f8c820185655277cb4f3171dfca6959d99d44e0673000eb9910c0698296
# ----------------------------------------------------------------------------- # Getting Things GNOME! - a personal organizer for the GNOME desktop # Copyright (c) 2008-2013 - Lionel Dricot & Bertrand Rousseau # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Gene...
Python
GTG/gtk/backends/backendstree.py
getting-things-gnome/gtg
gpl-3.0
10,617
266
codeparrot/github-code
e437736e73925b94d66a4cc5eed3cd5dd598fe22e2e4f2a1e22b6dd5b87d517e
package org.usfirst.frc.team5940.states; import edu.wpi.first.wpilibj.RobotBase; public abstract class State implements Runnable { @SuppressWarnings("unused") protected RobotBase robot; //Update recall delay private int delay = 25; /** * Constructor * @param robot Saved in this class, allows st...
Java
FRC-2016-BREAD-Codebase/src/org/usfirst/frc/team5940/states/State.java
BREAD5940/FRC-2016-BREAD-Codebase
gpl-3.0
1,232
49
codeparrot/github-code
3a5a0e1690576ee4bb640d7193cf9c86440c0b21120f802d22597f610cb4c3bc
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Class: OSA::Finder::FinderWindow</title> <meta http-equi...
HTML
ruby-osa/doc/classes/OSA/Finder/FinderWindow.html
jywarren/ruby-asterisk-speaker
gpl-3.0
10,345
434
codeparrot/github-code
9c1ca1caac84a52b15aa7c404a17acea2fcc3a8828698c4a5968de0aadb689f9
package com.pms.bean; import java.io.Serializable; import java.util.Date; import java.util.List; //合约实体类 public class Contract implements Serializable{ private int contractId;//合约ID private String contractNo;//合约编号 private String contractPicture;//合约图片地址 private int contractType;//是否解约状态 private int contractDire...
Java
src/com/pms/bean/Contract.java
yeSlin1/CBdParking
gpl-3.0
2,772
91
codeparrot/github-code
9a51670a6eda47bfb3b620ec7d85704ad9b038e251e7412cba336e4f5e085cec
// DlgMSMeer.cpp : implementation file // #include "stdafx.h" #include "Risa.h" #include "DlgMSMeer.h" #include "afxdialogex.h" #include "msImageProcessor.h" // CDlgMSMeer dialog IMPLEMENT_DYNAMIC(CDlgMSMeer, CDialogEx) CDlgMSMeer::CDlgMSMeer(cv::Mat* pmImg, bool bColor, CWnd* pParent /*=NULL*/) : CDialogEx(CDlgMS...
C++
DlgMSMeer.cpp
HedgehogTW/Risa
gpl-3.0
7,364
310
codeparrot/github-code
caeb9eabec876b70f863e9eda01ae83f44e79fb6d912a4a5554c52c57ea77de6
/* * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source...
C++
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
geminy/aidear
gpl-3.0
22,704
634
codeparrot/github-code
c57f6c0829587c0538acc9a343b12197fd830cd1d19ad017294180784ca2a116
<?php function generate_items_from_query() { $items = array(); $content; if (!isset($_GET["eq"])) $content = ";;;;;;;;;;;"; else $content = $_GET["eq"]; try { $values = split(';', $content); for ($i=0; $i < count($values); $i++) { $v...
PHP
_code/utils/utils-parser.php
doubotis/transmogrify
gpl-3.0
2,382
93
codeparrot/github-code
e57bd68df272c2c2e8d64c179eae620ffcb735c79ccb370a743e9827d605cf78
/* * Copyright (c) 2017, Miguel Gamboa * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is dis...
Java
aula13-json/src/test/java/WeatherDomainTest.java
isel-leic-mpd/mpd-2017-i41d
gpl-3.0
3,152
82
codeparrot/github-code
09be71c84a127055cc53ead5d30ffea61a465fc3ee765b613d185aa6b901793d
# usex -- Copyright (c) David Anderson 1996, 1997, 1998, 1999, 2000, 2001, 2002 # # CVS: $Revision$ $Date$ # # The name of the package under test PACKAGE_NAME=kernel # The toplevel namespace within which the test lives. TOPLEVEL_NAMESPACE=/$(PACKAGE_NAME) # The version of the test rpm that gets # created / submitte...
Makefile
usex/1.9-26/Makefile
p3ck/tests
gpl-3.0
7,720
249
codeparrot/github-code
03e5805d2310851cf82008909767a6e43fd6304bedeca4b98582c1233a7a5395
/* * Object space definition. */ #ifndef objectspace_h #define objectspace_h #include <InterViews/stub.h> class Catalog; class Messenger; class ObjectTable; class SpaceManager; class ObjectSpace : public ObjectStub { public: ObjectSpace(const char*); ~ObjectSpace(); void StartServer(Connection* local...
C
cmds/public/IV2.5/src/InterViews/space.h
axelmuhr/Helios-NG
gpl-3.0
1,714
87
codeparrot/github-code
0e8ac25a812dde353b483ad96d9226af39078051d4065c4a295c0a2f1eefb32f
#要注意 javascript 轉 python 語法差異 #document.getElementById -> doc[] #module Math -> math #Math.PI -> math.pi #abs -> fabs #array 可用 list代替 import math import time from browser import doc import browser.timer # 點類別 class Point(object): # 起始方法 def __init__(self, x, y): self.x = x self.y = y ...
Python
wsgi/local_data/brython_programs/brython_fourbar1.py
2014c2g5/2014cadp
gpl-3.0
11,130
392
codeparrot/github-code
6d35f3c36bd59aa27a844291d4a6f2bc1b19c0abb89067ddc14c55814f8f2b90
/* * #%L * episodesmanager-services * * $Id$ * $HeadURL$ * %% * Copyright (C) 2009 - 2010 Jean Couteau * %% * 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 ...
Java
episodesmanager-services/src/main/java/org/kootox/episodesmanager/services/importExport/XMLWriter.java
kootox/episodes-manager
gpl-3.0
7,089
244
codeparrot/github-code
78e57ae09f784261609bff95cef0b15c01203f731c8c1ce011a565218baece5b
#include "simulation/Elements.h" //#TPT-Directive ElementClass Element_PRTO PT_PRTO 110 Element_PRTO::Element_PRTO() { Identifier = "DEFAULT_PT_PRTO"; Name = "PRTO"; Colour = PIXPACK(0x0020EB); MenuVisible = 1; MenuSection = SC_SPECIAL; Enabled = 1; Advection = 0.0f; AirDrag = 0.00f...
C++
src/simulation/elements/PRTO.cpp
jacksonmj/Powder-Toy-Mods
gpl-3.0
5,973
195
codeparrot/github-code
d24d0b173f68f15e918a7c1a74ca26e9cd42b2652d2796a1b09098e4fa82436a
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "openmx_common.h" #define S3J_0 1e-10 #define S3J_MAX_FACT 40 #define S3J_EQUAL(a,b) (fabs((a)-(b))<S3J_0) #define S3J_MAX(a,b,c,ris) (((a)>(b)?(ris=(a)):(ris=(b)))>(c)?ris:(ris=(c))) #define S3J_MIN(a,b,c,ris) (((a)<(b)?(ris=(a)):(ris=(b)))<(c)?ris:...
C
source/Gaunt.c
RafaelDexter/OpenMX
gpl-3.0
6,518
223
codeparrot/github-code
e1bac7eba4f7179bf8d83217ae85e921bf6741ec799cfc152470b3acc0020f5f
package net.diecode.killermoney.events; import net.diecode.killermoney.objects.CCommand; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; public class KMCCommandExecutionEvent extends Event ...
Java
src/net/diecode/killermoney/events/KMCCommandExecutionEvent.java
diecode/KillerMoney
gpl-3.0
1,271
55
codeparrot/github-code
50924914803c07ba88584cc46524903e92c9bb20b59a857242d17c49d8d46d7b
/* * Beautiful Capi generates beautiful C API wrappers for your C++ classes * Copyright (C) 2015 Petr Petrovich Petrov * * This file is part of Beautiful Capi. * * Beautiful Capi is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the ...
C
examples/clanguage/client/Main.c
PetrPPetrov/beautiful-capi
gpl-3.0
1,894
66
codeparrot/github-code
b030daec28dcecfaeaa68c4280731bc2be07d0e40335654e142eba59ec97feb1
/** Copyright: 2015/2016 Benjamin Aigner developer.google.com This file is part of AustrianPublicStream. AustrianPublicStream 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 Licens...
Java
app/src/main/java/systems/byteswap/publicstream/AppCompatPreferenceActivity.java
benjaminaigner/AustrianPublicStream
gpl-3.0
3,612
127
codeparrot/github-code
9ee5efca21a009d13ffe32d4bfe6389b689e4a2fb35a229da005200e9208a17e
#include "AsyncHTTPClient.h" #include "../httprequest.h" #include "../GlobalFuncs.h" #include <comutil.h> #include <winhttp.h> AsyncHTTPClient::AsyncHTTPClient() : m_url(""), m_currentStatus(AsyncHTTPClient::HTTP_READY), m_response(""), m_responseCode(0) {} AsyncHTTPClient::~AsyncHTTPClient() { } void...
C++
LunaDll/Misc/AsyncHTTPClient.cpp
zeriyoshi/LunaDLL
gpl-3.0
4,828
198
codeparrot/github-code