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 |
|---|---|---|---|---|---|---|---|---|
2615333202d6315505ab34c7af666bbc32e96da88ee37ed3dea3670d16615a68 | (function () {
angular
.module("WebAppMaker")
.controller("EditPageController", EditPageController)
.controller("PageListController", PageListController)
.controller("NewPageController", NewPageController);
function EditPageController(PageService, $routeParams, $location) {
... | JavaScript | public/assignment/views/page/page.controller.client.js | knuevena/knueven-andrew-webdev | gpl-3.0 | 2,586 | 93 | codeparrot/github-code |
d2118c2ff5eeaac88a49a2b0db35d7ec3b517efe2841950499afb3072a52332d | //=======================================================================
// Author: Donovan Parks
//
// Copyright 2009 Donovan Parks
//
// This file is part of Chameleon.
//
// Chameleon 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++ | Src/AutoCollapseDlg.hpp | dparks1134/Chameleon | gpl-3.0 | 1,457 | 54 | codeparrot/github-code |
2ac8a82367c9fdbc71372af2ba4e46bb8d6d2c5e5a39b61ebdb01f8eb0735b7a | using System.Timers;
using Artemis.Core.Services;
using Artemis.UI.Services;
using Stylet;
namespace Artemis.UI.Screens.Header
{
public class SimpleHeaderViewModel : Screen
{
private readonly ICoreService _coreService;
private readonly IDebugService _debugService;
private string _frame... | C# | src/Artemis.UI/Screens/Header/SimpleHeaderViewModel.cs | SpoinkyNL/Artemis | gpl-3.0 | 1,855 | 69 | codeparrot/github-code |
ba3bc3b6ed5cc32dd9ae6f3729fea67b61f7aef04ee48c53bfd9506ca5ae1a50 | package fi.otavanopisto.pyramus.domainmodel.clientapplications;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
impor... | Java | persistence/src/main/java/fi/otavanopisto/pyramus/domainmodel/clientapplications/ClientApplicationAccessToken.java | otavanopisto/pyramus | gpl-3.0 | 2,460 | 92 | codeparrot/github-code |
9cb6691cc943f2805a4aa1e3af28a0888916c4418625f039cfcd5194ed9f6ef7 | <?php
class Sesion
{
private static $id;
public static function crearSesion()
{
session_start();
}
public static function destruirSesion()
{
session_start();
session_unset();
session_destroy();
self::$id = null;
}
public static function ge... | PHP | 313_clase_sesion/sesion.class.php | UNAH-SISTEMAS/2017-1PAC-POO | gpl-3.0 | 701 | 44 | codeparrot/github-code |
58135389fd16fd5d1a74ce69cf9c597c9892a2e5e99a4875afcbd233d03b3e7c | #ifdef __cplusplus
extern "C" {
#endif
#include "project.h"
#include "managerment.h"
#include "CPrintf.h"
#include "stdio.h"
#include "stdint.h"
#include "../HARDWARE/DCMotor/DCMotor.h"
#include "../HARDWARE/StepMotor/StepMotor.h"
#include "../HARDWARE/Beep/beep.h"
#include "../HARDWARE/NTCResistor/NTCResistor.h"... | C | Logic/project.c | zhjiehua/TCN-I | gpl-3.0 | 29,617 | 1,010 | codeparrot/github-code |
c668603541b15015ba7ff8a55cc6f90f99f44ca4e2a15b86c06901ccdf03e5f0 | define(['react','app','dataTable','dataTableBoot'], function (React,app,DataTable,dataTableBoot) {
return React.createClass({
mixins: [app.mixins.touchMixins()],
getInitialState : function() {
var dataSet = [];
return {
dataSet:dataSet,
mainChecker:[],
emailInFolder... | JavaScript | app/src/authorized/mailbox/middlepanel/emailList.js | SCRYPTmail/frontEnd | gpl-3.0 | 23,324 | 605 | codeparrot/github-code |
1b98402890707cd4e7b29467ae7c0d9bb767176b7b0e8064221507aa2b0a6bc7 | <?php
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
* Copyright (c) 2001-2012 *
* ... | PHP | ecrire/exec/synchro.php | VertigeASBL/DLPbeta | gpl-3.0 | 4,782 | 167 | codeparrot/github-code |
8fc9f3f7a915e8c10e81fe73e25cbbaa1248848bf76ce51f9a65a6506b1b1c32 | #ifndef PLOTCONTROLWIDGETWRAPPER_H
#define PLOTCONTROLWIDGETWRAPPER_H
#include "controlWidgets/plotcontrolwidget.h"
#include "controlwrappers/controlwidgetwrapper.h"
class PlotControlWidgetWrapper: public ControlWidgetWrapper
{
Q_OBJECT
public:
PlotControlWidgetWrapper(QWidget *parent=0);
~PlotControlWid... | C | src/controlwrappers/plotcontrolwidgetwrapper.h | seleznevae/JaG | gpl-3.0 | 1,002 | 44 | codeparrot/github-code |
e821c16c732ffd5210a4f33779cfbfed5e7b649ef9c5875c5fe184b97f9a9c80 | /*
* Copyright (c) 2020 Mark Liversedge (liversedge@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 the License, or (at your option)
* any later version.
... | C | src/Charts/GenericChart.h | gille/GoldenCheetah | gpl-3.0 | 12,998 | 354 | codeparrot/github-code |
752a1cd07f242e69701d39ae6da4c54c2c85509b94ed6738e7579388b77febec | <!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<!-- ===================================================================================================
Instituto Municipal de Planeación y Competitividad (IMPLAN) de Torreón.
3er. generación de la Plataforma del Conocimiento
De... | HTML | convocatorias/pzn-2020.html | TRCIMPLAN/trcimplan.github.io | gpl-3.0 | 24,964 | 366 | codeparrot/github-code |
2c19e8c85a38f73df242871d3d05099909decde28d979c8000c73be162e0b032 | """
MagPy
IAGA02 input filter
Written by Roman Leonhardt June 2012
- contains test, read and write function
"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import division
from io import open
from magpy.stream import *
#global va... | Python | magpy/lib/format_iaga02.py | hschovanec-usgs/magpy | gpl-3.0 | 20,820 | 510 | codeparrot/github-code |
f3eb5f06d2081877415f56961d51ddc685874dad4668b045230a59d5e4ff2dba | #include <QMessageBox>
#include "charakterform.h"
#include "fertigkeitform.h"
#include "ui_charakterform.h"
#include "ui_fertigkeitform.h"
CharakterForm::CharakterForm(QDialog *parent, std::shared_ptr<CharakterManager> charakterManager) :
QDialog(parent),charakterManager(charakterManager),
ui(new Ui::charakter... | C++ | Fuk/charakterform.cpp | FireballGfx/FUK | gpl-3.0 | 2,157 | 65 | codeparrot/github-code |
4518cab7d66b1454dd0bbc8cb4f3f41573aaeb25454c8a73da1704e8cd98fe3a | /*
* File: exceptions.h
* Author: ben
*
* Created on 23 agosto 2009, 15.42
*/
#ifndef _EXCEPTIONS_H
#define _EXCEPTIONS_H
#include <stdexcept>
#include <string>
class BasicException : public std::exception {
std::string message;
public:
BasicException() = default;
BasicException(const char * _mess) : m... | C | include/exceptions.h | Obi-Wan/vARCH | gpl-3.0 | 2,752 | 83 | codeparrot/github-code |
3d9d64afbd493667c92201686208cd9cadc8d7046588f9b4a02ec5ba3b0f913e | using System;
using System.Collections.Generic;
using Terraria.DataStructures;
namespace Terraria
{
public static class Wiring
{
public static bool running = false;
[ThreadStatic]
private static Dictionary<Point16, bool> wireSkip;
[ThreadStatic]
private static DoubleStack<Point16> wireList;
[ThreadStatic]... | C# | Server/Terraria/Wiring.cs | NyxStudios/ModBox | gpl-3.0 | 32,943 | 1,216 | codeparrot/github-code |
c14a9a4c2ffdce314e498fd5eaf02952cef1dccabe3428843f40ab379b07fb76 | $(function() {
(function() {
$('.j_toClass').each(function(index, el) {
var $it = $(this);
var targetTo = $it.attr('data-target');
var thisTo = $it.attr('data-this');
var targetId = $it.attr('href');
var $target = $(targetId);
var _fn = {
on: function() {
$target.addClass(targetTo);
... | JavaScript | static/global/js/global.js | pro27/kezhanbang-m | gpl-3.0 | 1,577 | 63 | codeparrot/github-code |
ff604eb000f6fdc8e68f1de91817f734d701861d31fa6953d029bdaa31cb3f8d | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Telegram.Td.Api;
using Unigram.Collections;
using Unigram.Common;
using Unigram.Controls;
using Unigram.Converters;
using Unigram.Services;
using Unigram.ViewM... | C# | Unigram/Unigram/ViewModels/Users/UserPhotosViewModel.cs | ikarago/Unigram | gpl-3.0 | 4,093 | 113 | codeparrot/github-code |
af79abac8df638e53eea338d36ae367c5bf612e4a91f1748bcc7ad46f21265fb | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TravelingSalesmanProblem.Engine
{
public class Point
{
/* Class used as a point. Represent a location/gene in the path. */
#region Fields
public i... | C# | TravelingSalesmanProblem/TravelingSalesmanProblem/Engine/Point.cs | Sadikk/TPE | gpl-3.0 | 1,383 | 52 | codeparrot/github-code |
82d601ebf5b006488d4e233006d43c52a577cced7748ad5f0419dec277839e5b | <?php
include_once('include/session.php');
function do_twinoid_auth($code) {
global $error_msg;
if (! isset($code)) {
$error_msg = 'bug!';
return false;
}
$json = do_post_json('https://twinoid.com/oauth/token',
array(
'client_id' => APP_TWINOID_ID,
'client_secret' => APP_SECRET_KEY,
... | PHP | [APP] BienTaMap/redir.php | Zenoo/hordesApps | gpl-3.0 | 3,454 | 129 | codeparrot/github-code |
47ae9af89c4faf242d1b0d2ebdc7dab0336a9d601345215cfaa3a6624919861e | //###########################################################################
// This file is part of LImA, a Library for Image Acquisition
//
// Copyright (C) : 2009-2017
// European Synchrotron Radiation Facility
// CS40220 38043 Grenoble Cedex 9
// FRANCE
//
// Contact: lima@esrf.fr
//
// This is free software; you... | C++ | control/src/CtSaving_ZBuffer.cpp | esrf-bliss/Lima | gpl-3.0 | 2,134 | 75 | codeparrot/github-code |
6c9dfd40c8430ab2d5a9eb4a472fe39c2d44ac2755edf5b29549882e2df9672b | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: mods/deathmatch/logic/packets/CUnoccupiedVehicleStartSyncPacket.h
* PURPOSE: Unoccupied vehicle start synchronization pa... | C | MTA10_Server/mods/deathmatch/logic/packets/CUnoccupiedVehicleStartSyncPacket.h | Pumpuli/multitheftauto | gpl-3.0 | 1,441 | 35 | codeparrot/github-code |
46f7c38746dd2bc14c3ce33f91bfbece12c1193bc5748a975e52144428d54255 | /*
###############################
# Copyright (C) 2012 Jon Schang
#
# This file is part of jSchangLib, released under the LGPLv3
#
# jSchangLib 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 ... | Java | investing/src/main/java/com/jonschang/investing/valuesource/TrueRangeValueSource.java | jschang/jSchangLib | gpl-3.0 | 2,142 | 64 | codeparrot/github-code |
c8738cdb2efe9fb2edf6ffd0966e968250ead1ea8ce446c680609c63daa93b5d | 'use strict';
var Dispatcher = require('../core/appDispatcher');
var EventEmitter = require('events').EventEmitter;
var ActionTypes = require('./actionTypes');
var CHANGE_EVENT = 'change';
var utils = require('../core/utils');
function TradingStore() {
var previousRate = null;
var symbols = "GBP/USD";
var quanti... | JavaScript | react-standard-flux/src/app/trading/tradingStore.js | Digiterre/trading-tile-clients | gpl-3.0 | 2,742 | 131 | codeparrot/github-code |
54b707736ff52688c750329bc751c6b180d4684533023a7d1242a4313f6a237d | /****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtMultimedia module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LG... | C++ | sippy/multimedia/qaudiooutput_mac_p.cpp | whitequark/sparkle | gpl-3.0 | 19,297 | 706 | codeparrot/github-code |
f17c727c776c891ab17206a2d3b91fb12c5096e5ca9f7b641bb22d4f5d8ef7eb | /*
* Copyright (C) 2005 Anthony Liguori <anthony@codemonkey.ws>
*
* Network Block Device Server Side
*
* 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; under version 2 of the License... | C | qemu/nbd/server.c | SurajAnil/KernelVirtualMachine | gpl-3.0 | 36,304 | 1,336 | codeparrot/github-code |
b95cd6f475cce0752050ecd437add2a630b9cc4d36390bc515dfde8446603d4d | /*********************************************************************************************
*
* 'OpenGamaWebsiteHandler.java, in plugin ummisco.gama.ui.shared, is part of the source code of the
* GAMA modeling and simulation platform.
* (v. 1.8.1)
*
* (c) 2007-2020 UMI 209 UMMISCO IRD/UPMC & Partners
*
* Vis... | Java | ummisco.gama.ui.shared/src/ummisco/gama/ui/commands/OpenGamaWebsiteHandler.java | gama-platform/gama | gpl-3.0 | 1,076 | 35 | codeparrot/github-code |
5b36f6cabb03eb14013c67e929dc3793c26ba9140ea50aaf7110be2c3e295d8f | --终结的炽天使 柊深夜
function c80060022.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x92d7),aux.NonTuner(Card.IsSetCard,0x92d7),1)
c:EnableReviveLimit()
--pendulum summon
aux.EnablePendulumAttribute(c,false)
--pendulum set
local e1=Effect.CreateEffect(c)
e1:SetTyp... | Lua | expansions/script/c80060022.lua | MonokuroInzanaito/ygopro-777DIY | gpl-3.0 | 5,501 | 148 | codeparrot/github-code |
6e1572c5846a7955add00f3b2b4dcbad6298c882eef0bd6e9038053361b9303b | package com.pajato.android.gamechat;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.NavigationView;
import android.support.design.widget.... | Java | app/src/main/java/com/pajato/android/gamechat/MainActivity.java | pajato/game-chat-android | gpl-3.0 | 8,746 | 229 | codeparrot/github-code |
7f5d21b36d9bdf800620921a451944219f7a838e4ad05fec812f8d405cd505a1 | package com.superman.letusgo.base;
import java.util.HashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import android.content.Context;
import android.widget.Toast;
import com.superman.letusgo.util.AppClient;
import com.superman.letusgo.util.HttpUtil;
public clas... | Java | src/com/superman/letusgo/base/BaseTaskPool.java | superman-t/LetUsGo | gpl-3.0 | 3,152 | 120 | codeparrot/github-code |
a03a8c2abf78b8acd4e721511079f33e1a0abe07e255ecfef6d3f18f9c979fb2 | <?php
namespace Directus\Installation\Steps;
use Directus\Bootstrap;
class LanguageStep extends AbstractStep
{
protected $number = 1;
protected $name = 'language';
protected $title = 'Language';
protected $shortTitle = 'Language';
protected $viewName = 'language.twig';
protected $fields = [
... | PHP | installation/includes/Steps/LanguageStep.php | Sonans/directus | gpl-3.0 | 869 | 38 | codeparrot/github-code |
7469a13afed345c4027a9ddc5b3a01ae9a30e4796dc659cf275465c65ab93436 | //
// Created by bruce on 27/04/20.
//
#include "../fs.h"
int sys_chdir(struct proc* who, char* pathname){
int ret = OK;
inode_t *inode = NULL, *curr_working;
if((ret = get_inode_by_path(who, pathname, &inode)))
return ret;
if(!inode)
return EEXIST;
if(!(S_ISDIR(inode->i_mode)))... | C | fs/system/chdir_mkdir.c | halfer53/winix | gpl-3.0 | 1,883 | 80 | codeparrot/github-code |
afd484e6968d0ea7d43847202eabe73bf90f363f7ae2f5a66e2f13d98ef4a8b6 | <!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<!-- ===================================================================================================
Instituto Municipal de Planeación y Competitividad (IMPLAN) de Torreón.
3er. generación de la Plataforma del Conocimiento
De... | HTML | indicadores-matamoros/seguridad-delitos.html | TRCIMPLAN/trcimplan.github.io | gpl-3.0 | 50,718 | 970 | codeparrot/github-code |
eeed2fd02d99b4fea9ad031798bc8c99cf0db3a80f130b39ee1e2783df2d7382 | {-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : Tct.Method.Bounds
Copyright : (c) Martin Avanzini... | Haskell | source/Tct/Method/Bounds.hs | mzini/TcT | gpl-3.0 | 8,030 | 170 | codeparrot/github-code |
dce79b47a21812d78b18047611f6e2b98b361602f29a5da7a42662dddceb342b | /**************************************************************************
BuguRTOS-0.8.x(Bugurt real time operating system)
Copyright (C) 2015 anonimous
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 F... | C | arch/stm8/raisonance/bugurt_proc_stack_init.c | F03SD/bugurtos | gpl-3.0 | 7,542 | 128 | codeparrot/github-code |
c53e0bc9d78f803ff2bbc8a4f826649e12d28d487998bf259f1f330a2d2f0d10 | require.config({
baseUrl: 'vendor',
waitSeconds: 10,
paths: {
core: '../core',
lang: '../lang',
root: '..'
},
shim: {
'backbone': {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
},
'underscore': {
exports: '_'
... | JavaScript | core/launch.js | HammyHavoc/Voidance-Records-App | gpl-3.0 | 4,158 | 138 | codeparrot/github-code |
14c428ab41fdc8130256b27550b0031a084731d1345a4cc7603469470c3cb526 | !=====================================================================
!
! S p e c f e m 3 D V e r s i o n 2 . 1
! ---------------------------------------
!
! Main authors: Dimitri Komatitsch and Jeroen Tromp
! Princeton University, USA and University of Pau / CNRS / INRIA
! (c... | FORTRAN | utils/unused_routines/model_interface_bedrock.f90 | geodynamics/specfem3d | gpl-3.0 | 13,989 | 392 | codeparrot/github-code |
a833c64e02c8611b252b907e7e5d708a87a22118109296bbfec6f5a47ab3ec55 | #pragma once
#include <pthread.h>
#include <sstream>
#include <palmapper/Config.h>
#include <palmapper/GenomeMaps.h>
#include <palmapper/JunctionMap.h>
#include <palmapper/VariantMap.h>
#include <map>
#include <set>
class Mapper ;
class GenomeMaps ;
class QPalma ;
struct HIT;
typedef struct alignment_t {
double qpa... | C | src/palmapper/TopAlignments.h | ratschlab/palmapper | gpl-3.0 | 4,930 | 159 | codeparrot/github-code |
f9b0fc71a25cee48cb4effa3aca53acf08c7720ecbc63b7de29ed9d939d5cb7e | <?php
class ControllerApiCurrency extends Controller {
public function index() {
$this->load->language('api/currency');
$json = array();
if (!isset($this->session->data['api_id'])) {
$json['error'] = $this->language->get('error_permission');
} else {
$this->load->model('localisation/currency'... | PHP | catalog/controller/api/currency.php | vincentgy/rubys | gpl-3.0 | 1,348 | 38 | codeparrot/github-code |
6ebecdf8ea9af02db09f282ab7f3c0403c2b28aeeb22854d58bdbe28940384e9 | package com.DragonFire.recipe;
import com.DragonFire.item.DFItems;
import net.minecraft.init.Items;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.potion.PotionUtils;
import net.min... | Java | src/main/java/com/DragonFire/recipe/RecipePotionCookie.java | SirBlobman/DragonFire | gpl-3.0 | 2,236 | 55 | codeparrot/github-code |
d1b920b09f39641eadaa41883649eb4d37594bdbdd2d64b4f20cbf67b0fb35fd | #!/usr/bin/env python
# Version 0.1
# NDVI automated acquisition and calculation by Vladyslav Popov
# Using landsat-util, source: https://github.com/developmentseed/landsat-util
# Uses Amazon Web Services Public Dataset (Lansat 8)
# Script should be run every day
from os.path import join, abspath, dirname, exis... | Python | ndvi.py | vladanti/ndvi_calc | gpl-3.0 | 4,318 | 136 | codeparrot/github-code |
c81540418dc57cfd19d1c264decfdb5909834adee78608102cef7884f0c0d2e1 | /*
* This file is part of OpenStopMotion by Patrick Fedick
*
* $Author$
* $Revision$
* $Date$
* $Id$
*
*
* Copyright (c) 2013 Patrick Fedick <patrick@pfp.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... | C | src/savethread.h | pfedick/openstopmotion | gpl-3.0 | 1,457 | 74 | codeparrot/github-code |
6947726676034f57ea000b107d5be8d0bd37059f1286854451dc0cc83ad2d7f3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Printing;
using System.Text;
using System.Windows.Forms;
using OpenDental.UI;
using OpenDentBusiness;
namespace OpenDental {
public partial class FormEquipment:Form {
private Li... | C# | OpenDental/Forms/FormEquipment.cs | eae/opendental | gpl-3.0 | 7,203 | 251 | codeparrot/github-code |
dd093f50a37de370b3aa7d0938226d9af47ecc06a47245edd32827cfbcb4a545 | module.exports = function(el, state, container) {
var ul = el.getElementsByTagName('ul')[0]
var lastFlags = []
var controlsTouch = -1
var containerTouch = {"id":-1, "x":-1, "y":-1}
el.addEventListener('touchstart', startTouchControls)
el.addEventListener('touchmove', handleTouchControls)
el.addEventListen... | JavaScript | index.js | pauln/voxel-touchcontrols | gpl-3.0 | 3,130 | 99 | codeparrot/github-code |
eb59589566d04edd105fe07f805cc21929d63597201cf8072b1790e0f4238658 | ########################################################################
# File : ARCComputingElement.py
# Author : A.T.
########################################################################
""" ARC Computing Element
"""
__RCSID__ = "58c42fc (2013-07-07 22:54:57 +0200) Andrei Tsaregorodtsev <atsareg@in2p3.fr>"
... | Python | Resources/Computing/ARCComputingElement.py | miloszz/DIRAC | gpl-3.0 | 10,864 | 322 | codeparrot/github-code |
fdaf640dff1c2dee2b962457f587ecdb318027a67d68d079b68ab0e35ff7ddee | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "struct.h"
#include "access.h"
#include "util.h"
#include "search.h"
void aux_comptage(node* nd, int* counter){
//cas simple, on à trouvé un mot.
if( prefix_has_epsilon(nd)){
//on augmente le compteur
(*counter)++;
}
int i;
//s... | C | patricia_tree/src/comptage.c | lavigne958/ALGAV-projet | gpl-3.0 | 3,724 | 163 | codeparrot/github-code |
afd83f082f96510e72e0709f1412dd2dd15f09958baeba4aabe1d2656d3a1a13 | /* {{{
This file is part of DPGSolver.
DPGSolver 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 any later version.
DPGSolver is distributed in the hope that it will be useful... | C | src/simulation/computational_elements/computational_elements.c | PhilipZwanenburg/DPGSolver | gpl-3.0 | 15,138 | 411 | codeparrot/github-code |
765d85cf9e2122267695b2995fa1bf8da58e38e29973a81e3e2a7fb00a9abf18 | <meta content='width=device-width, initial-scale=1' name='viewport'>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,200,300,400italic,400,500,500italic,700,700italic,900%7CMaterial+Icons' rel='stylesheet' type='text/css'/>
<style>
body {
background-color:white;
margin:0;
padding:0 30px;
color:#2... | HTML | html/contactform.html | joniibra/webdev | gpl-3.0 | 4,586 | 85 | codeparrot/github-code |
f777057a00f10d40a23dab63ed2bb3784c191fb7b92f392693cb961d628fb8a6 | #!/usr/bin/env python3
import re
a = [[0 for x in range(25)] for y in range(13)]
f=open("../distrib/spiral.txt","r")
s=f.readline().strip()
dx, dy = [0, 1, 0, -1], [1, 0, -1, 0]
x, y, c = 0, -1, 1
l=0
for i in range(13+13-1):
if i%2==0:
for j in range((25+25-i)//2):
x += dx[i % 4]
y ... | Python | challenges/misc/Spirals/solution/solution.py | DISMGryphons/GryphonCTF2017-Challenges | gpl-3.0 | 804 | 35 | codeparrot/github-code |
c7985fd11eedb75a2c3c7a5811f32b2697b80f3ad55d0e8db7090533d7bffb5f | <?php
require_once('../common/config.php');
require_once('./config.php');
if (!(defined('ACCOUNT_SERVER') && defined('ACCOUNT_LIST') && defined('RESPONSE_HEADER'))) //Fatal Error
{
exit(0);
}
$out=RESPONSE_HEADER;
$buffer=file_get_contents("php://input");
if (substr($buffer,0,QUERY_HEADER_LEN)!=QUERY_HEAD... | PHP | Account/log/login.php | zwpwjwtz/WiChat-server | gpl-3.0 | 4,876 | 124 | codeparrot/github-code |
46a3606de82f6a658e157d002a3d2c7fc0d589beeb0485ecdce9c21c36c0e893 | /*
This file is part of the EnergyOptimizatorOfRoboticCells program.
EnergyOptimizatorOfRoboticCells 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 l... | C++ | src/ILPSolver/RoboticLineSolverILP.cpp | CTU-IIG/EnergyOptimizatorOfRoboticCells | gpl-3.0 | 5,243 | 147 | codeparrot/github-code |
9be72498f2a73178be3df325216995d154564348738a6b63f62e105169c29b75 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
# This file is part of the mantidqt package
... | Python | qt/python/mantidqt/project/workspaceloader.py | mganeva/mantid | gpl-3.0 | 1,243 | 34 | codeparrot/github-code |
45b38ce2f5dc73bbd5f10c26308b91aba73b5dfef3ca38d5bc3df608630404de | // This file is part of PapyrusDotNet.
//
// PapyrusDotNet 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# | Source/PexInspector/PapyrusDotNet.PexInspector/Behaviours/DataGridBehaviour.cs | zerratar/PapyrusDotNet | gpl-3.0 | 4,318 | 115 | codeparrot/github-code |
a50bd00ffa11844393ed28cb13970772c4507d7d2ea35727e4682d133a53e0d8 | // This file is part of PapyrusDotNet.
//
// PapyrusDotNet 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# | Source/PexInspector/PapyrusDotNet.PexInspector.ViewModels/PapyrusParameterEditorViewModel.cs | zerratar/PapyrusDotNet | gpl-3.0 | 1,904 | 55 | codeparrot/github-code |
714611f1ae67ff6c0564737c22dd961541f997929888d7c33a9f751b74c702e6 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle ... | PHP | mod/groupformation/classes/controller/questionnaire_controller.php | nitro2010/moodle | gpl-3.0 | 23,044 | 626 | codeparrot/github-code |
c822f5321642554344fbaeaa628e13cd16d0eff00f869c5b63478810397aff23 | // Copyright (c) 2002,2011 Utrecht University (The Netherlands).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
// You can redistribute it and/or modify it under the terms of the GNU
// General Public License as published by the Free Software Foundation,
// either version 3 of the License, or (... | C | 3rdparty/CGAL/include/CGAL/Search_traits_3.h | FEniCS/mshr | gpl-3.0 | 1,945 | 62 | codeparrot/github-code |
51e3e15efbb034cd47327aa6e1d39ccae8d6b9060fe1b5c6f84f1b72ac98e4c8 | define("view/mission",
["jquery", "laces.tie", "lodash", "view", "tmpl/joboutput", "tmpl/mission"],
function($, Laces, _, View, tmpl) {
"use strict";
return View.extend({
initialize: function(options) {
this.mission = options.mission;
this.mission.jobs.on("add",... | JavaScript | www/js/view/mission.js | arendjr/CI-Joe | gpl-3.0 | 2,619 | 90 | codeparrot/github-code |
01650fefbdecf4e9f031ad601ece0f877144cbdc4997945b8bcd12cd477d6dcc | #include "NPC.h"
#include "Application.h"
#include "ModuleEntityManager.h"
#include "Player.h"
#include "ModuleCamera.h"
#include "ModuleAudio.h"
#include <random>
NPC::NPC(Entity::Types entityType, iPoint iniPos, short int hp, Direction facing)
: Creature(entityType, iniPos, hp, facing)
{
facing = LEFT;
}
NPC::~NP... | C++ | src/NPC.cpp | azarrias/sor | gpl-3.0 | 4,702 | 198 | codeparrot/github-code |
8000bd9210d61bc6b66adb31d989dc362606e437105609703533a094afa11187 | package com.koushikdutta.async.http.server;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.AssetManager;
import android.os.Build;
import android.text.TextUtils;
import com.koushikdutta.async.AsyncSSLSocket;
import com.koushikdutta.async.AsyncSSLSocketWrapper;
import co... | Java | app/src/main/java/com/koushikdutta/async/http/server/AsyncHttpServer.java | omerjerk/RemoteDroid | gpl-3.0 | 20,350 | 528 | codeparrot/github-code |
db5e1e2e82c6ef73f16e37471ce709910f7b05e5839e7a7e3c7f2f235fa6a902 | function GCList(field, multipleSelection, uploadFile, refreshParent = false) {
this.field = field;
this.multipleSelection = multipleSelection;
this.uploadFile = uploadFile;
this.refreshParent = refreshParent;
this.dialogId = 'list_dialog';
this.options = {};
this.urls = {
'aj... | JavaScript | public/admin/js/list.js | OldSnapo/gisclient-3 | gpl-3.0 | 17,763 | 455 | codeparrot/github-code |
50ade667b39218ff1abdb78eb93cba03ef7df7f85b1e1eb72dcf724fd2ca0d87 | // QChartGallery.js ---
//
// Author: Julien Wintz
// Created: Thu Feb 13 23:43:13 2014 (+0100)
// Version:
// Last-Updated:
// By:
// Update #: 13
//
// Change Log:
//
//
// /////////////////////////////////////////////////////////////////
// Line Chart Data Sample
// //////////////////////////////////... | JavaScript | laccansense/jbQuick/QChartGallery.js | SensorNet-UFAL/environmentMonitoring | gpl-3.0 | 3,346 | 133 | codeparrot/github-code |
53e558a84361e47968352481d2af6c0e3351ba9edd002c41d2358fa210684996 | #include "vector_plot_2d.h"
#include "../graph/vector_graph_2d.h"
namespace Gnuplot {
Vector_plot_2d::Vector_plot_2d()
// Default constructor
: Plot_2d {Representation::TwoDVector}
{
// Add default graph:
this->graphs.push_back(std::make_shared<Vector_graph_2d>());
}
Vector_plot_2d::Vector_plot_2d(co... | C++ | src/plot/vector_plot_2d.cpp | Kadabash/Gnuplot_cpp | gpl-3.0 | 977 | 32 | codeparrot/github-code |
78fd7fffbbe95de12b4e177363b4ce985c0c8d08ac0ddd3f9e65188c4d96fb37 | package com.authpro.imageauthentication;
import android.app.Fragment;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Base64;
import android.util.Pair;
import android.v... | Java | client/app/src/main/java/com/authpro/imageauthentication/InputFragment.java | phamhathanh/ImageAuthentication | gpl-3.0 | 8,323 | 259 | codeparrot/github-code |
19fa6c1c81bf811f3555fbc9def501767bedef3a39e62b468fab83a7a7457bbd | #!python
"""Script for plotting distributions of epitopes per site for two sets of sites.
Uses matplotlib. Designed to analyze output of epitopefinder_getepitopes.py.
Written by Jesse Bloom."""
import os
import sys
import random
import epitopefinder.io
import epitopefinder.plot
def main():
"""Main body of sc... | Python | scripts/epitopefinder_plotdistributioncomparison.py | jbloom/epitopefinder | gpl-3.0 | 3,447 | 78 | codeparrot/github-code |
112473783ae7f81f2213ac9cb50171eb4ca70f03f43f9306815e74004a3fbd3d | package org.septa.android.app.services.apiinterfaces;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import org.septa.android.app.favorites.FavoriteSt... | Java | app/src/main/java/org/septa/android/app/services/apiinterfaces/FavoritesSharedPrefsUtilsImpl.java | septadev/SEPTA-Android | gpl-3.0 | 15,568 | 374 | codeparrot/github-code |
ef7c2fdc4071f2680ffa2e9b1a7f3066f6268a33c85c28206eed6b755176a4bb | #include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <errno.h>
#include <cstdlib>
#include <queue>
#include <iostream>
#include <sstream>
#include "BullBenchThread.h"
#include "BullBench.h"
#define REQUEST_SIZE 2048
void BullBenchThread::run() {
int succ = 0;
for (;;) {
pthread_mu... | C++ | src/BullBenchThread.cpp | zuocheng-liu/BullBench | gpl-3.0 | 3,451 | 112 | codeparrot/github-code |
96cb32a4da18e8916858950c7688e5a6912f06e44e913615e46a75bba031c70b | /**
Eubrazil Scientific Gateway
Copyright (C) 2015 CMCC
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 distri... | Java | src/it/cmcc/ophidiaweb/utils/deserialization/Nodelink.java | Ophidia/eubrazilcc-uc3-gateway | gpl-3.0 | 2,185 | 78 | codeparrot/github-code |
7107f54fd16b0cd9d979fefabc31645109ead33f1bdf4b1b15cff5c9de82a05c | /*
* Copyright (c) 1982, 1986, 1989 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copy... | C | filesys/ufs/ufs_inode.c | axelmuhr/Helios-NG | gpl-3.0 | 18,814 | 753 | codeparrot/github-code |
1282524045dd7a7eee38910e52265da1430cf4543993eabd044c52b821c311b4 | /*
* jQuery Fast Confirm
* version: 2.1.1 (2011-03-23)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://blog.pierrejeanparra.com/jquery-plugins/fast-confirm/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/... | JavaScript | src/workflow/assets/js/jquery.fastconfirm.js | apiary/apiary-project | gpl-3.0 | 7,913 | 197 | codeparrot/github-code |
d5515ce1c4bab02a8b37a4f7336a6f761a41a1bed14d1ac6b46f3f9bdcb76915 | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 18 14:11:31 2015
@author: Martin Friedl
"""
from datetime import date
import numpy as np
from Patterns.GrowthTheoryCell import make_theory_cell
from Patterns.GrowthTheoryCell_100_3BranchDevices import make_theory_cell_3br
from Patterns.GrowthTheoryCell_100_4BranchDevic... | Python | 100 Wafers - 1cm Squares/Multi-Use Pattern/v1.2/MembraneDesign_100Wafer_v1.1.py | Martin09/E-BeamPatterns | gpl-3.0 | 17,018 | 393 | codeparrot/github-code |
3ba263df06e26f150dc2d5c58ea2427822654c7a85de34fbc44af3fee80c8c35 |
/*
* queue.hpp
*
* Created on: 14 ott 2015
* Author: Marco
*/
#ifndef SOURCE_UTILITIES_INCLUDE_SHARED_QUEUE_HPP_
#define SOURCE_UTILITIES_INCLUDE_SHARED_QUEUE_HPP_
#include <deque>
#include <condition_variable>
#include <mutex>
#include <utilities/include/atend.hpp>
#include <utilities/include/singleton.h... | C++ | source/utilities/include/shared_queue.hpp | Aleb92/PMB-PimpMyBackup | gpl-3.0 | 1,643 | 78 | codeparrot/github-code |
e45ef532296d3535ef2163fc514db473bda9e0fdf66b0dde3b4d8a42a188f59e | /*
Copyright (C) 2011 Lorenzo Bernardi (fastlorenzo@gmail.com)
2010 Ben Van Daele (vandaeleben@gmail.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at... | Java | src/be/bernardi/mvforandroid/data/DatabaseHelper.java | fastlorenzo/mvfa | gpl-3.0 | 12,330 | 430 | codeparrot/github-code |
1ba642875e6d2c188f63a3ca631f51ed684c65e394eea51241bee3f8b3f8b4da | <?php
namespace krFrame\Src\initTemplate;
use \krFrame\Src\Error\Error;
class SetCustomTaxonomies
{
private $taxonomies;
private $taxonomy;
private $name;
public function __construct($array)
{
if (!is_array($array)) {
return false;
}
$this->taxonomies = $array;... | PHP | krFrame/src/initTemplate/SetCustomTax.php | dawidryba/krframe_theme | gpl-3.0 | 1,683 | 58 | codeparrot/github-code |
f8a403e0839e409c04b03297909f7caef531ed7ea551b53f1a101ee931f9c0df | #ifndef INCLUDE_DBCREADER_H
#define INCLUDE_DBCREADER_H
/* dbcreader.h -- declarations for libcandbc
Copyright (C) 2007-2017 Andreas Heitmann
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... | C | src/libcandbc/dbcreader.h | aheit/cantools | gpl-3.0 | 977 | 34 | codeparrot/github-code |
50b3262305438886e62874e98f1108d30a1cb4918ef471f868724a618727d061 | package omr.gui;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
/**
* Menu bar of the main window.... | Java | src/omr/gui/Menu.java | CaronLe/chanhthings2 | gpl-3.0 | 6,718 | 177 | codeparrot/github-code |
2f9274315788715b827ca76410fa73d599ae7197337d74214e2e095c2b6bc83c | #!/usr/bin/env python2
import urllib2
import urllib
from BeautifulSoup import BeautifulSoup
import smtplib
import ConfigParser
# Retreive user information
config = ConfigParser.ConfigParser()
config.read('config.cfg')
user = config.get('data','user')
password = config.get('data','password')
fromaddr = config.get('dat... | Python | unassignedbugs.py | jelly/Utils | gpl-3.0 | 2,592 | 84 | codeparrot/github-code |
563fa9ae43028b6fd90fdc32502ee99f7b764537ce69eb63dec8f66ae59bce87 | /**
* Balero CMS Project: Proyecto 100% Mexicano de código libre.
* Página Oficial: http://www.balerocms.com
*
* @author Anibal Gomez <anibalgomez@icloud.com>
* @copyright Copyright (C) 2015 Neblina Software. Derechos reservados.
* @license Licencia BSD; vea LICENSE.txt
*/
package com.neblina.balero.... | Java | src/main/java/com/neblina/balero/util/AntiXSS.java | neblina-software/balerocms-v2 | gpl-3.0 | 852 | 32 | codeparrot/github-code |
3b587357900151dbeac04f01f13fef23bd7e5a7607b15d7cbb5fb8229d0a6b50 | /**************************************
*FILE :main.c
*PROJECT :eps
*AUTHOR :707wk
*CREATED :5/19/2013
***************************************/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void clearpri() //调整光标
{
system("busybox clear");
}
void init(int num) //记录初始化
{
... | C | linux/sock/c/option.h | 707wk/Error-Practice-System | gpl-3.0 | 3,643 | 222 | codeparrot/github-code |
bc32264648f2a802c65ec4c6826771bc3c081b57c96653235fdb528e356c8d95 | <?php
/**
* Catch-a spammer with a CAPTCHA.
*
* @package catcha
* @version 1.0.1
* @author Jublo IT Solutions <support@jublo.net>
* @copyright 2013-2014 Jublo IT Solutions <support@jublo.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Publi... | PHP | catcha.php | jublonet/catcha | gpl-3.0 | 11,644 | 453 | codeparrot/github-code |
7c628dd0c20ed8ddaf526c7d3b2ca87ae9a4884371c41a343f1e179c23e10c51 | package com.link184.respiration;
import com.squareup.javapoet.AnnotationSpec;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.ParameterizedTypeName;
import com.squareup.javapoet.TypeName;
import com.squareup.javapoet.T... | Java | respiration-compiler/src/main/java/com/link184/respiration/LocalRepositoryClassGenerator.java | Link184/Respiration | gpl-3.0 | 3,600 | 74 | codeparrot/github-code |
eb3b0ebe76fdb3396da65102b750877ee719038775f6079ed8cff9c2c66f27f6 | import os
import json
import collections
import datetime
from flask import Flask, request, current_app, make_response, session, escape, Response, jsonify
from flask_jwt_extended import JWTManager, jwt_required, create_access_token, get_jwt_identity
from flask_socketio import SocketIO
from neo4j.v1 import GraphDatabase,... | Python | api/__init__.py | inquisite/Inquisite-Core | gpl-3.0 | 2,483 | 74 | codeparrot/github-code |
9f67505b5e94effefc930e426cfa7752e346ef6cc1b4940083ed648c98915a13 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="sl_SI">
<context>
<name>AboutPage</name>
<message>
<source>Sources</source>
<translation>Viri</translation>
</message>
<message>
<source>If you want to create a theme compatible with UI Themer, pleas... | TypeScript | translations/sailfishos-uithemer-sl_SI.ts | fravaccaro/sailfishos-uithemer | gpl-3.0 | 40,435 | 868 | codeparrot/github-code |
042065c74c5df13278e88221da052ecc0132986a80f559ae48696f305dfeb1f1 | /** @file sys_startup.c
* @brief Startup Source File
* @date 29.May.2013
* @version 03.05.02
*
* This file contains:
* - Include Files
* - Type Definitions
* - External Functions
* - VIM RAM Setup
* - Startup Routine
* .
* which are relevant for the Startup.
*/
/* (c) Texas Instru... | C | src/conf.d/halcogen/Torino1500/TMS570LS3137PGE/source/sys_startup.c | satellogic/canopus | gpl-3.0 | 17,254 | 587 | codeparrot/github-code |
1b79eb73ca4c8fe187d2827b1f90609fca53a26b12f7eadc773720e6474482dd | #ifndef MAVLINK_CPP_MSG_GPS2_RTK_H
#define MAVLINK_CPP_MSG_GPS2_RTK_H
#include "../message.h"
namespace mavlink
{
namespace msg
{
const uint8_t gps2_rtk_id = 128;
const uint8_t gps2_rtk_length = 35;
const uint8_t gps2_rtk_crc = 226;
class gps2_rtk : public mavlink::message
{
public:
... | C | libs/mavlink/common/mavlink_msg_gps2_rtk.h | TheMrNomis/qDroneShow | gpl-3.0 | 3,505 | 73 | codeparrot/github-code |
2698291697509a288216735f276e615b6148ccc99d759b20c2719b1f8001ebd1 | using System;
using System.Collections;
using Server.Network;
using Server.Items;
using Server.Targeting;
using Server.Mobiles;
using Server.Engines.BuffIcons;
namespace Server.Spells.Necromancy
{
public class PainSpikeSpell : NecromancerSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Pa... | C# | Scripts/Distro/Spells/Necromancy/PainSpike.cs | greeduomacro/xrunuo | gpl-3.0 | 4,046 | 154 | codeparrot/github-code |
fa866c4320f5c5ba3be645c4af7e74dcfffd971a67cd41c1ef144add4a15ec9b | package fr.guiguilechat.jcelechat.model.sde.attributes;
import fr.guiguilechat.jcelechat.model.sde.IntAttribute;
/**
*
*/
public class MiningDurationRoleBonus
extends IntAttribute
{
public static final MiningDurationRoleBonus INSTANCE = new MiningDurationRoleBonus();
@Override
public int getId() ... | Java | model/sde/SDE-Types/src/generated/java/fr/guiguilechat/jcelechat/model/sde/attributes/MiningDurationRoleBonus.java | guiguilechat/EveOnline | gpl-3.0 | 830 | 49 | codeparrot/github-code |
d5518ad759eb160ccc76ade4ee12b6c07ec4fc6177e4769cc87760ecdc9739db | 'use strict';
angular.module('MainConsole')
.factory('WebSocketService',
['$rootScope', '$q', '$filter', '$location',
function ($rootScope, $q, $filter, $location) {
var service = {};
service.wsConnect = function() {
// Websocket is at wss://hostname:port/ws
... | JavaScript | server/html/sguilclient/websocketService.js | bammv/sguil | gpl-3.0 | 1,652 | 66 | codeparrot/github-code |
e59d1d4094e468dbd6c470f457e17aef5507fc5bde349cca183164d09f1b7151 | import os
import re
import gettext
import locale
import threading # libsearchfilter_toggle starts thread libsearchfilter_loop
import operator
import gtk
import gobject
import pango
import ui
import misc
import formatting
import mpdhelper as mpdh
from consts import consts
import breadcrumbs
def library_set_data(albu... | Python | sonata/library.py | onto/sonata | gpl-3.0 | 66,200 | 1,468 | codeparrot/github-code |
e04030c2b730f0672e88a725465bcb5a44b3462fc76e52fb1b98422cb0cb4385 | /*
* lsm303.c
*
* Created on: Mar 5, 2016
* Author: mupimenov
*/
#include "lsm303c.h"
#include <string.h>
/*
*
*
* Acceleration Registers
*
*
**/
#define LSM303C_WHO_AM_I_ADDR_A 0x0F /* device identification register */
#define LSM303C_ACT_THS_ADDR_A 0x1E
#define LSM303C_AC... | C | src/drivers/lsm303c.c | mupimenov/plane | gpl-3.0 | 17,752 | 623 | codeparrot/github-code |
fff71b17fc1b72202497b58ed785ff50a0d7af4dea2fa26c0141567fabd032a6 | <?php
/*
* @package Comments Ratings
* @author PixelGrade <contact@pixelgrade.com>
* @license GPL-2.0+
* @link https://pixelgrade.com
* @copyright 2015 PixelGrade
*
* @wordpress-plugin
Plugin Name: Comments Ratings
Plugin URI: https://wordpress.org/plugins/comments-ratings/
Description: Easily t... | PHP | html/wordpress/wp-content/plugins/comments-ratings/comments-ratings.php | agemor/nabomhouse | gpl-3.0 | 2,151 | 73 | codeparrot/github-code |
8bbe2fa04321623a19bd1800e838dcdc74c32a09021d3ae474768f33d5c2101e | <!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 Calc, the GNU Emacs calculator, included with
GNU Emacs 25.1.
Copyright (C) 1990-1991, 2001-2016 Free Software Foundation, ... | HTML | aquamacs/doc/Aquamacs Help/misc/calc.html/Algebraic-Manipulation.html | davidswelt/aquamacs-emacs | gpl-3.0 | 15,781 | 330 | codeparrot/github-code |
a43d5b98598018dca07ad6f7fc1fb1275c9179734ae2ba147cdc205d9131c963 | package org.baeldung;
import static org.junit.Assert.assertEquals;
import java.util.Collections;
import java.util.OptionalInt;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
import org... | Java | projects/tutorials-master/tutorials-master/javaxval/src/test/java/org/baeldung/ContainerValidationIntegrationTest.java | Niky4000/UsefulUtils | gpl-3.0 | 3,005 | 89 | codeparrot/github-code |
f06dc88a59182c4fcf41351dd75d3497fc265007633e98086ba7f8daae7ab0db | package com.zanghongtu.blog.util;
/**
* 摘要
*/
public class SummaryParser {
private static final int SUMMARY_LENGTH = 256;
/**
* 去除info里content 所有html字符
* 截取字符串长度256
* @param sourceStr 源字符串
* @return 截取后的字符串
*/
public static String getSummary(String sourceStr) {
if(StringUt... | Java | src/main/java/com/zanghongtu/blog/util/SummaryParser.java | zanghongtu2006/blog | gpl-3.0 | 2,629 | 92 | codeparrot/github-code |
200ca0ac87069aa9cfacf300dc1bae296d71e1c8e49f35a1c72f77daec032bae | package org.baeldung.persistence.model;
import io.katharsis.resource.annotations.JsonApiId;
import io.katharsis.resource.annotations.JsonApiRelation;
import io.katharsis.resource.annotations.JsonApiResource;
import io.katharsis.resource.annotations.SerializeType;
import java.util.Set;
import javax.persistence.Entity... | Java | projects/tutorials-master/tutorials-master/spring-katharsis/src/main/java/org/baeldung/persistence/model/User.java | Niky4000/UsefulUtils | gpl-3.0 | 2,768 | 112 | codeparrot/github-code |
e505a065bc9dfb036a2f1a016ad76bbaad50fb79bfe4060db892263d566a5191 | /*
* Copyright (C) 2005-2011 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008-2011 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006-2011 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010-2011 VoragineCore <http://www.projectvoragine.com/>
*
* This program is free software; you... | C++ | src/server/scripts/Instances/Icecrown_Citadel/Pit_of_Saron/instance_pit_of_saron.cpp | VirusOnline/VoragineCore | gpl-3.0 | 7,735 | 249 | codeparrot/github-code |
1a29b97074ec4655dc56e6f7952379d5cf3d8ced89c086a6fef91bb8fe75c101 | const chart = {
format: '{point.name}: {point.y:,.2f}',
colorNames: [
'success', 'info', 'warning', 'danger',
'primary', 'highlight', 'default'
],
colors: [],
patterns: [],
style: {},
plotOptions: function () {
return {
series: {
animation: false,
dataLabels: {
enabled: true,
forma... | JavaScript | site/MVC/Assets/scripts/chart.js | darakeon/dfm | gpl-3.0 | 2,098 | 121 | codeparrot/github-code |
713cec6cf54b149852d37745bcdc9e75328003b26810e97f9652f1512937233b | # -*- coding: utf-8 -*-
################################################
## Aplikacja wspomagajaca tworzenie bazy publikacji naukowych wpsółpracujaca z Google Scholar
## Copyright (C) 2013 Damian Baran
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the... | Python | popup/publikacja.py | damianbaran/inz | gpl-3.0 | 16,837 | 412 | codeparrot/github-code |
cc940b206247f5810c50158102407c3ebb461b5ede56d49232c0731a212b4c3d | /*
* WANDORA
* Knowledge Extraction, Management, and Publishing Application
* http://wandora.org
*
* Copyright (C) 2004-2016 Wandora Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundatio... | Java | src/org/wandora/application/tools/extractors/europeana/EuropeanaExtractor.java | wandora-team/wandora | gpl-3.0 | 2,752 | 87 | codeparrot/github-code |
c519ca98d4e2319bafcad41ab4d8cd9e505e4a45ac6b4d20429e0083cd69b70a | <!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">
<head>
<!-- Favicon -->
<link href="../images/vl_blue.ico" type="image/x-icon" rel="icon"></link>
<link href="../images/vl_blue.ico" type="image/x... | HTML | segPollen/vlfeat/doc/mdoc/vl_quickseg.html | silencej/pollenTubeProc | gpl-3.0 | 3,124 | 90 | codeparrot/github-code |
77b82a127fc9fb2549c635ddba8033e875f668a1f670c77ac79db560ab39d485 | /*
* Mesa 3-D graphics library
* Version: 7.1
*
* Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
*
* 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, in... | C | utils/Mesa/Mesa-7.8.2/src/mesa/main/api_validate.c | CPFDSoftware-Tony/gmv | gpl-3.0 | 9,046 | 317 | codeparrot/github-code |
93b6d6afcb6b685268c6e44fafa79ae0d268001f6c206d34a6f83edbfd1c1e49 | /**
*
* Copyright (c) 2014, Openflexo
*
* This file is part of Gina, a component of the software infrastructure
* developed at Openflexo.
*
*
* Openflexo is dual-licensed under the European Union Public License (EUPL, either
* version 1.1 of the License, or any later version ), which is available at
* ... | Java | gina-api/src/main/java/org/openflexo/gina/model/bindings/FIBVariablePathElement.java | openflexo-team/gina | gpl-3.0 | 6,703 | 176 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.