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 |
|---|---|---|---|---|---|---|---|---|
266b9c5fb7bed6ff0ba5109129d13c3d9a7da79cf7d88d3044793f610f90b4ab | /**
* @author cmistr
* @version 3.2.0
*/
package bork;
import java.util.Hashtable;
/**
* An Item object represents an Item in the Bork game
*/
public class Item {
private String name;
private int weight;
private boolean producesLight;
private int brightness;
private Hashtabl... | Java | src/main/java/bork/Item.java | LogoiLab/jmud | bsd-3-clause | 2,971 | 119 | codeparrot/github-code |
d3d57226883f2f8212d886d46d4cbb3a7742b737bd41e15a8bf8959c31ddfa79 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | C | src/ompl/geometric/PathSimplifier.h | mpomarlan/ompl_slprm | bsd-3-clause | 10,481 | 219 | codeparrot/github-code |
0c2a76fc1eb2cfeab95cc10b4e5c482de6c45a643596c52793121e568ac4ce44 | <?php
/**
* This file is part of prooph/event-store.
* (c) 2014-2021 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2021 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
dec... | PHP | src/Transport/Http/HttpStatusCode.php | prooph/event-store | bsd-3-clause | 3,249 | 90 | codeparrot/github-code |
1322af867c605fd1a25dafdbe65734263e62620be2e25c80800d49cf18c1b63f | <?php
/* @var $this yii\web\View */
$this->title = 'Count Down Timer' ;
$this->registerCss("
.count-down-container{
margin:30px 0;
background-color:#f8f5f0;
padding:50px 0px;
}
.input-field{
padding: 10px 2px 10px 12px;
width: 80px;
margin-left: 5px;
margin-right: 5px;
font-size: 15px;
text-al... | PHP | views/site/timer.php | nsanden/astrology-calculator | bsd-3-clause | 8,109 | 320 | codeparrot/github-code |
1dfcab5b7da471bded1f6ce53cdcd10379262be159de2e4e5175f3dc8ec24302 | // Copyright (c) 2013 The Chromium 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 LIBRARIES_NACL_IO_MOUNT_NODE_PIPE_H_
#define LIBRARIES_NACL_IO_MOUNT_NODE_PIPE_H_
#include <map>
#include <string>
#include "nacl_io/event_e... | C | native_client_sdk/src/libraries/nacl_io/mount_node_pipe.h | mogoweb/chromium-crosswalk | bsd-3-clause | 895 | 36 | codeparrot/github-code |
4f234d4d903a6a1ce65da91a35a97789aee6b915de838e41284323bb0132c44c | import React from 'react';
import PropTypes, { instanceOf } from 'prop-types';
import { connect } from 'react-redux';
import Form from './Form.jsx';
import Table from './Table.jsx';
import * as TYPES from '../../../constants/input-types.js';
import { withCookies, Cookies } from 'react-cookie';
import css from '../../..... | JavaScript | code/frontend/src/components/AdminPanel/Panel/index.js | CPSC319-2017w1/coast.the-terminal | bsd-3-clause | 12,345 | 378 | codeparrot/github-code |
78a33d88506583cfeb9c3698b1f9a211901cb751e52178f4c590c5c6146893b8 | /*
* Copyright (c) 2008, Aaron Digulla
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... | Java | src/test/java/anyxml/CreateHtmlEntities.java | zmanio/anyxml | bsd-3-clause | 3,602 | 91 | codeparrot/github-code |
b9c1b63c75310ff97d3fb620e7051b758061d679a298c5db228feccb410e0ac9 | # -*- coding: utf-8 -*-
import jieba
import logging
import io
import codecs
def main():
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
# jieba custom setting.
jieba.set_dictionary('jieba_dict/dict.txt.big')
# load stopwords set
stopwordset = set()
... | Python | word2vec-model/wiki_seg_jieba.py | chunchih/article-matching | bsd-3-clause | 1,019 | 39 | codeparrot/github-code |
f521aecb5c1dfb53c609f82f127a18f3c6cc5a39fd066f44a32d2600bd806223 | <?php
class Expenses_IndexController extends NovemberController
{
/**
* @var UserService
*/
public $userService;
/**
* @var ExpenseService
*/
public $expenseService;
/**
* @var ClientService
*/
public $clientService;
public fun... | PHP | modules/expenses/IndexController.php | nyeholt/relapse | bsd-3-clause | 6,842 | 158 | codeparrot/github-code |
35efe41bd103ada4dd03285f6fc37d4251e4ee34f2c1ab6bd8db3a563a8fca11 | function ComponentDragDropSelect( id ) {
var self = new _ComponentAbstractList(id);
self._multiple = true;
self.bind = function() { };
self.items = function() {
var items = [];
var list = [];
list = self.node().getElementsByTagName("li");
for(var i = 0; i < list.length; ++i)
items.push(list[i]);
li... | JavaScript | Public/Support/Components/DragDropSelect/DragDropSelect.js | cention/ferite-module-webframework | bsd-3-clause | 3,649 | 106 | codeparrot/github-code |
d84968444702c9620c7ccfed5f723a94d9dc303a7c7231b17c2f6f49d38c0921 | <?php
namespace Acedao;
class Database {
/**
* @var \PDO
*/
public $dblol = null;
private $config = array(
'adapter' => 'mysql',
'host' => 'localhost',
'dbname' => '',
'user' => 'root',
'pass' => ''
);
/**
* Constructor
*
* @param... | PHP | lib/Acedao/Database.php | voilab/acedao | bsd-3-clause | 3,308 | 117 | codeparrot/github-code |
fe40b3582167b0308db2dffad42a68320ddbdd6f9225e38514e52301ed761426 | #include <iostream>
#include <string>
#include <vector>
#include <map>
#include <sstream>
#include "fi/cpu_threadInfo.hh"
#include "cpu/o3/cpu.hh"
#include "fi/faultq.hh"
#include "fi/fi_system.hh"
std::string allcores = string("all");
//Set all the counters to the correct value
cpuExecutedTicks:: cpuExecutedTicks(st... | C++ | src/fi/cpu_threadInfo.cc | koparasy/gemfi | bsd-3-clause | 8,890 | 293 | codeparrot/github-code |
e2ea0e7a263bda304765a9ec37c2c2890dc6a85fbe3232642e44ebb2428d8123 |
class QueryMixin:
"""The default query object used for models, and exposed as
:attr:`~SQLAlchemy.Query`. This can be subclassed and
replaced for individual models by setting the :attr:`~Model.query_class`
attribute. This is a subclass of a standard SQLAlchemy
:class:`~sqlalchemy.orm.query.Query` c... | Python | lux/extensions/odm/query.py | tazo90/lux | bsd-3-clause | 4,708 | 139 | codeparrot/github-code |
9494284c856c4b0bcae14f9bce43a162d17ce219011c2fca9d0d4682c7e45e32 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Defines a simple float vector class. This class is used to indicate a
// distance in two dimensions between two points. Subtracting two points sho... | C | ui/gfx/vector3d_f.h | mogoweb/chromium-crosswalk | bsd-3-clause | 3,657 | 125 | codeparrot/github-code |
7871f4c958af651767a6b2848297bca49bcc74fac346beabc78531efae052d9b | import webipy
import numpy as np
import matplotlib.pyplot as plt
import pylab
import pandas as pd
pylab.rcParams['figure.figsize'] = (15, 11)
@webipy.exports
def plot(x, n=4):
"""
Demo of scatter plot on a polar axis.
Size increases radially in this example and color increases with angle
"""
N = ... | Python | examples/ex1.py | PlotWatt/webipy | bsd-3-clause | 1,406 | 63 | codeparrot/github-code |
161b48e052039d4361874d332d90551bca70e0f35c01e1a225d460aea4f1f4fd | # -*- coding: utf-8 -*-
"""
Django settings for nhweb project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
from __future__ import absolute_import, unicode_liter... | Python | config/settings/common.py | boweeb/nhweb | bsd-3-clause | 9,076 | 258 | codeparrot/github-code |
55ceb8a9eb3cd88372e9340c92441a901bb4d0bd57b0813bad744d6fea62099a | #include <assert.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h>
/* term_function_key constants */
#include <X11/keysym.h>
#include "terminal.h"
#include "escparse.h"
#include "util.h"
#include "config.h"
#include "keymap.h"
static void term_cursor(size_t x, size_t y); /* set cursor position to (x,... | C | src/terminal.c | halhen/terma | bsd-3-clause | 44,783 | 1,575 | codeparrot/github-code |
b0f4ea7b9a3a44949d80eb81e298274dd92049cbdaf5a5614c88f3bc0f99895c | /*
Copyright (c) 2010, Gilles BERNARD lordikc at free dot fr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list... | C++ | wofs.cpp | jaseg/wofs | bsd-3-clause | 11,427 | 448 | codeparrot/github-code |
abefa51e063ce2cdbfd0ae7b26f50cfee78d9dbe1365200d5b93a68113e4b609 | /*
* Copyright (c) 2015, Felix "mezzodrinker" Fröhlich
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* noti... | Java | src/mezzo/mobtalkerscript/console/ui/Sprite.java | mezzodrinker/interactive-console | bsd-3-clause | 4,817 | 134 | codeparrot/github-code |
0610e4072082b95976bd7c5a8775acded51d3b0e48b52fd4756f4d9b0048b8d5 | /******************************************************************************\
* Copyright (C) 2012-2013 Leap Motion, Inc. All rights reserved. *
* Leap Motion proprietary and confidential. Not for distribution. *
* Use subject to the terms of the Leap Motion SDK Agreement available at ... | Java | lps-controller-server/src/main.java | andrewgu/leapmotion-spotify-controller | bsd-3-clause | 2,673 | 88 | codeparrot/github-code |
f3f983d0c91c79002154b07976ada6f622576998439e9f4641e53b559b52b99e | import { createElement } from "lwc";
import ReleaseGates from "c/releaseGates";
import { ShowToastEventName } from "lightning/platformShowToastEvent";
import getProductRegistryReleaseGateVModels from "@salesforce/apex/ReleaseGateController.getProductRegistryReleaseGateVModels";
import activateReleaseGate from "@salesfo... | JavaScript | force-app/main/releaseGating/lwc/releaseGates/__tests__/releaseGates.test.js | SalesforceFoundation/HEDAP | bsd-3-clause | 8,291 | 231 | codeparrot/github-code |
0e4f211cb82143634d4535fa76dc2db85309d9ac9179e965a415bbc1c96e3905 | <?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "orders".
*
* @property integer $orid
* @property integer $displayid
* @property string $transref
* @property double $total
* @property string $crtdt
* @property integer $crtby
* @property string $upddt
* @property integer $up... | PHP | backend/models/Orders.php | diginmanager/digin | bsd-3-clause | 2,207 | 89 | codeparrot/github-code |
47a70d70e2ad102cc415be1fc339be5f9c182904715ab37253f1a7196f53c6fd | /*L
* Copyright SAIC
* Copyright SAIC-Frederick
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/camod/LICENSE.txt for details.
*/
/**
*
* $Id:$
*
* $Log:$
*/
package gov.nih.nci.evs.app.util;
import org.apache.commons.lang.StringUtils;
import org.htmlparser.u... | Java | software/camod/src/gov/nih/nci/evs/app/util/SafeHTMLUtil.java | NCIP/camod | bsd-3-clause | 1,810 | 55 | codeparrot/github-code |
80efa0ed9028abcb9546b484063231dd0952d4f90c90a8d9703da44f2f09482c | module Snap.Snaplet.Config.Tests where
------------------------------------------------------------------------------
import Control.Concurrent
import Control.Concurrent.Async
import Control.Monad
import qualified Data.ByteString.Char8 as BS
import qualified Data.Configurator.Types as C
import Data.Function
import qua... | Haskell | test/suite/Snap/Snaplet/Config/Tests.hs | snapframework/snap | bsd-3-clause | 3,308 | 103 | codeparrot/github-code |
a8e6ed137372c573ed5d852b1bdc70c0d2e6e09b38a659f7deb96b3c005791ea | """
Class which embellishes the DataCollectionView with buttons and actions for
editing the data collection
"""
import operator
from ...external.qt.QtGui import (QWidget, QMenu,
QAction, QKeySequence, QFileDialog)
from ...external.qt.QtCore import Qt, Signal, QObject
from ..ui.laye... | Python | glue/qt/widgets/layer_tree_widget.py | bsipocz/glue | bsd-3-clause | 14,225 | 470 | codeparrot/github-code |
6a2a180bc7e0526011ebee676011ce73fbbe4b78980f18b67c28d1806ab26610 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 AYDIN Ali-Kémal
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
... | Python | src/secondaires/calendrier/evenement.py | vlegoff/tsunami | bsd-3-clause | 3,992 | 107 | codeparrot/github-code |
8ac6cf07d06cf9fd584a74585e8e1d27f98abe35d11ba319545df122ce85fd19 | import functools
import re
from django import forms
from django.core.exceptions import FieldDoesNotExist, ImproperlyConfigured
from django.db.models.fields import CharField, TextField
from django.forms.formsets import DELETION_FIELD_NAME, ORDERING_FIELD_NAME
from django.forms.models import fields_for_model
from django... | Python | wagtail/admin/edit_handlers.py | takeflight/wagtail | bsd-3-clause | 29,420 | 871 | codeparrot/github-code |
899d3c2efa3c5c444dca7cdda66d9e0020e92fc23990ee28d9e3eccb1f9db3b2 | var _ = require('underscore');
var camshaftReference = require('camshaft-reference').getVersion('latest');
var DefaultCartography = require('./default-cartography.json');
var SOURCE_NAMES_MAP = {}; // string -> array, e.g. {'intersection': ['source', 'target']}
var DEFAULT_MISSING_PARAM_VALUES = [undefined, null, '', ... | JavaScript | lib/assets/javascripts/builder/data/camshaft-reference.js | CartoDB/cartodb | bsd-3-clause | 5,499 | 170 | codeparrot/github-code |
73f6c861d941fc5d2691e6439925de1ac6e3e1ba71e286abc9f9000038322fd3 | <?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: pm.php 890 2008-12-16 05:23:14Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
class pmmodel {
var $db;
var $base;
function __construct(&$base) {
$this->pmmodel($base);
}
function pmmodel(&... | PHP | application/uc_client/model/pm.php | kebot/GiBeans | bsd-3-clause | 15,869 | 372 | codeparrot/github-code |
990bcd74ddfc3d75a0a872c66a8dbba87eb5419d31be8e448063fbfe96e6da26 | $(document).ready(function() {
$("#blog_submit").click(function(){
$('#newPost').modal('hide');
userID=encodeURIComponent($("#blog_userid").val());
title=encodeURIComponent($("#blog_title").val());
post=encodeURIComponent($("#blog_post").val());
$.ajax({
type: "POS... | JavaScript | templates/default/js/blog.js | KingNoosh/Teknik | bsd-3-clause | 10,049 | 341 | codeparrot/github-code |
49370be6f025064565e0a0c9792f91b1ee1a59147ed25e62e473609af82fcd9f | /*-
* Copyright (c) 1994-1996 Søren Schmidt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of ... | C | freebsd5/sys/i386/linux/linux.h | MarginC/kame | bsd-3-clause | 15,952 | 682 | codeparrot/github-code |
69163c7f4c6886c9cdb1072fb464fe8d42b161591cdc29c1102a155ed8e3f781 | # -- coding: utf-8 --
import click
import yaml
import json
@click.command()
@click.option('-n', '--accession_number', help='Accession number')
@click.option('-e', '--environment', default='local', help='Environment.')
@click.option('--input', type=click.File('r'), required=False)
@click.option('--dryrun', is_flag=Tru... | Python | python-click/example.py | alexisbellido/dockerize-django | bsd-3-clause | 1,458 | 49 | codeparrot/github-code |
7dad2abdfe3938546ff8f366ac9072a7f3f647acffeb32f8c5af368983332358 | package gorethink
import (
p "github.com/kylemclaren/mongo-transporter/Godeps/_workspace/src/github.com/dancannon/gorethink/ql2"
)
// Add sums two numbers or concatenates two arrays.
func (t Term) Add(args ...interface{}) Term {
return constructMethodTerm(t, "Add", p.Term_ADD, args, map[string]interface{}{})
}
// ... | GO | Godeps/_workspace/src/github.com/dancannon/gorethink/query_math.go | kylemclaren/mongo-transporter | bsd-3-clause | 6,036 | 178 | codeparrot/github-code |
390a00c1e4a59f388fbf05a574a31a29581e0c02a502f503a3a073cb9305c324 | // #######################################################
//
// # Copyright (C) 2010, Dave Taylor and Arnold Zokas
//
// # This source code is subject to terms and conditions of the New BSD License.
// # A copy of the license can be found in the license.txt file at the root of this distribution.
// # If you cannot ... | C# | src/Rivet.MSBuild.Tasks/MSBuildLogWriter.cs | davetayls/rivet | bsd-3-clause | 1,496 | 45 | codeparrot/github-code |
e86ccb585d499a7eda1545d74a24133f91e509c3712217b35f0243857cc838bf | # coding: utf-8
import decimal
from . import settings as price_settings
from .utils import price_amount
from .currency import Currency
from .tax import NO_TAX
class Price(object):
def __init__(self, net, currency=None, tax=None, gross=None):
if currency is None:
currency = price_settings.DEFAU... | Python | django_price/price.py | ddanier/django_price | bsd-3-clause | 8,910 | 248 | codeparrot/github-code |
81068c0ebf9d057b28915fe80471382eb566faac2198c7243d2fd9ab76719e7c | define(['jquery', 'd3', '../view', '../hierarchyelements', '../selectionutil', './statdata', '../pathutil', '../listeners',
'../query/pathquery', '../sorting', '../setinfo', '../config', '../query/queryutil', '../uiutil', '../list/path/pathdata', '../datastore', '../settings/visibilitysettings'],
function ($, d3,... | JavaScript | src/pathstats/pathstatsview.js | Caleydo/pathfinder | bsd-3-clause | 30,218 | 976 | codeparrot/github-code |
8825bc50ea48056639febed3c10a7d4e9e8ed91bc554e0b8533ee943c81b15a8 | import re
import abc
import asyncio
import contextlib
import urllib.parse as urlparse
import aiohttp
import pyquery
from pycrawl.utils import Queue
from pycrawl.http import Request
from pycrawl.http import Response
from pycrawl.middleware import CrawlerMiddlewareManager
class Spider(metaclass=abc.ABCMeta):
de... | Python | pycrawl/crawl.py | jmcarp/pycrawl | bsd-3-clause | 3,966 | 127 | codeparrot/github-code |
cac01a924a35d5a6bc9db8db95ff19664ad72861152056c22b49292be8748be3 | package za.org.grassroot.services;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.stereoty... | Java | grassroot-services/src/main/java/za/org/grassroot/services/MessageAssemblingManager.java | mokoka/grassroot-platform | bsd-3-clause | 14,792 | 319 | codeparrot/github-code |
3d75d030bf49ec96f2d32b793daa1d375c24b909c44b9b8f549ff459ed705952 | /*****************************************************************************
Copyright (c) 2005 - 2009, The Board of Trustees of the University of Illinois.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
m... | C | security/filesrc.h | heshucheng/sector | bsd-3-clause | 2,372 | 61 | codeparrot/github-code |
88a9e0d68548b2b39b4a67ec9a7ea4fa23aeeffc991f4a07d2e8d0cd830a4748 | package main
import (
"flag"
"fmt"
"time"
"github.com/lacework/pcap"
)
func min(x uint32, y uint32) uint32 {
if x < y {
return x
}
return y
}
func main() {
var device *string = flag.String("d", "", "device")
var file *string = flag.String("r", "", "file")
var expr *string = flag.String("e", "", "filter ... | GO | tools/pcaptest/pcaptest.go | lacework/pcap | bsd-3-clause | 2,144 | 92 | codeparrot/github-code |
078120f4ff7fd81b74e3d41cd9329cd396df7b7883d09b4b38baf5b2aea34fa2 | <?php
namespace Phalcon\Db\Adapter\MongoDB\Operation;
use MongoDB\Driver\Command;
use MongoDB\Driver\Query;
use MongoDB\Driver\Server;
use Phalcon\Db\Adapter\MongoDB\Exception\InvalidArgumentException;
use Phalcon\Db\Adapter\MongoDB\Functions;
use Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoCommandIterator;
use Ph... | PHP | Library/Phalcon/Db/Adapter/MongoDB/Operation/ListCollections.php | twistersfury/incubator | bsd-3-clause | 4,085 | 129 | codeparrot/github-code |
d3ae8984469fd39f4b7bcb636844b167634aee5c72c139ebf7814cb41b8b195c | <?php
namespace CodeEmailMKT\Application\Action\Customer;
use CodeEmailMKT\Application\Form\CustomerForm;
use CodeEmailMKT\Application\Form\HttpMethodElement;
use CodeEmailMKT\Domain\Persistence\CustomerRepositoryInterface;
use CodeEmailMKT\Domain\Service\FlashMessageInterface;
use Psr\Http\Message\ResponseInterface;... | PHP | src/CodeEmailMKT/Application/Action/Customer/CustomerRemovePageAction.php | yuri-calabrez/code-education-php7 | bsd-3-clause | 2,010 | 61 | codeparrot/github-code |
7aeda19329f3537a4bf6c60b1ea0090b00d24003d82a2e91acbcd4f1dc33e18f |
import sys
import copy
import time
import signal
import logging
import importlib
from libfuzz.process_management import ProcessManagement
class Fuzzer():
"""
The base fuzzer class provides a standard handler
interfaces to be used from external libraries like
ProcessManagement.
"""
def __ini... | Python | libfuzz/fuzzer.py | anhusa/pyfuzz | bsd-3-clause | 6,407 | 193 | codeparrot/github-code |
40cfd90112a627ac875ae8b57b4778ed336a4117fff3d64cbd6890cf312576d7 | """Utility classes and functions for configuring and setting up the content and the look of a QR code."""
import datetime
import decimal
from collections import namedtuple
from dataclasses import dataclass, asdict
from datetime import date
from typing import Optional, Any, Union, Sequence
from django.utils.html import... | Python | qr_code/qrcode/utils.py | dprog-philippe-docourt/django-qr-code | bsd-3-clause | 30,590 | 711 | codeparrot/github-code |
4901e963e4b00de6cc02b1cd52b9833578ebac5eff8006355f40d9b9839fd1e4 |
angular.module('os.administrative.user.detail', ['os.administrative.models'])
.controller('UserDetailCtrl', function(
$scope, $q, $translate, user,
User, AuthDomain, PvManager, Alerts, DeleteUtil) {
function init() {
$scope.user = user;
loadPvs();
}
function loadPvs() {
$scop... | JavaScript | www/app/modules/administrative/user/detail.js | asamgir/openspecimen | bsd-3-clause | 1,168 | 46 | codeparrot/github-code |
49755d0585444ad02d66e9309ac0e9d99294008bd703e526f6853461bca2ffbc | --------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
module NumberSix.Handlers.TryRuby
( ruby
, handler
) where
--------------------------------------------------------------------------------
import Control.Applicative ((<$>))
impo... | Haskell | src/NumberSix/Handlers/TryRuby.hs | itkovian/number-six | bsd-3-clause | 1,999 | 59 | codeparrot/github-code |
9e04c13d82b136d8e72a08664f0dd97226e05a2a7911eefb43902a24040b9c61 | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "types".
*
* @property integer $type-cle
* @property string $type-denomination
*/
class Types extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'types';
}
... | PHP | models/Types.php | LorenzoPicon/gestotvfreebox | bsd-3-clause | 730 | 45 | codeparrot/github-code |
2f8fc8ba37474df8a22a4e8faa6c4a0de80f429c2f20e6d9f5dd98a50fdb395e | /**
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met :
*
* . Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
... | Java | src/test/java/cppstyle/checks/NamespaceNameCheckTest.java | harveyt/cppncss | bsd-3-clause | 3,417 | 95 | codeparrot/github-code |
2b74ac02282662c3f0139e07926cd159246894686100960eccc6ee3a719cbeb9 | <?php
namespace Category\Model;
use Zend\Db\TableGateway\AbstractTableGateway,
Zend\Db\Adapter\Adapter,
Zend\Db\ResultSet\ResultSet;
class CategoryTable extends AbstractTableGateway
{
protected $table = 'tedemis_category';
public function __construct(Adapter $adapter)
{
$this->adapter... | PHP | module/Category/src/Category/Model/CategoryTable.php | makanegaye/tedemis | bsd-3-clause | 2,792 | 119 | codeparrot/github-code |
9da7ff9a0c1afe673c6af4fb98935799386ae8297bb94d3147a8d6600b439d5c | using System;
using System.Linq;
using VersionOne.SDK.APIClient;
namespace VersionOne.Integration.Tfs.ServerConnector.Filters {
public class GroupFilter : IFilter {
private readonly IFilter[] filters;
private readonly FilterActions groupAction;
private GroupFilter(FilterActions groupActio... | C# | VersionOne.Integration.TFS.ServerConnector/Filters/GroupFilter.cs | versionone/VersionOne.Integration.TFS.ServerConnector | bsd-3-clause | 1,222 | 36 | codeparrot/github-code |
762fd48420f94aaed1dde0c7b051a16fc78eddbb5db10b9436163e0b7d605d1d | #pragma once
//=====================================================================//
/*! @file
@brief 共有ヘッダー
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "snd_io/sound.hpp"
#include "widgets/widget_director.hpp"
#include "utils/preference.hp... | C++ | glfw3_app/spinv/main.hpp | hirakuni45/glfw3_app | bsd-3-clause | 769 | 35 | codeparrot/github-code |
5ad98a443286637777b75b48385a99830807a85ca2b39593beeda014c70ef68b | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | C# | OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs | justinccdev/opensim | bsd-3-clause | 28,352 | 666 | codeparrot/github-code |
be36a5a2c0bcdc85a875ab91ae917c2fa3c536d306c7eafada3c4fddb17a15b5 | <?php
namespace common\models\catalogos;
use Yii;
/**
* This is the model class for table "MaterialesTipo".
*
* @property integer $IdMaterialTipo
* @property string $Descripcion
*
* @property Materiales[] $materiales
*/
class MaterialesTipo extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
... | PHP | common/models/catalogos/MaterialesTipo.php | fimex/sistema | bsd-3-clause | 952 | 54 | codeparrot/github-code |
d9648d5875fbcbf838d6207f950846345abbdc64bb0cb7b803ab17c4896ced7f | using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class MenuManagerPanelTeacherSideBar : MonoBehaviour
{
internal Image m_configureArrow;
internal Image m_studentsArrow;
internal Image m_classesArrow;
internal Image m_reviewArrow;
internal Image m_assignArrow;
i... | C# | core/vitaUnity/Assets/Scripts/Menu/MenuManagerPanelTeacherSideBar.cs | USC-ICT/vita-dmf | bsd-3-clause | 6,315 | 223 | codeparrot/github-code |
8e0d58866bd7d5087bb7e1099faed0ab517cfe925b2e0046e726bd3b174678b7 | /*
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2009 Torch Mobile, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the ab... | C++ | third_party/WebKit/Source/core/fetch/FontResource.cpp | Bysmyyr/chromium-crosswalk | bsd-3-clause | 5,880 | 184 | codeparrot/github-code |
c3b68686c299d6d03d0e733531f872a515b0083af33001c1804d31997d5bf601 | /*
* Copyright (c) 2004-2021, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list o... | Java | core/src/androidTest/java/org/hisp/dhis/android/core/program/internal/ProgramStageStoreIntegrationShould.java | dhis2/dhis2-android-sdk | bsd-3-clause | 2,789 | 58 | codeparrot/github-code |
d70fd8ef4ad172281a490bd1ad3cbef6541d4de8be509b710eb922929c72d733 | #ifndef ZFLYEMNEURONBODYINFO_H
#define ZFLYEMNEURONBODYINFO_H
#include "zintcuboid.h"
#include "zintpoint.h"
class ZObject3dScan;
class ZJsonObject;
class ZFlyEmNeuronBodyInfo
{
public:
ZFlyEmNeuronBodyInfo();
inline void setBodySize(int bodySize) {
m_bodySize = bodySize;
}
inline int getBodySize() con... | C | neurolabi/gui/flyem/zflyemneuronbodyinfo.h | stephenplaza/NeuTu | bsd-3-clause | 715 | 39 | codeparrot/github-code |
83487581c91e21543e1ebd7af155650aa5601c4903a2ad6c41b7cc6a71bf88f6 | package planning.planets.probe;
import planning.causalgraph.CausalGraph;
import planning.causalgraph.Expander;
import planning.util.IntSet;
import planning.util.LRPGLandmarkFactory;
import planning.util.Landmark;
import planning.util.MutexSet;
import planning.planets.PlanSketch;
import search.ObjectiveFunction;
import... | Java | planning/planets/probe/GreedyLandmarkObjectiveFunction.java | jteutenberg/Planets | bsd-3-clause | 2,985 | 89 | codeparrot/github-code |
c1bdd12366e11ab6efb1a51a88537fa6b35c927928554ab08eab43f9f6c0bd9f | // This file is part of MANTIS OS, Operating System
// See http://mantis.cs.colorado.edu/
//
// Copyright (C) 2003,2004,2005 University of Colorado, Boulder
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the mos license (see file LICENSE)
/** @file sleep_exampl... | C | src/apps/sleep_example/sleep_example.c | turon/mantis | bsd-3-clause | 2,142 | 71 | codeparrot/github-code |
1ac49abd3439dbcfa08eb1233aed990c17dbe5aa884707c593873cdb4e05ade4 | var $ = require('jquery');
var _ = require('underscore');
var Backbone = require('backbone');
var EditorHelpers = require('builder/components/form-components/helpers/editor');
var TipsyTooltipView = require('builder/components/tipsy-tooltip-view');
var template = require('./enabler-editor.tpl');
/**
* Creates an ele... | JavaScript | lib/assets/javascripts/builder/components/form-components/editors/enabler-editor/enabler-editor-view.js | CartoDB/cartodb | bsd-3-clause | 4,518 | 176 | codeparrot/github-code |
97a775999b84ec7454924f52ec07da3cfc606407ed2faf380460de6673ba1e9f | <?php
/**
* Pimcore
*
* 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://www.pimcore.org/license
*
* @category Pimcore
* @package Object
* @cop... | PHP | pimcore/models/Object/Classificationstore/KeyGroupRelation/Resource.php | Ahmad-Hilali/pimcore | bsd-3-clause | 2,860 | 105 | codeparrot/github-code |
fbd2e6eb02ba5cc89f45f2eb214e6d0392edbf2b2658d16d6342aaa3aed38690 | import numpy,pylab
def rgb_comp(terncoordlist):
# if numpy.array(terncoordlist).sum()==0:
# return numpy.array([1, 1, 1.])
cmy_cmyk=lambda a:a[:3]*(1.-a[3])+a[3]
rgb_cmy=lambda a:1.-a
rgb_cmyk=lambda a:rgb_cmy(cmy_cmyk(a))
return numpy.array([rgb_cmyk(numpy.array(a)) for a in terncoordlist])... | Python | gen_100m_4el_tern5_quat10_v3.py | johnmgregoire/JCAPGeneratePrintCode | bsd-3-clause | 7,185 | 182 | codeparrot/github-code |
45b916fc0535300e1bcea92573f7763d180ad3703d83336133f26359ee3cd99b | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <U... | C | Libraries/Text/RCTTextInput.h | frantic/react-native | bsd-3-clause | 2,234 | 69 | codeparrot/github-code |
46e052d69ee56b67219b02e8253da1e6f6b154fb2f9fe152d0c0bd75afd5b5f8 | /*
* Copyright (c) 2004-2022, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... | Java | dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/tracker/validation/hooks/EventCategoryOptValidationHook.java | hispindia/dhis2-Core | bsd-3-clause | 4,862 | 113 | codeparrot/github-code |
07d8339eae0f96b6ea97c27f7178a0e774e3826d963b60a95880a3fbc922e428 | // Copyright 2014 The Chromium 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 NET_QUIC_CRYPTO_CHACHA20_POLY1305_ENCRYPTER_H_
#define NET_QUIC_CRYPTO_CHACHA20_POLY1305_ENCRYPTER_H_
#include "net/quic/crypto/aead_base_encrypt... | C | net/quic/crypto/chacha20_poly1305_encrypter.h | anirudhSK/chromium | bsd-3-clause | 1,370 | 44 | codeparrot/github-code |
26abadf7dc7f9de8a1cc64dc435efb10c9105f03b2d9242af6c027387d88c418 | <?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
*
* @package PhpMyAdmin-Designer
*/
/**
*
*/
require_once './libraries/common.inc.php';
require_once 'libraries/pmd_common.php';
$cfgRelation = PMA_getRelationsParam();
if (! $cfgRelation['designerwork']) {
PMD_err_sav();
}
/**
* Sets globals from $_POST... | PHP | phpmyadmin/pmd_save_pos.php | exhibia/exhibia | bsd-3-clause | 2,449 | 85 | codeparrot/github-code |
1a26fb2d11d1d684752be7f76e89415f30a51556a23c4c4ff6a89a85020e0d8b | export default function Scatter(chartState, histogram, chartType) {
if (!histogram) return null;
const x = [];
const y = [];
const color = [];
histogram.bins.forEach((bin) => {
x.push(bin.x);
y.push(bin.y);
color.push(bin.count);
});
// 'text' shows up in the hover popup.
return {
for... | JavaScript | src/Rendering/Chart/Histogram2DPlotlyChartBuilder/Scatter.js | Kitware/paraviewweb | bsd-3-clause | 1,126 | 55 | codeparrot/github-code |
91f4132d1f2c332d090eaa2a6afc4942dc31d18813092e0368bcdac12000ef6e |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>metpy.plots.ctables — MetPy 0.7</title... | HTML | v0.7/_modules/metpy/plots/ctables.html | metpy/MetPy | bsd-3-clause | 35,792 | 551 | codeparrot/github-code |
5e5ee4a43bb286763853de48360b570821527f2950ac68b52d1dc8616e4fc4fd | module Gesmew
module Core
class NumberGenerator < Module
BASE = 10
DEFAULT_LENGTH = 9
NUMBERS = (0..9).to_a.freeze
LETTERS = ('A'..'Z').to_a.freeze
attr_accessor :prefix, :length
def initialize(options)
@random = Random.new
@prefix ... | Ruby | core/lib/gesmew/core/number_generator.rb | statiagov/gesmew | bsd-3-clause | 1,448 | 53 | codeparrot/github-code |
2a762bc664b180b2e3e98480e1c20f48a3e80c739095cb83a327410edcfc903d | /*
*
* Copyright (c) 2008-2012, OFFIS e.V. and ICSMED AG, Oldenburg, Germany
* All rights reserved. See COPYRIGHT file for details.
*
*
* Source file for class DRTRangeModulatorSettingsSequenceInRTIonBeamsSessionRecordModule
*
* Generated automatically from DICOM PS 3.3-2007
* File created on 2012-02-01 ... | C++ | AIMToolkit_v4.0.0_rv44/source/dcmtk-3.6.1_20121102/dcmrt/libsrc/drtrmss7.cc | NCIP/annotation-and-image-markup | bsd-3-clause | 20,341 | 604 | codeparrot/github-code |
77885c2aa497ed8a484a1385c0f65072ee54c658858fa455712927399b0c30e4 | #pragma once
namespace OmochiRenderer {
class Image
{
public:
Image()
: m_image()
, m_width(0)
, m_height(0)
{
}
size_t GetHeight() const { return m_height; }
size_t GetWidth() const { return m_width; }
const Color &GetPixel(size_t x, size_t y) const {
assert(x < ... | C | src/tools/Image.h | omochi64/omochi-renderer | bsd-3-clause | 816 | 37 | codeparrot/github-code |
a382c95741516399ff944dc8e1839ce66b57a764873dbe43cf83734afb4be763 | /**
* 矩形
* @module zrender/shape/Rectangle
* @author Kener (@Kener-林峰, kener.linfeng@gmail.com) ,
* strwind (@劲风FEI)
* @example
* var Rectangle = require('zrender/shape/Rectangle');
* var shape = new Rectangle({
* style: {
* x: 0,
* y: 0,
* width: 1... | JavaScript | src/shape/Rectangle.js | dato-code/zrender | bsd-3-clause | 7,179 | 204 | codeparrot/github-code |
cd459dbf3976d54a9d34b7e3323e2b63ecb309baa975c05fe946085490227e1c | #ifndef RBX_BUILTIN_TIME_HPP
#define RBX_BUILTIN_TIME_HPP
#include "util/time64.h"
#include "builtin/object.hpp"
#include "builtin/integer.hpp"
namespace rubinius {
class Array;
class String;
class Tuple;
class Time : public Object {
public:
const static object_type type = TimeType;
private:
ti... | C++ | vm/builtin/time.hpp | pH14/rubinius | bsd-3-clause | 2,400 | 95 | codeparrot/github-code |
78133eb8ae9d714faa510c05e93c55dcb45d604710439e2eccab24b7c08314bb | /*
* Copyright 2004 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 ... | C | voipengine/voipsdk/webrtc/src/webrtc/base/messagehandler.h | xandroidx/voip_ios | bsd-3-clause | 2,178 | 83 | codeparrot/github-code |
54f8fe3b9ffeeafb4e511228ff09564bb0b89ca59b17a9ed55eb66dfb9837992 | #.rst:
# GetPrerequisites
# ----------------
#
# Functions to analyze and list executable file prerequisites.
#
# This module provides functions to list the .dll, .dylib or .so files
# that an executable or shared library file depends on. (Its
# prerequisites.)
#
# It uses various tools to obtain the list of required ... | CMake | dev/cmake-3.5.1/Modules/GetPrerequisites.cmake | hlzz/dotfiles | bsd-3-clause | 31,546 | 999 | codeparrot/github-code |
d4336f3ab24c921e52a2e009aea0517e69e9e1396a78d061ca0ef1811f1bcd91 | <?php
namespace Accounting\Controller;
use Accounting\IllegalAmountException;
use Application\View\ErrorJsonModel;
use Zend\I18n\Validator\IsFloat;
use Zend\Validator\EmailAddress;
use Zend\Validator\GreaterThan;
use Zend\Validator\NotEmpty;
use Zend\Validator\StringLength;
use Zend\Validator\ValidatorChain;
use Zen... | PHP | module/Accounting/src/Accounting/Controller/OutgoingTransfersController.php | cocoonprojects/ora | bsd-3-clause | 4,032 | 124 | codeparrot/github-code |
78ccb1453e250e564597c593b8af0ac3acf10605c66ca19360eaa973d21a4648 | <?php
namespace Commun\Model;
/**
* @author Antarus
* @project Raid-TracKer
*/
class RosterStat extends \Core\Model\AbstractModel {
public $idRoster = null;
public $nom = null;
public $nbTotalRaid;
public $nbTotalRaidPallier;
public $nbItem;
public $nbItemPallier;
public $participation... | PHP | module/Commun/src/Commun/Model/RosterStat.php | antarus/mystra-pve | bsd-3-clause | 1,471 | 76 | codeparrot/github-code |
50fcbfdaacb16975258bd0d38b157c717e9a89b46c44c63ea4bcab6c12bbc7f7 | import logging
from django.core.management.base import BaseCommand
from hs_core.models import GenericResource
from hs_core.hydroshare import current_site_url, set_dirty_bag_flag
class Command(BaseCommand):
help = "Convert all generic resources to composite resource"
def handle(self, *args, **options):
... | Python | hs_core/management/commands/migrate_generic_resources.py | hydroshare/hydroshare | bsd-3-clause | 1,841 | 47 | codeparrot/github-code |
eac385a0034a9667a4350c7f73350b44ba66eb4a08068040095a0345f9b41978 | #region License Header
// /*******************************************************************************
// * Open Behavioral Health Information Technology Architecture (OBHITA.org)
// *
// * Redistribution and use in source and binary forms, with or without
// * modification, are permitted provided that t... | C# | TestEHR/Controllers/CertSignService.cs | OBHITA/PROCenter | bsd-3-clause | 4,745 | 94 | codeparrot/github-code |
8b20ca4dba97a2f6a0d898dce3ee7db1583f6b2d106cef77660949e48736c9ef | package com.flat502.rox.client;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.Reader;
import java.net.Socket;
import java.net.URL;
import java.nio.ByteBuffer;
import java.nio.channels.SelectableChannel;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selecto... | Java | attic/src/com/flat502/rox/client/HttpRpcClient.java | lukehutch/gribbit-rox | bsd-3-clause | 38,903 | 1,078 | codeparrot/github-code |
ce6496026fdfb5a542999341714920bc05581928dbeb5592cd5260ca8607104f | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.PortfolioManager.domain.entities;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
/**
*
... | Java | PortfolioManager2.9/src/com/PortfolioManager/domain/entities/Investor.java | Ayadi07/CSI | bsd-3-clause | 3,758 | 181 | codeparrot/github-code |
f7a0ef7d941c25a382f9fdfd1846cbd76eb920153c201feae13efc504e190f1b | #pragma once
#include <assert.h>
#include "scalar.h"
#include "vec.h"
#include "sphere.h"
#include "line.h"
#include "aabb.h"
#include "obb.h"
#include "contact_info.h"
namespace math
{
static scalar const COLLISION_EPSILON = 0.001f;
template<int N, class S>
bool collide(sphere<N, S> const &s1, sphere<N, S> const &... | C | src/math/collision.h | manvelavetisian/scratch | bsd-3-clause | 4,424 | 183 | codeparrot/github-code |
9cdb7477ee57d610b98b4a46d5a959f061c372ac349b69a7258df2d3135ab261 | ! linkedlist.f90 --
! Include file for defining linked lists where each element holds
! the same kind of data
!
! See the example/test program for the way to use this
!
! Note:
! You should only use pointer variables of this type, no
! ordinary variables, as sometimes the memory pointed to
! ... | FORTRAN | flibs-0.9/flibs/src/cgi/linkedlist.f90 | mapmeld/fortran-machine | bsd-3-clause | 6,060 | 239 | codeparrot/github-code |
86a33a44cb54c97e20ac3b17c65a3f3fb780b7b655fa3a914bfcf2bb8bba349e | /*
Asynchronous WebServer library for Espressif MCUs
Copyright (c) 2016 Hristo Gochkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as pu... | C++ | src/WebRequest.cpp | PrintedProto/WordClock | bsd-3-clause | 29,223 | 928 | codeparrot/github-code |
5ecd719b9af62ba251e3a5b8aed9f253ebd85f9f61bc219a8618f4757cc9939b | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | C++ | libvast/src/system/raft.cpp | mavam/vast | bsd-3-clause | 43,529 | 1,135 | codeparrot/github-code |
7d794576e2a70e1a3b245f60d0a10dc6eab92a4f8cbc44b6306503716ed21da8 | #!/usr/bin/env perl
=head1 NAME
BPbtab
script parses WU-BLAST or NCBI-BLAST output files into BTAB format where each HSP is reported as a single line with tab-delimited fields.
The original BTAB program is described here:
Dubnick M. (1992) Btab--a Blast output parser. Comput Appl Biosci 8(6):6... | Perl | EvmUtils/BPbtab.pl | EVidenceModeler/EVidenceModeler | bsd-3-clause | 4,173 | 158 | codeparrot/github-code |
fca68f4d55ac3a891d61dfe07777f3ce8059092fccee34e51845dfc1dc007607 | from django import forms
from django.utils.translation import ugettext_lazy as _
from .models import Customer, Session, CompanyProfile
class CustomerUpdateForm(forms.ModelForm):
"""
Update Customer form
Field enhancements:
* therapyCategory uses forms.TypedChoiceField.
"""
class Meta:
... | Python | therapyinvoicing/customers/forms.py | ylitormatech/terapialaskutus | bsd-3-clause | 7,077 | 220 | codeparrot/github-code |
72bb94eabe633374b92acc1e080db015ccb9d8f164677f494fd7db2db5ea468b | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_icon_manager.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "chrome/common/extensions... | C++ | chrome/browser/extensions/extension_icon_manager.cc | keishi/chromium | bsd-3-clause | 4,152 | 125 | codeparrot/github-code |
ecaf0771a5c110aabb4373cb6f488f3ae3835bbf5377879fc20d1f24e9079774 | /* Copyright (C) 2005-2011 Fabio Riccardi */
/**
* JavaAppLauncher: a simple Java application launcher for Windows.
* StartJava.cpp
*
* Paul J. Lucas [paul@lightcrafts.com]
*/
// standard
#include <jni.h>
#include <stdio.h>
#ifdef DEBUG
#include <iostream>
#endif
// windows
#include <locale.h>
#include <stdlib.... | C++ | windows/helpers/JavaAppLauncher/StartJava.cpp | MarinnaCole/LightZone | bsd-3-clause | 6,558 | 211 | codeparrot/github-code |
89a62f0b236e18606e8228bed9155d16cde7a8683a960f7c4ad4f366fb8bf5db | import sys
import threading
import weakref
from django.utils.six.moves import xrange
if sys.version_info < (3, 4):
from .weakref_backports import WeakMethod
else:
from weakref import WeakMethod
def _make_id(target):
if hasattr(target, '__func__'):
return (id(target.__self__), id(target.__func__)... | Python | django/dispatch/dispatcher.py | andyzsf/django | bsd-3-clause | 11,964 | 325 | codeparrot/github-code |
7b35a93688178c440a97ffece3bee6520e41ed75831a5d6f04f2178241b59fe0 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import with_statement
try:
# For Python >= 2.6
import json
except ImportError:
# For Python < 2.6 or people using a newer version of simplejson
import simplejson as json
import random
from datetime imp... | Python | pyes/es.py | mouadino/pyes | bsd-3-clause | 67,840 | 1,860 | codeparrot/github-code |
99385f24f1f9292f3e1c5e7447a38b54509a3c1031a2c53ab80880e47a1a14be | /** @addtogroup Solver
* @{
* \copyright TU Dresden ZIH. All rights reserved.
* \authors Martin Flehmig, Marc Hartung, Marcus Walther
* \date Oct 2015
*/
#ifndef INCLUDE_SOLVER_SOLVERSTEPINFO_HPP_
#define INCLUDE_SOLVER_SOLVERSTEPINFO_HPP_
#include "Stdafx.hpp"
#include "BasicTypedefs.hpp"
#include "fmi/Valu... | C++ | include/solver/SolverStepInfo.hpp | marchartung/ParallelFMU | bsd-3-clause | 2,303 | 112 | codeparrot/github-code |
5806e1b6fd770f074a3b6d1833e92e76f3a13fc33a25f9e6b083a4304f3390fe | 'use strict';
import Component from './Component';
const {Objects, Seq, Reader} = mojo;
export default class Element {
constructor(tag, props, children) {
this.__tag = tag;
this.__props = props || {};
this.__children = children;
if (Objects.isNothing(this.__children)) {
... | JavaScript | src/main/js/base/Element.js | ralf-o/facekit-js | bsd-3-clause | 959 | 39 | codeparrot/github-code |
77800c6ea2f1ce79dbd11e9486fccc5b3b778e4c4ec7544fc35821f63c3f52c7 | <?php
/**
* osCommerce Online Merchant
*
* @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com
* @license BSD License; http://www.oscommerce.com/bsdlicense.txt
*/
namespace osCommerce\OM\Core\Site\Admin;
use osCommerce\OM\Core\Access;
use osCommerce\OM\Core\Cache;
use osCommerce\OM\Core\... | PHP | osCommerce/OM/Core/Site/Admin/Controller.php | osCommerce/oscommerce | bsd-3-clause | 4,581 | 123 | codeparrot/github-code |
f3670138b50e51047c98de0604050f1d77e66e82520e46c3a9d0013c836a5053 | /*
Copyright (C) 1999-2003,2009-2010 Electronic Arts, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this li... | C | core/source/dirtysock/dirtynet.c | kitsilanosoftware/DirtySDK | bsd-3-clause | 7,410 | 284 | codeparrot/github-code |
34153ac05e3524f1e3e3a65e64195e9a5e5edf8c06ecba262d13ef6023c21fac | <?php
namespace Market\Form;
use Zend\Form\Form;
use Zend\Form\Element;
use Zend\Captcha\Image as ImageCaptcha;
class PostForm extends Form
{
use CategoryTrait;
use ExpireDaysTrait;
use CaptchaTrait;
public function buildForm()
{
// form tag attributes
$this->setAttribute('met... | PHP | module/Market/src/Market/Form/PostForm.php | cellobnu/onlinemarket.work | bsd-3-clause | 4,477 | 113 | codeparrot/github-code |
2d00c413c0889ccd630cd907d8a3a45e02faf889634fb6d67028eaf08966e7eb | // Copyright (c) 2013 The Chromium 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 CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_
#define CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_QUEUE_HANDLER_H_
#include <map>
#inclu... | C | chrome/service/cloud_print/printer_job_queue_handler.h | zcbenz/cefode-chromium | bsd-3-clause | 2,605 | 98 | codeparrot/github-code |
5eb81bd0eb19bd25b814d68dbfedf255bb1c5b1322a87c2f02e4cd65a3acc8d1 | /*L
* Copyright Oracle Inc
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cadsr-cgmdr-nci-uk/LICENSE.txt for details.
*/
/*
* eXist Open Source Native XML Database
* Copyright (C) 2001-04 The eXist Project
* http://exist-db.org
*
* This program is ... | Java | src/org/exist/xquery/functions/util/IndexType.java | NCIP/cadsr-cgmdr-nci-uk | bsd-3-clause | 3,953 | 109 | codeparrot/github-code |
2dd236dde0dc852aa62d04dd306b7be87906273f28fd1fc38634cb2bbbdae2ef | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/Orders for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License 123
*/
na... | PHP | module/Payments/src/Payments/Controller/PaymentsController_paymentchanges.php | Jhonnorton/vivekvtc | bsd-3-clause | 15,675 | 374 | codeparrot/github-code |
2a1f938ab26f72400421e28c9f2ddeb3db5ab1f220a3f21fae4c19c6f24cefa1 | #! /usr/bin/env python3
"""
Before you start:
* Demo application requires ``arcade`` packages to be installed: http://arcade.academy/installation_linux.html.
* Make sure `steampak` is available to your Python 3.
1. Set PATH_LIBSTEAM environment variable to a proper path or put `libsteam_api.so` into `demo` directory... | Python | demo/steampak_demo.py | idlesign/steampak | bsd-3-clause | 2,653 | 101 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.