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 |
|---|---|---|---|---|---|---|---|---|
d7df17a5f5d0a38756f8b50d7e3f5b3d2f02d0db8897e81d14d5c7a73a38ea3b | // Copyright (c) 2021 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 BASE_ALLOCATOR_PARTITION_ALLOCATOR_RESERVATION_OFFSET_TABLE_H_
#define BASE_ALLOCATOR_PARTITION_ALLOCATOR_RESERVATION_OFFSET_TABLE_H_
#includ... | C | chromium/base/allocator/partition_allocator/reservation_offset_table.h | ric2b/Vivaldi-browser | bsd-3-clause | 10,872 | 255 | codeparrot/github-code |
eda5865f6defbb1bafa88837585cfae52d8a045da980794cde5d87c48aad5faf | package net.jloop.rejoice;
import net.jloop.rejoice.types.Symbol;
import net.jloop.rejoice.types.Type;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class MacroHelper {
public static List<Value> collect(Env env, Iterator<Value> input, Symbol terminator) {
List<Valu... | Java | src/main/java/net/jloop/rejoice/MacroHelper.java | jeremyheiler/rejoice | bsd-3-clause | 2,365 | 63 | codeparrot/github-code |
8c651b13d0779f42ee549105f6b8d4eee003342743da1d83912c383a31bb0a6f | import React from "react";
import { Text, View } from "react-native";
import { defaultProps, propTypes } from "./caption-prop-types";
import styles from "./styles";
const renderCredits = (style, credits) => {
if (!credits || credits === "") {
return null;
}
return (
<Text style={[styles.text, styles.cred... | JavaScript | packages/caption/src/caption.js | newsuk/times-components | bsd-3-clause | 967 | 40 | codeparrot/github-code |
cfd3b8e4dc16a2c13830be82bdfd787001a4e2868df33d950787ced346d86ac2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Document Info and Metadata - ... | HTML | documentation/manual/core/zh/zend.pdf.info.html | wukchung/Home-development | bsd-3-clause | 23,718 | 333 | codeparrot/github-code |
c30dcf76b646aeb151b7d5086effe7219ec85b440e19bc26d9291366a53231d5 | /**
* Copyright (c) 2019, Łukasz Marcin Podkalicki <lpodkalicki@gmail.com>
* ESP8266/005
* Blinky example using pure ESP8266 Non-OS SDK.
*/
#include "ets_sys.h"
#include "osapi.h"
#include "gpio.h"
#include "os_type.h"
#include "user_config.h"
#define LED_PIN (2)
static volatile os_timer_t blinky_timer;
static ... | C | esp8266/005_nonos_sdk_blinky/user/main.c | lpodkalicki/blog | bsd-3-clause | 1,065 | 46 | codeparrot/github-code |
11b15827f2111db49430194663435dce1c4b3b1041a75a4bb520880de456c229 | // 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.
// IPC messages for resource loading.
//
// NOTE: All messages must send an |int request_id| as their first parameter.
// Multiply-included message f... | C | content/common/resource_messages.h | Bysmyyr/chromium-crosswalk | bsd-3-clause | 16,094 | 413 | codeparrot/github-code |
416b43e8eaf8f2f299048c5f1b35652109e11cb839d3690743e228bf452807da | // 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/ui/simple_message_box.h"
#include <utility>
#include "base/bind.h"
#include "base/callback.h"
#include "base/compiler_speci... | C++ | chrome/browser/ui/views/message_box_dialog.cc | endlessm/chromium-browser | bsd-3-clause | 12,172 | 324 | codeparrot/github-code |
984a44f1920c6678e5f410b9b9adeddf02095b80a6370ddc203a6ebcafbff51e | <?php
session_start();
// ---------------- PRE DEFINED VARIABLES ---------------- //
if ($_SESSION['user_name']=='') {
$user_name_session = $_POST['id'];
echo "no session set";
} else {
$user_name_session = $_SESSION['user_name'];
}
//print_r($user_name_session);
include_once('/kunden/homepages/0/d643120834/htd... | PHP | submit/views/db/campaign_info.php | mayoalexander/fl-two | bsd-3-clause | 31,569 | 610 | codeparrot/github-code |
f5a9e35322298e1f83dc39a557a2deda7fd992c1b7e69f2dbd8a19601adec0a6 | /*
* Copyright Matt Palmer 2011-2013, All rights reserved.
*
* This code is licensed under a standard 3-clause BSD license:
*
* 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 m... | Java | src/net/byteseek/searcher/sequence/sunday/SundayQuickSearcher.java | uzen/byteseek | bsd-3-clause | 14,817 | 359 | codeparrot/github-code |
2a98b54c63fa2acf8eee4f2c48a10d716714d8479daa74c6791c057c0bfd6734 | #! /usr/bin/perl
#
# configure.pl (bootstrap cgixx)
# Use on *nix platforms.
#
# cgixx CGI C++ Class Library
# Copyright (C) 2002-2004 Isaac W. Foraker (isaac at noscience dot net)
# All Rights Reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that t... | Perl | configure.pl | codemer/cgixx | bsd-3-clause | 5,698 | 228 | codeparrot/github-code |
bf897b932dd1ab9d2f36d2a23a73c01b46e77becc7892c234a165fcef1f30282 | #!/usr/bin/env python
# -*- mode: python; sh-basic-offset: 4; indent-tabs-mode: nil; coding: utf-8 -*-
# vim: tabstop=4 softtabstop=4 expandtab shiftwidth=4 fileencoding=utf-8
#
# Shell command
# Copyright 2010, Jeremy Grosser <synack@digg.com>
import argparse
import os
import sys
import clusto
from clusto import scr... | Python | src/clusto/commands/console.py | sanyaade-mobiledev/clusto | bsd-3-clause | 2,107 | 70 | codeparrot/github-code |
df6f8eb8e72402c4d4d8e85651f69696249eea0a8d9cd40c864f364b09e7deff | package ga;
import engine.*;
import java.util.*;
public class GAPopulation {
/* Evolutionary parameters: */
public int size; // size of the population
public int ngens; // total number of generations
public int currgen; // current generation
/* Crossover parameters */
int tournamentK; // size of tournament
... | Java | code/ga/GAPopulation.java | caranha/MTGA-old | bsd-3-clause | 6,710 | 299 | codeparrot/github-code |
ea01edde8c692277622e265b06f233e2c3e9fe93e6a281ddbfa032dfbbaaf46a | //=====================================================================//
/*! @file
@brief R8C LCD メイン @n
for ST7567 SPI (128 x 32) @n
LCD: Aitendo M-G0812P7567
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/h... | C++ | LCD_DOT_sample/main.cpp | hirakuni45/R8C | bsd-3-clause | 4,019 | 221 | codeparrot/github-code |
72aa83554502ce71a13628ee86ec6e34d639308876c9327b1fc757f5bdaa5316 | {-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
module Ircbrowse.View.Template where
import Ircbrowse.View
import Ircbrowse.Types.Import
import qualified Text.Blaze.Html5 as H
import Data.Text (Text)
template :: AttributeValue -> Text -> Html -> Html -> Html
te... | Haskell | src/Ircbrowse/View/Template.hs | chrisdone/ircbrowse | bsd-3-clause | 3,220 | 79 | codeparrot/github-code |
31228096ef112c4979848cbe32bbac782c317cd3c90f80d3b1cdbef2a4d652aa |
<!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>Hodograph — MetPy 0.8</title>
... | HTML | v0.8/api/generated/metpy.plots.Hodograph.html | metpy/MetPy | bsd-3-clause | 26,313 | 521 | codeparrot/github-code |
238c732e307645489c14d3c53d84fb0219fc587bb1983254aade6cee5a9d17de | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "book".
*
* @property integer $id
* @property string $title
* @property string $published_date
*
* @property BookAuthor[] $bookAuthors
* @property BookGenre[] $bookGenres
*/
class Book extends \yii\db\ActiveRecord
{
/**
* ... | PHP | models/Book.php | uaman89/library | bsd-3-clause | 1,418 | 76 | codeparrot/github-code |
4481268224718a154268ec01111195b1513936bdadd97c4f60a54c42c8778dd6 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" conte... | HTML | v0.12.0/release/version0.11.1.html | statsmodels/statsmodels.github.io | bsd-3-clause | 21,435 | 547 | codeparrot/github-code |
3694947577c680b39ab096bc1b57be77b4ed4e2fa099a4e1818cdd031799131e | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "content".
*
* @property integer $id
* @property string $title
* @property integer $moderation
* @property integer $listsql_id
* @property integer $parent_id
* @property integer $grade_id
* @property string $comment_TutorAboutPupil... | PHP | backend/models/160501/Content.php | halva202/halva202.by | bsd-3-clause | 4,464 | 92 | codeparrot/github-code |
b573458297c5f11b05ad31ddceca72f0f87641f8a44432f1d50b8a9da5f2876a | module Scheme.DataType (
module Scheme.DataType.Misc,
EvalError, ScmError, TryError,
Expr(..),
ScmCode(..), ScmFile,
Var(..),
Return(..), ReturnE,
Name, AFunc, WAFunc, RFunc, Proc, Synt,
Scm, runScm,
ScmEnv, ScmStates, ScmRef,
MetaInfo(..), Config(..), setConfig, setMSP,
... | Haskell | src/Scheme/DataType.hs | ocean0yohsuke/Scheme | bsd-3-clause | 9,161 | 277 | codeparrot/github-code |
d98387604ebaae7a3a1e7622f0ccdc2c69750c27c10193373edbe87b7821cba4 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE194_Unexpected_Sign_Extension__fgets_malloc_03.c
Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml
Template File: sources-sink-03.tmpl.c
*/
/*
* @description
* CWE: 194 Unexpected Sign Extension
* BadSource: fgets Read data from the console usi... | C | xcc/test/juliet/testcases/CWE194_Unexpected_Sign_Extension/s01/CWE194_Unexpected_Sign_Extension__fgets_malloc_03.c | JianpingZeng/xcc | bsd-3-clause | 4,693 | 155 | codeparrot/github-code |
b4821f9a5880df35bf50142491acc16a0c8a6c17c53a88aef5d1c8efedd007b8 | // 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 "ash/system/settings/tray_settings.h"
#include "ash/shell.h"
#include "ash/system/power/power_status_view.h"
#include "ash/system/tray/syste... | C++ | ash/system/settings/tray_settings.cc | leighpauls/k2cro4 | bsd-3-clause | 5,055 | 165 | codeparrot/github-code |
4856bf8bc9e5cb976135e5822b5a2d8e9125c4f3e744c846b795fba84c5c085a | var Turtle = function () {
this.d = 0;
this.x = 0;
this.y = 0;
this.rounding = false;
this.invert = false;
}
Turtle.prototype.setX = function (val) {
this.x = val;
return this;
}
Turtle.prototype.setY = function (val) {
this.y = val;
return this;
}
Turtle.prototype.setDegree = functi... | JavaScript | src/turtle.js | gief/turtlejs | bsd-3-clause | 3,007 | 121 | codeparrot/github-code |
ac54211b1b73ed44a79a62c63b0ea2fed8b111f0f654cd908e672f4a654c279f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Code Coverage for /var/www/html/Album/vendor/zendframework/zendframework/library/Zend/Loader/StandardAutoloader.php</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="styles... | HTML | module/AlbumRest/test/report/vendor_zendframework_zendframework_library_Zend_Loader_StandardAutoloader.php.html | luizbrandao/ZF2-CRUD | bsd-3-clause | 72,360 | 668 | codeparrot/github-code |
57c7c8d6d1be02a380c289fd12f051188d09ebda2746a1354e79a77758fb60c4 | // 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_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_
#define CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_
#include <memory>
#include "base/c... | C | chrome/renderer/chrome_render_thread_observer.h | nwjs/chromium.src | bsd-3-clause | 5,862 | 157 | codeparrot/github-code |
93a3e3c857654234371f309c80ce6b255b1c788245daac3fecb96030a691e0e7 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_82_bad.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml
Template File: sources-sink-82_bad.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSou... | C++ | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_82_bad.cpp | JianpingZeng/xcc | bsd-3-clause | 1,401 | 45 | codeparrot/github-code |
8db636f97787e370f9b7b5f68219eb74045b117f1d9cff66083fbbdf8fac4cef | # -*- coding: utf-8 -*-
"""
Display a fortune-telling, swimming fish.
Wanda has no use what-so-ever. It only takes up disk space and compilation time,
and if loaded, it also takes up precious bar space, memory, and cpu cycles.
Anybody found using it should be promptly sent for a psychiatric evaluation.
Configuration ... | Python | py3status/modules/wanda_the_fish.py | Andrwe/py3status | bsd-3-clause | 5,568 | 187 | codeparrot/github-code |
6cf2ab66aaddf8c485aa32aea7a8c2d7cccada566daee6ecf3fe73306aea1ca7 | #!/bin/bash
#
# Run a shell command on all slave hosts.
#
# Environment Variables
#
# HADOOP_SLAVES File naming remote hosts.
# Default is ${HADOOP_CONF_DIR}/slaves.
# HADOOP_CONF_DIR Alternate conf dir. Default is ${HADOOP_HOME}/conf.
# HADOOP_SLAVE_SLEEP Seconds to sleep between spawning remote command... | Shell | bin/slaves.sh | wangxin39/yuqing | bsd-3-clause | 1,232 | 53 | codeparrot/github-code |
21439314e2b731e97f3421430816e7e2ff2a0e5d36abd166346739032ef24cad | /**
* (c) 2017 TIBCO Software Inc. All rights reserved.
*
* Except as specified below, this software is licensed pursuant to the Eclipse Public License v. 1.0.
* The details can be found in the file LICENSE.
*
* The following proprietary files are included as a convenience, and may not be used except pursuant
... | Java | src/com/tibco/ps/deploytool/services/ServerManagerImpl.java | cisco/PDTool | bsd-3-clause | 5,374 | 139 | codeparrot/github-code |
dae9c65aa7ca433e971f47396874b410e89cfacffee2a34e2d24be6e708d9b67 | /*-
* Copyright (c) 2001 Atsushi Onoe
* Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
* 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 ret... | C | sys/net80211/ieee80211_ioctl.c | dcui/FreeBSD-9.3_kernel | bsd-3-clause | 97,910 | 3,396 | codeparrot/github-code |
c820af5312f4281ad2fff16a452b73a4316b4f40920875c5db97529d24c6c4f6 | from __future__ import print_function
import re
import logging
logging.basicConfig(level=logging.INFO)
class Executor(object):
def __init__(self, op_map):
processed = {}
for pattern, f in op_map.iteritems():
s = self._build_pattern_groups(pattern.lower())
processed[re.com... | Python | chip8/operations.py | martindimondo/PyC8 | bsd-3-clause | 6,673 | 240 | codeparrot/github-code |
9e34ffb7f28afba2f56a6ca431a83d1ff10996560922468d5565d89425176604 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.tsa.vector_ar.var_model.VARProcess.acorr — statsmodels v0.10.0 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" hre... | HTML | v0.10.0/generated/statsmodels.tsa.vector_ar.var_model.VARProcess.acorr.html | statsmodels/statsmodels.github.io | bsd-3-clause | 7,932 | 173 | codeparrot/github-code |
820414043b641877dec1b5b42c1665cd4fbb4b3ebefe02f83d49db498068e3f7 | /*
* Created on Oct 18, 2004
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.tolweb.tapestry;
import java.util.Collection;
import org.apache.tapestry.BaseComponent;
import org.apache.tapestry.IRequestCycle;
import org.tolweb... | Java | OnlineContributors/src/org/tolweb/tapestry/TitleIllustrations.java | tolweb/tolweb-app | bsd-3-clause | 2,683 | 80 | codeparrot/github-code |
a6689fa36c93e8604585e66a36b10f6af7b06e13550646949e895f76cb5d2895 | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_ParticleState.cpp
//! \author Alex Robinson
//! \brief Basic particle state class definition.
//!
//---------------------------------------------------------------------------//
// FRENSIE Includes
#include "Mon... | C++ | packages/monte_carlo/core/src/MonteCarlo_ParticleState.cpp | lkersting/SCR-2123 | bsd-3-clause | 10,274 | 369 | codeparrot/github-code |
79134bdff3b98b5fad903ad6f2b6bfd98bcdc5613411abd494bf65f38bb32cea | // 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 "chrome/browser/chromeos/set_time_dialog.h"
#include "base/metrics/user_metrics.h"
#include "base/strings/string16.h"
#include "chrome/common/ur... | C++ | chrome/browser/chromeos/set_time_dialog.cc | endlessm/chromium-browser | bsd-3-clause | 1,543 | 51 | codeparrot/github-code |
3274ab372ec21a53290e2a656380ecde07bb819248083e8d2ccb99a1df794a97 | /*
* GaussianKernel.java
*
* Created on September 25, 2004, 4:52 PM
*/
package jpview.graphics;
/**
* This class creates a kernel for use by an AffineTransformOp
*
* @author clyon
*/
public class GaussianKernel {
private int radius = 5;
private float sigma = 1;
private float[] kernel... | Java | synergynet3-museum-parent/synergynet3-museum-table/src/main/java/jpview/graphics/GaussianKernel.java | synergynet/synergynet3 | bsd-3-clause | 2,024 | 98 | codeparrot/github-code |
f6e3a86eb0032322e551704f20fbd9a96e4323da0baad92f9a2436462820aec8 | <?php
/**
* This file is part of the proophsoftware/event-machine.
* (c) 2017-2019 prooph software GmbH <contact@prooph.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ProophExample\Functiona... | PHP | examples/FunctionalFlavour/ExampleFunctionalPort.php | proophsoftware/event-machine | bsd-3-clause | 2,788 | 89 | codeparrot/github-code |
75833cf60169d3944937b11dffd4d28e982d7c81dbbadcb05d23ee263efe9388 | // 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 ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_
#define ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_
#include "ash/ash_expor... | C | ash/common/material_design/material_design_controller.h | danakj/chromium | bsd-3-clause | 3,032 | 93 | codeparrot/github-code |
c58116ed5a729bc645f6a7edfd9532eb388776586a07df1212fa97c95bd6dd3c | // 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 CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_
#include ... | C | chrome/browser/chromeos/login/users/avatar/user_image_loader.h | mou4e/zirconium | bsd-3-clause | 4,006 | 115 | codeparrot/github-code |
adde8f39fa57337a9957130aa38c7e1765df55d3ab7809a6d2a1903f93790c76 | //===-- MainLoopBase.h ------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | third_party/llvm/lldb/include/lldb/Host/MainLoopBase.h | endlessm/chromium-browser | bsd-3-clause | 2,859 | 88 | codeparrot/github-code |
6a76c9a99fc2c72e74738c78047223b928fe270baa58d99f785e596bfc87aa27 | // 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.
package org.chromium.net.impl;
import android.content.Context;
import android.os.Build;
import android.os.ConditionVariable;
import android.os.Handler;
i... | Java | components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java | danakj/chromium | bsd-3-clause | 21,435 | 551 | codeparrot/github-code |
fc04dde646512037623d92c98d1d2b22c89892a40da22fdf7bea1443d53d570d | /*
* Copyright (C) 2007-2015 Frank Mertens.
*
* Use of this source is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#ifndef FLUXMETA_METAPROTOCOL_H
#define FLUXMETA_METAPROTOCOL_H
#include <flux/meta/MetaObject>
namespace flux {
namespace meta {
/** \brief Duck-typed object pro... | C | meta/src/MetaProtocol.h | frankencode/fluxkit | bsd-3-clause | 2,330 | 95 | codeparrot/github-code |
8b358df20f9a8ab4bad417c6d397760a47c13111e1a62b218b0467aa3dd42373 | module Carto
module Configuration
def db_config
@@db_config ||= YAML.load(File.read(db_config_file)).freeze
end
def app_config
@@app_config ||= YAML.load_file(app_config_file).freeze
end
def frontend_version
@@frontend_version ||= JSON::parse(File.read(Rails.root.join("package.... | Ruby | lib/carto/configuration.rb | splashblot/dronedb | bsd-3-clause | 3,138 | 118 | codeparrot/github-code |
1279a26baa0b9fe6873123ed630c34b4e6448b9c83a8145f9cca8ad238323401 | /*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/storage/index/RemoveValueLoggable.java | NCIP/cadsr-cgmdr-nci-uk | bsd-3-clause | 3,088 | 110 | codeparrot/github-code |
1a9e81f4449f449d1a0699c8d4f98e86d5441a220a7caa50192688de89166432 | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@generated from sparse-iter/control/magma_zutil_sparse.cpp, normal z -> s, Tue Aug 30 09:38:47 2016
@author Hartwig Anzt
Utilitie... | C++ | sparse-iter/control/magma_sutil_sparse.cpp | maxhutch/magma | bsd-3-clause | 21,167 | 505 | codeparrot/github-code |
9bd460ec1a49c20277e8026038c5556b2c556eafeda596c68d2e1827abb74335 | #!/usr/bin/env perl
use strict;
use warnings;
use LWP::UserAgent;
use JSON::PP;
my $base = "http://gameai.skullspace.ca/api/";
sub failure {
print("!! " . shift(@_) . "\n");
exit(1);
}
sub info {
print("** " . shift(@_) . "\n");
}
sub parse_card {
my $abbr = shift(@_);
my ... | Perl | sdk/perl/GameAI.pl | mogigoma/gameai-2014-09 | bsd-3-clause | 8,313 | 261 | codeparrot/github-code |
c8e9485a869fe33d5acd9fd1663bfd821e8c81f07f42a52196e3e18ea0bc2bae |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.robust.robust_linear_model.RLMResults.pvalues — statsmodels v0.10.2 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet... | HTML | v0.10.2/generated/statsmodels.robust.robust_linear_model.RLMResults.pvalues.html | statsmodels/statsmodels.github.io | bsd-3-clause | 7,701 | 166 | codeparrot/github-code |
9a6725bf8c8859c5dd99b13ea2fdc39289a44bd41d7c0da7225e33a3f5384512 | // $Id$
//
// Copyright (C) 2007-2013 Greg Landrum
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <GraphMol/RDKitBase.h>
#inclu... | C++ | Code/GraphMol/Fingerprints/AtomPairs.cpp | adalke/rdkit | bsd-3-clause | 21,277 | 600 | codeparrot/github-code |
18ee2706c47d7ae9af0ad3e9cb833416d3dec965f32177b04901eaff3c5243da | /*
----------------------
BeDC License
----------------------
Copyright 2002, The BeDC 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. Redistributions of source code must retain the above copy... | C | source/DCStrings.h | HaikuArchives/BeDC | bsd-3-clause | 4,105 | 169 | codeparrot/github-code |
987448d90af4ca4d2b8956caebeb65ea058cf824b9b27a2aa1eceff143e87255 | <?php
namespace UForm\Form\Element;
use UForm\Filtering\FilterChain;
use UForm\Form\Element;
/**
* Element that intends to contain other elements.
* It only aims to be a common parent for Group and Collection
*
* In some ways it is opposed to the Primary element that cant contain other elements
*
* @see UForm\... | PHP | src/UForm/Form/Element/Container.php | gsouf/UForm | bsd-3-clause | 4,172 | 141 | codeparrot/github-code |
c937bed21754df73d48668b6adc76d8592cc882216def3f21f48fbf801dd36a9 | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 03 10:16:39 2013
@author: Grahesh
"""
import pandas
from qstkutil import DataAccess as da
import numpy as np
import math
import copy
import qstkutil.qsdateutil as du
import datetime as dt
import qstkutil.DataAccess as da
import qstkutil.tsutil as tsu
imp... | Python | Examples/Event Analysis/Half-Yearly End/Half_Year_End_Analysis.py | grahesh/Stock-Market-Event-Analysis | bsd-3-clause | 4,522 | 135 | codeparrot/github-code |
c06f6cb020991d09edf4261f8848101b92ec438c6f71fbd0b7f1f7c0c4cc2781 | <?php
include_once 'dynamic_db_connection.php';
/**
* This is the model class for table "THEME_MANAGEMENT".
*
* The followings are the available columns in table 'THEME_MANAGEMENT':
* @property string $PID
* @property string $THEME
*/
class Theme_Management extends CActiveRecord
{
/**
* Returns the static mode... | PHP | protected/models/Theme_Management.php | Rathilesh/FMS_V1 | bsd-3-clause | 2,079 | 85 | codeparrot/github-code |
d3ee66c525bc7afd2c390606d1a8e631788dede63f83041eaca0adc16b4f3921 | # Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command wa... | Makefile | docs/Makefile | jonathonw/pypush2 | bsd-3-clause | 7,669 | 217 | codeparrot/github-code |
c68ffe0e11c441c2e4c89eec275e13284c62a408e0665ef8c4b4888de7207429 | /*
* Copyright (c) 2012 The Native Client 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 "native_client/src/include/portability_string.h"
#include "native_client/src/include/nacl_macros.h"
#include "native_client/src/i... | C | native_client/src/trusted/service_runtime/arch/x86_64/sel_ldr_x86_64.c | leighpauls/k2cro4 | bsd-3-clause | 5,566 | 165 | codeparrot/github-code |
ba47bb4183b61264a5b6989a8c88319daecce5bf7b6f99f734c1c0b85e94dfd5 | // Copyright 2015 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 "platform/fonts/shaping/RunSegmenter.h"
#include "platform/fonts/ScriptRunIterator.h"
#include "platform/fonts/SmallCapsIterator.h"
#include "pl... | C++ | third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp | was4444/chromium.src | bsd-3-clause | 4,699 | 118 | codeparrot/github-code |
1efd1d0bb95942aca744e6303bfe52aabb8263f4f584b0b64986cc9b816b6fda | {% macro vital(addon, type) %}
<div class="vital">
{% if type in ('updated', 'created') %}
<span class="updated">
{% if type == 'updated' %}
{# L10n: {0} is a date. #}
{{ _('Updated {0}')|f(addon.last_updated|datetime) }}
{% else %}
{# L10n: {0} is a date. #}
... | HTML | apps/addons/templates/addons/macros.html | jinankjain/zamboni | bsd-3-clause | 2,302 | 75 | codeparrot/github-code |
d4484ec4beb213bf0484761a0285e2e535e66d32af19e65b86657e88dc52f40f | require_dependency 'spree/calculator'
module Spree
class PaymentCalculator::PerItem < Calculator
preference :amount, :decimal, :default => 0
attr_accessible :preferred_amount
def self.description
I18n.t(:flat_rate_per_item)
end
def compute(object=nil)
return 0 if object.nil?
... | Ruby | app/model/spree/payment_calculator/per_item.rb | damianogiacomello/spree_payment_calculator | bsd-3-clause | 1,325 | 40 | codeparrot/github-code |
617696846012b4dbe35301bb6ab6562925f82422b9f529defb98cf98b3162eef |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="la... | HTML | v0.11.1/generated/statsmodels.sandbox.regression.gmm.IVGMMResults.summary.html | statsmodels/statsmodels.github.io | bsd-3-clause | 20,782 | 451 | codeparrot/github-code |
f23b71b69c7758ef3593f12b4eb4079f483f3356919cba8bb2015d2801e19f06 | import {InputWidget, InputWidgetView} from "./input_widget"
import {input} from "core/dom"
import * as p from "core/properties"
import {bk_input} from "styles/widgets/inputs"
export class TextInputView extends InputWidgetView {
model: TextInput
protected input_el: HTMLInputElement
connect_signals(): void {
... | TypeScript | bokehjs/src/lib/models/widgets/text_input.ts | timsnyder/bokeh | bsd-3-clause | 1,868 | 70 | codeparrot/github-code |
62d08c3143c8946fbc4907ce405778b454a1c9aa2e28aae7806d16f471887c7a | <?php
include_once "../../includes/easyparliament/init.php";
if (($date = get_http_var('d')) && preg_match('#^\d\d\d\d-\d\d-\d\d$#', $date)) {
$this_page = 'hansard_date';
$PAGE->set_hansard_headings(array('date'=>$date));
$URL = new URL($this_page);
$db = new ParlDB;
$q = $db->query("SELECT MIN(hdate) AS hdate ... | PHP | www/docs/hansard/index.php | palfrey/twfy | bsd-3-clause | 2,395 | 76 | codeparrot/github-code |
da67e10e08107cedee7b77d32ef1aa0c5f9e16c5b5dce2def5cd994c26eaa961 | /*
* Copyright 2019 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/dawn/GrDawnBuffer.h"
#include "src/gpu/dawn/GrDawnStagingBuffer.h"
#include "src/gpu/dawn/GrDawnGpu.h"
namespace {
wgpu::BufferUsage GrGpuBufferTypeToD... | C++ | third_party/skia/src/gpu/dawn/GrDawnBuffer.cpp | endlessm/chromium-browser | bsd-3-clause | 2,347 | 77 | codeparrot/github-code |
2bb4034b8cbb3b3ae45147c260190254f500ada6633fbff472f03718e3cf46fc | <?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... | PHP | library/Doctrine/ORM/Mapping/MappingException.php | notmessenger/ZF-REST-API | bsd-3-clause | 8,678 | 230 | codeparrot/github-code |
c782e9a1c7d9eb47667a6ae382b1851851077bb49b5521698b6e466e438efad1 | /*
* Copyright (c) 2016, Salesforce.com, 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 list of c... | Java | ArgusCore/src/main/java/com/salesforce/dva/argus/service/metric/transform/MetricUnionTransform.java | rmelick/Argus | bsd-3-clause | 7,287 | 188 | codeparrot/github-code |
e6b2d1af3e49d2ca5989f01227d0829f20edb33346c828678924b847076dd2e1 | // 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 "net/url_request/url_fetcher_core.h"
#include <stdint.h>
#include "base/bind.h"
#include "base/logging.h"
#include "base/metrics/histogram.... | C++ | net/url_request/url_fetcher_core.cc | ltilve/chromium | bsd-3-clause | 30,529 | 924 | codeparrot/github-code |
1096733eaa1ed41643ea7bed447f1ef9c87ee80bb076c49aa37ae0638968e5ee | <?php
class SortWeightRegistry {
public static $override_default_sort = true;
public static $relations = array();
public static $default_sorts = array(); // original default_sort
public static $add_weight_columns = array();
public static $direction = 'ASC'; // ASC || DESC
public static $module_pat... | PHP | code/SortWeightRegistry.php | briceburg/silverstripe-sortweight | bsd-3-clause | 2,131 | 68 | codeparrot/github-code |
c5c3c3b99613c2aa133d5400c09d951f952a5d86799a049009e433b768fef9eb | // Copyright 2018 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 UI_GFX_MOJOM_RRECT_F_MOJOM_TRAITS_H_
#define UI_GFX_MOJOM_RRECT_F_MOJOM_TRAITS_H_
#include "ui/gfx/geometry/mojom/geometry_mojom_traits.h"
#inclu... | C | ui/gfx/mojom/rrect_f_mojom_traits.h | endlessm/chromium-browser | bsd-3-clause | 3,912 | 122 | codeparrot/github-code |
c9e2caedc57b5d34fb0112804b5e34ec7db1e9a4bf365ec46f3e5c26e006d94e | // 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.
#include "components/password_manager/core/browser/sql_table_builder.h"
#include <algorithm>
#include <set>
#include <utility>
#include "base/numerics/s... | C++ | components/password_manager/core/browser/sql_table_builder.cc | endlessm/chromium-browser | bsd-3-clause | 21,095 | 535 | codeparrot/github-code |
6b756c1cf5ea398243cb736a3c5da6ce16dce1c3132d695fa01e43d65a3a385a | # Copyright (c) 2017 David Sorokin <david.sorokin@gmail.com>
#
# Licensed under BSD3. See the LICENSE.txt file in the root of this distribution.
from simulation.aivika.modeler.model import *
from simulation.aivika.modeler.port import *
from simulation.aivika.modeler.stream import *
from simulation.aivika.modeler.data_... | Python | simulation/aivika/modeler/stream_random.py | dsorokin/aivika-modeler | bsd-3-clause | 7,405 | 157 | codeparrot/github-code |
da75b05d6b958bdfecd26df5c3a2081caac995cd87c25aa6a114fa04021501e6 | # apis_v1/documentation_source/voter_star_on_save_doc.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
def voter_star_on_save_doc_template_values(url_root):
"""
Show documentation about voterStarOnSave
"""
required_query_parameter_list = [
{
'name': 'api_key... | Python | apis_v1/documentation_source/voter_star_on_save_doc.py | wevote/WebAppPublic | bsd-3-clause | 4,125 | 98 | codeparrot/github-code |
24523178fcb6bf25f354819c9e8c2532dc7563404353cc122d677e9a3616531f | define(['../Property', '../Model', 'dojo/_base/declare', 'json-schema/lib/validate'],
function (Property, Model, declare, jsonSchemaValidator) {
// module:
// dstore/extensions/JsonSchema
// summary:
// This module generates a dstore schema from a JSON Schema to enabled validation of objects
// and property c... | JavaScript | bower_components/dstore/extensions/jsonSchema.js | ibm-js/angular-delite-example | bsd-3-clause | 1,633 | 49 | codeparrot/github-code |
7d4ea4840dbea74fa25288fc30843ce4c071b20facbacc884ba2fc749a647614 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... | PHP | module/Competitions/Module.php | rsmats13/UMBDT | bsd-3-clause | 1,135 | 41 | codeparrot/github-code |
04bea9361c9d5b4f80fe93b4ac4de444abff7d24946bd8b66d09c41fe1d59564 | #include "stdafx.h"
#include "CGGuildApply.h"
BOOL CGGuildApply::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_GuildNameSize), sizeof(BYTE) );
if(m_GuildNameSize<MAX_GUILD_NAME_SIZE)
{
iStream.Read( (CHAR*)(m_GuildName), m_GuildNameSize );
}
iStream.Read(... | C++ | server/Common/Packets/CGGuildApply.cpp | viticm/web-pap | bsd-3-clause | 1,209 | 58 | codeparrot/github-code |
269840640048624f9d4765a358bdedc721603151d49e6069957ab4c3c9e7e480 | <?php namespace Laravella\Ravel\Facades;
Class Facade
{
protected static $resolvedInstance;
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
throw new \RuntimeException("Facade does not implement getFacadeAccessor method.");
}
/*... | PHP | src/Laravella/Ravel/Facades/Facade.php | laravella/ravel | bsd-3-clause | 1,183 | 61 | codeparrot/github-code |
6d8e038f7e3f023b89be16c48e82e2eda0053f7b1721998abc68daffd7d99d8a | import Ember from 'ember';
import ajax from 'ic-ajax';
import config from '../config/environment';
import SlydApi from '../utils/slyd-api';
import Timer from '../utils/timer';
import ApplicationUtils from '../mixins/application-utils';
var UUID = Ember.Object.extend(ApplicationUtils, {});
export function initialize(c... | JavaScript | slyd/app/initializers/register-api.js | nju520/portia | bsd-3-clause | 2,117 | 47 | codeparrot/github-code |
5894ffbc37850116372683699cea9059709917462dfbe9ac79d6b202d8a77a05 | # License: BSD 3 clause <https://opensource.org/licenses/BSD-3-Clause>
# Copyright (c) 2016, Fabricio Vargas Matos <fabriciovargasmatos@gmail.com>
# All rights reserved.
''''
Tune the 3 most promissing algorithms and compare them
'''
# Load libraries
import os
import time
import pandas
import numpy
import matplotlib.... | Python | lib/eda4.py | FabricioMatos/ifes-dropout-machine-learning | bsd-3-clause | 9,696 | 264 | codeparrot/github-code |
7a370f653a061418765374fc15cdccc7cd9a5d52667f0ae826d9a4e3622b668a | import numpy as np
from scipy.linalg import norm
from .base import AppearanceLucasKanade
class SimultaneousForwardAdditive(AppearanceLucasKanade):
@property
def algorithm(self):
return 'Simultaneous-FA'
def _fit(self, lk_fitting, max_iters=20, project=True):
# Initial error > eps
... | Python | menpo/fit/lucaskanade/appearance/simultaneous.py | jabooth/menpo-archive | bsd-3-clause | 8,583 | 239 | codeparrot/github-code |
52c4cdb7906b0c9e53c121f958f75f2d83bbb898a71be6938016011593c3918d | // Copyright 2018 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 UI_EVENTS_ANDROID_EVENT_HANDLER_ANDROID_H_
#define UI_EVENTS_ANDROID_EVENT_HANDLER_ANDROID_H_
#include "ui/events/events_export.h"
namespace ui ... | C | ui/events/android/event_handler_android.h | endlessm/chromium-browser | bsd-3-clause | 1,668 | 44 | codeparrot/github-code |
71725d0f03dada4cedce050be0ddb2f7d30cb55c37bbf5079775c410b1d2fadd | /*=========================================================================
Program: Visualization Toolkit
Module: vtkDynamic2DLabelMapper.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... | C | Rendering/Core/vtkDynamic2DLabelMapper.h | cjh1/vtkmodular | bsd-3-clause | 4,627 | 121 | codeparrot/github-code |
f7f241d6acba07d65075f87b61a58ffb50f8996dee675be505c8d89a9dab26a5 | // 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.
//
// Definition of ModelTypePayloadMap and various utility functions.
#ifndef SYNC_INTERNAL_PUBLIC_API_BASE_MODEL_TYPE_PAYLOAD_MAP_H_
#define SYNC_IN... | C | sync/internal_api/public/base/model_type_payload_map.h | keishi/chromium | bsd-3-clause | 1,702 | 54 | codeparrot/github-code |
b066e892e7d0f9943b247c1a7935b7137a2d9c55b86987719db25cec373fcce5 | # Copyright 2015 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.
"""Provides fakes for several of Telemetry's internal objects.
These allow code like story_runner and Benchmark to be run and tested
without compiling or st... | Python | telemetry/telemetry/testing/fakes/__init__.py | benschmaus/catapult | bsd-3-clause | 15,827 | 582 | codeparrot/github-code |
1157f8fb9b2c0d3b27fb412a3ff1088660d217389dd4094aea7c2827351382f4 | /* Copyright (c) 2015-2020 The Khronos Group Inc.
* Copyright (c) 2015-2020 Valve Corporation
* Copyright (c) 2015-2020 LunarG, Inc.
* Copyright (C) 2015-2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | C | third_party/angle/third_party/vulkan-validation-layers/src/layers/core_validation_types.h | endlessm/chromium-browser | bsd-3-clause | 57,785 | 1,274 | codeparrot/github-code |
8c7a403d2300d5022b4f47b9824a316f6cca5ad20cb272fe8cb66dd47455d577 | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | Java | src/edu/wpi/first/wpilibj/templates/RobotTemplate.java | 2374/chris | bsd-3-clause | 3,586 | 111 | codeparrot/github-code |
907fbb74b3586a43de77746148a89b3446873b2020c89bbdfe7ec7001e5e2ec3 | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... | C++ | Sources/Tools/EPI/Document/Properties/PtyNodeEmitter/PtyPartEffectTranslate.moc.cpp | benkaraban/anima-games-engine | bsd-3-clause | 8,874 | 198 | codeparrot/github-code |
a195693b03ae8c0bae4afa1c262f9ed4fa47fe63dadb1393249408ddeef60f19 | // Copyright 2019 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.
package org.chromium.ui.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.Vi... | Java | ui/android/java/src/org/chromium/ui/widget/ViewLookupCachingFrameLayout.java | endlessm/chromium-browser | bsd-3-clause | 4,641 | 114 | codeparrot/github-code |
fdfd29c5379b1921b6f4b06317fc6c82f524ce99fb51a7315f28f1bf0f8c3957 | {-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, TypeFamilies #-}
module Rubik.Turn where
import Data.Array
import Rubik.Negate as N
import Rubik.Key
data Turn = NoTurn | Clock | OneEighty | CounterClock
deriving (Eq,Ord,Show,Enum,Ix)
instance Negate Turn where
negate NoTurn = NoTurn
n... | Haskell | src/Rubik/Turn.hs | andygill/rubik-solver | bsd-3-clause | 1,481 | 61 | codeparrot/github-code |
771e3f015653c1f1a34e5e689162437d909659658937143a665111b61da655d0 | /* -*- mode: c++; fill-column: 132; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "irods_auth_object.hpp"
namespace irods {
auth_object::auth_object(
rError_t* _r_error ) : r_error_( _r_error ) {
// TODO - stub
}
auth_object::~auth_object() {
// TODO - stub
}
... | C++ | iRODS/lib/core/src/irods_auth_object.cpp | leesab/irods | bsd-3-clause | 1,097 | 41 | codeparrot/github-code |
d9e686ee214fba81f5c3fa2458a0f380abfd7b5ddbcc8faec2be7df25f6f40c9 | /*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2016 Google Inc.
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | C++ | third_party/angle/third_party/VK-GL-CTS/src/external/openglcts/modules/runner/glcTestRunnerMain.cpp | endlessm/chromium-browser | bsd-3-clause | 4,116 | 151 | codeparrot/github-code |
351603e7ceb06782febb03225aaca9515b1d86e908cef5dd0f895b10622d4a94 | /*
* Copyright (c) 2016, Groupon, 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... | Java | intf/src/test/java/com/groupon/lex/metrics/SimpleMetricTest.java | groupon/monsoon | bsd-3-clause | 4,854 | 133 | codeparrot/github-code |
55f52e296280164b22c9f12f2bc4943e8ee4944a71dadf8eb20ad832551b39f4 | import sys
import warnings
try:
import itertools.izip as zip
except ImportError:
pass
from itertools import product
import numpy as np
from .. import util
from ..dimension import dimension_name
from ..element import Element
from ..ndmapping import NdMapping, item_check, sorted_context
from .interface import... | Python | holoviews/core/data/cudf.py | ioam/holoviews | bsd-3-clause | 12,346 | 342 | codeparrot/github-code |
d446cf48ac4083c448073d0f44229614b3992354f9c3af2fe380f5d4a9ae3961 | <?php
namespace Jazzee\Element;
/**
* Phonenumber Element
*
* @author Jon Johnson <jon.johnson@ucsf.edu>
* @license http://jazzee.org/license BSD-3-Clause
*/
class Phonenumber extends TextInput
{
const PAGEBUILDER_SCRIPT = 'resource/scripts/element_types/JazzeeElementPhonenumber.js';
public function addT... | PHP | src/Jazzee/Element/Phonenumber.php | Jazzee/Jazzee | bsd-3-clause | 1,083 | 36 | codeparrot/github-code |
e72999b56298a32e442d70d9b064f93ceac93c905adf050065f9ef4b42f46933 | // Copyright 2015 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/webrtc/permission_bubble_media_access_handler.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "ba... | C++ | chrome/browser/media/webrtc/permission_bubble_media_access_handler.cc | endlessm/chromium-browser | bsd-3-clause | 17,709 | 439 | codeparrot/github-code |
d14e676b71192293bd0bd6b924affd53e6daf7cd399334ecd32e5779c96070e1 | # Copyright (c) 2006-2009 The Trustees of Indiana University.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without ... | Python | corepy/arch/spu/isa/spu_isa.py | matthiaskramm/corepy | bsd-3-clause | 22,294 | 1,212 | codeparrot/github-code |
bad5cb1d2fe50f5fe563dc82d8c7353fcfe4d5f6ce266ea9704dda8100027836 | /*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* 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 so... | Java | Product/Production/Services/PatientDiscoveryCore/src/main/java/gov/hhs/fha/nhinc/patientdiscovery/inbound/deferred/request/AbstractInboundPatientDiscoveryDeferredRequest.java | sailajaa/CONNECT | bsd-3-clause | 5,048 | 98 | codeparrot/github-code |
555326a8751f737a3f5e0fdfd0e511861588348c4ba4b18cefae82359e3a0df8 | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@author Stan Tomov
@author Hartwig Anzt
@precisions normal z -> s d c
*/
#include "magmasparse_internal.h"
#define P... | C++ | sparse-iter/src/zlobpcg.cpp | maxhutch/magma | bsd-3-clause | 27,130 | 662 | codeparrot/github-code |
486aaedd804e383ee35e3010ae123c846b192b3280ba3856d845e959fbdd14e7 | import * as fs from "fs"
import * as path from "path"
import * as ts from "typescript"
const coffee = require("coffeescript")
const less = require("less")
import {argv} from "yargs"
import {collect_deps} from "./dependencies"
const mkCoffeescriptError = (error: any, file?: string) => {
const message = error.message... | TypeScript | bokehjs/src/compiler/compile.ts | stonebig/bokeh | bsd-3-clause | 7,841 | 259 | codeparrot/github-code |
c4ece030a607a39035b6484d162039f204328e6c5f702b1456a2846bfd1f83b9 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# 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 copyrigh... | Python | vspk/v6/nuvmresync.py | nuagenetworks/vspk-python | bsd-3-clause | 11,928 | 384 | codeparrot/github-code |
3f17c28700a43155dc8c8f7d56d04c68bc3cd9a271105ca3346c65f1b47ba285 | package glasskey.spray.model
import glasskey.config.OAuthConfig
import spray.http.HttpHeader
trait OAuthAction {
import akka.actor.ActorSystem
import spray.client.pipelining._
import spray.http.HttpHeaders.RawHeader
import spray.http.HttpRequest
import spray.http.parser.HttpParser
import spra... | Scala | glass-key-spray/src/main/scala/glasskey/spray/model/OAuthAction.scala | MonsantoCo/glass-key | bsd-3-clause | 2,707 | 60 | codeparrot/github-code |
e0ffde91ef541182ddf14d661de7d53103c810d4109ff8a574765a9405e1aeb1 | // 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 COMPONENTS_CLOUD_DEVICES_COMMON_PRINTER_DESCRIPTION_H_
#define COMPONENTS_CLOUD_DEVICES_COMMON_PRINTER_DESCRIPTION_H_
#include <stdint.h>
#inclu... | C | components/cloud_devices/common/printer_description.h | endlessm/chromium-browser | bsd-3-clause | 12,413 | 553 | codeparrot/github-code |
0e1b0b53529058ac23f07c75ff0052ca3f01271c0a27a11c65cd43eb62e8ccdf | // Copyright 2011 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/resources/content_layer_updater.h"
#include "base/debug/trace_event.h"
#include "base/time.h"
#include "cc/debug/rendering_stats_instrumenta... | C++ | cc/resources/content_layer_updater.cc | codenote/chromium-test | bsd-3-clause | 2,848 | 77 | codeparrot/github-code |
355f540c2257add54cd7a42cd699b0abdc6d45ae18005a1f68ec3d9bf44a5989 | # Copyright (C) 2010 CENATIC: Centro Nacional de Referencia de
# Aplicacion de las TIC basadas en Fuentes Abiertas, Spain.
#
# 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 reta... | Python | src/Type.py | helix84/activae | bsd-3-clause | 2,833 | 89 | codeparrot/github-code |
c82d56484a08ac389bbcd0eca8dda022fd03d9a7233928399e1e01f44409f0a4 | /*
* Copyright 2016 Facebook, Inc.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law... | Scala | src/main/scala/io/reactivesocket/tck/RequesterDSL.scala | xytosis/reactivesocket-tck | bsd-3-clause | 2,782 | 85 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.