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 |
|---|---|---|---|---|---|---|---|---|
4eafe576cb9309257f2217f6c9f22ed1faeda699f9ac9a4e2c6f9b5eb78d3177 | <?php
namespace Mappers\Model\Estacion;
use Mappers\Model\Estacion\Estacion;
class Estacion
{
protected $id = null;
protected $nombre = '';
protected $habilitado = null;
protected $ubicacion = '';
protected $coordenadas = '';
/**
* Setea el parametro id
*
* @param int $id... | PHP | module/Mappers/src/Mappers/Model/Estacion/Estacion.php | cristiannores/estaciones | bsd-3-clause | 1,950 | 123 | codeparrot/github-code |
8c31b1bf30b8b01bad69864f6bac5b89e9457e25fc92ddfbb5a322784b955148 | #include <Common/HighQueuePch.hpp>
#define BOOST_TEST_NO_MAIN HighQueueTest
#include <boost/test/unit_test.hpp>
#include <HighQueue/details/HQMemoryBlockPool.hpp>
#include <Common/CacheLIne.hpp>
using namespace HighQueue;
#define DISABLE_testPoolAllocationx
#ifdef DISABLE_testPoolAllocation
#pragma message ("DISABLE... | C++ | src/HQTest/MemoryBlockAllocatorTest.cpp | dale-wilson/HighQueue | bsd-3-clause | 2,091 | 63 | codeparrot/github-code |
306022fa257d3ebb0269761034523f35927cd064a721bf630b3c016178ec111a | <?php defined('SYSPATH') or die('No direct script access.');
/**
* Created by PhpStorm.
* User: Vitalik
* Date: 31.07.2015
* Time: 13:59
*/
class Controller_Pages_Account extends Controller_BaseController {
/**
* @throws Kohana_Exception
* просмотр профиля или авторизация через соц.сеть
*/
... | PHP | application/classes/Controller/Pages/Account.php | trafik8787/top-rael | bsd-3-clause | 23,589 | 571 | codeparrot/github-code |
156b1b02a652fa84be729d9430231693c31f0a5acd806c4409cce43de7d55ddc | /*
* Range.scala
* Methods for computing the range of elements associated with problem components.
*
* Created By: Avi Pfeffer (apfeffer@cra.com)
* Creation Date: March 1, 2015
*
* Copyright 2015 Avrom J. Pfeffer and Charles River Analytics, Inc.
* See http://www.cra.com or email figaro@cra.com for infor... | Scala | Figaro/src/main/scala/com/cra/figaro/algorithm/structured/Range.scala | scottcb/figaro | bsd-3-clause | 16,500 | 363 | codeparrot/github-code |
dd655258a30ba0c0106be68a3c6baa80954991b9553343352993eed2f77f8513 | <?php
namespace app\helpers;
class MyString {
function __construct() {
}
static function randomString($len) {
$ret = substr(str_shuffle("abcdefghijklmnopqrstuvwxABCDEFGHJKLMNPQRSTUVWX1234567890"), 0, $len);
return $ret;
}
static function random($len) {
... | PHP | helpers/MyString.php | ovcaman/ydovcaman | bsd-3-clause | 2,691 | 122 | codeparrot/github-code |
e2c6e74a1cfa2052e8832b2b407e1d00ad3d5a111764bfeb643c9df6d14ec4c2 | // Camera Component.
// -----------------------------------------------------------------------------
// Copyright (C) 2011, The ZEUS project. See AUTHORS.txt for authors
//
// This program is open source and distributed under the New BSD License. See
// LICENSE.txt for more detail.
// ---------------------------------... | C | src/Display/Camera.h | papaboo/The-ZEUS-Project | bsd-3-clause | 3,549 | 107 | codeparrot/github-code |
e234abc4375b2a04b6357a4491f033403c9b8dd52c2dde9b93b1f3a9d5d7a8dc | /*******************************************************************************
* Copyright (c) 2009-2016, MAV'RIC Development Team
* 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. R... | C | hal/avr32/adc_int.c | lis-epfl/MAVRIC_Library | bsd-3-clause | 12,644 | 339 | codeparrot/github-code |
6f866c06d432c3005ba99c3ed0e53b39dca6e01a09f907c09625c2bb8b7ba54c | <?php
/***********************************************
* File : wiper.php
* Project :
* Descr : This backend is ONLY for
* remote wipe
*
* Created : 12.14.2009
* Author : Hiroyuki Nakamura (hiroyuki@maloninc.com)
************************************************/
include_once('d... | PHP | wiper.php | maloninc/iRemoteWipe | bsd-3-clause | 6,794 | 234 | codeparrot/github-code |
18c77e6361c3d92dcd90662bf35ad55117b37b5e8bf99436c35fe9b5e8833678 | using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Mvc;
using FunnelWeb.Web.Application.Markup.Macros;
namespace FunnelWeb.Web.Application.Markup
{
public class MacroEnricher : IContentEnricher
{
private readonly Ht... | C# | src/FunnelWeb.Web/Application/Markup/MacroEnricher.cs | funnelweblog/FunnelWeb | bsd-3-clause | 2,022 | 55 | codeparrot/github-code |
4076a30a4891c9fe310c7fbec1045b0c9aa073795335c05c2ece864c851fd0ab | <?php
/**
* CThemeManager class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2011 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
/**
* CThemeManager manages the themes for the Web application.
*
* A... | PHP | framework/web/CThemeManager.php | piaoxuedtian/myrepo | bsd-3-clause | 3,977 | 132 | codeparrot/github-code |
61df79e4b464f4284cb5ed452c7f9c2980bd396b399b3d78f1b03d9dec74f30b | import numpy as np
import scipy
from scipy import linalg
from scipy import sparse
from scipy import ndimage
import scipy.sparse.linalg.eigen.arpack
from scipy.sparse.linalg.eigen.arpack import eigen, eigen_symmetric
#from pyamg.graph import lloyd_cluster
import pyamg
from pyamg import smoothed_aggregation_solver
from s... | Python | spectral_embedding.py | GaelVaroquaux/diffusion-segmentation | bsd-3-clause | 11,610 | 326 | codeparrot/github-code |
04e277a4cfd85f3df031a436025dc7f5a7fd61108de58ecb4f576b038a460925 | /*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <libgen.h>
#include "ioutils.h"
#include "qidxfile.h"
#define OPTIONS "h"
void print_help(char* progname)
{
fprintf(stderr, "Usage:... | C | blind/quadsperstar.c | olebole/astrometry.net | bsd-3-clause | 2,067 | 100 | codeparrot/github-code |
2a82c47ccc3e6d010aecb2cb588be74baf7975c2024761c98ca989507e77b22e | # 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.
import datetime
import logging
import os
import random
import shutil
import StringIO
import sys
import tempfile
from catapult_base import cloud_storage # p... | Python | telemetry/telemetry/value/trace.py | SummerLW/Perf-Insight-Report | bsd-3-clause | 4,564 | 148 | codeparrot/github-code |
26327641291dc9d9c15525d1ff18038f325ff0ca3f9f512a6eb7562e470888c1 | from gi.repository import Gtk
class ChannelWindow:
def __init__(self, sources, client_thread):
self.sources = sources
self.client_thread = client_thread
self.changes = {}
self.widgets = {}
self.gtkwin = Gtk.Window()
self.gtkwin.set_position(Gtk.WindowPosition.CENTER)
self.gtkwin.set_default_size(320,... | Python | kismon/windows/channel.py | krzotr/kismon | bsd-3-clause | 3,856 | 122 | codeparrot/github-code |
3179974d502cade573df5288b954dff3c004ea99239522f4a53170e5d3a53ab9 | (function() {
var app = angular.module("index", ["header"]);
app.controller("bookTicketController", function($scope) {
var today = new Date();
$('#datetimepicker').datetimepicker({
pickTime: false,
defaultDate: today
});
$('#datetimepicker').data("DateTi... | JavaScript | Source/public/js/index/index.js | NGUp/VeXeCuaTui | bsd-3-clause | 2,043 | 54 | codeparrot/github-code |
e2c5742ad3f442bd39542f60b9b7869ee0e10e3dda7b09cf5d0b1ebf635691a4 | <?php
/**
* PHPFrame/Client/CLIClient.php
*
* PHP version 5
*
* @category PHPFrame
* @package Client
* @author Lupo Montero <lupo@e-noise.com>
* @copyright 2010 The PHPFrame Group
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link http://github.com/PHPFrame/PHPF... | PHP | src/PHPFrame/Client/CLIClient.php | PHPFrame/PHPFrame | bsd-3-clause | 5,950 | 207 | codeparrot/github-code |
baad0a179fd56b8645e64d339342abe28af7fdc9e1e1ff64e032d947c2beb49c | // Copyright 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.
#include "content/renderer/media/webmediaplayer_ms.h"
#include <stddef.h>
#include <limits>
#include <string>
#include <utility>
#include "base/bind.h"
... | C++ | content/renderer/media/webmediaplayer_ms.cc | highweb-project/highweb-webcl-html5spec | bsd-3-clause | 17,640 | 551 | codeparrot/github-code |
f5d69c5b490f12a8b239d8d6a3aaf2785371601a94ed3ddee4a43de55f2f4502 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_char_malloc_33.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
Template File: sources-sinks-33.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routi... | C++ | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s03/CWE762_Mismatched_Memory_Management_Routines__delete_char_malloc_33.cpp | JianpingZeng/xcc | bsd-3-clause | 3,218 | 116 | codeparrot/github-code |
bbc29ca6c93979835b539ccf3aa04b21abd94dfd420361ad7fc7d26ae0fdc3de | import "./processing.html";
import "./processing.scss";
let started = false;
Template.processing.events({
"click #takePhoto": function() {
const _oid = Session.get("modelId");
console.log("started extracting data");
const imageData = document
.querySelector("#previewc")
.toDataURL("image/pn... | JavaScript | imports/ui/pages/processing/processing.js | BRL-CAD/OGV-meteor | bsd-3-clause | 4,224 | 168 | codeparrot/github-code |
1a261573958aaf4d7e1f8ee14da47e0ac3aca3daa67718da1eb687d4e4f5c5fe | package org.academy.quiz.stealthily;
import org.academy.quiz.Application;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.springframework.test.... | Java | src/test/java/org/academy/quiz/stealthily/StealthilyHomeTest.java | programming-academy/quiz | bsd-3-clause | 1,355 | 38 | codeparrot/github-code |
beaad5952f876f5c2868db2c0dc96bc3b847ad64e560f1c6174bb63c7d3c181f | <!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http:/... | HTML | app/styles/app-theme.html | greenyouse/event-planner | bsd-3-clause | 6,897 | 251 | codeparrot/github-code |
2c3e75a524f6ab014d839c736cb09e64a964f27425141e917c7d29dde5a57cb8 | <?php
namespace Admin\Controller;
use Zend\Mvc\Controller\AbstractActionController,
Zend\View\Model\ViewModel,
Zend\Form\Annotation\AnnotationBuilder,
Zend\Paginator\Paginator,
Zend\Json\Json,
User\Entity\DesignerSeason,
Admin\Form\SearchForm,
Admin\Model\Search;
class DesignerSeasonContr... | PHP | module/Admin/src/Admin/Controller/DesignerSeasonController.php | mafia99/Abbelire | bsd-3-clause | 10,522 | 288 | codeparrot/github-code |
12ce84bcbfbb2737e661146fe30362c6a01b5da5d44c883d41eca59e20dc5b81 | import {assert} from 'chai';
import {jsdom} from 'jsdom';
import {Transformime} from '../src/transformime';
/**
* Dummy Transformer for spying on
*/
function DummyTransformer(mimetype, data, doc) {
let pre = doc.createElement('pre');
DummyTransformer.lastData = data;
DummyTransformer.lastDoc = doc;
... | JavaScript | test/transformime.test.js | rgbkrk/transformime | bsd-3-clause | 4,939 | 121 | codeparrot/github-code |
bcefc914d509563c38a94cb35551ed1464c5807f958ec8ab4ad4289d192d152c | import {
createCommMessage,
createCommCloseMessage,
createCommOpenMessage,
createCommErrorAction,
commOpenAction,
commMessageAction,
commActionObservable,
} from '../../../src/notebook/epics/comm';
const chai = require('chai');
const Rx = require('rxjs/Rx');
const expect = chai.expect;
describe('create... | JavaScript | test/renderer/epics/comm-spec.js | 0u812/nteract | bsd-3-clause | 4,686 | 183 | codeparrot/github-code |
271df88fe73b2d1e7517a83ba85f09bb1a1472aa3aa9ab308b7dc86c749fd1ac | #include "zswcnodedistselector.h"
#include "zswctree.h"
ZSwcNodeDistSelector::ZSwcNodeDistSelector()
{
}
ZSwcTreeNodeArray ZSwcNodeDistSelector::select(const ZSwcTree &tree) const
{
tree.setLabel(0);
ZSwcTreeNodeArray nodeArray;
tree.updateIterator(SWC_TREE_ITERATOR_DEPTH_FIRST);
Swc_Tree_Node *tn = tree.be... | C++ | neurolabi/gui/swc/zswcnodedistselector.cpp | stephenplaza/NeuTu | bsd-3-clause | 1,777 | 77 | codeparrot/github-code |
6e967047dd9301ad54d9ccc14b7c4f940f7a24e88164f62e1121b04a2f9c823f | /*
* Copyright (c) 2009 Princeton University
* Copyright (c) 2009 The Regents of the University of California
* 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 cod... | C++ | src/mem/ruby/network/orion/Clock.cc | koparasy/faultinjection-gem5 | bsd-3-clause | 6,649 | 184 | codeparrot/github-code |
e71739b82fdafd2376c9754b46947e4942b69b041890f12c52921cb3f1ee2107 | # coding: utf-8
"""
regex.tests
~~~~~~~~~~~
:copyright: 2012 by Daniel Neuhäuser
:license: BSD, see LICENSE.rst
"""
from unittest import TestCase
from itertools import izip
from contextlib import contextmanager
from regex.parser import (
parse, ParserError, Parser, DEFAULT_ALPHABET, DEFAULT_LANGUA... | Python | prototypes/regex/tests.py | DasIch/editor | bsd-3-clause | 17,416 | 587 | codeparrot/github-code |
de2b8128457d0c084c6cd161b73d186837865f1ac84825627e33f8b220f04acd | // Copyright 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 "cc/animation/layer_animation_controller.h"
#include <algorithm>
#include "cc/animation/animation.h"
#include "cc/animation/animation_delegate.... | C++ | cc/animation/layer_animation_controller.cc | ChromiumWebApps/chromium | bsd-3-clause | 30,497 | 835 | codeparrot/github-code |
772a57bd019dd1ecab24b725c4589f31c831bb005ad01135e25459d187c1b90d | package edu.gemini.spModel.core
import scalaz._, Scalaz._
/**
* Algebraic type for targets of observation.
*/
sealed trait Target extends Product with Serializable {
/** A human-readable name for this Target. */
def name: String
/** Coordinates (if known) for this target at the specified UNIX time. */
d... | Scala | bundle/edu.gemini.spModel.core/src/main/scala/edu/gemini/spModel/core/Target.scala | arturog8m/ocs | bsd-3-clause | 6,886 | 226 | codeparrot/github-code |
819e0289df17262cdf22a95069cab6abecf8956f3908164fccd49e6c66d5e25a | package main
import (
"flag"
"fmt"
"time"
"com.midea/jr/grpclb/example/pb"
grpclb "com.midea/jr/grpclb/naming/etcd/v3"
"golang.org/x/net/context"
"google.golang.org/grpc"
"strconv"
)
var (
serv = flag.String("service", "hello_service", "service name")
reg = flag.String("reg", "http://127.0.0.1:2379", "reg... | GO | go/example/71_gRPC/03_lb/tmp/client/main.go | yubo/program | bsd-3-clause | 919 | 40 | codeparrot/github-code |
c509f9bf13be527bbd7c9f03438da612c40b1a0c55e38fe676cc96673ebe0ae2 | <?php
use yii\helpers\Url;
?>
<div id="page-wrapper" class="gray-bg dashbard-1">
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-lg-10">
<h2>联系我们</h2>
</div>
... | PHP | views/user/contact.php | qq690669091/huhui_pc | bsd-3-clause | 8,035 | 189 | codeparrot/github-code |
f2c16ad502ddd4d6c23d487aced2cdeaa65c7ead97d74b64d87fa6a81b424f33 | <?php
use yii\widgets\LinkPager;
?>
<style type="text/css">
#goods_list{text-align: center; margin: 25px; position: absolute;
left: 350px; width: 300px; top: 30px; height: 200px}
#submit{position: absolute; left: 50%; top: 150px}
#pagination{
position: absolute;
margin-top: 440px;
margin-left: 440px;
}
#table{
w... | PHP | modules/Admin/Admin/views/shipping/index.php | 329221391/home | bsd-3-clause | 5,128 | 190 | codeparrot/github-code |
5d29ce50dd2a8c12dad10e32b2572ff4c271c4e3d2bc8a5f876a0927e7d5ee19 | #! /usr/bin/env python3
#
# multicast chat
#
# usage:
# mcc [-bs4] myname
# -4 use IPv4 (default: IPv6)
# mode: default receiver mode
# -s sender mode
# -b bot mode
import pickle
import struct
import socket
import sys
import subprocess
import random
import unicodedata
MYPORT = 8123
MYGRO... | Python | mcc.py | shingoichii/netpgm | bsd-3-clause | 4,677 | 157 | codeparrot/github-code |
9a5c5760a5dd2bb45ecd6cf38c10d977f69669cfe78f48a1b19d32e217f9879d | <!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RECAPP | Home</title>
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/webicons.css">
<scri... | HTML | index.html | bofarrell/RECAPP-WebRTC | bsd-3-clause | 5,555 | 141 | codeparrot/github-code |
0a7d001942f3b8fc103c756d305451f5636ead4ffbf6f3a055bbec1fdfd0019a | <?php
namespace app\modules\admin\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\admin\models\Sitesettings;
/**
* SitesettingsSearch represents the model behind the search form about `app\modules\admin\models\Sitesettings`.
*/
class SitesettingsSearch extends Sitesettings
{
... | PHP | modules/admin/models/SitesettingsSearch.php | alexseyka1/efir.city | bsd-3-clause | 1,621 | 71 | codeparrot/github-code |
3b7d2c637ba57c8692e472ae1ba0d9e5b7ca4924b85e61767ccbaa2b23510391 | //
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2010 Alessandro Tasora
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// and at http://projectchrono.org/license-chrono.txt.
//
... | C++ | src/physics/ChLink.cpp | scpeters/chrono | bsd-3-clause | 3,258 | 223 | codeparrot/github-code |
a34e9a2dc857393700c6b95dc2777bbb65aa17893fd4a3d0d35720161cb4006c | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verify the settings that cause a set of programs to be created in
a specific build directory, and that no intermediate built fil... | Python | test/builddir/gyptest-default.py | Jet-Streaming/gyp | bsd-3-clause | 2,759 | 86 | codeparrot/github-code |
ab8b451bdd3b3d08bdb2eadc2564654f7c18186bae10ebceb456a8be2ea770f5 | {-# LANGUAGE MultiParamTypeClasses #-}
-- | The Scale module implements scales.
module Music.Diatonic.Scale (
Scale, Scl(..),
majorScale, minorScale, majorPentatonicScale, minorPentatonicScale, minorHarmonicScale, minorMelodicScale,
tetrachord
) where
import Music.Diatonic
data Scale = Diatonic Quali... | Haskell | Music/Diatonic/Scale.hs | xpika/music-diatonic | bsd-3-clause | 3,559 | 112 | codeparrot/github-code |
17725414a8a74a9c418e79fbcc6e883ff05ad213dc62a77133f67b50a4d44faf | // Copyright 2016 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_BROWSER_UI_APP_LIST_ARC_ARC_PACKAGE_SYNCABLE_SERVICE_H_
#define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_PACKAGE_SYNCABLE_SERVICE_H_
#include <s... | C | chrome/browser/ui/app_list/arc/arc_package_syncable_service.h | nwjs/chromium.src | bsd-3-clause | 5,630 | 144 | codeparrot/github-code |
b36560ee14ec69402a763ada7f9664713fd9e9f948caccb19ad2455216e0ecb5 | // Copyright (c) 2014, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: yanshiguang02@baidu.com
#ifndef BFS_NAMESERVER_IMPL_H_
#define BFS_NAMESERVER_IMPL_H_
#include <common/mutex.h>
#include <common/thread_poo... | C | src/nameserver/nameserver_impl.h | imotai/bfs | bsd-3-clause | 5,279 | 127 | codeparrot/github-code |
a9ebfe26686592b6c0451796159040a4a7b121b730e6e00b71d27aa61005fe28 | // Copyright 2014 The go-github AUTHORS. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This tool tests for the JSON mappings in the go-github data types. It will
// identify fields that are returned by the live GitHub API, but that ar... | GO | test/fields/fields.go | google/go-github | bsd-3-clause | 3,696 | 149 | codeparrot/github-code |
fb57e25430efbdc1255a3f1a76b9d7ccf40c3cd29d0849c4fff03d4e420af3c4 | <?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Help</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="te... | HTML | docs/html/help.html | janies/dataleach | bsd-3-clause | 10,717 | 269 | codeparrot/github-code |
ef5fa9ac669f50562dee65fc63c0317666e27687406c2e5c4bd9f69cb61e0651 | <?php
use kartik\helpers\Html;
//use yii\widgets\ActiveForm;
use kartik\widgets\ActiveForm;
use kartik\builder\Form;
use kartik\builder\FormGrid;
use yii\helpers\ArrayHelper;
use kartik\datecontrol\DateControl;
use yii\helpers\Url;
use yii\grid\GridView;
use yii\bootstrap\Modal;
use yii\widgets\Pjax;
// table referen... | PHP | frontend/views/geran-bantuan-gaji/_form.php | hung101/kbs | bsd-3-clause | 36,530 | 835 | codeparrot/github-code |
a98e467e5b7d7483ff562f910c20d2bf068d9a3e97321de18d4a43fb6015b406 | package com.tinytimrob.jfmod5;
/** Parameter types for the {@link FmodDSPType#FFT} dsp effect. <br/><br/>
*
* Set the attributes for the spectrum analysis with {@link FmodDSPFFT#WINDOWSIZE} and {@link FmodDSPFFT#WINDOWTYPE},
* and retrieve the results with {@link FmodDSPFFT#SPECTRUM} and {@link FmodDSPFFT#DOM... | Java | java/src/main/java/com/tinytimrob/jfmod5/FmodDSPFFT.java | Tinytimrob/JFmod5 | bsd-3-clause | 1,516 | 43 | codeparrot/github-code |
54df1c9692c211177a037079e26d60594e92fac00e491823c0e1a07e01fd3daa | /*
* Copyright: (c) Mayo Foundation for Medical Education and
* Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the
* triple-shield Mayo logo are trademarks and service marks of MFMER.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/URI_Resolver/LICENSE.txt for de... | Java | src/main/java/edu/mayo/cts2/uriresolver/controller/ResolveURI.java | suesse/uri-resolver | bsd-3-clause | 7,851 | 220 | codeparrot/github-code |
8d862063e8dfabed04f528eb1d1e6a3179f353a923e6f6020aa0fd02c91d575f | /*
Copyright 2008-2009 University of Cambridge
Copyright 2008-2009 University of Toronto
Copyright 2010-2014 OCAD University
Copyright 2010-2011 Lucendo Development Ltd.
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compliance with one t... | JavaScript | src/components/pager/js/Table.js | metasteve/tls | bsd-3-clause | 17,712 | 440 | codeparrot/github-code |
5cf297bbbf35c4227f90fefe1ca228b042f70defbf432f958e1df2d129296b14 | /**************************************************************************
local errno = require('posix.errno')
errno.E*
errno.errno()
errno.perror([prompt])
errno.strerror(errnum)
**************************************************************************/
#include <string.h>
#include <errno.h>
#include "lu... | C | lerrno.c | zhongk/lua_xlib | bsd-3-clause | 5,233 | 197 | codeparrot/github-code |
5eb353710bd55ce05fcae2e47db5cb4aec915b2963a07dcb2612f4f2139f2834 | <?php
namespace APK;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
use Zend\ModuleManager\Feature\ServiceProviderInterface;
class Module implements ConfigProviderInterface, ServiceProviderInterface
{
/**
* {@inheritdoc}
* @see ConfigProviderInterface::getConfig()
*/
public function g... | PHP | module/APK/src/Module.php | Alfredao/apkshare | bsd-3-clause | 629 | 32 | codeparrot/github-code |
195684e9e7c5bd945cad41351fd1a6d02a93f5938163776e19906acc2eb527d3 | import re
locale_US = {'symbol': r'\$',
'currency': r'dollar[s]*',
'units': [('million', 10**6), ('m', 10**6), ('mn', 10**6), ('mil', 10**6),
('thousand', 10**3), ('k', 10**3),
('billion', 10**9), ('b', 10**9), ('bn', 10**9),
... | Python | sky/money.py | bgarrels/sky | bsd-3-clause | 3,699 | 85 | codeparrot/github-code |
956e656627c753aff31781ff69e03b39202426c2a1e1540ee184b7117e80e661 | svg.observation-chart {
background-color: black;
}
.overlay {
}
.globe {
fill: black;
stroke: rgb(230, 228, 231);
}
.graticule {
stroke: rgba(230, 228, 231, 0.5);
}
/* The base style of a star. Size of the star on the chart is dependent
* on its magnitude */
.star {
fill: white;
}
/* The base st... | CSS | css/chart-dark.css | willbarton/observation-charts | bsd-3-clause | 2,018 | 101 | codeparrot/github-code |
f4642a0b7e175ab200db82be60a7ff53f119328b49e621e49a8a530f49569512 | """ $lic$
Copyright (C) 2016-2020 by Tsinghua University and The Board of Trustees of
Stanford University
This program is free software: you can redistribute it and/or modify it under
the terms of the Modified BSD-3 License as published by the Open Source
Initiative.
This program is distributed in the hope that it wi... | Python | nn_dataflow/nns/lstm_phoneme.py | stanford-mast/nn_dataflow | bsd-3-clause | 1,086 | 41 | codeparrot/github-code |
84e90d2134415707846d447fbacc23ad601be491635834508a1baf69cd049cd2 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ABI40_0_0EventQueue.h"
#include "ABI40_0_0EventEmitter.h"
namespace ABI40_0_0facebook {
namespace ABI40_0_0React {
Eve... | C++ | ios/versioned-react-native/ABI40_0_0/ReactNative/ReactCommon/fabric/core/events/ABI40_0_0EventQueue.cpp | exponent/exponent | bsd-3-clause | 2,652 | 114 | codeparrot/github-code |
6762bc89a8e95e718ef7c84380e543f1bba7c1db3035b974a9af9fab62cce9f7 | #!/usr/bin/env bash
WRITER="writer"
CHECKER="checker"
CREATOR="./create_device.sh"
FILE="device-file"
LOCATION="./bin/"
WORKERS=16
TIME=60
DEBUG=false
OUTPUT=false
USAGE="To run: ./run_experiments.sh -l <file locations> -f <device file>
-r <writer> -c <checker> -t <seconds to write> -w <# threads to use>
-o (output v... | Shell | run_experiments.sh | russellfolk/Pthread_Power_Fault_Tester | bsd-3-clause | 2,268 | 88 | codeparrot/github-code |
23886e27dc64f492f1a321e340dc63ee4a0cd2de8071f680d691fa4c38305599 | from __future__ import absolute_import
from django.core.urlresolvers import reverse
from rest_framework import status
from rest_framework.exceptions import APIException
class ResourceDoesNotExist(APIException):
status_code = status.HTTP_404_NOT_FOUND
class SentryAPIException(APIException):
code = ''
me... | Python | src/sentry/api/exceptions.py | ifduyue/sentry | bsd-3-clause | 2,003 | 74 | codeparrot/github-code |
b19bf170fe94e4f451e526ff14f25ca298f1019816892dcba4b1757ce496e631 | package co.lgmk.keyper.resources;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.MediaType;
import co.lgmk.keyper.core.Person;
import co.lgmk.keyper.core.Key;
import co.lgmk.keyper.db.PersonDao;
import co.lgm... | Java | src/main/java/co/lgmk/keyper/resources/PersonResource.java | lacion/keyper | bsd-3-clause | 2,486 | 101 | codeparrot/github-code |
cb1dd4ea507ea52eaff3ca9e5b3246d52ed6eff33b4643d22c9d0961d2912f49 | ###
# Copyright (c) 2002-2005, Jeremiah Fincher
# Copyright (c) 2009, James McCoy
# 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 copyr... | Python | plugins/Misc/plugin.py | Ban3/Limnoria | bsd-3-clause | 27,456 | 622 | codeparrot/github-code |
283609ba9194319000d6c12e73096f2f2d4d011c433837d63fad72847b607bc1 | <?php
/**
* Plugin to log events.
*
* PHP version 5
*
* @category PHP
* @package PHP_Reflect
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
* @version GIT: $Id$
* @link http://php5.laurent-laville.org/reflect/
*/
names... | PHP | src/Bartlett/Reflect/Plugin/LogPlugin.php | remicollet/php-reflect | bsd-3-clause | 4,607 | 171 | codeparrot/github-code |
782fd9024c136a51ca57d55de64111fb37eb8768877e4a32ba9da025749dfc20 | /*
* Copyright (C) 2013 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | C++ | third_party/WebKit/Source/core/loader/FrameFetchContext.cpp | danakj/chromium | bsd-3-clause | 40,724 | 843 | codeparrot/github-code |
a11e972eed8d4acd5c3d060a74387580b7500a1618457f1b26513f31c3440133 | #!/usr/bin/perl
# WARNING: this only handles a single genbank file per program.
# TODO: object-orient this.
package Genbank;
use strict;
use FindBin;
use lib "$FindBin::Bin/..";
use Subfunctions qw(split_seq reverse_complement);
use Data::Dumper;
BEGIN {
require Exporter;
# set the version for version checking
o... | Perl | lib/Genbank.pm | daisieh/phylogenomics | bsd-3-clause | 15,330 | 551 | codeparrot/github-code |
bbbcf6b1364a6f30b449a844933bfc60b2cc29b5cce06ab3815d3f96dc3bbc0f | import holoviews as hv
import geoviews as gv
import dask.dataframe as dd
from holoviews.operation.datashader import datashade, aggregate, shade
from bokeh.models import WMTSTileSource
renderer = hv.renderer('bokeh')
# Load data
usecols = ['tpep_pickup_datetime', 'dropoff_x', 'dropoff_y']
ddf = dd.read_csv('../data/n... | Python | solutions/apps/periodic_app.py | ioam/scipy-2017-holoviews-tutorial | bsd-3-clause | 1,047 | 33 | codeparrot/github-code |
af0061308ccf3e1310c2e6fa9d603aeddbe4ed31c4d125bde0d4efd08e06bc17 | <?php
namespace app\models\search;
use netis\crud\db\ActiveSearchInterface;
use Yii;
use yii\base\Model;
use app\models\Shipper as ShipperModel;
use app\models\query\ShipperQuery;
/**
* Shipper represents the model behind the search form about `\app\models\Shipper`.
*/
class Shipper extends ShipperModel implements... | PHP | models/search/Shipper.php | netis-pl/yii2-crud-demo | bsd-3-clause | 1,404 | 60 | codeparrot/github-code |
81ba8c8a106002187ba79d885dcd1359d492a5d9393fbbd795d03c80a44afcea | using System;
using System.Linq;
using System.Net;
using ServiceStack.CacheAccess;
using ServiceStack.Common;
using ServiceStack.Common.Web;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface.Auth;
using ServiceStack.Text;
using ServiceStack.WebHost.Endpoints.Extensions;
using HttpResponseEx... | C# | src/ServiceStack.ServiceInterface/AuthenticateAttribute.cs | mangra/ServiceStack | bsd-3-clause | 4,904 | 120 | codeparrot/github-code |
ce9115f48f5489b6d81b305c6c7e279be538fa733274b80c359bce84d2dab04d | // --- BEGIN LICENSE BLOCK ---
/*
* Copyright (c) 2009, Mikio L. Braun
* 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 th... | Java | src/main/java/org/jblas/util/LibraryLoader.java | Quantisan/jblas | bsd-3-clause | 7,208 | 207 | codeparrot/github-code |
a19372e39c1b85e3086dae9fe01f7e9fc1f56c7a1d7fb552f8f1703cbc72f9f2 | #!/usr/bin/env python
# encoding: utf-8
## stdlib imports
import os
from glob import glob
## 3rd party
from . import pkgconf
from . import envmunge
from . import features as featmod
from . import util
## waf imports
import waflib.Logs as msg
import waflib.Context as context
# NOT from the waf book. The waf book ex... | Python | py-hwaftools/orch/waffuncs.py | hwaf/hwaf | bsd-3-clause | 4,382 | 130 | codeparrot/github-code |
25a3e4b15d4b36e3085b75d3110e5f7e7c93ff99f2ad0d64d8767476c72fc227 | /*
* Copyright (c) 2009, Tim Watson
* 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 co... | Java | axiom-core/src/main/java/org/axiom/scenario/VerificationFailureException.java | hyperthunk/axiom | bsd-3-clause | 2,550 | 67 | codeparrot/github-code |
aaf199320a92d0f8009da9ffd0e1f3ddaac47e170e840e1f55dfa2c1750ed1e4 | from dash.orgs.views import OrgObjPermsMixin, OrgPermsMixin
from smartmin.views import SmartCRUDL, SmartFormView, SmartListView, SmartReadView
from django import forms
from django.conf import settings
from django.http import HttpResponseRedirect, JsonResponse
from django.utils.translation import gettext_lazy as _
fro... | Python | casepro/contacts/views.py | rapidpro/casepro | bsd-3-clause | 5,104 | 142 | codeparrot/github-code |
c84475a12a4f4416431b7f8e38f1cc48ff57bb206666c672f44e5641ad7011e5 | // DDCPP/standard/bits/DD_MultiplyAssignWith.hpp
#ifndef DD_MULTIPLY_ASSIGN_WITH_HPP_INCLUDED_
# define DD_MULTIPLY_ASSIGN_WITH_HPP_INCLUDED_ 1
# include "DD_IntegralConstant.hpp"
# include "DD_Functor.hpp"
DD_DETAIL_BEGIN_
template <typename LeftOperandT_ = void, typename RightOperandT_ = LeftOperandT_>
struct M... | C++ | src/standard/bits/DD_MultiplyAssignWith.hpp | iDingDong/libDDCPP | bsd-3-clause | 2,688 | 99 | codeparrot/github-code |
f8080bf1a9a1fa6c289685c99fc451b59a53f31ba828895f9c3ac92a5d408772 | """
Structs transformer
"""
import logging
from collections import OrderedDict
from model.struct import Struct
from transformers.common_producer import InterfaceProducerCommon
class StructsProducer(InterfaceProducerCommon):
"""
Structs transformer
"""
def __init__(self, struct_class, enum_names, st... | Python | generator/transformers/structs_producer.py | smartdevicelink/sdl_ios | bsd-3-clause | 1,726 | 50 | codeparrot/github-code |
c2f157eeea5af89f10c55396906b2787bbcb196d311dc03c545fff923727d734 | <?php
/**
* MySQL 数据库操作工具类, 方便数据库操作.
* 示例见底部注释.
* @author: wuzuyang@gmail.com
*/
class Mysql_i{
var $conn;
var $query_list = array();
public $query_count = 0;
var $readonly = false;
public function __construct($c){
if(!isset($c['port'])){
$c['port'] = '3306';
}
$this->conn = new mysqli($c['host'], $c... | PHP | iphp/framework/Mysql_i.php | ssdb/phpssdbadmin | bsd-3-clause | 6,532 | 328 | codeparrot/github-code |
1d76dcd4584a70594a330238b52a6e67ed5cb4f5562fe30fa72473f9b7b773d7 | package com.skcraft.plume.module.chat;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.*;
public class ChatProcessor {
public static void sendChatMessage(EntityPlayerMP sender, String msg, EntityPlayerMP recipient) {
String formatte... | Java | src/main/java/com/skcraft/plume/module/chat/ChatProcessor.java | wizjany/Plume | bsd-3-clause | 3,794 | 108 | codeparrot/github-code |
7abdf6ad9d6c97bbd9c2d274abba701a2773460d85ef38fdd8a550ab6383fdb8 | /*
* Copyright (c) 2009, Peter Haag
* Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Red... | C | src/nflowcache.c | icsecurity/fan | bsd-3-clause | 31,411 | 1,260 | codeparrot/github-code |
be7b1952093e7753cb87047fb2443e932f8205836eeda005b0df2b3e01fdf6fc | using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace DDay.Update
{
public class AssemblyIdentity
{
#region Private Fields
private string _Name;
private Version _Version;
private string _PublicKeyToken;
private ProcessorArchitect... | C# | src/DDay.Update/Components/AssemblyIdentity.cs | jltrem/DDay.Update | bsd-3-clause | 3,843 | 133 | codeparrot/github-code |
3454794a6e7ea2ed47e83ad44d49b04f4eb2ae92a3183de11c9a230e94834fe7 | /**
* Copyright (c) 2013-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.
*
* @provides... | JavaScript | packages/relay-compiler/core/RelayIRVisitor.js | chentsulin/relay | bsd-3-clause | 2,835 | 100 | codeparrot/github-code |
43cf1ca07bd27536084c452cf6c332b3a3b15b7d1d8d33154844a250c306266d | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" type="image/ico" href="/tools/dlpage/res/chrome/images/chrome-16.png"><title>Google Chrome ସେବାର ସର୍ତ୍ତାବଳୀ</title>
<... | HTML | chrome/app/resources/terms/terms_or.html | rwatson/chromium-capsicum | bsd-3-clause | 27,675 | 147 | codeparrot/github-code |
f3fe3b6ff76c675f3c81342f4263daded294c7c6ce65e9da7abafcf8a836c417 | package org.broadinstitute.hellbender.tools;
import org.broadinstitute.hellbender.CommandLineProgramTest;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.io.File;
public class FlagStatIntegrationTest extends CommandLineProgramTest{
@Test(data... | Java | src/test/java/org/broadinstitute/hellbender/tools/FlagStatIntegrationTest.java | tomwhite/hellbender | bsd-3-clause | 2,492 | 81 | codeparrot/github-code |
3f6c4ea2f4bbb3de11b3fdd750c4762c68f198fcb6a95ca120ee852ff0b33f36 | # Copyright (c) 2015 Alexej Gossmann
#
# The following implementation is based on the paper Douglas Bates, Martin Maechler,
# Ben Bolker, Steve Walker, "Fitting Linear Mixed - Effects Models using lme4" (arXiv:1406.5823v1 [stat.CO]. 2014),
# and the corresponding R implementation in the package lme4pureR (https://git... | Ruby | lib/mixed_models/Deviance.rb | pjotrp/mixed_models | bsd-3-clause | 2,619 | 60 | codeparrot/github-code |
5fa2bde5c1df511bddc71c7f12fb1961d685f2138221bc4865c18c83c0967450 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import researchelementdefinition
from .fhirdate import FHIRDate
class ResearchElementDefinitionTests(unittest.TestCase):
def ins... | Python | rdr_service/lib_fhir/fhirclient_4_0_0/models/researchelementdefinition_tests.py | all-of-us/raw-data-repository | bsd-3-clause | 1,910 | 45 | codeparrot/github-code |
f769b4d58e48cdfe6153e2ad3dabe262fa26ac37edeeaf9d25c6d497a6977c2d | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "user_profile".
*
* @property integer $user_id
* @property integer $locale
* @property string $firstname
* @property string $middlename
* @property string $lastname
* @property string $picture
* @property integer $gender
*
* @... | PHP | common/models/UserProfile.php | HossainKhademian/Yii2StarterKit | bsd-3-clause | 2,187 | 87 | codeparrot/github-code |
54bd82571778ca940c46c9e49f0e1538a7b9bea932c3a4135a9677be808e27b1 | -----------------------------------------------------------------------------
-- |
-- Module : Network.HTTP.HandleStream
-- Copyright : (c) 2008- Sigbjorn Finne
-- License : BSD
--
-- Maintainer : Sigbjorn Finne <sigbjorn.finne@gmail.com>
-- Stability : experimental
-- Portability : non-portable (n... | Haskell | Network/HTTP/HandleStream.hs | astro/HTTPbis | bsd-3-clause | 10,063 | 245 | codeparrot/github-code |
4c629621249049aa7b6195d25375cd37da8207ee5b29d7708dda9f8ff89f5acd | /*
Copyright The MITRE Corporation 2009-2010. All rights reserved.
*/
package org.mitre.jcarafe.crf
import org.mitre.jcarafe.tokenizer._
import scala.collection.mutable.Stack
import scala.collection.mutable.HashSet
import scala.collection.mutable.HashMap
import scala.collection.mutable.ListBuffer
import org.mitre... | Scala | jcarafe-core/src/main/scala/org/mitre/jcarafe/crf/JsonSeqGen.scala | wellner/jcarafe | bsd-3-clause | 23,604 | 498 | codeparrot/github-code |
9e9155c72c1b0d6c7a02ee2ae0a3aabf6ad6233b609c0deb461b2c4845a38503 | // 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.
#include "android_webview/browser/aw_contents_client_bridge.h"
#include <memory>
#include <utility>
#include "android_webview/browser_jni_headers/Aw... | C++ | android_webview/browser/aw_contents_client_bridge.cc | endlessm/chromium-browser | bsd-3-clause | 23,450 | 594 | codeparrot/github-code |
1fd6674a3b218e8967c71b70427b6be843def8f1ac761eccd8ba5e185e76f8cf | <?php
namespace CL\ComposerInit\Prompt;
use GuzzleHttp\Client;
use CL\ComposerInit\GitConfig;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Helper\DialogHelper;
/**
* @author Ivan Kerin <ikerin@gmail.com>
* @copyright (c) 2014 Clippings Ltd.
* @license http://spdx.org/li... | PHP | src/Prompt/DescriptionPrompt.php | clippings/composer-init | bsd-3-clause | 1,819 | 91 | codeparrot/github-code |
0777f4debcb6c47717c65df470b93824f02c5dfbfd519b671118e609aa3461b9 | /*
* Copyright (C) 2010 - 2015 Leonid Kostrykin
*
* Chair of Medical Engineering (mediTEC)
* RWTH Aachen University
* Pauwelsstr. 20
* 52074 Aachen
* Germany
*
*/
#include <Carna/qt/ColorMapSpanPainter.h>
#include <Carna/qt/ColorMapEditor.h>
#include <Carna/qt/MultiSpanSliderTracker.h>
#include <QPainte... | C++ | src/qt/ColorMapSpanPainter.cpp | RWTHmediTEC/CarnaQt | bsd-3-clause | 1,214 | 51 | codeparrot/github-code |
81d56b4e59c5664fcdf554a95d921eaced8973d000354eaa494ec33ecf81a224 | //
// check_caxpy.c
// COBLAS
//
// Copyright (c) 2017 Rodney Lynn James. All rights reserved.
//
#include "cblas.h"
#include <complex.h>
#include <float.h>
#include <math.h>
#include <stdbool.h>
static int compare(int n,float complex *ccomp,float complex *ctrue,float complex *csize,float sfac)
{
int fail=0;
... | C | test/check_caxpy.c | rljames/coblas | bsd-3-clause | 4,010 | 95 | codeparrot/github-code |
60af110fc80535398d1fdeede3045e44488c697e66468091eeed6e25222bcb32 | #!/usr/bin/env python3
"""
C declarations, CPP macros, and C functions for f2py2e.
Only required declarations/macros/functions will be used.
Copyright 1999,2000 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the Num... | Python | numpy/f2py/cfuncs.py | mhvk/numpy | bsd-3-clause | 48,940 | 1,441 | codeparrot/github-code |
bc8aae1d4699764958d2b0eb12b9c7b2bd457ecb67af0b88b7f31ac196a63a1d | // 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.
#include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
#include <string>
#include "base/bind.h"
#include "base/files/file_pat... | C++ | chrome/browser/media_galleries/fileapi/media_file_system_backend.cc | mogoweb/chromium-crosswalk | bsd-3-clause | 7,055 | 193 | codeparrot/github-code |
21f4e973ab9090b24f792d5316b9cc10f3a25a774e6bd0a2c822c505b0242d65 | """
For internal use only.
"""
import re
from typing import Callable, Iterable, Type, TypeVar, cast
from prompt_toolkit.formatted_text import to_formatted_text
from prompt_toolkit.formatted_text.utils import fragment_list_to_text
from prompt_toolkit.mouse_events import MouseEvent, MouseEventType
__all__ = [
"has_... | Python | ptpython/utils.py | jonathanslenders/ptpython | bsd-3-clause | 5,634 | 199 | codeparrot/github-code |
d9217d4a64ac7e169ed74241411660809ea142e89262bbde3c41ef77531ecb18 | <?php
namespace backend\modules\inventory\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\inventory\models\Tank;
/**
* TankSearch represents the model behind the search form about `backend\modules\inventory\models\Tank`.
*/
class TankSearch extends Tank
{
/**
* @i... | PHP | backend/modules/inventory/models/TankSearch.php | metalmonster/wr_ox | bsd-3-clause | 1,705 | 72 | codeparrot/github-code |
18b40a454a8d158953cf9d33bb62ce2e79bca675a4cfa076ea40e269af47954a | // 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.
#include "extensions/browser/verified_contents.h"
#include <stddef.h>
#include "base/base64url.h"
#include "base/files/file_util.h"
#include "base/json/... | C++ | extensions/browser/verified_contents.cc | highweb-project/highweb-webcl-html5spec | bsd-3-clause | 11,573 | 329 | codeparrot/github-code |
f5e19b174f99abb36f651d7c621a6202ce3363c4af12c095382ce966fb39a394 | # 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.
'''A container for timeline-based events and traces and can handle importing
raw event data from different sources. This model closely resembles that in t... | Python | tools/telemetry/telemetry/core/timeline/model.py | ChromiumWebApps/chromium | bsd-3-clause | 7,997 | 241 | codeparrot/github-code |
8c3f0df0808b6ed522c980d2a9b4a958437aefac99db4a8e1d4bc6955d5c5295 | <?php
namespace richardfan\ckeditor;
use yii\helpers\ArrayHelper;
trait CKEditorTrait
{
/**
* @var string the toolbar preset. It can be any of the following:
*
* - basic: will load the configuration on presets/basic.php
* - full: will load the configuration on presets/full.php
* - standar... | PHP | src/CKEditorTrait.php | richardfan1126/yii2-ckeditor-widget | bsd-3-clause | 1,610 | 53 | codeparrot/github-code |
4192c89fc46ab4559a9a51d3cff4cf59b929e1a5d4076ba45295ca9468351ce5 | /*-
* Copyright (c) 1998 Mark Newton
* Copyright (c) 1995 Christos Zoulas
* 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 copyri... | C | sys/compat/svr4/svr4_sockio.c | dcui/FreeBSD-9.3_kernel | bsd-3-clause | 4,812 | 169 | codeparrot/github-code |
a9b415dfe43e32cace51692f5e7cac8815a3788ebdb754a8d2973a1561ea07d4 | // 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.
#ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
#define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
#include <map>
#inc... | C | chrome/browser/predictors/resource_prefetch_predictor.h | loopCM/chromium | bsd-3-clause | 13,156 | 313 | codeparrot/github-code |
d033ec9d2f74a087947ad2c8b6e860d66866e17cb403318330e89ae84a1926a3 | <?php
namespace app\module\Github\Api\Enterprise;
use app\module\Github\Api\AbstractApi;
class Stats extends AbstractApi
{
/**
* Returns the number of open and closed issues
*
* @return array array with totals of open and closed issues
*/
public function issues()
{
return $thi... | PHP | module/Github/Api/Enterprise/Stats.php | nivashchenko/Yii2_test | bsd-3-clause | 3,062 | 129 | codeparrot/github-code |
43e123533b7b20d2c1508df875ecbd27b8fd9926e9769e3763ba4d9f125c2ed6 | package com.naughtyzombie.calypso.maven.ui;
import com.naughtyzombie.calypso.maven.process.CalypsoProcess;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: Pram Attale
* Date: 07/12/12
* Time: 10:09
*/
public class CalypsoProcessCatalog {
private String modelEncoding = "UTF-8";
private... | Java | calypso-maven-plugin/src/main/java/com/naughtyzombie/calypso/maven/ui/CalypsoProcessCatalog.java | pram/CalypsoDevelopment | bsd-3-clause | 776 | 38 | codeparrot/github-code |
57ffd06abfc3185a545357e06473771efe0cda6aa7bfbde5cc3faff3803a98b6 | // 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 "media/video/capture/screen/screen_capturer.h"
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/Xdamage.h>
#include <X1... | C++ | media/video/capture/screen/screen_capturer_linux.cc | nacl-webkit/chrome_deps | bsd-3-clause | 21,191 | 617 | codeparrot/github-code |
6f181fd296108c5c799e0cc75b6b0d69c7d357fc4e0afdbf2a5082c63b530f3b | using System;
using System.Drawing;
using System.Windows.Forms;
using Shuttle.Core.Infrastructure;
namespace Shuttle.Esb.Management.Shell
{
public abstract class ManagementModulePresenter : IManagementModulePresenter
{
public TaskQueue TaskQueue { get; internal set; }
public IManagementConfiguration ... | C# | Shuttle.Esb.Management.Shell/ManagementModulePresenter.cs | Shuttle/shuttle-management | bsd-3-clause | 1,189 | 49 | codeparrot/github-code |
5e844e0ebb1f36b879cd42a99e7beea125d962d0edef5045beed2378ed12c383 | /*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This softwa... | C | dev/cmake-3.5.1/Source/cmMathCommand.h | hlzz/dotfiles | bsd-3-clause | 1,500 | 55 | codeparrot/github-code |
b143282fc60b0c555234dda51531593c708bcdd1399e4d4a728d49f8419e3811 | #!/usr/bin/env python
from __future__ import print_function
import errno
import json
import os
import re
import shutil
import string
import sys
import requests
CONFIG_FILE = 'scripts.conf'
EXTENSIONS = ['avi', 'm4v', 'mkv', 'mp4']
SUB_EXTENSIONS = ['idx', 'sub', 'srt']
PATTERN = re.compile('^(.*)(\d{4})\.(.*)', re.I... | Python | sabnzbd/scripts/movie-mover.py | h4ck3rm1k3/states-2 | bsd-3-clause | 5,436 | 196 | codeparrot/github-code |
f833c3cfc2ab9c03a27f80e5175c3c58ba3cd8c80e5d6cd77c2e60a15f140ca6 |
/*
* The olsr.org Optimized Link-State Routing daemon(olsrd)
* Copyright (c) 2004-2009, the olsr.org team - see HISTORY file
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redis... | C | src/olsr_cfg_gen.c | ralisi/olsrd_cl_roam | bsd-3-clause | 12,612 | 284 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.