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 |
|---|---|---|---|---|---|---|---|---|
b973dc9094696db137159e46fa42bdb21911ce2eed316c3511f6f4ba1e12cbba | #ifndef _LAYERS_H_
#define _LAYERS_H_
#include "neuralBase.h"
/*
* Frequently used network layers as building blocks.
*/
/**
* 0.5 * squared error loss function top layer and as the bottom layer arbitrary network (as long
* as the derivative w.r. to inputs exists as a matrix).
* Agnostic as to whether observat... | C | layers.h | gmavr/cppneural | agpl-3.0 | 9,233 | 301 | codeparrot/github-code |
38405b14c6043e274b89a90215477fa63e9bcfe01ea4df18002b0f6bde51bf4d | from endpoints_proto_datastore.ndb import EndpointsModel
from google.appengine.api import search
from google.appengine.ext import ndb
from protorpc import messages
class CaseStatusSchema(messages.Message):
name = messages.StringField(1)
status_changed_at = messages.StringField(2)
class Casestatus (Endpoints... | Python | crm/iomodels/casestatuses.py | ioGrow/iogrowCRM | agpl-3.0 | 1,555 | 39 | codeparrot/github-code |
8ada92f87279b771b58cfffd910b9eaca64efe48e3793fc6e732fa7595dcdd52 | <?php
namespace Sitioweb\Bundle\ArmyCreatorBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class GameType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
... | PHP | src/Sitioweb/Bundle/ArmyCreatorBundle/Form/GameType.php | armycreator/armycreator-website | agpl-3.0 | 779 | 33 | codeparrot/github-code |
eaecf77b35a79dd6b1bbad27367b6457141426f9e8745975f841be0592e4f6ab | from django.db import transaction
from rest_framework import serializers
from questions.models import Question, Choice
from votes.models import Vote, VoteChoice
from streams.models import Stream
from ..accounts.serializers import AccountSerializer
class VoteChoiceUserSerializer(serializers.ModelSerializer):
use... | Python | ballotify/apps/api_v1/questions/serializers.py | ballotify/django-backend | agpl-3.0 | 4,502 | 150 | codeparrot/github-code |
4a4207b30ce02c948c631102eb458d519f07c1f936c13978b2716ffdff8f30b4 | /*
* This file is part of ELKI:
* Environment for Developing KDD-Applications Supported by Index-Structures
*
* Copyright (C) 2019
* ELKI Development Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the... | Java | elki-core-util/src/main/java/elki/utilities/datastructures/range/ParseIntRanges.java | elki-project/elki | agpl-3.0 | 6,778 | 186 | codeparrot/github-code |
079f082e1deee6f31b1a9a9d53aed9100b096da9f97f4ef0dd2c1f042ed48ad7 |
use std::vec::Vec;
use std::io::{File, IoResult, SeekSet};
use std::mem::size_of;
use piston::image::{Rgba, Luma};
pub use self::animation::{Animation, AreaType};
pub use self::object_info::{ObjectInfo, Status};
pub use self::car_info::{CarInfo, Door, VehicleType};
pub use self::sprite_info::{SpriteInfo, Delta};
pub ... | Rust | src/style/mod.rs | gaudecker/rust-theft-auto | agpl-3.0 | 18,507 | 562 | codeparrot/github-code |
f4f2dd5a96ca4b55682267e84a0ad6f6775ef03f919b1897e6a039071defb211 | ##
# Copyright (C) 2018 Jessica Tallon & Matthew Molyneaux
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any late... | Python | inboxen/views/manifest.py | Inboxen/Inboxen | agpl-3.0 | 1,459 | 44 | codeparrot/github-code |
46c36ab38241485ff39db7a559abc138ba46833a03a9f7a89a61b67cde5e4378 | package ru.hflabs.izpack.panels;
import com.izforge.izpack.api.GuiId;
import com.izforge.izpack.api.data.InstallData;
import com.izforge.izpack.api.data.Panel;
import com.izforge.izpack.api.resource.Resources;
import com.izforge.izpack.gui.IzPanelLayout;
import com.izforge.izpack.gui.LabelFactory;
import com.izforge.i... | Java | rcd-distribution/izpack/src/main/java/ru/hflabs/izpack/panels/ExternalLicencePanel.java | hflabs/perecoder | agpl-3.0 | 5,399 | 155 | codeparrot/github-code |
2a20ffec70e3225d55cf84a3c7954339a37d3c0e94433abdfd154d92f68c8e1f | //------------------------------------------------------------------------------------------------//
// //
// P a r a b o l a //
// ... | Java | src/main/org/audiveris/omr/math/Parabola.java | Audiveris/audiveris | agpl-3.0 | 4,738 | 139 | codeparrot/github-code |
0e6ea533c7167b7cf2111b77fe3ed179032382415fd2c4ae49fb9c86ced352da | package lila.notify
import lila.db.dsl._
import org.joda.time.DateTime
private final class NotificationRepo(val coll: Coll) {
import BSONHandlers._
def insert(notification: Notification) = {
coll.insert(notification).void
}
def remove(notifies: Notification.Notifies, selector: Bdoc): Funit =
coll.r... | Scala | modules/notify/src/main/NotificationRepo.scala | clarkerubber/lila | agpl-3.0 | 2,353 | 72 | codeparrot/github-code |
e133031adb31c0e83046c538627626292b86c2766ee8f7937c264b5789674c25 | include Makefile.defs
# main target
all: $(OUTPUT_DIR)/libs $(if $(ANDROID),,$(LUAJIT)) \
$(if $(USE_LUAJIT_LIB),$(LUAJIT_LIB),) \
$(LUAJIT_JIT) \
libs $(K2PDFOPT_LIB) \
$(OUTPUT_DIR)/spec/base $(OUTPUT_DIR)/common $(OUTPUT_DIR)/rocks \
$(OUTPUT_DIR)/plugins $(LUASOCKET) \
$(OUTPUT_DIR)/ffi $(OUTPUT_DIR)/d... | Makefile | Makefile | Hzj-jie/koreader-base | agpl-3.0 | 6,847 | 194 | codeparrot/github-code |
80a93107d55c8037decccdbfb008221d756572c3fd9b4c8b04da29a4209cbbd2 | <?php
/***********************************************
* File : backend/combined/config.php
* Project : Z-Push
* Descr : configuration file for the
* combined backend.
*
* Created : 29.11.2010
*
* Copyright 2007 - 2016 Zarafa Deutschland GmbH
*
* This program is free software: you can... | PHP | serversetup/modules/email/activesync/z-push/backend/combined/config.php | the-linux-schools-project/karoshi-server | agpl-3.0 | 3,174 | 85 | codeparrot/github-code |
8a0061863f1ce21102f07b6a0e3ba14a0314f314de224bb71939df7de23d840f | <!DOCTYPE html>
<html lang="en"
>
<head>
<title>作業 - 2017協同產品設計實習 設計二甲 40423144 葉宗翰</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style t... | HTML | blog/category/zuo-ye.html | 40423144/2017springcd_hw | agpl-3.0 | 21,971 | 445 | codeparrot/github-code |
13f3db634e2f4dbeec0b86b6a1dc9a93ad5765e8636eb58f7a943c6e95a1df57 | package edu.yu.einstein.wasp.integration.selenium;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
... | Java | wasp-integration-test/src/test/java/edu/yu/einstein/wasp/integration/selenium/SelApproveNewJob.java | WASP-System/central | agpl-3.0 | 7,020 | 162 | codeparrot/github-code |
b8b5de0ab9ecc89daaef0a831f4f638ae66c949e2097837bf2bf694abe418181 | var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#datatable-post').dataTable( {
"bProcessing": true,
"sAjaxSource": "/posts/all",
"bJQueryUI": true,
"aoColumns": [
{ "mDataProp": function (id) {
return '<input type=\"checkbox\" value="'+id.id +'">';} },
... | JavaScript | public/admin/js/posts/post.js | opencodes/nodepress | agpl-3.0 | 1,498 | 49 | codeparrot/github-code |
5950bc344e0a3339d9f0e360ac907d3a96def165aefe0b2e1b77ec4200b30f3a | /*
* Copyright (C) 2012-2013 Fanout, Inc.
*
* This file is part of Pushpin.
*
* Pushpin is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option)
* any... | C | proxy/src/engine.h | ksmaheshkumar/pushpin | agpl-3.0 | 1,997 | 88 | codeparrot/github-code |
dd1ce7ffb34486568297a91d86e9e6c13c955b3f35556adec889f15aa70a884e | /*
* StuReSy - Student Response System
* Copyright (C) 2012-2014 StuReSy-Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your opt... | Java | src/sturesy/android/controllers/ErrorDialog.java | brunsen/sturesy-android-client | agpl-3.0 | 1,576 | 50 | codeparrot/github-code |
78f52a2fe972561f1ed00eda29b5b8cda07381fdd1bbb0b9e9d47952bbe95f5b | import re
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
from django.utils.feedgenerator import Atom1Feed
from django.utils.text import slugify
from django.utils.translation import ugettext_lazy as _
from .models import Logge... | Python | candidates/feeds.py | datamade/yournextmp-popit | agpl-3.0 | 1,820 | 57 | codeparrot/github-code |
c6c1b09dcb36a1dbe2f97e4182a488b0ca5e2e9eb317611780f1d74a8d8cc196 | /*
* Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | C | Src/OSF/OpenSSL-111/crypto/modes/ctr128.c | papyrussolution/OpenPapyrus | agpl-3.0 | 4,759 | 209 | codeparrot/github-code |
5b532f7c250f48d1d1d8d58e76b82e2c0a543017d25bd0ce2388b785c5f245f6 | #include "bitbox.h"
#include "unlocks.h"
#include "sprites.h"
#include "hit.h"
#include "run.h"
#include "tiles.h"
#include <stdlib.h> // rand
// break sprites up into 16x16 tiles:
uint8_t sprite_draw[128][16][8] CCM_MEMORY; // 16 sprites, 8 frames, 16x16 pixels...
uint8_t sprite_pattern[16][32] CCM_MEMORY;
/*
info ... | C | src/sprites.c | lowagner/bitbox-16 | agpl-3.0 | 10,635 | 357 | codeparrot/github-code |
cb2955c5ce0c8258e741de37df4768378cee41df13df7aa400056318cfcde845 | <?php /* Smarty version Smarty-3.1.12, created on 2015-11-10 08:29:57
compiled from "/home/gam/themes/Backend/ExtJs/backend/article_list/model/filter.js" */ ?>
<?php /*%%SmartyHeaderCode:94401314656419cf54a5869-73882352%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->dec... | PHP | var/cache/production_201510221322/templates/backend_en_GB_a0ba8/94/fb/f1/94fbf12c7a1eddc34f42db060bc01810b2a1a2f2.snippet.filter.js.php | gamchantoi/AgroSHop-UTUAWARDS | agpl-3.0 | 5,050 | 123 | codeparrot/github-code |
6b00468c068866e6d0343ac002b76b0ab62d0250bf4b5b3932fddaea99929461 | /*-----------------------------------------------------------------------------
**
** - Oh Jasmin Dynamic DNS -
**
** Copyright 2000 - 2015 by
** SwordLord - the coding crew - http://www.swordlord.com
** and contributing authors
**
** This program is free software; you can redistribute it and/or modify it
** u... | JavaScript | utilities/update_dyndns.js | LordEidi/ohjasmin.js | agpl-3.0 | 2,772 | 95 | codeparrot/github-code |
019b40f45c280fedf358378068e0596efe01207396b5062405a2ebf92aac0e20 | <?php
class Model_Users extends Model_Table {
var $table= "users";
function init(){
parent::init();
$this->hasOne('Epan','epan_id')->mandatory(true);
//$this->addCondition('epan_id',$this->api->current_website->id);
$f=$this->addField('name')->group('a~6~<i class="fa fa-user"></i> User Info')->mandatory... | PHP | lib/Model/Users.php | xepan/xepan | agpl-3.0 | 4,666 | 120 | codeparrot/github-code |
2cd63e8860093871af75a659d16cf5727d1d18901b72e430366c234e748d0a75 | var Value = require('mutant/value')
var MutantMap = require('mutant/map')
var watch = require('mutant/watch')
var computed = require('mutant/computed')
var doubleBind = require('lib/double-bind')
var resolveNode = require('lib/resolve-node')
var throttle = require('mutant/throttle')
var ShapeSlots = require('lib/shape-... | JavaScript | lib/template-slot.js | mmckegg/loop-drop-app | agpl-3.0 | 3,035 | 129 | codeparrot/github-code |
a9e72e0469ccf63b030c839a81379222564415e1cce81712ef8524c2a9cc834d | // ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | C | KalturaClient/KalturaClient/KalturaPlugins/KalturaComcastMrssDistributionClientPlugin.h | kaltura/KalturaGeneratedAPIClientsObjectiveC | agpl-3.0 | 4,508 | 111 | codeparrot/github-code |
3db6967b3bf5e437e804011a91f167d440fc0c1f7bda41f6d4222034aa235993 | <?php
/**
* iTop's Portal
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* @copyright Copyright (c) 2015 Emmaunel Lozachmeur (http://emmanuel.synology.me)
* @version $Id$
* @author Emmanuel Lozachmeur <emmanuel.lozachmeur@gmail... | PHP | library/Portal/Dashboard/Dashboard.php | Sparfel/iTop-s-Portal | agpl-3.0 | 10,953 | 315 | codeparrot/github-code |
26a1376b78da87d6e0e28682551f06b27d97311f490cb5bdc5be7816f7d955d5 | /*
* ljpapi - Libre Java Pathfinding API
* Copyright (C) 2015 Delwink, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 only.
*
* This program is distributed in the... | Java | src/com/delwink/ljp/Character.java | delwink/ljpapi | agpl-3.0 | 4,652 | 225 | codeparrot/github-code |
b53c2c6f0de0f76f635e3cbbab839620e3b147484a8979b87fcf9fa08194db34 | # frozen_string_literal: true
module Decidim
module Conferences
module Admin
# A form object used to create conferences from the admin
# dashboard.
#
class ConferenceForm < Form
include TranslatableAttributes
include Decidim::HasUploadValidations
translatable_attr... | Ruby | decidim-conferences/app/forms/decidim/conferences/admin/conference_form.rb | mainio/decidim | agpl-3.0 | 4,727 | 120 | codeparrot/github-code |
7675210adb76471aa7089e221532b995ab4f29b40886a3b12c609abce65f9105 | /**********************************************************************\
* Copyright (C) Michael Kerrisk, 2010. *
* *
* This program is free software. You may use, modify, and redistribute *
* it under the terms of the ... | C | xattr/xattr_view.c | tangyi/tlpi-dist | agpl-3.0 | 2,316 | 81 | codeparrot/github-code |
8cec49580a791d5dfec53fef99063869a2c2795c97d6d61a4d7be692edbfea8d | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
namespace SampleWPFTrader
{
/// <Summary>
///
/// IG Trader WPF Sample Application
///
///
/// Copyright 2014 IG Index
///
/// Licensed under the Apache License, Versi... | C# | IGApi/SampleWPFTrader/ICommand.cs | JBetser/MiDax | agpl-3.0 | 1,763 | 67 | codeparrot/github-code |
ca6dcaa901ecb01f7df71343f72d2014bb5f2928da2e8e02f56c4129ab81de52 | <html>
<head>
<title>WebGL</title>
<meta charset="utf-8">
<style>#map { width: 800px; height: 600px; }</style>
<!-- Leaflet -->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<!--... | HTML | views/debug/setfilter-2198.html | mapic/engine | agpl-3.0 | 2,802 | 116 | codeparrot/github-code |
dc464b01e67e91c92df87e71bfc9af209c7b5ce42a5efaaef5dde946d1185fba | var config = require('../config')
var gulp = require('gulp')
var browserSync = require('browser-sync')
var sass = require('gulp-sass')
var sourcemaps = require('gulp-sourcemaps')
var handleErrors = require('../lib/handleErrors')
var autoprefixer = require('gulp-autoprefixer')
var path = require('path')
var concatCss =... | JavaScript | gulpfile.babel.js/tasks/css.js | aAXEe/online_chart_ol3 | agpl-3.0 | 952 | 31 | codeparrot/github-code |
f839a36c84029c50764acffe5432c98be2c5946cd991566a931574cb664d0978 | #require 'carrierwave/orm/mongoid'
class User
include Mongoid::Document
include Mongoid::Timestamps
devise :database_authenticatable, :confirmable, :lockable, :recoverable, :rememberable, :registerable, :trackable, :timeoutable, :validatable, :token_authenticatable
# attr_accessible :avatar, :remote_avatar_ur... | Ruby | app/models/user.rb | fredix/teemit | agpl-3.0 | 4,798 | 179 | codeparrot/github-code |
3c499ecb0d25e7a359b350823fc354073aa054f2d0ba73a913aa9e00810174b9 | /**
* Copyright (C) 2001-2019 by RapidMiner and the contributors
*
* Complete list of developers available at our web site:
*
* http://rapidminer.com
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License as published by ... | Java | src/main/java/com/rapidminer/gui/properties/celleditors/value/CronExpressionCellEditor.java | aborg0/rapidminer-studio | agpl-3.0 | 5,256 | 173 | codeparrot/github-code |
109a3fc606eaab90ee50fd2667b1bc008a612d0f8e0afe819d15c00a65fa58b2 | /* This file is part of VoltDB.
* Copyright (C) 2008-2016 VoltDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any la... | Java | src/frontend/org/voltdb/plannodes/AggregatePlanNode.java | paulmartel/voltdb | agpl-3.0 | 25,750 | 668 | codeparrot/github-code |
b85021c77ae55f0136cc4891dbb4ccdb1f09d5656096c4a1ddddf907cee4fd24 | /**
* Axelor Business Solutions
*
* Copyright (C) 2005-2015 Axelor (<http://axelor.com>).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distr... | Java | axelor-web/src/main/java/com/axelor/web/service/ViewService.java | marioestradarosa/axelor-development-kit | agpl-3.0 | 10,520 | 380 | codeparrot/github-code |
992f104e9699c39c11078539a5ed9d749033c9424b2940918dc764aeb2568509 | smalltalk.addPackage('Compiler-IR', {});
smalltalk.addClass('IRASTTranslator', smalltalk.NodeVisitor, ['source', 'theClass', 'method', 'sequence', 'nextAlias'], 'Compiler-IR');
smalltalk.IRASTTranslator.comment="I am the AST (abstract syntax tree) visitor responsible for building the intermediate representation graph.\... | JavaScript | amber/src/js/Compiler-IR.js | lolgzs/opacce | agpl-3.0 | 95,666 | 3,147 | codeparrot/github-code |
9dba1fd1216763864fd849842b67115ad80c6a82c9ef1fb9965097190a85bb50 | /* *********************************************************************
*
* This file is part of Full Metal Galaxy.
* http://www.fullmetalgalaxy.com
*
* Full Metal Galaxy is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License
* as publi... | Java | src/com/fullmetalgalaxy/model/persist/EbRegistration.java | kroc702/fullmetalgalaxy | agpl-3.0 | 12,262 | 496 | codeparrot/github-code |
71ea1d349c84d6f0036e23949d6a874b9a7568132bb8a333a9b07f5281a00a75 |
/*********************************************************************************
MorphyChess 1.0.5 Copyright (C) 2008 Dominic C. Marcello (dmarcello@phys.lsu.edu)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
... | C | src/static_evaluator.c | dmarce1/MorphyChess | agpl-3.0 | 20,763 | 643 | codeparrot/github-code |
0e628dd6f9b81cc1c9151052bd75217553aca79314a51fb1d877e6cf579c391f | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2016 Alec Jacobson <alecjacobson@gmail.com>
//
// 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://... | C++ | src/libigl/igl/xml/writeDAE.cpp | prusa3d/Slic3r | agpl-3.0 | 4,103 | 139 | codeparrot/github-code |
585ec60f9472866b61ab635492d653aec4d91f1b79aaf1efd9eaeee3f2f64102 | {% extends "layout.html" %}
{% block body %}
<div id="privacy">
<h1>Old Panopticlick Privacy Policy (Jan 27, 2010 - Dec 17, 2015)</h1>
<p>The goal of this project is to measure and study how uniquely identifiable
web browsers are. All of the data for the project will be collected in an
anonymized f... | HTML | templates/privacy_1_0.html | EFForg/panopticlick-python | agpl-3.0 | 6,097 | 132 | codeparrot/github-code |
37f4f2016009a7ed2e3137b38cd0545e54036ec66184fe6ca117cf7bdfb99725 | # --
# Copyright (C) 2001-2016 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
package Kernel::System::Stats::Dynamic::Ticket... | Perl | Kernel/System/Stats/Dynamic/TicketList.pm | crythias/otrs | agpl-3.0 | 67,552 | 1,867 | codeparrot/github-code |
8e6bf918bd26e888af5ac18b3d6b08b88bf09b1c3e20b465e50bc1fc717f67a7 | #!/usr/bin/env python
# coding=utf-8
# ---------------------------------------------------------------------------
# Messages compiler for Ajenti plugins.
#
# Copyright (C) 2015 Marc Bertens <m.bertens@pe2mbs.nl>
# Adapted from make_messages.py by Eugene Pankov
#
# This program is free software: you can redistribut... | Python | make_messages.py | pe2mbs/ajenti-mdadm | agpl-3.0 | 4,684 | 138 | codeparrot/github-code |
9d9f7de7e26a4831a961a47f6f15d56b745592892d4227ee652eba4133f7df0e | /**
* Zillians MMO
* Copyright (C) 2007-2011 Zillians.com, Inc.
* For more information see http://www.zillians.com
*
* Zillians MMO is the library and runtime for massive multiplayer online game
* development in utility computing model, which runs as a service for every
* developer to build their virtual world r... | C | include/language/stage/transformer/visitor/ImplicitConversionStageVisitor.h | zillians/supercell_language | agpl-3.0 | 6,344 | 199 | codeparrot/github-code |
6465e9c5f6162487746733aa430ac584d301e2aec1dcd7891e59dd51843bf0dd | #ifndef _BUILDERS_H
#define _BUILDERS_H
#include "../../src/conf.h"
#include "../../src/cmd.h"
#include "server/build_storage_dirs.h"
#include "server/protocol2/champ_chooser/build_dindex.h"
#define RMANIFEST_RELATIVE "rmanifest_relative"
#define CLIENTCONFDIR "clientconfdir"
extern char **build_paths(const char *p... | C | utest/builders/build.h | rubenk/burp | agpl-3.0 | 1,580 | 42 | codeparrot/github-code |
5c90ebbc9164c2d6d4da1f356583c39867f02abf5f523ae312a51a350a281050 | #!/usr/bin/perl
# --
# bin/otrs.CheckModules.pl - to check needed cpan framework modules
# Copyright (C) 2001-2013 OTRS AG, http://otrs.com/
# --
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU AFFERO General Public License as published by
# the Free Software Found... | Perl | bin/otrs.CheckModules.pl | mychll31/CAB | agpl-3.0 | 17,878 | 642 | codeparrot/github-code |
340a4edf385ab0389791a5bbea8c97642db46dbb250ea1953c77d4664a65b685 | local command = 'who'
local doc = [[```
$doc_who*
$alias*: /who
```]]
local action = function(msg)
if msg.reply_to_message then
msg = msg.reply_to_message
end
local from_name = msg.from.first_name
if msg.from.last_name then
from_name = from_name .. ' ' .. msg.from.last_name
end
if msg.from.username then
f... | Lua | plugins/whoami.lua | TiagoDanin/SiD | agpl-3.0 | 1,144 | 50 | codeparrot/github-code |
344823520c429315f8f8e11d8eb16105237cf37b69a0da6e4ef207be0fe10850 | // ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | Java | src/com/kaltura/client/types/KalturaSystemPartnerUsageFilter.java | moskiteau/KalturaGeneratedAPIClientsJava | agpl-3.0 | 3,313 | 89 | codeparrot/github-code |
c2fc9115c4e57e696d80934b6dba3ef03bc1d62d17b386602cd2a9904fc993bd | /*
* File: TextView.h
* Author: maxence
*
* Created on 1 novembre 2014, 11:37
*/
#ifndef TEXTVIEW_H
#define TEXTVIEW_H
#include <SFML/Graphics/RenderTarget.hpp>
#include <SFML/Graphics/Drawable.hpp>
#include <SFML/Graphics/Text.hpp>
#include "shared/Font.h"
#include <string>
enum TypeAlign {
Regular,
... | C | src/include/tbs/client/view/TextView.h | rgrimmer/TheBestSailor | agpl-3.0 | 1,039 | 52 | codeparrot/github-code |
87ff42499a07509abe9451d9ffe16dd79cbb0174b2d4fa494d81bb4fecb3b56e | /**
******************************************************************************
* @file WWDG/WWDG_Example/Src/main.c
* @author MCD Application Team
* @version V1.2.5
* @date 29-January-2016
* @brief This sample code shows how to use the STM32F4xx WWDG HAL API
* to update at ... | C | STM32Cube_FW_F4_V1.11.0/Projects/STM324xG_EVAL/Examples/WWDG/WWDG_Example/Src/main.c | mariobarbareschi/stm32-compiler-docker | agpl-3.0 | 8,968 | 253 | codeparrot/github-code |
79b0cd1dbe00dbfd7417ab2308f6431183b61ae5526974a2a83e223230110ce3 | <?php
/*
* Fusio
* A web-application to create dynamically RESTful APIs
*
* Copyright (C) 2015-2020 Christoph Kappestein <christoph.kappestein@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the F... | PHP | src/Table/Plan/Contract.php | k42b3/fusio-impl | agpl-3.0 | 1,915 | 65 | codeparrot/github-code |
2cdd94bb759d53e1782ac584e3af28e0699cd2c6cf22ba311d0a6669cb3dfe09 | /**
* Copyright (c) 2016 DeepCortex GmbH <legal@eventql.io>
* Authors:
* - Paul Asmuth <paul@eventql.io>
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License ("the license") as
* published by the Free Software Foundation, either ... | C | src/eventql/util/charts/areachart.h | eventql/eventql | agpl-3.0 | 14,485 | 527 | codeparrot/github-code |
a36eaa52e882ddc73574fa27dfb8d5436e94f797cfdf69dcf10f856c86d6ba26 | # Copyright 2018 Cloudbase Solutions Srl
# All Rights Reserved.
from oslo_policy import policy
from coriolis.policies import base
REPLICA_EXECUTIONS_POLICY_PREFIX = "%s:replica_executions" % (
base.CORIOLIS_POLICIES_PREFIX)
REPLICA_EXECUTIONS_POLICY_DEFAULT_RULE = "rule:admin_or_owner"
def get_replica_executi... | Python | coriolis/policies/replica_tasks_executions.py | cloudbase/coriolis | agpl-3.0 | 2,399 | 84 | codeparrot/github-code |
c0612be73bc660de637783c7c6ec24fbb4264d33453250574ed33c3ee493ba57 | # Copyright 2011, Thomas G. Dimiduk
#
# This file is part of GroupEng.
#
# GroupEng is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versi... | Python | src/input_parser.py | tdimiduk/groupeng | agpl-3.0 | 2,845 | 91 | codeparrot/github-code |
bd3c626eb4113cc7d19923acc5c7cb1a07998d54b2127d661c03830213f9dfa4 | <?php
/**
* @package api
* @subpackage objects
* @abstract
* @relatedService PermissionItemService
*/
abstract class KalturaPermissionItem extends KalturaObject implements IRelatedFilterable
{
/**
* @var int
* @readonly
* @filter eq,in,order
*/
public $id;
/**
* @var KalturaPermissionItemType
*... | PHP | api_v3/lib/types/permission/KalturaPermissionItem.php | kaltura/server | agpl-3.0 | 1,346 | 99 | codeparrot/github-code |
adc35996bd99bc803527358c1d6d29b804a295e6baec10b36eeb9a6669bb510d | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2016 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in the file __manifest__.py... | Python | thankyou_letters/models/account_invoice_line.py | ecino/compassion-modules | agpl-3.0 | 3,938 | 109 | codeparrot/github-code |
0d165624066c953dd8747229d3bd29d968f37ad65ea4828094714ee7c09e676d | /*
*
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version ... | C++ | src/lib/rest/OrionError.cpp | fiwareulpgcmirror/fiware-orion | agpl-3.0 | 4,837 | 206 | codeparrot/github-code |
e7b81536149421275996d4fbc42986a4f3f047ca7e692624894713909fef4ece | /*
* Data Hub Service (DHuS) - For Space data distribution.
* Copyright (C) 2013,2014,2015 GAEL Systems
*
* This file is part of DHuS software sources.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Fre... | Java | client/gwt/src/main/java/fr/gael/dhus/gwt/share/MetadataIndexData.java | jletellier/DataHubSystem | agpl-3.0 | 2,126 | 87 | codeparrot/github-code |
7bda9bb39401c094032caa8bdf1b13da4f34c990960e6e2cbaa17a4b468f5e80 | /*
Copyright 2010 Jeremie Gottero
This file is part of Fallen Galaxy.
Fallen Galaxy is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | Java | src-server/fr/fg/server/servlet/format/IntegerRangeFormat.java | Orichievac/FallenGalaxy | agpl-3.0 | 2,154 | 74 | codeparrot/github-code |
4096f4a8a0bd257da452d0517fa6aa6ad011968273930429e92da82169ec7225 | /*
* CDDL HEADER START
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* http://www.sun.com/cddl/cddl.html and legal/CDDLv1.0.... | Java | web-core/src/main/java/com/sun/portal/portletcontainer/admin/mbeans/PortletAdmin.java | stephaneperry/Silverpeas-Core | agpl-3.0 | 7,861 | 193 | codeparrot/github-code |
a32294efe917c58c30a3102d0bf7f139aa18345404d81ed04c4c90f5f2497113 | """
This file contains signal handlers for credentials-related functionality.
"""
from logging import getLogger
from django.contrib.sites.models import Site
from common.djangoapps.course_modes.models import CourseMode
from lms.djangoapps.certificates.models import CertificateStatuses, GeneratedCertificate
from lms.... | Python | openedx/core/djangoapps/credentials/signals.py | stvstnfrd/edx-platform | agpl-3.0 | 6,532 | 163 | codeparrot/github-code |
765f9ce9268af9cee12bafa99273405d4cc1c3ff72d4004a93c999860566a10e | #!/bin/bash
redhat_set_variables() {
return 0
}
redhat_pre_run() {
return 0
}
redhat_install_distro_packages() {
local source_dir="$1"
local install_dir="$2"
local distro_version="${3:-0}"
echo Checking for crontab availability
if ! hash crontab &>/dev/null; then
yum -y install vixie-cron
fi
... | Shell | install/install.redhat.sh | devpanel/serverlink | agpl-3.0 | 4,856 | 182 | codeparrot/github-code |
2e647b6cd00636dd4c49777b99a389849f62ef4352715e174d76266ba80a4d79 | /*
* Copyright (c) 2012 - 2020 Splice Machine, Inc.
*
* This file is part of Splice Machine.
* Splice Machine is free software: you can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License as published by the Free Software Foundation, either
* version 3, or (at your option) ... | Java | splice_machine/src/test/java/com/splicemachine/derby/impl/sql/execute/operations/WindowFunctionWithFrameIT.java | splicemachine/spliceengine | agpl-3.0 | 27,791 | 632 | codeparrot/github-code |
193adca39000970f7fea86a4bf9e844f058be63d8da97af0a0ffef7270898bc6 | <?php
/**
* Table Definition for irc_waiting_message
*/
class Irc_waiting_message extends Managed_DataObject {
public $__table = 'irc_waiting_message'; // table name
public $id; // int primary_key not_null auto_increment
public $data; // b... | PHP | plugins/Irc/classes/Irc_waiting_message.php | charlycoste/StatusNet | agpl-3.0 | 3,740 | 100 | codeparrot/github-code |
e6d49c01b67587c434b02256bf04acbed0a5da119444dae9f236f251716343f6 | /*
* Copyright (C) 2013-2018 The enviroCar project
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* ... | Java | rest/src/main/java/org/envirocar/server/rest/rights/AccessRightsImpl.java | autermann/enviroCar-server | agpl-3.0 | 11,255 | 500 | codeparrot/github-code |
4ea5d21c0512b86df6bac24622719a6b20c558c2f96c9ebdc78f68af37056abe | package com.x.query.core.express.plan;
import java.math.RoundingMode;
import java.text.Collator;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import ja... | Java | o2server/x_query_core_express/src/main/java/com/x/query/core/express/plan/StatPlan.java | o2oa/o2oa | agpl-3.0 | 14,061 | 387 | codeparrot/github-code |
cbc7fdb4fb40be71b211bc7554f880d9508df5d6336ed252dff7c9760e5813ec | // GENCPP.CPP
// Copyright (c) A.Sobolev 2006, 2007, 2008, 2010, 2016, 2018, 2020, 2022
//
#include <slib-internal.h>
#pragma hdrstop
Generator_CPP::Generator_CPP(const char * pFileName) : SFile(), Indent(0)
{
Open(pFileName);
}
int Generator_CPP::Open(const char * pFileName)
{
Indent = 0;
return pFileName ? SFile... | C++ | Src/SLib/gencpp.cpp | papyrussolution/OpenPapyrus | agpl-3.0 | 5,463 | 233 | codeparrot/github-code |
3d7407a1efa0c2d134076febe6187ada82411cdcdf5c14aab47b42a5d894b423 | <?php
namespace AppBundle\Controller;
use AppBundle\Service\OaiService;
use League\Flysystem\FilesystemInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Response;
class OaiController extends AbstractContro... | PHP | src/AppBundle/Controller/OaiController.php | subugoe/nlh-app | agpl-3.0 | 1,449 | 60 | codeparrot/github-code |
626b0f121e5198dbed3daefcd1b203dc0103758dc443f35f40d174004942083a | /*
Copyright 2002-2013 CEA LIST
This file is part of LIMA.
LIMA is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later versi... | C | lima_common/src/common/FsaAccess/AbstractLexiconIdGenerator.h | FaizaGara/lima | agpl-3.0 | 2,881 | 73 | codeparrot/github-code |
a98a95ec3e97b785e101b706dfeb3a56b65b89b87fdb58d37cf02a3bbf891757 | <?php
/**
* StatusNet, the distributed open-source microblogging tool.
*
* Check email
*
* Returns 1 if email is already in use on this instance, 0 if not. Error if site is private.
*
* PHP version 5
*
* LICENCE: This program is free software: you can redistribute it and/or modify
* it under the terms of the... | PHP | actions/apiqvittercheckemail.php | mitchellurgero/Qvitter | agpl-3.0 | 2,468 | 90 | codeparrot/github-code |
17cdc273f42bb9768d6e1c778c2c171250e2e52c084a6a3a9fd20592333c438e | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO.Ports;
namespace AffinedLibrary
{
/// <summary>
/// Handles the serial device from connecting to sending and receiving data.
/// </summary>
public class SerialDevice
... | C# | Affined/AffinedLibrary/SerialDevice.cs | TheDocter/Affined | agpl-3.0 | 6,036 | 217 | codeparrot/github-code |
c262385728697c40592f70eab5c554a21d7475995f8216fbe03f352d4a799e8e | package com.imcode.entities.oauth2;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonValue;
import org.springframework.security.oauth2.common.OAuth2RefreshToken;
import java.io.Serializable;
/**
* Created by vitaly on 22.05.15.
*/
//@Embeddable
public class JpaRefreshToken... | Java | ivis-server/src/main/java/com/imcode/entities/oauth2/JpaRefreshToken.java | imCodePartnerAB/iVIS | agpl-3.0 | 1,559 | 71 | codeparrot/github-code |
177f24fa344941197c463622c128e0707250379ea88d6e28818f41881ff233be | <?php
/**
* StatusNet, the distributed open-source microblogging tool
*
* Action for displaying the public stream
*
* PHP version 5
*
* LICENCE: This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software... | PHP | actions_old/public.php | gayathri6/stepstream_salute | agpl-3.0 | 10,314 | 296 | codeparrot/github-code |
84a360e6a2da86566a9eb581ba65919a032804dd52828b67600b14a72255b019 | import { jsonStream } from "../streams";
import highland from "highland";
import jsonFormat from "json-format";
test('jsonStream', async () => {
const template = {
test1: "%var1%",
test2: {
one: "one",
two: "%var2%",
three: "three"
},
test3: "%var3%",
test4: "%var4%",
test5: "%var5%",
test6: "%... | TypeScript | server/src/utils/__tests__/streams.test.ts | FacilMap/facilmap | agpl-3.0 | 927 | 43 | codeparrot/github-code |
6682bc848704f9747798bfe70761ec4cfc22b349f4f8478e28e3cbb54abaebe3 | // ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | Java | src/com/kaltura/client/types/KalturaControlPanelCommandListResponse.java | moskiteau/KalturaGeneratedAPIClientsJava | agpl-3.0 | 2,759 | 75 | codeparrot/github-code |
bc674e14d374c3d9d082a030672a49ac2ff91a2658416455949a0eb79d7c0959 | /************************************************************************
This file is part of Freekick.
Freekick is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or... | C | src/freekick/match/messages/SingularMessage.h | anttisalonen/freekick | agpl-3.0 | 1,454 | 50 | codeparrot/github-code |
bf67b0ddd3c29adef7705a9171d2c21cbf974d1be9e7c37e9ddc709bb564d4bf | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
#################################################################
#
# ProActive Parallel Suite(TM): The Java(TM) library for
# Parallel, Distributed, Multi-Core Computing for
# Enterprise Grids & Clouds
#
# Copyright (C) 1997-2011 INRIA/University of
# ... | Python | palinagent/daemon/controller.py | ow2-proactive/agent-linux | agpl-3.0 | 3,298 | 86 | codeparrot/github-code |
e5a64fc1be37257140b2cf4ddeb7cf169b38d81aaf179a0ac2aca059ac959766 | /*
jBilling - The Enterprise Open Source Billing System
Copyright (C) 2003-2009 Enterprise jBilling Software Ltd. and Emiliano Conde
This file is part of jbilling.
jbilling is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as... | Java | classes/com/sapienter/jbilling/server/customer/ICustomerSessionBean.java | PaloAlto/jbilling | agpl-3.0 | 1,183 | 31 | codeparrot/github-code |
5a32db3dfaeffd10422c6881ea67b775ecc6a036aec63fa1d3e6c629321ffb4c | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the ... | PHP | library/Zend/Auth/Adapter/Http.php | WhiteLabelReady/WhiteLabelTransfer | agpl-3.0 | 30,371 | 870 | codeparrot/github-code |
eebfbc9d171aac41140c2624175772cc084ed9c2f1f7fa42db2b12261efac430 | <!DOCTYPE html>
<html lang="en"
>
<head>
<title>Course - 2017Spring 協同產品設計實習 (2017 springcd_bg8)</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">... | HTML | blog/category/course.html | 40423216/2017springcd_bg8 | agpl-3.0 | 27,415 | 594 | codeparrot/github-code |
86cbb4dac450de9538b6188a4ac7bee98695d5c66cf6cc17c8476ebed5932e99 | /*
YUI 3.10.0 (build a03ce0e)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('dd-drop', function (Y, NAME) {
/**
* Provides the ability to create a Drop Target.
* @module dd
* @submodule dd-drop
*/
/**
* Provi... | JavaScript | identityprovider/static/yui/3.10.0/dd-drop/dd-drop.js | miing/mci_migo | agpl-3.0 | 17,983 | 562 | codeparrot/github-code |
3bbd352b410d8cafec2dc0d649a64d27934c5d4cb70d5394736874b2e64e5c33 | /** @file
* @brief A position list in a glass database.
*/
/* Copyright (C) 2005,2006,2008,2009,2010,2011,2013,2016,2017,2019 Olly Betts
*
* 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; e... | C | Src/OSF/xapian/xapian-core/backends/glass/glass_positionlist.h | papyrussolution/OpenPapyrus | agpl-3.0 | 5,763 | 186 | codeparrot/github-code |
255fe6e574f22cc373e277378119dde79da1bc909b1d51447de6fb3a58282d78 | <?php
// Copyright (C) 2010-2012 Combodo SARL
//
// This file is part of iTop.
//
// iTop is free software; you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your opt... | PHP | web/datamodels/2.x/itop-service-mgmt-provider/en.dict.itop-service-mgmt-provider.php | sheyam/IncidentManagement | agpl-3.0 | 23,393 | 525 | codeparrot/github-code |
6b9cda9f2cc210e3ca61bca928481bb8324617c42d9a7f3547dd850a1dc9f293 | package com.x.organization.assemble.express.jaxrs.group;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import com.google.gson.JsonElement;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import com.x.base.... | Java | o2server/x_organization_assemble_express/src/main/java/com/x/organization/assemble/express/jaxrs/group/ActionListWithGroupSubDirectObject.java | o2oa/o2oa | agpl-3.0 | 2,513 | 76 | codeparrot/github-code |
2e05328b8f16f530bf750cba76376ad11144078e61136671d33bd0c85838e870 |
function browser_support() {
var browser_ok = 0;
if ($.browser.chrome && $.browser.version > 7) {
browser_ok = 1;
} else if ($.browser.mozilla && $.browser.version > 4) {
browser_ok = 1;
} else if ($.browser.msie && $.browser.version > 8) {
browser_ok = 1;
}
if (browser_ok == 0... | JavaScript | Lib_BIL/JS/printer.js | gibeauge/PWC | agpl-3.0 | 6,212 | 168 | codeparrot/github-code |
c0e198b3185afdf69e78f3177d989e03ef423a0e03c7beb4532c3bf6021b7b59 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | Python | addons/purchase/purchase.py | eneldoserrata/marcos_openerp | agpl-3.0 | 67,787 | 1,300 | codeparrot/github-code |
a4aa382ada6a140394710f28a95c70c8fbed6e08bcf7896830498732212296e1 | /*
* Copyright (c) 2012 - 2020 Splice Machine, Inc.
*
* This file is part of Splice Machine.
* Splice Machine is free software: you can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License as published by the Free Software Foundation, either
* version 3, or (at your option) ... | Java | hbase_sql/src/main/java/com/splicemachine/derby/stream/utils/TableWriterUtils.java | splicemachine/spliceengine | agpl-3.0 | 3,846 | 79 | codeparrot/github-code |
2ab34fc68cfd739df312d2a2824f6115e3a9ad0c55a99e944138c1c107e031de | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- template designed by Marco Von Ballmoos -->
<title>Docs For Class Zend_Gdata_YouTube_Ex... | HTML | trunk/ZendGdata-1.7.1+Health/documentation/api/core/Zend_Gdata/YouTube/Zend_Gdata_YouTube_Extension_Link.html | ftrotter/btg | agpl-3.0 | 32,750 | 627 | codeparrot/github-code |
8fe332bdfa786d9872f1d57823c3427f4ae06815cfe20e6b1951f8acb63285ba | class NotificationService
include Rails.application.routes.url_helpers
include ActionView::Helpers::AssetTagHelper
def initialize(participant_id, notifiable, notification_type)
@participant = Participant.find(participant_id)
@notifiable = notifiable
@notification_type = notification_type
end
def... | Ruby | app/services/notification_service.rb | crowdAI/crowdai | agpl-3.0 | 3,100 | 100 | codeparrot/github-code |
a26019c1663dccc8e25f6d41f87ad1ed35da2e3adcaf9139b924fff8a73b1ccd | import * as React from "react";
import { Flag } from "common/components/Flag";
import { Icon } from "common/components/Icon";
import { IMatchTeamInfo, Match, TeamResult } from "results/Match";
import { _b } from "utils/BemHelper";
import { stringifyDate } from "utils/DateUtils";
import { urlfriendlifyString } from "ut... | TypeScript | frontend/src/results/components/Result.tsx | fauu/natrank | agpl-3.0 | 3,543 | 120 | codeparrot/github-code |
dbd96339229658f8b3001460e94007cd78ef1ae76c8755f071760a402c0686cd | <h2>coreController</h2>
<p> Note: except for <b>genUrl()</b> it is recommended to use proxy methods:
<ul>
<li> <?php echo link_to('Actions','doc/core?include_name=action') ?> and <?php echo link_to('Components','doc/core?include_name=component') ?> proxies: <b>getActionName()</b> and <b>getModuleName()</b>.
<li> ... | PHP | apps/core/modules/doc/templates/coreControllerView.php | kc5nra/RevTK | agpl-3.0 | 1,332 | 39 | codeparrot/github-code |
264af2032c9b4b404ed744ed3c36089bfdc0fe2e24ac789935b454ae71790ba4 | jQuery(function($) {
$("#body-button").click(function(){
$(this).toggleClass('icon-add').toggleClass('icon-remove');
$('#article-body-field').slideToggle();
return false;
})
$("#textile-quickref-show").click(function(){
$('#textile-quickref-hide').show();
$(this).hide();
$('#textile-quick... | JavaScript | public/javascripts/article.js | evandrojr/noosferogov | agpl-3.0 | 6,582 | 204 | codeparrot/github-code |
ae87c3fd200a527541a855b5da8a585bb7496a81a4991e008bde2bcf581e8811 | import { debounce, find, indexOf, map, isObject, escape, unescape } from 'lodash';
import coreModule from '../../core_module';
import { ISCEService } from 'angular';
import { promiseToDigest } from '../../promiseToDigest';
function typeaheadMatcher(this: any, item: string) {
let str = this.query;
if (str === '') {... | TypeScript | public/app/angular/components/form_dropdown/form_dropdown.ts | grafana/grafana | agpl-3.0 | 6,987 | 280 | codeparrot/github-code |
c2380fe96d6b3da99c1494b82da5fb82b1f6f7e1c463ca6612ffa2bb84a024ae | package com.tesora.dve.sql;
/*
* #%L
* Tesora Inc.
* Database Virtualization Engine
* %%
* Copyright (C) 2011 - 2014 Tesora Inc.
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Soft... | Java | tesora-dve-core/src/test/java/com/tesora/dve/sql/TypeNormalizationTest.java | Tesora/tesora-dve-pub | agpl-3.0 | 9,101 | 273 | codeparrot/github-code |
0bfba4eeca91b280cea896b34cc57bb61e0712c016d78390079d7beca99e00da | define(function (require) {
'use strict';
var Simulation = require('common/simulation/simulation');
var VectorsViewModel = require('models/vectors');
var Constants = require('constants');
var VectorAdditionSimulation = Simulation.extend({
defaults: _.extend(Simulation.prototype.defaults, {
showG... | JavaScript | vector-addition/src/js/models/simulation.js | Connexions/simulations | agpl-3.0 | 3,421 | 133 | codeparrot/github-code |
e2f5507e54b89e7121556967d522dfe198439a54a2cb273c1a7b36a23faf49be | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using AutoMapper;
using Estream.Cart42.Web.Areas.Admin.Models;
using Estream.Cart42.Web.Controllers;
using Estream.Cart42.Web.DependencyResolution.Filters;
using Estream.Cart42.Web.Domain;
using... | C# | eStream.Store/Areas/Admin/Controllers/BlogPostController.cs | eStream/Cart42 | agpl-3.0 | 4,863 | 143 | codeparrot/github-code |
9faf0e6f07f4440966aaf200c4a0442082229be67a6021b7492208a8607247a1 | # -*- coding: utf-8 -*-
"""
Copyright 2013-2014 Olivier Cortès <oc@1flow.io>.
This file is part of the 1flow project.
1flow is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of
the License,... | Python | oneflow/core/models/reldb/folder.py | 1flow/1flow | agpl-3.0 | 17,427 | 526 | codeparrot/github-code |
656dc8665e9851dc77cdd511eac4e52f1b4481942cad3e11359ec41c070d9ce0 | require 'delegate'
module Laser
module Analysis
# When you include a module in Ruby, it uses inheritance to model the
# relationship with the included module. This is how Ruby achieves
# multiple inheritance. However, to avoid destroying the tree shape of
# the inheritance hierarchy, when you inc... | Ruby | lib/laser/analysis/bootstrap/laser_module_copy.rb | rkh/laser | agpl-3.0 | 2,388 | 74 | codeparrot/github-code |
4fdaa02595d794bb2110025b0e4e11e4ae61d04b5dc6fbad5ee021ee5ebe5a58 | /*
* Copyright 2014-2015 Erwin Müller <erwin.mueller@deventm.org>
*
* This file is part of sscontrol-httpd-roundcube.
*
* sscontrol-httpd-roundcube is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by the
* Free Software Foundation,... | Java | sscontrol-httpd-roundcube/src/main/groovy/com/anrisoftware/sscontrol/httpd/roundcube/fromarchive/RoundcubeFromArchiveConfigLogger.java | devent/sscontrol | agpl-3.0 | 5,517 | 137 | codeparrot/github-code |
53b11b0e64e7956ea088e53bf275c6d1c67a1caf03fa68d27899df02ac11864d | # Copyright 2009-2013 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
__metaclass__ = type
__all__ = [
'BranchPortletSubscribersContent',
'BranchSubscriptionAddOtherView',
'BranchSubscriptionAddView',
'BranchSubscriptionEditOwnV... | Python | python/testdata/launchpad/lib/lp/code/browser/branchsubscription.py | abramhindle/UnnaturalCodeFork | agpl-3.0 | 11,371 | 304 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.