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 |
|---|---|---|---|---|---|---|---|---|
964a671cbfad2dc858ced0cde51a96a07352ef09bdd495ed2944b2bbfb75d988 | /*
* Copyright (c) 2010-2012 Matthias Klass, Johannes Leimer,
* Rico Lieback, Sebastian Gabriel, Lothar Gesslein,
* Alexander Rampp, Kai Weidner
*
* This file is part of the Physalix Enrollment System
*
* Foobar is free software: you can redistribute it and/or modify
* it under the t... | Java | Common/src/main/java/hsa/awp/common/model/TemplateType.java | physalix-enrollment/physalix | gpl-3.0 | 1,347 | 45 | codeparrot/github-code |
ffafcab397d118b86658bad70d6fe65b8e87d95d0c089eab4bf376f0e1dba8a1 | package cn.eoe.app.https;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.HttpVersion;
import org.apache.http.Na... | Java | source/src/cn/eoe/app/https/CustomHttpClient.java | WallaceLiu/yf-app | gpl-3.0 | 6,256 | 186 | codeparrot/github-code |
744a538530e2d55be165b425e07167844d03332879a5eb0f318e5ee499b00c15 | class User < ActiveRecord::Base
class ClearanceError < StandardError; end
class SuicideError < StandardError; end
class DecapitateError < StandardError; end
ERROR = {
:clearance => "Not enough clearance to perform this operation.",
:decapitate => "You are the only one administrator. Choose a heir... | Ruby | app/models/user.rb | txemagon/Q | gpl-3.0 | 2,284 | 81 | codeparrot/github-code |
f9acfaf775952ecfe90555c1b31789f4751a35d69ed92d4c7b1ae6d79189967e | /*
0-Software. Implements singly linked lists
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "slist.h"
#ifdef TESTX
#include <CUnit/Cunit.h>
#include <CUnit/Basic.h>
#endif
/* Initializes a structrue of type slist
Return: A valid pointer to a slist structure or NULL on failure */
struct ... | C | sl_list.c | forflo/libkact | gpl-3.0 | 8,075 | 341 | codeparrot/github-code |
39b4ff4bf3d6a98afa093d745526c0ffb1526f67c58bfa8188354aa3386e386b | Meteor.methods({
'deviceId/isClaimed': function(deviceId) {
check(deviceId, String);
return isClaimed(deviceId)
},
'deviceId/gen': function() {
return gen();
},
'deviceId/store': function(deviceId) {
check(deviceId, String);
return store(deviceId);
},
});
var isClaimed = function(devi... | JavaScript | device-id-server.js | marvinmarnold/meteor-cordova-device-id | gpl-3.0 | 767 | 41 | codeparrot/github-code |
598156be03fcba932e27866ad8be19e362a4f0dca2b324f2d069b04eb175f876 | <?php
require '../app_code/cmncde/connect_pg.php';
//var_dump($_POST);
set_time_limit(3000);
$sendIndvdl = isset($_POST['sendIndvdl']) ? cleanInputData($_POST['sendIndvdl']) : TRUE;
$msgTyp = isset($_POST['msgTypeCombo']) ? cleanInputData($_POST['msgTypeCombo']) : 'Email';
$toAddresses = isset($_POST['toAddresses']) ?... | PHP | xchange/mailer/sendSMS.php | rhomicom-systems-tech-gh/Rhomicom-ERP-Web | gpl-3.0 | 2,976 | 77 | codeparrot/github-code |
4f2f374d16c193cd95c5956b9bf3d40a61af7a24a47aefa669028677f19a0fc2 | /*
* This file is part of the Colobot: Gold Edition source code
* Copyright (C) 2001-2015, Daniel Roux, EPSITEC SA & TerranovaTeam
* http://epsitec.ch; http://colobot.info; http://github.com/colobot
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Pu... | C | src/object/auto/autotower.h | edyp87/colobot | gpl-3.0 | 2,288 | 76 | codeparrot/github-code |
bb7e56bb31006c71f9e9e46daa00f955c1bff70e3fbdfff9bc5a9398cba6c970 | var direccion = '/api/Usuarios/' + sessionStorage.userId + '?access_token=' + sessionStorage.userToken;
var nombre;
/* Eliminar los valores de sesión */
function eliminarStorage(){
sessionStorage.removeItem("userToken");
sessionStorage.removeItem("userId");
sessionStorage.removeItem("userTtl");
sessionStorage.rem... | JavaScript | client/js/usuario.js | Salva79/ProyectoViaje | gpl-3.0 | 2,435 | 70 | codeparrot/github-code |
f0daad14e73cc4d36aeddbe3036687a29e3e2cebce9603db4b434ebe2ec08beb | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
table.head, table.foot { width: 100%; }
td.head-rtitle, td.foot-os { text-align: right; }
td.head-vol { text-align: center; }
table.foot td { width: 50%; }
table.head td { width: 33%; }
div.spacer { margin: 1em 0; }
</style>
<title>
TOOLCHAIN-FUNCS.ECLASS(5)... | HTML | man/toolchain-funcs.eclass.5.html | fusion809/fusion809.github.io-old | gpl-3.0 | 10,346 | 374 | codeparrot/github-code |
71ad62ffd2b865cb408ab6e817147c2ebbdce6e337ae9147d2f966e137150e5b | <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Controller that gets called by the 'cli.php' entry script
*
*
*
* @author Claus Beerta <claus@beerta.de>
*/
class Cli extends Controller
{
/**
* Cron Updater updates the EveApi XML Caches for all characters found in the Da... | PHP | application/controllers/cli.php | CBeerta/EveTool | gpl-3.0 | 1,374 | 55 | codeparrot/github-code |
c5a0727153928fe3864d1783e99b0821e29a2b5d41003ed5c70da87abaa162cd | /*
base64encode.c - modified by David Lazar
Originally:
cencoder.c - c source to a base64 encoding algorithm implementation
This is part of the libb64 project, and has been placed in the public domain.
For details, see http://sourceforge.net/projects/libb64
*/
#include <stddef.h>
#include <stdint.h>
#include "base64... | C | certifificate/base64encode.c | lzhouAlan/ccode_test | gpl-3.0 | 2,969 | 105 | codeparrot/github-code |
1dabc80aa95b62c49d5dd6fdd26166f1b16c1bce07b70f1c59f0992f841e7dbc | /*****************************************************************************
Super-Fast MWC1616 Pseudo-Random Number Generator
for Intel/AMD Processors (using SSE or SSE4 instruction set)
Copyright (c) 2012, Ivan Dimkovic
All rights reserved.
Redistribution and use in source and binary forms, with or without... | C | Solver2048/FastRand.h | mmiermans/solver2048 | gpl-3.0 | 5,311 | 168 | codeparrot/github-code |
82292a6958bc42825c36914b221f3c535cca5adc81b132fca6fec3e0b2a6783e | <?php
namespace SMW\SQLStore\QueryEngine\DescriptionInterpreters;
use SMW\Query\Language\Description;
use SMW\Query\Language\NamespaceDescription;
use SMW\SQLStore\QueryEngine\DescriptionInterpreter;
use SMW\SQLStore\QueryEngine\QuerySegment;
use SMW\SQLStore\QueryEngine\QuerySegmentListBuilder;
use SMWSql3SmwIds;
/... | PHP | wiki/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/DescriptionInterpreters/NamespaceDescriptionInterpreter.php | kylethayer/bioladder | gpl-3.0 | 1,640 | 67 | codeparrot/github-code |
9132ba1301db2de3091e2f3c40879074fc593b7f6ab408e13d1e297ea728d0bf | /*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2012-2021 Robert Beckebans
Copyright (C) 2014-2016 Kot in Action Creative Artel
This file is part of the Doom 3 BFG Edition ... | C | neo/renderer/RenderCommon.h | coldtobi/RBDOOM-3-BFG | gpl-3.0 | 65,438 | 1,765 | codeparrot/github-code |
664f232784d4ea8b2499408cf0e1c869ad015e3977863fa84f9acc17a31bd159 | /*
(c) winniehell (2012)
This file is part of the game Battle Beavers.
Battle Beavers 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 ... | Java | app/src/de/winniehell/battlebeavers/storage/WayPointDeserializer.java | winniehell-wasteland/beavers | gpl-3.0 | 2,546 | 83 | codeparrot/github-code |
19aa76b433e8e1081704795396aa2ccf8b84719c0651654896f883db4869396d | #ifndef XENCHAR_BUF_HEADER
#define XENCHAR_BUF_HEADER
#include <cstddef>
#include <algorithm>
#define CHARBUF_DEF_CAP 100
//utility class for reading chars from code or lines of input
class CharBuf
{
private:
char* _buf;
size_t _cap;
size_t _len;
void reSize();
public:
CharBuf();
~CharBuf()
{
delete[] _buf... | C | include/CharBuf.h | jweinst1/Xenon | gpl-3.0 | 620 | 53 | codeparrot/github-code |
7f35496611f9f4f5a78629f65664db321f551f806d75070538155db9bfcdde4c | <?php
namespace si_classes;
class BackupDb {
private $output;
private $pdoDb;
public function __construct() {
$this->output = "";
global $environment;
$this->pdoDb = new PdoDb(new DbInfo(CONFIG_FILE_PATH, $environment, "database"));
}
public function start_backup($filenam... | PHP | si_classes/BackupDb.php | fearless359/simpleinvoices_zend2 | gpl-3.0 | 1,725 | 59 | codeparrot/github-code |
fa411b85f18f8ba2dcc5b9369be53f02a875dc6c102a38ee0d15b793849469f1 | /*
* Add a new ingredient form to the bottom of the formset
*/
function add_ingredient() {
// Find the empty form
var empty_form = $("#uses-formset .ingredient.empty-form");
// Clone it and remove the unneeded classes to get a new form
var new_form = empty_form.clone();
new_form.removeClass('empty-form');
new... | JavaScript | Seasoning/recipes/static/js/edit_recipe_ingredients.js | Gargamel1989/Seasoning-old | gpl-3.0 | 5,602 | 167 | codeparrot/github-code |
17c6a736c9c102e2c0eaafb49e3246eb6f62e7ba3eb6ae1600b8d90a67eaf32e | /*
* Copyright (c) 2016-2017, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* n... | C | Firmware/Mobile-and-Ground_Communication/V_1.0/Mobile-node_code/rfListenBeforeTalk_CC1310_LAUNCHXL_tirtos_ccs/rfListenBeforeTalk.c | jakapoor/AMRUPT | gpl-3.0 | 6,540 | 202 | codeparrot/github-code |
cddcfe11c1c3e0812ee8f6862e3e0306bf21d6fcd629bfed0f88ce9a5f864287 | using Chronos.Client.Win.Java.BasicProfiler.Properties;
using Chronos.Client.Win.Menu.Specialized;
using Chronos.Client.Win.Models;
using Chronos.Client.Win.Models.Java.BasicProfiler;
using Chronos.Client.Win.ViewModels.Profiling;
using Chronos.Java.BasicProfiler;
namespace Chronos.Client.Win.Menu.Java.BasicProfiler
... | C# | source/Chronos.Client.Win.Java.BasicProfiler/Chronos.Client.Win.Java.BasicProfiler/Menu/AssembliesMenuItem.cs | AndreiFedarets/chronosprofiler | gpl-3.0 | 1,012 | 32 | codeparrot/github-code |
4047878615dd1701609c985f5f2736f0f36ac5b8617280270a2229bdc15dd47d | /*
* Copyright appNativa Inc. All Rights Reserved.
*
* This file is part of the Real-time Application Rendering Engine (RARE).
*
* RARE 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 o... | Java | source/rare/core/com/appnativa/rare/converters/NumberContext.java | appnativa/rare | gpl-3.0 | 2,395 | 99 | codeparrot/github-code |
401f9f1c2695804e31eef0498f207683c3ebdfbbadfb0d7595173a6d39c7d4a1 | #region Copyright Notice
/*
* gitter - VCS repository management tool
* Copyright (C) 2013 Popovskiy Maxim Vladimirovitch <amgine.gitter@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 S... | C# | gitter.ui.prj/Controls/ListBoxes/LocalRepositoriesListBox.cs | amgine/gitter | gpl-3.0 | 2,466 | 88 | codeparrot/github-code |
ef38b69ce601a89463d04d7446fb3067d6c1f8f75fbc63d057ddc4a2e4b0122f | package the.bytecode.club.bytecodeviewer.util;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.regex.Pattern;
/***************************************************************************
* Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suit... | Java | src/main/java/the/bytecode/club/bytecodeviewer/util/MethodParser.java | Konloch/bytecode-viewer | gpl-3.0 | 5,935 | 168 | codeparrot/github-code |
d36336eac9ebccece65b8904ae0bc6287ee51068ee492c643c313b01c3d4af65 | #ifndef UIVISIBILITYBASE_HPP
#define UIVISIBILITYBASE_HPP
/*
This file is part of AlgAudio.
AlgAudio, Copyright (C) 2015 CeTA - Audiovisual Technology Center
AlgAudio 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 F... | C++ | libalgaudio/include/UI/UIVisibilityBase.hpp | rafalcieslak/algAudio | gpl-3.0 | 2,105 | 56 | codeparrot/github-code |
f28c99d118e9438e19e10dc9bcf0cfb20550944080aad751efce88e2328ce6c9 | intelli = {
/**
* Name of the current page
*/
pageName: '',
securityTokenKey: '__st',
lang: {},
/**
* Check if value exists in array
*
* @param {Array} val value to be checked
* @param {String} arr array
*
* @return {Boolean}
*/
inArray: function... | JavaScript | js/intelli/intelli.js | intelliants/subrion | gpl-3.0 | 24,710 | 543 | codeparrot/github-code |
69a8018948c15f4a7d6298e9d760eca1abf9129243a3a37362fe9c3c8884fc8d | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package builtin.matcher;
import builtin.BuiltinSub;
import gui.Constants;
import gui.MintException;
import gui.Pointer;
import gui.PointerTools;
import gui.SmartList;
/**
* @author Oliver Chu
*/
public class Matches ... | Java | builtin/matcher/Matches.java | Carrotlord/MintChime-Editor | gpl-3.0 | 9,689 | 230 | codeparrot/github-code |
63ca67bb044ce2b1a436eb0345f023dcfd0891a653bfe949d09090b2c2268b06 | /**
* Copyright (C) 2001-2016 by RapidMiner and the contributors
*
* Complete list of developers available at our web site:
*
* http://rapidminer.com
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License as published by the... | Java | rapidMiner/rapidminer-studio-core/src/main/java/com/rapidminer/example/set/Partition.java | transwarpio/rapidminer | gpl-3.0 | 8,599 | 290 | codeparrot/github-code |
0f2fec5bddbdfb9893c2807b4016d0144987256e092113bb0297c2cff3cd22f0 | ##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
# Exploit mixins should be called first
include Msf::Exploit::Remote::SMB::Client::Psexec
include Msf::Auxiliary::Report
... | Ruby | modules/auxiliary/scanner/smb/psexec_loggedin_users.rb | cSploit/android.MSF | gpl-3.0 | 8,147 | 216 | codeparrot/github-code |
b29705cf502f975feaaa25dc7588f939bde38f0bb9cec6e2e75eab5985cb57fe | <?php
// added in v4.0.5
use Facebook\FacebookHttpable;
use Facebook\FacebookCurl;
use Facebook\FacebookCurlHttpClient;
// added in v4.0.0
use Facebook\FacebookSession;
use Facebook\FacebookRedirectLoginHelper;
use Facebook\FacebookRequest;
use Facebook\FacebookResponse;
use Facebook\FacebookSDKException;
use Facebo... | PHP | app/controllers/LoginController.php | Puskice/PuskiceCMS | gpl-3.0 | 37,887 | 823 | codeparrot/github-code |
969e156abc0b1af43a05008984eb83ec119a437021a339aa62d2ce3e7ce972c6 | /*
* Copyright (C) 2017 The "MysteriumNetwork/node" Authors.
*
* 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.
*
... | GO | cmd/commands/cli/command.go | MysteriumNetwork/node | gpl-3.0 | 15,922 | 665 | codeparrot/github-code |
9438d42f4625e700f593d6bfd049d33111df1dccec1a86ceee96c2c8757a23ef | import tensorflow as tf
import matplotlib.pyplot as plt
import math
x_node = tf.random_uniform([1], minval=-1, maxval=1, dtype=tf.float32,
name='x_node')
y_node = tf.random_uniform([1], minval=-1, maxval=1, dtype=tf.float32,
name='y_node')
times = 5000
hits = 0
pis = []
with tf.Session() as sessio... | Python | tensorflow/calculate_pi_old.py | thiswind/nn_practice | gpl-3.0 | 581 | 32 | codeparrot/github-code |
24844130924e0705b1b06b37339eb35011e6468d4f9e0a2f06d05f0f1c5c5f8d | import { Component } from "@angular/core";
import { Router } from "@angular/router";
import { Order } from "classes-common/order";
import { AccountService } from "services/account.service";
import { promiseError } from "utils/utils";
@Component({
moduleId: module.id,
templateUrl: "trade.component.html",
})
expo... | TypeScript | web/site/trade/trade.component.ts | Jygsaw/ticker-tech | gpl-3.0 | 847 | 37 | codeparrot/github-code |
8e3ecd685b4c3f6467a59c2653639004c81fe0969930f28362a9e141f6344b36 | package com.idega.data;
import java.util.Vector;
import java.util.List;
import java.util.Iterator;
import java.util.Collection;
/**
* Title: idega Data Objects
* Description: Idega Data Objects is a Framework for Object/Relational mapping and seamless integration between datastores
* Copyright: Copyrigh... | Java | src/com/idega/data/IDODependencyList.java | idega/platform2 | gpl-3.0 | 6,476 | 222 | codeparrot/github-code |
3390754ca4dcb00ff3d3447cb3560bdb009dd7ce18f7e22e465d28ea2ab4d9eb | /*
* Copyright (C) 2010 Brockmann Consult GmbH (info@brockmann-consult.de)
*
* 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 late... | Java | snap-ui/src/main/java/org/esa/snap/ui/crs/PredefinedCrsPanel.java | senbox-org/snap-desktop | gpl-3.0 | 7,335 | 198 | codeparrot/github-code |
e871f5df12342b7816505d470226d1f738e6650a67cc3cab5ae55ab0d263afb7 | /*
* ams-iaq-core.c - Support for AMS iAQ-Core VOC sensors
*
* Copyright (C) 2015 Matt Ranostay <mranostay@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 2 of... | C | drivers/iio/chemical/ams-iaq-core.c | williamfdevine/PrettyLinux | gpl-3.0 | 4,887 | 225 | codeparrot/github-code |
34bbf4ca72adc52ef7f707b4e18dfa937f6f41d1042b8769073419d48619b6f0 | # .oooooooo .oooo. oooooooo .ooooo. .ooooo.
# 888' `88b `P )88b d'""7d8P d88' `88b d88' `88b
# 888 888 .oP"888 .d8P' 888ooo888 888ooo888
# `88bod8P' d8( 888 .d8P' .P 888 .o 888 .o
# `8oooooo. `Y888""8o d8888888P `Y8bod8P' `Y8bod8P'
# d" YD
# "Y88888P'
#
# config class - btx
#
i... | Python | gazee/config.py | btxgit/gazee | gpl-3.0 | 9,088 | 265 | codeparrot/github-code |
0e45cd9c02091b9bfcc03299a62eae3050f8949344547bfaf8baf41effc8776a | /*
* Author: Bob Limnor (info@limnor.com)
* Project: Limnor Studio
* Item: Visual Programming Language Implement
* License: GNU General Public License v3.0
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace LimnorDesigner.Web
{
public class HtmlElement_pre : HtmlEl... | C# | Source/LimnorDesigner/Web/HtmlElement_pre.cs | Limnor/Limnor-Studio-Source-Code | gpl-3.0 | 597 | 31 | codeparrot/github-code |
8b7d7a0a462dbf299519d94eef0cd46f044aac2b2cb2651c33f23ab47ff250c9 | /*******************************************************************************
* Copyright 2008(c) The OBiBa Consortium. All rights reserved.
*
* This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0.
*
* You should have received a copy of the GNU Genera... | Java | opal-core/src/test/java/org/obiba/opal/core/magma/IdentifiersMappingViewTest.java | apruden/opal | gpl-3.0 | 7,620 | 205 | codeparrot/github-code |
554f37d98a2f4942b8af1bca1f00bd449af8698de54c5d8a28d058c68b05cb1d | <?php
/**
* User: ed8
* Date: 7/27/14
*/
class Shell {
/**
* Execute a shell command and capture its output
* @param null $_ shell command
* @param bool $debug
* @return mixed
*/
public static function execute($_ = null, $debug=true) {
$_ = "( TERM=screen-256color $_ )";
... | PHP | application/libraries/Shell.php | edouard-lopez/mast-web | gpl-3.0 | 1,311 | 54 | codeparrot/github-code |
da743f3562f52e19e16409f92c9d9ba0f5ca3dbaf996de3e6f6639f66cf529e6 | <?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2015 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Databox;
use Alchemy\Phrasea\Application;
use Symfony\Component\HttpKernel\Exception\No... | PHP | lib/Alchemy/Phrasea/Databox/DataboxFactory.php | mdarse/Phraseanet | gpl-3.0 | 1,190 | 52 | codeparrot/github-code |
652359e110cd08edbfdfb5ac4d41d7a6e4de6141324eee8550c3e28e55bf1f86 | package com.chandilsachin.diettracker.io;
import android.app.Activity;
import android.content.Context;
import android.graphics.Typeface;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Iterator;
public final class FontsOverride
{
public static void populateFonts(Activity activity, Has... | Java | app/src/main/java/com/chandilsachin/diettracker/io/FontsOverride.java | chandilsachin/DietTracker | gpl-3.0 | 1,560 | 53 | codeparrot/github-code |
0bc11e4c277a6600704843ad3cd8eeef07bff9dbee29161d96eda22f7ca1fa56 | # Copyright (C) 2011-2015 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file
from __future__ import absolute_import
import re
import abc
class AddressbookError(Exception):
pass
class AddressBook(object):... | Python | alot/addressbook/__init__.py | geier/alot | gpl-3.0 | 1,232 | 42 | codeparrot/github-code |
447d9578b8d463ed3d1d5647da280d3c83c5a8b717fae4aba5cbb8937867fc70 | import numpy as np
from scipy.signal import medfilt
import manager.operations.method as method
from manager.operations.methodsteps.confirmation import Confirmation
from manager.exceptions import VoltPyNotAllowed
class MedianFilter(method.ProcessingMethod):
can_be_applied = True
_steps = [
{
... | Python | manager/operations/methods/MedianFilter.py | efce/voltPy | gpl-3.0 | 1,485 | 45 | codeparrot/github-code |
590efe7cd927a58fcbee5e5a4a30cd66796d8ff401fef05fde807cfde6febae5 | 'use strict';
const { expect } = require('chai');
const kadence = require('..');
const network = require('./fixtures/node-generator');
const trust = require('../lib/plugin-trust');
const sinon = require('sinon');
const async = require('async');
describe('@module kadence/trust + @class UDPTransport', function() {
... | JavaScript | test/plugin-trust.e2e.js | gordonwritescode/kad | gpl-3.0 | 3,986 | 156 | codeparrot/github-code |
bdefedc6dccd37e789f93c90aee9cf99e4a2e91ff52e4ac7511dea3e5071220f | (function (tree) {
tree.mixin = {};
tree.mixin.Call = function (elements, args, index) {
this.selector = new(tree.Selector)(elements);
this.arguments = args;
this.index = index;
};
tree.mixin.Call.prototype = {
eval: function (env) {
var mixins, rules = [], match = false;
for (var i = ... | JavaScript | support/connect/support/less/lib/less/tree/mixin.js | tfe/cloud9 | gpl-3.0 | 3,761 | 100 | codeparrot/github-code |
20258b0efcaf6019f74058d365dc0ec3aff39b924536ab6c2278cd6ee1b1ac39 | package me.killje.servercaster.core.converter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import me.killje.servercaster.core.ServerCaster;
import mkremins.fanciful.FancyMessage;
import org.bukkit.entity.Player;
/**
*
* @au... | Java | core/src/main/java/me/killje/servercaster/core/converter/CodeConverter.java | killje/ServerCasterOld | gpl-3.0 | 2,978 | 98 | codeparrot/github-code |
24e0dc32b14bce8dfaf0792d9112b4e3dceb1c0805ab8e5e64b945b2e42e479a | package mcia.building.viewer.controller;
import mcia.building.viewer.domain.Point;
import mcia.building.viewer.metrics.MetricsRepository;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.... | Java | backend/src/test/java/mcia/building/viewer/controller/MetricsControllerTest.java | enric-sinh/building-viewer | gpl-3.0 | 2,292 | 74 | codeparrot/github-code |
a8b8e88058f6004f0378ff6a3afe5ae00c807fc38a16dd3a4fd73a60e68526c0 | #include "fracture_configurator_factory.h"
#include "regional_uniform_fracture_configurator.h"
#include "settings.h"
#include "uniform_fracture_configurator.h"
#include <TensorVariable.h>
#include <string>
using namespace std;
namespace csmp {
namespace tperm {
FractureConfiguratorFactory::FractureConfiguratorFactor... | C++ | configurator/src/fracture_configurator_factory.cpp | plang85/tensor_permeability | gpl-3.0 | 2,203 | 60 | codeparrot/github-code |
1c69d7ed0e2efbac7f04d6333ebe361552ab69ac5035133fff8f96ece2255dac | /* Copyright (C) 2016, 2017 PISM Authors
*
* This file is part of PISM.
*
* PISM is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 3 of the License, or (at your option) any later
* version.... | C++ | src/coupler/ocean/Initialization.cc | talbrecht/pism_pik | gpl-3.0 | 6,460 | 163 | codeparrot/github-code |
28f7a28d6c2836b115319490da5c9f292e3dc0a089a8b11046671a3b13c700cd | /*
* This file is part of Log4Jdbc.
*
* Log4Jdbc 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.
*
* Log4Jdbc is distributed in... | Java | core/log4jdbc-impl/src/main/java/fr/ms/log4jdbc/lang/reflect/TraceTimeInvocationHandler.java | marcosemiao/log4jdbc | gpl-3.0 | 3,606 | 117 | codeparrot/github-code |
2ef0e1e3afcc7411ef2e695a92685b37e838c92216a53b44e115ff29d1247f8c | /*
* This file is part of the L2J Mobius project.
*
* 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 p... | Java | game/data/scripts/quests/Q00700_CursedLife/Q00700_CursedLife.java | karolusw/l2j | gpl-3.0 | 6,753 | 270 | codeparrot/github-code |
0d6bf22723c9bce779a604b080c924bc68c79bf5a516f4079534d07162e290fc | package com.libertacao.libertacao.manager;
import android.support.annotation.Nullable;
import com.libertacao.libertacao.persistence.UserPreferences;
import com.parse.ParseFacebookUtils;
import com.parse.ParseUser;
public class LoginManager {
private static final LoginManager ourInstance = new LoginManager();
... | Java | app/src/main/java/com/libertacao/libertacao/manager/LoginManager.java | LibertACAO/libertacao-android | gpl-3.0 | 1,546 | 62 | codeparrot/github-code |
08fba63b516900d70cd813567bf477d16109aedc027effe4a8572f8074cc66e9 | /* ide.h */
/*
Copyright (C) 2011 John R. Coffman.
Licensed for hobbyist use on the N8VEM baby M68k CPU board.
***********************************************************************
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as... | C | ide.h | willsowerbutts/kiss-bios | gpl-3.0 | 8,745 | 301 | codeparrot/github-code |
4ef648ccf0920b72987ce0c7d043b4187471f581faac56c78de11e4cc3c19df1 | /*
* Copyright (C) 2013 Canonical, Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY... | C++ | plugins/LightDM/IntegratedLightDM/liblightdm/GreeterPrivate.cpp | yunit-io/yunit | gpl-3.0 | 9,466 | 310 | codeparrot/github-code |
5f5861b8ddc1f68e4a1bef7901496ae2b88c8cbba039dbaedaffc558b5bf178f | // Copyright (C) 2006,2007,2008,2009, George Hobbs, Russell Edwards
/*
* This file is part of TEMPO2.
*
* TEMPO2 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... | C++ | plugin/findCWs_plug.C | zhuww/tempo2 | gpl-3.0 | 15,178 | 403 | codeparrot/github-code |
a7040acb179249cf454d5e2c54e4be8e1b81521475670629301faab84de8f40e | local FOODS, MAX_FOOD = {
[2328] = {84, "Gulp."}, [2362] = {48, "Yum."}, [2666] = {180, "Munch."}, [2667] = {144, "Munch."},
[2668] = {120, "Mmmm."}, [2669] = {204, "Munch."}, [2670] = {48, "Gulp."}, [2671] = {360, "Chomp."},
[2672] = {720, "Chomp."}, [2673] = {60, "Yum."}, [2674] = {72, "Yum."}, [2675] = {156, "Yu... | Lua | data/actions/scripts/foods/food.lua | Giorox/AngelionOT-Repo | gpl-3.0 | 2,996 | 56 | codeparrot/github-code |
f7d608af1a0f99171b82886d5655b31ee767b92c5a35265c1ce48fedd5e01097 | package ontology.effects.unary;
import core.VGDLSprite;
import core.content.InteractionContent;
import core.game.Game;
import ontology.Types;
import ontology.effects.Effect;
import tools.Direction;
import tools.Utils;
import tools.Vector2d;
/**
* Created with IntelliJ IDEA.
* User: Diego
* Date: 03/12/13
* Time: ... | Java | UE06/gvgai/src/ontology/effects/unary/FlipDirection.java | tohahn/UE_ML | gpl-3.0 | 786 | 33 | codeparrot/github-code |
0d027a0081cc7e27d80a0a01cb98a7dd73c0129754f75cb75f1f0a2922e0ad5a | /*
fuzzylite (R), a fuzzy logic control library in C++.
Copyright (C) 2010-2017 FuzzyLite Limited. All rights reserved.
Author: Juan Rada-Vilela, Ph.D. <jcrada@fuzzylite.com>
This file is part of fuzzylite.
fuzzylite is free software: you can redistribute it and/or modify it under
the terms of the FuzzyLite Lic... | C++ | fuzzylite/src/hedge/HedgeFunction.cpp | fuzzylite/fuzzylite | gpl-3.0 | 1,724 | 64 | codeparrot/github-code |
c219db903a706214ce8b5bbfc39a3cd127ac22aca6b03c8e83722a249c9898f9 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | C++ | src/finiteVolume/fvMesh/extendedStencil/cellToCell/fullStencils/CFCCellToCellStencil.C | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | gpl-3.0 | 4,942 | 159 | codeparrot/github-code |
f8700416296e4b5af209b55a14ca9fdf39f50dd3ccde856a1217655ec74c8039 | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Simon Hausmann <hausmann@kde.org>
* Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
* (C) 2006 Graham Dennis (graham.dennis@gmail.com)
*
* This... | C++ | WebKit/Source/WebCore/html/HTMLAnchorElement.cpp | cs-au-dk/Artemis | gpl-3.0 | 19,891 | 650 | codeparrot/github-code |
dc07b8a6db7ff96b01c8a659dd750eb80807b274a9cc34104d5f4f2acc4abc67 | /* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2015 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
*
* RetroArch 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 Found-
* ati... | C | input/drivers_joypad/udev_joypad.c | xerpi/RetroArch | gpl-3.0 | 16,864 | 657 | codeparrot/github-code |
8e1cea1cccc874c74cb20fa9fc5511b57981eb93c9e42ba13ac0f28f952af363 | /*
* This file is part of Cleanflight.
*
* Cleanflight 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.
*
* Cleanflight is distr... | C | src/main/drivers/barometer/barometer_bmp280.c | flounderscore/inav | gpl-3.0 | 6,662 | 213 | codeparrot/github-code |
4917912351211366f695208b4cc92e573a9fe42155521ef010c2c8086839e0d7 | // ******************************************************************************
//
// Filename: progressbar.cpp
// Project: Vox
// Author: Steven Ball
//
// Purpose:
// A progress bar component to show visual feedback of progress.
//
// Revision History:
// Initial Revision - 13/07/08
//
// Copyright (c) 200... | C++ | source/gui/progressbar.cpp | AlwaysGeeky/Vox | gpl-3.0 | 8,973 | 310 | codeparrot/github-code |
de4b9e3d8a829219beadf68d77713f4e4da7e7f43000d3c7aa372c8010dfdca1 | /* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
* Copyright 2010-2011, Jeff Mitchell <jeff@tomahawk-player.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the te... | C++ | src/accounts/twitter/TwitterConfigWidget.cpp | mguentner/tomahawk | gpl-3.0 | 12,128 | 295 | codeparrot/github-code |
b8f5d40a7ad091a3b09330e1e9dff7585b443380a57947180d56decd16445764 | /**
* || ____ _ __
* +------+ / __ )(_) /_______________ _____ ___
* | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
* +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
* || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
*
* Crazyflie 2.0 NRF Firmware
* Copyright (c) 2014, Bitcraze ... | C | src/slave/esb.c | DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware | gpl-3.0 | 11,033 | 463 | codeparrot/github-code |
a0695f78130c97dfe66c3bf737642c4ae08789a386ac1f63c9d16334bd31a618 | /**
*
*/
package topology.graphParsers.common;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
/**
* @author Omer Zohar
* This class returns names of files with given extention for a given directory
*/
public class FileLister {
private String m_sfilepath=null;
... | Java | src/topology/graphParsers/common/FileLister.java | puzis/kpp | gpl-3.0 | 1,357 | 64 | codeparrot/github-code |
a5cf40ec7314feac81875fb35604d065f2cf506c791a7e17f97b061a84717627 | // SESSION : 2016-17
// LAB : PROGRAMMING TOOLS - II
// ASSIGNMENT : #6
// PROBLEM : #3
// CODE : -
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <signal.h>
int status;
void sig_handler(int sig)
{
printf("This is the CUSTOM signal handler\n");
if ( WIFEXIT... | C | 6ASSIGN/3p_assgn6.c | 1c3b3r6/PROG_TOOLS2 | gpl-3.0 | 1,156 | 58 | codeparrot/github-code |
a1db8e449bac7473525c9749889b8565fa34aa2989b820dd625766206f73a8c7 | /*
Red Black Trees
(C) 1999 Andrea Arcangeli <andrea@suse.de>
(C) 2002 David Woodhouse <dwmw2@infradead.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 2 of the Li... | C | base/rbtree.c | xiao0613cn/AModule | gpl-3.0 | 8,920 | 401 | codeparrot/github-code |
cebf9f75a8bb20242bc5447630781ffbfbd74b92ec74681f11eb54613dd5dba4 | #! /usr/bin/env python3
from bollinger import bands, plot, strategies
import argparse
parser = argparse.ArgumentParser(description="plots bollinger bands or suggests investments", epilog="example: bolly.py plot AMZN FB")
parser.add_argument("action", metavar="ACTION", choices=["plot", "suggest"], help="either plot o... | Python | python/bolly.py | juantascon/bollinger-bands | gpl-3.0 | 1,507 | 40 | codeparrot/github-code |
d3d4c2fd53b7cad18a77aa7be22aa9b81624e8384b04db04f4af19b54c9a4a76 | /*
* Copyright 2012 Aarhus University
*
* Licensed under the GNU General Public License, Version 3 (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.gnu.org/licenses/gpl-3.0.html
*
* Unless required by applicabl... | C++ | artemis-code/src/artemisapplication.cpp | cs-au-dk/Artemis | gpl-3.0 | 2,205 | 76 | codeparrot/github-code |
df24be3722872154763e6e842c0c5dc6b3301a2d035de49c6f3a6ae34b9cadf4 | /****************************************************************************
ePMC - an extensible probabilistic model checker
Copyright (C) 2017
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 Soft... | Java | plugins/command-help/src/main/java/epmc/command/UsagePrinterJANI.java | liyi-david/ePMC | gpl-3.0 | 17,019 | 402 | codeparrot/github-code |
a258a0a36e83c0e7818a104a4157c1fef59af6eeea779884a75f00ce63e365eb | package com.earth2me.essentials;
import com.earth2me.essentials.commands.WarpNotFoundException;
import com.earth2me.essentials.utils.StringUtil;
import net.ess3.api.InvalidNameException;
import net.ess3.api.InvalidWorldException;
import org.bukkit.Location;
import org.bukkit.Server;
import java.io.File;
import java.io... | Java | Essentials/src/com/earth2me/essentials/Warps.java | dordsor21/dordsentials | gpl-3.0 | 5,560 | 168 | codeparrot/github-code |
d5ce3d437003c15ba9e16cb288c1e19e888395ef18026f3eaa25645f378aac1f | <?
@session_start();
if (!isset($_SESSION['word'])) {
$t = @file_get_contents('dizionario');
if ($t===false) $t='default';
$t = trim($t,"\r\n ");
$t = explode(' ',$t);
$c=count($t)-1;
$t=$t[mt_rand(0,$c)] . base_convert(mt_rand(1,1536),10,36);
$_SESSION['word']=$t;
}
?><!doctype html>
<html>
<head>
<meta ch... | PHP | index.php | epto/CookieProt | gpl-3.0 | 1,087 | 47 | codeparrot/github-code |
077f5d7ebb6989471dbb2b44dd125c24fc07cfb135a1acafd609eed795b7c331 | /*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* ... | C++ | Plugin-MaterialPicker/MaterialPicker.cc | heartvalve/OpenFlipper | gpl-3.0 | 22,607 | 568 | codeparrot/github-code |
12319f8b4a85568cb6fbe28677bdb1727c1432682df91a68b948883b90006ce9 | /* DataFile.cpp
Copyright (c) 2014 by Michael Zahniser
Endless Sky 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.
Endless Sky is distribut... | C++ | source/DataFile.cpp | seanfahey/endless-sky | gpl-3.0 | 3,506 | 163 | codeparrot/github-code |
2f2cd5898ebe37ad3a3e44bd28dddffe698a19256ebcde5efe3da11d3b2eed87 | #!/usr/bin/perl
=head1 NAME
postCLB.pl
=head1 SYNOPSIS
http://..../postCLB.pl?
=head1 DESCRIPTION
=head1 Query string parameters
=cut
use strict;
use warnings;
use Time::Local;
use POSIX qw/strftime/;
use File::Basename;
use Switch;
use CGI;
my $cgi = new CGI;
use CGI::Carp qw(fatalsToBrowser set_message);
use ... | Perl | CODE/cgi-bin/postCLB.pl | IPGP/webobs | gpl-3.0 | 5,305 | 208 | codeparrot/github-code |
d6a07a6dfb5303bc83a44247ad2867cd8e61ebdc97cfe718cdc3056a6b689d0e | <!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">
<!-- This file documents the EDT emulation package for Emacs.
Copyright (C) 1986, 1992, 1994-1995, 1999-2016
Free Software Foundation, Inc.
Permiss... | HTML | aquamacs/doc/Aquamacs Help/misc/edt.html/Overview.html | davidswelt/aquamacs-emacs | gpl-3.0 | 5,019 | 144 | codeparrot/github-code |
4d8cd0533885993e335c5b222095cd0f4d0402aae8e87f64a42504bda377fac6 | # -*- coding: utf-8 -*-
import sys
import csv
from itertools import izip
# https://pypi.python.org/pypi/unicodecsv
# http://semver.org/
VERSION = (0, 9, 4)
__version__ = ".".join(map(str, VERSION))
pass_throughs = [
'register_dialect',
'unregister_dialect',
'get_dialect',
'list_dialects',
'field_... | Python | libs/unicodecsv.py | archives-new-zealand/archwayimportgenerator | gpl-3.0 | 7,055 | 227 | codeparrot/github-code |
dd3d1dccdb1d5477dc5c6a7026536daef69d36488367e42e23f93fe0a9a863e1 | /*******************************************************************************
* Copyright (c) 2016 Raul Vidal Ortiz.
*
* This file is part of Assembler.
*
* Assembler is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published... | Java | assembler/src/assembler/Opcodes.java | Raulvo/vhdl | gpl-3.0 | 3,587 | 97 | codeparrot/github-code |
799ae406955eba3bb7d591a8f4ab7222579b38eda6eb96d1b0d9f513dc98b8a5 | /**
* Iniciar panel de navegación (menú)
*/
function initSideBar(nav)
{
//-------------- Declaraciones ------------//
let addMenuItem = function(menu, icon, label, click){
let li = $('<li><a href="javascript:void(0)"><i class="fa '+icon+' fa-fw"></i> '+label+'</a></li>');
if(click)
li.on('click', click);
m... | JavaScript | front2/admin/sidebar.js | germix/canawa | gpl-3.0 | 4,959 | 219 | codeparrot/github-code |
35c89ebb4ae087ae6230041d27cd5e2362114a081d86d1f4870198fe883ee884 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016-2021 hyStrath
\\/ M anipulation |
-------------------... | C++ | src/lagrangian/dsmc/boundaryMeasurements/boundaryMeasurements.C | vincentcasseau/hyStrath | gpl-3.0 | 12,830 | 505 | codeparrot/github-code |
52727f22ab8cb4a1d9279118d746fbe9816b9746fd8c273b428b323aa6db0236 | //------------------------------------------------------------------------------
// Copyright (C) 2016 Josi Coder
// 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 Lice... | C# | Library/Device.Base/SpiDirectDeviceConnection.cs | JosiCoder/CtLab | gpl-3.0 | 2,920 | 69 | codeparrot/github-code |
f395a4671ba02007a2cdfebb30e62db10b7af635192452c1dc727e3060602562 | <!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">
<!-- This file describes PGG 0.1, an Emacs interface to various
PGP implementations.
Copyright (C) 2001, 2003-2016 Free Software Foundation, Inc.
P... | HTML | aquamacs/doc/Aquamacs Help/misc/pgg.html/Prerequisites.html | davidswelt/aquamacs-emacs | gpl-3.0 | 5,066 | 130 | codeparrot/github-code |
f2f32a87357729fa2a90d9a501974d5972df8959ab262e0325e0b6cfd26ae140 | /**********************************************************
* Version $Id: GSPoints_Distances.cpp 1921 2014-01-09 10:24:11Z oconrad $
*********************************************************/
///////////////////////////////////////////////////////////
// //
// ... | C++ | saga-gis/src/modules/statistics/statistics_points/GSPoints_Distances.cpp | UoA-eResearch/saga-gis | gpl-3.0 | 6,210 | 167 | codeparrot/github-code |
62066c7c072f453393f0e2460e65f8d786e9cda96de58ca9ebfc28eeedbffecf |
$(document).ready(function () {
// Open contact modal
$('.contact').click(function(){
$('#contactModal').modal('toggle', {
keyboard: false
}).on('shown.bs.modal', function(){
var form = $('#ContactForm');
var submitButton = $('.submitContactForm');
... | JavaScript | tacnet/apps/base/static/js/base.js | Tacnet/Tacnet | gpl-3.0 | 1,991 | 74 | codeparrot/github-code |
dad6467cc88007a77784f310e105a4c50f431d1aa99b9264b8f74e29853cf23b | /*
LOG functionality - Written by Jeremy Davis <jeremyd@computer.org>
and released to public domain.
*/
#ifndef LOG_H
#define LOG_H
#ifdef __cplusplus
extern "C" {
#endif
/* attempts to open the specified logfile, in the specified destination directory
returns 0 if successfully opened log,
... | C | freedos/source/install3/include/log.h | joyent/sdcboot | mpl-2.0 | 805 | 38 | codeparrot/github-code |
a031e0351ef68b1631f352815821541e36d0b31fd8a607707b336b6ee127af38 | //
// Aspia Project
// Copyright (C) 2018 Dmitry Chapyshev <dmitry@aspia.ru>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... | C | source/client/ui/file_panel.h | aspia-org/remote-desktop | mpl-2.0 | 2,856 | 93 | codeparrot/github-code |
942b93d6dca6d206c323233730b3ffa2abe86199da31a0a049b3216a7d90c896 | /**
* Copyright (C), 2012 Adaptinet.org (Todd Fearn, Anthony Graffeo)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
package org.adaptinet.mim... | Java | src/org/adaptinet/mimehandlers/MimeHTML_HTTP.java | tfearn/AdaptinetSDK | mpl-2.0 | 15,471 | 495 | codeparrot/github-code |
c43a2f90351ae8712ab33af404b4f5fb22a54f51dc7e2152bf17a6433d65bdab | package msd
import (
"encoding/base64"
"github.com/bluefw/blued/discoverd/api"
"github.com/gin-gonic/gin"
"log"
"net/http"
)
type ServiceResource struct {
repo *DiscoverdRepo
logger *log.Logger
}
func NewServiceResource(dr *DiscoverdRepo, l *log.Logger) *ServiceResource {
return &ServiceResource{
repo: ... | GO | discoverd/msd/msd_rs.go | bluefw/blued | mpl-2.0 | 1,213 | 53 | codeparrot/github-code |
5cfd4f7845928ff036b98d2403e983d3c9f5a01cd2d37937a002eae8d0a55a0a | /**
* @fileOverview scripts about the frontpage.
*/
var calendarth = require('calendarth');
var util = require('./util');
var Front = module.exports = function() {
this.$agendaContainer = null;
this.$agendaItem = null;
this.$error = null;
};
/** @const {number} Maximum events to display, use an even number ... | JavaScript | front/js-city/frontpage.js | WeAreTech/wearetech.io | mpl-2.0 | 5,035 | 216 | codeparrot/github-code |
ce944057223d136d6293254e06c42eb642c0c0fe8889ec518c97988abdfbc264 | // Copyright (c) 2015 Sterling Orsten
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the author be held liable for any damages
// arising from the use of this software. You are granted a perpetual,
// irrevocable, world-wide license to copy, modify, and redistrib... | C | src/linalg.h | leonidk/ps1080test | mpl-2.0 | 26,527 | 403 | codeparrot/github-code |
c0a4efefa12fc0f9e0c3ee20e2e86811120920fe2499c75a76ad336b364ad1b7 | package org.osmdroid.bonuspack.utils;
import java.util.LinkedHashMap;
import android.graphics.Bitmap;
import android.util.Log;
/**
* Simple memory cache for handling images loaded from the web.
* The url is the key.
* @author M.Kergall
*/
public class WebImageCache {
LinkedHashMap<String, Bitmap> m... | Java | OSMBonusPack/src/org/osmdroid/bonuspack/utils/WebImageCache.java | dimy93/sports-cubed-android | mpl-2.0 | 1,601 | 57 | codeparrot/github-code |
889ba27186c1cacd35280294cc13d0cfb8ae0363f7056a8c589faf9a65de9992 | /*
* Copyright (c) 2014 Universal Technical Resource Services, Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
namespace ATMLCommonLibrary.controls.lim... | C# | ATMLLibraries/ATMLCommonLibrary/controls/limit/SingleLimitSimpleControl.Designer.cs | UtrsSoftware/ATMLWorkBench | mpl-2.0 | 3,618 | 83 | codeparrot/github-code |
94bfbf82dae733b340df26e731f109ff1336a877ff93b6fe5525b35d9790a5ea | # frozen_string_literal: true
class Invoice < ActiveRecord::Base
class ReadOnlyError < StandardError; end
belongs_to :publisher
belongs_to :uploaded_by, class_name: "Publisher"
belongs_to :paid_by, class_name: "Publisher"
belongs_to :finalized_by, class_name: "Publisher"
has_many :invoice_files, -> { or... | Ruby | app/models/invoice.rb | brave/publishers | mpl-2.0 | 1,758 | 74 | codeparrot/github-code |
1984ebc8273419acbd4d28de4cf9a6b0bd86adab473a0a623c5731f9b694d272 | package net.minecraft.entity.ai;
import net.minecraft.entity.EntityCreature;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.village.Village;
import net.minecraft.village.VillageDoorInfo;
public class EntityAIMoveIndoors extends EntityAIBase
{
private ... | Java | net/minecraft/entity/ai/EntityAIMoveIndoors.java | lucemans/ShapeClient-SRC | mpl-2.0 | 3,231 | 104 | codeparrot/github-code |
cfc033b6f6c0f89a06202278eab787fd348045e3e6cab9363f1ff9437d3ac348 | /*
Copyright (c) 2015, Digi International Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND TH... | C++ | Samples/RCM2200/PUTS.C | digidotcom/DCRabbit_9 | mpl-2.0 | 2,216 | 60 | codeparrot/github-code |
c5fa6b8d4f8637585cd5b4674514a0a8cc17d6cf710aff3ecf63df70a3aa711c | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html data-context="Build Apps" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>le_tty.h File Reference - Legato Docs</title>... | HTML | 18_09/le__tty_8h.html | legatoproject/legato-docs | mpl-2.0 | 20,229 | 476 | codeparrot/github-code |
70507dcbe1d3577f69a358546855d7f80b50b2d5134a8fa85822345861b55f87 | /*
* SSL3 Protocol
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://w... | C | security/nss/lib/ssl/ssl3ext.c | tmhorne/celtx | mpl-2.0 | 42,898 | 1,269 | codeparrot/github-code |
3fbd3ecd290ef91e7b4687a8daf913bbc48f0df6638cfbc7e25293efb65de2ab | /*
Copyright (c) 2012 GFT Appverse, S.L., Sociedad Unipersonal.
This Source Code Form is subject to the terms of the Appverse Public License
Version 2.0 (“APL v2.0”). If a copy of the APL was not distributed with this
file, You can obtain one at http://www.appverse.mobi/licenses/apl_v2.0.pdf. [^]
Redistributio... | Java | framework/modules/backend/core/enterprise-converters/src/main/java/org/appverse/web/framework/backend/core/enterprise/converters/AbstractDozerB2IBeanConverter.java | Appverse/appverse-server | mpl-2.0 | 10,842 | 304 | codeparrot/github-code |
5b0456e51c84caeca7caae56fedd5ce58bb68e1916f381f2219a15d5dc588169 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `CompositingReason` enum in crate `compositing`.">
<meta na... | HTML | compositing/compositor/enum.CompositingReason.html | susaing/doc.servo.org | mpl-2.0 | 7,804 | 131 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.