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 |
|---|---|---|---|---|---|---|---|---|
4a9a45b1f83df9762e4ddec8f59c8578fcdfa86aa7c38eceaad2e221e92f7977 | CREATE TABLE port_group (
id INTEGER CONSTRAINT port_group_id_nn NOT NULL,
network_id INTEGER CONSTRAINT port_group_network_id_nn NOT NULL,
network_tag INTEGER CONSTRAINT port_group_network_tag_nn NOT NULL,
usage VARCHAR2(32) CONSTRAINT port_group_usage_nn NOT NULL,
creation_date DATE CONSTRAINT port_group_cr_date... | SQL | upgrade/1.11.32/port_group.sql | quattor/aquilon | apache-2.0 | 3,619 | 76 | codeparrot/github-code |
aff6d9d9e5e4afcd6a47c3f5b19e41a51cf1c913c1f23f8c50973f64478fa1b0 | /* $Id$
*
* 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")... | Java | util/src/test/java/org/apache/etch/util/core/io/TestUdpConnection.java | OBIGOGIT/etch | apache-2.0 | 3,671 | 159 | codeparrot/github-code |
4cbad4c2cb127e0af3e00fb73c7bc17cf085d57ec9252d2abc9951958da52df9 | /*
* 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")... | Java | libraries/sql-generator/src/main/java/org/apache/polygene/library/sql/generator/implementation/grammar/builders/query/OrderByBuilderImpl.java | apache/zest-qi4j | apache-2.0 | 2,500 | 70 | codeparrot/github-code |
5dc46b7fce2f96d43ff3dd89e8406ec137c4ef9b9cdd38aca742186778318063 | /*
* 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 not ... | Java | geode-core/src/main/java/org/apache/geode/management/internal/cli/GfshParseResult.java | pivotal-amurmann/geode | apache-2.0 | 4,495 | 129 | codeparrot/github-code |
4875bcfa1e2bec44c690b090565e6d0b1a418e8096e2134b5d4162d723f94773 | /*
* Autopsy Forensic Browser
*
* Copyright 2011-2015 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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... | Java | Core/src/org/sleuthkit/autopsy/corecomponents/Installer.java | mhmdfy/autopsy | apache-2.0 | 6,087 | 167 | codeparrot/github-code |
4f7d78dffcd45f6870806859594efd225d82639414e112573c5ed8bd592fa690 |
package org.glob3.mobile.specific;
import java.util.Map;
import org.glob3.mobile.generated.IByteBuffer;
import org.glob3.mobile.generated.IJSONParser;
import org.glob3.mobile.generated.JSONArray;
import org.glob3.mobile.generated.JSONBaseObject;
import org.glob3.mobile.generated.JSONBoolean;
import org.glob3.mobile... | Java | JavaDesktop/G3MJavaDesktopSDK/src/org/glob3/mobile/specific/JSONParser_JavaDesktop.java | AeroGlass/g3m | bsd-2-clause | 3,373 | 99 | codeparrot/github-code |
e16f53dc3cccfbd12a0065b69fc61ba590aa4e0c25863d2254dc0a232334bba3 | /* Copyright (c) Citrix Systems, 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... | C# | XenModel/Actions/Pool/EnableHAAction.cs | kc284/xenadmin | bsd-2-clause | 5,304 | 120 | codeparrot/github-code |
8cfc17bef4a7d7ab684281f07592450822215ecd0ea2c0db89f900eea796e644 | # frozen_string_literal: true
require_relative "../../helpers/file"
module Byebug
#
# Reopens the +info+ command to define the +file+ subcommand
#
class InfoCommand < Command
#
# Information about a particular source file
#
class FileCommand < Command
include Helpers::FileHelper
in... | Ruby | lib/byebug/commands/info/file.rb | deivid-rodriguez/byebug | bsd-2-clause | 1,863 | 81 | codeparrot/github-code |
5a1aa88f5f56626f25c602e47ec6eda379aa3d8a31dbbc1bccc7a6f72b6e5d34 | #include "private.h"
#include <Elementary.h>
#include "config.h"
#include "termio.h"
#include "media.h"
#include "options.h"
#include "options_wallpaper.h"
#include "extns.h"
#include "media.h"
#include "main.h"
#include <sys/stat.h>
typedef struct _Background_Item
{
const char *path;
Eina_Bool selected;
Elm... | C | src/bin/options_wallpaper.c | ihorlaitan/terminology | bsd-2-clause | 15,837 | 534 | codeparrot/github-code |
7a71db0665aa3c0eec5fc40f789ebefc6c430699466ecb1cbfed04c1fc47af0a | /*
* Copyright (C) 2011 Google Inc. All rights reserved.
* Copyright (C) Research In Motion Limited 2011. 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 sour... | C++ | websockets/WebSocketHandshake.cpp | Treeeater/WebPermission | bsd-2-clause | 24,458 | 715 | codeparrot/github-code |
3a3c2a772cce3b25376d58219e87b68ccd40ab35a3a836bc8f9dfe2c687001db | /*
* Copyright (C) 1997 Martin Jones (mjones@kde.org)
* (C) 1997 Torben Weis (weis@kde.org)
* (C) 1998 Waldo Bastian (bastian@kde.org)
* (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010... | C++ | rendering/RenderTableSection.cpp | Treeeater/WebPermission | bsd-2-clause | 49,679 | 1,274 | codeparrot/github-code |
18c2175e2996946b26fb98dd836661ccc196e8c8854552bbf7c3f5f344b8180e | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import os
import logging
import traceback
import mallet_lda
class MalletTagTopics(mallet_lda.MalletLDA):
"""
Topic modeling with separation based on tags
"""
def _basic_params(self):
self.name = 'mallet_lda_tags'
self.categorical ... | Python | chrome/content/papermachines/processors/mallet_lda_tags.py | ChristianFrisson/papermachines | bsd-2-clause | 1,353 | 48 | codeparrot/github-code |
a40ba5ebe09785d6703daa505dbb61dfa191b54a5e00cf3dd9d0fc1e5ad4a23a | import sys
import os
import subprocess
import string
printable = set(string.printable)
def sanitize(txt):
txt = ''.join(filter(lambda c: c in printable, txt))
return txt
def traverse(t, outfile):
print>>outfile, sanitize(t.code+'\t'+t.description)
for c in t.children:
traverse(c, outfile)
de... | Python | examples/ICD9/load_ICD9_structure.py | yhalpern/anchorExplorer | bsd-2-clause | 971 | 44 | codeparrot/github-code |
5911248a354f56732ca2aab4e69a490b93bc132571898f2aeea0a4bd5d3deb42 | <?php
class GuildWarsMenu extends btThemeMenu {
public function __construct($sqlConnection) {
parent::__construct("guildwars", $sqlConnection);
}
public function displayLink() {
if($this->intMenuSection == 3) {
$menuLinkInfo = $this->menuItemObj->objLink->get_info();
$checkURL = p... | PHP | themes/guildwars/guildwarsmenu.php | bluethrust/cs4 | bsd-2-clause | 2,632 | 99 | codeparrot/github-code |
b6ab0e4a682215b3ea91e25b628444ed50a3883fd6664d4526495d4d11c53626 | // I would prefer this to be delete.lua and load it using NSBundle
// But I failed. I don't know why.
static const char * deletelua = ""
"-- This script receives three parameters, all encoded with\n"
"-- MessagePack. The decoded values are used for deleting a model\n"
"-- instance in Redis and removing any reference t... | C | Pods/ohmoc/Pod/Classes/OOCdeletelua.h | seppo0010/notion-ios | bsd-2-clause | 2,267 | 80 | codeparrot/github-code |
18035c1f11f8dda6aea6692529393f5c43cd7fac1dae758930236065f1edcdfb | /* Copyright (c) Citrix Systems, 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 l... | C# | XenServerHealthCheck/XenServerHealthCheckBugTool.cs | stephen-turner/xenadmin | bsd-2-clause | 8,839 | 227 | codeparrot/github-code |
7757f2535ba92ab5a95b8019e72844f72878d78c82c7594416a926a5137a66b9 | import { inject, injectable } from 'inversify';
import { ServiceIdentifiers } from '../../../container/ServiceIdentifiers';
import * as ESTree from 'estree';
import { TNodeWithStatements } from '../../../types/node/TNodeWithStatements';
import { TObjectExpressionKeysTransformerCustomNodeFactory } from '../../../types... | TypeScript | src/node-transformers/converting-transformers/object-expression-extractors/ObjectExpressionToVariableDeclarationExtractor.ts | javascript-obfuscator/javascript-obfuscator | bsd-2-clause | 7,524 | 166 | codeparrot/github-code |
5f6ffc5e117144826e4043b4a8e02d9cc16255df573a2c1eaa9e6ab422942748 | function(modal) {
function ajaxifyLinks (context) {
$('a.address-choice', context).click(function() {
modal.loadUrl(this.href);
return false;
});
$('.pagination a', context).click(function() {
var page = this.getAttribute("data-page");
... | JavaScript | wagtailplus/wagtailaddresses/templates/wagtailaddresses/component-chooser/chooser.js | MechanisM/wagtailplus | bsd-2-clause | 3,032 | 105 | codeparrot/github-code |
d988c4c896000ba59f7e6bd411cc75743b8805ebcdffebb8cc5c10b3064327df | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it ... | C | html/HTMLButtonElement.h | yoavweiss/RespImg-WebCore | bsd-2-clause | 2,638 | 80 | codeparrot/github-code |
a5b75c8d2de384f8c9c548e0f0143f81b8bc386fbd5c3dff7a81c6af0861f30f | /*
* Copyright (c) 2008-2011, Matthias Mann
*
* 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... | Java | src/main/java/de/matthiasmann/twl/WheelWidget.java | ColaMachine/MyBlock | bsd-2-clause | 16,353 | 573 | codeparrot/github-code |
4b64126ea9d2aaad31a8789e2c628eec67dce09a2a901600ad25dab8a92a3645 | /*
* Copyright (c) 2001 Alexander Kabaev
* 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 con... | C | head/lib/libkse/thread/thr_rtld.c | dplbsd/zcaplib | bsd-2-clause | 6,843 | 303 | codeparrot/github-code |
6583d6951d446bc39710d0f1de9ac4b54330678c76aeaff2304cd441c0d7ee3a | using System;
using System.Collections.Generic;
namespace NMaier.SimpleDlna.Utilities
{
public abstract class Repository<TInterface>
where TInterface : class, IRepositoryItem
{
private static readonly Dictionary<string, TInterface> items =
BuildRepository();
private static Dictionary<string, TI... | C# | util/Repository.cs | antonio-bakula/simpleDLNA | bsd-2-clause | 2,636 | 95 | codeparrot/github-code |
4af18313f587900eafae4728d34f25408d660e2bbe561c969aa587d1380bc439 | namespace XenAdmin.Dialogs
{
partial class AboutDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary... | C# | XenAdmin/Dialogs/AboutDialog.Designer.cs | agimofcarmen/xenadmin | bsd-2-clause | 5,068 | 115 | codeparrot/github-code |
1329805c65d8039b3a938e7be4e0c85fb87399c1f757e58cf5b48b18418acdfc | /* $Id$ */
#include "platform.h"
#include "di_defs.h"
#include "pc.h"
#include "dqueue.h"
#include "adapter.h"
#include "entity.h"
#include "um_xdi.h"
#include "um_idi.h"
#include "debuglib.h"
#include "divasync.h"
#define DIVAS_MAX_XDI_ADAPTERS 64
/* -----------------------------------------------------------------... | C | linux-lts-quantal-3.5.0/drivers/isdn/hardware/eicon/um_idi.c | andrewjylee/omniplay | bsd-2-clause | 24,027 | 886 | codeparrot/github-code |
73ff930afdd1b022dc0f0d343d24317c0f98596dd5b795a1f7c40f7e98e83130 | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Soeren Sonnenburg, Heiko Strathmann, Yuyu Zhang, Viktor Gal,
* Thoralf Klein, Fernando Iglesias, Sergey Lisitsyn
*/
#ifndef __STREAMING_ASCIIFILE_H__
#define __STREAMING_ASCIIFILE_H__
#include <shogun/lib/confi... | C | src/shogun/io/streaming/StreamingAsciiFile.h | shogun-toolbox/shogun | bsd-3-clause | 3,187 | 138 | codeparrot/github-code |
2150b1aef7234ce39cacf9030891955ae28f68b4bd97aeee7bcb4f2812583032 | #!/usr/bin/env python3
import sys
import re
import mpmath as mp
mp.dps=250
mp.mp.dps = 250
if len(sys.argv) != 2:
print("Usage: format_CIAAW.py ciaawfile")
quit(1)
path = sys.argv[1]
atomre = re.compile(r'^(\d+) +(\w\w*) +(\w+) +\[?(\d+)\]?\*? +(.*) *$')
isore = re.compile(r'^(\d+)\*? +(\[?\d.*.*\]?) *$'... | Python | scripts/data/format_CIAAW.py | pulsar-chem/Pulsar-Core | bsd-3-clause | 2,449 | 96 | codeparrot/github-code |
fb945d60ed3554ddeac912fa8ebda72947a2fdab26f2c9d9ac17e3d8650c721f | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C++ | modules/audio_processing/audio_buffer.cc | xin3liang/platform_external_chromium_org_third_party_webrtc | bsd-3-clause | 14,986 | 461 | codeparrot/github-code |
5a0f38522c570f61cde21456d99f22b51bf8ac8c8d14e0b13f82c9a31615f73c | <?php
namespace common\models;
use common\modules\i18n\Module;
/**
* This is the model class for table "magazine_item".
*
* @property integer $id
* @property integer $magazine_id
* @property string $image
* @property integer $sort
*
* @property Magazine $magazine
*/
class MagazineItem extends Bean
{
/*... | PHP | common/models/MagazineItem.php | artemkramov/jenadin-test | bsd-3-clause | 1,379 | 67 | codeparrot/github-code |
c0b36b36f46dc736f2d5d89d6e05388f54f7989ac98ed20c8158938361be2906 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/filters/reference_audio_renderer.h"
#include <math.h>
#include "base/bind.h"
#include "base/synchronization/waitable_event.h"
names... | C++ | media/filters/reference_audio_renderer.cc | aYukiSekiguchi/ACCESS-Chromium | bsd-3-clause | 3,792 | 111 | codeparrot/github-code |
2a1e5ab5304d9745884415d9174243aeda4f8f085e7f5d8d03aa40c11f30c561 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE124_Buffer_Underwrite__wchar_t_alloca_loop_73a.cpp
Label Definition File: CWE124_Buffer_Underwrite.stack.label.xml
Template File: sources-sink-73a.tmpl.cpp
*/
/*
* @description
* CWE: 124 Buffer Underwrite
* BadSource: Set data pointer to before the allocated... | C++ | xcc/test/juliet/testcases/CWE124_Buffer_Underwrite/s03/CWE124_Buffer_Underwrite__wchar_t_alloca_loop_73a.cpp | JianpingZeng/xcc | bsd-3-clause | 2,835 | 110 | codeparrot/github-code |
16759908a863957abaa08950b1cd664d1ae52f2356b8793623af219665a2bbe5 | import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import AddComment from './AddComment';
const USER = {
user: {
user: 'RSwanson',
username: 'Ron_Swanson',
imageURL: '',
users: [
{
name: 'April Ludwig',
url: 'aprilL@parksdept.com',
d... | JavaScript | translate/src/core/comments/components/AddComment.test.js | mathjazz/pontoon | bsd-3-clause | 761 | 37 | codeparrot/github-code |
330f8ef82b352be4df06e656c43f4d4f6b652f0e006d774a6a8b0bdfc890dd08 | /* -- translated by f2c (version 20100827).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of the com... | C | relapack/src/zsytrf_rec2.c | xianyi/OpenBLAS | bsd-3-clause | 13,490 | 453 | codeparrot/github-code |
f484a2bd843c6ae6d73d05725599e6d7a908205ef4a7847dcd352c23b32a7707 | # -*- coding: utf-8 -*-
#
# アルゴリズムデザインコンテストのさまざまな処理
#
# Copyright (C) 2015 Fujitsu
import numberlink
from datastore import *
from hashlib import sha1, sha256
from flask import make_response, render_template
import random
import datetime
from tz import gae_datetime_JST
from define import DEFAULT_YEAR
def adc_response... | Python | adc2018/server/adcutil.py | dasadc/conmgr | bsd-3-clause | 21,574 | 713 | codeparrot/github-code |
e83805ba59d4061f5cf1444a053da6475a836f63f50c7bd22b422517525ed33e | #include "mex.h"
#include <iostream>
#include "drakeMexUtil.h"
#include "RigidBodyManipulator.h"
#include "math.h"
using namespace Eigen;
using namespace std;
/*
* mex interface for bullet collision detection
* closest-distance for each body to all other bodies (~(NB^2-NB)/2 points)
*
* MATLAB signature:
*
* [x... | C++ | systems/plants/collisionDetectmex.cpp | thientu/drake | bsd-3-clause | 5,102 | 133 | codeparrot/github-code |
401e74a0ac73adc36094eb41a67e3bdb7447fa7a800a55b8de8a58fe9c89cfda | #include "MutableValueSetterProxy.h"
#include <jsi/jsi.h>
#include "MutableValue.h"
#include "SharedParent.h"
using namespace facebook;
namespace reanimated {
void MutableValueSetterProxy::set(
jsi::Runtime &rt,
const jsi::PropNameID &name,
const jsi::Value &newValue) {
auto propName = name.utf8(rt);
... | C++ | ios/vendored/unversioned/react-native-reanimated/Common/cpp/SharedItems/MutableValueSetterProxy.cpp | exponentjs/exponent | bsd-3-clause | 1,341 | 48 | codeparrot/github-code |
e6a1418df224bec8ccd56699dc52747d78f603c50f01fc462eba1821f12d0f85 | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>colour.models.cie_xyy Module — Colour 0.3.4 documentation</title>
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link r... | HTML | output/api/0.3.4/html/colour.models.cie_xyy.html | colour-science/colour-science.org | bsd-3-clause | 17,124 | 309 | codeparrot/github-code |
5d48a9286118c799c19f5687239d30bb288c38b294e9a54d094912ad01abaf0c | local Dta = select(2, ...)
Dta.Lang.English = {}
local English = Dta.Lang.English
----------------------------------------
--Help
----------------------------------------
---Intro------------------------------------------------------------------
English.Intro = {}
English.Intro.Label = "Intro"
English.Intro.Text1 = "... | Lua | Language/Language_Eng.lua | Lynx3d/tinker_tools | bsd-3-clause | 33,866 | 716 | codeparrot/github-code |
dafd8667e887fee7eccd5e28af69f0f528cff4c6e30fe32bd568966b3cc40a49 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_struct_54b.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml
Template File: sources-sinks-54b.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Rout... | C++ | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s07/CWE762_Mismatched_Memory_Management_Routines__new_free_struct_54b.cpp | JianpingZeng/xcc | bsd-3-clause | 1,396 | 56 | codeparrot/github-code |
f53522463864eca02806af20b3850a4460744cfa108585df9381acb64100fe4e | <?php
namespace app\models;
use Yii;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
/**
* This is the model class for table "tbl_ref_jawatan_induk".
*
* @property integer $id
* @property string $desc
* @property integer $aktif
* @property integer $created_by
* @property integer $... | PHP | frontend/models/RefJawatanInduk.php | hung101/kbs | bsd-3-clause | 2,995 | 106 | codeparrot/github-code |
949c4f31e8d4a54f03b96771b972ad098a039c4d230d3ca30d70788ae8253961 | // Copyright 2010 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | C++ | src/engine/scope.cc | xushiwei/szl | bsd-3-clause | 6,221 | 213 | codeparrot/github-code |
597f821fef24350dc45e5479353872a79611d26a8e5b19bf080b17330bda06e2 | /* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package sbt
package compiler
import scala.util
import java.io.File
import CompilerArguments.{abs, absString, BootClasspathOption}
/** Forms the list of options that is passed to the compiler from the required inputs and other options.
* The direc... | Scala | compile/CompilerArguments.scala | kuochaoyi/xsbt | bsd-3-clause | 2,999 | 63 | codeparrot/github-code |
649eb25b3580aa97803d654457db18d3a16dcef8052c6f1531ba505147b85d16 | // 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/chromeos/login/version_info_updater.h"
#include <vector>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "ba... | C++ | chrome/browser/chromeos/login/version_info_updater.cc | leiferikb/bitpop-private | bsd-3-clause | 7,139 | 216 | codeparrot/github-code |
8da0a568c55291846d7c3fad584f973da6531d71e5f1173b7b4c3706c1722735 | /*============================================================================*
* *
* This file is part of the Zoto Software suite. *
* *
* Copyright (C) 2004 Zoto, Inc. 123 South Hudson, OKC, OK 73102 *
... | C | zulu-2.0/python_module/zsp_packets.c | kordless/zoto-server | bsd-3-clause | 3,830 | 99 | codeparrot/github-code |
6bc3fab7c1155dc35f5506fc0aac930a741e58def8ff13a44760f737bf5ddca0 | /*
* $Id$
*/
/*
Copyright (c) 2000-2004 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including... | Java | test/src/org/lockss/mail/TestMimeMessage.java | edina/lockss-daemon | bsd-3-clause | 8,543 | 247 | codeparrot/github-code |
6573c6f5aa5a7cd036739c554dd5687aa59a12b528b06a4f506094f44b27a465 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE90_LDAP_Injection__w32_wchar_t_connect_socket_31.c
Label Definition File: CWE90_LDAP_Injection__w32.label.xml
Template File: sources-sink-31.tmpl.c
*/
/*
* @description
* CWE: 90 LDAP Injection
* BadSource: connect_socket Read data using a connect socket (clie... | C | xcc/test/juliet/testcases/CWE90_LDAP_Injection/CWE90_LDAP_Injection__w32_wchar_t_connect_socket_31.c | JianpingZeng/xcc | bsd-3-clause | 8,856 | 274 | codeparrot/github-code |
d3aab6376a904ff16364fe6f54f67e19b1b78a4e5b0ab49f5a33aa9cc4cd5c6c | /*
MobileRobots Advanced Robotics Interface for Applications (ARIA)
Copyright (C) 2004, 2005 ActivMedia Robotics LLC
Copyright (C) 2006, 2007 MobileRobots Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Fr... | C | libs/hwdrivers/src/aria/include/ArActionGotoStraight.h | bigjun/mrpt | bsd-3-clause | 4,790 | 127 | codeparrot/github-code |
a7a41e5d0d6d2cb080713413d85536e938c8106dd7cb63c8a6d6139831406fdb | // 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 CHROME_BROWSER_MEDIA_WEBRTC_SAME_ORIGIN_OBSERVER_H_
#define CHROME_BROWSER_MEDIA_WEBRTC_SAME_ORIGIN_OBSERVER_H_
#include "base/callback.h"
#inclu... | C | chrome/browser/media/webrtc/same_origin_observer.h | scheib/chromium | bsd-3-clause | 1,714 | 44 | codeparrot/github-code |
0347d7ddd5097adf7c674a088c41a4ece1a0a58ce6a7761f8d907a1e6bf50209 | <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>LeapVector Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" ... | HTML | src/3rdparty/LeapSDK/docs/Languages/ObjectiveC/html/Classes/LeapVector.html | nakajimakou1/cvdrone-master_leap_FaceDetect | bsd-3-clause | 62,836 | 2,552 | codeparrot/github-code |
31f7d64663fe9d7e82c086fb8781e4dc64e882760808c91bf17246a2955be078 | package org.lemurproject.galago.core.util;
import org.lemurproject.galago.core.retrieval.iterator.BaseIterator;
import org.lemurproject.galago.core.retrieval.traversal.Traversal;
import org.lemurproject.galago.utility.Parameters;
import java.util.ArrayList;
import java.util.List;
/**
* @author jfoley.
*/
public cl... | Java | core/src/main/java/org/lemurproject/galago/core/util/IterUtils.java | hzhao/galago-git | bsd-3-clause | 1,424 | 44 | codeparrot/github-code |
0e6b2d6d388424fcafa668c11860416e6a170ded24d3ac8da3bcf286e3bd6c40 | from pybrain.rl.environments.timeseries.maximizereturntask import DifferentialSharpeRatioTask
from pybrain.rl.environments.timeseries.timeseries import AR1Environment, SnPEnvironment
from pybrain.rl.learners.valuebased.linearfa import Q_LinFA
from pybrain.rl.agents.linearfa import LinearFA_Agent
from pybrain.rl.experim... | Python | pybrain/rl/environments/timeseries/test programs/ar1TestScript.py | samstern/MSc-Project | bsd-3-clause | 976 | 38 | codeparrot/github-code |
563a12270c1e3c75e16b79c66a95ce7a623737b7be3bec7e97db0694f5222844 | using Basic.Azure.Storage.Communications.Core;
using Basic.Azure.Storage.Communications.Core.Interfaces;
using Basic.Azure.Storage.Communications.TableService.Interfaces;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threadin... | C# | Basic.Azure.Storage/Communications/TableService/EntityOperations/DeleteEntityRequest.cs | tarwn/BasicAzureStorageSDK | bsd-3-clause | 2,130 | 63 | codeparrot/github-code |
914eaf1aa1d0ee453a4acdbb066d10bdf1e52fde5f24e51a0847688043e2c583 | /****************************************************************/
/* 1. BACKGROUND AND TEXT COLOURS */
/****************************************************************/
/* 1.1 Default background colour and text colour */
body{text-align:center;background : url(../img/back.gif);}
/* �������� ����� */
.djangobb {COLO... | CSS | djangobb_forum/static/djangobb_forum/themes/default/css/default_cs.css | aldenjenkins/foobargamingwebsite | bsd-3-clause | 6,084 | 167 | codeparrot/github-code |
b4f7a47f07c48a77434fa2641aca62427a08301823a4fa1434724ad10c444764 | #pragma once
#include <deque>
#include <functional>
#include <pthread.h>
#include "basetypes.h"
#include "misc.h"
#define Pthread_spin_init(l, pshared) verify(pthread_spin_init(l, (pshared)) == 0)
#define Pthread_spin_lock(l) verify(pthread_spin_lock(l) == 0)
#define Pthread_spin_unlock(l) verify(pthread_spin_unlock... | C | base/threading.h | santazhang/simple-rpc | bsd-3-clause | 5,266 | 219 | codeparrot/github-code |
b188d379c31b99a61b8e4430f858f3a9f38c381289bb4dc32ba9e2990b03081a | <!--
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http:/... | HTML | src/standard/gestures.html | mgiuffrida/polymer | bsd-3-clause | 22,385 | 755 | codeparrot/github-code |
994a2caa909e0ac9ca2e7728285b17910cc0509af28bf447be68e42f0edf5002 | require 'rubygems'
# The helper class exists to do string manipulation and heavy lifting
def url_escape_hash(hash)
hash.each do |k,v|
v = CGI::escapeHTML(v)
if v
# convert bullets
v = v.gsub("*-","<bullet>")
v = v.gsub("-*","</bullet>")
#convert h4
v = v.gsub("[==","<h4>")
v = v.gsub("==]",... | Ruby | helpers/helper.rb | ccammilleri/Serpico | bsd-3-clause | 7,803 | 328 | codeparrot/github-code |
c58a8400bec0b9334bd788a3d7095b3be0b6c8f92c06579dc572a130279af691 | /*
* Copyright (C) Research In Motion Limited 2011. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) an... | C++ | chromium/src/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp | espadrine/opera | bsd-3-clause | 5,902 | 176 | codeparrot/github-code |
c022768b82e15a3dea47c5de2f326a681a0fb5fea0309b30f83de4e774f8b9ad | <?php
namespace modules\translations\controllers\console;
use modules\lang\models\Lang;
use modules\translations\models\MessageCategory;
use Yii;
use yii\console\Controller;
use yii\console\Exception;
use yii\helpers\FileHelper;
use modules\translations\models\Message;
use modules\translations\models\SourceMessage;
... | PHP | modules/translations/controllers/console/I18nController.php | zserg84/tender | bsd-3-clause | 4,308 | 127 | codeparrot/github-code |
e679788e4a88f84ecb625dd52c7c1061eb9b6fdbb7f17eb99ea24026e40055e2 | #include <CGAL/Epick_d.h>
#include <CGAL/point_generators_d.h>
#include <CGAL/Manhattan_distance_iso_box_point.h>
#include <CGAL/K_neighbor_search.h>
#include <CGAL/Search_traits_d.h>
typedef CGAL::Epick_d<CGAL::Dimension_tag<4> > Kernel;
typedef Kernel::Point_d Point_d;
typedef CGAL::Random_points_in_cube_d<Point_d> ... | C++ | graphics/cgal/Spatial_searching/examples/Spatial_searching/general_neighbor_searching.cpp | hlzz/dotfiles | bsd-3-clause | 1,316 | 39 | codeparrot/github-code |
6f20abd708ce15ac5df28905749dbc6264ee6a7af4e609f0a6f41a41995c3ff0 | /*L
* Copyright RTI International
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/webgenome/LICENSE.txt for details.
*/
/*
$Revision: 1.1 $
$Date: 2007-08-22 20:03:57 $
*/
package org.rti.webgenome.webui.struts.upload;
import javax.servlet.http.HttpServletRequest;
... | Java | tags/WEBGENOME_R3.2_6MAR2009_BUILD1/java/webui/src/org/rti/webgenome/webui/struts/upload/ReporterColumnNameForm.java | NCIP/webgenome | bsd-3-clause | 1,844 | 73 | codeparrot/github-code |
f6afcfd296b2a370a682a7fbc727e4fbfee8c60fe789162a91749219a02bc2fc | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_file_ifstream_08.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-08.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: file Read input from a file
* Goo... | C++ | xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s02/CWE23_Relative_Path_Traversal__char_file_ifstream_08.cpp | JianpingZeng/xcc | bsd-3-clause | 4,569 | 174 | codeparrot/github-code |
967b1419f0791d5e74202dbf3b65fcfd242d6f80a3995e533959933c6da81ce5 | package org.hisp.dhis.sms.listener;
/*
* Copyright (c) 2004-2018, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the... | Java | dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/listener/TrackedEntityRegistrationSMSListener.java | msf-oca-his/dhis-core | bsd-3-clause | 7,054 | 152 | codeparrot/github-code |
d89ee2991ebe4fb7fe18195412af36c25fe30e823ac44b0069f28ef761b5d4b8 | //===--- CodeGenAction.cpp - LLVM Code Generation Frontend Action ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | third_party/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp | youtube/cobalt | bsd-3-clause | 41,495 | 1,072 | codeparrot/github-code |
1c80f22239da1ec58941d7eec51859cb53783802c65e67a0833f918d56e2822d | # frozen_string_literal: true
module Stupidedi
using Refinements
module Schema
#
# The 5010 X12 "data segment requirement designator"s include
# M - Mandatory
# O - Optional
#
# @see X222 B.1.3.12.6 Data Segment Requirement Designators
#
# The HIPAA implementation guides "indust... | Ruby | lib/stupidedi/schema/segment_req.rb | kputnam/stupidedi | bsd-3-clause | 871 | 47 | codeparrot/github-code |
a627b623bcfffaac31e23df7d1b0931347038e2345813161ce1f555c951d1da5 | // Copyright 2010-2021, 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 condit... | C++ | src/prediction/dictionary_predictor.cc | fcitx/mozc | bsd-3-clause | 87,925 | 2,280 | codeparrot/github-code |
8819ca974c54bcd1810cf11b0c76b1e995ea069975a6e3a7e2efb7dc542849e9 | /**
* SAHARA Scheduling Server
*
* Schedules and assigns local laboratory rigs.
*
* @license See LICENSE in the top level directory for complete license terms.
*
* Copyright (c) 2009, University of Technology, Sydney
* All rights reserved.
*
* Redistribution and use in source and binary forms, with ... | Java | Reports/src/au/edu/uts/eng/remotelabs/schedserver/reports/intf/types/QuerySessionReportType.java | jeking3/scheduling-server | bsd-3-clause | 20,256 | 571 | codeparrot/github-code |
e164a209b106be5ded311ea81d5f2ffa2d07fa4b71020c66ed451f27a717373b | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_int64_t_calloc_52c.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
Template File: sources-sinks-52c.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management ... | C++ | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s03/CWE762_Mismatched_Memory_Management_Routines__delete_int64_t_calloc_52c.cpp | JianpingZeng/xcc | bsd-3-clause | 1,553 | 54 | codeparrot/github-code |
32825125d2839bcb72b5e97c6e191cf795e604c403e73f1e5d46272a3e142c12 | /*
* Copyright (c) 2010-2011 Mark Allen.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | Java | connector/src/main/java/com/restfb/DefaultJsonMapper.java | gooddata/GoodData-CL | bsd-3-clause | 26,108 | 586 | codeparrot/github-code |
322ae7d73c8266e2ad6d4318605f737dfc862fc1e6f4253df72760851843c7ff | // 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 CONTENT_PUBLIC_BROWSER_DOWNLOAD_DANGER_TYPE_H_
#define CONTENT_PUBLIC_BROWSER_DOWNLOAD_DANGER_TYPE_H_
#pragma once
namespace content {
// Th... | C | content/public/browser/download_danger_type.h | aYukiSekiguchi/ACCESS-Chromium | bsd-3-clause | 1,271 | 40 | codeparrot/github-code |
5d67650375f68e278affe914e8ea36d12ba970fda44e048195d8f7ce58734631 | // Copyright NVIDIA Corporation 2012
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following d... | C++ | dp/ui/src/RenderTarget.cpp | swq0553/pipeline | bsd-3-clause | 2,148 | 61 | codeparrot/github-code |
2e0d84b097002a327f87fde23633bf71d58459730ab128a4d4c6393d9cd2c0d9 | import PromiseRouter from '../PromiseRouter';
import * as middleware from "../middlewares";
import { Parse } from "parse/node";
export class PushRouter extends PromiseRouter {
mountRoutes() {
this.route("POST", "/push", middleware.promiseEnforceMasterKeyAccess, PushRouter.handlePOST);
}
static handlePOST(r... | JavaScript | src/Routers/PushRouter.js | lucianmat/parse-server | bsd-3-clause | 1,611 | 57 | codeparrot/github-code |
bae98895f8279322b5118fb89dd92004eac34ade09c0b278c0dc7e1edb8250f3 | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Invoke-LockWorkStation',
'Author': ['@harmj0y'],
'Description': ("Locks the workstation's display."),
'Background' : False,
'OutputE... | Python | lib/modules/powershell/management/lock.py | Hackplayers/Empire-mod-Hpys-tests | bsd-3-clause | 3,056 | 91 | codeparrot/github-code |
2414be65dd78a3d92ada5a486f60dd6b77b0c2765050af75c010d5cfdb730e59 | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* MT SCP RV32i configuration */
#include "cache.h"
#include "csr.h"
#include "hooks.h"
#include "registers.h"
#define SCP_SRAM_END (CONFIG_IPC_SH... | C | baseboard/mtscp-rv32i/baseboard.c | coreboot/chrome-ec | bsd-3-clause | 1,621 | 59 | codeparrot/github-code |
f0c29ff06ac1091a44dbb442a74e26fa8799ebc4844ab92a63722ad9d6261cdd | /* Copyright (C) 2012 Motorola Mobility Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of ... | C | Source/core/css/CSSSupportsRule.h | xin3liang/platform_external_chromium_org_third_party_WebKit | bsd-3-clause | 2,448 | 64 | codeparrot/github-code |
b869dc73daaba059961c817d0113cc3fe15f42520ff5aa90940700343d04f6ca | /* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* 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 sou... | JavaScript | client/third_party/ace/lib/ace/lib/event.js | louis-tru/touch_code | bsd-3-clause | 12,179 | 367 | codeparrot/github-code |
410a5efaa3ae6d4aedbaa5fc5e8abd7792ed1ebe49441844100aa3c20d921d2f | ###############################################################################
##
## Copyright (C) 2014-2016, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | Python | vistrails/core/vistrail/connection.py | VisTrails/VisTrails | bsd-3-clause | 10,497 | 300 | codeparrot/github-code |
d6d35e2ac69552a1e45cacd6e7b5c1a3356bf01cd8c4f97cea0be95f0e8071e0 | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | C++ | src/demos/irrlicht/demo_IRR_ballSMC.cpp | amelmquist/chrono | bsd-3-clause | 6,214 | 184 | codeparrot/github-code |
91fc2b873f019e9e7b7f5e2a67a5847a9272ba5b1a12407e364b4be45b649356 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__char_connect_socket_fprintf_82a.cpp
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-82a.tmpl.cpp
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: connect_soc... | C++ | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s01/CWE134_Uncontrolled_Format_String__char_connect_socket_fprintf_82a.cpp | JianpingZeng/xcc | bsd-3-clause | 7,904 | 256 | codeparrot/github-code |
fe29884e8516be4d6d91f0e7ff3ae109ce7cf2a09487bfb1142079f024b118af | /*
* libjingle
* Copyright 2010, Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | C++ | talk/p2p/base/sessionmessages.cc | muzili/libjingle-0.6.14 | bsd-3-clause | 34,550 | 955 | codeparrot/github-code |
e789b50612609519c2fad0ba8bb8dca42d59a3ffddc2787b26a0a44ef763045b | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | C | Modules/Core/include/mitkVtkPropRenderer.h | iwegner/MITK | bsd-3-clause | 8,434 | 245 | codeparrot/github-code |
44a35e01745c87a2b5a5e1fd153d3064923f74dcf7d6d95d1f435d9fde734de8 | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@author Mark Gates
@generated from testing_zunmqr.cpp normal z -> s, Fri Jan 30 19:00:25 2015
*/
// includes, system
#include <stdlib.h>
... | C++ | testing/testing_sormqr.cpp | shengren/magma-1.6.1 | bsd-3-clause | 7,358 | 179 | codeparrot/github-code |
f059abc3b367f85661d18a6758aa0a3668b38540265df9ac5cbd4f7e99a5f1e8 | // 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/chromeos/bluetooth/bluetooth_adapter.h"
#include "base/bind.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
#in... | C++ | chrome/browser/chromeos/bluetooth/bluetooth_adapter.cc | keishi/chromium | bsd-3-clause | 19,256 | 569 | codeparrot/github-code |
1775acfd6ef494ebcf06b04f9bcdcad600f57f9b6c2e36ac8ded51bcb38f12ea |
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
/* link this file in with the server and any clients */
/* File created by MIDL compiler version 7.00.0499 */
/* at Mon Dec 01 09:02:10 2008
*/
/* Compiler settings for e:/builds/tinderbox/XR-Trunk/WINNT_5.2_Depend/mozilla/other-licenses/ia2/Accessibl... | C | third_party/xulrunner-sdk/win/include/accessibility/Accessible2_i.c | leighpauls/k2cro4 | bsd-3-clause | 1,711 | 80 | codeparrot/github-code |
4021ce53074be4fbc4972efb5c57ddb66a3b30427b07bca44917df3765d0ab0e | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class Simpletools\Page\Layout</title>
<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div ... | HTML | api/class-Simpletools.Page.Layout.html | getsimpletools/getsimpletools.github.io | bsd-3-clause | 23,075 | 1,387 | codeparrot/github-code |
770975929fb8829d14c5826daa5c7a8aed1497a5055fb1524c81a736032dcd7a | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int_loop_04.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.label.xml
Template File: sources-sink-04.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate ... | C++ | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s03/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int_loop_04.cpp | JianpingZeng/xcc | bsd-3-clause | 4,189 | 150 | codeparrot/github-code |
20b6a3f53d0ed72e1bd70aa95b601f749714dad20a86ba87899685c8e251e469 | using System;
using System.Collections;
namespace MyGeneration.CodeSmithConversion.Template
{
public enum CstTokenType
{
Code = 0,
ResponseWriteShortcutCode,
RunAtServerCode,
Literal,
Comment,
EscapedStartTag,
EscapedEndTag
}
/// <summary>
/// Summary description for CstToken.
/// </summary>
pu... | C# | src/plugins/MyGeneration.UI.Plugins.CodeSmith2MyGen/Template/CstToken.cs | cafephin/mygeneration | bsd-3-clause | 726 | 44 | codeparrot/github-code |
c280ffb7eee5ab24b1f618d840194549605828ec1988836a48b64369dbd57b59 | /*
* @description Expression is always true via if (unsigned int >= 0)
*
* */
#include "std_testcase.h"
#ifndef OMITBAD
void CWE571_Expression_Always_True__unsigned_int_01_bad()
{
/* Ensure (0 <= intBad < UINT_MAX) and that uIntBad is pseudo-random */
unsigned int uIntBad = (unsigned int)(ra... | C | xcc/test/juliet/testcases/CWE571_Expression_Always_True/CWE571_Expression_Always_True__unsigned_int_01.c | JianpingZeng/xcc | bsd-3-clause | 1,609 | 74 | codeparrot/github-code |
d047082ce9ae06ec27183b0780a276fbee01f15336431e15e10971c043dcb1e0 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_
#p... | C | chrome/browser/ui/webui/options/chromeos/stats_options_handler.h | aYukiSekiguchi/ACCESS-Chromium | bsd-3-clause | 1,298 | 39 | codeparrot/github-code |
e2a39020a6c25af898e26c1609fdef4f033bd8cbfa9a4c94e2eed8f2e5b1f9df | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails o... | JavaScript | packages/fbjs/src/functional/__tests__/everyObject-test.js | chicoxyzzy/fbjs | bsd-3-clause | 1,608 | 61 | codeparrot/github-code |
4908ab7c765b6aedf4321e773c26e7d5cdcf1230c1c3b45c655919aeef3ae084 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
#includ... | C | chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h | scheib/chromium | bsd-3-clause | 5,980 | 149 | codeparrot/github-code |
b51e9ca07324976f86750dabbe26db346d3a33da71ea5ed1cb13f78d21217cf2 | <!DOCTYPE html>
<html dir="ltr" lang="pl">
<head>
<title>Foreign Function Interface - Rubinius</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content='pl' http-equiv='content-language'>
<meta content='Rubinius is an implementation of the Ruby pr... | HTML | web/_site/doc/pl/systems/ffi/index.html | slawosz/rubinius | bsd-3-clause | 5,589 | 213 | codeparrot/github-code |
a04e10a07123a8f7b6427f323ad769276ccd3b1877398262a9abfbaaa3b3fc59 | /*
* 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 "Um... | C++ | mcrouter/lib/network/UmbrellaProtocol.cpp | evertrue/mcrouter | bsd-3-clause | 10,000 | 333 | codeparrot/github-code |
b75ad3a02391104d6bc3b8c25471b17d07acec6f432362d4dbb10f31517623d3 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | PHP | library/Zend/Mail/AbstractProtocol.php | magicobject/zf2 | bsd-3-clause | 9,877 | 398 | codeparrot/github-code |
fa6c8e46272e18be6599cb7c1d217a6016801ed0f72d6a74483b20f9f1046e8a | /*
Copyright (c) 2013, Groupon, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disc... | Java | src/main/java/com/groupon/mapreduce/mongo/in/MongoRecordReader.java | groupon/mongo-deep-mapreduce | bsd-3-clause | 3,408 | 92 | codeparrot/github-code |
b24cfb985efd673fdbaf4ddbfa889edf33226100c4c833ab926adf1490ec463f | import numpy as np
from Coupling import Coupling
class Coupling2DCavities2D(Coupling):
"""
Coupling for cavity2D to cavity transmission.
"""
@property
def impedance_from(self):
"""
Choses the right impedance of subsystem_from.
Applies boundary conditions correction as w... | Python | Sea/model/couplings/Coupling2DCavities2D.py | FRidh/Sea | bsd-3-clause | 1,049 | 43 | codeparrot/github-code |
34a19857e32add9cc880f08030dd0cb194668b9223c01b9ca93df87d8b7cf74e | ''' The `Filter` hierarchy contains Transformer classes that take a `Stim`
of one type as input and return a `Stim` of the same type as output (but with
some changes to its data).
'''
from .audio import (AudioTrimmingFilter,
AudioResamplingFilter)
from .base import TemporalTrimmingFilter
from .ima... | Python | pliers/filters/__init__.py | tyarkoni/pliers | bsd-3-clause | 1,079 | 36 | codeparrot/github-code |
2939d0ed722dabe54d2ba9192e24760737d6033049ae822ee4510607d2b729a4 | package ch.epfl.yinyang
package transformers
import ch.epfl.yinyang._
import ch.epfl.yinyang.transformers._
import scala.reflect.macros.blackbox.Context
import language.experimental.macros
import scala.collection.mutable
import scala.collection.mutable.ArrayBuffer
/**
* Converts captured variables to holes, which wi... | Scala | components/core/src/transformers/HoleTransformation.scala | vjovanov/scala-yinyang | bsd-3-clause | 2,133 | 70 | codeparrot/github-code |
f2921863522c954c40e856f94ad6b6e792321bbe516dfedfeb78b4689a0961fc | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | PHP | library/Zend/Tool/Project/Provider/Application.php | magicobject/zf2 | bsd-3-clause | 3,334 | 93 | codeparrot/github-code |
739094b1ca5463cca158b36b444ef7b778ad6b5c67c467d8ad0d0912fb2acb11 | /*
* Copyright (c) 2013 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | C | chromium/src/third_party/libvpx/source/libvpx/vp9/common/vp9_convolve.c | windyuuy/opera | bsd-3-clause | 13,122 | 377 | codeparrot/github-code |
ccfbe4e666e5c8fb54308c8c08edb717f5521c1cf13cff2200018650d1dc3f84 | <?php
/*
* ircPlanet Services for ircu
* Copyright (c) 2005 Brian Cline.
* 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 copyrig... | PHP | Channel/commands/kickbanall.php | briancline/googlecode-ircplanet | bsd-3-clause | 2,380 | 61 | codeparrot/github-code |
fc832fbce52568a921bd299b911b8e0f7feb9be900366b1739b26e3bbf3eb885 | /*
Copyright (C) 2009-2010 Electronic Arts, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions a... | C | include/EAIO/FnEncode.h | kitsilanosoftware/EAIO | bsd-3-clause | 5,095 | 111 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.