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 |
|---|---|---|---|---|---|---|---|---|
79c2e48ffa2b4ac1502f8dad64acaf4090c5ff5fcb2248b8acfba37980b9653c | class LocationsController < ApplicationController
# GET /locations
# GET /locations.json
def index
@locations = Location.all
@page_title = "All Locations"
respond_to do |format|
format.html # index.html.erb
format.json { render json: @locations }
end
end
# GET /locations/1
# GET... | Ruby | app/controllers/locations_controller.rb | masukomi/lims | gpl-3.0 | 2,085 | 84 | codeparrot/github-code |
e39d7d34227b4c1bcb51936d953271b5ad77066be33069d0028f680ec4fd5986 | # Copyright (C) 2014 Aveco s.r.o.
#
# This file is part of SMake.
#
# SMake is a 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.
#
# SMake... | Perl | smake/SMake/Parser/Context.pm | Staon/smake | gpl-3.0 | 6,264 | 273 | codeparrot/github-code |
f7aba3adaefe67d56a3a83e7706ffa0309cef9cf836ed28cdc8b8d69bf18273c | #pragma once
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include "json/json.h"
//This class can parse a .json file from the filename
//It simply wraps jsoncpp methods!
static class JSONLoader
{
public:
//Will laod a file and output it to the out value!
//Returns false if somethi... | C | SpaceExplorer/Source/json/Loader.h | tatjam/WorldCivilizations | gpl-3.0 | 1,040 | 50 | codeparrot/github-code |
059c08e0990042544cbb9fee60bd382375464d54ef91ffd3d61f18fe0007c1f6 | #!/usr/bin/env python
"""This is a game called Tetros made with Tkinter graphics (quite similar to Tetris)."""
# Import modules
from tkinter import *
from tkinter import filedialog
from tkinter import messagebox
from tkinter.ttk import *
import random
import math
import time
import cmath
import copy
import sys
import w... | Python | src/Tetros.py | Advait-M/Tetros | gpl-3.0 | 64,805 | 1,583 | codeparrot/github-code |
07ea590df5b8091c8fce0660abcc08ef3505c8e9840aac5c54e470f76ef9a892 | #include "stdafx.h"
#include "SceneMgr.h"
SceneMgr::SceneMgr() {
srand(time(NULL));
g_Renderer = new Renderer(WIDTH, HEIGHT);
m_sound = new Sound();
team1_Char_CoolTime = TEAM1_HARATER_COOLTIME;
team2_Char_CoolTime = TEAM2_HARATER_COOLTIME;
cltime = 0;
characterPng1 = g_Renderer->CreatePngTexture("./Resourses/c... | C++ | SimpleGame/SimpleGame/SceneMgr.cpp | imhyunu/GSE_IMHYUNWOO_1_2012182033 | gpl-3.0 | 11,924 | 368 | codeparrot/github-code |
83a0affd2aa0576b87b4797985e6771e1a91d4cf924ada5e50390ba157e7cb1b | package net.thevpc.upa.impl.persistence;
import net.thevpc.upa.PersistenceUnit;
import net.thevpc.upa.PortabilityHint;
import net.thevpc.upa.UPA;
import net.thevpc.upa.exceptions.ConnectionException;
import net.thevpc.upa.exceptions.DriverNotFoundException;
import net.thevpc.upa.exceptions.RootConnectionStringNotFound... | Java | upa-impl-core/src/main/java/net/thevpc/upa/impl/persistence/DefaultPersistenceStore.java | thevpc/upa | gpl-3.0 | 21,023 | 453 | codeparrot/github-code |
c398f76f68d18781f3e4ab8c730aa86da9e56e3907f397f77558ea743222728e | (function() {
function PrivateKeyUsagePeriod() {
var obj;
//location
Object.defineProperty(this.__proto__, "notBefore", {
get: function() {
if (obj.notBefore === undefined)
return null;
return obj.notBefore;
},
... | JavaScript | pki/src/extensions/privateKeyUsagePeriod.js | Digt/trustedJS | gpl-3.0 | 1,607 | 58 | codeparrot/github-code |
2f4bc79cc05c6eccba6f8e84f9e371524356da6a24b3e270be3a7fbc4e7dcd34 | package com.dave.ae2peripheral.handler;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import appeng.api.networking.crafting.ICraftingPatternDetails;
import appeng.api.storage.data.IAEItemStack;
public class CraftingPattern implements ICrafting... | Java | src/main/java/com/dave/ae2peripheral/handler/CraftingPattern.java | thraaawn/AE2Peripheral | gpl-3.0 | 2,128 | 106 | codeparrot/github-code |
ea9326ae5bee5566751b501efaf05419a3c2c63c3e4cc1c3ce941b31baa95266 | /*
* Hyperbox - Virtual Infrastructure Manager
* Copyright (C) 2014 Max Dor
*
* https://apps.kamax.io/hyperbox
*
* 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 L... | Java | src/main/java/io/kamax/hboxd/core/action/device/DevicePropertyListAction.java | hyperbox/server | gpl-3.0 | 2,231 | 63 | codeparrot/github-code |
7dc61a5fd4294f7dc3228b53e957a237caeaa3470cb55c715d5f6c38dc8beff2 | /*
* Image.cpp
*
* Created on: Sep 10, 2012
* Author: lion
*/
#include "object.h"
#include "Image.h"
#include "Buffer.h"
#include "ifs/fs.h"
#include <vector>
#include <stdlib.h>
#include <math.h>
#include <exif/include/exif.h>
#include "ifs/gd.h"
namespace fibjs {
DECLARE_MODULE(gd);
void Image::setExtM... | C++ | fibjs/src/other/Image.cpp | xicilion/fibjs | gpl-3.0 | 40,814 | 1,572 | codeparrot/github-code |
7b8d23dd40bbaddf1ce49c57c340cec5b7a64a643a911ef0623ac9dfee3fbce4 | #ifndef IVBOX_H
#define IVBOX_H
#include <QWidget>
namespace Ui {
class IvBox;
}
class PokeTeam;
class QLabel;
class QSpinBox;
class QRadioButton;
class IvBox : public QWidget
{
Q_OBJECT
public:
explicit IvBox(QWidget *parent = 0);
void setPoke(PokeTeam *poke);
~IvBox();
public slots:
... | C | src/Teambuilder/Teambuilder/ivbox.h | huggye/pokemon-online | gpl-3.0 | 1,057 | 56 | codeparrot/github-code |
588c6a12105d0488f649a3d435ddc467b9e1383e27e53ca87a4103790eb16a58 | package com.cxk.botisoft.admin.conf;
import org.hibernate.validator.HibernateValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.validation.Validator;
impo... | Java | botisoft-admin/botisoft-admin-controller/src/main/java/com/cxk/botisoft/admin/conf/WebMvcConfig.java | cxinkai/botisoft-project | gpl-3.0 | 1,487 | 37 | codeparrot/github-code |
7b9a79f4d26affab1b02c02ed879b3f95f83ba57a5ccb23f274ee716cd39d2dd | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java | OmniEvo/android_frameworks_base | gpl-3.0 | 12,245 | 312 | codeparrot/github-code |
08f81a2511f91be424f9717b2e2dd477acdd383d561be088c797aa2b12377611 | /*
* Copyright (C) 2012-2014 Oleg Dolya
*
* 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 d... | Java | src/com/watabou/noosa/Gizmo.java | andersrosbaek/pixel-dungeon | gpl-3.0 | 1,859 | 97 | codeparrot/github-code |
d6ea59d8041c11c10a9a44b72f517200cbb7e1d5113f8610090c06ce4f0df1b0 | #include <XBeeTrReq.hpp>
#include <XBeeDebug.hpp>
#include <iostream>
XBeeTrReq::XBeeTrReq(){
_frameId = XBEE_DEFAULT_FRAME_ID;
_destAddr = XBEE_BROADCAST_ADDR;
_destMY = XBEE_DEFAULT_MY;
_broadcastR = XBEE_DEFAULT_BCST_RADIUS;
_options = XBEE_OPTS_ACK_ENABLED|XBEE_OPTS_NET_ADD_DISCOVERY_EN;
_rfData = new vecto... | C++ | src/XBeeTrReq.cpp | andresmanelli/XBeeAPI | gpl-3.0 | 2,521 | 124 | codeparrot/github-code |
1e71b2b1aa3f49ca6b889d431eee7b00b072f0a400062bf32e38dad486565549 | /*
* Copyright (C) 2013 Andrea Mazzoleni
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is d... | C | raid/test/fulltest.c | amadvance/snapraid | gpl-3.0 | 2,981 | 125 | codeparrot/github-code |
4b208da24bd9628530a1db202959ade7ed40d31db71faf9bc46ab5a06a64a96d | <?php
// Copyright (c) 2004 ars Cognita Inc., all rights reserved
/* ******************************************************************************
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence. ... | PHP | openims/libs/adodb/adodb-xmlschema.inc.php | syboor/openimsce | gpl-3.0 | 55,219 | 2,216 | codeparrot/github-code |
0a7e329918517d856ee2ac90a338b83e5958c1942191d516f27775b22c0b17c7 | using HtmlAgilityPack;
using ScrapEngine.Model;
using System.Xml;
namespace ScrapEngine.Bl.Parser
{
/// <summary>
/// Business logic to parse and process Manipulate Tag
/// </summary>
public class ScrapManipulateConfigParser : AppTopicConfigParser
{
/// <summary>
/// Split Manipula... | C# | WebScrapper/ScrapEngine/Bl/Parser/ScrapManipulateConfigParser.cs | QuSwense/Website_Scrapper | gpl-3.0 | 3,841 | 99 | codeparrot/github-code |
5670435c4315303e698fa30c0a3eada324b4f4a12422e3cc948a97bea2afb584 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 abel533@gmail.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... | Java | PageHelper/src/main/java/com/github/pagehelper/page/PageAutoDialect.java | LittleLazyCat/TXEY | gpl-3.0 | 8,089 | 242 | codeparrot/github-code |
90bee3c52bc5d01d7b58143908709de80074e96a3bda980994cff82ea200e3c3 | package cc.chenchi.android.tool.string;
import com.sun.org.apache.xpath.internal.operations.Div;
import java.util.ArrayList;
import java.util.List;
/**
* Created by reall on 2017/1/24.
*/
public class Calc {
/*
String cal = "(((((5+4)*2-(((((5+4)*2)-2)/(5-2*(((((5+4)*2)-2)/(5-2)-(4*3-2))+6.2))-(4*3-2))+6.2... | Java | src/cc/chenchi/android/tool/string/Calc.java | reallychenchi/andoridstring | gpl-3.0 | 5,984 | 215 | codeparrot/github-code |
ef71c3701015229261ae631e8bca9ddd2287d762ca657031a73bfdfb21ac419d | /*-
* #%L
* Genome Damage and Stability Centre SMLM ImageJ Plugins
*
* Software for single molecule localisation microscopy (SMLM)
* %%
* Copyright (C) 2011 - 2020 Alex Herbert
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
... | Java | src/main/java/uk/ac/sussex/gdsc/smlm/results/ImmutablePeakResultStore.java | aherbert/GDSC-SMLM | gpl-3.0 | 4,906 | 185 | codeparrot/github-code |
8997321751a34c9e083ddee479ad1bc39ba395eba62d836345d4b34993a10619 | /* maps.h: parse /proc/$pid/maps
*
* Copyright (C) 2006,2007,2009 Tavis Ormandy <taviso@sdf.lonestar.org>
* Copyright (C) 2009 Eli Dupree <elidupree@charter.net>
* Copyright (C) 2009,2010 WANG Lu <coolwanglu@gmail.com>
* Copyright (C) 2014..2019 Sebastian Parschauer <s.parschauer@gmx.de>
*
... | C | src/lib/maps.h | ugtrain/ugtrain | gpl-3.0 | 4,962 | 199 | codeparrot/github-code |
9d4a260a44f87d5cd9bc35593696ee4787d52eaead7006236ee148efee4af6e8 | """Unearthed URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | Python | Unearthed/urls.py | LinuxIsCool/unearthed | gpl-3.0 | 1,847 | 54 | codeparrot/github-code |
d310428076eb6badc30c2fb3494bb7817576b93948c79302c9ad0c48ffcc4eee | // Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// See the LICENSE file
// Portions Copyright (c) Athena Dev Teams
#define HERCULES_CORE
#include "config/core.h" // DBPATH
#include "int_guild.h"
#include "char/char.h"
#include "char/inter.h"
#include "char/mapif.h"
#include "common/cbasetypes.h"
#include... | C | src/char/int_guild.c | viniciusn/Cronus | gpl-3.0 | 60,859 | 1,955 | codeparrot/github-code |
c649241cdfc723436d6c70b84285ce196c18c3b295bf14b8f9d52c9c0e74ee3a | /*
* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of California at Berkeley. The name of the University
* may n... | C | tcpip/net/if_loop.c | axelmuhr/Helios-NG | gpl-3.0 | 2,918 | 157 | codeparrot/github-code |
185920f3905ad3a60244ba0d0e90db30401e47e290c0f498d35126a98c42e15e | /*
Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
... | Java | src/main/java/zmq/Mtrie.java | BWallet/jeromq | gpl-3.0 | 12,717 | 402 | codeparrot/github-code |
2dc52538e0578429720d300094c3348cedf8d72ec2d04c3c27e6f30911b753ec | /*
This file is part of Restraint.
Restraint 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.
Restraint is distribut... | C | src/env.c | sm00th/restraint | gpl-3.0 | 6,624 | 157 | codeparrot/github-code |
c2723d67d4bc936c8621608cf6486c8f6f326a7959ab03a1566cd03441adb0e8 | <?php
namespace App\Console\Commands;
use App\Message;
use App\Discussion;
use App\Group;
use App\User;
use Ddeboer\Imap\Server;
use Ddeboer\Imap\Message as ImapMessage;
use Illuminate\Console\Command;
use Log;
use Mail;
use App\Mail\MailBounce;
use League\HTMLToMarkdown\HtmlConverter;
use Michelf\Markdown;
use Email... | PHP | app/Console/Commands/CheckMailbox.php | philippejadin/Mobilizator | gpl-3.0 | 5,023 | 181 | codeparrot/github-code |
12772450c8ce970d9a1809778c3759db6cd128eb37ec98f8faeae9bee07e8c96 | #pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
/*****************************************************************************
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
* For more information, visit h... | C | src/paint/sprite/misc.c | halfbro/OpenRCT2 | gpl-3.0 | 5,742 | 197 | codeparrot/github-code |
949cd49925cca306fe452a72fb3af689eb680b2605e6223d637d22e81a8aca72 | /*
* Copyright (C) 2009-2018 by the geOrchestra PSC
*
* This file is part of geOrchestra.
*
* geOrchestra 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 opt... | Java | ldap-account-management/src/main/java/org/georchestra/ds/roles/Role.java | landryb/georchestra | gpl-3.0 | 1,964 | 85 | codeparrot/github-code |
442a58d77f8686c0935f74a631bbce84f70ba5f2b2b7cbccde25d05a9ca99cc6 | /*
This file is part of Delivery Pipeline Plugin.
Delivery Pipeline Plugin 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.
Delivery Pipelin... | Java | src/test/java/se/diabol/jenkins/pipeline/util/ProjectUtilTest.java | zihaoyu/delivery-pipeline-plugin | gpl-3.0 | 3,542 | 95 | codeparrot/github-code |
d963c3cf07c80307003583c30d80b59feefc47b2995d80b765fd01576fb2a631 | var async = require('async'),
utils = require('../public/src/utils.js'),
fs = require('fs'),
url = require('url'),
path = require('path'),
prompt = require('prompt'),
winston = require('winston'),
nconf = require('nconf'),
install = {
questions: [{
name: 'base_url',
description: 'URL of this installati... | JavaScript | src/install.js | changyou/NadBB | gpl-3.0 | 14,429 | 473 | codeparrot/github-code |
1bfb183c78dd6d86160eb59f1ef6152d0b0c099c8c9e23243d00ae560e8423f4 | <?php
/**
*
*
* Zenbership Membership Software
* Copyright (C) 2013-2016 Castlamp, LLC
*
* 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 ... | PHP | admin/cp-classes/criteriaActions.class.php | castlamp/zenbership | gpl-3.0 | 5,402 | 220 | codeparrot/github-code |
09289843f85ec92f613eb70da74eb93a9021d43b9c6a1663b80d9b29e739544c | /// Copyright 2010-2012 4kdownload.com (developers@4kdownload.com)
/**
This file is part of 4k Download.
4k Download is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU GENERAL PUBLIC LICENSE Version 3
(See file COPYIN... | C++ | app/common/gui/cxx/component/draggablebutton.cpp | stefansundin/four-k-download | gpl-3.0 | 2,341 | 83 | codeparrot/github-code |
39e480a5a4ab625d0550d67028f69b78fa07c3aea0e163723741ebeae0c5fb3d | <?php // -*- c-basic-offset: 2 -*-
/**
* Pest is a REST client for PHP.
*
* See http://github.com/educoder/pest for details.
*
* This code is licensed for use, modification, and distribution
* under the terms of the MIT License (see http://en.wikipedia.org/wiki/MIT_License)
*/
class Pest {
public $curl_opts =... | PHP | 3rdparty/pest/Pest.php | minscof/wemoJeedomPlugin | gpl-3.0 | 9,349 | 304 | codeparrot/github-code |
cf4882fdd4a3fadef53ebfdf40b83df1980272ae795ae06b8fba5caf64799663 | /**
* ====================================================================
* UPA (Unstructured Persistence API)
* Yet another ORM Framework
* ++++++++++++++++++++++++++++++++++
* Unstructured Persistence API, referred to as UPA, is a genuine effort
* to raise programming language frameworks managing relational da... | Java | upa-api/src/main/java/net/thevpc/upa/types/SecretTransformConfig.java | thevpc/upa | gpl-3.0 | 4,047 | 113 | codeparrot/github-code |
8b00989b9315b098b72accde7ca2d30fa0cce8322469573e71f06e3f8254025d | <?php
include (dirname(__FILE__) . '/includes/theme_conf.php');
function BASETHEME_preprocess_html() {
if (
// Only display for site config admins.
isset($GLOBALS['user']) && function_exists('user_access') && user_access('administer site configuration')
&& theme_get_setting('BASETHEME_rebuild_registry... | PHP | BASETHEME/template.php | geek51/drupal-base-theme | gpl-3.0 | 4,123 | 132 | codeparrot/github-code |
9a345a16f34821c8edbab223d90d9cc95709032b4895b9a99d1e24512dc875d4 | #include <typeinfo>
#include <TH1F.h>
#include <TGraph.h>
#include <TTree.h>
#include <string>
#include <gsl/gsl_cdf.h>
#include <cmath>
#include <vector>
#include <stdlib.h>
#include "/home/girardcarillo/Workdir/SNPlot/RootDisplay.h"
#include "/home/girardcarillo/Workdir/Analyses/SensitivityStudy/contaminations/conta... | C++ | Cloe/SensitivityStudy-master/efficiency.cc | SuperNEMO-DBD/AllAnalyses | gpl-3.0 | 35,409 | 936 | codeparrot/github-code |
d82c0949c9acb0c0d29b7b058c0f8a563327e64320501bc77011c0033eb52cfb | /**
* Copyright 2011-2012 Sebastian Eriksson.
* This file is part of Motion.
*
* Motion 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 | engine/include/particlesystem/ParticleEmitter.h | sebis/Motion | gpl-3.0 | 2,596 | 89 | codeparrot/github-code |
59eed3fcf7ec096ef0376a99cd72798233ccba26dac1ab64dae94f414f8153f4 | #!/bin/sh
# default:
PREFIX=/usr/local
PROGS="java javac jar make sed"
IMG=be/nikiroo/utils/ui/ImageUtilsAwt
valid=true
while [ "$*" != "" ]; do
key=`echo "$1" | cut -f1 -d=`
val=`echo "$1" | cut -f2 -d=`
case "$key" in
--)
;;
--help) # This help message
echo The following arguments can be used:
cat "$0" ... | Shell | configure.sh | nikiroo/fanfix | gpl-3.0 | 1,754 | 73 | codeparrot/github-code |
3b1b36ae1d062055cb706370c7f636330abe7e7c039928bc307f43c337e8e496 | // version: 2014-06-23
/**
* o--------------------------------------------------------------------------------o
* | This file is part of the RGraph package. RGraph is Free Software, licensed |
* | under the MIT license - so it's free to use for all purposes. If you want to |
* | donate to help... | JavaScript | js/rgraph/RGraph.common.resizing.js | timmathews/pyxis-web | gpl-3.0 | 24,164 | 545 | codeparrot/github-code |
def82b2a7a2182507a619354bb71ccb6c30ef37f4f95d53fd471b06a3dd42447 |
/******************************************************************************
*
* file: UnlabeledMultiArg.h
*
* Copyright (c) 2003, Michael E. Smoot.
* All rights reverved.
*
* See the file COPYING in the top directory of this distribution for
* more information.
*
* THE SOFTWARE IS PROVIDED _AS IS_... | C | src/tclap/UnlabeledMultiArg.h | elsamuko/copymove2 | gpl-3.0 | 11,458 | 294 | codeparrot/github-code |
983afe5a0d623d1fdbf0fcc4d5ce7765c8503e7d535394aebb5b7d4f865a7729 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (C) 2013 BatOnBots-ML.
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 | BatOnBots-ML.py | BatOnBots-ML/batonbots-ml | gpl-3.0 | 21,848 | 574 | codeparrot/github-code |
bcf9a6067b37602a46085c25e89efd94fb5002374b14eeb5be85667cb787e1cb | /**
* regexpmatch.c
* Copyright © 2017 Dmitry Sokolov
*
* 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.
*
* T... | C | src/regexpmatch.c | assador/ds-findbytags | gpl-3.0 | 4,864 | 185 | codeparrot/github-code |
886970da2e062757e37ef13399f3196d5554255a806c7d259fcad24d657ad6f2 | /*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
2011,2012,2013 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
ChibiOS/RT 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... | C | os/ports/GCC/ARMCMx/LPC122x/vectors.c | JustRob83/virulent | gpl-3.0 | 8,063 | 199 | codeparrot/github-code |
f95e6122607dd0806f246fba65642f696b90108aecde864b7676cf6124dc9650 | /*
* lomo/lomo-stream.c
*
* Copyright (C) 2004-2011 Eina
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
*... | C | lomo/lomo-stream.c | ldotlopez/eina | gpl-3.0 | 13,436 | 573 | codeparrot/github-code |
d97473ca0689915d18e2a1bf4f8fbe79abe5d1cd8a67b577329e74705bd6b701 | package jaskowski.vendingMachine.money;
public class Money {
private int value;
public Money(int value) {
this.value = value;
}
public boolean lessOrEqual(Money money) {
return value <= money.value;
}
public boolean less(Money money) {
return value < money.value;
... | Java | src/main/java/jaskowski/vendingMachine/money/Money.java | maciejjaskowski/vending-machine | gpl-3.0 | 1,005 | 53 | codeparrot/github-code |
80f20ae36cbfb814ed052820e6f3fb3ac9304d2cc86eec26c1f1dc4cbb1b4921 | #ifndef MANTID_DATAHANDLING_LOADMASK_H_
#define MANTID_DATAHANDLING_LOADMASK_H_
#include "MantidKernel/System.h"
#include "MantidAPI/ParallelAlgorithm.h"
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include "MantidDataObjects/MaskWorkspace.h"
#include "MantidGeometry/IDTypes.h"
#include <Poco/AutoPtr.h>
#include <Poco... | C | Framework/DataHandling/inc/MantidDataHandling/LoadMask.h | ScreamingUdder/mantid | gpl-3.0 | 4,535 | 137 | codeparrot/github-code |
93c4fadcb731802bc83a1583f5a3bd2c5d9c9e84592d623ebed6a7b86d3cce1c | /*
Copyright (c) 2012 Marek Mikes
Copyright (c) 2012 Martin Straka
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... | C++ | frontend/components/Bookmarks.cpp | siret/Molpher | gpl-3.0 | 12,086 | 379 | codeparrot/github-code |
f4ff49285f4ff4a846dbbbe72d11da6bc739e6806a8040289ca26756b966e93b | """
Copyright (C) 2015 Quinn D Granfor <spootdev@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
... | Python | source/subprogram_match_anime_id.py | MediaKraken/MediaKraken_Deployment | gpl-3.0 | 3,312 | 88 | codeparrot/github-code |
55db12372c98f5f411c45d305beef134eff8771440ce7b56f184a183ef1c8963 | using System;
namespace DataStructures
{
public class LexerResult : ICloneable, IComparable
{
public Segment segment;
public LBT lbt; // pruned
public bool adj;
public RelationTreeNode TLEFT;
public RelationTreeNode BLEFT;
public override string ToString ()
{
return string.Format ("LexerResult:... | C# | src/MathRecognizer/DataStructures/LexerResult.cs | DPRL/CROHME_2011 | gpl-3.0 | 1,819 | 63 | codeparrot/github-code |
03bc4698ba24221a793fdac8902580511c8fa3d4cc57d24875a2114490a54ff9 | /* DoAddinInstallerDialog.cs
*
* GNOME Do is the legal property of its developers. Please refer to the
* COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... | C# | Do/src/Do.UI/DoAddinInstallerDialog.cs | gnome-do/core | gpl-3.0 | 4,316 | 179 | codeparrot/github-code |
37e9658b3d88d930af46ac552f8892ef4358150b6c472db5a996cc9c2e1eb9ba | /*
* NMRFx Processor : A Program for Processing NMR Data
* Copyright (C) 2004-2017 One Moon Scientific, Inc., Westfield, N.J., USA
*
* 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... | Java | src/main/java/org/nmrfx/processor/gui/DatasetsController.java | onemoonsci/nmrfxprocessorgui | gpl-3.0 | 23,951 | 629 | codeparrot/github-code |
0af368e71fc8a31821bc6c9d311fa4b8e5a4b78a9939268ac0f0a2210abe298f | import _ from 'lodash';
import { batchActions } from 'redux-batched-actions';
import createMap from '../bin/game-map-creator';
import populateEntities from '../bin/entity-creator';
import * as t from '../constants/action-types';
function addWeapon(payload) {
return {
type: t.ADD_WEAPON,
payload
};
}
function ad... | JavaScript | src/actions/index.js | thepeted/dungeon-crawler | gpl-3.0 | 7,667 | 288 | codeparrot/github-code |
4f46afcee53d9bafbbb5c23c87868780bb942fdd148c1f298f08326a05fd7c9a | /*
* Copyright (C) 2019-2020 Alexandre Carbenay
*
* This file is part of Cena Project.
*
* Cena Project 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) ... | Java | src/test/java/org/adhuc/cena/menu/recipes/RecipeAuthoringWithSecurityShould.java | adhuc-projects/cena | gpl-3.0 | 15,136 | 332 | codeparrot/github-code |
711d03c5bd882e5cf9584cfd07b44559adcf1f27107ce94b94b79b44a084694e | /*
* Copyright (C) 2013 Jordan Fish <fishjord at msu.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 3 of the License, or
* (at your option) any later version.
*
* ... | Java | src/edu/msu/cme/rdp/kmer/io/KmerStartsReader.java | rdpstaff/KmerFilter | gpl-3.0 | 2,156 | 75 | codeparrot/github-code |
1fe62d53ecbde0d179813994b5b8a67e63e0cb4f0a8899c97ff2c9b5d2ba3b0d | using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Configuration;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI... | C# | AMS/AMS/AddNewStudent.aspx.cs | khawajafarooq/SmartAttendance | gpl-3.0 | 2,668 | 94 | codeparrot/github-code |
95216aceb0985c90b4460fbefc53a562a101cc06553809296d7bea74f84b3f73 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Smewt - A smart collection manager
# Copyright (c) 2008 Nicolas Wack <wackou@smewt.com>
#
# Smewt 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 versio... | Python | smewt/test/smewttest.py | wackou/smewt | gpl-3.0 | 2,192 | 70 | codeparrot/github-code |
180e7787de64a1c0577b4e85f8fe500a883f073416346349be433eb1abe24874 | /*
* Copyright 2003-2011 NetLogic Microsystems, Inc. (NetLogic). All rights
* reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main ... | C | arch/mips/netlogic/common/time.c | williamfdevine/PrettyLinux | gpl-3.0 | 3,576 | 123 | codeparrot/github-code |
9bf8395052a49a0ee6e0fdfc31e83c9a879b19bf0ed046a6214a9cf6f24172e4 | # -*- coding: utf-8 -*-
# Zeobuilder is an extensible GUI-toolkit for molecular model construction.
# Copyright (C) 2007 - 2012 Toon Verstraelen <Toon.Verstraelen@UGent.be>, Center
# for Molecular Modeling (CMM), Ghent University, Ghent, Belgium; all rights
# reserved unless otherwise stated.
#
# This file is part of Z... | Python | share/plugins/basic/point.py | molmod/zeobuilder | gpl-3.0 | 7,413 | 220 | codeparrot/github-code |
a863432fd6a5bfa4f22507b75329bdb5d21ac9b466e0917f6713be5a7483c112 | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | C | src/ThirdParty/highway/highway-0.15.0/hwy/contrib/image/image.h | AlienCowEatCake/ImageViewer | gpl-3.0 | 17,639 | 477 | codeparrot/github-code |
eaaab73e45a526192ce9b36edcbd9f2f38cdd46fc5029344b0efc83a79bd82a6 | <?php
/*
* @author: petereussen
* @package: lakes
*/
namespace HarperJones\Couverts;
/**
* A Reservation Request object
*
* @package HarperJones\Couverts
*/
class Reservation
{
/**
* @var \DateTime
*/
public $datetime = null;
/**
* @var int
*/
public $persons = null;
/**
* @var strin... | PHP | src/Reservation.php | HarperJones/wp-couverts | gpl-3.0 | 4,509 | 220 | codeparrot/github-code |
13a7565f8cc599cc0df37179bce57b67a80fac434334133902a95d82638abad4 | package org.mivotocuenta.server.ws;
import org.mivotocuenta.server.beans.Conteo;
import org.mivotocuenta.server.dao.PMF;
import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.api.server.spi.config.ApiNamespace;
import com.google.api.server.spi.response.Colle... | Java | src/org/mivotocuenta/server/ws/WsGestionConteo.java | jofrantoba/mivotocuenta | gpl-3.0 | 4,826 | 171 | codeparrot/github-code |
6783aed663c34843d2efdcc0dae8a38c265b40cd6db9163f108d53ea6532e20f |
#include "nix-echo.hpp"
//------------------------------------------------------------------------------------
// INITIALISE
nixecho::nixecho()
{
float newFloat = 0;
buffer_left.resize ( 1024*64, newFloat );
buffer_right.resize ( 1024*64, newFloat );
old_in_left = 0;
old_in_right = 0;
for (int x=0; x<buffer_l... | C++ | nix-echo.cpp | shanipribadi/triceratops-lv2 | gpl-3.0 | 2,414 | 120 | codeparrot/github-code |
b68285f8f6990d01fbdae172e12885dd5be25e5481062c0ed8f657c5c42c5923 | <?php
/**
* TrcIMPLAN Sitio Web - SMIIndicadoresTorreon SeguridadLesiones
*
* Copyright (C) 2017 Guillermo Valdés Lozano <guivaloz@movimientolibre.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 Softwa... | PHP | lib/SMIIndicadoresTorreon/SeguridadLesiones.php | TRCIMPLAN/trcimplan.github.io | gpl-3.0 | 5,340 | 127 | codeparrot/github-code |
948b6a72cd552c2ffd18edfec3b141669848a46c4c36608338302e7958d477d0 | if (!Meteor.isClient) {
} else {
// Handles the result of the create user form submission
Template.userForm.events({
"submit #userForm": function (event) {
event.preventDefault();
if ($('#email').val() == "") {
sAlert.error('A faculty email address must be provi... | JavaScript | client/views/users/users.js | gtheilman/OnCallAssignments | gpl-3.0 | 5,442 | 153 | codeparrot/github-code |
8b580e7011646b52c178050aa73039f1cb8897461db594b1b756b10c4ae8d5f5 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.jevis.jeconfig.connectionencoder;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;... | Java | src/main/java/org/jevis/jeconfig/connectionencoder/ConnectionEncoderWindow.java | OpenJEVis/JEConfig | gpl-3.0 | 1,629 | 72 | codeparrot/github-code |
0ecea19cd45c7bedefd6d82aab8830ebe30c795652236e314312d6cac43c1ea9 | /*******************************************************************
Part of the Fritzing project - http://fritzing.org
Copyright (c) 2007-2011 Fachhochschule Potsdam - http://fh-potsdam.de
Fritzing is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as p... | C++ | src/svg/kicadmodule2svg.cpp | logxen/Fritzing | gpl-3.0 | 29,146 | 978 | codeparrot/github-code |
5378636772cfb531659912066bf29e21c33d4431ab4d3805164763bae3049318 | /*
* Author: patiphat mana-u-krid (dew)
* E-Mail: dewtx29@gmail.com
* facebook: https://www.facebook.com/dewddminecraft
*/
package dewddgoldhoe;
import java.util.logging.Logger;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin {
Logger log;
DigEventL... | Java | old/dewdd_goldhoe/src/dewddgoldhoe/Main.java | dewtx29/dewdd_minecraft_plugins | gpl-3.0 | 743 | 34 | codeparrot/github-code |
27b5947b04a8c1eb4036815ece162ba53c42f7fea41836f588e864685d3880ad | /*
* This file is part of switcher.
*
* switcher 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.
*
* switcher is distributed in... | C++ | src/switcher-ctrl.cpp | nicobou/ubuntu-switcher | gpl-3.0 | 14,360 | 389 | codeparrot/github-code |
7ae0099caeb50331b288982235bd328eb259d9cf39a1a0c8b2768a474efdb8ae | /* Target file management for GNU Make.
Copyright (C) 1988-2013 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the Licen... | C | file.c | ldm5180/make-dfsg | gpl-3.0 | 33,805 | 1,254 | codeparrot/github-code |
c458e15e9e602aad211cb5e95a4bfbc38c45dc5c36561d024f80e7ccfc89010f | /*
* Canvace Visual Development Environment, codenamed "Darblast".
* Copyright (C) 2013 Canvace Srl <http://www.canvace.com/>
*
* Dual licensed under the MIT and GPLv3 licenses.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pu... | JavaScript | src/static/Application.js | canvace/darblast | gpl-3.0 | 9,272 | 385 | codeparrot/github-code |
29a28b14b585f81d13f659ed5b8ce1a9b72e603b52384f069ea206726631eee4 | import os
import random
import traceback
from uuid import UUID
from OpenSSL import SSL
from twisted.internet import reactor, ssl, protocol
from twisted.python import log
from icl0ud.push.dispatch import BaseDispatch
from icl0ud.push.parser import APSParser
class MessageProxy(protocol.Protocol, BaseDispatch, object)... | Python | src/icl0ud/push/intercept.py | meeee/pushproxy | gpl-3.0 | 10,079 | 287 | codeparrot/github-code |
26759610a81cb370d14544f34b5743a3d192f281da41ce0b44c4d9b43adc9570 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2019 Manisha Singhal (ATIX 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 version 3 of the License, or
# (at your option) any later ... | Python | plugins/modules/architecture.py | ATIX-AG/foreman-ansible-modules | gpl-3.0 | 3,245 | 123 | codeparrot/github-code |
28701c9939ad92cf98443ead929d47f881da806a4a99ea47dd66c5bb2233e00b | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <getopt.h>
#include <errno.h>
#include <unistd.h>
#include "../rsa.h"
#define RSA_BLOCK_SIZE 8
void crtme(unsigned int *crt,unsigned int p, unsigned int q, unsigned int exp)
{
if(crt == NULL)
return;
crt[0] = p;
crt[1] = q... | C | utils/rsa.c | kd0kfo/picos | gpl-3.0 | 7,940 | 366 | codeparrot/github-code |
e21a5e390d3e92141604c1ce47fc0ceed970087639d3f2ad201fdebd3f1eb997 | /*
* Copyright 2010 mapsfor-*ge.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program i... | Java | src/org/mapsforge/preprocessing/routing/blockedHighwayHierarchies/ClusteringEvaluator.java | biafra23/mapsforge | gpl-3.0 | 7,165 | 195 | codeparrot/github-code |
2e9ab52e2137a1244b2b481361f27bdd889ad67995f26cd22ba04cb9bfe43009 | #!/usr/bin/env python
import socket,sys,gateway_cfg,select,socketserver,http.server,urllib
from threading import *
class WebHandler(http.server.BaseHTTPRequestHandler):
def do_GET(self):
parseParams = urllib.parse.urlparse(self.path)
if parseParams.path=="/t" :
self.send_error(404,"You can't pass!!")
... | Python | gateway/modules.py | fucxy/fucxy-node | gpl-3.0 | 1,672 | 55 | codeparrot/github-code |
d28f5f5023791a57b95ce33975f07fe6cbcb02f17e47d15159ae6843c2b2a396 | package cmsc420.p3;
import cmsc420.exceptions.BadCodeException;
/**
* @author wbhicks
*
* @version
*/
public class Seg implements Comparable {
private Dot theLesserDot, theGreaterDot;
// used in overlapsRect, liesBetween, distance
private java.awt.geom.Line2D.Float asL2DF;
public Seg( Dot tweedleDum, Dot twee... | Java | cmsc420/Hicks_P3/src/java/cmsc420/p3/Seg.java | wbhicks/annotated-configs | gpl-3.0 | 4,147 | 141 | codeparrot/github-code |
fe55da41b05337412e444a3bf06a682decd1a6b72c98aeeaf5d2e24ae4608773 | ////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of ModelBlocks. Copyright 2009, ModelBlocks developers. //
// ... | C++ | resource-incrsem/include/KVec_dense.hpp | modelblocks/modelblocks-release | gpl-3.0 | 4,390 | 97 | codeparrot/github-code |
7caa1864ddabb7c8919b88df7a97e527e8d6dc1e7405d4112aebdf0fa3d8a9d9 | namespace Maticsoft.TaoBao.Request
{
using Maticsoft.TaoBao;
using Maticsoft.TaoBao.Util;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class HotelOrderBookingFeedbackRequest : ITopRequest<HotelOrderBookingFeedbackResponse>
{
private I... | C# | Maticsoft.TaoBao_Source/Maticsoft.TaoBao.Request/HotelOrderBookingFeedbackRequest.cs | 51zhaoshi/myyyyshop | gpl-3.0 | 2,183 | 67 | codeparrot/github-code |
ba27ee61b2dc85a313fc4bb7253133222694d2455332d8908eb091ab831eea74 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | Lua | libs/lua-redis.lua | behrouz-mansoori/faranesh | gpl-3.0 | 35,603 | 1,144 | codeparrot/github-code |
2059f376866ce064a7ab65436b2f4a3f866667e36a68966e417495cb95989c84 | #!/bin/bash
#dir_list1=( FPU_Interface2 FPU_Multiplication_Function CORDIC_Arch2v1 CORDIC_Arch3v1 FPU_Add_Subtr FPU_PIPELINED_FPADDSUB)
#MOD_FILENAME_list=("FPU_Interface2" "FPU_Multiplication_Function")
MOD_FILENAME_list=($1)
precision_list=("SINGLE" "DOUBLE")
multiplicador_lst=("DW_ADDER" "LOA" "ACAIN16Q4" "ETAIIN16... | Shell | ASIC_FLOW/ASIC_fpaddsub_approximate/integracion_fisica/front_end/reports/bash_reporter_ADDCORDIC.sh | GSejas/Dise-o-ASIC-FPGA-FPU | gpl-3.0 | 3,225 | 80 | codeparrot/github-code |
8943fa292e462e1ed76f05940f774308cdfea56a31b8a53071a12201dac3687f | {% include 'template.html' %}
<div class="content">
{% if message %}
<div class="alert alert-warning">
{{ message }}
</div>
{% endif %}
<div class="container-fluid">
<div class="row">
<div class="col-lg-... | HTML | 5. Semester/IIS - Information Systems/app/templates/index.html | Joozty/FIT-VUT | gpl-3.0 | 9,203 | 192 | codeparrot/github-code |
d46183f965fa0e69a08ecab4a5dd7ef5af69258c62e860d924fadc8593775983 | /*****************************************************************************
* Copyright (c) 2014-2018 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU Gener... | C++ | src/openrct2-ui/windows/ViewClipping.cpp | wolfreak99/OpenRCT2 | gpl-3.0 | 16,521 | 458 | codeparrot/github-code |
5560d0e035d0c341bce12a0ac7cbe4f85adcd30f5b1818cc404e2cdd4b5fa65a | /**
* Copyright Copyright 2010-14 Simon Andrews
*
* This file is part of BamQC.
*
* BamQC 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
* (a... | Java | uk/ac/babraham/BamQC/Graphs/LineGraph.java | scptest/scpb | gpl-3.0 | 7,467 | 262 | codeparrot/github-code |
7435135b7b08d0b42d41dd8c0d9e16e791a24de371231e7e5602e6e40f5bf14b | import re, math, itertools
from collections import defaultdict, deque
from sc2reader.events import *
from sc2reader.utils import DepotFile
from sc2reader.factories.plugins.utils import plugin
from pprint import pprint
from xml.dom import minidom
def framestr(frame):
if frame is None:
return 'None'
retu... | Python | sc2parse/plugins.py | dsjoerg/ggpyjobs | gpl-3.0 | 73,851 | 1,703 | codeparrot/github-code |
487a83debbec39a6962f688626b7b64b0ec5b95f203488ad15336b5a9b4613ca | /* jshint ignore:start */
define(['jquery','core/log'], function($, log) {
"use strict"; // jshint ;_;
log.debug('Filter videoeasy initialising');
return {
allopts: {},
extscripts: {},
csslinks: Array(),
jslinks: Array(),
appendjspath: function(jslink, theprefix){
require.config... | JavaScript | filter/videoeasy/amd/src/videoeasy_amd.js | nitro2010/moodle | gpl-3.0 | 2,271 | 91 | codeparrot/github-code |
c540daee9497a0953cff71ad71c03b65f7b3257091b12d85ab9c6543c27dfab8 | /*
This file is part of solidity.
solidity 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.
solidity is distributed in the hope that i... | C++ | libyul/optimiser/KnowledgeBase.cpp | ethereum/solidity | gpl-3.0 | 3,453 | 109 | codeparrot/github-code |
c44bde2709d4eca8a4e409dd171436cdf173a46d191cfa70b3543713b88aff9f | // ==================================================================
// @(#)ASPathSegment.java
//
// @author Bruno Quoitin (bruno.quoitin@uclouvain.be)
// @date 14/02/2004
// $Id: ASPathSegment.java,v 1.3 2009-08-31 09:42:43 bqu Exp $
//
// C-BGP, BGP Routing Solver
// Copyright (C) 2002-2008 Bruno Quoitin
//
// This ... | Java | src/jni/be/ac/ucl/ingi/cbgp/bgp/ASPathSegment.java | lvanbever/cbgp | gpl-3.0 | 3,608 | 119 | codeparrot/github-code |
46d613a0cf5a12ff2f751e81577d6fa149e8ba04e1c37d06823351a9ca341c2c | package at.logic.gapt.prooftool
import ammonite.ops._
import at.logic.gapt.expr.Formula
import at.logic.gapt.formats.latex.LatexExporter
import at.logic.gapt.proofs._
import at.logic.gapt.proofs.lk.{ LKProof, LKToExpansionProof }
import at.logic.gapt.formats.llk.exportLLK
import scala.swing._
/**
* A ProofToolViewe... | Scala | core/src/main/scala/at/logic/gapt/prooftool/SequentProofViewer.scala | gebner/gapt | gpl-3.0 | 7,310 | 202 | codeparrot/github-code |
12adadbf376744b15c5ac217ffdf243045fff8ffcd19975f5a4e448aeccc4df1 | /*! \file
\brief The definition of bobura::model::timetable_info::station_interval_calculator.
Copyright (C) 2007-2019 kaoru
$Id$
*/
#include <algorithm>
#include <cassert>
#include <memory>
#include <vector>
#include <boost/core/noncopyable.hpp>
#include <tetengo2/stdalt.h>
#include ... | C++ | bobura_model/src/bobura.model.timetable_info.station_interval_calculator.cpp | kaorut/bobura | gpl-3.0 | 7,136 | 210 | codeparrot/github-code |
019f1a8371eb375f02f2aa720e5a1d69d5977dd9467fd1290a751e29ad4b74cc | using FloatingGlucose.Classes;
using System;
using System.Linq;
using System.Windows.Forms;
namespace FloatingGlucose
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
... | C# | FloatingGlucose/Program.cs | dabear/FloatingGlucose | gpl-3.0 | 1,044 | 35 | codeparrot/github-code |
e3c8edd42a690adf2c34c1d3f26793ef249586727e3f3350d1f2aaa098ef69ae | /*
* This file is part of the libsigrok project.
*
* Copyright (C) 2018 mhooijboer <marchelh@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, ... | C | src/hardware/siglent-sds/protocol.h | l29ah/libsigrok | gpl-3.0 | 4,687 | 161 | codeparrot/github-code |
22f6aa24c7c6bbe7d1541bc1d65def1eb80a507029d66ee804647ab63f49775f | package net.sf.dz3.device.model.impl;
import java.io.Serializable;
import net.sf.dz3.device.model.ZoneStatus;
public class ZoneStatusImpl implements ZoneStatus, Serializable {
private static final long serialVersionUID = 7691993493568700451L;
public final double setpoint;
public final int dumpPriority;
... | Java | dz3-model/src/main/java/net/sf/dz3/device/model/impl/ZoneStatusImpl.java | marcass/dz-1 | gpl-3.0 | 2,501 | 91 | codeparrot/github-code |
ed31e96786d0cf6f287fd2773988d1d77a51859a3382513ad1d703378f5843d4 | <?php
/**
* This file is part of playSMS.
*
* playSMS 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.
*
* playSMS is distribut... | PHP | storage/application/plugin/feature/report/fn.php | antonraharja/playSMS | gpl-3.0 | 8,292 | 343 | codeparrot/github-code |
2e5d9dafe5c5816b487d0fd95ac12f32f48b46a2021b09493d9f952e7122594b | #region License
/*
Copyright 2014 - 2015 Nikita Bernthaler
SpellBlockManager.cs is part of SFXGraves.
SFXGraves 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 ... | C# | SFXChallenger/SFXGraves/Managers/SpellBlockManager.cs | Lizzaran/LeagueSharp-Standalones | gpl-3.0 | 11,071 | 244 | codeparrot/github-code |
b298e8655fefb41429fda56d11cbcad2b5701a45197edfc68dfe097828d976e9 | package yio.tro.antiyoy.menu.render;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import yio.tro.antiyoy.menu.customizable_list.AbstractCustomListItem;
import yio.tro.antiyoy.menu.customizable_list.SkinListItem;
import yio.tro.antiyoy.stuff.GraphicsYio;
public class RenderSkinListItem extends AbstractRenderCus... | Java | core/src/yio/tro/antiyoy/menu/render/RenderSkinListItem.java | yiotro/Antiyoy | gpl-3.0 | 967 | 36 | codeparrot/github-code |
eb6739beb37d5c41aa37f08bdaafc12569694a776b58beb38bd1e9e07cb1f655 | {% extends "base.html" %}
{% load staticfiles %}
{% block custom_stylesheets %}
<link rel="stylesheet" href="{{ STATIC_URL }}vendor/OpenLayers/theme/default/style.css" type="text/css">
<link rel="stylesheet" href="{{ STATIC_URL }}custom_css/bareditor.css" type="text/css">
{% endblock custom_stylesheets %}
{%... | HTML | ocve/templates/frontend/cfeopageview.html | kcl-ddh/chopin-online | gpl-3.0 | 7,686 | 166 | codeparrot/github-code |
562160214d4d4159d8363a2dff55bd01adfabedf1c231e60ce85c6def6d6e60f | /*
Copyright (C) 2011 Leo Franchi <lfranchi@kde.org>
Copyright (C) 2011 Jeff Mitchell <jeff@tomahawk-player.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either versi... | C++ | src/libtomahawk/widgets/RecentlyPlayedPlaylistsModel.cpp | neycho/tomahawk | gpl-3.0 | 7,922 | 255 | codeparrot/github-code |
50d9446272b17e55711d32c68ca43ac09f9d0618defdb282067d28fcf5634114 |
var CMD_TEXT = "text";
var CMD_PING = "myping";
var CMD_PING_RETURN = "mypong";
var CMD_NOTICE = "notice";
var CMD_PROCESS = "process";
var CMD_PROCESS_RESULT = "process_result";
var CMD_ANNOUNCE_CHANNEL = "announce_channel";
var CMD_USER_ALL = "";
var CMD_CHANNEL_ALL = "";
var CMD_CHANNEL_CURRENT = "<cu... | JavaScript | src/client/comic/client.js | MarquisdeGeek/comic | gpl-3.0 | 5,389 | 218 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.