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 |
|---|---|---|---|---|---|---|---|---|
8b7f6f0a81275a2a168ff9e29ccdcc71da2b49d081bc0721b63973fd2f615331 | module Text.OpenGL.Xml.ReadRegistry (
readRegistry,
parseRegistry,
PreProcess
) where
import Prelude hiding ((.), id)
import Control.Category
import Text.OpenGL.Types
import Text.OpenGL.Xml.Pickle()
import Text.OpenGL.Xml.PreProcess
import Text.XML.HXT.Core
type PreProcess = Bool
-- TODO RelaxNG valid... | Haskell | src/Text/OpenGL/Xml/ReadRegistry.hs | Laar/opengl-xmlspec | bsd-3-clause | 1,468 | 51 | codeparrot/github-code |
85ea384fb72d2813e5c0f68cac15c00c2853bb2f6989900adabbee8990e56246 | /**
* History.js Core
* @author Benjamin Arthur Lupton <contact@balupton.com>
* @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com>
* @license New BSD License <http://creativecommons.org/licenses/BSD/>
*/
(function(window,undefined){
"use strict";
// =============================================... | JavaScript | scripts/uncompressed/history.js | SkReD/history.js | bsd-3-clause | 50,992 | 2,084 | codeparrot/github-code |
754388b22732ad28be11ad05ddd7fe0805970b70c14b93db3b17350ae397acd0 | <?php
use librarys\helpers\utils\String;
?>
<!-- 文章正文 下面部分 -->
<div class="a_info neinf">
<div>
<div class="a_rea a_hop">
<h2>
<span><a href="http://jb.9939.com/article_list.shtml">更多文章>></a></span>
与“<font style="color:#F00"><?php echo String::cutString($title, ... | PHP | frontend/views/article/detail_below.php | VampireMe/admin-9939-com | bsd-3-clause | 5,308 | 140 | codeparrot/github-code |
d700a6f245361d25eb7d0dddb24d1b3c14251b2f933ad7df42930318966c033f | // 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.
#include "components/optimization_guide/hints_processing_util.h"
#include "components/optimization_guide/proto/hint_cache.pb.h"
#include "components/opti... | C++ | components/optimization_guide/hints_processing_util_unittest.cc | endlessm/chromium-browser | bsd-3-clause | 4,247 | 97 | codeparrot/github-code |
634078aed381fb3333ebde423ea45c7b96b9fb3825570c122b1a9d578b57697f | // Copyright (c) 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/ui/extensions/settings_api_bubble_helpers.h"
#include <utility>
#include "build/build_config.h"
#include "chrome/browser/ex... | C++ | chrome/browser/ui/extensions/settings_api_bubble_helpers.cc | endlessm/chromium-browser | bsd-3-clause | 6,229 | 170 | codeparrot/github-code |
d95f8da43783806bd9cab51eca13eef6cc774cc3e3e1a6463a6e49e51f450976 | package org.broadinstitute.hellbender.engine;
import org.broadinstitute.barclay.argparser.CommandLineProgramProperties;
import org.broadinstitute.hellbender.cmdline.TestProgramGroup;
/**
* A Dummy / Placeholder class that can be used where a {@link GATKTool} is required.
* DO NOT USE THIS FOR ANYTHING OTHER THAN TE... | Java | src/test/java/org/broadinstitute/hellbender/engine/DummyPlaceholderGatkTool.java | magicDGS/gatk | bsd-3-clause | 1,099 | 35 | codeparrot/github-code |
fdd2ca4512aecbf7e2ae4cb8ed7d0e03ddf73417d920549778605ca1d8e9de60 | // Standard system includes
#include <assert.h>
#include <errno.h> // -EINVAL, -ENODEV
#include <netdb.h> // gethostbyname
#include <sys/poll.h>
#include <sys/types.h> // connect
#include <sys/socket.h> // connect
#include <trace.h>
#define MY_TRACE_PREFIX "EthernetServer"
extern "C" {
#include "string.h"
}
#... | C++ | target/device/libio/arduino/x86/libraries/Ethernet/EthernetServer.cpp | ilc-opensource/io-js | bsd-3-clause | 4,266 | 193 | codeparrot/github-code |
3b9fedee4c58abd3710430aed4e0490a23cada52f85f9877239165d77e32099b | /*
* Copyright (c) 2011 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/inspector/MainThreadDebugger.cpp | danakj/chromium | bsd-3-clause | 16,837 | 414 | codeparrot/github-code |
2a5ddfa499a06c422d195e20565f03211e1f3a0e76a89eb633e640ee42d76d35 | // Copyright © 2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Threading.Tasks;
namespace CefSharp.Test
{
public static class WebBrowserTestExtensions
{
public static Task... | C# | CefSharp.Test/WebBrowserTestExtensions.cs | Livit/CefSharp | bsd-3-clause | 4,471 | 112 | codeparrot/github-code |
e54731e1dd9a65ecf080d6705fdb717bf36126eea1f34802f48e9a782557ac12 | #ifndef CTRL_PARTITION_H
#define CTRL_PARTITION_H
#include <wx/panel.h>
//#include <wx/sizer.h>
enum CTRL_STATE
{
S_IDLE,
S_LEFT_SLIDER,
S_RIGHT_SLIDER,
S_MOVE
};
class wxPartition : public wxPanel
{
static const int slider_width = 10;
int slider_left_pos;
int slider_right_p... | C | wxGUI/ctrl_partition.h | Null665/partmod | bsd-3-clause | 1,412 | 68 | codeparrot/github-code |
e6fa2106fc4fee8bedc65a09d7ca08b32fb31b6f5e196989c6ff6b37ffe8f702 | # 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 w... | Makefile | docs/Makefile | smn/blinky | bsd-3-clause | 7,409 | 193 | codeparrot/github-code |
131a26ad6cf10358f6e3c0b8310c51e1f1cbfbe2c38a27329363fae07d088d4b | #![allow(missing_docs)]
use downcast_rs::Downcast;
use na::{DVector, RealField};
use ncollide::query::ContactId;
use crate::detection::ColliderContactManifold;
use crate::material::MaterialsCoefficientsTable;
use crate::object::{BodyHandle, BodySet, ColliderHandle};
use crate::solver::{ConstraintSet, IntegrationParam... | Rust | src/solver/contact_model.rs | sebcrozet/nphysics | bsd-3-clause | 1,526 | 40 | codeparrot/github-code |
58439bcc7bd8816dd51a14bf70c81b8254a4ad352dc466bd90fb71395ad892a7 | /**
* @file
* Money is a value object representing a monetary value. It does not use
* floating point numbers, so it avoids rounding errors.
* The only operation that may cause stray cents is split, it assures that no
* cents vanish by distributing as evenly as possible among the parts it splits into.
*
* Money ... | JavaScript | module/Core/lib/Data/Money.js | bergmark/Cactus | bsd-3-clause | 6,415 | 250 | codeparrot/github-code |
6e8dec04c37fd1c9a4028dd8d8363d9eb22c7c769892299e3cf44b35cefb3cf3 | #include "Shape.h"
#include "DynBase.h"
//#include <iostream>
using std::cout;
using std::endl;
Shape::~Shape()
{
cout << "~Shape ..." << endl;
}
void Circle::Draw()
{
cout << "Circle::Draw() ..." << endl;
}
Circle::~Circle()
{
cout << "~Circle ..." << endl;
}
void Square::Draw()
{
cout << "Square::Draw() ..."... | C++ | cppbasic/Shape.cpp | lixinyancici/code-for-learning-cpp | bsd-3-clause | 796 | 56 | codeparrot/github-code |
6bc2bdd9cbeed9ea66e560807ecbba449d497e9cb4216c5ccc8f53d43c18b877 | // Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
'use strict';
import {
IContentsModel
} from 'jupyter-js-services';
import {
Message
} from 'phosphor-messaging';
import {
PanelLayout
} from 'phosphor-panel';
import {
Widget
} from 'phosphor-widget';
im... | TypeScript | src/browser.ts | jupyter/jupyter-js-filebrowser | bsd-3-clause | 5,682 | 280 | codeparrot/github-code |
144c4af7b2f768689d0655f3a30f8add32d956c96bda75ad8778906dc778df4d | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "solicitud_prestamo".
*
* @property integer $SPRE_ID
* @property string $PE_RUT
* @property string $SPRE_DESCRIPCION
* @property string $SPRE_FECHA
* @property string $SPRE_ESTADO
* @property string $SPRE_TEXTO
*
* @property Perso... | PHP | models/SolicitudPrestamo.php | malikeox/mymltda2 | bsd-3-clause | 1,649 | 76 | codeparrot/github-code |
dca14dee46e03872da4af07bc004f94f263e7d18aee7b9b4c71e0cb926ace57c | <?php
namespace app\models;
use app\models\query\ActionQuery;
use app\models\query\CommentQuery;
use Yii;
use yii\db\ActiveRecord;
/**
* This is the model class for table "comment".
*
* @property integer $id
* @property integer $action_id
* @property string $content
*
* @property Action $action
*/
class Comm... | PHP | models/Comment.php | mixartemev/hd | bsd-3-clause | 1,500 | 71 | codeparrot/github-code |
6a528b2a4e57f43df443f056ef599d931886103a4c5aa99a215864adedae4624 | // 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/net/sdch_dictionary_fetcher.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/message_loop.h"
#in... | C++ | chrome/browser/net/sdch_dictionary_fetcher.cc | robclark/chromium | bsd-3-clause | 3,016 | 89 | codeparrot/github-code |
b34e0644e98745a0e14874bee6e2c0765adca18e6fdb6db4e0e631e3733368f5 | package de.uni.freiburg.iig.telematik.wolfgang.properties.check;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import de.invation.code.toval.graphic.component.DisplayFrame;
import de.invation.code.toval.graphic.util.SpringUtilities;
import de.uni.freiburg.iig.telematik.sepia.petrinet.cpn.properties.cwn.CW... | Java | src/de/uni/freiburg/iig/telematik/wolfgang/properties/check/CWNPropertyCheckView.java | iig-uni-freiburg/WOLFGANG | bsd-3-clause | 5,138 | 98 | codeparrot/github-code |
6191ed32b23803f8f7cb9ce2d03771154aa67808d71763475ca37cec3b16d7da | import matplotlib.pyplot as plt
import numpy as np
import scalpplot
from scalpplot import plot_scalp
from positions import POS_10_5
from scipy import signal
def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'):
frames = np.asarray(frames)
if offset == None:
offset = np.max(np.std(frame... | Python | psychic/plots.py | breuderink/psychic | bsd-3-clause | 1,878 | 58 | codeparrot/github-code |
f521ba32b163407d314dbb24eb2a9975a259323be1e370c51ae058147dfb5f8a | package main
import (
"encoding/json"
"fmt"
"log"
"time"
"github.com/boltdb/bolt"
)
type Entry struct {
Id string `json:"id"`
Url string `json:"url"`
Subreddit string `json:"subreddit"`
}
//InitDB initializes the BoltDB instance and loads in the database file.
func InitDB() {
... | GO | db.go | Term1nal/gifvbot | bsd-3-clause | 5,499 | 242 | codeparrot/github-code |
844dc8410950307e927b999a0ac7c9fabbdc20800bae043b1cda83ade511fcd2 | package eu.monnetproject.sim.entity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import eu.monnetproject.util.Logger;
import eu.monnetproject.label.LabelExtractor;
import eu.monnetproject.label.LabelEx... | Java | nlp.sim/src/main/java/eu/monnetproject/sim/entity/MaximumAverageLevenshtein.java | monnetproject/coal | bsd-3-clause | 4,639 | 154 | codeparrot/github-code |
1f0d246cee7cff6e2debf1b9294cfa5ae1c586b92df2878c91d79ca3ff5f385a | /*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@generated from zgels_gpu.cpp normal z -> d, Fri Jul 18 17:34:16 2014
*/
#include "common_magma.h"
/**
Purpose
-------
Solves t... | C++ | src/dgels_gpu.cpp | EmergentOrder/magma | bsd-3-clause | 4,392 | 158 | codeparrot/github-code |
77e027ecbcfd3034c025f7374ca55ad59eb4599887cc587059bf2f2b8f6b74da | <?php
use AudioDidact\GlobalFunctions;
/**
* Returns Pug rendered HTML for the User page, either view or edit
*
* @param $webID string webID of the user's page to be rendered
* @param $edit boolean true if the user is logged in and viewing their own page
* @param null|string $verifyEmail null or string if the us... | PHP | src/userPageGenerator.php | md100play/AudioDidact | bsd-3-clause | 3,652 | 104 | codeparrot/github-code |
e2407370ad685ed465edb52f41bc45d943dc7c3894bc77382ee95836ff547637 | {% for reply in replies %}
<div class="cell reply from_{{ reply.member_num }}">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="48" valign="top">
<a href="/member/{{ reply.created_by }}">{{ reply.member|avatar:"normal"|safe }}</a>
</td... | HTML | src/template/portion/topic_replies.html | cwyark/v2ex | bsd-3-clause | 1,791 | 43 | codeparrot/github-code |
2e787f27b69d4310d035c89704853ad557fb642825ff98a2ff60e24cb32c0e4a | /*!
* \file dcxtab.cpp
* \brief blah
*
* blah
*
* \author David Legault ( clickhere at scriptsdb dot org )
* \version 1.0
*
* \b Revisions
*
* © ScriptsDB.org - 2006
*/
#include "defines.h"
#include "Classes/dcxtab.h"
#include "Classes/dcxdialog.h"
/*!
* \brief Constructor
*
* \param... | C++ | Classes/dcxtab.cpp | dlsocool/dcx | bsd-3-clause | 29,210 | 1,081 | codeparrot/github-code |
2244822f7454323b3d6d1868a5812de2df715a54f0a2e439e22409e198e711e0 | package uk.ac.soton.ecs.comp3204.l3;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagLayout;
import java.io.IOException;
import javax.swing.JPanel;
import org.openimaj.content.slideshow.Slide;
import org.openimaj.content.slideshow.SlideshowApplication;
import ... | Java | app/src/main/java/uk/ac/soton/ecs/comp3204/l3/MeanCenteredFacesDemo.java | jonhare/COMP3204 | bsd-3-clause | 2,176 | 75 | codeparrot/github-code |
2d8cd9957050b6b4adb5a37f22fa6725dfa46402acddeafdf4eabbff2cd2e548 | # -*- encoding: binary -*-
require "./test/exec"
require "tmpdir"
require "fileutils"
require "net/http"
module TestFreshSetup
include TestExec
def setup
setup_mogilefs
end
def setup_mogilefs(plugins = nil)
@test_host = "127.0.0.1"
setup_mogstored
@tracker = TCPServer.new(@test_host, 0)
@... | Ruby | test/fresh.rb | drasch/mogilefs-client | bsd-3-clause | 6,811 | 235 | codeparrot/github-code |
639910f9e642e859646046dd5955f368a7973d4b38f513310a263564cb3c9f73 | {-# Language OverloadedStrings #-}
module XMonad.Actions.XHints.Render where
import XMonad hiding (drawString)
import Data.Text (Text)
import qualified Data.Text as T
import Foreign.C
import Graphics.X11.Xlib.Types
import qualified Data.Text.Foreign as TF
import qualified Data.ByteString as BS
import Codec.Binary.UTF8... | Haskell | src/XMonad/Actions/XHints/Render.hs | netogallo/XHints | bsd-3-clause | 1,227 | 35 | codeparrot/github-code |
db439ffbf9411c4c8c66c849bfc0100737fb0fc931ac2350bf47bc0dbce18d11 | // An object that encapsulates everything we need to run a 'find'
// operation, encoded in the REST API format.
var Parse = require('parse/node').Parse;
import { default as FilesController } from './Controllers/FilesController';
// restOptions can include:
// skip
// limit
// order
// count
// include
// ... | JavaScript | src/RestQuery.js | aneeshd16/parse-server | bsd-3-clause | 17,157 | 579 | codeparrot/github-code |
d4559b1223d6acf2035a1824db325675574faffc4d72bf14187bfce93f556669 | package com.github.paulp.optional
import scala.collection._
import mutable.HashSet
case class Options(
options: Map[String, String],
args: List[String],
rawArgs: List[String]
)
case class ArgInfo(short: Char, long: String, isSwitch: Boolean, help: String)
object Options
{
private val ShortOption = """-(\w)""... | Scala | src/main/scala/options.scala | ornicar/optional | bsd-3-clause | 2,389 | 81 | codeparrot/github-code |
fb3d8faac40cc5f78ba8ea5e049a3ccd222de554cb7cb0d58c770fb5d09dfb3f | <?php
/*=========================================================================
MIDAS Server
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved.
69328 Lyon, FRANCE.
See Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILIT... | PHP | core/models/base/AssetstoreModelBase.php | mgrauer/midas3score | bsd-3-clause | 2,220 | 78 | codeparrot/github-code |
14e4f2695fd1cbe6cb7fb22ef288d4ccf5390695226ced937a0dae21a8b50ff7 | # -*- coding: utf-8 -*-
from collections import OrderedDict
import locale
from optparse import make_option
from verify.management.commands import VerifyBaseCommand
from verify.models import *
from verify.politici_models import *
from django.db.models import Q, Count
__author__ = 'guglielmo'
class Command(VerifyBase... | Python | project/verify/management/commands/generi_in_istituzioni.py | openpolis/op-verify | bsd-3-clause | 3,217 | 88 | codeparrot/github-code |
a2da49ba3a3f2884091ac767020892215373cfd1e74b94904b0eedc6f4f47304 | #ifndef __KIDS_CONFIG_H_
#define __KIDS_CONFIG_H_
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#define NLIMIT_NORMAL 0
#define NLIMIT_NETWORKSTORE 1
#define NLIMIT_PUBSUB 2
struct LimitConfig {
int hard_limit_bytes;
int soft_limit_bytes;
int soft_limit_seconds;
};
struct StoreConfi... | C | src/conf.h | akkakks/kids | bsd-3-clause | 1,770 | 88 | codeparrot/github-code |
a82bf2c3e89439ac635dba5c5a7c72b245476c9147194e90a595728cdaefed54 | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2016. 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 | wpilibj/src/athena/java/edu/wpi/first/wpilibj/Joystick.java | PeterMitrano/allwpilib | bsd-3-clause | 12,635 | 442 | codeparrot/github-code |
028883fea51ec94e4ca78c54811b7235653fc4468f1275b82eb80c8cd130ecd9 | package sdp
func (s Session) appendAttributes(attrs Attributes) Session {
for _, v := range attrs {
if v.Value == blank {
s = s.AddFlag(v.Key)
} else {
s = s.AddAttribute(v.Key, v.Value)
}
}
return s
}
// Append encodes message to Session and returns result.
//
// See RFC 4566 Section 5.
func (m *Messa... | GO | encoder.go | ernado/sdp | bsd-3-clause | 1,664 | 72 | codeparrot/github-code |
b24b6387a0c4587f91801ce0c5034b667e9429dc68c65c9d8499984f30274ce5 | <?php
if(!class_exists('AbstractQueuedJob')) return;
/**
* A Job for running a external link check for published pages
*
*/
class CheckLinksJob extends AbstractQueuedJob implements QueuedJob {
public function getTitle() {
return _t('CheckLinksJob.TITLE', 'Checking for broken links');
}
public function getJ... | PHP | code/jobs/CheckLinksJob.php | blpraveen/silverstripe-brokenlinks | bsd-3-clause | 722 | 35 | codeparrot/github-code |
cabe19d156250de6af625bc9f64aa464fc75f55cca3182b4654e20e1420828ca |
#include "stdfx.h"
//#include "tfxparam.h"
#include "trop.h"
//===================================================================
class PremultiplyFx : public TStandardRasterFx {
FX_PLUGIN_DECLARATION(PremultiplyFx)
TRasterFxPort m_input;
public:
PremultiplyFx() { addInputPort("Source", m_input); }
~Premul... | C++ | toonz/sources/stdfx/premultiplyfx.cpp | walkerka/opentoonz | bsd-3-clause | 1,082 | 41 | codeparrot/github-code |
e598368c7b903cdb57326a9fb6bcfa909469934adc7a7368012a4999f7ada076 | // Copyright 2020 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/components/phonehub/multidevice_setup_state_updater.h"
#include "ash/components/phonehub/pref_names.h"
#include "ash/components/phonehub/ut... | C++ | ash/components/phonehub/multidevice_setup_state_updater.cc | scheib/chromium | bsd-3-clause | 6,304 | 148 | codeparrot/github-code |
158d4c046b0ca7a74125f36617f9ce56dde91e86dfc7700785028b57579fc146 | /*
* jQuery File Upload Plugin JS Example 8.9.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global $, window */
$(function () {
'use strict';
// Initializ... | JavaScript | web/js/fileupload/main.js | vohoanglong07/yii_basic | bsd-3-clause | 2,550 | 78 | codeparrot/github-code |
e0b1e70c60d0f6de25caad3e44acf4fc0ba35e2a7e5fb629433771cfea29cd06 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
<title>DataTables example</titl... | HTML | examples/server_side/post.html | Khan/DataTables | bsd-3-clause | 11,018 | 216 | codeparrot/github-code |
d72673d52864228b34dd10cc1687ed046ef37cd669f42df2dd9c7e0618cb1ad5 | module Spree
module Admin
class AuthorsController < ResourceController
def index
params[:q] ||= {}
params[:q][:deleted_at_null] ||= "1"
@search = @authors.ransack(params[:q])
@authors = @search.result.page(params[:page]).per(Spree::Config[:admin_products_per_page])
@... | Ruby | app/controllers/spree/admin/authors_controller.rb | mehadesai/spree-multi-blogs | bsd-3-clause | 1,361 | 44 | codeparrot/github-code |
3180699a0544a243dac3773024c4a10d9b95ee8129974bd71361de761f67f6f2 | /*
* Copyright (c) 2006, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* ceil(x)
* Return x rounded toward -inf to integral value
* Method:
* Bit twiddling.
* Exception:
* Inexact flag raised if x not equal to ceil(x).
*/
#... | C | guestvm~guestvm/com.oracle.max.ve.native/fdlibm/s_ceil.c | SnakeDoc/GuestVM | bsd-3-clause | 1,481 | 71 | codeparrot/github-code |
f2aaf5d9b07ead57425b310992100454ab0685f231d7e33c46a76f63e2e7dbaf | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | C | sys/cddl/dev/lockstat/lockstat.c | jrobhoward/SCADAbase | bsd-3-clause | 8,829 | 333 | codeparrot/github-code |
dd356f2594d55fa39bc8bf27aa184ef3786c02fc33d400abb47144dd55c8850b | <?php namespace xp\runtime;
/**
* Wrap code passed in from the command line.
*
* @see https://wiki.php.net/rfc/group_use_declarations
* @test xp://net.xp_framework.unittest.runtime.CodeTest
*/
class Code {
private $fragment, $imports;
/**
* Creates a new code instance
*
* @param string $input
... | PHP | src/main/php/xp/runtime/Code.class.php | johannes85/core | bsd-3-clause | 2,041 | 80 | codeparrot/github-code |
66e11e3956084138375a2accbf20dfb7c1253d74781e419ef7cdebb09dc161bd | <?php
namespace yiicms\components\core;
# Websun template parser, version 0.1.80
# http://webew.ru/articles/3609.webew
/*
0.1.80 - allowed_extensions option implemented
0.1.71 - replaced too new array declaration [] with array() - keeping PHP 5.3 compatibility
0.1.70 - added :^N and :^i
0.1.60 - __construct() a... | PHP | components/core/websun.php | muratymt/yiicms | bsd-3-clause | 33,872 | 1,024 | codeparrot/github-code |
416d568bb0a505066352bbe56b37d37ee4c86e3710025c1a0eca06911af9205c | /*!
* speedt
* Copyright(c) 2015 speedt <13837186852@qq.com>
* BSD 3 Licensed
*/
'use strict';
var utils = require('speedt-utils');
var Service = function(app){
var self = this;
// TODO
self.serverId = app.getServerId();
self.connCount = 0;
self.loginedCount = 0;
self.logined = {};
};
module.exports = Serv... | JavaScript | server/lib/common/services/connectionService.js | 3203317/st | bsd-3-clause | 1,457 | 75 | codeparrot/github-code |
f85ebd26e79fbba96b392541662f70580fa904c821b6d6965bea658046495650 | //===----------------------------------------------------------------------===//
//
// 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/libcxx/test/std/strings/basic.string.hash/char_type_hash.fail.cpp | endlessm/chromium-browser | bsd-3-clause | 2,504 | 71 | codeparrot/github-code |
3b514e0ae61641ccacf89c8e1b63379ccd54e9f94ad29a7e8324bd0136a0d05b | /*=========================================================================
Program: Advanced Normalization Tools
Module: $RCSfile: itkANTSImageRegistrationOptimizer.h,v $
Language: C++
Date: $Date: 2009/04/22 01:00:17 $
Version: $Revision: 1.44 $
Copyright (c) ConsortiumOfANTS. All rights reserved... | C | ImageRegistration/itkANTSImageRegistrationOptimizer.h | vfonov/mincANTS | bsd-3-clause | 74,622 | 1,717 | codeparrot/github-code |
029781e9626ea15693591634ba6bafc312d4fa0bfc288e1b8eb0ef36f1272c9b | module Watir
module RowContainer
# Returns a row in the table
# * index - the index of the row
def [](index)
assert_exists
TableRow.new(self, :ole_object, @o.rows.item(index))
end
def strings
assert_exists
rows_memo = []
@o.rows.each do |row|
c... | Ruby | watir/lib/watir/table.rb | jarib/watir | bsd-3-clause | 6,849 | 253 | codeparrot/github-code |
ad83c3a1841bccd97ab2937b9873d1f64286f554a9d1c1301958bacedd4d9650 | <?php
namespace PragmaRX\Health\Checkers;
use GuzzleHttp\Client as Guzzle;
use Illuminate\Support\Str;
use PragmaRX\Health\Support\LocallyProtected;
use PragmaRX\Health\Support\Result;
class ServerVars extends Base
{
protected $response;
protected $errors;
/**
* Check resource.
*
* @retur... | PHP | src/Checkers/ServerVars.php | antonioribeiro/health | bsd-3-clause | 2,717 | 108 | codeparrot/github-code |
cb36504b44bec92e6ea03f90b775faf5ee6bb128cdc1bfbc3550f27a42a3aaa3 | // 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.
#include "chrome/browser/optimization_guide/optimization_guide_web_contents_observer.h"
#include "chrome/browser/optimization_guide/chrome_hints_manager.... | C++ | chrome/browser/optimization_guide/optimization_guide_web_contents_observer.cc | nwjs/chromium.src | bsd-3-clause | 9,522 | 247 | codeparrot/github-code |
d229b3b5dff8ec077632ac1bbaae43f01f29d5e77c2195001e0b4a05b733f5f6 | // GLFW Engine.
// -----------------------------------------------------------------------------
// Copyright (C) 2011, ZEUS project (See authors)
//
// This program is open source and distributed under the New BSD License. See
// license for more detail.
// -------------------------------------------------------------... | C++ | extensions/GLFW/Core/GLFWEngine.cpp | papaboo/The-ZEUS-Project | bsd-3-clause | 1,427 | 58 | codeparrot/github-code |
75509458709cf855e9594764cecb055d0fdf9635d5ab8b635c27aa8a881fa6c7 | /*
* Copyright (c) 2015, 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.
*
*/
#include <fo... | C++ | proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp | luxuan/proxygen | bsd-3-clause | 67,684 | 1,823 | codeparrot/github-code |
08082dd927e76835bf86cf4b9e1597331d46b18485ee2f52d28740acc2ba7a30 | // 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/renderer_host/pepper/device_id_fetcher.h"
#include "base/file_util.h"
#include "base/prefs/pref_service.h"
#include "base/st... | C++ | chrome/browser/renderer_host/pepper/device_id_fetcher.cc | mogoweb/chromium-crosswalk | bsd-3-clause | 7,226 | 224 | codeparrot/github-code |
0571186d5e15d18a8e29df444575eb11427e42266282f97aab349f15c815cecf | """
Room Typeclasses for the TutorialWorld.
This defines special types of Rooms available in the tutorial. To keep
everything in one place we define them together with the custom
commands needed to control them. Those commands could also have been
in a separate module (e.g. if they could have been re-used elsewhere.)... | Python | evennia/contrib/tutorial_world/rooms.py | feend78/evennia | bsd-3-clause | 40,655 | 1,040 | codeparrot/github-code |
7f9b92f6639ab4833e1699cb1a4277ca80161dbef7a76d2aa925be3ab435123d | <?php
namespace asdfstudio\admin\helpers;
use Yii;
use asdfstudio\admin\Module;
use asdfstudio\admin\base\Admin;
use yii\db\ActiveRecord;
class AdminHelper
{
/**
* @param string $entity Admin class name or Id
* @return Admin|null
*/
public static function getEntity($entity)
{
/* ... | PHP | helpers/AdminHelper.php | Tecnoready/yii2-admin-module | bsd-3-clause | 1,294 | 55 | codeparrot/github-code |
ed766c65bfb34a92e063399674e2816677ad931f0e439dff256e43387b4ff04a | package tools;
/*
* Extremely Compiler Collection
* Copyright (c) 2015-2020, Jianping Zeng.
*
* 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
*
* http://www.apache.org/licenses/LICE... | Java | xcc/java/tools/SourceMgr.java | JianpingZeng/xcc | bsd-3-clause | 8,511 | 305 | codeparrot/github-code |
bdffaa930e6fb6cb10fc8349ae339a908bf1b93523ea18844c3d9e7287879884 | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right 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 th... | C++ | src/demos/trackVehicle/subsys/trackSystem/TrackSystem.cpp | jcmadsen/chrono | bsd-3-clause | 9,871 | 227 | codeparrot/github-code |
d91d78251d64c90b10c403ca9ec432a23b4e12f17c0b2a6fb8f90c474eeaca99 | /**
Copyright (c) 2014, Nathan Carver
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 conditions
and the follo... | JavaScript | main.js | ncarver/TEETH | bsd-3-clause | 28,665 | 751 | codeparrot/github-code |
aac0afc82ec9c53ba806d23310954184f38174fc9a4506be54769ff36cc2b70b | <?php
use app\core\helpers\Html;
use app\core\helpers\Url;
$this->title = '权限管理 在此页面添加名修改权限项注释';
$this->params['breadcrumbs'][] = $this->title;
?>
<style type="text/css">
.nopad{padding-left: 0}
.panel-default>.panel-heading{
padding: 10px 15px;
background-color: #f5f5f5;
border-color:... | PHP | modules/sys/views/admin/auth-permission/index.php | cboy868/lion2 | bsd-3-clause | 3,176 | 119 | codeparrot/github-code |
b74f6646a8015939d47994855e5894e2d30eaed2605cc287f8b246d63cd072fc | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>System\Browser\assets\scripts\Flash.js 源码</title>
<link href="../../assets/styles/prettify.css" type="text/css" rel="stylesheet" />
<script src="../../assets/scripts/prettify.js" type="text/javascript"></script>
<style type="text/css">.highl... | HTML | resources/cookbooks/jplusui-full-api/data/source/System/Browser/assets/scripts/Flash.js.html | jplusui/jplusui.github.com | bsd-3-clause | 2,996 | 93 | codeparrot/github-code |
8939e8131f0828345401ed3b0d76fcac726fdd503fd1d55fde0d502ebd873b0e | define(['App', 'jquery', 'underscore', 'backbone', 'hbs!template/subreddit-picker-item', 'view/basem-view'],
function(App, $, _, Backbone, SRPitemTmpl, BaseView) {
return BaseView.extend({
template: SRPitemTmpl,
events: {
'click .add': 'subscribe',
'cl... | JavaScript | public/js/app/view/subreddit-picker-item-view.js | BenjaminAdams/RedditJS | bsd-3-clause | 1,957 | 58 | codeparrot/github-code |
8de35419342ac68c7506093d85114d871078d4a7703d90d794833788c06bcdfb |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.base.model.GenericLikelihoodModelResults.remove_data — statsmodels v0.10.0 documentation</title>
<link rel="stylesheet" href="../../_static/nature.css" type="text/css" />
<link rel="... | HTML | v0.10.0/dev/generated/statsmodels.base.model.GenericLikelihoodModelResults.remove_data.html | statsmodels/statsmodels.github.io | bsd-3-clause | 9,138 | 191 | codeparrot/github-code |
aa939360ccae5a20189e8f23b6ba6d1a42c0a1d9f8d7cb47eac8bf5ac3ee1e92 | /*
Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... | C++ | src/kre/CanvasOGL.cpp | sweetkristas/swiftly | bsd-3-clause | 13,121 | 342 | codeparrot/github-code |
5d5c91c33b40a1a5dad3a417549ca43c0b7987d31f5e9e0eeb7c2e49cef45f36 | // Copyright 2016 Keybase Inc. All rights reserved.
// Use of this source code is governed by a BSD
// license that can be found in the LICENSE file.
package libkey
import (
"context"
"github.com/keybase/client/go/kbfs/idutil"
"github.com/keybase/client/go/kbfs/kbfscrypto"
"github.com/keybase/client/go/kbfs/kbfs... | GO | go/kbfs/libkey/key_ops.go | keybase/client | bsd-3-clause | 2,520 | 77 | codeparrot/github-code |
96fc7f477e8210b82358f2d14cb33383b43f32ff00fdbfa9673169aac63b2d21 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataExplorer.Domain.Columns;
using DataExplorer.Domain.Layouts;
namespace DataExplorer.Domain.Maps.SizeMaps
{
public class SizeMapFactory : ISizeMapFactory
{
public SizeMap Create(... | C# | Domain/Maps/SizeMaps/SizeMapFactory.cs | dataexplorer/dataexplorer | bsd-3-clause | 1,712 | 53 | codeparrot/github-code |
8824d5ccdcfd4f961d93a82213abcc815b694de04a2a7715de5543f3d7ec0b4d | package com.btr.proxy.search.desktop.gnome;
import java.io.File;
import java.io.IOException;
import java.net.ProxySelector;
import java.util.Properties;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom... | Java | src/main/java/com/btr/proxy/search/desktop/gnome/GnomeProxySearchStrategy.java | brsanthu/proxy-vole | bsd-3-clause | 14,860 | 355 | codeparrot/github-code |
095bda4019f878a7d7a7592d186c80d81db290dd0d6599cff8384b10b5540bbb | /*
* Copyright (C) 2014 The Async HBase Authors. All rights reserved.
* This file is part of Async HBase.
*
* 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... | Java | test/BaseTestHBaseClient.java | manolama/asynchbase | bsd-3-clause | 17,282 | 420 | codeparrot/github-code |
a3378ea5d78e053e486446d1f5dcd9810ccfff214b6ab0829f3e3cf6b4bf50ed | #include "gb_thread.hpp"
#include "z80.hpp"
#include "memory.hpp"
#include "rom.hpp"
#include "cart_rom_only.hpp"
#include "cart_mbc1.hpp"
#include "cart_mbc5.hpp"
#include "internal_ram.hpp"
#include "video.hpp"
#include "timer.hpp"
#include "joypad.hpp"
#include "sound.hpp"
#include "debug.hpp"
#include "assert.hpp"
... | C++ | gameboy_lib/gb_thread.cpp | kaini/gameboy | bsd-3-clause | 8,162 | 320 | codeparrot/github-code |
a2b306683b5e270c2f1a34f9ac2a0438f1591653aad432414efa6073423007d7 | //M*//////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | C++ | modules/calib3d/src/stereobm.cpp | apavlenko/opencv | bsd-3-clause | 43,834 | 1,108 | codeparrot/github-code |
dfd469483bbc9f53258823e56b076220db809c50198139fdad94093b030756eb | "use strict";
var mapnik = require('../');
var assert = require('assert');
var path = require('path');
mapnik.register_datasource(path.join(mapnik.settings.paths.input_plugins,'geojson.input'));
describe('mapnik.Geometry ', function() {
it('should throw with invalid usage', function() {
// geometry canno... | JavaScript | test/geometry.test.js | langateam/node-mapnik | bsd-3-clause | 2,955 | 76 | codeparrot/github-code |
9149867340ceb049d45a0bc7886de5c083c1ff4ac38cc8bb7d468000e9701301 | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | C++ | registration/include/pcl/registration/impl/correspondence_estimation_backprojection.hpp | kalectro/pcl_groovy | bsd-3-clause | 13,583 | 316 | codeparrot/github-code |
5a37e490bdfec48eaf8d35fa441c6ba4403f3de9106c6c8b1f365fa5afbf3f89 | /*
* ctm-cvb
*
* CollapsedBayesEngine
*/
#ifndef COLLAPSED_BAYES_ENGINE_H
#define COLLAPSED_BAYES_ENGINE_H
#include "InferenceEngine.h"
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
namespace ctm
{
class CollapsedBayesEngine : public InferenceEngine
{
/***
* Model hyperpa... | C | include/CollapsedBayesEngine.h | arunchaganty/ctm-cvb | bsd-3-clause | 1,922 | 86 | codeparrot/github-code |
8997c2f15cdd07be8cf0dacc92593dca773dd4ad270baae9551b3dc1db6f0a50 | /**
* Copyright (c) 2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms
*/
package visualoozie.api;
public class WorkflowNode {
public enum NodeType{
START
, KILL
, DECISION
, FORK
, JOIN
... | Java | src/main/java/visualoozie/api/WorkflowNode.java | jaoki/visualoozie | bsd-3-clause | 747 | 33 | codeparrot/github-code |
41e0c953a8920dcf1a120f0f457a21a3a83147a71610d4589da3d2c5e8de0152 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_file_execl_43.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-43.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* GoodSou... | C++ | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_file_execl_43.cpp | JianpingZeng/xcc | bsd-3-clause | 3,945 | 149 | codeparrot/github-code |
6ed5bc53600686782ff7751b95d79ee26a817367beb939023e2a02243d35eeb1 | /*-
* Copyright (c) 1996-1999
* Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp)
* 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 th... | C | freebsd3/sys/dev/kbd/atkbdc.c | MarginC/kame | bsd-3-clause | 26,073 | 1,018 | codeparrot/github-code |
e27d470f7f0e426d3d8ef42133b576798e2e760bc70724d84981bdb573853c5c | """
Vision-specific analysis functions.
$Id: featureresponses.py 7714 2008-01-24 16:42:21Z antolikjan $
"""
__version__='$Revision: 7714 $'
from math import fmod,floor,pi,sin,cos,sqrt
import numpy
from numpy.oldnumeric import Float
from numpy import zeros, array, size, empty, object_
#import scipy
try:
import p... | Python | topo/analysis/vision.py | jesuscript/topo-mpi | bsd-3-clause | 11,628 | 276 | codeparrot/github-code |
0d5d23601508ee3c59941336564bb46910ad954da4d01a9a0171856c452155ef | /* $OpenBSD: isp_sbus.c,v 1.7 1999/03/25 22:58:37 mjacob Exp $ */
/* release_03_25_99 */
/*
* SBus specific probe and attach routines for Qlogic ISP SCSI adapters.
*
* Copyright (c) 1997 by Matthew Jacob
* NASA AMES Research Center
* All rights reserved.
*
* Redistribution and use in source and binary forms, wit... | C | openbsd/sys/arch/sparc/dev/isp_sbus.c | MarginC/kame | bsd-3-clause | 10,106 | 371 | codeparrot/github-code |
7296a7855981f4e93af273bcd5f3934c82ed972188cbed0ca44da9ce177fbbb4 | /*
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
... | C++ | sky/engine/core/events/UIEvent.cpp | collinjackson/mojo | bsd-3-clause | 2,459 | 115 | codeparrot/github-code |
4a493b1e5f87041b2fcede12375ab81f3365165ce6867987f748f9a2e925b227 | import { takeLatest, call, put } from 'redux-saga/effects';
import { gql } from 'react-apollo';
import { push } from 'react-router-redux';
import jwtDecode from 'jwt-decode';
import { setJwtToken } from '../../utils/auth';
import { bootstrap } from '../../utils/sagas';
import { registerError, registerSuccess } from '.... | JavaScript | app/containers/Register/sagas.js | zmora-agh/zmora-ui | bsd-3-clause | 1,298 | 45 | codeparrot/github-code |
464ba8489af3a0279d1e70f0624ff29496f9bfe20f4e96231e67b5623c6221d8 | <!doctype html>
<html>
<head>
<title>LazyLoad Test</title>
<style type="text/css">
fieldset {
border: 1px solid #afafaf;
margin-bottom: 1em;
}
.log {
font: 10pt Consolas, Monaco, fixed;
width: 100%;
}
#css-status {
backgro... | HTML | test/index.html | smith/lazyload | bsd-3-clause | 4,907 | 176 | codeparrot/github-code |
f820578ebf684ec0bf00be587c67ecf0ea71b665a0a46ebf5ffd2429f9d031b6 | $(function () {
var colors = Highcharts.getOptions().colors,
categories = ['已关闭', 'NEW', '已解决'],
name = 'Browser brands',
data = [{
y: 290,
color: colors[0],
drilldown: {
name: 'close bug version',
... | JavaScript | src/11.js | qualityTeam5/PO-demo | bsd-3-clause | 3,069 | 105 | codeparrot/github-code |
54b9b06be5b21e865450e83729b79064f7e371420305e57daf94f2fdfabf593a | /*
* This file is part of the MIAMI framework. For copyright information, see
* the LICENSE file in the MIAMI root folder.
*/
/*
* File: TemplateExecutionUnit.h
* Author: Gabriel Marin, mgabi99@gmail.com
*
* Defines data structure to hold information about the use pattern of an
* execution unit type as part o... | C | src/Scheduler/TemplateExecutionUnit.h | gmarin13/MIAMI | bsd-3-clause | 1,012 | 49 | codeparrot/github-code |
f91babf788b8249344533b60fad094f0eed2f4f4867b0fde7a8f0a43dbf9c645 | # # product
import logging
from django.contrib import messages
from django.contrib.auth.decorators import user_passes_test
from django.urls import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import render
from dojo.utils import add_breadcrumb
from dojo.forms import ToolTypeForm
from doj... | Python | dojo/tool_type/views.py | rackerlabs/django-DefectDojo | bsd-3-clause | 2,344 | 65 | codeparrot/github-code |
e288522127dddb420510325d4abca11cba95f5a0241677a318dab5e16dfcaa58 | // 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 <stddef.h>
#include <stdint.h>
#include "base/bind.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/run_lo... | C++ | media/blink/multibuffer_data_source_unittest.cc | danakj/chromium | bsd-3-clause | 45,234 | 1,452 | codeparrot/github-code |
34b7000f3b2c1e63f977c4465c15ba65485852d29c8449610aeb7862500a0b88 | module UI.Widget.List (
listWidget
) where
import Reactive.Banana
import Reactive.Banana.Extra
import Reactive.Banana.Frameworks
import UI.TclTk
import UI.TclTk.AST
import UI.TclTk.Builder
import UI.Widget
-- | List widget
listWidget :: Frameworks t => Event t [a] -> GUI t p (TkName, Event t (Int,a))
listWidg... | Haskell | UI/Widget/List.hs | Shimuuar/banana-tcltk | bsd-3-clause | 2,399 | 91 | codeparrot/github-code |
53c6cd7a95fff6c7cd27f8d7bdd1f8b5f36fafd60f985356ada9a4eaf6dc52ca | // 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.
#ifndef MEDIA_VIDEO_SUPPORTED_VIDEO_DECODER_CONFIG_H_
#define MEDIA_VIDEO_SUPPORTED_VIDEO_DECODER_CONFIG_H_
#include <vector>
#include "base/containers/... | C | media/video/supported_video_decoder_config.h | endlessm/chromium-browser | bsd-3-clause | 2,687 | 77 | codeparrot/github-code |
7291bfd72b103cdc06769d86564d815290a7c27f6424693ab296373da4c14d7b | /*
* Copyright (c) 2016, 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.
*
*/
#include <pr... | C++ | proxygen/lib/http/codec/experimental/HTTP2Framer.cpp | Orvid/proxygen | bsd-3-clause | 25,806 | 793 | codeparrot/github-code |
1d443543d247369ec57e1b508a80e6ca422cae5502a40d199f92198e4fea7996 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# ... | Python | src/primaires/pnj/commandes/chemin/voir.py | vlegoff/tsunami | bsd-3-clause | 3,480 | 81 | codeparrot/github-code |
0c66b70efac0ef7e5e4b838f76f42eab53dcc2b029116e07e2155659c717660a | import FontAwesome from '@expo/vector-icons/build/FontAwesome';
import MaterialIcons from '@expo/vector-icons/build/MaterialIcons';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { useFocusEffect } from '@react-navigation/native';
import { StackNavigationProp } from '@react-navigation/stac... | TypeScript | apps/native-component-list/src/screens/Location/BackgroundLocationMapScreen.tsx | exponentjs/exponent | bsd-3-clause | 15,261 | 476 | codeparrot/github-code |
5c620f440fed77ef4b592ae40e0dae293ec64c029f67b45e2a0f588e975cad45 | #ifndef ENTRY_H
#define ENTRY_H
#include "Object.h"
#include "CompiledCode.h"
#include "String.h"
#define ENTRY_MAX_ARGS_SIZE 16
typedef struct {
_Bool isHandle;
union { Value value; Object *handle; };
} EntryArg;
typedef struct {
size_t size;
EntryArg values[ENTRY_MAX_ARGS_SIZE];
} EntryArgs;
Value invokeMeth... | C | vm/Entry.h | lm/yet-another-smalltalk-vm | bsd-3-clause | 1,073 | 46 | codeparrot/github-code |
ab3f3759983c4440cf2746d32914cdb0ed07a447d3e290a0443aa3b8678e6299 | #ifndef SEQUENCE_INDEX_DATABASE_H_
#define SEQUENCE_INDEX_DATABASE_H_
#include <fstream>
#include <iostream>
#include <vector>
#include <assert.h>
#include <stdlib.h>
#include <sstream>
#include <algorithm>
#include "Types.h"
#include "DNASequence.h"
#include "utils/StringUtils.h"
using namespace std;
#define SEQUEN... | C | common/datastructures/metagenome/SequenceIndexDatabase.h | ylipacbio/ForReferenceOnly | bsd-3-clause | 7,231 | 301 | codeparrot/github-code |
09dd6c94863d99932ea668f28fe246651b5f1851795381d01daa7c8a7ad9b0fa | /*
Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... | C++ | src/kre/ParticleSystemEmitters.hpp | sweetkristas/swiftly | bsd-3-clause | 3,459 | 109 | codeparrot/github-code |
b4cc9fc0c483c5b9b35210428ad08bc258c43335f15e111cb61fa1fce25c836c | {-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
module React.Flux.Mui.RadioButton.RadioButtonGroup where
import Protolude
import Data.Aeson
import Data.Aeson.Casing
import Data.String (String)
import React.Flux
import React.Flux.Mui.Types
import React.Flux.Mui.Util
data ... | Haskell | react-flux-mui/src/React/Flux/Mui/RadioButton/RadioButtonGroup.hs | pbogdan/react-flux-mui | bsd-3-clause | 1,165 | 41 | codeparrot/github-code |
a426081cce4b913f49c2e57f8e7dd15806db1a38b1015435d4cd450fe4819cb3 | package com.navisens.pojostick.navishare;
import com.navisens.motiondnaapi.MotionDna;
import com.navisens.pojostick.navisenscore.*;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Created by Joseph on 11/30/17.
* <p>
* NaviShare provides functionality for communicating with other d... | Java | navishare/src/main/java/com/navisens/pojostick/navishare/NaviShare.java | navisens/Android-Plugin | bsd-3-clause | 6,973 | 239 | codeparrot/github-code |
39cf57c3968dd58c913aee645f123b1271852741f139004457df2aae0259f9a8 | -- |
-- Module: Threshold
-- Description: Time integrated threshold functions
-- Copyright: (c) 2013 Tom Hawkins & Lee Pike
--
-- Time integrated threshold functions typically used in condition monitoring.
module Language.Atom.Common.Threshold
( boolThreshold
, doubleThreshold
) where
import Language.Atom.Expre... | Haskell | Language/Atom/Common/Threshold.hs | Copilot-Language/atom_for_copilot | bsd-3-clause | 1,806 | 68 | codeparrot/github-code |
f88e4f20f230c88a5fe425e4bfd4058f27af8ce029ac964a381b43ef69e6649c | # ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Softwa... | Python | configman/converters.py | AdrianGaudebert/configman | bsd-3-clause | 15,400 | 372 | codeparrot/github-code |
4c0f7f10c40dff947fd948c6029085664209bdf7ce51bff0c8c9d972fedbb7fe | package org.mafagafogigante.dungeon.stats;
import org.mafagafogigante.dungeon.game.Id;
import org.jetbrains.annotations.NotNull;
import java.io.Serializable;
/**
* CauseOfDeath class that defines what kind of death happened and the ID of the related Item or Spell.
*/
public class CauseOfDeath implements Serializa... | Java | src/main/java/org/mafagafogigante/dungeon/stats/CauseOfDeath.java | ffurkanhas/dungeon | bsd-3-clause | 1,483 | 63 | codeparrot/github-code |
f5b3a3190c0d82e8795b4907daef608de4e47bd8d104dd8f57c008db1869d558 | // Benoit 2011-05-16
#include <ros/node_handle.h>
#include <ros/subscriber.h>
#include <ros/rate.h>
#include <eu_nifti_env_msg_ros/RequestForUUIDs.h>
#include "NIFTiROSUtil.h"
#include "UUIDsManager.h"
namespace eu
{
namespace nifti
{
namespace ocu
{
const char* UUIDsManager::T... | C++ | nifti_user/ocu/src/UUIDsManager.cpp | talkingrobots/NIFTi_OCU | bsd-3-clause | 4,758 | 148 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.