code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
package cert
import (
"context"
"crypto/rand"
"net/http"
"golang.org/x/net/http2"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"fmt"
"io"
"io/ioutil"
"math/big"
"net"
"os"
"reflect"
"testing"
"time"
cleanhttp "github.com/hashicorp/go-cleanhttp"
log "github.com/hashicorp/go-hclog"
"... | Aloomaio/vault | builtin/credential/cert/backend_test.go | GO | mpl-2.0 | 51,798 |
importScripts('sw-helpers.js');
async function getFetchResult(record) {
response = await record.responseReady;
if (!response)
return Promise.resolve(null);
return {
url: response.url,
status: response.status,
text: await response.text(),
};
}
self.addEventListener('backgroundfetchsuccess', e... | SimonSapin/servo | tests/wpt/web-platform-tests/background-fetch/service_workers/sw.js | JavaScript | mpl-2.0 | 676 |
initSidebarItems({"fn":[["DefineDOMInterface",""],["GetProtoObject",""],["Wrap",""]],"mod":[["FileReaderConstants",""]],"static":[["sNativePropertyHooks",""]],"trait":[["FileReaderMethods",""]]}); | susaing/doc.servo.org | servo/script/dom/bindings/codegen/Bindings/FileReaderBinding/sidebar-items.js | JavaScript | mpl-2.0 | 196 |
package userpass
import (
"fmt"
"reflect"
"testing"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/sdk/helper/policyutil"
"github.com/hashicorp/vault/sdk/testing/stepwise"
dockerEnvironment "github.com/hashicorp/vault/sdk/testing/stepwise/environments/docker"
"github.com/mitchellh/mapstructure"
... | hartsock/vault | builtin/credential/userpass/stepwise_test.go | GO | mpl-2.0 | 2,151 |
---
layout: "docs"
page_title: "Auth Backend: Token"
sidebar_current: "docs-auth-token"
description: |-
The token store auth backend is used to authenticate using tokens.
---
# Auth Backend: Token
The token backend is the only auth backend that is built-in and
automatically available at `/auth/token` as well as wit... | doubledutch/vault | website/source/docs/auth/token.html.md | Markdown | mpl-2.0 | 15,966 |
# encoding: utf-8
#
#
# 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/.
#
# Author: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from __future__ import absolute_import
from __f... | klahnakoski/JsonSchemaToMarkdown | vendor/jx_sqlite/expressions.py | Python | mpl-2.0 | 30,120 |
const getEngineName = (engine) => {
switch (engine) {
case 'electron': {
return 'Electron';
}
case 'firefox': {
return 'Mozilla Firefox';
}
case 'chromium': {
return 'Chromium';
}
case 'chrome': {
return 'Google Chrome';
}
case 'brave': {
return 'Brave... | quanglam2807/webcatalog | src/helpers/get-engine-name.js | JavaScript | mpl-2.0 | 546 |
{"gift":{"activityId":null,"activityType":null,"venderId":null,"type":0,"name":null,"itemHb":null,"id":"1","giftType":"9","giftName":"1积分","giftNum":"1","giftTotal":"10000","giftResidue":null,"priceInfo":"0","shortLink":"","orginLink":null,"giftInfoId":"92c8bff381e84e2280ba9d7be0b7c2d0","commonAddAwardVO":null},"msg":"... | bobon/push_weibo_to_shequdaren | jd_signup/1309893722-164885/1000325645_signUp.html | HTML | mpl-2.0 | 368 |
package ecc
import (
"bytes"
b64 "encoding/base64"
"encoding/json"
"errors"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
"os"
"reflect"
"time"
"github.com/socketplane/ecc/Godeps/_workspace/src/github.com/hashicorp/consul/api"
"github.com/socketplane/ecc/Godeps/_workspace/src/github.com/hashicorp/con... | socketplane/ecc | ecc.go | GO | mpl-2.0 | 14,626 |
var NAVTREEINDEX0 =
{
"adc_8h_source.html":[2,0,0],
"annotated.html":[1,0],
"classes.html":[1,1],
"crc_8h_source.html":[2,0,1],
"cs_8h_source.html":[2,0,2],
"driverlib_8h_source.html":[2,0,3],
"ecomp_8h_source.html":[2,0,4],
"eusci__a__spi_8h_source.html":[2,0,5],
"eusci__a__uart_8h_source.html":[2,0,6],
"eusci__b__i2c... | ots-m2m/sew-lwm2m-reference-design | thirdparty/msp430/doc/MSP430FR2xx_4xx/html/navtreeindex0.js | JavaScript | mpl-2.0 | 17,055 |
---
--- Created by slanska.
--- DateTime: 2017-11-01 11:26 PM
---
--[[
Implementation of flexi_data virtual table BestIndex API
]]
---@param self DBContext
local flexi_DataBestIndex = function(self)
end
return flexi_DataBestIndex | slanska/flexilite | src_lua/flexi_DataBestIndex.lua | Lua | mpl-2.0 | 233 |
#include "thumbnailcreator.h"
namespace libthmbnlr {
ThumbnailCreator::ThumbnailCreator(const STD_STRING_TYPE &videoPath):
m_SeekPercentage(10)
{}
bool ThumbnailCreator::createThumbnail(std::vector<uint8_t> &rgbBuffer, int &width, int &height) {
(void)rgbBuffer;
width = ... | Artiom-M/xpiks | vendors/libthmbnlr/thumbnailcreator_stub.cpp | C++ | mpl-2.0 | 375 |
create table coalescetest (id int,
age int,
name varchar(20));
insert into coalescetest values (1,20,'a');
insert into coalescetest(id,age) values (2,26);
insert into coalescetest(id,name) values (3,'c');
insert into coalescetest(id) values (4);
select avg(coalesce(age,38)) from c... | zyzyis/monetdb | sql/test/coalesce.sql | SQL | mpl-2.0 | 1,074 |
/*
* 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/.
*/
import React, { useState } from 'react';
import { styled } from '@csegames/linaria/react';
const Hero = styl... | csegames/Camelot-Unchained | patcher/src/components/ColossusHero.tsx | TypeScript | mpl-2.0 | 1,382 |
/*
* Copyright © 2010-2011 Rebecca G. Bettencourt / Kreative Software
* <p>
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* <a href="http://www.moz... | james-wallace-ghub/ydkjx | src/com/kreative/binpack/FPUtilities.java | Java | mpl-2.0 | 15,452 |
/* 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.mozilla.mozstumbler.client.mapview;
import android.location.Location;
import android.os.AsyncTask;
im... | garvankeeley/MozStumbler | android/src/main/java/org/mozilla/mozstumbler/client/mapview/MLSLocationGetter.java | Java | mpl-2.0 | 3,381 |
"""TxnReconcile allow txn_id to be null
Revision ID: 08b6358a04bf
Revises: 04e61490804b
Create Date: 2018-03-07 19:48:06.050926
"""
from alembic import op
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '08b6358a04bf'
down_revision = '04e61490804b'
branch_labels = None
depen... | jantman/biweeklybudget | biweeklybudget/alembic/versions/08b6358a04bf_txnreconcile_allow_txn_id_to_be_null.py | Python | agpl-3.0 | 765 |
package florian_haas.lucas.security;
public enum EnumPermissionModule {
ACCOUNT("account"),
ATTENDANCE("attendance"),
COMPANY("company"),
EMPLOYMENT("employment"),
ENTITY("entity"),
GLOBAL_DATA("globalData"),
ID_CARD("idCard"),
ITEM("item"),
JOB("job"),
LOGIN("login"),
LOGIN_ROLE("loginRole")... | Listopia-Official/listopia-user-and-company-administration-system | lucas-ejbClient/ejbModule/florian_haas/lucas/security/EnumPermissionModule.java | Java | agpl-3.0 | 640 |
package gplx.core.log_msgs; import gplx.*; import gplx.core.*;
public class Gfo_msg_data {
public int Uid() {return uid;} int uid = uid_next++;
public Gfo_msg_itm Item() {return item;} Gfo_msg_itm item;
public Object[] Vals() {return vals;} Object[] vals;
public byte[] Src_bry() {return src_bry;} private byte[... | gnosygnu/xowa_android | _100_core/src/main/java/gplx/core/log_msgs/Gfo_msg_data.java | Java | agpl-3.0 | 1,030 |
from cl.api import views
from cl.audio import api_views as audio_views
from cl.people_db import api_views as judge_views
from cl.search import api_views as search_views
from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
# Search & Audio
router.register(... | voutilad/courtlistener | cl/api/urls.py | Python | agpl-3.0 | 2,240 |
// Copyright 2010 - UDS/CNRS
// The Aladin program is distributed under the terms
// of the GNU General Public License version 3.
//
//This file is part of Aladin.
//
// Aladin is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the... | jankotek/asterope | aladin/cds/aladin/Localisation.java | Java | agpl-3.0 | 23,904 |
# -*- coding: utf-8 -*-
# Akvo RSR is covered by the GNU Affero General Public License.
# See more details in the license.txt file located at the root folder of the Akvo RSR module.
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.
from django.contrib.auth import get_u... | akvo/akvo-rsr | akvo/rest/serializers/user.py | Python | agpl-3.0 | 6,303 |
<?php
// Set page title and set crumbs to index
set_page_title(lang('clients'));
if(owner_company()->canAddClient(logged_user())) {
add_page_action(lang('add company'), get_url('company', 'add_client'), 'ico-add');
} // if
?>
<div class="adminClients" style="height:100%;background-color:... | yanlingling/xnjs | application/views/administration/clients.php | PHP | agpl-3.0 | 2,135 |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.3.0
build: 3167
*/
YUI.add("lang/datatype-date-format_es-PY",function(a){a.Intl.add("datatype-date-format","es-PY",{"a":["dom","lun","mar","mié","jue","vie","sáb"],"... | RajkumarSelvaraju/FixNix_CRM | jssource/src_files/include/javascript/yui3/build/datatype/lang/datatype_es-PY.js | JavaScript | agpl-3.0 | 895 |
#!/usr/bin/env bash
if [ $# -lt 3 ]; then
echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]"
exit 1
fi
DB_NAME=$1
DB_USER=$2
DB_PASS=$3
DB_HOST=${4-localhost}
WP_VERSION=${5-latest}
WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wordpress-tests-lib}
WP_CORE_DIR=${WP_CORE_DIR-/tmp/wordpress/}
set -ex
downloa... | corajr/wp-zotero-sync | bin/install-wp-tests.sh | Shell | agpl-3.0 | 2,514 |
package org.yamcs.parameterarchive;
import java.io.PrintStream;
import org.junit.Ignore;
import org.junit.Test;
import org.yamcs.utils.TimeEncoding;
import org.yamcs.yarch.YarchDatabase;
public class PrintStats {
@Ignore
@Test
public void test1() throws Exception {
TimeEncoding.setUp();
Y... | dhosa/yamcs | yamcs-core/src/test/java/org/yamcs/parameterarchive/PrintStats.java | Java | agpl-3.0 | 760 |
# ubuntu:14.04 as of 2017-11-15
FROM ubuntu@sha256:f6eed4def93a3b54da920737f0abf1a8cae2e480bb368280c898265fcaf910a3
RUN apt-get update # 2017-11-15
RUN apt-get install -y \
python-pip libpython2.7-dev libssl-dev secure-delete gnupg2 ruby redis-server
# refs securedrop/issues/1594
RUN gem install sass -v 3.4.23
# tes... | garrettr/securedrop | securedrop/Dockerfile | Dockerfile | agpl-3.0 | 1,971 |
package com.github._1element.sc.properties; //NOSONAR
import org.apache.commons.io.FileUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Configuration properties for SFTP remote copy.
*/
@Component
@ConfigurationProperties("sc.r... | 1element/sc | src/main/java/com/github/_1element/sc/properties/SFTPRemoteCopyProperties.java | Java | agpl-3.0 | 1,848 |
/* This file is part of VoltDB.
* Copyright (C) 2008-2013 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... | kobronson/cs-voltdb | src/frontend/org/voltdb/SysProcSelector.java | Java | agpl-3.0 | 1,568 |
linguas.directive('bunchRow', ['$window', 'TranslationService',
function ($window, TranslationService) {
return {
restrict: 'AE',
replace: true,
scope: {
bunch: '=bunch'
},
templateUrl: 'app/features/translation-bunch/bunch-row/bunch-row.html',
controller: function ($sc... | asm-products/linguas | app/features/translation-bunch/bunch-row/bunch-row.js | JavaScript | agpl-3.0 | 349 |
/*
PogoLocationFeeder gathers pokemon data from various sources and serves it to connected clients
Copyright (C) 2016 PogoLocationFeeder Development Team <admin@pokefeeder.live>
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... | 5andr0/PogoLocationFeeder | PogoLocationFeeder/Readers/DiscordWebReader.cs | C# | agpl-3.0 | 2,854 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Snackbar from 'material-ui/Snackbar';
import { Route } from 'react-router';
import { store } from '..';
import { isConfigLoaded, getConfig } from '../modules/config';
import AppBar from './AppBar';
import Dashb... | tallessa/tallessa-frontend | src/components/App.js | JavaScript | agpl-3.0 | 2,288 |
var clover = new Object();
// JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]}
clover.pageData = {"classes":[{"el":54,"id":84685,"methods":[{"el":40,"sc":2,"sl":38},{"el":45,"sc":2,"sl":42},{"el":52,"sc":2,"sl":47}],"name":"EscapeHTML","sl":33}]}
// JSON: {test_ID : {"methods": [ID1, ID2, ID3..... | cm-is-dog/rapidminer-studio-core | report/html/com/rapidminer/tools/expression/internal/function/text/EscapeHTML.js | JavaScript | agpl-3.0 | 697 |
using wServer.networking.packets;
using wServer.networking.packets.incoming;
using wServer.realm;
namespace wServer.networking.handlers
{
class PongHandler : PacketHandlerBase<Pong>
{
public override PacketId ID => PacketId.PONG;
protected override void HandlePacket(Client client, Pong packet... | cp-nilly/NR-CORE | wServer/networking/handlers/PongHandler.cs | C# | agpl-3.0 | 569 |
/*
* opencog/spatial/math/Plane.h
*
* Copyright (C) 2002-2009 Novamente LLC
* All Rights Reserved
* Author(s): Samir Araujo
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software Foundation an... | misgeatgit/opencog | opencog/spatial/math/Plane.h | C | agpl-3.0 | 4,162 |
.ColorButton-transparency {
background-color: #ccc;
background-position: 50% 50%;
border-radius: 3px;
}
.ColorButton-color {
height: 100%;
position: relative;
border-radius: 3px;
}
.ColorButton-opaque {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 50%;
border... | qliavi/touch-paint | run/css/ColorButton.css | CSS | agpl-3.0 | 344 |
spree_commerce
==============
Required fields for Spree Commerce endpoint integration
| OpenSolutionsFinland/spree_commerce | README.md | Markdown | agpl-3.0 | 87 |
/*
* 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) any later version.
* Splice Machine is distributed i... | splicemachine/spliceengine | db-testing/src/test/java/com/splicemachine/dbTesting/functionTests/tests/jdbc4/PreparedStatementTest.java | Java | agpl-3.0 | 46,865 |
/* Warning: This is just the same as the old one_column-deprecated.css.
One day, we'll probably want to review this and clean it up. */
body.one_column #main { float: none; }
body.one_column #main .submodule .head h3 { font-weight: normal; font-size: 11pt; }
body.one_column #main .submodule .body, #main .submodule ... | mzdaniel/oh-mainline | mysite/static/css/base/one_column.css | CSS | agpl-3.0 | 1,554 |
<?php
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.
return [
'availability' => [
'disabled' => 'Hiện tại beatmap này không có sẵn để tải xuống.',
'parts-removed' => 'Mộ... | nekodex/osu-web | resources/lang/vi/beatmapsets.php | PHP | agpl-3.0 | 5,925 |
/**
* @author Olaf Radicke <briefkasten@olaf-rdicke.de>
* @date 2013-2014
* @copyright
* Copyright (C) 2013 Olaf Radicke <briefkasten@olaf-rdicke.de>
*
* 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 Softwar... | OlafRadicke/tntwebwizard | src/core/controller/ProjectResetController.h | C | agpl-3.0 | 2,476 |
<?php
/**
# Copyright 2003-2015 Opmantek Limited (www.opmantek.com)
#
# ALL CODE MODIFICATIONS MUST BE SENT TO CODE@OPMANTEK.COM
#
# This file is part of Open-AudIT.
#
# Open-AudIT is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# ... | Opmantek/open-audit | code_igniter/application/controllers/login.php | PHP | agpl-3.0 | 1,842 |
package com.surgingsystems.etl.filter.transformer;
public class OutputCondition extends ConditionalOutputConfiguration {
}
| objectuser/pneumatic | pneumatic/src/main/java/com/surgingsystems/etl/filter/transformer/OutputCondition.java | Java | agpl-3.0 | 126 |
<?php
/*********************************************************************************
* Zurmo is a customer relationship management program developed by
* Zurmo, Inc. Copyright (C) 2013 Zurmo Inc.
*
* Zurmo is free software; you can redistribute it and/or modify it under
* the terms of t... | zurmo/Zurmo | app/protected/modules/emailMessages/elements/derived/EmailMessageToRecipientsElement.php | PHP | agpl-3.0 | 3,402 |
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")
require 'zlib'
describe "Javascript API", "error handling" do
describe "author" do
def create_new_topic
admin = FactoryGirl.create(:admin)
site = FactoryGirl.create(:hatsuneshima, :user_id => admin.id)
topic = FactoryG... | asharma-ror/bbc | spec/requests/javascript_api/author_spec.rb | Ruby | agpl-3.0 | 3,077 |
# -*- encoding : utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the Affero GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is dis... | hannesg/splash | lib/splash/lazy/fetcher.rb | Ruby | agpl-3.0 | 1,882 |
// Append only, write once, non-volatile memory vector
#pragma once
#include <sse/schemes/abstractio/scheduler.hpp>
#include <sse/schemes/utils/logger.hpp>
#include <sse/schemes/utils/utils.hpp>
#include <cassert>
#include <cerrno>
#include <cstring>
#include <unistd.h>
#include <atomic>
#include <exception>
#inclu... | OpenSSE/opensse-schemes | lib/include/sse/schemes/abstractio/awonvm_vector.hpp | C++ | agpl-3.0 | 14,702 |
<?php
OC_JSON::callCheck();
//OC_JSON::checkSubAdminUser();
//$groupname = 'test';
if (isset($_POST['groupname'])) {
$groupname = $_POST['groupname'];
} else {
OC_JSON::error(array("data" => array( "message" => "No group." )));
}
if (OC_User::isAdminUser(OC_User::getUser())) {
$result = \OCP\MC_Group::getGroupInfo(... | ipit-international/learning-environment | owncloud/settings/ajax/getpkey.php | PHP | agpl-3.0 | 645 |
# -*- coding: utf-8 -*-
# © 2015 Elico corp (www.elico-corp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import base64
import random
import string
from binascii import hexlify, unhexlify
from openerp import api, fields, models
try:
from captcha.image import ImageCaptcha
except ImportE... | Elico-Corp/odoo-addons | website_captcha_nogoogle/website.py | Python | agpl-3.0 | 2,704 |
/**
* app.js
*
* Use `app.js` to run your app without `sails lift`.
* To start the server, run: `node app.js`.
*
* This is handy in situations where the sails CLI is not relevant or useful.
*
* For example:
* => `node app.js`
* => `forever start app.js`
* => `node debug app.js`
* => `modulus deploy`... | Scalair-OpenSource/occi-board | app.js | JavaScript | agpl-3.0 | 1,766 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual
* contributors as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a full listing
* of individual contributors.
*
* This copyrighted material is ma... | RestComm/jss7 | map/map-impl/src/main/java/org/restcomm/protocols/ss7/map/service/mobility/subscriberInformation/AnyTimeInterrogationRequestImpl.java | Java | agpl-3.0 | 14,805 |
# Generated by Django 2.2.15 on 2020-12-01 13:12
from django.db import migrations
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
("projects", "0008_auto_20190220_1133"),
]
operations = [
migrations.AddField(
model_name="project",
... | adfinis-sygroup/timed-backend | timed/projects/migrations/0009_auto_20201201_1412.py | Python | agpl-3.0 | 38,360 |
export const divides = (y) => (x) => y % x === 0;
export const divisible = (y) => (x) => x % y === 0;
| aureooms/js-predicate | src/numbers.js | JavaScript | agpl-3.0 | 102 |
'use strict';
var REGEXP = /^(.+)\s+(.+)$/
function parser(str) {
var deps = str.replace(/(\#(.*))/g, '').split("\n").reduce( (accum, line) => {
var match = line.match(REGEXP);
if (!match) return accum;
let name = match[1].trim(), version = match[2].trim()
accum.push({
name: name,
ve... | librariesio/librarian-parsers | lib/parsers/gpm.js | JavaScript | agpl-3.0 | 446 |
<?php
/*********************************************************************************
* Zurmo is a customer relationship management program developed by
* Zurmo, Inc. Copyright (C) 2013 Zurmo Inc.
*
* Zurmo is free software; you can redistribute it and/or modify it under
* the terms of t... | jhuymaier/zurmo | app/protected/modules/campaigns/controllers/DefaultController.php | PHP | agpl-3.0 | 11,777 |
import React from 'react';
import { IGameDef } from '../../games';
import Card from '@material-ui/core/Card';
import CardActionArea from '@material-ui/core/CardActionArea';
import CardContent from '@material-ui/core/CardContent';
import CardMedia from '@material-ui/core/CardMedia';
import Typography from '@material-ui/... | Felizardo/turnato | src/App/Game/GameCard.tsx | TypeScript | agpl-3.0 | 982 |
/* MAP FUNCTIONS */
var mapStyle = 'Wikimedia';
var mapOverlay = null;
var resultMapLayer = null;
var resultMapOverlay = null;
var resultMapObj = null;
var mapMarkers = {};
var cityLat = null;
var cityLon = null;
function toggleMap() {
backScrollY = null;
if (!... | regenduft/mobile.kartevonmorgen | map.js | JavaScript | agpl-3.0 | 10,196 |
import validatePostData from './validatePostData'
describe('validatePostData', () => {
var user, inGroup, notInGroup
before(function () {
inGroup = new Group({slug: 'foo', name: 'Foo', group_data_type: 1 })
notInGroup = new Group({slug: 'bar', name: 'Bar', group_data_type: 1 })
user = new User({name: ... | Hylozoic/hylo-node | api/models/post/validatePostData.test.js | JavaScript | agpl-3.0 | 2,258 |
<?php
namespace Drupal\EECSAdvise\Entity;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\user\EntityOwnerInterface;
/**
* Provides an interface defining a Student entity.
* @ingroup EECSAdvise
*/
interface StudentInterface extends ContentEntityInterface, E... | Munsy/EECSAdvise | src/Entity/StudentInterface.php | PHP | agpl-3.0 | 369 |
MWF.APPDSMD = MWF.xApplication.query.StatementDesigner;
MWF.APPDSMD.options = {
"multitask": true,
"executable": false
};
MWF.xDesktop.requireApp("query.StatementDesigner", "Statement", null, false);
MWF.xApplication.query.StatementDesigner.Main = new Class({
Extends: MWF.xApplication.Common.Main,
Implements: [Opt... | o2oa/o2oa | o2web/source/x_component_query_StatementDesigner/Main.js | JavaScript | agpl-3.0 | 24,111 |
class RolesController < ApplicationController
load_and_authorize_resource
# GET /roles
def index
@roles = Role.all
respond_to do |format|
format.html # index.html.erb
end
end
# GET /roles/1
def show
@role = Role.find(params[:id])
respond_to do |format|
format.html # show.h... | iressgrad15/growstuff | app/controllers/roles_controller.rb | Ruby | agpl-3.0 | 1,306 |
<?php
require_once dirname(__FILE__).'/../lib/parcoursGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/parcoursGeneratorHelper.class.php';
/**
* parcours actions.
*
* @package sf_sandbox
* @subpackage parcours
* @author Your name here
* @version SVN: $Id: actions.class.php 23... | CapSciences/navinum | apps/backend/modules/parcours/actions/actions.class.php | PHP | agpl-3.0 | 2,030 |
# THIS CONFIG WAS AUTOMATICALLY CREATED FROM TEMPLATE CONFIG FILE TO OPEN A MIDI FILE
# YOU CAN EDIT THIS CONFIG FILE TO OPEN THIS FILE AGAIN
# If you want to change template config file, that is copied each time you open a MIDI file, please go to configs folder in your File browser
# Template configs are not accessibl... | rualark/MGen | MGen/configs/GenCA2/MTE1110-TP07-Solu.pl | Perl | agpl-3.0 | 707 |
<?php
/**
* Website that displays live PHP documentation of classes and functions with the help of reflection.
* Copyright (C) 2015 Marcel Joachim Kloubert <marcel.kloubert@gmx.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General ... | mkloubert/phpLiveDoc | views/common_view_include.php | PHP | agpl-3.0 | 987 |
{{Extend "layout"}}
{{Block "title"}}{{if HasSuffix URL.Path "_add"}}{{"添加用户"|T}}{{else}}{{"修改用户"|T}}{{end}}{{/Block}}
{{Block "breadcrumb"}}
{{Super}}
<li><a href="{{BackendURL}}/manager/user">{{"用户列表"|T}}</a></li>
<li class="active">{{if HasSuffix URL.Path "_add"}}{{"添加"|T}}{{else}}{{"修改"|T}}{{end}}</li>
{{/Block}}
{... | admpub/nging | template/backend/manager/user_edit.html | HTML | agpl-3.0 | 8,893 |
# frozen-string_literal: true
module Decidim
class RemovedFromGroupEvent < Decidim::Events::SimpleEvent
delegate :url_helpers, to: "Decidim::Core::Engine.routes"
i18n_attributes :user_group_name
def resource_url
url_helpers.group_manage_users_url(
user_group_nickname,
host: user.o... | codegram/decidim | decidim-core/app/events/decidim/removed_from_group_event.rb | Ruby | agpl-3.0 | 601 |
using InfinniPlatform.Cache.Clusterization;
using InfinniPlatform.IoC;
using InfinniPlatform.MessageQueue;
namespace InfinniPlatform.Cache.IoC
{
/// <summary>
/// Dependency registration module for <see cref="InfinniPlatform.Cache" />.
/// </summary>
public class TwoLayerCacheContainerModule : IContai... | InfinniPlatform/InfinniPlatform | InfinniPlatform.Cache.TwoLayer/IoC/TwoLayerCacheContainerModule.cs | C# | agpl-3.0 | 2,913 |
DELETE FROM PROTOCOL_PERSONS WHERE PROTOCOL_PERSON_ROLE_ID='CRC'
/
commit
/
DECLARE
li_ver_nbr NUMBER(8):=1;
li_proto_person_id NUMBER(12,0);
ls_proto_num VARCHAR2(20 BYTE);
li_sequence NUMBER(4,0);
li_seq NUMBER(4,0);
ls_person_id VARCHAR2(40);
li_rolodex_id NUMBER(12,0);
ls_full_name VARCHAR2(90);
li_sequence_num NUM... | rashikpolus/MIT_KC | coeus-db/coeus-db-sql/src/main/resources/edu/mit/kc/sql/migration/DML_MITKC-963_01222015.sql | SQL | agpl-3.0 | 6,089 |
/* SafeDisk
* Copyright (C) 2014 Frank Laub
*
* 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.
*
* ... | safedisk/safedisk | qt/CreateDiskDialog.cpp | C++ | agpl-3.0 | 3,312 |
<?php decorate_with('layout_1col') ?>
<?php use_helper('Date') ?>
<?php slot('title') ?>
<h1 class="multiline">
<?php echo __('Showing %1% results', array('%1%' => $pager->getNbResults())) ?>
<span class="sub"><?php echo __('Rights holder') ?></span>
</h1>
<?php end_slot() ?>
<?php slot('before-content') ... | CENDARI/atom | apps/qubit/modules/rightsholder/templates/browseSuccess.php | PHP | agpl-3.0 | 2,009 |
DELETE FROM `weenie` WHERE `class_Id` = 4891;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (4891, 'distillerynectar', 18, '2019-02-10 00:00:00') /* Food */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (4891, 1, 32) /* ItemType - Food */
,... | ACEmulator/ACE-World | Database/3-Core/9 WeenieDefaults/SQL/Food/Food/04891 Distillery Nectar.sql | SQL | agpl-3.0 | 2,285 |
import * as React from 'react';
import * as styles from './expandable.scss';
interface Props {
content: string;
maxLength: number;
}
interface State {
expanded: boolean;
}
export default class Expandable extends React.Component<Props, State> {
state: State = {
expanded: false
};
tog... | dutchcoders/marija-web | src/app/table/components/expandable/expandable.tsx | TypeScript | agpl-3.0 | 987 |
h1
{
border-bottom: 0.1em solid #ff5500;
font-size: 2em;
color: #05006e;
margin-top: 0;
padding: 1%;
background-color: #9593b9;
margin-bottom: 0.2em;
width: 100%;
}
#content
{
padding: 1%;
}
h2
{
border-bottom: 0.1em solid #ff5500;
font-size: 1.5em;
color: #05006e;
margin-bottom: 1em;
widt... | libersoft/BNB | web/css/backend.css | CSS | agpl-3.0 | 1,674 |
<?php
class Advanced_Excerpt {
public $options;
/*
* Some of the following options below are linked to checkboxes on the plugin's option page.
* If any checkbox options are added/removed/modified in the future please ensure you also update
* the $checkbox_options variable in the update_options() method.... | akvo/akvo-sites-zz-template | code/wp-content/plugins/advanced-excerpt/class/advanced-excerpt.php | PHP | agpl-3.0 | 18,989 |
<?php namespace Controllers\Admin;
use AdminController;
use Input;
use Lang;
use Accessory;
use Redirect;
use Setting;
use DB;
use Sentry;
use Str;
use Validator;
use View;
use User;
use Actionlog;
use Mail;
use Datatable;
class AccessoriesController extends AdminController
{
/**
* Show a list of all the acc... | ivarne/snipe-it | app/controllers/admin/AccessoriesController.php | PHP | agpl-3.0 | 14,711 |
/**
* Asqatasun - Automated webpage assessment
* Copyright (C) 2008-2020 Asqatasun.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
* published by the Free Software Foundation, either version 3 of the
* License, or (at ... | Asqatasun/Asqatasun | rules/rules-rgaa4.0/src/main/java/org/asqatasun/rules/rgaa40/Rgaa40Rule101301.java | Java | agpl-3.0 | 1,549 |
from django.views.decorators.cache import never_cache
from django.views.generic.base import RedirectView
from C4CApplication.views.utils import create_user
class MemberDetailsRedirectView(RedirectView):
url = ""
connected_member = None
def dispatch(self, request, *args, **kwargs):
... | dsarkozi/care4care-sdp-grp4 | Care4Care/C4CApplication/views/MemberDetailsRedirectView.py | Python | agpl-3.0 | 1,019 |
"""
Specific overrides to the base prod settings to make development easier.
"""
# Silence noisy logs
import logging
from os.path import abspath, dirname, join
from corsheaders.defaults import default_headers as corsheaders_default_headers
# pylint: enable=unicode-format-string # lint-amnesty, pylint: disable=bad-... | eduNEXT/edx-platform | lms/envs/devstack.py | Python | agpl-3.0 | 17,710 |
from unittest.mock import ANY, patch
from django.test import override_settings
from geoip2.errors import AddressNotFoundError
from rest_framework import status
from rest_framework.test import APITestCase
from karrot.groups.factories import GroupFactory
from karrot.users.factories import UserFactory
from karrot.utils.... | yunity/foodsaving-backend | karrot/bootstrap/tests/test_api.py | Python | agpl-3.0 | 4,392 |
# Fat Free CRM
# Copyright (C) 2008-2011 by Michael Dvorkin
#
# 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.
#
#... | brookzhang/yxran_fatfreeCRM | lib/fat_free_crm/gem_dependencies.rb | Ruby | agpl-3.0 | 1,352 |
<?php
/**
* This file is part of the Checkbook NYC financial transparency software.
*
* Copyright (C) 2012, 2013 New York City
*
* 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 v... | MomixSolutions/MyGovCenter | source/webapp/sites/all/modules/custom/checkbook_trends/templates/debt_capacity_trends/ratios_of_general_bonded_debt.tpl.php | PHP | agpl-3.0 | 2,986 |
#include "mupdf/fitz.h"
#if FZ_ENABLE_PDF
#include "mupdf/pdf.h"
#endif
#if FZ_ENABLE_JS
#include "mujs.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#define PS1 "> "
FZ_NORETURN static void rethrow(js_State *J)
{
js_newerror(J, fz_caught_message(js_getcontext(J)));
js_throw(J);
}
FZ_NORETURN s... | muennich/mupdf | source/tools/murun.c | C | agpl-3.0 | 123,394 |
class AccessToken < ActiveRecord::Base
attr_reader :full_token
belongs_to :developer_key
belongs_to :user
attr_accessible :user, :purpose, :expires_at, :developer_key, :regenerate, :scopes, :remember_access
serialize :scopes, Array
validate :must_only_include_valid_scopes
# For user-generated tokens, pu... | loganrun/pincan | app/models/access_token.rb | Ruby | agpl-3.0 | 3,027 |
# -*- coding: utf-8; -*-
#
# This file is part of Superdesk.
#
# Copyright 2013, 2014 Sourcefabric z.u. and contributors.
#
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license
import logg... | petrjasek/superdesk-server | superdesk/io/commands/update_ingest.py | Python | agpl-3.0 | 9,268 |
using wServer.realm.worlds;
namespace wServer.realm.setpieces
{
class GhostShip : ISetPiece
{
public int Size { get { return 40; } }
public void RenderSetPiece(World world, IntPoint pos)
{
var proto = world.Manager.Resources.Worlds["GhostShip"];
SetPieces.Rende... | cp-nilly/NR-CORE | wServer/realm/setpieces/GhostShip.cs | C# | agpl-3.0 | 371 |
"""
A Python "serializer". Doesn't do much serializing per se -- just converts to
and from basic Python data types (lists, dicts, strings, etc.). Useful as a basis for
other serializers.
"""
from __future__ import unicode_literals
from django.conf import settings
from keops.core.serializers import base
from django.db ... | mrmuxl/keops | keops/core/serializers/python.py | Python | agpl-3.0 | 6,979 |
<?php
/**
* Slim - a micro PHP 5 framework
*
* @author Josh Lockhart <info@slimframework.com>
* @copyright 2011 Josh Lockhart
* @link http://www.slimframework.com
* @license http://www.slimframework.com/license
* @version 2.4.0
* @package Slim
*
* MIT LICENSE
*
* Permission is her... | Davidfvkun/My-Freak-List | vendor/slim/slim/Slim/Http/Request.php | PHP | agpl-3.0 | 16,622 |
/*
* TeleStax, Open Source Cloud Communications Copyright 2012.
* and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser ... | RestComm/jss7 | m3ua/impl/src/main/java/org/restcomm/protocols/ss7/m3ua/impl/SEHAsStateEnterPen.java | Java | agpl-3.0 | 2,859 |
import {
createStyles,
FormControl,
Input,
InputAdornment,
InputLabel,
Theme,
WithStyles,
} from '@material-ui/core';
import Button from '@material-ui/core/Button';
import Divider from '@material-ui/core/Divider';
import IconButton from '@material-ui/core/IconButton';
import Paper from '@material-ui/core/Paper';... | iquabius/olimat | packages/web/src/components/User/SignUpForm.tsx | TypeScript | agpl-3.0 | 5,100 |
# == Schema Information
#
# Table name: sponsors
#
# id :integer not null, primary key
# name :string(510)
# logo_file_name :string(510)
# logo_content_type :string(510)
# logo_file_size :integer
# logo_updated_at :datetime
# website :string(510)
# sponsora... | skyderby/skyderby | spec/factories/sponsors.rb | Ruby | agpl-3.0 | 734 |
<?php
// created: 2011-07-20 15:47:55
$dictionary['sphr_Client']['fields']['passport_number']['required']=false;
?> | yonkon/nedvig | custom/Extension/modules/sphr_Client/Ext/Vardefs/sugarfield_passport_number.php | PHP | agpl-3.0 | 118 |
<?php
/*
* @author Anakeen
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
* @package FDL
*/
/**
* Workflow Class Document
*
* @author Anakeen 2002
* @version $Id: Class.WDoc.php,v 1.63 2009/01/08 17:47:07 eric Exp $
* @license http://www.fsf.org/licensing/licens... | Eric-Brison/dynacase-core | Class/Fdl/Class.WDoc.php | PHP | agpl-3.0 | 41,560 |
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: shoutbox_panel.php
| Author: Nick Jones (Digitanium)
+---------------------... | Talocha/PHP-Fusion | infusions/shoutbox_panel/shoutbox_panel.php | PHP | agpl-3.0 | 10,415 |
package com.puresoltechnologies.purifinity.server.core.impl.analysis.job;
import java.util.Map;
import javax.batch.api.Batchlet;
import javax.batch.runtime.context.JobContext;
import javax.batch.runtime.context.StepContext;
import javax.inject.Inject;
import javax.inject.Named;
import org.slf4j.Logger;
import com.p... | PureSolTechnologies/Purifinity | analysis/server/server/core.impl/src/main/java/com/puresoltechnologies/purifinity/server/core/impl/analysis/job/FileTreeCreationBatchlet.java | Java | agpl-3.0 | 2,659 |
require "rails_helper"
describe "Moderate users" do
scenario "Hide" do
citizen = create(:user)
moderator = create(:moderator)
debate1 = create(:debate, author: citizen)
debate2 = create(:debate, author: citizen)
debate3 = create(:debate)
comment3 = create(:comment, user: citizen, commentable... | consul/consul | spec/system/moderation/users_spec.rb | Ruby | agpl-3.0 | 2,643 |
/*
sb0t ares chat server
Copyright (C) 2017 AresChat
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... | AresChat/sb0t | commands/CustomNames.cs | C# | agpl-3.0 | 3,919 |
/**
* This file is part of Superdesk.
*
* Copyright 2015 Sourcefabric z.u. and contributors.
*
* For the full copyright and license information, please see the
* AUTHORS and LICENSE files distributed with this source code, or
* at https://www.sourcefabric.org/superdesk/license
*/
(function() {
'use strict';
W... | amagdas/superdesk | client/app/scripts/superdesk-authoring/workqueue/workqueue.js | JavaScript | agpl-3.0 | 5,140 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<link href="css/mui.min.css" rel="stylesheet"/>
<link href="css/app.css" rel="stylesheet" />
<link href=... | zuofang/work | ruiyin-agent/register2.html | HTML | agpl-3.0 | 2,052 |
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... | opensourceBIM/bimql | BimQL/src/nl/wietmazairac/bimql/set/attribute/SetAttributeSubIfcClassificationReference.java | Java | agpl-3.0 | 2,056 |
<?php
/**
* @package Billing
* @copyright Copyright (C) 2012-2016 BillRun Technologies Ltd. All rights reserved.
* @license GNU Affero General Public License Version 3; see LICENSE.txt
*/
/**
* Billapi model for operations on BillRun entities
*
* @package Billapi
* @since 5.3
*/
cla... | BillRun/system | application/modules/Billapi/Models/Entity.php | PHP | agpl-3.0 | 42,017 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.