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 |
|---|---|---|---|---|---|---|---|---|
dde0a4bae378d495646072496bf703f3a65fa4ee18b1f498c6858bfd33ac8a6e | /*
* Copyright 2010 JBoss 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 i... | Java | kie-api/src/main/java/org/kie/api/task/model/TaskData.java | sutaakar/droolsjbpm-knowledge | apache-2.0 | 1,462 | 73 | codeparrot/github-code |
8466099d4c1bb463bf4b457bfc5cd1c152b4b6415c9842a69fa90570d3dc2aa4 | =encoding UTF-8
=head1 release_guide.pod - guide to Rakudo releases
Rakudo’s development release cycle is the third Saturday of
each month.
Each development release is given a sequential number and a name based
on the release year and month. Older releases had code names based on
an active Perl Mongers group.
For ... | Perl | docs/release_guide.pod | tony-o/rakudo | artistic-2.0 | 21,813 | 541 | codeparrot/github-code |
ce1a6915ca5208083a637cdf6d69e28ddcf0140c499257fd62c3e3def92a56ed | #region Namespaces
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
#endregion
namespace ArdanStudios.Common.Utilities
{
/// <summary> Maintains a synchronous timer event </summary>
public class SynchronousTimer : IDisposable
{
#region... | C# | SMPP/SmppClient/Utilities/SynchronousTimer.cs | kamaroly/SMPPClient | bsd-2-clause | 7,748 | 224 | codeparrot/github-code |
8c22e78f8a78858030ca9a1fe6a872067949125dfe68cfef674694c873fbb028 | {-# LANGUAGE TemplateHaskell #-}
{-| Implementation of the Ganeti LUXI interface.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redi... | Haskell | src/Ganeti/Luxi.hs | mbakke/ganeti | bsd-2-clause | 13,584 | 385 | codeparrot/github-code |
da12c52a26962b5a903bd43289c8c0fb92ffeecd9ad67d02a7f4e430c5eda553 | template <>
class TypeInfoOf<Chunk>: public TypeInfo {
static constexpr UUID uuid() {
return UUID();
}
public:
TypeInfoOf() : TypeInfo("Chunk", uuid(), false, false, false, sbTokenEq, 0) {}
static const TypeInfoOf<Chunk>* const instance() {
return &RawType<Chunk>::rawType;
}
static Type type() {
... | C++ | vm/vm/main/cached/Chunk-implem-decl-after.hh | mozart/mozart2 | bsd-2-clause | 1,523 | 65 | codeparrot/github-code |
beea9987d530657d3170fde1ffa40179c396b742ea6c47c7b8432d492c1325f8 | package dfa
import (
"fmt"
"unicode"
)
func charClass(name string) (m *M, err error) {
ms := []*M{}
err = eachRangeInCharClass(name, func(lo, hi rune) {
ms = append(ms, Between(lo, hi))
})
if err != nil {
return nil, err
}
m, err = orMany(ms)
if err != nil {
return nil, err
}
return m.minimize()
}
f... | GO | unicode.go | h12w/dfa | bsd-2-clause | 972 | 49 | codeparrot/github-code |
29aded501cf00d87451b1bfd28ac22e211ad90fec4c5eee30c6ae21d7a760a19 | #!/usr/bin/perl -w
use strict;
use CoGeX;
use CoGe::Accessory::Web;
use Getopt::Long;
use Data::Dumper;
my ($DEBUG, $dsgid1, $dsgid2, $input_file, $ftid1, $ftid2, $conffile);
GetOptions(
"DEBUG"=>\$DEBUG,
"dsgid1|dsg1|d1=s"=>\$dsgid1,
"dsgid2|dsg2|d2=s"=>\$dsgid2,
"input|file|i|f=s"=>\$input_file,
... | Perl | scripts/old/convert_to_gene_order.pl | asherkhb/coge | bsd-2-clause | 3,792 | 133 | codeparrot/github-code |
3b31388ce67daba32ace9260948dc2bcffe406375d71379cc41fc183751d99df | /*
* Copyright (c) 2008-2009, 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/theme/RepeatImage.java | ColaMachine/MyBlock | bsd-2-clause | 3,794 | 109 | codeparrot/github-code |
990cfe3a9042043e40de5fb1a2dc40a1e0905cec3f76a1f40443accaa7e8a7d8 | import angr
from collections import namedtuple
import logging
l = logging.getLogger(name=__name__)
Dirent = namedtuple('dirent', ('d_ino', 'd_off', 'd_reclen', 'd_type', 'd_name'))
class readdir(angr.SimProcedure):
struct = None
condition = None
def run(self, dirp): # pylint: disable=arguments-differ
... | Python | angr/procedures/posix/readdir.py | schieb/angr | bsd-2-clause | 2,207 | 53 | codeparrot/github-code |
c7e44ff34c8a90dc103e97a5b2a020b39a1cde53207c1c6c0103dbb2ca0ed2b3 | package cz.metacentrum.perun.webgui.tabs.userstabs;
import com.google.gwt.cell.client.FieldUpdater;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.resources.client.ImageResource;
import co... | Java | perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/tabs/userstabs/SelfServiceUsersTabItem.java | Holdo/perun | bsd-2-clause | 11,642 | 330 | codeparrot/github-code |
ee0789773f1375a96c3f21202d7062eb8c43b2612ae422a5a320f471ae0d5625 | /*
* Copyright 2011 the original author or authors.
*
* 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 applica... | Java | gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/dependency-management/org/gradle/api/internal/artifacts/repositories/AbstractAuthenticationSupportedRepository.java | Pushjet/Pushjet-Android | bsd-2-clause | 1,602 | 43 | codeparrot/github-code |
2063cfd53c809883815ecdc7c46a71c3c24f33aceabcf9f5342912e186724d13 | #! @LOCALPREFIX@/bin/perl
# $FreeBSD: soc2013/dpl/head/sbin/setkey/scriptdump.pl 81256 2001-08-06 19:40:01Z ume $
if ($< != 0) {
print STDERR "must be root to invoke this\n";
exit 1;
}
$mode = 'add';
while ($i = shift @ARGV) {
if ($i eq '-d') {
$mode = 'delete';
} else {
print STDERR "usage: scriptdump [-d]\n... | Perl | head/sbin/setkey/scriptdump.pl | dplbsd/zcaplib | bsd-2-clause | 1,294 | 57 | codeparrot/github-code |
ed144c37d10cfc413c5b2669a0268b870a8d3e66f06ed98c7a447051a2b7a22f | /*
* Copyright (c) 2017-2018, Adam <Adam@sigterm.info>
* 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 | http-service/src/main/java/net/runelite/http/service/item/ItemController.java | l2-/runelite | bsd-2-clause | 5,365 | 170 | codeparrot/github-code |
20bdc3214340994dc5e391d4ce0ef7a453170639ed11c0dff2f5591091598f8c | """
Users
=====
"""
from pipes import quote
import posixpath
import random
import string
from fabric.api import hide, run, settings, sudo, local
from fabtools.group import (
exists as _group_exists,
create as _group_create,
)
from fabtools.files import uncommented_lines
from fabtools.utils import run_as_root... | Python | fabtools/user.py | wagigi/fabtools-python | bsd-2-clause | 8,682 | 306 | codeparrot/github-code |
5f310a0ea8c015549a22ea0d0a42ffbca06121cd52c6147d27748c186ad4b81c | require 'pathname'
require 'mach'
require 'resource'
require 'metafiles'
# we enhance pathname to make our code more readable
class Pathname
include MachO
BOTTLE_EXTNAME_RX = /(\.[a-z0-9_]+\.bottle\.(\d+\.)?tar\.gz)$/
def install *sources
sources.each do |src|
case src
when Resource
src... | Ruby | Library/Homebrew/extend/pathname.rb | sarvex/linuxbrew | bsd-2-clause | 12,497 | 488 | codeparrot/github-code |
b97c41399947c9fe7c0a6eefabb6297784ddaf6d1db3e0cd0f362ca7145ee8f9 | #!/usr/bin/env python3
import canmatrix.formats
import sys
import optparse
# command line options...
usage = """
%prog [options] matrix
matrixX can be any of *.dbc|*.dbf|*.kcd|*.arxml
"""
parser = optparse.OptionParser(usage=usage)
parser.add_option(
"-f", "--frames",
dest="frames",
help="encode list o... | Python | examples/encodeFrame.py | altendky/canmatrix | bsd-2-clause | 2,030 | 74 | codeparrot/github-code |
9a7e443cf6a0bf9af97ea1daa46102d38e59d5103780a6cec848e08b11f2d4a4 | /*
* Copyright 2013 the original author or authors.
*
* 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 applica... | Java | gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/platform-native/org/gradle/nativeplatform/toolchain/internal/gcc/ArStaticLibraryArchiver.java | Pushjet/Pushjet-Android | bsd-2-clause | 3,388 | 81 | codeparrot/github-code |
df9b748fa20ae126ad9f0b8448f8deff770a984cc82c4ea6380ba63e46e1797e | """HTTP server classes.
Note: BaseHTTPRequestHandler doesn't implement any HTTP request; see
SimpleHTTPRequestHandler for simple implementations of GET, HEAD and POST,
and CGIHTTPRequestHandler for CGI scripts.
It does, however, optionally implement HTTP/1.1 persistent connections,
as of version 0.3.
Notes on CGIHTT... | Python | python3.8.2/Lib/http/server.py | xyuanmu/XX-Net | bsd-2-clause | 47,254 | 1,300 | codeparrot/github-code |
700d732e275abe3a3c12931ec09dffb498aebc8864f807d2e109a98e03a4ecf1 | /* Copyright (c) 2008 University of Durham, England
* 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
* notic... | Java | SynergySpace2.1/src_synergynet/synergynet/contentsystem/items/implementation/interfaces/IContentItemImplementation.java | synergynet/synergynet2.1 | bsd-2-clause | 3,041 | 67 | codeparrot/github-code |
4695d6c85dac7996bc64a5b6306976c9a2b424bf6d744105aa18b7714116cc69 | // ----------------------------------------------------------------------------
// XmlDocCommentDirectoryElementCollectionTestFixture.cs
//
// Contains the definition of the XmlDocCommentDirectoryElementCollectionTestFixture class.
// Copyright 2009 Steve Guidi.
//
// File created: 2/2/2009 7:02:03 PM
// --------------... | C# | Jolt.Test/XmlDocCommentDirectoryElementCollectionTestFixture.cs | modulexcite/JoltNet-core | bsd-3-clause | 4,472 | 119 | codeparrot/github-code |
743b4af3c3ac4d9ce3cb35ff743146788c4a904c7e84bc299fe80a88c2a75f18 | package io.flutter.embedding.android;
import static io.flutter.embedding.android.FlutterActivityLaunchConfigs.HANDLE_DEEPLINKING_META_DATA_KEY;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.asser... | Java | shell/platform/android/test/io/flutter/embedding/android/FlutterActivityTest.java | jason-simmons/sky_engine | bsd-3-clause | 17,447 | 399 | codeparrot/github-code |
866891a91eab4232b3d75db3641a7004626b6a3f942a086fc9070523b46f751f | <?php
namespace app\modules\admin\controllers;
use Yii;
use app\models\Reviews;
use yii\data\ActiveDataProvider;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* ReviewsController implements the CRUD actions for Reviews model.
*/
class ReviewsController extends Controlle... | PHP | modules/admin/controllers/ReviewsController.php | spinybeast/etazhi | bsd-3-clause | 2,580 | 108 | codeparrot/github-code |
e5a262deae0b2230c183ee6237f09091ca6c3809c4b8950d0e3fae6a4f0557fa | /*
* util/fptr_wlist.c - function pointer whitelists.
*
* Copyright (c) 2007, NLnet Labs. All rights reserved.
*
* This software is open source.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistr... | C | util/fptr_wlist.c | NLnetLabs/unbound | bsd-3-clause | 19,496 | 690 | codeparrot/github-code |
ccbfb51e56b1e9197e3f0bd682a6d3844e1442a05048686c8376ed0a9955f46f | /*
* Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/licens... | C | openssl/test/bio_prefix_text.c | jens-maus/amissl | bsd-3-clause | 7,562 | 268 | codeparrot/github-code |
096c9838bdd9aa76c3e010fd60d594658a67352ea4cceaf2df089b4c7b077f37 | // Copyright 2017 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 FLUTTER_FML_MAPPING_H_
#define FLUTTER_FML_MAPPING_H_
#include <initializer_list>
#include <memory>
#include <string>
#include <vector>
#include... | C | fml/mapping.h | krisgiesing/sky_engine | bsd-3-clause | 1,991 | 101 | codeparrot/github-code |
f403572ee21edf8ce37fda24894484e50cae88f329fa23e62fc71434b6a2fc1e | // (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.AnimateVariables)]
[Tooltip("Animates the value of a Float Variable using an Animation Curve.")]
public class AnimateFloatV2: AnimateFsmAction
{
... | C# | samples/Myo-Surgeon-Assistant-App/src/Unity3D/Myo_SFDC_v3/Assets/Myo Samples/PlayMaker/Actions/AnimateVariables/AnimateFloatV2.cs | developerforce/WearablePack-Myo | bsd-3-clause | 1,737 | 71 | codeparrot/github-code |
ec200fd5d6ed2992c2e1dacde176758c84478df839bad119cb8ad4bc482d53fc | /*
* Copyright (c) 2006-2016, openmetaverse.co
* 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
... | C# | OpenMetaverseTypes/LocklessQueue.cs | radegastdev/libopenmetaverse | bsd-3-clause | 5,290 | 149 | codeparrot/github-code |
5369bc749bfae0eba495aede06b7639e9310884fed17e0263c73a382d7b36aa6 | /* -*- mode: c++; indent-tabs-mode: nil -*- */
/*
Evaluates the conductivity of surface flow as a function of ponded
depth using Manning's model. The denominator in the model is evaluated separately.
*/
#ifndef AMANZI_FLOWRELATIONS_SPLIT_DENOMINATOR_CONDUCTIVITY_MODEL_
#define AMANZI_FLOWRELATIONS_SPLIT_DENOMIN... | C++ | src/pks/flow/constitutive_relations/overland_conductivity/split_denominator_conductivity_model.hh | amanzi/ats-dev | bsd-3-clause | 891 | 37 | codeparrot/github-code |
282b3efa7eb2e20cc406d23fa7a9ce677042a8920aa544aafa7b953745950a17 | /*************************************************************************************************************************************************
* Copyright (c) 2016, Nordic Semiconductor
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted prov... | Java | dfu/src/main/java/no/nordicsemi/android/dfu/DfuProgressInfo.java | ringly/Android-DFU-Library | bsd-3-clause | 4,825 | 144 | codeparrot/github-code |
9cb54852e068d8f34c2e4930adab43200344b178e57ea5a73e9f9b7a00366a98 | /* ================================================================================
This file is part of the MinVR Open Source Project, which is developed and
maintained collaboratively by the University of Minnesota's Interactive
Visualization Lab and the Brown University Visualization Research Lab.
File: VRVRPNBu... | C++ | plugins/VRPN/src/VRVRPNButtonDevice.cpp | tsgouros/MinVR2 | bsd-3-clause | 4,650 | 137 | codeparrot/github-code |
58e86faeac45f53f77dd17beded72163fa85da2bd7dd62ce2f73ce7f1d83eba9 | // Copyright 2009 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.
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
package net
import (
"context"
"internal/poll"
"os"
"runtime"
"sync/atomic"
"syscal... | GO | src/net/fd_unix.go | polyverse-security/go | bsd-3-clause | 8,972 | 322 | codeparrot/github-code |
e6ad7547862ebf79684e993c78accf25c0bcf4f9f56b340dfa84e06c153dd1a4 | //////////////////////////////////////////////////////////////////
// (c) Copyright 2003 by Jeongnim Kim
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
// National Center for Supercomputing Applications &
// Materials Computatio... | C | test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/Experimental/TwoBodyJastrowFunction.h | habanero-rice/hclib | bsd-3-clause | 16,260 | 536 | codeparrot/github-code |
075301a2620b85d5532d5280ffde9c3bf977c0ad0ea76816d4117bf1a144057e | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Classes that deal with stretching, i.e. mapping a range of [0:1] values onto
another set of [0:1] values with a transformation
"""
import numpy as np
from .transform import BaseTransform
from .transform import CompositeTransform
__all__ = ["BaseSt... | Python | astropy/visualization/stretch.py | bsipocz/astropy | bsd-3-clause | 15,324 | 564 | codeparrot/github-code |
d1b87d3e46dad10b6e732312e04a4779a1bb388519225a5bb7326d19c6ec405c | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... | Ruby | config/environments/development.rb | hr4e/SurveyImplementation | bsd-3-clause | 1,469 | 39 | codeparrot/github-code |
a8764cdbbccbafdeb5315118c11c8dd84b5eeaa6c27cb0e96e9de74e21713c56 | #!/usr/bin/env python
# Benchmark the effect of chunkshapes in reading large datasets.
# You need at least PyTables 2.1 to run this!
# F. Alted
from time import perf_counter as clock
import numpy as np
import tables as tb
dim1, dim2 = 360, 6_109_666
rows_to_read = range(0, 360, 36)
print("=" * 32)
# Create the EArra... | Python | bench/chunkshape-bench.py | avalentino/PyTables | bsd-3-clause | 1,877 | 59 | codeparrot/github-code |
4fe2555ff2567ba9ae9e755948321ba5f3772f75967f90f214e7c8e4121d87a1 | // =============================================================================
// 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/chrono_vehicle/tracked_vehicle/ChIdler.h | rserban/chrono | bsd-3-clause | 6,999 | 168 | codeparrot/github-code |
3af0d0ff182f79746be75f360ee3b857acf676093891a02179bf1a58e43f64ad | /*
* #%L
* %%
* Copyright (C) 2015 Trustsystems Desenvolvimento de Sistemas, LTDA.
* %%
* 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... | Java | src/main/java/br/com/trustsystems/elfinder/core/impl/SecurityConstraint.java | trustsystems/elfinder-java-connector | bsd-3-clause | 2,298 | 64 | codeparrot/github-code |
e377e0c8bca3d9614866891b3d4fe8f6c78004b4e535657aef22fbb2d2f56a70 | // (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Material)]
[Tooltip("Sets a named texture in a game object's material.")]
public class SetMaterialTexture : FsmStateAction
{
[Tooltip("The GameO... | C# | samples/Myo-Surgeon-Assistant-App/src/Unity3D/Myo_SFDC_v3/Assets/Myo Samples/PlayMaker/Actions/SetMaterialTexture.cs | developerforce/WearablePack-Myo | bsd-3-clause | 1,979 | 80 | codeparrot/github-code |
d6aabe1bfa1128b57570f509e25b29ec625ea34646c8387c2ad2e9791b3d169b | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int64_t_rand_multiply_22b.c
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-22b.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: rand Set data to result of rand()
* GoodSource: S... | C | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s02/CWE190_Integer_Overflow__int64_t_rand_multiply_22b.c | JianpingZeng/xcc | bsd-3-clause | 3,772 | 109 | codeparrot/github-code |
7e0563c7923b547fe48da71bad3c08d4dbace614b4f4c4aed67caeaca7b8f3a4 | <!DOCTYPE html>
<html dir="ltr" lang="pl">
<head>
<title>Jak przetłumaczyć dokumentację - 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 Rub... | HTML | web/_site/doc/pl/how-to/translate-documentation/index.html | travis-repos/rubinius | bsd-3-clause | 6,829 | 233 | codeparrot/github-code |
23c9f08b372e8df6021d1e639b5f6b65016a5bd9a2b434f878ac6b7d0d97e99b | #ifndef LIB_RPKI_SCMF_H
#define LIB_RPKI_SCMF_H
#include "err.h"
#include "util/macros.h"
#include <inttypes.h>
#include <unistd.h>
#include <sql.h>
#include <sqlext.h>
#include "scm.h"
#include <stdarg.h>
typedef struct _scmstat /* connection statistics */
{
char *errmsg; /* error messages... | C | lib/rpki/scmf.h | rhansen/rpstir | bsd-3-clause | 11,590 | 436 | codeparrot/github-code |
e284860eec38fde171ffc18e0a37865ab9653a8446ebd8fd9b97fbcec350ea86 | /**
* Copyright (c) 2015-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.
*/
package co... | Java | ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java | elliottsj/react-native | bsd-3-clause | 1,921 | 66 | codeparrot/github-code |
5a68ecc9f204ef040925dc1875f2a3b2434bc525eaf2f8feb60e95e41599d8d1 | /*
SDL_mixer: An audio mixer library based on the SDL library
Copyright (C) 1997-2009 Sam Lantinga
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... | C | src/util/sound/sdl/mixer/mixer.c | boyjimeking/paintown | bsd-3-clause | 34,646 | 1,457 | codeparrot/github-code |
4d53bb1429f77f2cef14032ae13dd08fb012bbaea2628f433f7b7b35d3557084 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE369_Divide_by_Zero__int_zero_modulo_64a.c
Label Definition File: CWE369_Divide_by_Zero__int.label.xml
Template File: sources-sinks-64a.tmpl.c
*/
/*
* @description
* CWE: 369 Divide by Zero
* BadSource: zero Fixed value of zero
* GoodSource: Non-zero
* Sink... | C | xcc/test/juliet/testcases/CWE369_Divide_by_Zero/s02/CWE369_Divide_by_Zero__int_zero_modulo_64a.c | JianpingZeng/xcc | bsd-3-clause | 2,600 | 98 | codeparrot/github-code |
0baa2d03047d426b8ffab9862362881688ab16b4f6275014c7fc743e69634e80 | /*******************************************************************************
* Copyright (c) 2016, NEC Europe Ltd.
* All rights reserved.
*
* Authors:
* * NEC IoT Platform Team - iotplatform@neclab.eu
* * Flavio Cirillo - flavio.cirillo@neclab.eu
* * Tobias Jacobs - tobias.jacobs@... | Java | eu.neclab.iotplatform.ngsi.api/src/main/java/eu/neclab/iotplatform/ngsi/api/datamodel/SubscribeContextAvailabilityRequest.java | Fiware/iot.Aeron | bsd-3-clause | 5,163 | 165 | codeparrot/github-code |
1b35e6d912420892864652151a1ee5e7ea8000e9a30ef4043b15075634eaecbe | /*
* Copyright (c) Dominick Baier, Brock Allen. All rights reserved.
* see license.txt
*/
using System;
using System.Data.Entity;
using System.Linq;
using Thinktecture.AuthorizationServer.Interfaces;
namespace Thinktecture.AuthorizationServer.EF
{
public class Repository<T> : IRepository<T>
where T :... | C# | source/Thinktecture.AuthorizationServer.EF/EFAuthorizationServerAdministration.cs | IdentityModel/AuthorizationServer | bsd-3-clause | 2,405 | 100 | codeparrot/github-code |
921f8b5ff644b6fddaab6ff81b209ce402d578f3ababee07fa44bb5c8260778e | 'use strict';
var bluebird = require('bluebird');
var fs = bluebird.promisifyAll(require('fs'));
var hljs = require('../../build');
var path = require('path');
var utility = require('../utility');
function testAutoDetection(language) {
var languagePath = utility.buildPath('detect', language);
it(`... | JavaScript | test/detect/index.js | tenbits/highlight.js | bsd-3-clause | 1,031 | 38 | codeparrot/github-code |
750325fac0b84e182ebee0f302715b946e6ec839941c590f3717260286cd8963 | {% extends "shop/catalog/product-add2cart.html" %}
{% load i18n %}
{% block add-product-to-cart-table %}
<table shop-add-to-cart="{{ product.get_absolute_url }}/add-smartphone-to-cart" class="table">
<thead>
<tr>
<th>{% trans "Internal Storage" %}</th>
<th>{% trans "Quantity" %}</th>
<th>{% trans "Unit Pri... | HTML | example/myshop/templates/myshop/catalog/smartphone-add2cart.html | khchine5/django-shop | bsd-3-clause | 1,601 | 49 | codeparrot/github-code |
b0dab79b5732632aa08b136709bfe07677973bb78ff3e75f725ddfc6019c7edc | /*
* Copyright (c) 2018, The OpenThread Authors.
* 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 ... | C++ | src/core/thread/mesh_forwarder_ftd.cpp | bukepo/openthread | bsd-3-clause | 39,505 | 1,161 | codeparrot/github-code |
276019197a6b6ecdfb04c207c5335b2fdf09102a589ba4801d932f64e34af69a | // Copyright 2010-2011, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... | C++ | third_party/mozc/session/random_keyevents_generator.cc | leighpauls/k2cro4 | bsd-3-clause | 9,314 | 328 | codeparrot/github-code |
9f29c852111214bd240ebe3e81203f17aa0fbe90ec619501192d6ae9a0ae2223 | //
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2010 Alessandro Tasora
// Copyright (c) 2013 Project Chrono
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// and at http://projectc... | C | src/physics/ChContinuumMaterial.h | PedroTrujilloV/chrono | bsd-3-clause | 15,546 | 368 | codeparrot/github-code |
ee6eeea39c6183b2dbf77b94bae014167e875fd31f8214f11c4ef58ec40e9e7b | """ This module extends standard Python's pickle module so that it is
capable of writing more efficient pickle files that contain Panda
objects with shared pointers. In particular, a single Python
structure that contains many NodePaths into the same scene graph will
write the NodePaths correctly when used with this pi... | Python | direct/stdpy/pickle.py | toontownfunserver/Panda3D-1.9.0 | bsd-3-clause | 5,329 | 158 | codeparrot/github-code |
7e33b1226cae9a40ddefa5c9effb60028bbbb09b6f81bfe00e0e96913a6bb16c | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE761_Free_Pointer_Not_at_Start_of_Buffer__char_connect_socket_82_goodB2G.cpp
Label Definition File: CWE761_Free_Pointer_Not_at_Start_of_Buffer.label.xml
Template File: source-sinks-82_goodB2G.tmpl.cpp
*/
/*
* @description
* CWE: 761 Free Pointer not at Start of B... | C++ | xcc/test/juliet/testcases/CWE761_Free_Pointer_Not_at_Start_of_Buffer/CWE761_Free_Pointer_Not_at_Start_of_Buffer__char_connect_socket_82_goodB2G.cpp | JianpingZeng/xcc | bsd-3-clause | 1,384 | 45 | codeparrot/github-code |
1404261374a0ef2b1691f74ffd951a6a49a27db5875f54aaf1e38a1662444392 | //////////////////////////////////////////////////////////////////
// (c) Copyright 2008- by Jeongnim Kim
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
// National Center for Supercomputing Applications &
// Materials Computati... | C++ | test/performance-regression/full-apps/qmcpack/src/SandBox/radfunc.cpp | habanero-rice/hclib | bsd-3-clause | 4,028 | 130 | codeparrot/github-code |
a02622dce619d462cb53717875898e507353f596f506ff3c764d9381bd813b03 | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkSGRenderNode_DEFINED
#define SkSGRenderNode_DEFINED
#include "modules/sksg/include/SkSGNode.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkColor... | C | third_party/skia/modules/sksg/include/SkSGRenderNode.h | youtube/cobalt | bsd-3-clause | 5,016 | 149 | codeparrot/github-code |
50a5be15edefc21e3f5d8d3705f467df5998660f3fe73a5e4c07fec3c6faa890 | package org.basex.util;
import static org.basex.util.Token.*;
import static org.junit.Assert.*;
import org.basex.util.ft.*;
import org.junit.*;
/**
* Tests for {@link WesternTokenizer}.
*
* @author BaseX Team 2005-15, BSD License
* @author Dimitar Popov
*/
public final class WesternTokenizerTest {
/** Case se... | Java | basex-core/src/test/java/org/basex/util/WesternTokenizerTest.java | deshmnnit04/basex | bsd-3-clause | 4,108 | 170 | codeparrot/github-code |
bb076a32a949c0952b17f63cc3cfdac7be24892f822e2402f5bfb7aa5c471c16 | /* Copyright 2013 Google Inc. All Rights Reserved.
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 ag... | C | third_party/brotli/dec/decode.c | Workday/OpenFrame | bsd-3-clause | 80,966 | 2,319 | codeparrot/github-code |
ca852771d9320cee0b2599306ff62b85bce130101a236c0e3ad412dd0b08cf9e | <?php defined('SYSPATH') or die('No direct script access.');
abstract class Formo_Core_View extends View {
/**
* The formo_container object
*
* @var mixed
* @access protected
*/
public $_container;
/**
* Decorator-specific variables
*
* (default value: array())
*
* @var array
* @access prot... | PHP | modules/formo/classes/formo/core/view.php | jneslen/pixeltenchi_raw | bsd-3-clause | 4,581 | 265 | codeparrot/github-code |
c1bc1defae598a6e8792cf575f6a55fbd4d3731f02ed64290b2bb4fe9cf9e66c | #include "StdAfx.h"
#include "ShaderManager.h"
#include "glext.h"
#include "GLnames.h"
#include "Configuration.h"
Shader::Shader(GLenum type)
{
shaderID = glCreateShader(type);
this->type = type;
}
Shader::~Shader(void)
{
glDeleteShader(shaderID);
}
int Shader::loadShader(const char *name, char *errorString)
{
c... | C++ | watercolor_imgui/editor/ShaderManager.cpp | chock-mostlyharmless/mostlyharmless | bsd-3-clause | 10,211 | 456 | codeparrot/github-code |
5fb5e34a1017727b4af4fdf6fce6944da203c49b55253280845723ad21b43425 | /*
* Copyright (c) 2006-2016, openmetaverse.co
* 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
... | C# | Programs/examples/TestClient/Commands/Movement/TurnToCommand.cs | radegastdev/libopenmetaverse | bsd-3-clause | 2,504 | 58 | codeparrot/github-code |
2c76a2da0c1fedd5e385f40aa51a013c056f9db15818b000ef3639175e446ce8 | /*-------------------------------------------------------------------------
*
* Copyright (c) 2003-2011, PostgreSQL Global Development Group
* Copyright (c) 2004, Open Cloud Limited.
*
*
*-------------------------------------------------------------------------
*/
package org.postgresql.core;
import java.util.Vector;
... | Java | org/postgresql/core/SetupQueryRunner.java | tivv/pgjdbc | bsd-3-clause | 2,872 | 93 | codeparrot/github-code |
c2e01f278c02c8ea544048b2d107d15cd04c700eb8e371ceece2a99270032cbc | <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>KWMessagePattern Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<meta name="viewport" content="width=550" />
<link rel="stylesheet" type="text/css" href="../css... | HTML | Pods/Documentation/Kiwi/html/Classes/KWMessagePattern.html | City-Outdoors/City-Outdoors-iOS | bsd-3-clause | 17,149 | 539 | codeparrot/github-code |
172493fea572e78505c189a78818841796b18acd5c51af3eda32f7165bd323d6 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__new_wchar_t_ncpy_03.cpp
Label Definition File: CWE127_Buffer_Underread__new.label.xml
Template File: sources-sink-03.tmpl.cpp
*/
/*
* @description
* CWE: 127 Buffer Under-read
* BadSource: Set data pointer to before the allocated memory ... | C++ | xcc/test/juliet/testcases/CWE127_Buffer_Underread/s03/CWE127_Buffer_Underread__new_wchar_t_ncpy_03.cpp | JianpingZeng/xcc | bsd-3-clause | 4,642 | 158 | codeparrot/github-code |
efd01eacae7094ad37316fcc010081fe91a09c7578781198478af004e2c95a91 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE806_wchar_t_declare_snprintf_74a.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE806.label.xml
Template File: sources-sink-74a.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSourc... | C++ | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s08/CWE121_Stack_Based_Buffer_Overflow__CWE806_wchar_t_declare_snprintf_74a.cpp | JianpingZeng/xcc | bsd-3-clause | 2,921 | 110 | codeparrot/github-code |
8a53f75b164ff949d39cac9807cfd7e5e00ef8ac57bef93ae17ed897588248b1 | /*------------------------------------------------------------------------------
*
* Copyright (c) 2011, EURid. All rights reserved.
* The YADIFA TM software product is provided under the BSD 3-clause license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... | C | lib/dnsdb/src/dictionary_btree.c | koodaamo/yadifa | bsd-3-clause | 12,395 | 418 | codeparrot/github-code |
9d80d2b9e40134756317eff75ffd5e5fe860c58d417d7e2abfc6a850883b1e52 | <?php
namespace app\models;
use Yii;
use yii\base\NotSupportedException;
use \yii\web\IdentityInterface;
use \yii\db\ActiveRecord;
/**
* This is the model class for table "user".
*
* @property string $username
* @property string $password
*/
class UserRecord extends ActiveRecord implements IdentityInterface
{
... | PHP | models/UserRecord.php | aznchat100/Yii2-Basic | bsd-3-clause | 1,882 | 91 | codeparrot/github-code |
7b1af330b07bcdd34ef50fe0f4c524e588ac1c5b49b87e370d40a7828568dcb8 | import distutils.version
import importlib
import types
import warnings
# Update install.rst when updating versions!
VERSIONS = {
"bs4": "4.6.0",
"bottleneck": "1.2.1",
"fastparquet": "0.2.1",
"gcsfs": "0.2.2",
"lxml.etree": "3.8.0",
"matplotlib": "2.2.2",
"numexpr": "2.6.2",
"odfpy": "... | Python | pandas/compat/_optional.py | toobaz/pandas | bsd-3-clause | 3,494 | 112 | codeparrot/github-code |
2b5b59eab087d012962dde5b7648f4c019be5e3954bceed24e09d84aefef5992 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Docs for page Message.php</title>
<link rel="stylesheet" href="../../media/sty... | HTML | protected/modules/containr/extensions/yii-mail/doc/Swift/Mime/_vendors---swiftMailer---classes---Swift---Mime---Message.php.html | giantbits/conTainr | bsd-3-clause | 5,182 | 166 | codeparrot/github-code |
8f2d0dd6b1ac5d087c49d1b487bd4fca30e5a1de19cd997e56c32f3b5ff317a6 | #if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
using DPek.Raconteur.Util.Expressions;
namespace DPek.Raconteur.Test
{
[InitializeOnLoad]
public class RenPyExpressionTest : EditorWindow
{
public static bool NoOpInt()
{
var state = new TestStoryState();
var parser = ExpressionParserFactory.GetRenPy... | C# | Test/RenPyExpressionTest.cs | dpek/unity-raconteur | bsd-3-clause | 8,214 | 313 | codeparrot/github-code |
6ed06c1d2b7d63af7dbf781a543b5aeea241e313741035cfc4921873c22d852b | /* $Id$ */
package ibis.ipl;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.ArrayList;
/**
* Signals a failure to connect to one or more ReceivePorts. Besides
* failed connections, also has a list of succeeded connection attempts.
*/
public class ConnectionsFailedException extends IbisI... | Java | src/ibis/ipl/ConnectionsFailedException.java | interdroid/ibis-ipl | bsd-3-clause | 5,562 | 169 | codeparrot/github-code |
a1ae0fec0cf91d50050e1f9986e40230c993708e7468ad91b0295af9e7843b50 | <?php
namespace Maghead\TableBuilder;
use Maghead\Schema\Schema;
use Maghead\Schema\DeclareColumn;
use Magsql\ArgumentArray;
/**
* Schema SQL builder.
*
* @see http://www.sqlite.org/docs.html
*/
class PgsqlBuilder extends TableBuilder
{
public function buildColumn(Schema $schema, DeclareColumn $column)
{... | PHP | src/TableBuilder/PgsqlBuilder.php | c9s/LazyRecord | bsd-3-clause | 1,065 | 47 | codeparrot/github-code |
dece33903fd14e335750480b597476e4173c217f7b2e9f32de1f9d2ae19776fc | <?php
/**
* infoalex
* @category
* @package Models
* @subpackage
* @author alexis borges
* @copyright
*/
class Servicio extends ActiveRecord {
/**
* Constante para definir el id de la oficina principal
*/
const OFICINA_PRINCIPAL = 1;
/**
* Método para definir las rel... | PHP | default/app/models/proveedorsalud/servicio.php | edgarroa/mantenimiento | bsd-3-clause | 4,443 | 127 | codeparrot/github-code |
377c88535aa4c5738e619b45b0763d1ed7dd0446714e22845df14c2dd41e0eef | module Tandoori.GHC.Internals
(module SrcLoc,
module Outputable,
module Name,
module BasicTypes,
module Unique,
module FastString,
module HsExpr,
module HsTypes,
module HsPat,
module HsLit,
module HsBinds,
module DataCon,
module TysWiredIn,
mo... | Haskell | src/Tandoori/GHC/Internals.hs | bitemyapp/tandoori | bsd-3-clause | 845 | 35 | codeparrot/github-code |
bb386415910c3b10bffd52bda8142af0f1e52a7fe457a740d4c15324d8cedd7b | /*
* clientinterface implementation
*
* Copyright (C) Thomas Escher, Kai Lingemann
*
* Released under the GPL version 3.
*
*/
#include "scanserver/clientInterface.h"
#include <iostream>
using std::cout;
using std::cerr;
using std::cin;
using std::endl;
#include <stdexcept>
#include <boost/filesystem.hpp>
usin... | C++ | Andreas/slam6d/src/scanserver/clientInterface.cc | saeedghsh/SSRR13 | bsd-3-clause | 7,887 | 304 | codeparrot/github-code |
8db31ea57dcab089f34f885d90af6d05564b807e59d7013a9de2097b175f3682 | /******************************************************************
***** *****
***** Name: cs8900.c *****
***** Ver.: 1.0 *****
***** Date: 07/05/2001 ... | C | FreeRTOS/FreeRTOS/Demo/ARM7_LPC2368_Rowley/webserver/emac.c | jedediahfrey/STM32F4-Discovery_FW_V1.1.0_Makefiles | bsd-3-clause | 10,794 | 413 | codeparrot/github-code |
b2d80a2db1039660ef8b6250398685ef5477ef233d11a0024dc0527daeb94997 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_delete_int64_t_67a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_delete.label.xml
Template File: sources-sinks-67a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memor... | C++ | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s05/CWE762_Mismatched_Memory_Management_Routines__new_array_delete_int64_t_67a.cpp | JianpingZeng/xcc | bsd-3-clause | 2,991 | 116 | codeparrot/github-code |
e2ce99f34a171edf7cbce1c882df028c333bde5d7333e1fa4a3379ac69be7356 | {-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1997-1998
Author: Juan J. Quintela <quintela@krilin.dc.fi.udc.es>
-}
{-# LANGUAGE CPP #-}
module ETA.DeSugar.Check ( check , ExhaustivePat ) where
import ETA.HsSyn.HsSyn
import ETA.TypeCheck.TcHsSyn
import ETA.DeSugar.DsUtils
im... | Haskell | compiler/ETA/DeSugar/Check.hs | pparkkin/eta | bsd-3-clause | 30,170 | 773 | codeparrot/github-code |
2d9a5914d12a044f170115cd3dc1f9d29dcbd8c6a44a2217f1c6cd3d4406a4a1 | #include <pybind11/pybind11.h>
namespace py = pybind11;
namespace aikido {
namespace python {
void eigen_geometry(py::module& m);
void aikidopy_common(py::module& m);
void aikidopy_statespace(py::module& m);
void aikidopy_constraint(py::module& m);
void aikidopy_planner(py::module& m);
void aikidopy_robot(py::modul... | C++ | python/aikidopy/aikidopy.cpp | personalrobotics/aikido | bsd-3-clause | 829 | 38 | codeparrot/github-code |
ca6a5a161691a8de48b3a0d53e5613954bfba038fcacb98f1477f4dfa71e5172 | package info.tregmine.api.math;
import org.bukkit.Location;
/**
* Basic math function to calculate stuff like distances
*/
public class Distance {
/**
* Calculates the distance in 2d (x,z)
*
* @param loc1 location of the first entity
* @param loc2 location of the first entity
* @retur... | Java | src/main/java/info/tregmine/api/math/Distance.java | Clunker5/tregmine-2.0 | bsd-3-clause | 1,122 | 42 | codeparrot/github-code |
7c309e804f6206ed82a07bb84d9026efd8696ffca5dd89c4049d230f7ec44b65 | """Abstract base models used by the page management application."""
from django.db import models
from django.shortcuts import render
from cms import externals
from cms.models.managers import OnlineBaseManager, PublishedBaseManager, SearchMetaBaseManager, PageBaseManager
class PublishedBase(models.Model):
"... | Python | src/cms/models/base.py | JamesJGarner/cms | bsd-3-clause | 7,140 | 251 | codeparrot/github-code |
2359c098cb550c0d65be0143e41b6da2ab8c84b28074e92275145ea99e34d31f | /* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "packspu.h"
#include "cr_mem.h"
#include "cr_packfunctions.h"
#include "cr_string.h"
#include "packspu_proto.h"
#define MAGIC_OFFSET 3000
/*
* Allocate a ne... | C | spu/pack/packspu_context.c | excid3/chromium | bsd-3-clause | 5,917 | 240 | codeparrot/github-code |
75de93de41edb520c6879a88ba255e7ce16a83a321c591a21bc62f23d114510f | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | C++ | Modules/MatchPointRegistration/src/Rendering/mitkRegistrationWrapperMapper3D.cpp | MITK/MITK | bsd-3-clause | 1,420 | 54 | codeparrot/github-code |
85d2a84e962c563ea0b152432bef7db3af826cb19f8e0607cf43e15fb0179af9 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE195_Signed_to_Unsigned_Conversion_Error__negative_memmove_64b.c
Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml
Template File: sources-sink-64b.tmpl.c
*/
/*
* @description
* CWE: 195 Signed to Unsigned Conversion Error
* BadSource: ... | C | xcc/test/juliet/testcases/CWE195_Signed_to_Unsigned_Conversion_Error/s02/CWE195_Signed_to_Unsigned_Conversion_Error__negative_memmove_64b.c | JianpingZeng/xcc | bsd-3-clause | 2,315 | 71 | codeparrot/github-code |
86129228bed20acd488cfc2533bf10513eaead22f2c82a6fc41a1508594a99d3 | import chainer
import chainer.functions as F
import chainer.links as L
from chainer_mask_rcnn.models.mask_rcnn_resnet import _copy_persistent_chain
from chainer_mask_rcnn.models.resnet_extractor import _convert_bn_to_affine
from ..resnet import BuildingBlock
from ..resnet import ResNet101Extractor
from ..resnet impor... | Python | demos/instance_occlsegm/instance_occlsegm_lib/contrib/instance_occlsegm/models/fcn/fcn16s_resnet_occlusion.py | start-jsk/jsk_apc | bsd-3-clause | 3,904 | 123 | codeparrot/github-code |
5e22e8cb1c077ea370b187f6cdaae8be7c3b71d7758e01d026365da4ab660e76 | //////////////////////////////////////////////////////////////////
// (c) Copyright 2012- by Jeongnim Kim and Ken Esler //
//////////////////////////////////////////////////////////////////
#ifndef QMCPLUSPLUS_EINSPLINE_MULTIGRID_ADOPTOR_H
#define QMCPLUSPLUS_EINSPLINE_MULTIGRID_ADOPTOR_H
#include <QMCWaveF... | C | test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/MultiGridBsplineSet.h | habanero-rice/hcpp | bsd-3-clause | 7,088 | 205 | codeparrot/github-code |
7deb1ddb35ad5d3895862ed4e20a8a791b2a1d70c3bd62c5c75c724bd8c31cfd | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__wchar_t_listen_socket_ifstream_73a.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-73a.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: listen_socket Read da... | C++ | xcc/test/juliet/testcases/CWE36_Absolute_Path_Traversal/s04/CWE36_Absolute_Path_Traversal__wchar_t_listen_socket_ifstream_73a.cpp | JianpingZeng/xcc | bsd-3-clause | 5,720 | 212 | codeparrot/github-code |
70424267f5260bba739bd63143ca81bda95534283204055de01277aa3c4444c6 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__new_struct_twoIntsStruct_06.cpp
Label Definition File: CWE401_Memory_Leak__new.label.xml
Template File: sources-sinks-06.tmpl.cpp
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: Allocate data using new
* GoodSource: Allocate data o... | C++ | xcc/test/juliet/testcases/CWE401_Memory_Leak/s02/CWE401_Memory_Leak__new_struct_twoIntsStruct_06.cpp | JianpingZeng/xcc | bsd-3-clause | 5,186 | 193 | codeparrot/github-code |
9c784a422a27f3fd88de7739895aee732224766a7d2cb301b8a4e132c250ea49 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE114_Process_Control__w32_char_connect_socket_52c.c
Label Definition File: CWE114_Process_Control__w32.label.xml
Template File: sources-sink-52c.tmpl.c
*/
/*
* @description
* CWE: 114 Process Control
* BadSource: connect_socket Read data using a connect socket ... | C | xcc/test/juliet/testcases/CWE114_Process_Control/CWE114_Process_Control__w32_char_connect_socket_52c.c | JianpingZeng/xcc | bsd-3-clause | 2,519 | 91 | codeparrot/github-code |
faaa6405fcff33ecd71270ed7b2249112653b67cd13c73c4830f2b33a6a2b371 | // 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 <dirent.h>
#include <fcntl.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h... | C++ | content/common/sandbox_linux/sandbox_linux.cc | vadimtk/chrome4sdp | bsd-3-clause | 15,528 | 457 | codeparrot/github-code |
9573b0454ff089b297eb343c5d042ff6d1edf673f9ee5a57b9fdb7a23c7f9b52 | export const types = {
UPDATE_AOI_INFO: 'UPDATE_AOI_INFO',
CLEAR_AOI_INFO: 'CLEAR_AOI_INFO',
UPDATE_EXPORT_INFO: 'UPDATE_EXPORT_INFO',
UPDATE_EXPORT_OPTIONS: 'UPDATE_EXPORT_OPTIONS',
CLEAR_EXPORT_INFO: 'CLEAR_EXPORT_INFO',
SUBMITTING_JOB: 'SUBMITTING_JOB',
JOB_SUBMITTED_SUCCESS: 'JOB_SUBMITT... | JavaScript | eventkit_cloud/ui/static/ui/app/actions/datacartActions.js | venicegeo/eventkit-cloud | bsd-3-clause | 3,078 | 123 | codeparrot/github-code |
437749583884a42343ccdd96ed812d863c5982325a6d61fde1ee4b9348ae13d1 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_APP_HISTORY_APP_HISTORY_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_APP_HISTORY_APP_HISTORY_H_
#include "base/memo... | C | third_party/blink/renderer/core/app_history/app_history.h | nwjs/chromium.src | bsd-3-clause | 6,095 | 157 | codeparrot/github-code |
49e0bcac95ffb5d7e176de5df8383b505c01d0e67f8b57f160299735afb17d1b | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_FEED_ANDROID_REFRESH_TASK_SCHEDULER_IMPL_H_
#define CHROME_BROWSER_FEED_ANDROID_REFRESH_TASK_SCHEDULER_IMPL_H_
#include "base/call... | C | chrome/browser/feed/android/refresh_task_scheduler_impl.h | nwjs/chromium.src | bsd-3-clause | 1,544 | 47 | codeparrot/github-code |
cdde566c97e14a117aee9daa864f539bd1e1383633a05ee9b2399722b742b532 | /*
* Copyright (C) 2012 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 a... | C | third_party/WebKit/Source/WebCore/page/scrolling/chromium/ScrollingCoordinatorChromium.h | leighpauls/k2cro4 | bsd-3-clause | 3,682 | 86 | codeparrot/github-code |
be7225dd9972c56b45bd174fb29ce0d692207093b1f47c15c4ac439c08be9c09 | package org.motechproject.hub.mds;
import org.motechproject.mds.annotations.Entity;
import org.motechproject.mds.annotations.Field;
/**
* Stores the status of a subscription
*/
@Entity
public class HubSubscriptionStatus implements java.io.Serializable {
private static final long serialVersionUID = 899578100545... | Java | hub/src/main/java/org/motechproject/hub/mds/HubSubscriptionStatus.java | smalecki/modules | bsd-3-clause | 1,220 | 45 | codeparrot/github-code |
9e876735c611b9802587d38cf60ce5254cac5ef849852ec5419d80899154651a | {-# LANGUAGE CPP #-}
-- |
-- Package configuration information: essentially the interface to Cabal, with
-- some utilities
--
-- (c) The University of Glasgow, 2004
--
module PackageConfig (
-- $package_naming
-- * PackageId
mkPackageId, packageConfigId,
-- * The PackageConfig type: i... | Haskell | compiler/main/PackageConfig.hs | frantisekfarka/ghc-dsi | bsd-3-clause | 3,235 | 84 | codeparrot/github-code |
d7e97319c5a17734abe9c16cfc849d84b7b2fb625f6186819137a0ba09f7ab01 | // Copyright 2013 The Flutter 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 "flutter/shell/platform/windows/angle_surface_manager.h"
#include <iostream>
#include <vector>
#ifdef WINUWP
#include <third_party/cppwinrt/gene... | C++ | shell/platform/windows/angle_surface_manager.cc | flutter/engine | bsd-3-clause | 10,400 | 326 | codeparrot/github-code |
af77f6b8c0ce8a55a3321113d88bfcb479588312919f58f4d6e7fe91b119bf93 | {% extends "impala/base_shared.html" %}
{% from 'includes/forms.html' import pretty_field, required_note %}
{% set title = _('Add a review for {0}')|format_html(addon.name) %}
{% block title %}{{ page_title(title) }}{% endblock %}
{% block bodyclass %}reviews gutter{% endblock %}
{% block content %}
<h1>{{ title... | HTML | src/olympia/ratings/templates/ratings/add.html | tsl143/addons-server | bsd-3-clause | 2,410 | 64 | codeparrot/github-code |
28df7f0b8d1dee15e407e561cf7d88aa8bdd137edb083ece4428594bd0b007e5 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEVICE_FIDO_AUTHENTICATOR_SUPPORTED_OPTIONS_H_
#define DEVICE_FIDO_AUTHENTICATOR_SUPPORTED_OPTIONS_H_
#include "base/component_export.h"
#include... | C | device/fido/authenticator_supported_options.h | scheib/chromium | bsd-3-clause | 5,006 | 115 | codeparrot/github-code |
7ab143f59bf8b3e5c0d8decc808d8945cc8f05ca3ab94da0081c73a282c6346f | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE690_NULL_Deref_From_Return__char_realloc_54e.c
Label Definition File: CWE690_NULL_Deref_From_Return.free.label.xml
Template File: source-sinks-54e.tmpl.c
*/
/*
* @description
* CWE: 690 Unchecked Return Value To NULL Pointer
* BadSource: realloc Allocate data ... | C | xcc/test/juliet/testcases/CWE690_NULL_Deref_From_Return/s01/CWE690_NULL_Deref_From_Return__char_realloc_54e.c | JianpingZeng/xcc | bsd-3-clause | 1,375 | 47 | codeparrot/github-code |
ebd8546985e7190d1a8e5fe895ebcdb6ed852de9096686d2a5303aa9ce104baa | /*===================================================================
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 | Plugins/org.mitk.gui.qt.datamanager/src/mitkIContextMenuAction.h | RabadanLab/MITKats | bsd-3-clause | 1,631 | 54 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.