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 |
|---|---|---|---|---|---|---|---|---|
5bf9161a2146f5a4637a9a917e42cb937892e1affe43bcd3d060810b376742e7 | package main
import (
"fmt"
"github.com/chai2010/gettext-go/gettext"
"github.com/lxc/lxd"
"github.com/lxc/lxd/shared"
)
type deleteCmd struct{}
func (c *deleteCmd) showByDefault() bool {
return true
}
func (c *deleteCmd) usage() string {
return gettext.Gettext(
`Delete containers or container snapshots.
... | GO | lxc/delete.go | beni55/lxd | apache-2.0 | 1,549 | 84 | codeparrot/github-code |
ab0cb4f02b6cdfd97cb29e12d1ed69d50b7c76613a28361c368e276f1214afcd | /*
* Copyright © 2014 - 2021 Leipzig University (Database Research Group)
*
* 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/LICENSE-2.0
*
* Unles... | Java | gradoop-flink/src/test/java/org/gradoop/flink/model/impl/operators/matching/single/cypher/common/functions/ReverseEdgeEmbeddingTest.java | galpha/gradoop | apache-2.0 | 1,567 | 46 | codeparrot/github-code |
eae6d1235df3fbca1b2e9ae9b1d8ae131c7392573cabc9d4a62c47cfd78d27e8 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/protocol/FetchShuffleBlocks.java | bdrillard/spark | apache-2.0 | 4,391 | 131 | codeparrot/github-code |
328ee60938b72cf1c360b733fc629ec344ff5d431b54582643caff991826f2dd | package com.taobao.api.internal.mapping;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Date;
import ... | Java | alidayu/src/main/java/com/taobao/api/internal/mapping/Converters.java | exercisecode/alidayu_demo | apache-2.0 | 6,950 | 217 | codeparrot/github-code |
26c0cd39ba1732a3cfcf91b75d5cce17c4f00ca9fb87d1f8f5eada5e2be85742 | #
# Author:: Adam Jacob (<adam@opscode.com>)
# Author:: Bryan McLellan (<btm@loftninjas.org>)
# Author:: Claire McQuin (<claire@opscode.com>)
# Author:: Doug MacEachern (<dougm@vmware.com>)
# Author:: Kurt Yoder (<ktyopscode@yoderhome.com>)
# Author:: Paul Mooring (<paul@opscode.com>)
# Copyright:: Copyright (c) 2008, ... | Ruby | lib/ohai/plugins/uptime.rb | MSOpenTech/ohai | apache-2.0 | 3,167 | 105 | codeparrot/github-code |
374ee2ab08db377812051dd5338ad35c146cc561ee3ed1705feee7048080931b | package com.mossle.core.util;
import java.util.List;
import org.apache.commons.lang3.StringEscapeUtils;
public class StringUtils {
protected StringUtils() {
}
public static boolean isEmpty(String text) {
return org.apache.commons.lang3.StringUtils.isEmpty(text);
}
public static boolean ... | Java | src/main/java/com/mossle/core/util/StringUtils.java | JakFlew/lemon | apache-2.0 | 2,298 | 79 | codeparrot/github-code |
8a558e93957fb8d950ffaf502636f6a6d3ae332393fb8d2ad01274ae759ee0fc | package com.taskadapter.redmineapi.bean;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
/**
* Redmine's project version
* <p>
* REMARK: currently this is only used with Issues, so only id and name are filled
*/
public class Version implements Identifiab... | Java | src/main/java/com/taskadapter/redmineapi/bean/Version.java | sleroy/redmine-java-api | apache-2.0 | 4,147 | 167 | codeparrot/github-code |
5fc37662de346b4552093dd2944d6fb8492fb2a7d668bb7d91541ef58ed7c39d | # --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table authorised_user (
id bigint not null,
user_name varchar(255),
constraint pk_authorised_user primary key (id))
;
create table security_rol... | SQL | play24/external-modules/deadbolt/java/conf/evolutions/default/1.sql | play2-maven-plugin/play2-maven-test-projects | apache-2.0 | 2,469 | 75 | codeparrot/github-code |
f42b4e8f1f87accface34ca0386eba560391b495bbc16a3a2d9a4c233369a4f2 |
/* First created by JCasGen Mon May 26 21:43:18 EDT 2008 */
package org.apache.uima.calaisType.entity;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.calaisType.Entity;
/**
* Updated by JCasGen Mon May 26 21:43:18 EDT... | Java | OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/entity/EmailAddress.java | apache/uima-sandbox | apache-2.0 | 2,224 | 72 | codeparrot/github-code |
39bdf2c5aab2707f19d854f2f544437128c0e37c525747438c36d706d1a2d519 | <!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); yo... | HTML | doc/conflict-solving-algo.html | sbt/ivy | apache-2.0 | 4,739 | 116 | codeparrot/github-code |
391761c18067ac8438efaf2131f39c91051c9736dddbf63db025b7ece756b95c | window.onload = function ()
{
var addition_ = document.getElementById("addition");
var addition_sub = document.getElementById("addition_sub");
var set_save = document.getElementById("set_save");
// 一、空模板 跳转到设置 模板
addition_sub.onclick = function ()
{
addition.style.display = ... | JavaScript | zhaoweihuo_static-master/js/freight_module.js | shenshanyikuchai/daimanman | apache-2.0 | 44,918 | 966 | codeparrot/github-code |
9c7233492837188918e86ad0837e9073404e1ae214d33ec96a70763d7328ac45 | package cn.itcast_05;
public class GetThread implements Runnable {
private Student s;
public GetThread(Student s) {
this.s = s;
}
@Override
public void run() {
while (true) {
synchronized (s) {
if (!s.flag) {
// Èç¹ûûÓÐÊý¾Ý£¬¾ÍµÈ´ý
try {
s.wait(); // t2¾ÍµÈ´ýÁË,ÊÍ·ÅÁËËø¶ÔÏó,´ÓÄÄÀïµø... | Java | day24/code/day24_Thread/src/cn/itcast_05/GetThread.java | planecyc/Java | artistic-2.0 | 584 | 38 | codeparrot/github-code |
7d3ae90ec67a57d1f1c8bd4bf200579da13b6f0641af3531e182c96ed4203681 | // Copyright (C) 2019 by Pedro Mendes, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and... | C++ | copasi/sbmlunit/Expression2PresentationMMLUnits.cpp | jonasfoe/COPASI | artistic-2.0 | 9,286 | 296 | codeparrot/github-code |
c7de1ed582fa78070aeab107623298826a5fb15ccbeb64a20bff20188dede460 | /*
* Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
* Copyright (C) 2006 Apple Computer Inc.
* Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2008 Rob Buis <buis@kde.org>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
*
* This library is free so... | C++ | rendering/svg/RenderSVGInlineText.cpp | Treeeater/WebPermission | bsd-2-clause | 11,217 | 273 | codeparrot/github-code |
d178dcc832892fde6772d23ebcedb2a14c463b31bd621e225cadaf891db0e3b3 | /*
* Copyright (c) 2010, Intel Corporation
* 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 lis... | C | modules/win32.base.messages/src/AES-NI/intel_aes.c | Devronium/ConceptApplicationServer | bsd-2-clause | 8,528 | 295 | codeparrot/github-code |
e1418ec020624ef39f8beff4ce100b73aa259b15a7caa90e0c93ec25b09fa16a | /*
* Copyright (c) 2018, NotFoxtrot <https://github.com/NotFoxtrot>
* Copyright (c) 2018 Abex
* 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... | Java | runelite-client/src/main/java/net/runelite/client/plugins/farmingtracker/FarmingWorld.java | Noremac201/runelite | bsd-2-clause | 9,976 | 248 | codeparrot/github-code |
bdae5e15def4deb00001ca22ba5b6469612c55f4b52072182966934d293741f0 | /*
* Copyright (C) 2006 Apple 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 conditions ... | C | platform/Timer.h | aosm/WebCore | bsd-2-clause | 6,243 | 207 | codeparrot/github-code |
0dc8bffc1c5c334969ef12fb42e1a0d96303ffe57eaee553eae0bf1daea0072d | class PyenvVirtualenv < Formula
desc "Pyenv plugin to manage virtualenv"
homepage "https://github.com/pyenv/pyenv-virtualenv"
url "https://github.com/pyenv/pyenv-virtualenv/archive/v1.1.5.tar.gz"
sha256 "27ae3de027a6f6dccdca4085225512e559c6b94b31625bd2b357a18890a1e618"
license "MIT"
version_scheme 1
head ... | Ruby | Formula/pyenv-virtualenv.rb | rwhogg/homebrew-core | bsd-2-clause | 1,358 | 46 | codeparrot/github-code |
758242fee67218bcc75ffa979e78f4aad2c6b961bc07437a9bba73291534c3fd | class Boost < Formula
desc "Collection of portable C++ source libraries"
homepage "https://www.boost.org/"
url "https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2"
sha256 "f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41"
license "BSL-1.0"
head "https://git... | Ruby | Formula/boost.rb | zyedidia/homebrew-core | bsd-2-clause | 3,288 | 104 | codeparrot/github-code |
f0765a379d565fcb504d4dfb20dca3653def40510e3b24049d626cf556609346 | require "language/haskell"
class Agda < Formula
include Language::Haskell::Cabal
desc "Dependently typed functional programming language"
homepage "http://wiki.portal.chalmers.se/agda/"
stable do
url "https://github.com/agda/agda/archive/v2.5.1.1.tar.gz"
sha256 "a0e23cbbcfd5a7e182d52efb9302c1c3508559... | Ruby | Formula/agda.rb | jvehent/homebrew-core | bsd-2-clause | 5,169 | 192 | codeparrot/github-code |
67762720c6626c097e8c2acc31b65c459aa4c2e843d6426a01a7ff452fbf2746 | package memcache
import (
"bufio"
"bytes"
"errors"
"io"
"io/ioutil"
"log"
"net"
"sync"
"time"
)
var (
ErrCacheMiss = errors.New("memcache.Client: cache miss")
ErrCasidMismatch = errors.New("memcache.Client: casid mismatch")
ErrClientNotRunning = errors.New("memcache.Client: the clien... | GO | libs/go/memcache/client.go | postfix/ybc | bsd-2-clause | 25,848 | 1,088 | codeparrot/github-code |
b1156110e6dc2f097323f0f33a78badd67c82a60e2c797b444efdf29a05ff46f | /////////////////////////////////////////////////////////////////////////////
//
// File : QClipboard.cpp
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:02:05
//
// Warning : this file is machine generated ... | C++ | qws/src/gui/QClipboard.cpp | keera-studios/hsQt | bsd-2-clause | 8,209 | 185 | codeparrot/github-code |
f97875228066d05fdb101156e0dfe79b2f282ae8011fb08d9eded9cf2004235e | using System.Threading;
using bv.common.Core;
using bv.common.Resources;
using bv.model.Model.Core;
using DevExpress.XtraPivotGrid.Localization;
namespace bv.winclient.Localization
{
public class XtraPivotGridLocalizer : PivotGridLocalizer
{
public override string GetLocalizedString(PivotGr... | C# | EIDSS v6/bv.winclient/Localization/PivotGridLocalizer.cs | EIDSS/EIDSS-Legacy | bsd-2-clause | 813 | 39 | codeparrot/github-code |
7a054c4759ca9934f8e248541ed524471b9e36c6cdeb257cb33ce56acba667e3 | module Hbc
class CaskError < RuntimeError; end
class AbstractCaskErrorWithToken < CaskError
attr_reader :token
attr_reader :reason
def initialize(token, reason = nil)
@token = token
@reason = reason.to_s
end
end
class CaskNotInstalledError < AbstractCaskErrorWithToken
def to_s... | Ruby | Library/Homebrew/cask/lib/hbc/exceptions.rb | amar-laksh/brew_sudo | bsd-2-clause | 4,476 | 172 | codeparrot/github-code |
2ccaaa908d474d8830e952017f3f041d38864e6f8535649abe53cd6a8ce0811d | class ShibbolethSp < Formula
desc "Shibboleth 2 Service Provider daemon"
homepage "https://wiki.shibboleth.net/confluence/display/SHIB2"
url "https://shibboleth.net/downloads/service-provider/3.0.4/shibboleth-sp-3.0.4.tar.bz2"
sha256 "f5dc0fd028b74db4aaae76b59ec98e8a719c38cfe0f1d722feb2d5e0b9880cff"
revision ... | Ruby | Formula/shibboleth-sp.rb | BrewTestBot/homebrew-core | bsd-2-clause | 2,460 | 86 | codeparrot/github-code |
eab59540a004c156de237c91e0bd5ccafaa1a446b0a9fce4d4b2c4861bb18429 | package com.github.sandor_balazs.nosql_java.service;
import com.github.sandor_balazs.nosql_java.domain.Country;
import com.github.sandor_balazs.nosql_java.web.rest.dto.CountryDTO;
import java.util.LinkedList;
import java.util.List;
/**
* Service Interface for managing Country.
*/
public interface CountryService {
... | Java | mongodb/src/main/java/com/github/sandor_balazs/nosql_java/service/CountryService.java | sandor-balazs/nosql-java | bsd-2-clause | 773 | 37 | codeparrot/github-code |
79a4dba2959f9c3e3fe8c28043bee1f62445893b8586d56038ac15f9efb65b7a | package com.wut.resources.payments;
import com.wut.model.Data;
import com.wut.model.map.MessageData;
import com.wut.pipeline.WutRequest;
import com.wut.provider.creditcard.PaymentProvider;
import com.wut.resources.operations.ParameteredOperation;
// TODO make a read operation (use parameter id)
public class GetPaymen... | Java | payment/src/main/java/com/wut/resources/payments/GetPaymentOperation.java | rpalmite/webutilitykit | bsd-2-clause | 818 | 31 | codeparrot/github-code |
e579bb6d303a2895a317e43e5f5756414c2791d85198e5a8c1ffdb003040c717 | /*
* File: features.h
* Author: chi
*
* Created on July 25, 2014, 2:36 PM
*/
#ifndef FEATURES_H
#define FEATURES_H
#include "sp_segmenter/utility/utility.h"
//#include "../omp/ompcore.h"
struct Hypo{
cv::Rect box;
float score;
int label;
float ap_ratio;
};
#define FEA_LAYER 5
#define FOCAL_... | C | include/sp_segmenter/features.h | jhu-lcsr/sp_segmenter | bsd-2-clause | 15,299 | 356 | codeparrot/github-code |
e4d44ae9c35f96aa8f8c60497aca22b52347b3ea6384936a4fb5d63d8cea73ec | // Package introspect provides some utilities for dealing with the DBus
// introspection format.
package introspect
import "encoding/xml"
// The introspection data for the org.freedesktop.DBus.Introspectable interface.
var IntrospectData = Interface{
Name: "org.freedesktop.DBus.Introspectable",
Methods: []Method{
... | GO | introspect/introspect.go | godbus/dbus | bsd-2-clause | 2,571 | 87 | codeparrot/github-code |
f23821d7556a6cfa72255d5ec5fbf7d38dd46aa37a09994a26014dd8117aa1e8 | /*!
* OS.js - JavaScript Cloud/Web Desktop Platform
*
* Copyright (c) 2011-2016, Anders Evenrud <andersevenrud@gmail.com>
* 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. Redistribu... | JavaScript | src/client/javascript/gui.js | arduino-org/Arduino-OS | bsd-2-clause | 22,411 | 783 | codeparrot/github-code |
3cb93e3fb0eabbb06fec19b33591a69a1fa7fd551521dfc169f7aebf531da3e6 | ASN_MODULE_SOURCES= \
Attribute.c \
AttributeType.c \
AttributeValue.c \
AttributeTypeAndValue.c \
X520name.c \
X520CommonName.c \
X520LocalityName.c \
X520StateOrProvinceName.c \
X520OrganizationName.c \
X520OrganizationalUnitName.c \
X520Title.c \
X520dnQualifier.c \
X520countryName.c \
X520SerialNumber... | Makefile | examples/sample.source.PKIX1/Makefile | fbx/asn1c | bsd-2-clause | 12,707 | 453 | codeparrot/github-code |
85dc6fdcd81e040c1f3b703cf70e86f3aad36c769b6e8a3a6d64dbc22ca4c4a2 | /////////////////////////////////////////////////////////////////////////////
// Name: src/qt/menuitem.cpp
// Author: Peter Most, Mariano Reingart
// Copyright: (c) 2010 wxWidgets dev team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// F... | C++ | wxWidgets-3.1.0/src/qt/menuitem.cpp | adouble42/nemesis-current | bsd-2-clause | 3,926 | 169 | codeparrot/github-code |
0527e6ec040c7359958382e59eed1f3dd36c453435a812c2a7123720174773f0 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPolyDataMapper.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 software ... | C | Rendering/Core/vtkPolyDataMapper.h | aashish24/VTK-old | bsd-3-clause | 4,442 | 132 | codeparrot/github-code |
e8f8b950399d350de907c3307d658f09bc734721b2e3f93dfafb3d5873e7c760 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta ht... | HTML | v0.13.2/generated/statsmodels.stats.weightstats._tconfint_generic.html | statsmodels/statsmodels.github.io | bsd-3-clause | 23,622 | 532 | codeparrot/github-code |
ca7a3ecebb18aeba5e403f11b0307ed282940fb90193b88f59c38a6aa1495c94 | /*
* Exports definition for virtio socket WSK interface
*
* Copyright (c) 2021 Virtuozzo International GmbH
*
* 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 ... | C | viosock/inc/vio_wsk.h | virtio-win/kvm-guest-drivers-windows | bsd-3-clause | 2,485 | 78 | codeparrot/github-code |
1873902a09da21b313f15d896341c721caabc5d4f3b58425154c019663de2757 | /**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <kdb.h>
#include <stdio.h>
int main (void)
{
KeySet * myConfig = ksNew (0, KS_END);
Key * key = keyNew ("system/test/myapp", KEY_END);
KDB * handle = kdbOpen (key);
kdbGet (handle, myConfig, key);
... | C | examples/external/pkgconfig/application.c | BernhardDenner/libelektra | bsd-3-clause | 876 | 51 | codeparrot/github-code |
73aa2bf9e8cf11d618be87b2eed95f8a154788ac9ce799682b0396cd810a5674 | #!python
"""
VMController Host - a general purpose host-side virtual machine controller via exposed hypervisors apis.
"""
try:
import os
import sys
import logging
import warnings
import multiprocessing
import time
import inject
from twisted.internet import reactor
from pkg_resource... | Python | src/vmcontroller.host/vmcontroller/host/__main__.py | dgquintas/vmcontroller.unstable | bsd-3-clause | 8,090 | 228 | codeparrot/github-code |
a9d02fa0de9a74369d82858d3be2cd7aeab107d883fba7780884586b75d43d53 | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | C | libs/maps/include/mrpt/slam/CHeightGridMap2D.h | samuelpfchoi/mrpt | bsd-3-clause | 7,376 | 241 | codeparrot/github-code |
64789f0fdfb79f1b4e131d15793eae6114c6b11a488ed08661348ec7cc481299 | // 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.
#ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_
#define MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_
#include <jni.h>
#include <set>
#include <string>
#include ... | C | media/base/android/media_codec_util.h | ds-hwang/chromium-crosswalk | bsd-3-clause | 2,824 | 80 | codeparrot/github-code |
9df4443aefd7cf897fd79e46e4639e8ed937712f0840d2dc72cedffea4d44244 | @ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=build
set TOOLSPATH=../tools
set DATASETBUILD=dataset_rst.py
set NOTEBOOKBUILD=nbgenerate.py
set FOLDTOC=fold_toc.py
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
if NOT "%PAPER%"... | Batchfile | docs/make.bat | bert9bert/statsmodels | bsd-3-clause | 5,718 | 192 | codeparrot/github-code |
1915e54a390063ac66777f1f6e77e0f0ec42a183347cc0ae0fa817e67d83849f | /*
* demo.js
*
* Main script controlling the web-based demo.
*
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* ... | JavaScript | third_party/lwip-1.4.0/apps/httpserver_raw_io/fs_beaglebone/ti-script.js | vastsoun/bbmc-starterware | bsd-3-clause | 8,198 | 371 | codeparrot/github-code |
72f2a5a5aaa555d46547c5fae24f926341a208ce7eb94f102670e00ab22080c3 | /* Gearman server and library
* Copyright (C) 2008 Brian Aker, Eric Day
* All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the COPYING file in the parent directory for full text.
*/
/**
* @file
* @brief Blob slap client utility
*/
#include <config.h>
#include <benchmark/be... | C++ | benchmark/blobslap_client.cc | kitech/gearmand | bsd-3-clause | 10,180 | 391 | codeparrot/github-code |
bf7c4f4f35019f12a79bdefd251cb013b428eb592e28e5b1e17bc479da8dc6a2 | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org
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 grant... | C | src/chrono/collision/bullet/BulletCollision/CollisionShapes/cbtHeightfieldTerrainShape.h | projectchrono/chrono | bsd-3-clause | 6,602 | 163 | codeparrot/github-code |
27f96390fdfdfa15ad3830edffc3a2fc09267efa941d672be0fd8bd88955161b | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, John Haddon. All rights reserved.
// Copyright (c) 2017, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided... | C++ | src/GafferScene/SetAlgo.cpp | lucienfostier/gaffer | bsd-3-clause | 14,783 | 562 | codeparrot/github-code |
2ad751cb1ac4fa7bf5547c94bd74bb6b33ab27f612e5d4d638df16f7ca077c32 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE806_char_alloca_snprintf_83_bad.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE806.label.xml
Template File: sources-sink-83_bad.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSou... | C++ | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s06/CWE121_Stack_Based_Buffer_Overflow__CWE806_char_alloca_snprintf_83_bad.cpp | JianpingZeng/xcc | bsd-3-clause | 1,690 | 48 | codeparrot/github-code |
d474024ac0f0be907b5a1da7a841bfdd84bac993f76272a33c708c78b557acfc | package tarea62;
/**
*
*
* Modela la definición de todos los objetos de tipo
* <code>Bala</code>
*
* @author Jose Humberto Garza Rosado
* @version A00808689
* @date 24/02/2016
*/
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.image.ImageObserver;
import javax.swin... | Java | Proyecto_Final/Flood/Malo.java | humberto-garza/VideoJuegos | bsd-3-clause | 860 | 40 | codeparrot/github-code |
7d86234068abddc19a8397c5ecbb7470a5717a617ea25bee6ef11dd514c0e5f1 | // 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 NET_THIRD_PARTY_QUIC_CORE_CRYPTO_QUIC_RANDOM_H_
#define NET_THIRD_PARTY_QUIC_CORE_CRYPTO_QUIC_RANDOM_H_
#include <cstddef>
#include <cstdint>... | C | net/third_party/quic/core/crypto/quic_random.h | youtube/cobalt | bsd-3-clause | 959 | 34 | codeparrot/github-code |
2825c2964c78101e486a8eddc760deff540c16082430c00f00d798fbda68d3ef | /*************************************************************
* Project: NetCoreCMS *
* Web: http://dotnetcorecms.org *
* Author: OnnoRokom Software Ltd. *
* Website: www.onnorokomsoftware.com *
* ... | C# | NetCoreCMS.Framework/Core/Events/App/AppActivity.cs | OnnoRokomSoftware/NetCoreCMS | bsd-3-clause | 1,402 | 40 | codeparrot/github-code |
5fb5826f96d3f17ba6654148d79d1dc2bb57fd2319e0621109110eff821e4726 | // Copyright 2010 The Go 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 html implements an HTML5-compliant tokenizer and parser.
Tokenization is done by creating a Tokenizer for an io.Reader r. It is the
caller's respons... | GO | html/doc.go | spiffylabs/net | bsd-3-clause | 3,434 | 107 | codeparrot/github-code |
309f3526765ac590d315717b705ae7ef7e5d68ff82ac05a78b0b5ba23b2be894 | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2015. 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... | C++ | wpiutil/src/support/Base64.cpp | 333fred/ntcore | bsd-3-clause | 6,683 | 153 | codeparrot/github-code |
cc0364a0712ada083d1e5d4a5eac33088709039de6c8177e14341ce267098d75 | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This module helps emulate Visual Studio 2008 behavior on top of other
build systems, primarily ninja.
"""
import os
import re
import subprocess
import sys
fr... | Python | pylib/gyp/msvs_emulation.py | FelixZYY/gyp | bsd-3-clause | 45,057 | 1,020 | codeparrot/github-code |
45d2b7424f0dc233bb0a57ea9b991314c7e3343695577e217100b8e94c6aadd2 | package ca.fuwafuwa.kaku.XmlParsers.KanjiDict2.Kd2DTO;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.util.HashMap;
import ca.fuwafuwa.kaku.XmlParsers.CommonParser;
import ca.fuwafuwa.kaku.XmlParsers.KanjiDict2.Kd2Consts;
/**
* Created by ... | Java | app/src/main/java/ca/fuwafuwa/kaku/XmlParsers/KanjiDict2/Kd2DTO/Kd2QCode.java | Xyresic/Kaku | bsd-3-clause | 943 | 32 | codeparrot/github-code |
3dd01bcd0bcb172d7a9ee5236463aa47f269ff0c8cdea1992343d3d48f7bd40e | #!/usr/bin/env python
#
# 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.
"""Provisions Android devices with settings required for bots.
Usage:
./provision_devices.py [-d <device serial number>]
"""
... | Python | devil/devil/android/tools/provision_devices.py | benschmaus/catapult | bsd-3-clause | 23,798 | 650 | codeparrot/github-code |
273a85e7c7474d93521f5be3c9b6b7743c004ba6318f73b78bd2d65c69a7dacb | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using OpenMetaverse;
using OpenMetaverse.Packets;
namespace Aurora.Framework
{
#region Enumerations
public enum PIDHoverType
{
Ground,
GroundAndWater,
Water,... | C# | VirtualReality/Framework/SceneInfo/ISceneChildEntity.cs | NanaYngvarrdottir/Software-Testing | bsd-3-clause | 11,100 | 496 | codeparrot/github-code |
f34356243977113479503f084eef783c5e49360732009e139895350064438b40 | // Copyright 2011 Google Inc.
//
// This code is licensed under the same terms as WebM:
// Software License Agreement: http://www.webmproject.org/license/software/
// Additional IP Rights Grant: http://www.webmproject.org/license/additional/
// -----------------------------------------------------------------------... | C | third_party/libwebp/dec/buffer.c | aYukiSekiguchi/ACCESS-Chromium | bsd-3-clause | 6,183 | 199 | codeparrot/github-code |
6719663d34a337e492380ea7de5d0aa34f9a3e3f9d2acb89bcc54ad92a001672 | <!doctype html>
<html>
<head>
<title>Tracks Layout</title>
<link href="index.css" rel="stylesheet">
<script src="../../../polymer/polymer.js"></script>
<link href="elements.html" rel="import">
</head>
<body>
<polymer-element name="tracks-app">
<template>
<style style="display: none;">
#sideb... | HTML | sjmiles/Thing/index.html | PolymerLabs/labs | bsd-3-clause | 6,301 | 199 | codeparrot/github-code |
2f59462765c4a961882a88c68f4d7db45f5bf20731ade3364c015ad6077a5871 | {-# LANGUAGE ScopedTypeVariables #-}
module Types where
import Debug.Trace
import Test.QuickCheck
type Longitude = Double -- -180 .. 180
type Latitude = Double -- -90 .. 90
newtype Geographic = Geographic (Longitude,Latitude)
deriving Show
type ScreenX = Double -- -1 .. 1, + on right
type ScreenY = Doubl... | Haskell | projections/Types.hs | andygill/willowbrae | bsd-3-clause | 4,672 | 143 | codeparrot/github-code |
3be557996f432470f392f442b48753623507aec051201841c27ebcb327371a86 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_char_memmove_54d.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml
Template File: sources-sink-54d.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Ini... | C++ | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s04/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_char_memmove_54d.cpp | JianpingZeng/xcc | bsd-3-clause | 1,266 | 51 | codeparrot/github-code |
8e65acd170546e79bbc9bb12a0a3ac2a1daa0f19033a683aa92ebed7e2b4c8be | /******************************************************************************
This source file is part of the Avogadro project.
Copyright 2012-2013 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
d... | C | avogadro/qtplugins/quantumoutput/quantumoutput.h | wadejong/avogadrolibs | bsd-3-clause | 2,498 | 103 | codeparrot/github-code |
930629feb7ab466c0f8d40444f98e8e3423a428403d1cea8a8963427a14f723b | /* Copyright (c) 2007, 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 condi... | C++ | src/windows/port.cc | svn2github/ctemplate | bsd-3-clause | 4,530 | 118 | codeparrot/github-code |
cbdd9c29b66fee721c3052d74eb670e5252377eadff9ca23b9329784287b0b49 | /*
* BSD 3-Clause License
* OpenHotSpot Framework 0.1.7
* Copyright (c) 2017, Matt Perez, all rights reserved.
*
* This source is licensed under the BSD 3-Clause License.
* The license can be found in the main directory for more
* information about using this program.
*/
#ifndef PARSER_H_
#define PARSER_H_
#inc... | C | src/utils/parser.h | ozylol/canalysis | bsd-3-clause | 818 | 41 | codeparrot/github-code |
22d068dd8ebd3fb01f5f1cb30410312761a828bd497edee00b33a1d4efba4551 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.dual import eig
from scipy.special import comb
from scipy.signal import convolve
__all__ = ['daub', 'qmf', 'cascade', 'morlet', 'ricker', 'morlet2', 'cwt']
def daub(p):
"""
The coefficients for the FIR low-pass fi... | Python | scipy/signal/wavelets.py | jamestwebber/scipy | bsd-3-clause | 13,701 | 474 | codeparrot/github-code |
281a141cf4985bdefce953ee9e4b3cea8c57ff4e3432f71bcc566d091ad39c6b | //
// File: DKDynamicsScene.cpp
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2004-2016 Hongtae Kim. All rights reserved.
//
#include "Private/BulletPhysics.h"
#include "DKMath.h"
#include "DKDynamicsScene.h"
namespace DKFramework::Private
{
struct CollisionDispatcher : public btCollisionDisp... | C++ | DK/DKFramework/DKDynamicsScene.cpp | tiff2766/DKLib | bsd-3-clause | 12,053 | 372 | codeparrot/github-code |
93fd362aae0f6078edc1817debcb201f9e2c8ed8ac3400bef7558bf29a519671 | <?php
/*
* Copyright 2018 Google LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... | PHP | src/Middleware/FixedHeaderMiddleware.php | googleapis/gax-php | bsd-3-clause | 2,539 | 71 | codeparrot/github-code |
573803607e4c49042d62ab3d749aacb677f71e690f9441ca2ab3dce440d566db | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jitsi.impl.neomedia.transform.dtmf;
import java.util.*;
import javax.media.*;
import org.jitsi.impl.neomedia.*;
import org.jitsi.impl.neomedia.transform.*;
i... | Java | lib-src/libjitsi/src/org/jitsi/impl/neomedia/transform/dtmf/DtmfTransformEngine.java | bejayoharen/java-bells | bsd-3-clause | 18,787 | 595 | codeparrot/github-code |
9687c84a47da53ae4d18ab4faa1f15d27ce1ad6b234b1dc65edaf77f13d76ed2 | // 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/ui/views/message_center/web_notification_tray_win.h"
#include <set>
#include "ash/root_window_controller.h"
#include "ash/s... | C++ | chrome/browser/ui/views/message_center/web_notification_tray_win_browsertest.cc | timopulkkinen/BubbleFish | bsd-3-clause | 8,805 | 221 | codeparrot/github-code |
f0588e1ff3181ba090a60a275ac9c9344de484a978a92affc961b9846fd6545a | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE400_Resource_Exhaustion__fscanf_sleep_84.h
Label Definition File: CWE400_Resource_Exhaustion.label.xml
Template File: sources-sinks-84.tmpl.h
*/
/*
* @description
* CWE: 400 Resource Exhaustion
* BadSource: fscanf Read data from the console using fscanf()
* ... | C | xcc/test/juliet/testcases/CWE400_Resource_Exhaustion/s01/CWE400_Resource_Exhaustion__fscanf_sleep_84.h | JianpingZeng/xcc | bsd-3-clause | 1,610 | 62 | codeparrot/github-code |
206c68a9320f5dcbabff42b6e5092e9e4d0a0698259eb005da9aa424d742eace | --test cast function by casting nchar varying data type to nchar(n) or nchar varying(n) data type
create class func_03(
varchartest varchar(20),
sinttest smallint,
inttest int,
numerictest numeric(38,10),
floattest float,
realtest real,
doublepretest doubl... | SQL | sql/_27_banana_qa/issue_5765_timezone_support/_00_dev_cases/_02_operator/_06_cast_op_with_tz/cases/1185.sql | CUBRID/cubrid-testcases | bsd-3-clause | 1,345 | 33 | codeparrot/github-code |
d79d49b281a17d590ccc3bb919b1f24bc01662f7bcc5eb032e5e90f16f5ec137 | package aleGrammar;
import java.io.*;
import java.util.ArrayList;
import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.ParserRuleReturnScope;
import org.antlr.runtime.RecognitionE... | Java | compiler/AleAntlr3Grammar/aleGrammar/FrontendBeta.java | modulexcite/superconductor | bsd-3-clause | 7,626 | 194 | codeparrot/github-code |
0883791b12f705deec04814e82b26d33a547c3b0296e8ae8134d1da91854d21d | //
// File: DKScene.h
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2004-2016 Hongtae Kim. All rights reserved.
//
#pragma once
#include "../DKFoundation.h"
#include "DKCamera.h"
#include "DKColor.h"
#include "DKModel.h"
#include "DKCollisionObject.h"
namespace DKFramework
{
/// @brief compose s... | C | DK/DKFramework/DKScene.h | tiff2766/DKLib | bsd-3-clause | 3,487 | 113 | codeparrot/github-code |
42b9cd2079ea3df7d39b70d5dab8e829d15ff7aba86841a3ce6b5fbb52c099f2 | // @flow
const { InvalidOptionArgumentError, Option, program } = require('commander');
const fs = require('fs');
const os = require('os');
const path = require('path');
const which = require('which');
const packageInfo = require('../package.json');
const Compile = require('./Compile');
const ElmJson = require('./ElmJs... | JavaScript | lib/elm-test.js | rtfeldman/node-elm-test | bsd-3-clause | 8,740 | 265 | codeparrot/github-code |
10811ee179a49cfcc7cffa8ad54a1dc4b8aa66f800d91b2825c7d8e6cb9fb996 | # encoding: UTF-8
#
# Copyright (c) 2010-2017 GoodData Corporation. 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.
require_relative 'base_action'
module GoodData
module LCM2
class CollectSegmentClients < Base... | Ruby | lib/gooddata/lcm/actions/collect_segment_clients.rb | vhtien/gooddata-ruby | bsd-3-clause | 3,046 | 104 | codeparrot/github-code |
6cd6123b21707ec58acb6030877f7f81269a32ec53017009dca8ea8d25d793ac | // Copyright 2016 The Go 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 tiff
import (
"bytes"
"encoding/binary"
"fmt"
"math"
"math/big"
"reflect"
)
/* FieldTypeRepr */
// These functions provide string representation... | GO | fieldtype_default.go | google/tiff | bsd-3-clause | 9,162 | 196 | codeparrot/github-code |
9da5caba707df3c66b69b795dafd00464616d4586e21fc5c4ba289262b8a01d3 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__src_wchar_t_alloca_cpy_08.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__src.label.xml
Template File: sources-sink-08.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Initialize dat... | C | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s09/CWE121_Stack_Based_Buffer_Overflow__src_wchar_t_alloca_cpy_08.c | JianpingZeng/xcc | bsd-3-clause | 4,100 | 139 | codeparrot/github-code |
cd0a4028058489a0e9b7fffd047458b2bba563b3cc16366d8e2a3981d0d43b25 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE546_Suspicious_Comment__HACK_15.c
Label Definition File: CWE546_Suspicious_Comment.label.xml
Template File: point-flaw-15.tmpl.c
*/
/*
* @description
* CWE: 546 Suspicious Comment
* Sinks: HACK
* GoodSink: Comments show no indications of hacks
* BadS... | C | xcc/test/juliet/testcases/CWE546_Suspicious_Comment/CWE546_Suspicious_Comment__HACK_15.c | JianpingZeng/xcc | bsd-3-clause | 2,662 | 107 | codeparrot/github-code |
b7f10c83dcb54a6466afa86e9e2573d91e55ae033def4eb129ab8a4f5ce13815 | #include "CGAL_typedefs.h"
#include <CGAL/Polyhedron_incremental_builder_3.h>
#include "kdtree.h"
template <class HDS>
class polyhedron_builder : public CGAL::Modifier_base<HDS>
{
private:
const std::vector<indexed_triangle_t>& indexed_triangles;
public:
polyhedron_builder(std::vector<indexed_triangle_t... | C | mesh_preprocessing/include/lamure/mesh/old/polyhedron_builder.h | 0x0AF/lamure | bsd-3-clause | 7,265 | 175 | codeparrot/github-code |
866ea92af5c3df8733cf31d9da698346db3f45b393dd15bbaf8ab25e1d840b2c | package org.python.types;
public class FrozenSet extends org.python.types.Object {
public java.util.Set<org.python.Object> value;
@org.python.Method(
__doc__ = "frozenset() -> empty frozenset object" +
"frozenset(iterable) -> frozenset object\n" +
"\n" +
... | Java | python/common/org/python/types/FrozenSet.java | gEt-rIgHt-jR/voc | bsd-3-clause | 3,680 | 105 | codeparrot/github-code |
3b591d756c96a8504b513af9d3e84327636859f338cbbde6ae53063d99f57400 | #!/bin/sh
# File: papi.c
# CVS: $Id$
# Author: Philip Mucci
# mucci@cs.utk.edu
# Mods: Kevin London
# london@cs.utk.edu
# Philip Mucci
# mucci@cs.utk.edu
# if make sure that the tests are built
if [ "x$BUILD" != "x" ]; then
cd testlib; make; cd ..
cd ctests; make... | Shell | src/run_tests.sh | arm-hpc/papi | bsd-3-clause | 3,292 | 179 | codeparrot/github-code |
479f139a6edb9cf9a3bc4b0ac29d9a9b2cfebb695975dfca6d780395ffe843eb | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | C++ | libs/obs/src/CSinCosLookUpTableFor2DScans.cpp | samuelpfchoi/mrpt | bsd-3-clause | 2,542 | 72 | codeparrot/github-code |
bf04792da02190a40c549bd81d17d2f878e6d71ebfc87eced1c676c8cdd99bb0 | {-# LANGUAGE CPP, NoMonomorphismRestriction #-}
#include "fusion-phases.h"
module Data.Array.Parallel.Unlifted.Stream.Segments
( streamSegsFromNestedUSSegd
, streamSegsFromVectorsUSSegd
, streamSegsFromVectorsUVSegd
, streamSegsFromVectorsUSSegdSegmap
, streamSegsFromVectorsUSSeg... | Haskell | dph-prim-seq/Data/Array/Parallel/Unlifted/Stream/Segments.hs | mainland/dph | bsd-3-clause | 13,609 | 318 | codeparrot/github-code |
a782776459869e974a95f45abd6e0b898f5392a1c8aab5998ba48b15e4e9fb04 | /* system independent sockets (basically for unix and Win)
* Copyright (C) 2000,1 Simon Urbanek
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; version 2.1 of the License
*
... | C | R/R-2.15.3/library/Rserve/client/cxx/sisocks.h | atifaziz/RserveCLI2 | bsd-3-clause | 7,166 | 242 | codeparrot/github-code |
2f11c14e20157ee4a8db78cb7af364ee328857ca74bbb75b2c1e1ab39d227949 | /*L
* Copyright Oracle inc, SAIC-F
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cadsr-util/LICENSE.txt for details.
*/
package gov.nih.nci.ncicb.cadsr.common.resource;
import java.io.Serializable;
import java.util.Map;
public interface FormInstructionChanges extends S... | Java | cadsrutil/src/java/gov/nih/nci/ncicb/cadsr/common/resource/FormInstructionChanges.java | CBIIT/cadsr-util | bsd-3-clause | 852 | 31 | codeparrot/github-code |
fa991047c30f1960fbc070b6bd3e42bbd5176bb347c4b5f8ff36283fdfeb06dc | {% extends "email/_base.html" %}
{% set width = 580 %}
{% block email_type %}user digests{% endblock %}
{% block extra_style %}
.centered {
text-align:center;
}
.section p,
.section ul li {
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
color:#333;
}
.section ul li {
margin-bottom:14px... | HTML | website/templates/email/digest.html | canvasnetworks/canvas | bsd-3-clause | 12,308 | 279 | codeparrot/github-code |
0e0b56640ebc5d038238eccb2922cd0408490a33ae1c926d945239e684190f55 | // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_JS_INTRINSIC_LOWERING_H_
#define V8_COMPILER_JS_INTRINSIC_LOWERING_H_
#include "src/base/compiler-specific.h"
#include "src/common/... | C | third_party/v8/src/compiler/js-intrinsic-lowering.h | youtube/cobalt | bsd-3-clause | 3,453 | 101 | codeparrot/github-code |
b303f70c03a0de3e1f3a949362a44fb7af3ab5ca143a055ca0a9a7ec707566ae | import pylab
import string
import matplotlib
matplotlib.rcParams['figure.subplot.hspace']=.45
matplotlib.rcParams['figure.subplot.wspace']=.3
labels=('Step=1','Step=.5','Step=.25','Step=.01')
steps=(1,.5,.25,.01)
pylab.figure(figsize=(8.5,11))
for i,intxt in enumerate(('O_RK1.txt','O_RK_5.txt','O_RK_25.txt','O_RK_... | Python | UMD/AST615/HW6_2/plot_orbit.py | justincely/classwork | bsd-3-clause | 1,806 | 73 | codeparrot/github-code |
573672be1b2b0a76f27809ae36c685230d3f3ebd1a2bd370542393eb9522f12e | using System;
using System.IO;
using System.Text;
namespace Inbox2.Platform.Channels.Extensions
{
public static class StreamExtensions
{
public static MemoryStream ToStream(this StringBuilder s)
{
return s.ToString().ToStream();
}
public static MemoryStream ToStream(this string s)
{
... | C# | Code/Platform/Channels/Extensions/StreamExtensions.cs | Klaudit/inbox2_desktop | bsd-3-clause | 1,474 | 67 | codeparrot/github-code |
f2fa907805217ffa1b07868673d76230b3f285985c6ff01dad813067afc54b75 | package BIDMach.models
import BIDMat.{Mat,SBMat,CMat,DMat,FMat,IMat,HMat,GMat,GIMat,GSMat,SMat,SDMat}
import BIDMat.MatFunctions._
import BIDMat.SciFunctions._
import edu.berkeley.bid.CUMAT
import BIDMach.datasources._
import BIDMach.updaters._
import BIDMach.mixins._
import BIDMach._
/**
* Factorization... | Scala | src/main/scala/BIDMach/models/FM.scala | bikash/BIDMach | bsd-3-clause | 15,746 | 437 | codeparrot/github-code |
b1cbb23b7d9231b51bfbfa89a0fc7a1b0a96d6e4fc35f1f0f3b7b924f4731192 | import urllib
import os
def process(url, destination):
destination = "jslibs/%s" % destination
if os.path.exists(destination):
return
try:
print url
urllib.urlretrieve(url, destination)
except Exception as e:
print "Failed", e
def get_pattern(prefix, url_pattern, ve... | Python | extras/jslibfetcher.py | magopian/amo-validator | bsd-3-clause | 9,177 | 454 | codeparrot/github-code |
d610a222fd0b3d424923ea442da241b232c854ad9103de40567965ddb2ab6fc3 | <!DOCTYPE html>
<html>
<head lang="ko">
<meta charset="utf-8">
<link rel="shortcut icon" href="http://projectbs.github.io/bsWebGL/favicon.ico" type="image/x-icon">
<title>10만개테스트 </title>
<script src='bsgl.js'></script>
<style>
body {
margin: 0;
padding: 0;
... | HTML | 001/004/02/rnd/OES_element_index_uint/index.html | shallaa/webGL | bsd-3-clause | 8,851 | 224 | codeparrot/github-code |
3bedbb22d3932c207275a087261edb82e08226aca563b3a2e2f4f47989a50ab3 | /*
* Copyright (c) 2016, Oracle and/or its affiliates.
*
* 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 ... | Java | projects/uk.ac.man.cs.llvm/src/uk/ac/man/cs/llvm/ir/model/elements/VoidCallInstruction.java | crbb/sulong | bsd-3-clause | 2,766 | 81 | codeparrot/github-code |
a0ee188c2725b4bc392f1a2b9aabe707e20aaa5cfa8cc2539bf439d19d0be8b3 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_listen_socket_fopen_42.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-42.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: listen_socket Read data using... | C++ | xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s02/CWE23_Relative_Path_Traversal__char_listen_socket_fopen_42.cpp | JianpingZeng/xcc | bsd-3-clause | 5,795 | 224 | codeparrot/github-code |
151f5933d980d9c039d7dfdc1367775bd0b697acc8b0470ab671c85feb987a9e | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_18.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml
Template File: sources-sink-18.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set data... | C | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_18.c | JianpingZeng/xcc | bsd-3-clause | 2,886 | 94 | codeparrot/github-code |
027a6d4611d03e5bad920bbbe48d8449ff8fa653ca66aae9c3cf88eff3564150 | /*
* Copyright 2015, 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 conditions a... | Java | core/src/test/java/io/grpc/internal/ClientCallImplTest.java | xzy256/grpc-java-mips64 | bsd-3-clause | 27,877 | 789 | codeparrot/github-code |
832a8c0ac4be8abae32698a91f6771c3e70de7709974db95a403b36fd58f81c8 | var page = tabris.create("Page", {
title: "Storing data on the device",
topLevel: true
});
var keyTextView = tabris.create("TextView", {
layoutData: {left: 10, top: 20},
text: "Key:"
}).appendTo(page);
var keyField = tabris.create("TextInput", {
layoutData: {left: 60, baseline: keyTextView, right: 10},
te... | JavaScript | examples/local-storage/local-storage.js | mkostikov/tabris-js | bsd-3-clause | 1,709 | 61 | codeparrot/github-code |
d3a2b29787f2fa63f86a0fa4e0d3f145ec97abdb2a8dd21c3a2c983ee544a16a | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE806_char_declare_snprintf_68b.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE806.label.xml
Template File: sources-sink-68b.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Ini... | C | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s07/CWE121_Stack_Based_Buffer_Overflow__CWE806_char_declare_snprintf_68b.c | JianpingZeng/xcc | bsd-3-clause | 1,969 | 62 | codeparrot/github-code |
a54548a4e691ff63b058406ec54c56cdca25fe506953e5354c63d6fa85ad8757 | <?php
namespace frontend\libraries\base;
use Yii;
use yii\web\Controller as WebController;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\helpers\Url;
class Controller extends WebController
{
/**
* @param \yii\base\Action $action
* @return bool
*/
public function beforeA... | PHP | frontend/libraries/base/Controller.php | djc1103617718/WangYi | bsd-3-clause | 850 | 41 | codeparrot/github-code |
4b0b4239b4dc0d86d27de879617f37a658fedb73106591b3a221961578651ca0 | /*
This is part of pyahocorasick Python module.
AutomatonSearchIterLong implementation
Author : Wojciech Muła, wojciech_mula@poczta.onet.pl
License : 3-clauses BSD (see LICENSE)
*/
#include "AutomatonSearchIterLong.h"
static PyTypeObject automaton_search_iter_long_type;
static PyObject*
au... | C | AutomatonSearchIterLong.c | pombredanne/pyahocorasick | bsd-3-clause | 7,993 | 268 | codeparrot/github-code |
326568240cb6746106c38e2c2edb252b86aec39dce447537841da170ada11cc1 | // Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_HELPER_H_
#define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_HELPER_H_
#include <set>
#include <ve... | C | components/sessions/core/tab_restore_service_helper.h | Bysmyyr/chromium-crosswalk | bsd-3-clause | 7,314 | 191 | codeparrot/github-code |
dcc6c92c2c9f4081857fbcdfc3039646146c7484cf52d7ac5f387ebcbb8b60ac | package minhhai2209.jirapluginconverter.plugin.properties;
public class PluginProperties {
private String company;
private String companyUrl;
private String groupId;
private String artifactId;
private String artifactName;
private String url;
private String description;
public String getGroupId() {
... | Java | src/main/java/minhhai2209/jirapluginconverter/plugin/properties/PluginProperties.java | minhhai2209/jira-plugin-converter | bsd-3-clause | 1,278 | 69 | codeparrot/github-code |
5f122f28fb9cf95b5f23bd3c939bafc904c6ffb8374a92160eb49c796d7d0717 | # 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.
"""Top-level presubmit script for Chromium.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presu... | Python | PRESUBMIT.py | CTSRD-SOAAP/chromium-42.0.2311.135 | bsd-3-clause | 65,851 | 1,797 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.