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 |
|---|---|---|---|---|---|---|---|---|
80be1c36ff31a415332ac5cd5d97b0010a353a78a5ea476b853023a2c2be6458 | module.exports = function (config) {
var express = require('express');
var compress = require('compression');
var bodyParser = require('body-parser');
var morgan = require('morgan');
var csrf = require('csurf');
var frameguard = require('frameguard');
var messina = require('messina')('webmaker-profile-2-'... | JavaScript | server/server.js | mozilla/webmaker-profile-2 | mpl-2.0 | 2,242 | 77 | codeparrot/github-code |
74b7103c1969c5acaf73bf04e21997fa340ddfb3533e8af4b87897d02dbd7aa4 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `Animation` struct in crate `script`.">
<meta name="keyword... | HTML | script/layout_interface/struct.Animation.html | susaing/doc.servo.org | mpl-2.0 | 6,774 | 127 | codeparrot/github-code |
8ed0a6fd6a17e9ba569964c1dd06cc2d471533ab7e8ecfcf60b70b2b530cdf1e | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.volumetricpixels.questy;
import com.volumetricpixels.questy.event.quest.objective.ObjectiveComplet... | Java | src/main/java/com/volumetricpixels/questy/QuestInstance.java | DziNeIT/Questy | mpl-2.0 | 7,240 | 199 | codeparrot/github-code |
166fb09fc75e6d2a513cabfb2978d95afc181fe471f0e32f9f23f76352075ef1 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `TextDecoderDerived` trait in crate `servo`.">
<meta name="... | HTML | servo/script/dom/bindings/codegen/InheritTypes/trait.TextDecoderDerived.html | susaing/doc.servo.org | mpl-2.0 | 5,332 | 119 | codeparrot/github-code |
5b06d6ea4e4bbbdd3394366c723f0f3d9186bd8fb6d6ef348c022e9fe8e94d2a | /* Copyright (c) 2014 Pathways Community Network Institute
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.openhmis.domain;
import java.sql.Times... | Java | src/main/java/org/openhmis/domain/CodeHealthInsurance.java | OpenTechStrategies/OpenHMIS | mpl-2.0 | 3,012 | 125 | codeparrot/github-code |
970cd0d53ed735e306254e8dc182f96b64372fd7719e652133269e38ef82d881 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `visibility_setterinfo` constant in crate `script`.">
<meta... | HTML | script/dom/bindings/codegen/Bindings/CSSStyleDeclarationBinding/constant.visibility_setterinfo.html | susaing/doc.servo.org | mpl-2.0 | 5,306 | 121 | codeparrot/github-code |
fae3020a795f7a0c89275867145830ddc56fcd237f415403cd102c0eb2ad12a9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `shaderSource_methodinfo` constant in crate `script`.">
<me... | HTML | script/dom/bindings/codegen/Bindings/WebGLRenderingContextBinding/constant.shaderSource_methodinfo.html | susaing/doc.servo.org | mpl-2.0 | 5,327 | 121 | codeparrot/github-code |
ff1127ed00485fd9acebd2fb6a7a01491d79074b3aa1e1d60bddf54aebfa8b94 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `Window` enum in crate `glutin`.">
<meta name="keywords" co... | HTML | glutin/platform/platform/api_dispatch/enum.Window.html | susaing/doc.servo.org | mpl-2.0 | 13,484 | 137 | codeparrot/github-code |
2115b24f6d639a57839534ce35e79e06c33184e15220cb653b88ff52005b11dc | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `Format` enum in crate `layers`.">
<meta name="keywords" co... | HTML | layers/texturegl/enum.Format.html | susaing/doc.servo.org | mpl-2.0 | 5,160 | 114 | codeparrot/github-code |
e5e05dd282582b9608f0401244b4e818e09b5995f104d7e57b25b75b94e4d412 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `TokenSerializationType` struct in crate `cssparser`.">
<me... | HTML | cssparser/serializer/struct.TokenSerializationType.html | susaing/doc.servo.org | mpl-2.0 | 9,587 | 126 | codeparrot/github-code |
adf275bee716d8eb64a0f0fb74859a54ac5dad41b35a717561404e3c82a6c940 | // Copyright (c) 2012-2016, Jeffrey N. Johnson
// All rights reserved.
//
// 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/.
#include "gc/gc.h"
#include "core/string_u... | C | polywog/multicloud.c | jjphatt/polywog-dev | mpl-2.0 | 3,360 | 118 | codeparrot/github-code |
cd69e589db52dcac828296fcc4faf71e38eac15aa4be806273d64a22c74607e4 | <?php
/**
* ondrejd/php-utils
*
* @author Ondřej Doněk, <ondrejd@gmail.com>
* @license Mozilla Public License 2.0 https://www.mozilla.org/MPL/2.0/
* @link https://github.com/ondrejd/php-utils
*/
namespace ondrejd\Utils;
/**
* Class for importing CSV files.
*
* Usage:
* <pre>
* $import = CsvImport::import('... | PHP | src/CsvImport.php | ondrejd/php-utils | mpl-2.0 | 6,989 | 320 | codeparrot/github-code |
6dc44b71de61574cdd0f2bc7b2aea604326c29c3cb994f8fd06289a3c3b57f43 | package org.mifos.mobile.ui.fragments;
/*
~This project is licensed under the open source MPL V2.
~See https://github.com/openMF/self-service-app/blob/master/LICENSE.md
*/
import android.app.SearchManager;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;... | Java | app/src/main/java/org/mifos/mobile/ui/fragments/HelpFragment.java | openMF/self-service-app | mpl-2.0 | 5,916 | 180 | codeparrot/github-code |
8ea594c67d0ed648011ba802a941c028d672c46e8365c32b7362b8f53fb2c34f | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.skelril.nitro.registry.dynamic.item;
import com.skelril.nitro.registry.dynamic.ability.AbilityApp... | Java | src/main/java/com/skelril/nitro/registry/dynamic/item/GameIntegrator.java | Skelril/Skree | mpl-2.0 | 3,803 | 112 | codeparrot/github-code |
0913c8b86f02669e8800017739ca11abe1c67761b928d46c87f307f68488d09c | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */
/* 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... | C | layout/base/nsRefreshDriver.h | Yukarumya/Yukarum-Redfoxes | mpl-2.0 | 18,817 | 524 | codeparrot/github-code |
570a815d733826529b052dd31ec3c2ea18ba6d8015c999eedfbf64a668c69e6c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `BluetoothMethods` trait in crate `script`.">
<meta name="k... | HTML | script/dom/bindings/codegen/Bindings/BluetoothBinding/trait.BluetoothMethods.html | servo/doc.servo.org | mpl-2.0 | 7,068 | 125 | codeparrot/github-code |
8c8c89251b79532868d4261e5458aae7a8d206ec5556e23807cf9572ea3f2298 | function ClassBuilder(options) {
this.modDelim = options.mod || '_';
this.elemDelim = options.elem || '__';
}
exports.ClassBuilder = ClassBuilder;
ClassBuilder.prototype.build = function build(block, elem) {
if (!elem)
return block;
else
return block + this.elemDelim + elem;
};
ClassBuilder.prototype.... | JavaScript | lib/bemxjst/class-builder.js | awinogradov/bem-xjst | mpl-2.0 | 1,402 | 41 | codeparrot/github-code |
9794131a2739515b586d55829b6701c71311a11ff8d2d344e83d1f657a505070 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../../../">
<title data-ice="title">src/module/report/ModuleMethodReport.js | typhonjs-escomplex-commons API Document</title>
<link type="text/css" rel="stylesheet" href="css/mdl/material.min.css">
<link type="text/css" rel... | HTML | typhonjs-node-escomplex/typhonjs-escomplex-commons/file/src/module/report/ModuleMethodReport.js.html | typhonjs-websites/docs.typhonjs.io | mpl-2.0 | 43,946 | 449 | codeparrot/github-code |
d8f2f554881573f2c30e37dfb9d38b5b15720d9a734589f50b07961bc82295a4 | #!/bin/bash -e
cd $(dirname $0)
DATESTAMP=$(date +%Y-%m-%d)
DOCKER_REPO="letsencrypt/boulder-tools"
GO_VERSIONS=( "1.16.2" )
# Build a tagged image for each GO_VERSION
for GO_VERSION in "${GO_VERSIONS[@]}"
do
TAG_NAME="$DOCKER_REPO:go${GO_VERSION}_${DATESTAMP}"
echo "Building boulder-tools image $TAG_NAME"
#... | Shell | test/boulder-tools/tag_and_upload.sh | bmw/boulder | mpl-2.0 | 941 | 37 | codeparrot/github-code |
f9aa53520e8f3f6439410efc378b2b71ce85ed6e36ccec1700062c38f74d609c | /*******************************************************************************
* Copyright (c) 2014 Łukasz Szpakowski.
*
* 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/MP... | Scala | src/main/scala/pl/luckboy/purfuncor/common/Initializer.scala | luckboy/Purfuncor | mpl-2.0 | 4,217 | 106 | codeparrot/github-code |
2370bbfd599c19d7492c09094103fdfcff6ee5ce7a6594715eee82b581fea2d5 | ---
layout: "azurerm"
page_title: "Azure Resource Manager: azurerm_storage_account"
sidebar_current: "docs-azurerm-resource-storage-account"
description: |-
Create a Azure Storage Account.
---
# azurerm\_storage\_account
Create an Azure Storage Account.
## Example Usage
```hcl
resource "azurerm_resource_group" "t... | Markdown | website/docs/r/storage_account.html.markdown | abhijeetgaiha/terraform-provider-azurerm | mpl-2.0 | 4,810 | 110 | codeparrot/github-code |
268daa693cbad7a811fe6e45c6e0ff98ba437d851ee11ccd26b6ed026e6a5cd2 | package org.jill.game.entities.obj.player;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.util.Optional;
import org.jill.game.entities.obj.util.UtilityObjectEntity;
import org.jill.openjill.core.api.entities.BackgroundEntity;
import org.jill.openjill.core.api.entities.ObjectParam... | Java | open-jill-object-background/src/main/java/org/jill/game/entities/obj/player/AbstractPlayerManager.java | bubulemaster/openjill | mpl-2.0 | 15,934 | 518 | codeparrot/github-code |
4bb0c554cd2d97d321380205e4031fdb65db948d4a5ba05f27d1077345eac08d | /**
* 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/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.... | Java | omod-common/src/test/java/org/openmrs/module/webservices/rest/web/api/RestServiceTest.java | PawelGutkowski/openmrs-module-webservices.rest | mpl-2.0 | 2,608 | 70 | codeparrot/github-code |
a25cc6102591ed6050efd4219e48fbaa439c998268b5c45fd4bc1f857d3b924c | package aws
import (
"bytes"
"fmt"
"log"
"strings"
"time"
"github.com/hashicorp/terraform/helper/hashcode"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/helper/schema"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/servi... | GO | aws/resource_aws_db_parameter_group.go | nbaztec/terraform-provider-aws | mpl-2.0 | 10,235 | 341 | codeparrot/github-code |
53e4bdd86802a56fe9f768b1a51f07148537f1929abd48a105270eb400613cf5 | /*
* Copyright (C) 2013 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.
*
* This ... | Java | rest/src/main/java/org/envirocar/server/rest/rights/NonRestrictiveRights.java | Drifftr/enviroCar-server | agpl-3.0 | 9,166 | 470 | codeparrot/github-code |
eccf15337b3e422f226d87766bdc30c6bbf6b0be75c6cec05acded6d9fa58065 | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2013 - Raw Material Software Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL... | C | MarkovMidiAnalyzer/lib/JUCE/extras/Introjucer/Source/ComponentEditor/paintelements/jucer_PaintElementText.h | EASEA/EASEAudioMonitor | agpl-3.0 | 17,522 | 562 | codeparrot/github-code |
3c1b6defce1bdd78b9cea3ddfd596008f7bbb3b9b88d5b5325670e58f6b9e214 | /*
* Copyright (C) MaNGOS, TrinityCore, AzerothCore
*
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*/
#ifndef __TRINITY_LANGUAGE_H
#define __TRINITY_LANGUAGE_H
enum TrinityStrings
{
// for chat commands
LANG_SELECT_CHAR_OR_CR... | C | src/game/Miscellaneous/Language.h | polaretto/azerothcore-wotlk | agpl-3.0 | 58,588 | 1,304 | codeparrot/github-code |
c954d9628a63fe73103bf451c83ef7274348f0d8295cd788115be781617ebe19 | from django.utils.translation import ugettext as _
from django.conf import settings
from django.contrib.staticfiles.storage import staticfiles_storage
from django.contrib.sites.shortcuts import get_current_site
from .config import Config
static_url = staticfiles_storage.url
DEFAULT_THEMES = (
('Dark', 'bingo/the... | Python | bingo/context_processors.py | allo-/django-bingo | agpl-3.0 | 2,452 | 73 | codeparrot/github-code |
a3e1af2173c0ee3b80d535753283ed246fcb6824a5fad99256307222b07da1d6 | -- NetherMachine Rotations
-- Released under modified BSD, see attached LICENSE.
-- Functions that require OffSpring
local L = NetherMachine.locale.get
function NetherMachine.protected.WoWSX()
if WOWSX_ISLOADED then
_G['objectTypes'] = {
Object = 1,
Item = 2,
Container = 3... | Lua | system/injector/wowsx.lua | Nether-Machine/NetherMachine | agpl-3.0 | 6,078 | 167 | codeparrot/github-code |
414727667e79325539d82f1e6c38de0c05bc537a9c72aa2b13d7c13d01d70899 | /*
* Copyright 2015 Erwin Müller <erwin.mueller@deventm.org>
*
* This file is part of sscontrol-security-clamav.
*
* sscontrol-security-clamav 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, eith... | Java | sscontrol-security-clamav/src/main/java/com/anrisoftware/sscontrol/security/clamav/ClamavModule.java | devent/sscontrol | agpl-3.0 | 1,947 | 49 | codeparrot/github-code |
f216bf9c266116e424b64082dfed28569658dae3537408bdaa66207aadadf7ca | /*
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
* License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
*/
import { Map as ImmutableMap } from "immutable";
import { Button, ButtonToolbar, FormControl, Well } from "../antd-bootstrap";
import { React, Component, Rendered, redux } from... | TypeScript | src/smc-webapp/account/profile-image.tsx | sagemathinc/smc | agpl-3.0 | 11,004 | 411 | codeparrot/github-code |
468adad8a1b1b9bddb73bd245e26af1028ea96d01fc1a31b7323e7c520e61abe | <?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* SuiteCRM is an extension to SugarCRM Community Edition developed by Sales... | PHP | include/SugarFields/Parsers/DetailViewMetaParser.php | pgorod/SuiteCRM | agpl-3.0 | 8,536 | 191 | codeparrot/github-code |
b88f5415aa15c493fc39ce61bc327c446d1b20f31403699b6d8d7075e51e9fc1 | package org.duyi.svq.vast2014;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Logger;
import prefuse.Constants;
import prefuse.action.assignment.ColorAction;
import prefuse.data.tuple.TupleSet;
import prefuse.util.ColorLib;
import prefuse.util.ColorMap;
import prefuse.util.DataLib;
import pr... | Java | src/main/java/org/duyi/svq/vast2014/ColorActionWithlegend.java | yiducn/svq | agpl-3.0 | 11,885 | 336 | codeparrot/github-code |
d2032ca718363ab59b5dd8b7d6340d0b8732a83a4abd9015e1d7d92c9aa832ef | /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";
var $protobuf = require("protobufjs/minimal");
// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
// E... | JavaScript | src/app/doc/network/message_proto.js | coast-team/mute | agpl-3.0 | 4,270 | 134 | codeparrot/github-code |
76b0d9f22e5968815942f3edde8b507d0b2bcf0b647e02e947e9381192e70051 | /**
* @file libcomp/src/ArgumentParser.cpp
* @ingroup libcomp
*
* @author COMP Omega <compomega@tutanota.com>
*
* @brief Class to handle parsing command line arguments for an application.
*
* This file is part of the COMP_hack Library (libcomp).
*
* Copyright (C) 2012-2017 COMP_hack Team <compomega@tutanota.c... | C++ | libcomp/src/ArgumentParser.cpp | aswiftproduction/comp_hack | agpl-3.0 | 6,665 | 246 | codeparrot/github-code |
ab853035df877bbb00df1dacf8f8f13532ba622eef2b3cbab3286d621c33a0ec | /* TRAU frame handling according to GSM TS 08.60 */
/* (C) 2009 by Harald Welte <laforge@gnumonks.org>
* All Rights Reserved
*
* 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... | C | src/libtrau/trau_frame.c | jonathanrsantos/opensgsn | agpl-3.0 | 6,290 | 261 | codeparrot/github-code |
6be3f6a90eca7421aa23133e0878edfb545f9e06418802944e908cdad4c66150 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<title>Coverage for skf/api/chatbot/business.py: 76%</title>
<link rel="icon" sizes="32x32" href="favicon_32.png">
<link rel="stylesheet" hr... | HTML | cover/skf_api_chatbot_business_py.html | blabla1337/skf-flask | agpl-3.0 | 42,128 | 178 | codeparrot/github-code |
5be9886149beac9b50ed153020989e6c5b5b21c08d907e05080b5af2f80ed08a | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import { formatPercentage, formatThousands } from 'common/format';
import STATISTIC_CATEGORY from 'parser/ui/STATISTIC_CATEGORY';
import Statistic ... | JavaScript | analysis/warlockaffliction/src/modules/talents/SoulConduit.js | yajinni/WoWAnalyzer | agpl-3.0 | 2,834 | 68 | codeparrot/github-code |
9b688f85dd4efd79f622b7843b93b45b0d224779985e9d0b3125c14cd86e7da4 | <?php
/**
* @var Yii\web\View $this
* @var string $mode
* @var \app\models\forms\MotionEditForm $form
* @var \app\models\db\Consultation $consultation
* @var bool $forceTag
*/
use app\components\UrlHelper;
use app\models\policies\IPolicy;
use yii\helpers\Html;
/** @var \app\controllers\Base $controller */
$con... | PHP | views/motion/edit_form.php | CatoTH/antragsgruen | agpl-3.0 | 5,151 | 150 | codeparrot/github-code |
de3c146168e4acd35e873ecb0599fc9b50c1d3c660b77461b3bee742ea3f3149 | <?php
/**
* Copyright (c) 2015 ScientiaMobile, 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 later version.
*
*... | PHP | UserAgentMatchers/CatchAllRisUserAgentMatcher.php | fauvel/wurfl-dbapi | agpl-3.0 | 1,439 | 49 | codeparrot/github-code |
6bd7847c76b950363b8951182e592858490a7c0cfac1ef50898fae449422bbf2 | from django.core.management.base import BaseCommand, CommandError
try:
from django.contrib.auth import get_user_model # Django 1.5
except ImportError:
from django_extensions.future_1_5 import get_user_model
from django.contrib.sessions.models import Session
import re
SESSION_RE = re.compile("^[0-9a-f]{20,40}$... | Python | django_extensions/management/commands/print_user_for_session.py | shash/IconDB | agpl-3.0 | 1,826 | 52 | codeparrot/github-code |
c27b09ec6664baf9967f72382b49f021dc6d6dede59b85ecbbe137d1c5dcabf9 | odoo.define('easy_my_coop.oe_easymy_coop', function (require) {
$(document).ready(function () {
"use strict";
var ajax = require('web.ajax');
$('.oe_easymy_coop').each(function () {
var oe_easymy_coop = this;
$('#share_product_id').change(function () {
var share_product_id = $("#share_product... | JavaScript | easy_my_coop/static/src/js/easy_my_coop.js | houssine78/vertical-cooperative | agpl-3.0 | 2,077 | 52 | codeparrot/github-code |
f91a6e288f1e7de52177a0cd218c4c3d056be641ee0923c7246bac5a8dfb7d4c | /**
* Copyright (C) 2001-2020 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/tools/ResourceDockKey.java | rapidminer/rapidminer-studio | agpl-3.0 | 4,429 | 113 | codeparrot/github-code |
2f33cc0a61789f5a39cc815dbcec2e7242dc36f8442adad2ae7ebce003b90089 | <?php
/*********************************************************
| eXtreme-Fusion 5
| Content Management System
|
| Copyright (c) 2005-2013 eXtreme-Fusion Crew
| http://extreme-fusion.org/
|
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it ... | PHP | system/class/Files.php | eXtreme-Fusion/extreme-fusion-framework | agpl-3.0 | 6,730 | 279 | codeparrot/github-code |
980917b799ef82a174ae697cf22ef6a14798b2d5c0fed445e45f9c13528f9787 | <?php
/**
* PiggyBankController.php
* Copyright (c) 2019 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* 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 ... | PHP | app/Http/Controllers/Chart/PiggyBankController.php | JC5/firefly-iii | agpl-3.0 | 4,252 | 122 | codeparrot/github-code |
a3eff73a7fd7000882337994774e99e746d0e49fdaa3ed65efb3516c63259670 | /*
***** BEGIN LICENSE BLOCK *****
Copyright © 2009 Center for History and New Media
George Mason University, Fairfax, Virginia, USA
http://zotero.org
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
... | JavaScript | chrome/content/zotero/xpcom/quickCopy.js | rmzelle/zotero | agpl-3.0 | 14,498 | 435 | codeparrot/github-code |
16819c5a1aa26c6efb580982d85ac554eac6f044e44739cf68f6c847c81784cf | # -*- coding: utf-8 -*-
#
# privacyIDEA is a fork of LinOTP
# May 08, 2014 Cornelius Kölbel
# License: AGPLv3
# contact: http://www.privacyidea.org
#
# Copyright (C) 2010 - 2014 LSE Leading Security Experts GmbH
# License: AGPLv3
# contact: http://www.linotp.org
# http://www.lsexperts.de
# ... | Python | privacyidea/lib/error.py | privacyidea/privacyidea | agpl-3.0 | 5,600 | 174 | codeparrot/github-code |
500141573e7dba939f47a7331b14a33abc0b7275c453d9cdb9cb1d4a9e8c681c | # frozen_string_literal: true
module Decidim
module ParticipatoryProcesses
module Admin
# A command with all the business logic when copying a new participatory
# process in the system.
class ImportParticipatoryProcess < Decidim::Command
# Public: Initializes the command.
#
... | Ruby | decidim-participatory_processes/app/commands/decidim/participatory_processes/admin/import_participatory_process.rb | decidim/decidim | agpl-3.0 | 2,554 | 73 | codeparrot/github-code |
aacfd1a30058b0f35106bb517812885e1502d0975da34f2fb9d30e3d788f0133 | /*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero Genera... | JavaScript | scripts/reactor/2512001.js | ronancpl/MapleSolaxiaV2 | agpl-3.0 | 1,265 | 33 | codeparrot/github-code |
4aeacd0823a017c375623dbe693b77c727b85c9fdaa25d2cf4c902321b4421b0 | #!/usr/bin/env bash
[[ "${DEBUG}" == "true" ]] && set -x
FIRST_RUN_FILE="/.firstRun"
[[ -e ${FIRST_RUN_FILE} ]] && FIRST_RUN=true || FIRST_RUN=false
function dnsToIp {
[[ -z "${1}" ]] && return 1
unset dnsToIpResult
dnsToIpResult=()
IFS=',' read -ra ENTRIES <<< "${1}"
for ENTRY in "${ENTRIES... | Shell | rootfs/scripts/functions.inc.sh | tcf909/docker-plex-cloud | agpl-3.0 | 727 | 37 | codeparrot/github-code |
66ca21a02b964769d20b9180282c984899d4d041a4a6498989d5579cd2d41379 | """ ------------------------------
bior2_6
cwt
by BEAR, 05/04/14
------------------------------ """
import scipy as sp
import numpy as np
from scipy.signal import convolve
#import pywt
_scale_max = 1024
_scale_max = int(2**(sp.ceil(sp.log2(_scale_max))))
tmp = np.loadtxt('bior2.6_1024.txt')
_x_bior2_6 = tmp[:,0]
... | Python | mycwt.py | bearicc/python-wavelet-transform | agpl-3.0 | 1,948 | 65 | codeparrot/github-code |
d6f5ee2d1c39ae6906cc9df2825fd79d066a2d859d6e4c5095752dc4a1d33b0b | /*
IGO Software SL - info@igosoftware.es
http://www.glob3.org
-------------------------------------------------------------------------------
Copyright (c) 2010, IGO Software SL
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that ... | Java | glob3/globe/es/igosoftware/globe/actions/GGenericAction.java | AsherBond/MondocosmOS | agpl-3.0 | 3,580 | 121 | codeparrot/github-code |
9ef06165fc4c66b694bf616f1b69abb7a2dba82697cabe966c5cc31407395ecf | # -*- coding: utf-8 -*-
# Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz>
# Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com>
# Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net>
# This program is free software: you can r... | Python | taiga/base/api/settings.py | dayatz/taiga-back | agpl-3.0 | 8,476 | 255 | codeparrot/github-code |
9467c8767e81af70d7f9552a5c2b23f773dd5dd463a6ea052819199f82081685 | #ifndef SRC_LIB_COMMON_LOGTRACING_H_
#define SRC_LIB_COMMON_LOGTRACING_H_
/*
*
* Copyright 2020 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 Pub... | C | src/lib/common/logTracing.h | Fiware/data.Orion | agpl-3.0 | 2,780 | 130 | codeparrot/github-code |
f552761cdc052ce58d97b7a14bb1857f84eac59434252596b204d88ae875984a | <?php
/*
Author: Lee Braiden
Author URI: http://www.kintassa.com
Copyright: Copyright (c) 2011 Kintassa.
License: All rights reserved. Contact Kintassa should you wish to license this product.
*/
require_once(kintassa_core('kin_form.php'));
require_once(kintassa_core('kin_tableform.php'));
require_once(kintassa_core(... | PHP | src/accord_tableform.php | lee-b/lb-accordions | agpl-3.0 | 5,578 | 229 | codeparrot/github-code |
a27f4a6e98467d2df874d4da6bda9767efe4b18d5d19fc062e02f22617c48f0b | <?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 license an... | PHP | libraries/Zend/Loader.php | Nivocer/webenq | agpl-3.0 | 11,318 | 330 | codeparrot/github-code |
9fe0ca76465dad16dc27e04087039a32897bc2f59e8acad32c1c034dafc2e9e0 | <!--
~ This program was produced for the U.S. Agency for International Development. It was prepared by the USAID | DELIVER PROJECT, Task Order 4. It is part of a project which utilizes code originally licensed under the terms of the Mozilla Public License (MPL) v2 and therefore is licensed under MPL v2 or later.
~
... | HTML | modules/openlmis-web/src/main/webapp/public/pages/admin/equipment/program-equipment-products/partials/list.html | jasolangi/jasolangi.github.io | agpl-3.0 | 8,272 | 202 | codeparrot/github-code |
3d9bfde992acc1de9caadd9384935b5e61f47930867e42087ec46e874ae7b1b8 | <?php
/**
* OpenEyes.
*
* (C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011
* (C) OpenEyes Foundation, 2011-2013
* This file is part of OpenEyes.
* OpenEyes 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 Softwa... | PHP | protected/controllers/oeadmin/UniqueCodesController.php | FiviumAustralia/OpenEyes | agpl-3.0 | 2,311 | 78 | codeparrot/github-code |
d423b4c6e9dada6d0511c0fa778ccf96aaef60acd1bd83ef69b0cc5136ad4630 | package nl.wietmazairac.bimql.set.attribute;
/******************************************************************************
* Copyright (C) 2009-2017 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* publish... | Java | BimQL/src/nl/wietmazairac/bimql/set/attribute/SetAttributeSubIfcTopologyRepresentation.java | opensourceBIM/bimql | agpl-3.0 | 2,531 | 85 | codeparrot/github-code |
6c986daa765273ac80bf7f117a952b3bc9b12f25d7a6182a96b384157d289592 | <?php
namespace common\models;
use common\models\BuildingsOnBase;
use frontend\behaviors\UpdateStockBehavior;
use frontend\components\building\BuildingComponent;
use frontend\interfaces\ConstructionTaskProvider;
use frontend\models\Building;
use frontend\objects\Resources;
use yii\behaviors\TimestampBehavior;
use yii... | PHP | common/models/Base.php | iw-reload/iw | agpl-3.0 | 18,618 | 645 | codeparrot/github-code |
541f35aa9db42c2be076e5e67146cb8df06c22d61f356d03379032d2f9b91446 | <?php
/*
* Laconica - a distributed open-source microblogging tool
* Copyright (C) 2008, Controlez-Vous, 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 t... | PHP | actions/twitapifavorites.php | loocaworld/HotCoffee | agpl-3.0 | 6,397 | 187 | codeparrot/github-code |
0fedb80d6a583b5c3c03352dbe18b798d448b04cee28315b83551eda95dbff2d | package nars.audio;
import nars.Sound;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class ListenerMixer implements StereoSoundProducer
{
public final List<Sound> sounds =
Collections.synchronizedList( new ArrayList<>() );
priva... | Java | nars_gui/src/main/java/nars/audio/ListenerMixer.java | printedheart/opennars | agpl-3.0 | 3,461 | 132 | codeparrot/github-code |
ad6ea7b214ea25144520d4678dbc31bd20a529cc6c9e68ee9cdd5d8655504480 | /*
@(#) $RCSfile: Entry.java,v $ $Name: $($Revision: 1.1.2.1 $) $Date: 2009-06-21 11:34:53 $ <p>
Copyright © 2008-2009 Monavacon Limited <a href="http://www.monavacon.com/"><http://www.monavacon.com/></a>. <br>
Copyright © 2001-2008 OpenSS7 Corporation <a href="http://www.openss7.com/"><h... | Java | src/java/javax/jain/ss7/inap/datatype/Entry.java | 0x7678/openss7 | agpl-3.0 | 4,802 | 107 | codeparrot/github-code |
386673ba8b0df8bbd672a8697aa4609bca094054da8276753fe416ea7bfd4e88 | package de.uvwxy.xbee.apimode.messages;
import java.util.HashMap;
public class MsgModemStatus extends APIMessage {
private static final String INFO = "RF module status messages are sent from the module in response to specific conditions.";
private static final String TITLE = "Modem Status";
private static final in... | Java | src/de/uvwxy/xbee/apimode/messages/MsgModemStatus.java | uvwxy/libxbee | agpl-3.0 | 1,307 | 49 | codeparrot/github-code |
6c45b50c235d13b72c9ef41cf8acc624307ed9caf8a1ec13b6d745e6b94a742e | /*
***** BEGIN LICENSE BLOCK *****
Copyright © 2009 Center for History and New Media
George Mason University, Fairfax, Virginia, USA
http://zotero.org
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
... | JavaScript | chrome/content/zotero/xpcom/utilities_translate.js | JunaidSarfraz/zotero-plugin | agpl-3.0 | 11,179 | 363 | codeparrot/github-code |
47aff7a3ccf7094be652e3842fd18d5c4b712d5468d7b2f76f34a627fcb5d7bc | #
# Copyright (C) 2012 Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas 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 of the License.
#
# Canvas is distributed in the hope that ... | Ruby | app/controllers/discussion_topics_controller.rb | ottenhoff/canvas-lms | agpl-3.0 | 17,799 | 349 | codeparrot/github-code |
0beab62edf133fe1c2f617ae820017e85d7d4c83302fe372d056c5b25b16e44e | /**
* Bounds serve as a stand-in for function pointers, which not only executes the
* function, but does so in the specified scope. Note however that native functions
* will not expect Bound objects. In that case the Bound object must be converted
* to a function using nativeFunc.
* @param func
* @param scope
* ... | JavaScript | chrome/content/classes/Bound.js | hansschmucker/GamesDesktop | agpl-3.0 | 1,141 | 48 | codeparrot/github-code |
28dbc416c461950707ba31a4936cc06935318de056525512370aab0b0b2d776a | /*
* MORFEO Project
* http://www.morfeo-project.org
*
* Component: TIDIdlc
* Programming Language: Java
*
* File: $Source$
* Version: $Revision: 314 $
* Date: $Date: 2009-07-17 12:50:46 +0200 (Fri, 17 Jul 2009) $
* Last modified by: $Author: avega $
*
* (C) Copyright 2004 Telef�nica Investigaci�n y Desarrollo
* S.A... | Java | source/es/tid/TIDIdlc/xml2java/XmlInterface2Java.java | AlvaroVega/TIDIdlc | agpl-3.0 | 29,487 | 695 | codeparrot/github-code |
baf0a7904aee218adbb6984c1e73352e8e8a49a8310ed4b51ab4214a4972882f | # Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, models
class AgreementServiceProfile(models.Model):
_inherit = ['agreement.serviceprofile']
@api.model
def create(self, vals):
# If SP is created with a managed ... | Python | connector_equipment_service/models/agreement_serviceprofile.py | OCA/vertical-isp | agpl-3.0 | 7,516 | 166 | codeparrot/github-code |
97854d14c8913abfdef5012ee60d8b76617b4a106981193d8d142fe34a798fe4 | /*
* Copyright (c) 2014 "Kaazing Corporation," (www.kaazing.com)
*
* This file is part of Robot.
*
* Robot 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 (... | Java | driver/src/main/java/org/kaazing/robot/driver/netty/bootstrap/channel/AbstractServerChannelSink.java | jitsni/k3po | agpl-3.0 | 4,180 | 118 | codeparrot/github-code |
7bd893a43fd02442dc62813c78f9461dbb55274b778d57fbe7f8566f6bc130ab | package cn.crap.service;
import cn.crap.adapter.Adapter;
import cn.crap.dao.mybatis.ModuleDao;
import cn.crap.enu.*;
import cn.crap.framework.IdGenerator;
import cn.crap.framework.MyException;
import cn.crap.model.Log;
import cn.crap.model.ModulePO;
import cn.crap.query.*;
import cn.crap.utils.IConst;
import cn.crap.u... | Java | api/src/main/java/cn/crap/service/ModuleService.java | EhsanTang/ApiManager | agpl-3.0 | 4,602 | 151 | codeparrot/github-code |
49617723b93b186d7376e3c9f8f4b3cf54151d81019a1bf41a6d7f24274478ee | /*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, 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 Software Foundation with the addition of... | C++ | src/cpp/windows/http/GPRSConnection.cpp | pohly/funambol-cpp-client-api | agpl-3.0 | 8,124 | 210 | codeparrot/github-code |
2129009f3308a9d31ae49ea1894f24fb69ba33e40e9a79a3ad5ac771df567ce8 | #pragma once
#include <sse/schemes/abstractio/awonvm_vector.hpp>
#include <sse/schemes/oceanus/details/cuckoo.hpp>
// NOLINTNEXTLINE
#include <sse/schemes/utils/optional.hpp>
#include <sse/schemes/utils/utils.hpp>
#include <cmath>
#include <vector>
namespace sse {
namespace oceanus {
struct CuckooBuilderParam
{
... | C++ | lib/include/sse/schemes/oceanus/cuckoo.hpp | OpenSSE/opensse-schemes | agpl-3.0 | 13,965 | 474 | codeparrot/github-code |
0b96ea173a3b8b12e3f147a2b84cfdbb5512dc9ee9e9450cd97d1dae7578dda5 | <?php
/**
* @author Björn Schießle <schiessle@owncloud.com>
* @author Christopher Schäpers <kondou@ts.unde.re>
* @author Clark Tomlinson <fallen013@gmail.com>
* @author cmeh <cmeh@users.noreply.github.com>
* @author Florin Peter <github@florin-peter.de>
* @author Jakob Sack <mail@jakobsack.de>
* @author Robin Ap... | PHP | settings/changepassword/controller.php | lrytz/core | agpl-3.0 | 5,459 | 150 | codeparrot/github-code |
d176ba3671976596b24261892d7c31a8c0395f0ff78e46f5dade639e6ab6b7fa | package io.shenanigans.persistence;
import io.shenanigans.proto.Shenanigans.Submission.ProbeGroup.ProbeReq;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="probe_req")
... | Java | submission-server/src/main/java/io/shenanigans/persistence/ProbeReqData.java | davruet/shenanigans.io | agpl-3.0 | 1,041 | 62 | codeparrot/github-code |
95dcb04ae3757213eca1af1851333f65703f25b1978752fec2d4a8bbc9cb702a | <?php
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
* SuiteCRM is an extension to SugarCRM Community Edition developed by Salesagility L... | PHP | include/SugarFields/Fields/Datetimecombo/SugarFieldDatetimecombo.php | nlv/suitecrm | agpl-3.0 | 9,169 | 214 | codeparrot/github-code |
03cdbf38649577698d06f0ccdd1469a4dd87ad596f7de400834cec0bac55d0fb | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license ... | PHP | application/core/MY_Loader.php | irontec/Esaizu- | agpl-3.0 | 6,138 | 234 | codeparrot/github-code |
ac35d7c22333107d3b687909e31360f3b54124283e5e57c5547a9964c2e9f37a | # frozen_string_literal: true
module Printers
class OutgoingPaymentListPrinter < PrinterBase
AMOUNT_OF_ROWS_FITTING_IN_PAGE_ONE = 8
AMOUNT_OF_ROWS_FITTING_IN_OTHER_PAGES = 16
attr_accessor :template_path, :outgoing_payment_list
def initialize(outgoing_payment_list:, nature:, template:)
super(... | Ruby | app/services/printers/outgoing_payment_list_printer.rb | ekylibre/ekylibre | agpl-3.0 | 4,875 | 106 | codeparrot/github-code |
96188d1ff0e87ec3fa10052e9b23d68baefce5c57e2b5fbaf1551023ec892bf6 | package RSGet::Curl;
# This file is an integral part of rsget.pl downloader.
#
# 2009-2010 (c) Przemysław Iskra <sparky@pld-linux.org>
# This program is free software,
# you may distribute it under GPL v2 or newer.
use strict;
use warnings;
use RSGet::Config;
use RSGet::MortalObject;
use RSGet::Mux;
use WWW::Curl::Ea... | Perl | scraps/RSGet/Curl.pm | sparky/rsget.pl-core | agpl-3.0 | 7,007 | 294 | codeparrot/github-code |
e31aade89711fe54817a05f7c62f004423652fd3493abb805ec56720f53d19db | /*
* 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 | utilities/src/test/java/com/splicemachine/hash/FixedMurmur32Test.java | splicemachine/spliceengine | agpl-3.0 | 1,353 | 40 | codeparrot/github-code |
1159f4e89453ef6ecd0549f8e05ae4ca48050f8b2219011ec962cbe4bcacefb3 | /*
This file is part of the CVD Library.
Copyright (C) 2005 The Authors
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 t... | C | PTAMM/include/cvd/vision.h | AsherBond/MondocosmOS | agpl-3.0 | 16,195 | 519 | codeparrot/github-code |
ca971018dd954dc9dc123a44ead013b71371d388a5ea5edaff4ceb4814abaac6 | /*
* Axelor Business Solutions
*
* Copyright (C) 2022 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 distributed... | Java | axelor-human-resource/src/main/java/com/axelor/apps/hr/db/repo/UserHRRepository.java | axelor/axelor-business-suite | agpl-3.0 | 1,337 | 40 | codeparrot/github-code |
7c9546a2830f333535eef6568d5681a4eb43e78a1b17e68bb5967e2ec7292ae9 | Selection = {
current: {},
groups: {},
_mode: 'default',
_allowed_modes: ['default', 'multi'],
mode: function (new_mode) {
if (new_mode && new_mode != this._mode && this._allowed_modes.indexOf(new_mode) >= 0) {
this._mode = new_mode;
go.trigger('selection_mode_changed');
}
return thi... | JavaScript | app/chrome/selection.js | jxe/groundcrew-viewer-jxe | agpl-3.0 | 3,537 | 138 | codeparrot/github-code |
2cffdd2b48967c8bba535b4beacb05d871d2dcec2ad903432686b8229f805211 | class Tasks::DetectDerivativesTask < Task
before_save :serialize_urls
after_commit :start_detective, :on => :create
after_commit :finish_if_all_detected, :on => :update
def serialize_urls
self.serialize_extra('urls')
end
def finish_task
return unless audio_file
# mark the audio_file as havin... | Ruby | app/models/tasks/detect_derivatives_task.rb | quoideneuf/pop-up-archive | agpl-3.0 | 2,128 | 98 | codeparrot/github-code |
d85b238e763213af45fe0be7d00391c27a336805716f47ad7810731d1ed06c84 | <?php
/*
NAME: SpecialMakePage
PURPOSE: Special page for creating a new page from a form
Other extensions can do this, but they don't make it at all easy
to base the title on variables which are substituted from fields on the form.
AUTHOR: Woozle Staddon
VERSION:
2007-11-23 (Wzl) Writing started
2007-11-24 (Wzl... | PHP | OLD/SpecialMakePage.php | woozalia/Special-MakePage | agpl-3.0 | 2,815 | 57 | codeparrot/github-code |
a3bcf2032c7c63dca322057374b14d2a9e610a55414cdd188a1a0c9a7a622c13 | <?php
/*
* This file is part of mesamatrix.
*
* Copyright (C) 2014 Robin McCorkell <rmccorkell@karoshi.org.uk>
* Copyright (C) 2014-2016 Romain "Creak" Failliot
*
* 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 ... | PHP | src/Git/Process.php | MightyCreak/mesamatrix | agpl-3.0 | 1,741 | 50 | codeparrot/github-code |
7e4179f806d4182d553987a4f9742d7c5e8cbb806b401faed1cd30e76c2fbee6 | package org.mechaverse.simulation.common.datastore;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import java.util.Collections;
import org.junit.Before;
import org.junit.Test;
impo... | Java | simulation/mechaverse-simulation-common/src/test/java/org/mechaverse/simulation/common/datastore/AbstractSimulationDataStoreTest.java | thorntonv/mechaverse | agpl-3.0 | 2,162 | 78 | codeparrot/github-code |
402fe3794c8659993db1fad83d26d87bf1d6ade1100b41e765bcd61cc8406ea7 |
/*
* This program is part of the ForLAB software.
* Copyright © 2010 Clinton Health Access Initiative(CHAI)
*
* The ForLAB software was made possible in part through the support of the President's Emergency Plan for AIDS Relief (PEPFAR) through the U.S. Agency for International Development (USAID) under the Supp... | C# | LQT.GUI/UserCtr/BaseHistoricalData.Designer.cs | forlab/ForLAB | agpl-3.0 | 1,897 | 58 | codeparrot/github-code |
935ab82e8c2baef0a92614903ca74cdc64f01a0f17ee57edd2c892345a4002ce | /*************************************************************************\
* Copyright (C) Michael Kerrisk, 2016. *
* *
* This program is free software. You may use, modify, and redistribute it *
* under the term... | C | filesys/t_statfs.c | jetm/tlpi | agpl-3.0 | 2,073 | 57 | codeparrot/github-code |
0b931cbde8b7d9a78ecd4c4d18dfbbd5ed5f1241a2e72fe8db8e000f3c419e85 | <!DOCTYPE html>
<html lang="en"
>
<head>
<title>40123227 cdw11 報告 - CDW11 網頁 (虎尾科大MDE)</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">
<styl... | HTML | static/blog/40123227-cdw11-bao-gao.html | 40323236/40323236_cdw11 | agpl-3.0 | 27,026 | 569 | codeparrot/github-code |
bbc41076d18f3490c66e8e2cb18adf2497af7a68d1cb32ab4a29601219f6bfd5 | <?php
//============================================================+
// File name : tce_page_info.php
// Begin : 2004-05-21
// Last Update : 2014-03-04
//
// Description : Outputs TCExam information page.
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com... | PHP | admin/code/tce_page_info.php | peppelinux/tcexam | agpl-3.0 | 10,346 | 178 | codeparrot/github-code |
238d328a193596b3796c6519dd08b1cfe7c816227d0fcf3b635ff544424f4506 | # -*- coding: utf-8 -*-
#################################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 Julius Network Solutions SARL <contact@julius.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under th... | Python | openerp/custom_modules/pos_shop/shop.py | ncliam/serverpos | agpl-3.0 | 3,525 | 78 | codeparrot/github-code |
89d6fc495ab5122642baf4cec00d78f0a9ad57a361e8d534aeb22e084bc255a2 |
/*
* THIS SOURCE CODE IS SUPPLIED ``AS IS'' WITHOUT WARRANTY OF ANY KIND,
* AND ITS AUTHOR AND THE JOURNAL OF ARTIFICIAL INTELLIGENCE RESEARCH
* (JAIR) AND JAIR'S PUBLISHERS AND DISTRIBUTORS, DISCLAIM ANY AND ALL
* WARRANTIES, INCLUDING BUT NOT LIMITED TO ANY IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNE... | C | torchlight/SG-DTGs.c | fawcettc/planning-features | agpl-3.0 | 93,305 | 3,850 | codeparrot/github-code |
f063b88926d6df593e01c03e6a25a216d6f803fa417e94d677cb8fd0ce3c4980 | /*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2019 RonanLana
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 as published by
the F... | Java | src/net/server/channel/handlers/OpenFamilyHandler.java | ronancpl/MapleSolaxiaV2 | agpl-3.0 | 1,529 | 42 | codeparrot/github-code |
b9b9f620abde25a9e36d2d25e778b2adcb7c780ea0a9ec8f8faa9bb7b1cbd984 | /*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2017 Kuali, 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 Foundat... | Java | kfs-core/src/main/java/org/kuali/kfs/gl/batch/service/impl/RunDateServiceImpl.java | quikkian-ua-devops/will-financials | agpl-3.0 | 7,008 | 178 | codeparrot/github-code |
38152c390660b45c79bcd754b37bec01682d57b65e22206b0526cc445f964e2f | from uber.common import *
from panels.models.attraction import *
from panels.site_sections.attractions import _attendee_for_badge_num
@all_renderable(c.STUFF)
class Root:
@renderable_override(c.STUFF, c.PEOPLE, c.REG_AT_CON)
def index(self, session, filtered=False, message='', **params):
admin_account... | Python | panels/site_sections/attractions_admin.py | magfest/panels | agpl-3.0 | 16,616 | 432 | codeparrot/github-code |
10e013c97246504adbc0ca3ffec3fb283a7c5c1ff4ae571b09d1f1b136d61203 | import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import Analyzer, { Options } from 'parser/core/Analyzer';
import { NumberThreshold, ThresholdStyle, When } from 'parser/core/ParseResults';
import DamageTracker... | TypeScript | analysis/rogueoutlaw/src/modules/spells/Opportunity.tsx | anom0ly/WoWAnalyzer | agpl-3.0 | 2,316 | 68 | codeparrot/github-code |
3f1db35ebbe9b54f3f0ec1bf4e8b90e1e733600033b6c76f468d90805b39ef00 | 'use strict';
var CONSTANTS = require('../constants');
var SEARCH = CONSTANTS.SEARCH;
module.exports = function(dependencies) {
var logger = dependencies('logger');
var listener = require('./searchHandler')(dependencies);
var elasticsearch = dependencies('elasticsearch');
var searchHandler;
function index... | JavaScript | modules/linagora.esn.calendar/backend/lib/search/index.js | heroandtn3/openpaas-esn | agpl-3.0 | 3,027 | 134 | codeparrot/github-code |
e78230547c51747ec677efb076cb167e97aba6f8d3ba32f119609a3799ae4116 | /*
* ################################################################
*
* 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
* Nice-Sophia Antipolis/ActiveEon
... | Java | src/resource-manager/src/org/ow2/proactive/resourcemanager/utils/console/ResourceManagerModel.java | acontes/scheduling | agpl-3.0 | 33,012 | 821 | codeparrot/github-code |
88863844f70fed3efe51444db8800946e56c0c45e38f02f9008fe8d4cec29bc1 | /*
* LICENCE : CloudUnit is available under the Affero Gnu Public License GPL V3 : https://www.gnu.org/licenses/agpl-3.0.html
* but CloudUnit is licensed too under a standard commercial license.
* Please contact our sales team if you would like to discuss the specifics of our Enterprise license.
* If you are not su... | Java | cu-manager/src/test/java/cn/org/once/cstack/modules/mysql/Tomcat8Mysql56ModuleControllerTestIT.java | cxxly/cstack | agpl-3.0 | 1,806 | 41 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.