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 |
|---|---|---|---|---|---|---|---|---|
b3eff14cd708e682f71d9afd8b59136a378270662845f216e7b68e42d08d90ce | /* Copyright (c) 1997-1999 Miller Puckette.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
/* my_numbox.c written by Thomas Musil (c) IEM KUG Graz Austria 2000-2001 */
#include <stdlib.h>
#include <string.h>
#include <st... | C | vendors/pd-extended-0.43.4/externals/vanilla/nbx.c | rvega/morphasynth | gpl-3.0 | 30,169 | 908 | codeparrot/github-code |
de265099bd34cd68003497401fb797fef32fba4317f7bc6fc4e69a82090c8ea6 | /**
* Copyright (C) 2012 Just Do One More
*
* 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 | word.playdough.model/src/test/java/com/jdom/word/playdough/model/gamepack/ServerCommunicationManagerImplTest.java | justdoonemore/word.playdough | gpl-3.0 | 18,294 | 532 | codeparrot/github-code |
e007eed8c02c0666528fae370e416c95aa8519a2d9337c4c5e399acfa5d9dfde | # -*- encoding: UTF-8 -*-
import datetime
from sqlalchemy import MetaData, Table, Column, String, Integer
from Interface import AbstractDataObject
from utils.String import attributes_repr
def define_event_table(meta: MetaData):
return Table(
'events', meta,
Column('book_id', String, primary_key=... | Python | structures/Event.py | mingotang/libdata | gpl-3.0 | 2,531 | 83 | codeparrot/github-code |
1305abf2c70081f7eb7b229a3323b009c4f785cd46b1e11f38574ba6bf9c021c | /*
* This library is dual-licensed: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation. For the terms of this
* license, see licenses/gpl_v3.txt or <http://www.gnu.org/licenses/>.
*
* You are free to use this librar... | Java | src/ch/swingfx/twinkle/style/background/ColorBackground.java | Bvink/WildTornado | gpl-3.0 | 1,751 | 58 | codeparrot/github-code |
d4ea32b3e8a9c16e4d418e4de7a4b73845d9d63575e132f15a764743f7f2386e | /*
* Copyright (C) 2004-2007, 2010-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1997-2001 Internet Software Consortium.
*
* 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 t... | C | lib/isc/heap.c | krichter722/bind9 | gpl-3.0 | 6,579 | 266 | codeparrot/github-code |
bee7786d156c1426d9683486d50d8dd48d6bc014e672b50ca61e0905ee2280bf | #include "VisualizerCanvasPoincare.h"
#include <QMouseEvent>
#include <assert.h>
#include "VisualizerContext3D.h"
#include <cmath>
#include <limits>
#include <boost/foreach.hpp>
#include <algorithm>
#define pi 3.14159256
double log(double,int){
assert(false);
return 0;
}
VisualizerCanvasPoincare::VisualizerC... | C++ | Visualizer/VisualizerCanvasPoincare.cpp | lucksus/neuro_edit | gpl-3.0 | 11,504 | 431 | codeparrot/github-code |
10d4b57ca0325ebc9fd90bca3ccbaead3bd88a2fbf06069bc330d3c9e9bc171b | package navalbattle.protocol.messages.common;
import java.util.ArrayList;
import navalbattle.boats.BoatPosition;
import navalbattle.protocol.common.NavalBattleProtocol;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import... | Java | NavalBattle/src/navalbattle/protocol/messages/common/NavalBattlePositionMyBoats.java | ArmandDelessert/WarTanks | gpl-3.0 | 3,356 | 104 | codeparrot/github-code |
1adeed8613e58393becaa1cb15c1cf8dfa6ae12241e600971f34b74ae0f7902c | /*******************************************************************
This file is part of iContact.
iContact 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 opti... | C++ | iContact/GraphicFunctions.cpp | scharada/icontact-wm | gpl-3.0 | 15,422 | 506 | codeparrot/github-code |
aab2d375c34951c2fa4c9e1a929a01ea9982aa58caf297f0a5f27fb96f1d5b7c | #!/usr/bin/env python
import logging
import os
import urllib
from cvmfsreplica.cvmfsreplicaex import PluginConfigurationFailure
from cvmfsreplica.interfaces import RepositoryPluginAcceptanceInterface
import cvmfsreplica.pluginsmanagement as pm
class Updatedserver(RepositoryPluginAcceptanceInterface):
def __ini... | Python | cvmfsreplica/plugins/repository/acceptance/Updatedserver.py | jose-caballero/cvmfsreplica | gpl-3.0 | 3,761 | 95 | codeparrot/github-code |
4408638b76523864a579a347d2cd822b71be817be388ef32f58a4c2258f57e2b | /**
@file MeshBuilder.cpp
@maintainer Morgan McGuire, matrix@graphics3d.com
@created 2002-02-27
@edited 2005-02-24
*/
#include "G3D/MeshBuilder.h"
#include "G3D/MeshAlg.h"
namespace G3D {
void MeshBuilder::setName(const std::string& n) {
name = n;
}
void MeshBuilder::commit(std::string& n, Array<in... | C++ | dep/src/G3D/MeshBuilder.cpp | jolan78/MoveMaps | gpl-3.0 | 2,826 | 114 | codeparrot/github-code |
3c8fbec3893ba3d2a2048fa3fe00f8a99824fb2b4884c72a1f6bf8495e3f8580 | package it.unibas.lunatic.gui.node;
import it.unibas.lunatic.Scenario;
import it.unibas.lunatic.gui.node.chase.mc.ChaseStepNode;
import it.unibas.lunatic.model.chase.chasemc.DeltaChaseStep;
import speedy.model.database.IDatabase;
import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
pub... | Java | LunaticGUI/gui/src/it/unibas/lunatic/gui/node/DbNode.java | donatellosantoro/Llunatic | gpl-3.0 | 2,551 | 82 | codeparrot/github-code |
35123dffda20479b325637237481aa10078b28e0cfc2032399e4663739a9070e | /*
Kiduino.cpp - Kiduino library
Copyright (c) 2014 Adithya Selvaprithiviraj. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License... | C++ | Kiduino.cpp | adithyaselv/Kiduino | gpl-3.0 | 8,128 | 370 | codeparrot/github-code |
aea732454c2671dd186a92e3415390e0e71d7990439a38f8d615f24d7e7caf70 | package me.desht.sensibletoolbox.items.itemroutermodules;
import org.bukkit.Material;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.CraftingInventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.Recipe;
import org.bu... | Java | src/main/java/me/desht/sensibletoolbox/items/itemroutermodules/SilkyBreakerModule.java | desht/sensibletoolbox | gpl-3.0 | 2,143 | 70 | codeparrot/github-code |
5c8dea2a390a14945266ba7dcdeed85a37b3623816388eb662825ae18888ea3a | /**
* OpenGeoDa TM, Copyright (C) 2011 by Luc Anselin - all rights reserved
*
* This file is part of OpenGeoDa.
*
* OpenGeoDa 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 Lic... | C | Regression/Link.h | gouchangjiang/opengeoda | gpl-3.0 | 1,441 | 50 | codeparrot/github-code |
0f58f5d5a042ec42817eb95f8866d1513b64e235062d884a462e21d1cef0c2e2 | (function(){
'use strict';
Ns.views.map.Layout = Marionette.LayoutView.extend({
id: 'map-container',
template: '#map-layout-template',
regions: {
content: '#map-js',
legend: '#legend-js',
panels: '#map-panels',
toolbar: '#map-toolbar',
... | JavaScript | nodeshot/ui/default/static/ui/nodeshot/js/views/map.js | ninuxorg/nodeshot | gpl-3.0 | 50,921 | 1,396 | codeparrot/github-code |
6be273b850f61df95f9a85a5843b47c999022c9e6bfb805a35f8a00e038eb861 | YUI(M.yui.loader, {lang: M.local_mail_lang}).use('io-base', 'node', 'json-parse', 'panel', 'datatable-base', 'dd-plugin', 'moodle-form-dateselector', 'datatype-date', 'calendar-base', function(Y) {
var mail_message_view = false;
var mail_checkbox_labels_default = {};
var mail_view_type = '';
var mail_e... | JavaScript | local/mail/mail.js | nitro2010/moodle | gpl-3.0 | 58,550 | 1,537 | codeparrot/github-code |
5bff0cd973389d40bcff691f8a24844ce246de3799064bda762391fabfaa7697 | // Copyright (C) 2012, 2014, 2015, 2016, 2017 David Maxwell and Constantine Khroulev
//
// 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 Licen... | C++ | src/inverse/IP_SSATaucTaoTikhonovProblemLCL.cc | talbrecht/pism_pik | gpl-3.0 | 11,536 | 315 | codeparrot/github-code |
113424bd1a278f83157a1959d761db2462f038d792de33642c21bb9eda8a566c | #!/usr/bin/perl -w
#-----------------------------------------------------------+
# |
# batch_blast.pl - Run blast on a set of fasta files. |
# |
#-----------------------------------------------... | Perl | scripts/batch_blast.pl | jestill/dawgpaws | gpl-3.0 | 41,949 | 1,444 | codeparrot/github-code |
7c3173b565510fd143396ea340d8e9566be627cdf9f4fc906fc709a89381dd7d | import { combineReducers } from 'redux';
import listAcceptors from './listAcceptors';
import me from './wxe-auth';
import acceptors from './acceptors';
import { doneForm, toastState } from './ceeRegistration/ceeRegistration';
import { reducer as formReducer } from 'redux-form';
import stat from './stat';
import cee fro... | JavaScript | src/reducers/index.js | nagucc/jkef-wxe | gpl-3.0 | 678 | 31 | codeparrot/github-code |
237e1180c415e08386dc20f800ae49fdeffd915d42c6b5b186e05b2c50031c1a | <?php
class tables_webpage_status {
/*
private $_snapshot;
private $_snapshotWebsite;
function field__snapshot_id($record) {
$app = Dataface_Application::getInstance();
$query = $app->getQuery();
return @$query['-snapshot-id'] ? intval($query['-snapshot-id']) : null;
}
... | PHP | swete-admin/tables/webpage_status/webpage_status.php | shannah/swete | gpl-3.0 | 1,451 | 51 | codeparrot/github-code |
3c56484ceb4018f40c8ca870da524866f21f962e41c9214ae55a33957c480bfd | package com.eucalyptus.webui.shared.user;
import java.util.Date;
public class UserApp implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private int id;
private Date apptime;
private EnumUserAppStatus status;
private String comment;
private String keyPair;
private String sec... | Java | clc/modules/www/src/main/java/com/eucalyptus/webui/shared/user/UserApp.java | sosilent/euca | gpl-3.0 | 4,714 | 215 | codeparrot/github-code |
8a62f06fdc2462eb85c0497225d0fa2d56b02f910d2abc2cc2b7197ab0429fc8 | /*
* Geopaparazzi - Digital field mapping on Android based devices
* Copyright (C) 2016 HydroloGIS (www.hydrologis.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 ... | Java | geopaparazzi_core/src/main/java/eu/geopaparazzi/core/maptools/tools/NoEditableLayerToolGroup.java | tghoward/geopaparazzi | gpl-3.0 | 6,694 | 181 | codeparrot/github-code |
0286cf99c0507cca7416131e621d20c18de5fa474afc6ca1966810d6f4d69dc5 | <!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<!-- ===========================================================================================
Instituto Municipal de Planeación y Competitividad de Torreón.
Al usar, estudiar y copiar está aceptando los términos de uso de la informaci... | HTML | ibc-torreon/nueva-corona.html | TRCIMPLAN/beta | gpl-3.0 | 39,519 | 834 | codeparrot/github-code |
f4b186cca12352f58315730d26eb5c96b322e7d50bdc5036ecf5ef43a3e31787 | <?php
namespace MageDeveloper\Dataviewer\Form\FormDataProvider;
use MageDeveloper\Dataviewer\Domain\Model\Datatype;
use MageDeveloper\Dataviewer\Domain\Model\Record;
use MageDeveloper\Dataviewer\Domain\Repository\FieldRepository;
use MageDeveloper\Dataviewer\Utility\LocalizationUtility as Locale;
use TYPO3\CMS\Backend... | PHP | Classes/Form/FormDataProvider/PrepareDataviewerTca.php | magedeveloper/dataviewer | gpl-3.0 | 6,581 | 205 | codeparrot/github-code |
559ea23105f56c0033443af93e3fcb2b48fc75b52d907083599060e162a4936d | /*
* Copyright (C) 2017 GedMarc
*
* 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 distribute... | Java | src/test/java/com/jwebmp/core/events/search/SearchAdapterTest.java | GedMarc/JWebSwing | gpl-3.0 | 1,403 | 51 | codeparrot/github-code |
195c6ccc4ba38406285a03ffa6b2440f8d3e7b11a1d58f8387864fe4dcfc7ecb | #ifndef FILE_EXECUTOR_H
#define FILE_EXECUTOR_H
#include <Executor.h>
#include <time.h>
class FileExecutor: public Executor
{
public:
int init(PollLoopBase *loop) override;
int up(ExecutorData &data) override;
ProcessResult process(ExecutorData &data, int fd, int events) override;
const char* nam... | C | src/executors/FileExecutor.h | vovaprog/epoll_http_server | gpl-3.0 | 658 | 34 | codeparrot/github-code |
f734803aba2a31f7243a839e96828281cf5742d5892ec4e6772c52850a410ea2 | <?php
/**
* Nooku Platform - http://www.nooku.org/platform
*
* @copyright Copyright (C) 2011 - 2014 Johan Janssens and Timble CVBA. (http://www.timble.net)
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link https://github.com/nooku/nooku-platform for the canonical source repository
*/
namespac... | PHP | component/tags/controller/behavior/taggable.php | babsgosgens/nooku-ember-example-theme | gpl-3.0 | 3,027 | 101 | codeparrot/github-code |
4bb8af6399ee615f919155bc04e8fb97ff0ebdc4cd960308b0c1216f73101725 | // Hey look,
// Antag Datums.
namespace Content.Server.Mobs
{
/// <summary>
/// The Role is a basic building block for,
/// well, IC roles.
/// This can be anything and is not necessarily limited to antagonists.
/// </summary>
public abstract class Role
{
/// <summary>
... | C# | Content.Server/Mobs/Role.cs | MSylvia/space-station-14 | gpl-3.0 | 844 | 37 | codeparrot/github-code |
c39b6a9f133464aafddc8284b7e34adaf62fe3bb1f309dca47f9bf99bb7cd85c | package battlecode.world.signal;
import battlecode.engine.signal.Signal;
import battlecode.world.InternalRobot;
import battlecode.common.ComponentType;
import battlecode.common.MapLocation;
import battlecode.common.RobotLevel;
/**
* Signifies that a robot just attacked
*
* @author adamd
*/
public class BugSignal ... | Java | src/main/battlecode/world/signal/BugSignal.java | pwnall/battlecode-server | gpl-3.0 | 1,550 | 68 | codeparrot/github-code |
ea7f93bb9d46602077f58a41a257c6d3b2ec87be9495782d1d735bb69e31630c | /***************************************************************************
openBibleViewer - Bible Study Tool
Copyright (C) 2009-2012 Paul Walger <metaxy@walger.name>
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/core/module/modulemanager.h | metaxy/openBibleViewer | gpl-3.0 | 3,227 | 99 | codeparrot/github-code |
c8df92016e0e720f358c6025a6b25666da681f522ca2d324114602fc49652941 | #include <iostream>
#include <vector>
using namespace std;
typedef long long int64;
#define FOR(i, a, b) for (int _end_ = (b), i = (a); i <= _end_; ++i)
template <typename T> T gcd(T x, T y) {
for (T t; x; t = x, x = y % x, y = t);
return y;
}
int64 fpm(int64 b, int64 e, int64 m) {
int64 t = 1;
for (; e; e >>= ... | C++ | CCPP/p421.cpp | kkmonlee/Project-Euler-Solutions | gpl-3.0 | 1,689 | 104 | codeparrot/github-code |
ff41cca842be73a477ce407b652c24fc838cf2f6d406ae400629dabae4bbed9d | <?php
declare(strict_types=1);
namespace AawTeam\Minipoll\Domain\Model;
/*
* Copyright 2017 Agentur am Wasser | Maeder & Partner AG
*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version... | PHP | Classes/Domain/Model/Poll.php | aaw-team/minipoll | gpl-3.0 | 6,328 | 326 | codeparrot/github-code |
f80b68e295b773e8282ef7ac7ef1027f448accf4a0e37788ff646ce8566a6bc1 | # -*- coding:utf-8 -*-
# @author xupingmao <578749341@qq.com>
# @since 2020/08/22 21:54:56
# @modified 2022/02/26 10:40:22
import xauth
import xtemplate
import xutils
import os
import re
import sys
import platform
import xconfig
from xutils import dateutil
from xutils import fsutil
from xutils import Storage
from xutil... | Python | handlers/system/system_info.py | xupingmao/xnote | gpl-3.0 | 2,066 | 79 | codeparrot/github-code |
da6b47ca45e663aed9f12a9edf6e799573b8582bfd7f1447ce4aa7e8d8fca2e4 | #ifndef _DBO_USERVISIT_H_
#define _DBO_USERVISIT_H_
#include "classes.h"
#include "../poco_glue.h"
#include "../../app/defines.h"
#include <string>
namespace modellbasen
{
class UserVisit {
public: //For PoCo::Data
friend class Poco::Data::TypeHandler<class modellbasen::UserVisit>;
bool operator <(const UserVisit... | C | storage/dbo/uservisit.h | frodegill/modellbasen | gpl-3.0 | 2,473 | 77 | codeparrot/github-code |
8b4894449d6417c79132c1784905ec523eb39567a78942cd941e03316a37a2fe |
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fnmatch – Compare filenames against Unix-style glo... | HTML | python2/PyMOTW-1.132/PyMOTW/docs/fnmatch/index.html | qilicun/python | gpl-3.0 | 14,940 | 263 | codeparrot/github-code |
af8121636e80b581979c9dece7afb363e3c7376e3934bbbe49ca33f6ff2b7de7 | // P08 Eliminate consecutive duplicates of list elements.
// Recursion with "dropWhile"
def f1[T]: List[T] => List[T] = {
case Nil => Nil
case h :: t => h :: f1(t.dropWhile(h ==))
}
// Tail recursion with "dropWhile"
@annotation.tailrec
def f2[T](list: List[T], acc: List[T] = Nil): List[T] = list match {
case N... | Scala | scala/P08.scala | pavelfatin/ninety-nine | gpl-3.0 | 836 | 32 | codeparrot/github-code |
8ae6d4d8598f70299e0207eb9939406bb753638868dbcdacfc45a60fbf018bba | <?php
/* ----------------------------------------------------------------------
* views/bundles/mediaviewer_html.php :
* ----------------------------------------------------------------------
* CollectiveAccess
* Open-source collections management software
* -------------------------------------------------------... | PHP | themes/ncep/views/bundles/mediaviewer_html.php | libis/pa_cct | gpl-3.0 | 6,954 | 147 | codeparrot/github-code |
aa062ce3b34de0cc0ac061737c30e87e7cea5fcfa0b93ca7a0f2a1c3ff540c39 | //
// Copyright (c) 2014 Scott Ellis and Richard Barnett
//
// This file is part of SyntroNet
//
// SyntroNet is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at... | C++ | SyntroDB/SyntroCFS.cpp | robotage/SyntroCore | gpl-3.0 | 4,257 | 123 | codeparrot/github-code |
22f9a46cbcfbd840984415d744c028e5f0d370377a7100c94fbfdb792ccf9397 | package br.unesp.exemplo.api.valueobjects;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Value Object para comunicação REST da entidade Inscricao PUT (atualização)
... | Java | services/src/main/java/br/unesp/exemplo/api/valueobjects/InscricaoVOPut.java | amoraes/spring-boot-unesp | gpl-3.0 | 1,176 | 63 | codeparrot/github-code |
af122723b050163c01373394461c6845e9d1d5faca5e664a016f52531e88f5d0 | /*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy 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... | C# | dnSpy/Roslyn/dnSpy.Roslyn/Text/Tagging/AsyncTagger.cs | manojdjoshi/dnSpy | gpl-3.0 | 10,697 | 331 | codeparrot/github-code |
1ebd9ca59b077ba488ffe31bd4e9fc0974f7a8ccfb12406e11a2c75a9cab86b2 | /*
* TfsNotificationRelay - http://github.com/kria/TfsNotificationRelay
*
* Copyright (C) 2016 Kristian Adrup
*
* This file is part of TfsNotificationRelay.
*
* TfsNotificationRelay is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
... | C# | src/TfsNotificationRelay/Notifications/ReleaseCreatedNotification.cs | kria/TfsNotificationRelay | gpl-3.0 | 2,035 | 52 | codeparrot/github-code |
80689f4ccaa5bee10a850cca0fa1cf99b7c75c75c68483b2eed3cf0b42de75e2 | <?php
class TrainingController extends Controller
{
private function modal(){
$cs = Yii::app()->clientScript;
$modal_url = Yii::app()->theme->baseUrl . '/js/osx/';
$cs->registerCssFile($modal_url . 'css/osx.css');
$cs->registerCss('modal', '
div#osx-modal-data a:link,
div#osx-modal-data a:visited {
... | PHP | protected/controllers/TrainingController.php | pressEnter/www | gpl-3.0 | 1,139 | 50 | codeparrot/github-code |
0efe52f917c07917fd80fdc57e34673e91248c591823f6e45267e30b6312e17d | import fs from 'fs'
import path from 'path'
const Jimp = require('jimp')
const hjson = require('hjson')
const electronImageResize = require('./electronImageResize')
const {getPath1,getPath2} = require('./chromeExtensionUtil')
const contentScriptName = '___contentScriptModify_.js'
const backgroundScriptName = '___back... | JavaScript | src/chromeManifestModify.js | kura52/sushi-browser | gpl-3.0 | 11,818 | 325 | codeparrot/github-code |
77faaf8b566ee5cfb5a1bab0c435f881fbe558b5f4fddbcfa987baec14c3aabd | # -*- coding: utf-8 -*-
from bottle import run, get, post, view, request, redirect, route, static_file, template
import bottle
import json
import threading
import requests
import time
import sys
messages = set([])
@bottle.route('/static/<path:path>')
def server_static(path):
return static_file(path, root='static'... | Python | Trabalho1/main.py | jpwbernardi/Computacao-Distribuida | gpl-3.0 | 816 | 40 | codeparrot/github-code |
fc3d8e108d0822c3f9526bb39b3726ddf9f8b532cc9e3c2e6fb28ffce300b4e1 | import akka.actor._
import akka.persistence._
import scala.concurrent.duration._
case object CreateSnapshot
case object CreatePieceOState
case class NewStateEvt(state: (Array[Byte], Deadline))
class LeakyJournalActor extends PersistentActor with ActorLogging {
import context._
log.info(s"Starting")
v... | Scala | persistence.scala | movermeyer/AkkaPersistenceJournalIssue | gpl-3.0 | 4,339 | 87 | codeparrot/github-code |
bf56799b06963abdb68ea048d6bd49fd86ac426249ac0a95fc8368f303759fdf | <?php
namespace ApacheSolrForTypo3\Solr\System\Language;
/***************************************************************
* Copyright notice
*
* (c) 2018 Timo Hund <timo.hund@dkd.de>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistrib... | PHP | Classes/System/Language/FrontendOverlayService.php | dkd-kaehm/ext-solr | gpl-3.0 | 5,124 | 151 | codeparrot/github-code |
53e1e368d81049f1ec1c640e075199ddc5ea7df821d9ed482bf5659d1bbe6e74 | <!DOCTYPE html>
<html class="theme-next gemini use-motion" lang="zh-Hans">
<head>
<!-- hexo-inject:begin --><!-- hexo-inject:end --><meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name=... | HTML | archives/2018/07/index.html | LjessonS/LjessonS.github.io | gpl-3.0 | 33,058 | 1,227 | codeparrot/github-code |
4a35611300731c92a04beb0970a61efe688616bf4beca9be7c15536cfd7ffb52 | <?php
// -------------------------------------------------------------
// Copy to this file somewhere in your htdocs, after grabbing
// some information. Then provide your application path and
// configuration file path.
// -------------------------------------------------------------
// ==============================... | PHP | read_example/index.php | hujuice/google-search-sonsole-storage | gpl-3.0 | 4,292 | 126 | codeparrot/github-code |
901cdceb0119ab466b0178b8650ebef5972f19e764fcd1123ed5403b174cb751 | #!/usr/bin/perl
#
# nfdump-tools - Inspecting the output of nfdump
#
# Copyright (C) 2012 CIRCL Computer Incident Response Center Luxembourg (SMILE GIE)
# Copyright (C) 2012 Gerard Wagener
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as ... | Perl | lib/nfdumptuples.pm | CIRCL/lnf-tools | gpl-3.0 | 2,622 | 89 | codeparrot/github-code |
a25f3f6443727e7e258b7092aef9077d79b8634c7534c3f73c9b7867476597f3 | // -*- Mode: Go; indent-tabs-mode: t -*-
/*
* Copyright (C) 2016-2017 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hop... | GO | interfaces/builtin/udisks2.go | Conan-Kudo/snapd | gpl-3.0 | 16,059 | 434 | codeparrot/github-code |
4619082106a16f8edc0f89bb307c849c9622d45c12594cacd5b35c3e7cda4dc4 | package net.minecraft.Server1_7_10.command.server;
import com.mojang.authlib.GameProfile;
import java.util.List;
import net.minecraft.Server1_7_10.command.CommandBase;
import net.minecraft.Server1_7_10.command.CommandException;
import net.minecraft.Server1_7_10.command.ICommandSender;
import net.minecraft.Server1_7_... | Java | src/net/minecraft/Server1_7_10/command/server/CommandWhitelist.java | TheHecticByte/BananaJ1.7.10Beta | gpl-3.0 | 5,087 | 144 | codeparrot/github-code |
c6e52f8ea2b235ff8ea7ae6f0cfafdf54602d8a43287ba4461fab28a53fd98bd | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Wawi : Alnajaf < @wawi_alnajaf >
# our channel: @almlaek
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
do
lo... | Lua | plugin/lock_reply.lua | qamrhom/wawi.alnajaf | gpl-3.0 | 1,252 | 56 | codeparrot/github-code |
c6ed8e14cbbfdf984b5cc275cc1e15d5fc3297957ff33c06049b561f26b034c2 | package com.teksystems.qe.automata.sample.amazon.views;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.teksystems.qe.automata.interfaces.BaseView;
import com.teksystems.qe.automata.sample... | Java | sample_automata/src/main/java/com/teksystems/qe/automata/sample/amazon/views/AmazonBaseView.java | jmastri/automata | gpl-3.0 | 967 | 41 | codeparrot/github-code |
27b409013dc71464c661d63f0aa0014ab6be33cae491439db0b615d20763686e | //==============================================================================
//
// File drop zone view
//
//==============================================================================
(function(app, config, $)
{
app.FileDropZoneView = Marionette.ItemView.extend({
events : {
'drop' : '... | JavaScript | chat/js/app/view/FileDropZoneView.js | johnnyswp/promin | gpl-3.0 | 2,758 | 108 | codeparrot/github-code |
83f96500f88efcbfcff952d3102db1342a6da1f14efec40741a3034508d3d609 | """
Diabicus: A calculator that plays music, lights up, and displays facts.
Copyright (C) 2016 Michael Lipschultz
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(... | Python | src/numeric_tools.py | lipschultz/diabicus | gpl-3.0 | 8,003 | 222 | codeparrot/github-code |
ce6419a7aa412df94304f50b58bf229b58f2829082db486ef4caba944070a254 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | Python | lib/ansible/modules/network/aci/aci_bd.py | tsdmgz/ansible | gpl-3.0 | 12,055 | 341 | codeparrot/github-code |
e32b630aafd9e7d59a6586c2f0be6bca19e244de80c3444729b2c2cab85d7f24 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
\\/ M anipulation |
---------------... | C++ | src/fvMotionSolver/motionDiffusivity/uniform/uniformDiffusivity.H | themiwi/freefoam-debian | gpl-3.0 | 3,051 | 117 | codeparrot/github-code |
e7c9f4705ab4c1dfdb9110ec1386113cdf43a87cb6b2cfee3e8da6629a41f41a | package com.numbrcrunchr.domain;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.Date;
import java.util.List;
import org.joda.time.DateMidnight;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotat... | Java | src/test/java/com/numbrcrunchr/domain/FeasibilityAnalysisProjectionServiceTest.java | srirang/numbrcrunchr | gpl-3.0 | 8,965 | 235 | codeparrot/github-code |
7ce27c728ded75d4b48c65f5b5e81b6edb29eb36d724ce49f95ce673f2730104 | /*
* This file is part of the LibreOffice project.
*
* 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/.
*
* This file incorporates work covered by the following lice... | Java | xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/CharArrayLCSAlgorithm.java | qt-haiku/LibreOffice | gpl-3.0 | 7,570 | 200 | codeparrot/github-code |
a9a8e5384263e1c2b3f0ac129c1d79e73a9f6fe9e81767ef3e7c9fe41db5a73c | <?php
/**
* This is the base class for all AR models that needs to handle events
* fired by the simpleWorkflow behavior.
*/
class SWActiveRecord extends CActiveRecord {
public function onEnterWorkflow($event)
{
Yii::trace(__CLASS__.'.'.__FUNCTION__,'application.simpleWorkflow');
}
public function... | PHP | extensions/simpleWorkflow/SWActiveRecord.php | clevernet/CleverNIM | gpl-3.0 | 1,419 | 48 | codeparrot/github-code |
54dc6c84571eae3d1d9714e36d35d31de1b1bf12c558333e5ba74659bcbac322 | package com.hartwig.hmftools.protect;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Set;
import com.google.common.collect.Sets;
import com.hartwig.hmftools.common.genome.refgenome.RefGenomeVersion;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cl... | Java | protect/src/main/java/com/hartwig/hmftools/protect/ProtectConfig.java | hartwigmedical/hmftools | gpl-3.0 | 9,388 | 238 | codeparrot/github-code |
daa86138de7d8cc886a6ea282746337c2bd3d6c50b3e510aee277af5283db28b | package com.vaadin.tutorial.todomvc;
import java.util.EnumSet;
import com.vaadin.data.provider.ConfigurableFilterDataProvider;
import com.vaadin.event.ShortcutListener;
import com.vaadin.icons.VaadinIcons;
import com.vaadin.shared.ui.ValueChangeMode;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import... | Java | framework8-demo-master/todomvc/src/main/java/com/vaadin/tutorial/todomvc/TodoViewImpl.java | 241180/Oryx | gpl-3.0 | 8,359 | 243 | codeparrot/github-code |
ef16d591bcdc28048306ed411b35115a369cd6bc7d3377566ea02fefabe631c9 |
"use strict";
const logger = require('../logwrapper');
const eventManager = require("../events/EventManager");
const NodeCache = require("node-cache");
const cache = new NodeCache({ stdTTL: 0, checkperiod: 5 });
exports._cache = cache;
cache.on("expired", function(key, value) {
eventManager.triggerEvent("firebot... | JavaScript | backend/common/custom-variable-manager.js | Firebottle/Firebot | gpl-3.0 | 4,564 | 140 | codeparrot/github-code |
82e91cc1794240ac6ada71fed2ce6fa9feb879fc7f5d2ef2b99e7d764c845b20 | /* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
*
* MAUS 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 versio... | C++ | src/map/MapCppEMRSpacePoints/MapCppEMRSpacePoints.cc | mice-software/maus | gpl-3.0 | 17,957 | 502 | codeparrot/github-code |
6828d235e247b563a7b8befc36d3a28db0a57e26868a4254bd38890026b6b404 | /*
* OptionsOracle Interface Class Library
* Copyright 2006-2012 SamoaSky
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your optio... | C# | OOServerUS/Symbol.cs | Ciuco/OptionsOracle | gpl-3.0 | 2,888 | 60 | codeparrot/github-code |
59d52068785314b83628f63421f85576c75a3b11c2b3671de410dee5c7b7be8f | "use strict";
var uuid = require('node-uuid');
var crypto = require('crypto');
var NodeGeocoder = require('node-geocoder');
var secret = "I@Love@NNNode.JS";
var options = {
provider: 'google',
httpAdapter: 'https',
apiKey: 'AIzaSyBF9xb6TLxfTEji1O4UqL7rwZc16fQRctA',
formatter: null
};
var Util = function ()... | JavaScript | util.js | oczane/geochat | gpl-3.0 | 1,071 | 42 | codeparrot/github-code |
c784998437de192aab466c6b0da8fe507ceec52e3fe1e85f394c2ba03f18d181 | # Copyright (C) 2009 Mark Somerville <mark@scottishclimbs.com>
# Released under the General Public License (GPL) version 3.
# See COPYING
require "spandex/card"
require "spandex/list"
require_relative "../models/artist"
require_relative "tracks_card"
module Messier
class Messier::AlbumsCard < Spandex::Card
incl... | Ruby | lib/cards/albums_card.rb | Spakman/px_messier | gpl-3.0 | 1,545 | 61 | codeparrot/github-code |
6354b6232d3d7d7952eaa75e3ec441eb297ba75d4fab82e4c4e87fc5c6fe942c | /* This file is part of Clementine.
Copyright 2010, David Sansome <me@davidsansome.com>
Clementine is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your optio... | C | src/widgets/tracksliderslider.h | clementine-player/Clementine | gpl-3.0 | 1,495 | 57 | codeparrot/github-code |
05b8c6e11eb63405ec5535d8a700cb5f212a5de05cd7a68ffd49f054f938a761 | <?php
/* Copyright (C) 2010-2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2012-2015 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (... | PHP | htdocs/core/menus/standard/eldy.lib.php | atm-robin/dolibarr | gpl-3.0 | 89,494 | 1,545 | codeparrot/github-code |
ff566a3f9907edb4629b3b865ca73af478126b6cd9b341a5e261f2be901560bc | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of AudioLazy, the signal processing Python package.
# Copyright (C) 2012-2014 Danilo de Jesus da Silva Bellini
#
# AudioLazy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# ... | Python | examples/dft_pitch.py | antiface/audiolazy | gpl-3.0 | 3,525 | 111 | codeparrot/github-code |
112d0c84bf726d8b463dc931ebccd7e76788b4d092d1ae7c3df03e13482dd5ff | ////////////////////////////////////////////////////////////////////////////////
// Author: Thomas Arndt monotomy@cythar.sequenzer.org
// This file is part of CYTHAR Sequenzer
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published ... | C++ | dc_algorithm_rebeca.hpp | monotomy/CYTHAR-Sequenzer | gpl-3.0 | 11,484 | 267 | codeparrot/github-code |
60a597628104899cf864ea2b4c0d69b24047921941065d241ef9e3ef51a12c85 | <?php namespace eduTrac\Classes\Models;
if ( ! defined('BASE_PATH') ) exit('No direct script access allowed');
/**
* Role Model
*
* PHP 5.4+
*
* eduTrac(tm) : Student Information System (http://www.7mediaws.org/)
* @copyright (c) 2013 7 Media Web Solutions, LLC
*
* This program is free software; you can redis... | PHP | eduTrac/Classes/Models/RoleModel.php | vb2005xu/eduTrac | gpl-3.0 | 6,071 | 142 | codeparrot/github-code |
03a353d31767c574b91a28f0f9342f1eb1661d64db58b8e13379356824a007f2 | //This file is part of DictCCApp.
//
//DictCCApp 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.
//
//DictCCApp is distributed in the ... | C# | DictCCApp/Services/IndexCache.cs | universalappfactory/DictCCApp | gpl-3.0 | 1,800 | 56 | codeparrot/github-code |
4d77a1670e3d3ecf6240be579f23c2174fe6b2e8f7b7ca3eba232389c8537071 | ////////////////////////////////////////////////////////////////////////////
// Created : 26.02.2009
// Author : Armen Abroyan
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#ifndef TRANSFORM_CONTROL_ROTATION_H_INCLUDED
#define TRANSFORM_CONTROL_RO... | C | xray/editor/world/sources/transform_control_rotation.h | hpl1nk/nonamegame | gpl-3.0 | 2,588 | 86 | codeparrot/github-code |
0574e639f5d2621c2355906a09ae83e52a7f72254ad98e32f2c68c4cb7cc756e | /*
* Copyright (C) Pedram Pourang (aka Tsu Jan) 2014-2021 <tsujan2000@gmail.com>
*
* FeatherPad is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any ... | C | featherpad/tabwidget.h | tsujan/FeatherPad | gpl-3.0 | 1,786 | 70 | codeparrot/github-code |
c41aefc91fefda978a6bdd1c3c06de4aa2c37393da109e81fb8f5034e9095259 | import os
import tempfile
import zipfile
from PyQt5 import QtCore, QtWidgets
import util
from vaults.modvault import utils
FormClass, BaseClass = util.THEME.loadUiType("vaults/modvault/upload.ui")
class UploadModWidget(FormClass, BaseClass):
def __init__(self, parent, modDir, modinfo, *args, **kwargs):
... | Python | src/vaults/modvault/uploadwidget.py | FAForever/client | gpl-3.0 | 5,368 | 154 | codeparrot/github-code |
9f05df208dba5c13a02524861e84c01f927480a68a0fd381129ef0a5c618cc81 | import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* @author esloho
*
*/
public class PercolationTest {
private static final int SIZE = 5;
private Percolation percolation;
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
... | Java | PercolationAssignment/Percolation/test/PercolationTest.java | esloho/coursera-algorithmsI | gpl-3.0 | 1,762 | 85 | codeparrot/github-code |
932e58169eea189a851f9b987b927f1476571dd73ae145f38381540226a3c09f | /*
* VITacademics
* Copyright (C) 2015 Aneesh Neelam <neelam.aneesh@gmail.com>
* Copyright (C) 2015 Saurabh Joshi <saurabhjoshi94@outlook.com>
* Copyright (C) 2015 Gaurav Agerwala <gauravagerwala@gmail.com>
* Copyright (C) 2015 Karthik Balakrishnan <karthikb351@gmail.com>
* Copyright (C) 2015 Pulkit Juneja <... | Java | app/src/main/java/com/karthikb351/vitinfo2/customwidget/TimeLineView.java | saurabhsjoshi/VITacademics-for-Android | gpl-3.0 | 6,833 | 213 | codeparrot/github-code |
278f7e8c5b68835db4d385103af96a12c064f8aa06086a5cb65a2f1c36289d6f | #include "filemetadatamodule.hh"
#include "../config/config.hh"
#include "../common/debug.hh"
extern ConfigLayer *configLayer;
using namespace mongo;
/**
* @brief Default Constructor
*/
FileMetaDataModule::FileMetaDataModule(ConfigMetaDataModule* configMetaDataModule) {
_configMetaDataModule = configMetaDataMod... | C++ | codfs/src/mds/filemetadatamodule.cc | windkit/codfs-win | gpl-3.0 | 3,685 | 139 | codeparrot/github-code |
a1f458676e0dfb117da5a3aee2cbbc404ff812833cf2d91676d67b823ee64be0 | package eu.siacs.conversations.xmpp.forms;
import android.os.Bundle;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import eu.siacs.conversations.utils.Namespace;
import eu.siacs.conversations.xml.Element;
public class Data extends Element {
public st... | Java | src/main/java/eu/siacs/conversations/xmpp/forms/Data.java | kriztan/Pix-Art-Messenger | gpl-3.0 | 3,497 | 124 | codeparrot/github-code |
518d48557e6610683ab02bf0468b1b952c81f91a80e97a57362253bbe88d2742 | /*
* This file is part of ARSnova Mobile.
* Copyright (C) 2011-2012 Christian Thomas Weber
* Copyright (C) 2012-2015 The ARSnova Team
*
* ARSnova Mobile 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, e... | JavaScript | src/main/webapp/app/view/speaker/NewQuestionPanel.js | commana/arsnova-mobile | gpl-3.0 | 18,815 | 684 | codeparrot/github-code |
2d8067a90ac4f2e63bcc912c4760524a9a04d5eb176c0c278d835dff2b5f060e |
; ------------------------------------------------------------------
; os_wait_for_key -- Waits for keypress and returns key
; IN: Nothing; OUT: AX = key pressed, other regs preserved
os_wait_for_key:
pusha
mov ax, 0
mov ah, 10h ; BIOS call to wait for key
int 16h
mov [.tmp_buf], ax ; Store resu... | Assembly | source/features/keyboard.asm | Clickyhdd/swordfish-os | gpl-3.0 | 1,108 | 55 | codeparrot/github-code |
471278d1a3fb794aeeff9bcbf558a2350b26c143faa21fd47159b711cfa6281c | package com.sk89q.craftbook.bukkit;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.bukkit.ChatColor;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import com.sk89q.craftbook.Loca... | Java | src/main/java/com/sk89q/craftbook/bukkit/CircuitCore.java | wizjany/craftbook | gpl-3.0 | 41,280 | 687 | codeparrot/github-code |
b9c8c89efab3dbba69d77134b1dae38d8f13d82cfb42bf1ba1ddbcdcce50037a | // =====================================================================================
//
// Filename: os.hpp
//
// Description: kernel dependend
//
// Version: 1.0
// Created: 03/27/2016 12:36:24 PM
// Revision: none
// Compiler: g++
//
// Author: Marc Puttkammer (MP... | C++ | sys/os.hpp | CryptoCodez/CryptonixOS | gpl-3.0 | 1,538 | 71 | codeparrot/github-code |
092651166d4220ae20c19a7dab52f53d980e45db6acb5228044c7d3eddac9c15 | <?php
require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
require_once(dirname(__FILE__).'/lib.php');
$id = optional_param('id', 0, PARAM_INT); // course_module ID, or
$n = optional_param('n', 0, PARAM_INT); // vrssregistration instance ID - it should be named as the first character of the module
if ... | PHP | mod/subjectplugin/detailview.php | saurabh947/MoodleLearning | gpl-3.0 | 5,576 | 162 | codeparrot/github-code |
24b293fc3aa9af1628c7d725495b3d587de3e4b4685bb8da11befc18128f71dc | #region Copyright
/////////////////////////////////////////////////////////////////////////////
// Altaxo: a data processing and data plotting program
// Copyright (C) 2002-2011 Dr. Dirk Lellinger
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of t... | C# | Altaxo/Base.Presentation/Gui/Common/TextBlockUtilities.cs | Altaxo/Altaxo | gpl-3.0 | 3,938 | 110 | codeparrot/github-code |
5257d31257653a04dd796d085561936af9297c6140f4eb3962e862d19c5ca199 | /**
* Created by Akkadius on 2/10/2015.
*/
$(document).ready(function() {
var CalcDataTableHeight = function () {
return $(window).height() * 60 / 100;
};
var table = $("#npc_head_table").DataTable( {
scrollY: CalcDataTableHeight(),
scrollX: true,
scrollColl... | JavaScript | modules/NPC/ajax/npc_table.js | Akkadius/EQEmuEOC | gpl-3.0 | 4,786 | 150 | codeparrot/github-code |
7ff3eceff73a8aad527c9aaae4b1515a5e897784157a8e6bf2b6bd734dba464d | // ***********************************************************************************************
//
// Steca: stress and texture calculator
//
//! @file gui/view/plot_polefig.h
//! @brief Defines class PlotPolefig
//!
//! @homepage https://github.com/scgmlz/Steca
//! @license GNU General Public License ... | C | gui/view/plot_polefig.h | scgmlz/STeCa2 | gpl-3.0 | 1,154 | 44 | codeparrot/github-code |
74833564aafe847aa4a39748e933d31bab3df62d5335c8406d62aa630b79ed4d | <?
//giriş kontrol
@include ("giris_kontrol.php");
// oturumu baslatalım
@session_start();
// giriş bilgilerini alalım.
$giris=$_SESSION["giris"];
$ad=$_SESSION["user_kadi"];
// giriş kontrolü yapalım
// giriş yapılmış ise $giris true olmalı
if($giris){
// giriş yapılmış hoşgeldin..
$user_nick = trim($_POST['nick']);
$... | PHP | ferman/yonetim/acrophobia/islem_ekle.php | mustafairen/ferman | gpl-3.0 | 2,142 | 78 | codeparrot/github-code |
1d74318ff2f3fd06b68b0e8f996d449860fcb822a2441826d856b9f6e06580fe | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package jaddon.jlog;
import jaddon.controller.StaticStandard;
import java.io.InputStream;
import java.util.Scanner;
/**
... | Java | src/jaddon/jlog/SystemInputStream.java | Panzer1119/JAddOn | gpl-3.0 | 1,701 | 65 | codeparrot/github-code |
87db3038cb8e148ca3ec05c62f00eaadb455dbb0c17a1aeb67f8aeafa0976611 | package edu.stanford.rsl.conrad.phantom.xcat;
import java.util.Iterator;
import edu.stanford.rsl.conrad.geometry.AbstractShape;
import edu.stanford.rsl.conrad.geometry.AbstractSurface;
import edu.stanford.rsl.conrad.geometry.shapes.compound.CompoundShape;
import edu.stanford.rsl.conrad.geometry.shapes.simple.PointND;... | Java | src/edu/stanford/rsl/conrad/phantom/xcat/TessellationThread.java | YixingHuang/CONRAD | gpl-3.0 | 2,178 | 72 | codeparrot/github-code |
ef16ed31e686cc8855d0a40f1d95f447acb888dbf6fec4307dddc64139354fc9 | var mongoose = require('mongoose');
var characterSchema = new mongoose.Schema({
name: String,
userID: { type: mongoose.Schema.Types.ObjectId, ref: 'User' },
inventarID: { type: mongoose.Schema.Types.ObjectId, ref: 'Inventar' },
gender: String,
skincolor: String,
hair: Number,
haircolor: Str... | JavaScript | models/character.js | FA15bZombieSurvival/Zurival | gpl-3.0 | 3,251 | 85 | codeparrot/github-code |
81a0e8870b7c5f0ea08ee6db129243ad1fbdddac20f40214e9fc86adb30767d8 | package net.dungeonrealms.game.listener;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
import com.comphenix.protocol.eve... | Java | game/src/main/java/net/dungeonrealms/game/listener/TabCompleteCommands.java | TheSecretLife/DR-API | gpl-3.0 | 1,747 | 46 | codeparrot/github-code |
60db53b8c0f811febeb3a8e5f95fae97c56d77c64cd59d675543f7e4b5a7a98a | import { ExecuteInCurrentWindow, Inject, mutation, StatefulService } from 'services/core';
import {
EPlatformCallResult,
IPlatformState,
TPlatform,
TPlatformCapability,
TStartStreamOptions,
TPlatformCapabilityMap,
} from './index';
import { StreamingService } from 'services/streaming';
import { UserService ... | TypeScript | app/services/platforms/base-platform.ts | stream-labs/streamlabs-obs | gpl-3.0 | 4,263 | 142 | codeparrot/github-code |
887eed5073a4a0a531fdb2c9eef400e691255247a1efa59d6f313b064661fc67 | #include <cstdio>
#include <cmath>
#include "matrix.h"
#include "vector.h"
#include "quat.h"
using namespace std;
// ----------- Matrix3x3 --------------
Matrix3x3 Matrix3x3::identity = Matrix3x3(1, 0, 0, 0, 1, 0, 0, 0, 1);
Matrix3x3::Matrix3x3()
{
*this = identity;
}
Matrix3x3::Matrix3x3( scalar_t m11, scalar_t ... | C++ | libs/vmath/matrix.cc | MutantStargoat/calacirya | gpl-3.0 | 19,498 | 744 | codeparrot/github-code |
623e2ec0c376f549ca7560f37b21b51496095c5d231cd68225be7baa338b81ee | # -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2013 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.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, eithe... | Python | weblate/trans/views.py | power12317/weblate | gpl-3.0 | 68,326 | 2,042 | codeparrot/github-code |
395df4a7c76f2821cca9564836b58244ea9a07bef21c81ed4cc33e5addb2ca49 | package de.kontext_e.jqassistant.plugin.jacoco.scanner;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class JacocoScannerPluginTest {
@Test
public void aValidPathShouldBeAccepted() throws IOException {
... | Java | jacoco/src/test/java/de/kontext_e/jqassistant/plugin/jacoco/scanner/JacocoScannerPluginTest.java | kontext-e/jqassistant-plugins | gpl-3.0 | 2,557 | 84 | codeparrot/github-code |
77ac6cc797ca34ab0e0ae4a6bbd0d72563cf2cb312fd9ade8d1b7d5e8f542a08 | package org.usfirst.frc.team6162.robot;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.SampleRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
... | Java | SampleAutonomous/src/org/usfirst/frc/team6162/robot/Robot.java | wjaneal/liastem | gpl-3.0 | 3,396 | 100 | codeparrot/github-code |
b27c298c165c623c533f3ebbd2ef25e0d32032ba6e180cc13674ab31957183e1 | /*
This file is part of Subsonic.
Subsonic 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.
Subsonic is distributed in the hope that i... | Java | app/src/main/java/net/nullsum/audinaut/util/SilentBackgroundTask.java | nvllsvm/Audinaut | gpl-3.0 | 1,204 | 45 | codeparrot/github-code |
042a66db7510d5d4add577541d9caf8f4824e28a3f850596a0387d79bddf8f6f | <?php
namespace InstagramAPI\Request;
use InstagramAPI\Constants;
use InstagramAPI\Response;
use InstagramAPI\Response\Model\Item;
use InstagramAPI\Signatures;
use InstagramAPI\Utils;
/**
* Functions for interacting with media items from yourself and others.
*
* @see Usertag for functions that let you tag people ... | PHP | src/Request/Media.php | wowDaiver/Instagram-API | gpl-3.0 | 16,462 | 481 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.