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 |
|---|---|---|---|---|---|
# 96. Unique Binary Search Trees My Submissions QuestionEditorial Solution
# Total Accepted: 84526 Total Submissions: 224165 Difficulty: Medium
# Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
#
# For example,
# Given n = 3, there are a total of 5 unique BST's.
#
# 1 ... | shawncaojob/LC | QUESTIONS/96_unique_binary_search_trees.py | Python | gpl-3.0 | 2,402 |
/*
kuroBox / naniBox
Copyright (c) 2013
david morris-oliveros // naniBox.com
This file is part of kuroBox / naniBox.
kuroBox / naniBox 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; ... | naniBox/kuroBox_BurnIn | src/kb_buttons.h | C | gpl-3.0 | 1,427 |
// -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Manta - Structural Variant and Indel Caller
// Copyright (c) 2013-2015 Illumina, Inc.
//
// 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, eit... | chapmanb/manta | src/c++/lib/blt_util/test/stage_manager_test.cpp | C++ | gpl-3.0 | 4,333 |
<footer class="footer slide" id="footer" data-slide="6" style="min-height: 300px;height: auto;">
<div class="contentwrap row-fluid">
<div class="span4 blogs">
<span>Blogs:</span>
<ul class="unstyled">
#if (!$Blog.getSiblings().isEmpty())
#foreach ($cu... | Edgaru10/portal-uce | public_html/str_templates/fac/fac_contacto.html | HTML | gpl-3.0 | 2,526 |
/*
* LedControl.cpp - A library for controling Leds with a MAX7219/MAX7221
* Copyright (c) 2007 Eberhard Fahle
*
* Feb. 2014 - Regis Blanchot - adapted to Pinguino
* Feb. 2014 - Regis Blanchot - added scroll functions
*
* Permission is hereby granted, free of charge, to any person
* obtain... | TheLazyBastard/InXource | API/pinguino/libraries/ledcontrol.c | C | gpl-3.0 | 9,949 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, erpnext
from frappe.utils import flt, cstr, cint
from frappe import _
from frappe.model.meta import get_field_precision
from erpnext.acco... | Zlash65/erpnext | erpnext/accounts/general_ledger.py | Python | gpl-3.0 | 9,852 |
<?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... | sadiqdon/cycommerce | common/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceResponse.php | PHP | gpl-3.0 | 1,636 |
! copyright info:
!
! @Copyright 2001
! Fireball Committee
! Brigham Young University - James P. Lewis, Chair
! Arizona State University - Otto F. Sankey
! University of Regensburg - Juergen Fritsch
! Universidad de Madrid - Jose Ortega
! Other contributors, past a... | fireball-QMD/begin | begin_rcatms/RCATMS/integrate_hpsi.f90 | FORTRAN | gpl-3.0 | 5,318 |
<h1>TiTouchImageView Module</h1>
<p>================</p>
<p>Titanium native module wrapper for TouchImageView: https://github.com/MikeOrtiz/TouchImageView</p>
<p>Do you like pinching and zooming on iOS? Wish it just worked on Android too? Here you go!</p>
<h2>Get it <a href="http://gitt.io/component/org.iotashan.TiTouc... | ClinicalSoftwareSolutions/WellsScoreCalc | modules/android/org.iotashan.titouchimageview/1.0.2/documentation/index.html | HTML | gpl-3.0 | 2,081 |
/*
* Copyright 2015 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | golden1232004/webrtc_new | webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java | Java | gpl-3.0 | 23,905 |
#undef ENABLE_NLS
#undef HAVE_CATGETS
#undef HAVE_GETTEXT
#undef HAVE_LC_MESSAGES
#undef HAVE_STPCPY
#undef PACKAGE
#undef VERSION
| chimari/hoe | acconfig.h | C | gpl-3.0 | 131 |
###########################################################################
#
# This file is partially auto-generated by the DateTime::Locale generator
# tools (v0.10). This code generator comes with the DateTime::Locale
# distribution in the tools/ directory, and is called generate-modules.
#
# This file was generated... | kiamazi/mira | local/lib/perl5/DateTime/Locale/twq_NE.pod | Perl | gpl-3.0 | 10,451 |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_PROPERTY_H_
#define V8_PROPERTY_H_
#include "isolate.h"
#include "factory.h"
#include "types.h"
namespace v8 {
namespace internal {
// Abs... | jiachenning/fibjs | vender/src/v8/src/property.h | C | gpl-3.0 | 14,833 |
# -*- coding: utf-8 -*-
import json
from catmaid.models import Message
from .common import CatmaidApiTestCase
class MessagesApiTests(CatmaidApiTestCase):
def test_read_message_error(self):
self.fake_authentication()
message_id = 5050
response = self.client.post(f'/messages/{message_id}... | catmaid/CATMAID | django/applications/catmaid/tests/apis/test_messages.py | Python | gpl-3.0 | 3,008 |
/**
* Copyright (C) 2008 Happy Fish / YuQing
*
* FastDFS may be copied only under the terms of the GNU General
* Public License V3, which may be found in the FastDFS source kit.
* Please visit the FastDFS Home Page http://www.csource.org/ for more detail.
**/
#ifndef _FDFS_HTTP_SHARED_H
#define _FDFS_HTTP_SHARED_H
#i... | fatedier/studies | fastdfs-5.01/common/fdfs_http_shared.h | C | gpl-3.0 | 3,117 |
// DeflateDecoder.cpp
#include "StdAfx.h"
#include "DeflateDecoder.h"
namespace NCompress {
namespace NDeflate {
namespace NDecoder {
CCoder::CCoder(bool deflate64Mode):
_deflate64Mode(deflate64Mode),
_deflateNSIS(false),
_keepHistory(false),
_needFinishInput(false),
_needInitInStream(true),
... | endlessm/rufus | endless/src/7z/CPP/7zip/Compress/DeflateDecoder.cpp | C++ | gpl-3.0 | 12,300 |
/*
* Copyright (C) 2010 Brockmann Consult GmbH (info@brockmann-consult.de)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at your option)
* any late... | arraydev/snap-engine | ceres-binio/src/main/java/com/bc/ceres/binio/expr/package-info.java | Java | gpl-3.0 | 1,167 |
<html>
<?php if (!defined('BASEPATH')) exit ('No direct script access allowed');?>
<?php $this->load->view('print/headjs.php');?>
<body>
<div id="content" class="container_12 clearfix">
<div id="content-main" class="grid_7">
<link href="<?= base_url()?>assets/css/surat.css" rel="stylesheet" type="text/css" ... | metalab25/OpenSID | surat/surat_ket_wali_hakim/print_surat_ket_wali_hakim.php | PHP | gpl-3.0 | 4,921 |
program sem_model_slice
implicit none
include 'mpif.h'
include '../../SHARE_FILES/HEADER_FILES/constants.h'
include '../../SHARE_FILES/HEADER_FILES/values_from_mesher.h'
include '../../SHARE_FILES/HEADER_FILES/precision.h'
integer,parameter:: NUM_NODES=99 ! for recent mesher 100 processors
integer,parameter:: iregio... | vmont/specfem3d | utils/ADJOINT_TOMOGRAPHY_TOOLS/ADJOINT_TOMOGRAPHY_TOOLKIT/MODEL_VISULIZATION/SRC_MODEL_SLICE_HORIZ/sem_model_slice.f90 | FORTRAN | gpl-3.0 | 6,127 |
#ifndef VOIPVIDEOLIB_GLOBAL_H
#define VOIPVIDEOLIB_GLOBAL_H
#include <QtCore/qglobal.h>
#ifdef VOIPVIDEOLIB_LIB
# define VOIPVIDEOLIB_EXPORT Q_DECL_EXPORT
#else
# define VOIPVIDEOLIB_EXPORT Q_DECL_IMPORT
#endif
#endif // VOIPVIDEOLIB_GLOBAL_H
| silvansky/Contacts | src/thirdparty/siplibraries/VoIPVideoLib/Inc/voipvideolib_global.h | C | gpl-3.0 | 258 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image', 'fa', {
alertUrl: 'لطفا URL تصویر را بنویسید',
alt: 'متن جایگزین',
border: 'لبه',
btnUpload: 'به سرور بفرست',
button2Img: 'آیا ... | joyofsrc/src | resources/ckeditor/plugins/image/lang/fa.js | JavaScript | gpl-3.0 | 1,366 |
# This file is part of Bioy
#
# Bioy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Bioy is distributed in the hope... | nhoffman/bioy | bioy_pkg/subcommands/classify.py | Python | gpl-3.0 | 17,999 |
'''
Created on Jul 28, 2013
@author: Rob
'''
import os, yaml
config = {
'names': [
'NT',
'VGTestServer'
],
'servers':{
'irc.server.tld': {
'port':6667,
'password':None,
'channels':{
'#vgstati... | mph55/lanstation13 | tools/bot/vgstation/common/config.py | Python | gpl-3.0 | 1,605 |
# $Id: strider.pm,v 1.6.4.2 2006/10/02 23:10:30 sendu Exp $
# BioPerl module for Bio::SeqIO::strider
#
# Cared for by Malcolm Cook <mec@stowers-institute.org>
#
# You may distribute this module under the same terms as perl itself
#
# _history
# April 7th, 2005 Malcolm Cook authored
# POD documentation - main docs bef... | vinuesa/get_phylomarkers | lib/perl/bioperl-1.5.2_102/Bio/SeqIO/strider.pm | Perl | gpl-3.0 | 6,620 |
var spawn = require('child_process').spawn
var express = require('express')
var assets = __dirname + "/../../static"
var server = express()
server.use(express.cookieParser(' default '))
server.use(express.session({secret:' default '}))
server.use(express.bodyParser())
server.use(express.static(assets))
server.get('/'... | blackmonk88/simaya | attic/test/preview/preview.js | JavaScript | gpl-3.0 | 1,368 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package kolonistenvancatan;
import domein.Spel;
import domein.Speler;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.awt.Color;
/**
*... | FHICT-Software/P3P4 | PTS/KolonistenVanCatan/KolonistenVanCatan_USB/src/kolonistenvancatan/Lobby.java | Java | gpl-3.0 | 2,864 |
<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2015 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Al... | kwemi/Phraseanet | lib/classes/module/console/fieldsList.php | PHP | gpl-3.0 | 1,601 |
#include "Button.hpp"
Button::Button( rapidxml::xml_node<> * node ) : ATag( node )
{
}
void Button::init( CoreEngine & coreEngine )
{
}
| Geko-io/CommunityGame-Engine | srcs/ui/tag/Button.cpp | C++ | gpl-3.0 | 140 |
/*
$Id: KVINDRAIdentRoot.h,v 1.2 2006/10/19 14:32:43 franklan Exp $
$Revision: 1.2 $
$Date: 2006/10/19 14:32:43 $
*/
#ifndef KVINDRAIdentRoot_h
#define KVINDRAIdentRoot_h
#include "KVOldINDRASelector.h"
class TFile;
class TTree;
class KVINDRAIdentRoot: public KVOldINDRASelector {
int codes[15];
int status[4... | FableQuentin/kaliveda | KVIndra/analysis/KVINDRAIdentRoot.h | C | gpl-3.0 | 935 |
module.exports = function dendro_shade_bars(params, inst_selection, inst_rc, inst_data){
var inst_opacity = 0.2;
var bot_height;
d3.selectAll(params.root+' .dendro_shadow')
.remove();
if (inst_rc == 'row'){
// top shade
d3.select(params.root+' .clust_group')
.append('rect')
.attr('wi... | cornhundred/clustergrammer.js | src/dendrogram/dendro_shade_bars.js | JavaScript | gpl-3.0 | 1,656 |
/* -*- c++ -*-
* Copyright (C) 2007-2016 Hypertable, Inc.
*
* This file is part of Hypertable.
*
* Hypertable is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or any l... | hypertable/hypertable | src/cc/FsBroker/Lib/Request/Parameters/Rmdir.h | C | gpl-3.0 | 2,256 |
package packngo
import "fmt"
const ipBasePath = "/ips"
// IPService interface defines available IP methods
type IPService interface {
Assign(deviceID string, assignRequest *IPAddressAssignRequest) (*IPAddress, *Response, error)
Unassign(ipAddressID string) (*Response, error)
Get(ipAddressID string) (*IPAddress, *... | MustWin/terraform-provider-baremetal | vendor/github.com/packethost/packngo/ip.go | GO | mpl-2.0 | 6,385 |
/**
* 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
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basi... | pfschwartz/openelisglobal-core | app/src/us/mn/state/health/lims/note/daoimpl/NoteDAOImpl.java | Java | mpl-2.0 | 15,977 |
/* 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/. */
use audio_video_metadata;
use document_loader::LoadType;
use dom::attr::Attr;
use dom::bindings::cell::DOMRefCell;... | alajara/servo | components/script/dom/htmlmediaelement.rs | Rust | mpl-2.0 | 29,484 |
body {
font-family: 'Segoe UI', sans-serif;
margin: 0;
overflow-y: scroll;
}
header {
background-color: #0f1126;
color: white;
position: relative;
}
header a {
color: white;
}
header h1 {
margin: 0;
padding: 0.25em 0;
}
#main {
margin: 10px;
}
.v... | lemon-juice/AMO-Browsing-for-SeaMonkey | xpi-versions/main.css | CSS | mpl-2.0 | 2,490 |
/* The following code is the modified part of the libxml
* available at http://xmlsoft.org
* under the terms of the MIT License
* http://opensource.org/licenses/mit-license.html
*/
/*
* Summary: Provide Canonical XML and Exclusive XML Canonicalization
* Description: the c14n modules provides a
*
* "Canonical X... | evilmucedin/tomita-parser | src/contrib/libs/libxml/include/libxml/c14n.h | C | mpl-2.0 | 2,746 |
define([
'underscore',
'backbone',
'models/version'
], function(_, Backbone, VersionModel){
var VersionCollection = Backbone.Collection.extend({
model: VersionModel,
parse: function(response) {
return response.data.versions;
},
healthClasses: {
'OK': { badge: 'badge-success', icon: 'icon-ok' },
'WA... | kaze/paasmaker | paasmaker/static/js/collections/versions.js | JavaScript | mpl-2.0 | 563 |
try:
import traceback
import argparse
import textwrap
import glob
import os
import logging
import datetime
import multiprocessing
from libs import LasPyConverter
except ImportError as err:
print('Error {0} import module: {1}'.format(__name__, err))
traceback.print_exc()
e... | KAMI911/lactransformer | lactransformer/lasdiff.py | Python | mpl-2.0 | 6,565 |
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
/* File locked partial MAR file staged patch apply failure test */
const STATE_AFTER_STAGE = STATE_PENDING;
function run_test() {
if (!setupTestCommon()) {
return;
}
gTestFiles = gTestFilesPartialSu... | Yukarumya/Yukarum-Redfoxes | toolkit/mozapps/update/tests/unit_service_updater/marFileLockedStageFailurePartialSvc_win.js | JavaScript | mpl-2.0 | 2,069 |
# 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 mock
import time
import json
from nose.tools import eq_, ok_, assert_raises
from socorro.submitter.submitter_ap... | adngdb/socorro | socorro/unittest/submitter/test_submitter_app.py | Python | mpl-2.0 | 16,936 |
/*
NUI3 - C++ cross-platform GUI framework for OpenGL based applications
Copyright (C) 2002-2003 Sebastien Metrot
licence: see nui3/LICENCE.TXT
*/
#pragma once
#include "nui.h"
#include "nuiContainer.h"
class nuiSimpleContainer : public nuiContainer
{
public:
nuiSimpleContainer();
virtual ~nuiSimpleCon... | libnui/nui3 | include/nuiSimpleContainer.h | C | mpl-2.0 | 1,914 |
/*!
Theme: Black Metal (Bathory)
Author: metalelf0 (https://github.com/metalelf0)
License: ~ MIT (or more permissive) [via base16-schemes-source]
Maintainer: @highlightjs/core-team
Version: 2021.05.0
*/
/*
WARNING: DO NOT EDIT THIS FILE DIRECTLY.
This theme file was auto-generated from the Base16 scheme... | Qeole/Enlight | hljs/styles/base16/black-metal-bathory.css | CSS | mpl-2.0 | 3,998 |
package vct.col.util;
public class FieldDefinition extends AnyDefinition{
private ClassDefinition parent;
public final boolean is_static;
public FieldDefinition(String name,boolean is_static,ClassDefinition parent){
super(name);
this.parent=parent;
this.is_static=is_static;
}
public ClassDef... | sccblom/vercors | vercors/src/main/java/vct/col/util/FieldDefinition.java | Java | mpl-2.0 | 370 |
package reaperlog
import (
log "github.com/Sirupsen/logrus"
"github.com/rifflock/lfshook"
"go.mozilla.org/mozlogrus"
)
var config LogConfig
type LogConfig struct {
Extras bool
}
func EnableExtras() {
config.Extras = true
}
func EnableMozlog() {
mozlogrus.Enable("Reaper")
}
func Extras() bool {
return confi... | milescrabill/reaper | reaperlog/reaperlog.go | GO | mpl-2.0 | 1,123 |
# -*- coding: 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/.
#################... | gerv/slic | test/data/identification/test_ws.py | Python | mpl-2.0 | 941 |
/* 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/. */
/* ===== scrollbars.css =================================================
== Styles used by XUL scrollbar-relate... | Lootyhoof/pastmodern-revisited | src/chrome/global/scrollbars.css | CSS | mpl-2.0 | 5,831 |
// weather_base_url comes in via django and must be set before including this file
$(document).ready(function()
{
// Save the representative id
data_to_save['scenario_id'] = $('#scenario_id').val();
// Initializes description
$('#weather-select').change();
});
$('#weather-select').change(function()
{... | vecnet/vnetsource | ts_repr/static/ts_repr/js/creation/weather.js | JavaScript | mpl-2.0 | 1,362 |
import logging
from django.conf import settings
from kombu import (Exchange,
Queue)
from kombu.mixins import ConsumerMixin
from treeherder.etl.common import fetch_json
from treeherder.etl.tasks.pulse_tasks import (store_pulse_jobs,
store_pulse_resultset... | akhileshpillai/treeherder | treeherder/etl/pulse_consumer.py | Python | mpl-2.0 | 4,116 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-ecs/gen/Network/AWS/ECS/DeregisterTaskDefinition.hs | Haskell | mpl-2.0 | 4,182 |
#include "zlib.h"
#include <util/memory/addstorage.h>
#include <util/generic/utility.h>
#include <contrib/libs/zlib/zlib.h>
#include <cstdio>
#include <cstring>
namespace {
static const int opts[] = {
//Auto
15 + 32,
//ZLib
15 + 0,
//GZip
15 + 16,
//Raw
... | evilmucedin/tomita-parser | src/util/stream/zlib.cpp | C++ | mpl-2.0 | 7,440 |
# Neutrino Environment Middleware
`@neutrinojs/env` is Neutrino middleware for injecting environment variable definitions into
source code at `process.env`. You can use this to make a custom environment variable (e.g. an API server backend to
use) available inside your project. Always injects `process.env.NODE_ENV`, u... | eliperelman/neutrino-dev | packages/env/README.md | Markdown | mpl-2.0 | 2,494 |
# 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/.
#
# Contact: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from __future__ import absolute_import, divisi... | klahnakoski/TestLog-ETL | vendor/jx_sqlite/expressions/number_op.py | Python | mpl-2.0 | 1,194 |
package validdata.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import validdata.dao.StudentDao;
import validdata.entity.Student;
import validdata.service.StudentService;
/**
* 学生信息Service实现类
* @author Administrator
*
*/
@Service("studentService")
public class S... | luguanxing/Web-Projects | SpringBoot/08-springboot表单验证/src/main/java/validdata/service/impl/StudentServiceImpl.java | Java | mpl-2.0 | 507 |
package openid
import (
"fmt"
"net/http"
"github.com/dgrijalva/jwt-go"
)
// SetupErrorCode is the type of error code that can
// be returned by the operations done during middleware setup.
type SetupErrorCode uint32
// Setup error constants.
const (
SetupErrorInvalidIssuer SetupErrorCode = iota // Inv... | mvdan/tyk | vendor/github.com/TykTechnologies/openid2go/openid/errors.go | GO | mpl-2.0 | 6,707 |
#include "attach.h"
#include "details/atom/classdef-table.h"
#include "details/reporting/report.h"
#include <unordered_map>
#include "mapping.h"
using namespace Yuni;
namespace ny::compiler {
bool attach(ny::compiler::Compdb& compdb, ny::compiler::Source& source) {
auto& sequence = source.sequence();
auto& cdeftab... | nany-lang/nanyc | bootstrap/libnanyc/details/pass/d-object-map/attach.cpp | C++ | mpl-2.0 | 502 |
package websheets;
// a bunch of public static methods without side-effects
import java.util.ArrayList;
import java.util.Arrays;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.lang.reflect.Array;
public class Utils {
// string representation of class
public static String classToS... | dz0/websheets | grade_java_files/Utils.java | Java | agpl-3.0 | 11,738 |
# Omega Server Command Helpers tests
#
# Copyright (C) 2013-2014 Mohammed Morsi <mo@morsi.org>
# Licensed under the AGPLv3 http://www.gnu.org/licenses/agpl.txt
require 'spec_helper'
require 'omega/server/command_helpers'
module Omega
module Server
describe CommandHelpers do
before(:each) do
@ch = OpenStruct.new... | movitto/omega | spec/omega/server/command_helpers_spec.rb | Ruby | agpl-3.0 | 1,357 |
# frozen_string_literal: true
module SkinnyControllers
module Policy
class Base
attr_accessor :user, :object, :authorized_via_parent
# @param [User] user the being to check if they have access to `object`
# @param [ActiveRecord::Base] object the object that we are wanting to check
# th... | NullVoxPopuli/aeonvera | vendor/bundle/ruby/2.4.0/gems/skinny_controllers-0.10.8/lib/skinny_controllers/policy/base.rb | Ruby | agpl-3.0 | 2,975 |
//#############################################################################
//# #
//# Copyright (C) <2015> <IMS MAXIMS> #
//# ... | FreudianNM/openMAXIMS | Source Library/openmaxims_workspace/Core/src/ims/core/forms/vitalsignsbloodsugar/AccessLogic.java | Java | agpl-3.0 | 2,413 |
//#############################################################################
//# #
//# Copyright (C) <2015> <IMS MAXIMS> #
//# ... | FreudianNM/openMAXIMS | Source Library/openmaxims_workspace/RefMan/src/ims/RefMan/forms/referraloverviewandkpis/IComponent.java | Java | agpl-3.0 | 2,374 |
//#############################################################################
//# #
//# Copyright (C) <2015> <IMS MAXIMS> #
//# ... | FreudianNM/openMAXIMS | Source Library/openmaxims_workspace/ValueObjects/src/ims/ocrr/vo/MyOrderComponentQuestionsVoCollection.java | Java | agpl-3.0 | 8,715 |
""" Test the behavior of split_mongo/MongoConnection """
from __future__ import absolute_import
import unittest
from mock import patch
from xmodule.exceptions import HeartbeatFailure
from xmodule.modulestore.split_mongo.mongo_connection import MongoConnection
class TestHeartbeatFailureException(unittest.TestCase):... | ESOedX/edx-platform | common/lib/xmodule/xmodule/modulestore/tests/test_split_mongo_mongo_connection.py | Python | agpl-3.0 | 888 |
/**
* ownCloud - fuel
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @copyright Christoph Wurst 2015
*/
define(function (require) {
'use strinct';
var VehicleView = require('views/vehi... | ChristophWurst/fuel | js/views/vehiclelist.js | JavaScript | agpl-3.0 | 586 |
//#############################################################################
//# #
//# Copyright (C) <2015> <IMS MAXIMS> #
//# ... | FreudianNM/openMAXIMS | Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/NationalHealthCoverVo.java | Java | agpl-3.0 | 16,391 |
<?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.
*
* Suite... | noelhunter/SuiteCRM | modules/Contacts/metadata/subpaneldefs.php | PHP | agpl-3.0 | 14,653 |
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
*
* 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 F... | RestComm/Restcomm-Mayday | ios/MayDay/dependencies/sources/sofia-sip/libsofia-sip-ua/nta/nta.c | C | agpl-3.0 | 328,976 |
/* This file is part of VoltDB.
* Copyright (C) 2008-2017 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... | migue/voltdb | src/frontend/org/voltdb/utils/PlatformProperties.java | Java | agpl-3.0 | 11,026 |
#!/bin/bash
{ # this ensures the entire script is downloaded #
nvm_has() {
type "$1" > /dev/null 2>&1
}
if [ -z "$NVM_DIR" ]; then
NVM_DIR="$HOME/.nvm"
fi
nvm_latest_version() {
echo "v0.30.1"
}
#
# Outputs the location to NVM depending on:
# * The availability of $NVM_SOURCE
# * The method used ("script" or... | dylanlott/bridge-gui | ansible/roles/node/files/nvm-v0.30.1-install.sh | Shell | agpl-3.0 | 7,735 |
# Vitral
A backend-agnostic immediate mode GUI library.
## Working with raw font files
Using ImageMagick, convert raw font to png:
convert -depth 8 -size 96x48 a:src/font-96x48.raw font.png
Convert png back to raw:
convert font.png a:src/font-96x48.raw
(The size value depends on the dimensions of your fo... | rsaarelm/magog | vitral/README.md | Markdown | agpl-3.0 | 331 |
/******************************************************************************
* $Id: gt_overview.cpp 21799 2011-02-22 21:25:59Z warmerdam $
*
* Project: GeoTIFF Driver
* Purpose: Code to build overviews of external databases as a TIFF file.
* Only used by the GDALDefaultOverviews::BuildOverviews() m... | AsherBond/MondocosmOS | gdal/frmts/gtiff/gt_overview.cpp | C++ | agpl-3.0 | 30,706 |
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Serialization;
namespace MLAgents
{
[Serializable]
public class ResetParameters : Dictionary<string, float>, ISerializationCallbackReceiver
{
[Serializable]
public struct ResetParameter
{
... | Necromunger/unitystation | UnityProject/Assets/ML-Agents/Scripts/ResetParameters.cs | C# | agpl-3.0 | 1,370 |
/*
* Copyright (C) 2011-2012 DarkCore <http://www.darkpeninsula.eu/>
* Copyright (C) 2011-2012 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2012 MaNGOS <http://getmangos.com/>
* This program is free software; you can redis... | Darkpeninsula/Darkcore | src/server/scripts/Northrend/VaultOfArchavon/vault_of_archavon.h | C | agpl-3.0 | 1,564 |
// This file may be edited manually or auto-generated using IfcKit at www.buildingsmart-tech.org.
// IFC content is copyright (C) 1996-2018 BuildingSMART International Ltd.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentMo... | pipauwel/IfcDoc | IfcKit/schemas/IfcStructuralAnalysisDomain/IfcActionTypeEnum.cs | C# | agpl-3.0 | 661 |
/*******************************************************************************
* HELIUM V, Open Source ERP software for sustained success
* at small and medium-sized enterprises.
* Copyright (C) 2004 - 2015 HELIUM V IT-Solutions GmbH
*
* This program is free software: you can redistribute it and/or modify
* it... | erdincay/ejb | src/com/lp/server/schema/bmecat_2005/BCEXEMPTIONREASON.java | Java | agpl-3.0 | 2,854 |
var OncoprintTrackOptionsView = (function() {
function OncoprintTrackOptionsView($div, moveUpCallback, moveDownCallback, removeCallback, sortChangeCallback) {
// removeCallback: function(track_id)
var position = $div.css('position');
if (position !== 'absolute' && position !=='relative') {
console.log("WARN... | gsun83/cbioportal | portal/src/main/webapp/js/src/oncoprint/webgl/oncoprinttrackoptionsview.js | JavaScript | agpl-3.0 | 7,382 |
<%! from django.utils.translation import ugettext as _ %>
<%inherit file="main.html" />
<%namespace name='static' file='static_content.html'/>
<%! from django.core.urlresolvers import reverse %>
<%! from django.utils.translation import ugettext as _ %>
<%block name="title"><title>${_("Log into your {platform_name} ... | syjeon/new_edx | lms/templates/login.html | HTML | agpl-3.0 | 7,598 |
require "spec_helper"
describe Admin::FormattedTimeAgoHelper do
before do
I18n.locale = :en
end
it "should return 'no action sent' when no occurrence" do
since = helper.time_since_sent("trout fishing", false)
since.should == "not trout fishing"
end
it "should return formatted time since when oc... | fightforthefuture/Platform | spec/helpers/admin/formatted_time_ago_spec.rb | Ruby | agpl-3.0 | 461 |
/*
* SessionPackrat.cpp
*
* Copyright (C) 2020 by RStudio, PBC
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. T... | JanMarvin/rstudio | src/cpp/session/modules/SessionPackrat.cpp | C++ | agpl-3.0 | 38,183 |
#
# Copyright (C) 2011 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 ... | rup/Tarrax | app/models/wimba_conference.rb | Ruby | agpl-3.0 | 7,570 |
<?php
namespace Action;
use Core\Listener;
/**
* Base class for automatic actions
*
* @package action
* @author Frederic Guillot
*/
abstract class Base implements Listener
{
/**
* Project id
*
* @access private
* @var integer
*/
private $project_id = 0;
/**
* User par... | jesusaplsoft/kanboard | app/Action/Base.php | PHP | agpl-3.0 | 3,310 |
<div class="page-header">
<h2><?= t('Edit a task') ?></h2>
</div>
<section id="task-section">
<form method="post" action="<?= $this->url->href('task', 'update', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'ajax' => $ajax)) ?>" autocomplete="off">
<?= $this->form->csrf() ?>
<div cl... | crwilliams/kanboard | app/Template/task/edit.php | PHP | agpl-3.0 | 3,233 |
package Locale::Codes::LangExt;
# Copyright (c) 2011-2012 Sullivan Beck
# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
use strict;
require 5.006;
use warnings;
require Exporter;
use Carp;
use Locale::Codes;
use Locale::Codes::Constants;
use Locale::Cod... | rahulvador/CoreHD | Kernel/cpan-lib/Locale/Codes/LangExt.pm | Perl | agpl-3.0 | 2,127 |
(() => {
/**
* Use iframe.ly for instagram
*/
const instagramService = (iframelyService, $q) => {
return {
name: 'Instagram',
patterns: ['(?:(?:http|https):\/\/)?(?:www.)?(?:instagr(?:\.am|am\.com))\/p\/.+'], // eslint-disable-line
embed: (url, max_width) => {... | liveblog/liveblog | client/app/scripts/liveblog-edit/embed/handlers/instagram.ts | TypeScript | agpl-3.0 | 935 |
"""
Tests for wiki views.
"""
from django.conf import settings
from django.test.client import RequestFactory
from lms.djangoapps.courseware.tabs import get_course_tab_list
from common.djangoapps.student.tests.factories import AdminFactory, UserFactory
from xmodule.modulestore.tests.django_utils import ModuleStoreTes... | eduNEXT/edunext-platform | lms/djangoapps/course_wiki/tests/test_tab.py | Python | agpl-3.0 | 2,388 |
//#############################################################################
//# #
//# Copyright (C) <2015> <IMS MAXIMS> #
//# ... | FreudianNM/openMAXIMS | Source Library/openmaxims_workspace/Core/src/ims/core/forms/vitalsignsbmi/AccessLogic.java | Java | agpl-3.0 | 2,406 |
//#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# ... | open-health-hub/openmaxims-linux | openmaxims_workspace/Clinical/src/ims/clinical/forms/ttahistorydialog/GenForm.java | Java | agpl-3.0 | 19,304 |
// Stripe info
// Plan ID: BASIC_HOSTING_PLAN
// Cost: $5.00 per 30 days, no trial
// Statement: Hook.io Hosting Plan
var hook = require('../lib/resources/hook');
var user = require('../lib/resources/user');
var config = require('../config');
var bodyParser = require('body-parser');
var mergeParams = require('./mergeP... | ljharb/hook.io | view/billing.js | JavaScript | agpl-3.0 | 5,422 |
//#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# ... | open-health-hub/openmaxims-linux | openmaxims_workspace/ValueObjects/src/ims/chooseandbook/vo/domain/NtpfApptCancConvVoAssembler.java | Java | agpl-3.0 | 18,022 |
/*
* RapidMiner
*
* Copyright (C) 2001-2014 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 ... | rapidminer/rapidminer | src/com/rapidminer/repository/gui/NewRepositoryDialog.java | Java | agpl-3.0 | 3,542 |
<?php
namespace SuiteCRM\Test\Driver;
use Helper\WebDriverHelper;
class WebDriver extends \Codeception\Module\WebDriver
{
public function _initialize()
{
$config = $this->_getConfig();
$this->config['host'] = $config['host'];
$this->config['port'] = $config['port'];
parent::_... | dfstrauss/SuiteCRM | tests/SuiteCRM/Test/Driver/WebDriver.php | PHP | agpl-3.0 | 701 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'ka', {
border: 'ჩარჩოს გამოჩენა',
noUrl: 'აკრიფეთ iframe-ის URL',
scrolling: 'გადახვევის ზოლების დაშვება',
title: 'IFrame-ის პარამეტრე... | longkb/cms1.8rc2 | web/theme/default/libraries/ckeditor/plugins/iframe/lang/ka.js | JavaScript | agpl-3.0 | 468 |
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web serve... | pcai/lims | config/environments/production.rb | Ruby | agpl-3.0 | 3,597 |
#!/usr/bin/python
# Copyright 2011, Thomas G. Dimiduk
#
# This file is part of GroupEng.
#
# Holopy 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... | tdimiduk/groupeng | src/__init__.py | Python | agpl-3.0 | 724 |
# == Schema Information
#
# Table name: announcements
#
# id :integer not null, primary key
# title :string
# content :text
# attachments_count :integer
# limit_to_users :text
# start_delivering_at :datetime
# stop_delivering_at :datetime
# created_at ... | karmahrm/karmahrm | app/helpers/announcements_helper.rb | Ruby | agpl-3.0 | 440 |
/*
* CompletionList.java
*
* Copyright (C) 2020 by RStudio, PBC
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. ... | JanMarvin/rstudio | src/gwt/src/org/rstudio/studio/client/workbench/views/console/shell/assist/CompletionList.java | Java | agpl-3.0 | 8,056 |
//#############################################################################
//# #
//# Copyright (C) <2015> <IMS MAXIMS> #
//# ... | FreudianNM/openMAXIMS | Source Library/openmaxims_workspace/Pathways/src/ims/pathways/forms/eventconfiguration/BaseLogic.java | Java | agpl-3.0 | 13,907 |
<?php
/**
* @author Georg Ehrke <georg@owncloud.com>
* @author Joas Schilling <nickvergessen@owncloud.com>
* @author josh4trunks <joshruehlig@gmail.com>
* @author Olivier Paroz <github@oparoz.com>
* @author Robin Appelman <icewind@owncloud.com>
* @author Thomas Müller <thomas.mueller@tmit.eu>
* @author Thomas Ta... | bluelml/core | lib/private/Preview/Image.php | PHP | agpl-3.0 | 2,008 |
require "rails_helper"
describe TextHelper do
describe "#first_paragraph" do
it "returns the first paragraph of a text" do
text = "\n\nThis is the first paragraph\n\nThis is the second paragraph\n"
expect(first_paragraph(text)).to eq("This is the first paragraph")
end
it "returns blank if th... | consul/consul | spec/helpers/text_helper_spec.rb | Ruby | agpl-3.0 | 447 |
# Configure SQL server so it accepts TCP connections on the AppVeyor
# CI platfrom.
#
# Pass the script the instanceName and tcpPort
#
# See
# http://www.appveyor.com/docs/services-databases#enabling-tcp-ip-named-pipes-and-setting-instance-alias
# https://gist.githubusercontent.com/FeodorFitsner/d971c5a98782d211640d/ra... | vlifesystems/rulehuntersrv | ci/sql-server-activate-tcp-fixed-port.ps1 | PowerShell | agpl-3.0 | 1,284 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_22) on Thu May 24 19:39:42 WET 2012 -->
<TITLE>
org.apache.jmeter.report.writers Class Hierarchy (Apache JMeter API)
</TITLE>
<LINK REL ="styleshee... | telefonicaid/notification_server | test/jmeter/apache-jmeter-2.7/docs/api/org/apache/jmeter/report/writers/package-tree.html | HTML | agpl-3.0 | 8,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.