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
fa6017b3362918ad56d8808ef2bf9ec6177a11b7eb31090dc37f7165c2dc5e18
{-| Implementation of the primitives of instance allocation -} {- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015 Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of so...
Haskell
src/Ganeti/HTools/Cluster/AllocatePrimitives.hs
mbakke/ganeti
bsd-2-clause
3,665
87
codeparrot/github-code
8089c6e9c9fb24f23f85503680389ad322a97962e5b552850227696997b0ca35
package org.mapfish.print.processor.map.scalebar; import static org.junit.Assert.assertEquals; import java.awt.Dimension; import java.io.File; import java.net.URI; import org.geotools.referencing.CRS; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; impor...
Java
core/src/test/java/org/mapfish/print/processor/map/scalebar/ScalebarGraphicTest.java
Galigeo/mapfish-print
bsd-2-clause
8,084
188
codeparrot/github-code
181a61a516722657a192cf80fa790a1b559e3ed167979763e808a896026ce5ca
/*- * Copyright (C) 2012 Margarida Gouveia * 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...
C
head/sys/powerpc/wii/platform_wii.c
dplbsd/soc2013
bsd-2-clause
4,495
165
codeparrot/github-code
14230e8b9a62b0b96125f33da177d786d9cb3630c9747c558050943828910b35
# typed: false # frozen_string_literal: true module Homebrew module Diagnostic class Volumes def initialize @volumes = get_mounts end def which(path) vols = get_mounts path # no volume found return -1 if vols.empty? vol_index = @volumes.index(vols[0]) ...
Ruby
Library/Homebrew/extend/os/mac/diagnostic.rb
sjackman/homebrew
bsd-2-clause
15,624
479
codeparrot/github-code
6ab6c8b9e15740b85a0d5657a64e83146b252889ebef304029486880b85c4eaf
/* * Copyright (C) 2014 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
C
third_party/webrtc/include/chromium/src/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.h
ssaroha/node-webrtc
bsd-2-clause
3,172
89
codeparrot/github-code
024631d30cb9c0e5af07bf6d7bbff4a8ab7b9626e90e3f2f0e74c93655d73b7b
/* Copyright (c) 2014, Project OSRM, Dennis Luxen, others 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 ...
C++
data_structures/concurrent_queue.hpp
VRPTools/pkg-osrm-backend
bsd-2-clause
2,902
84
codeparrot/github-code
b1c9223d17195f5befcf87438445541eed6253af48af28a7fd003eb256ef0a7e
import TLSFingerprints from "./models/TLSFingerprints"; import FingerPrintsTemplate from "./templates/Fingerprints.html"; import FingerPrintTemplate from "./templates/Fingerprint.html"; import FingerPrintDialogContent from "./templates/FingerPrintDialogContent.html"; const model = new TLSFingerprints(); const Finger...
JavaScript
www/nginx/src/opnsense/www/js/nginx/src/tls_handshakes.js
evbevz/plugins
bsd-2-clause
4,364
135
codeparrot/github-code
72479d4c0a1cfd45c50c2617a6275c5a12eb0bf5835cd5017982eed3a7b29d96
# Copyright (c) 2013-2016 Hewlett Packard Enterprise Development LP # # Redistribution and use of this software 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, # thi...
Python
euca2ools/commands/s3/getobject.py
gholms/euca2ools
bsd-2-clause
5,714
123
codeparrot/github-code
dbe99ecead2a2177d70ad1adc2a0428e242c80afa82ccba41ef1c53f9dfa7328
import cPickle import gzip import time import os import sys import cPickle as pickle import gc import numpy as np from time import sleep import auc import theano import theano.tensor as T from theano.tensor.signal import downsample from theano.tensor.nnet import conv from theano.ifelse import ifelse import theano.print...
Python
run.py
lr292358/connectomics
bsd-2-clause
17,790
474
codeparrot/github-code
be4f80844258b35484c243a9f6489c738e330de8f0047fb9e356ad73494d57e7
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta name="apple-mobile-web-app-capable" content="yes"> <title>OpenLayers 2 Restricted Extent Ex...
HTML
examples/restricted-extent.html
openlayers/ol2
bsd-2-clause
3,040
78
codeparrot/github-code
d15890811919ca2de8c80ffa5c66ab022b1f210634f96c13db21190c488497be
#ifndef TRACKED_PERSONS_CACHE_H #define TRACKED_PERSONS_CACHE_H #include <map> #include <geometry_msgs/PoseWithCovariance.h> #include <geometry_msgs/TwistWithCovariance.h> #include <spencer_tracking_msgs/TrackedPersons.h> #include "additional_topic_subscriber.h" namespace spencer_tracking_rviz_plugin { typed...
C
visualization/spencer_tracking_rviz_plugin/src/tracked_persons_cache.h
pirobot/pedsim_ros
bsd-2-clause
2,118
62
codeparrot/github-code
86be61d54a163068ff8c083033ecd94ff1c9985f22cfb1ef03c06fc2a14404f1
#!/usr/bin/python # # Copyright (C) 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. Redistributions of source code must retain the above copyright notice, # this list of...
Python
test/py/cmdlib/backup_unittest.py
apyrgio/ganeti
bsd-2-clause
7,522
191
codeparrot/github-code
9a46ad279eafeb4cab0a69c1df01a71fdab56780ea70d77fe345e65ad6908e8c
#![crate_type = "bin"] #![feature(globs)] extern crate protobuf; extern crate getopts; use std::io::fs::*; use std::io::Reader; use std::io::Writer; use std::path::Path; use std::os; use protobuf::parse_from_reader; use protobuf::descriptor::*; use protobuf::codegen::*; fn write_file(bin: &str, gen_options: &GenOp...
Rust
src/protobuf-bin-gen-rust.rs
Blei/rust-protobuf
bsd-2-clause
1,254
46
codeparrot/github-code
f6b0e7835d5fa13c91bae412f4c73d76667f4544c4ac6dc9c2b043c89d053038
use `testrundb`; SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `bench_backup_additional_relations`; DROP TABLE IF EXISTS `bench_backup_values`; DROP TABLE IF EXISTS `bench_additional_relations`; DROP TABLE IF EXISTS `bench_additional_type_relations`; DROP TABLE IF EXISTS `bench_additional_values`; DROP TABLE IF EX...
SQL
sql/benchmark.sql
tapper/Tapper-Benchmark
bsd-2-clause
9,694
196
codeparrot/github-code
e1fdce5afd350168a5b5a1424f805c7d5dbfbfb86a831416aef851dc449a6230
/* 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#
XenAdmin/Controls/PoolHostPicker.cs
xenserver/xenadmin
bsd-2-clause
16,717
468
codeparrot/github-code
33d917c153e0cf7edc52ae09a8a5d1957b9115e83abb8f85db807a5ce08cb362
<?php require_once 'Kwf/Exception/NoLog.php'; class Kwf_Exception extends Kwf_Exception_NoLog { /** * Informiert den Entwickler über diese Exception */ public function notify() { if ($this->log()) { return; } if (php_sapi_name() == 'cli') { echo 'WAR...
PHP
Kwf/Exception.php
mike-tuxedo/koala-framework
bsd-2-clause
2,737
80
codeparrot/github-code
78c6f726791fca189543396181a6e3c8ed798a8417e34e808c9a310f601fbf54
/* * Copyright (C) Igor Sysoev */ #include <ngx_config.h> #include <ngx_core.h> static ngx_atomic_uint_t ngx_temp_number; static ngx_atomic_uint_t ngx_random_number; ssize_t ngx_write_chain_to_temp_file(ngx_temp_file_t *tf, ngx_chain_t *chain) { ngx_int_t rc; if (tf->file.fd == NGX_INVALID_FILE) { ...
C
src/core/ngx_file.c
colin/nginx
bsd-2-clause
20,065
823
codeparrot/github-code
e9597e9a1ba8c1487b949f0e60b0e2dfcbd9dd21ee33e9f2af253eb87ffded1a
/* * Copyright (C) 2012 Adobe Systems Incorporated. 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
chromium/src/third_party/WebKit/Source/core/rendering/FlowThreadController.h
espadrine/opera
bsd-3-clause
3,982
100
codeparrot/github-code
e871d1bfe7e971fbf7b60717f7eab420109e895926d857660e83b5a2aa96dd8e
#include "muduo/net/TcpServer.h" #include "muduo/base/Atomic.h" #include "muduo/base/FileUtil.h" #include "muduo/base/Logging.h" #include "muduo/base/ProcessInfo.h" #include "muduo/base/Thread.h" #include "muduo/net/EventLoop.h" #include "muduo/net/InetAddress.h" #include <utility> #include <stdio.h> #include <unist...
C++
examples/netty/echo/server2.cc
westfly/muduo
bsd-3-clause
3,595
140
codeparrot/github-code
8e839efbdd3d6f52a29340a47eec9a742f98bbb56d66c6520bc361c5445daf41
from __future__ import absolute_import, print_function import logging from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from sentry.pipeline import Pip...
Python
src/sentry/identity/pipeline.py
ifduyue/sentry
bsd-3-clause
2,192
67
codeparrot/github-code
e1c9fb4908acd08301512b479a0bf6214ceef1b832578d86c4aa4316a2d01b50
-- | -- Module : Foundation.Tuple -- License : BSD-style -- Maintainer : Vincent Hanquez <vincent@snarc.org> -- Stability : experimental -- Portability : portable -- {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} module Foundation.Tuple ( Tuple2(..) , Tuple3(..) , Tuple4(..) ...
Haskell
foundation/Foundation/Tuple.hs
vincenthz/hs-foundation
bsd-3-clause
3,381
112
codeparrot/github-code
f693d779139430dd234bd82f74208062a7b931c2bae08344fd222e2c004c4435
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_loop_54a.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-54a.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set d...
C
xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_loop_54a.c
JianpingZeng/xcc
bsd-3-clause
2,976
86
codeparrot/github-code
d9444ff315e4deacf4214d64a08bbac01ef1096c571eda1434c7384b8d54ed03
/* * Copyright (c) 2020 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. */ 'use strict'; /* global createProcessedMediaStreamTrack */ // defined in main.js /** * Wrappe...
JavaScript
src/content/insertable-streams/video-processing/js/pipeline.js
webrtc/samples
bsd-3-clause
6,704
213
codeparrot/github-code
f9b0bcc6012d4365f7877b613c512eab019c6593a6d14ffd51f98995dc19ad33
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst __all__ = ['quantity_input'] import inspect from astropy.utils.decorators import wraps from astropy.utils.misc import isiterable from .core import Unit, UnitBase, UnitsError, add_enabled_equivalencies from .physical import _unit_...
Python
astropy/units/decorators.py
stargaser/astropy
bsd-3-clause
9,242
244
codeparrot/github-code
034e58ecc06c33e970c362027f60977eb9db696d4a3f448247690d58b98a1a81
/* native_midi: Hardware Midi support for the SDL_mixer library Copyright (C) 2000,2001 Florian 'Proff' Schulze <florian.proff.schulze@gmx.net> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of th...
C
dep/SDL_mixer-1.2.12/native_midi/native_midi_common.h
chazu/ASCIIWar
bsd-3-clause
2,209
64
codeparrot/github-code
baaa585f7ad4706b0e0486c23dcc78af8300c740fa2897a2df0d01bb53f15714
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/modules/service_worker/service_worker_window_client.h" #include "base/memory/scoped_refptr.h" #include "third_party/...
C++
third_party/blink/renderer/modules/service_worker/service_worker_window_client.cc
nwjs/chromium.src
bsd-3-clause
5,471
140
codeparrot/github-code
63553021f6923fb84e4ddda4d66c361473784e95d94e599b7cd46ce423b95fa8
#include <iostream> #include <unistd.h> #include <sys/wait.h> #include <sys/types.h> #include <sys/stat.h> #include <wait.h> #include <string.h> #include <string> #include <vector> #include <cstdlib> #include <stdlib.h> #include <stdio.h> #include <boost/tokenizer.hpp> #include <boost/token_iterator.hpp> #include <fcnt...
C++
src/mv.cpp
ykamo001/rshell
bsd-3-clause
1,431
76
codeparrot/github-code
0705ca0e3a547f123b37aa8b27f2fd395189eafc43c868c8b6b495ece2293c88
/* Copyright (c) 2015 Convey Computer Corporation * * This file is part of the OpenHT jpegscale application. * * Use and distribution licensed under the BSD 3-clause license. * See the LICENSE file for the complete license text. */ #if defined(VERT) || defined(_WIN32) #include "Ht.h" #include "PersVinfo.h" #ifnd...
C++
apps/jpegresize/lib_pers_mc/src_pers/PersVinfo_src.cpp
TonyBrewer/OpenHT
bsd-3-clause
3,907
166
codeparrot/github-code
f08b7a2289c3c6fc1f01c17d19d9fc0904bd26101d3e0f37af92bb894a7dc019
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__char_connect_socket_w32_vsnprintf_44.c Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-44.tmpl.c */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: c...
C
xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s01/CWE134_Uncontrolled_Format_String__char_connect_socket_w32_vsnprintf_44.c
JianpingZeng/xcc
bsd-3-clause
8,611
290
codeparrot/github-code
52b095a97b540ae7b7863c48e6ebecbef38ba770fd1d3eabfabd7f1b4d09866d
/* Provide a replacement for the POSIX nanosleep function. Copyright (C) 1999-2000, 2002, 2004-2011 Free Software Foundation, 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 Free Software Foundation; either ...
C
external/gnu-coreutils/lib/nanosleep.c
ucsd-progsys/csolve-bak
bsd-3-clause
8,433
284
codeparrot/github-code
12a8c88d64624b29e26e3f89f4a8c22a826c3bc5d6b19c79b331300befe1f053
package dotty.tools.dotc package transform import TreeTransforms._ import core.Names.Name import core.DenotTransformers._ import core.Denotations._ import core.SymDenotations._ import core.Contexts._ import core.Symbols._ import core.Types._ import core.Flags._ import core.Constants._ import core.StdNames._ import cor...
Scala
src/dotty/tools/dotc/transform/TreeChecker.scala
folone/dotty
bsd-3-clause
13,336
332
codeparrot/github-code
e4883a9d9c4cb7a7e21b1a0cae90e7e0ee07c22dbb22ac35364302f397f95fc3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="PooledObject.cs"> // Copyright (c) by respective owners including Yahoo!, Microsoft, and // individual contributors. All rights reserved. Released under a BSD // license as...
C#
cs/cs/PooledObject.cs
marko-asplund/vowpal_wabbit
bsd-3-clause
2,119
59
codeparrot/github-code
1aad608636a6fd7c68a8738585909b2ba605a2c3afddb085001ac9e0ea3c1593
// Copyright (c) 2009 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/gtk/go_button_gtk.h" #include "app/l10n_util.h" #include "base/logging.h" #include "base/message_loop.h" #include "chrome/ap...
C++
chrome/browser/gtk/go_button_gtk.cc
amyvmiwei/chromium
bsd-3-clause
6,325
175
codeparrot/github-code
68cf0180b266da4415a57097b4a971a3b9bf7fd7a74ff5e01d36e05a71a629c7
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__new_char_loop_54c.cpp Label Definition File: CWE127_Buffer_Underread__new.label.xml Template File: sources-sink-54c.tmpl.cpp */ /* * @description * CWE: 127 Buffer Under-read * BadSource: Set data pointer to before the allocated memory b...
C++
xcc/test/juliet/testcases/CWE127_Buffer_Underread/s03/CWE127_Buffer_Underread__new_char_loop_54c.cpp
JianpingZeng/xcc
bsd-3-clause
1,231
51
codeparrot/github-code
38f032a44919d92e64f4bf3f7977349eff403b2c2d1091e6947d80ea03e83ea7
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__dest_char_alloca_cat_67b.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml Template File: sources-sink-67b.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data poin...
C
xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s08/CWE121_Stack_Based_Buffer_Overflow__dest_char_alloca_cat_67b.c
JianpingZeng/xcc
bsd-3-clause
2,042
60
codeparrot/github-code
c7180daf633380af3e0d1e017756593a9da4285b7f98e049c95e103eb0295d44
import re from six import text_type """Translate strings to and from SOAP 1.2 XML name encoding Implements rules for mapping application defined name to XML names specified by the w3 SOAP working group for SOAP version 1.2 in Appendix A of "SOAP Version 1.2 Part 2: Adjuncts", W3C Working Draft 17, December 2001, <htt...
Python
wstools/XMLname.py
pycontribs/wstools
bsd-3-clause
2,575
101
codeparrot/github-code
1e3047215eface1efa49bc286058fd52f68494803f6d108ee99cb41ad6f1b3ca
/* * Copyright 2000-2003 Oracle, Inc. This software was developed in conjunction with the National Cancer Institute, and so to the extent government employees are co-authors, any rights in such works shall be subject to Title 17 of the United States Code, section 105. * Redistribution and use in source and binar...
Java
software/SIW/src/java/gov/nih/nci/ncicb/cadsr/loader/ui/ModeSelectionPanelDescriptor.java
NCIP/cadsr-semantic-tools
bsd-3-clause
4,065
74
codeparrot/github-code
4a8521db90c6885a1c172b9b89e8babc928b4af4b28a8254c71e8a262b0c28bd
// 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. package http import ( "bufio" "bytes" "errors" "fmt" "io" "io/ioutil" "net/http/internal" "net/textproto" "sort" "strconv" "strings" "sync" ) // E...
GO
src/net/http/transfer.go
roth1002/go
bsd-3-clause
22,421
848
codeparrot/github-code
135c774d8243b2ba267732dc9f081f332b34804b64201bff043d1017bca7fc0f
// Copyright 2008 Peter William Birch <birchb@genyis.org> // // This software may be used and distributed according to the terms // of the Genyris License, in the file "LICENSE", incorporated herein by reference. // package org.genyris.core; import java.io.StringWriter; import org.genyris.exception.AccessException; im...
Java
src/org/genyris/core/Pair.java
ravikumar10/genyris
bsd-3-clause
7,449
234
codeparrot/github-code
947009d286cc53788d466008a640de04be625b03351ace31244cc967a01cd4d2
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_alloca_cat_54d.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml Template File: sources-sink-54d.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data p...
C
xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s08/CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_alloca_cat_54d.c
JianpingZeng/xcc
bsd-3-clause
1,569
47
codeparrot/github-code
fe23f5564a8a592bc7536f63ba820e4ad7a3f502e7c7c535f2606ce8b7eb267b
/** * @license * Copyright 2019 Google LLC. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ import {...
JavaScript
devtools/src/arcs-devtools-app.js
PolymerLabs/arcs-live
bsd-3-clause
4,211
130
codeparrot/github-code
86e7858305b738af44c4f27672b9545c8cf2163ae34b3ffdffa246d74e33d1ab
import { Component } from '@angular/core'; import { NavParams, ViewController, ToastController } from 'ionic-angular'; import { Remote } from '../../app/remote'; import { Incident } from '../../app/incident'; import { notify } from '../../app/utils'; @Component({ selector: 'page-incident-form', templateUrl: 'incid...
TypeScript
src/pages/incident-form/incident-form.ts
CUUATS/bikemoves-v2
bsd-3-clause
1,045
41
codeparrot/github-code
87733d3ae742c0f0e1a362a187c8eeb30feca4155c3db5ec14d0cb65cc521a89
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_int64_t_malloc_72b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-72b.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_malloc_72b.cpp
JianpingZeng/xcc
bsd-3-clause
1,762
61
codeparrot/github-code
b33e764ed535906124c35174a053198c16eb9fb4022f67920f294fc4bbe5768e
/*========================================================================= Program: Visualization Toolkit Module: vtkBridgeCellIteratorOne.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This so...
C
Testing/GenericBridge/vtkBridgeCellIteratorOne.h
SimVascular/VTK
bsd-3-clause
3,362
109
codeparrot/github-code
68d5d8730eeb6a0da2582ec5715f69a90b4a9eb9dc3bea4a6f8839e3c1f23275
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008-2017. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
C
wpilibc/athena/include/GearTooth.h
333fred/allwpilib
bsd-3-clause
1,389
38
codeparrot/github-code
f0a8fd2660bcabe964c41f22cf7782c2064702a09b8aa74b3a075dc22817c4cc
// ============================================================================= // 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/ChPart.h
StefanoZaghi1987/ChronoWheelDesigner
bsd-3-clause
5,621
131
codeparrot/github-code
00edf9109c1682790e6a0b8afe5d9fabdf6b58b16e0eec290ca3708338c145e2
""" Query modules mapping functions to their query strings structured: module_name { query_string: function_for_query } """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print_function from __future__ import division # Standard imports from future import standar...
Python
emission/core/wrapper/filter_modules.py
e-mission/e-mission-server
bsd-3-clause
7,166
185
codeparrot/github-code
dc3b11ac5451d20cc23d99b506e0c314ba024b673b5121fbcd60fdc7da387e4f
/* abitmap.c * * This file is part of the Allegro GUI Un-uglification Project. * It is a general bitmap theme, everything is a bitmap. * * One major drawback of AGUP is, it's almost impossible to create a new * theme - something which normally is wanted for use in a game's menu * though. With this bitmap ...
C
src/agup/abitmap.c
destroyer07/editor-on-fire
bsd-3-clause
41,354
1,450
codeparrot/github-code
f252c0441c7ccf0eef206b29764100935ba98d8944edbc1308736826d37f4efe
#pragma once #include <Spotinetta/Spotinetta> #include <QPointer> #include "pointers.h" /* NOTE: NEED TO FIX THIS CLASS WITH REGARDS TO SESSION SHARED POINTER */ namespace Sonetta { class PersistentPlaylistIndex { public: PersistentPlaylistIndex() : m_index(-1) { } PersistentPlaylistIndex(const Spotinetta:...
C
core/src/utilities/persistentplaylistindex.h
Andlon/sonetta
bsd-3-clause
1,069
40
codeparrot/github-code
ef148b0e75ebf7cdc689f1ff55e53a1541bb894d88a088883990b7189d1b81e7
// // Copyright (c) 2014 The ANGLE 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. // // State.h: Defines the State class, encapsulating raw GL state #ifndef LIBGLESV2_STATE_H_ #define LIBGLESV2_STATE_H_ #include "common/an...
C
src/libGLESv2/State.h
nandhanurrevanth/angle
bsd-3-clause
12,055
322
codeparrot/github-code
96b1d9271c0861ae869574f3eeb5469a57c51ce59ab5f000505b4c6649cfa76c
/****************************************************************************** MRF24W Driver Tx Power functions Module for Microchip TCP/IP Stack -Provides access to MRF24W WiFi controller (MRF24WB0MA/B, MRF24WG0MA/B) -Reference: MRF24W Data sheet, IEEE 802.11 Standard *****************************************...
C
Microchip/TCPIP Stack/WiFi/WFTxPower.c
wenyizou/RIC-Segway-Project
bsd-3-clause
11,618
335
codeparrot/github-code
77157de2ecf7b0423d41285dc15836dc1e3f3bed39ecc254a60c3bb4be92e7f2
<?php class OrgCenterAction extends Action{ public function index(){ if(!session('?oid')){ //抛出错误页面 $this->error("企业用户未登录",U("Login/index")); return; } //显示企业信息 $this->showOrgInfo(); //列出申请列表 $this->whoApplyed(); //发布的兼职 $this->showPublicedJob(); //进行中的兼职 $this->showIngJob(); $this->dis...
PHP
Lib/Action/OrgCenterAction.class.php
airect/part-time-job
bsd-3-clause
6,075
221
codeparrot/github-code
0a56b0252b8691bd861c3f690ee00637830290824cca4da4d98b201f49a52596
<?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 LoadBalancedTransport.php</title> <link rel="stylesheet" href="....
HTML
protected/modules/containr/extensions/yii-mail/doc/Swift/Transport/_vendors---swiftMailer---classes---Swift---Transport---LoadBalancedTransport.php.html
giantbits/conTainr
bsd-3-clause
5,295
166
codeparrot/github-code
de262ed5827afb9fb9f2f9285b9a8ee7228a49e86663e86bc4fdfc13f0ffee3d
using System.Collections.Generic; using System.Security; using System.Text; namespace Coevery.Parameters { public interface ICommandLineParser { IEnumerable<string> Parse(string commandLine); } public class CommandLineParser : ICommandLineParser { [SecurityCritical] public IEnumera...
C#
src/Tools/Coevery/Parameters/CommandLineParser.cs
caoxk/OrchardEF
bsd-3-clause
4,136
125
codeparrot/github-code
a2eb6d3e3bc73d2d8acbc469556a7e675cf7eb7f787d6f8de26a6a6097ef9a9f
/////////////////////////////////////////////////////////////////////////////////////////////////// // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) /////////////////////////////////////////////////////////////////////////////////////////////////// // Created : 2008-08-17 // Updated ...
C++
subsurface-scattering/glm/core/type_half.hpp
jhaberstro/subsurface-scattering
bsd-3-clause
2,259
88
codeparrot/github-code
7222d79bc734a1af5b74fc27b605c92dfb0c8f979fbf2c4fde33acb6929b5131
import assert from "assert"; import {Point2D, Vector2D, Matrix2D} from "../index.js"; describe("Point2D", () => { it("new point", () => { const p = new Point2D(10, 20); assert.strictEqual(p.x, 10); assert.strictEqual(p.y, 20); }); it("clone", () => { const p = new Point2D(...
JavaScript
test/point_tests.js
lysz210/kld-affine
bsd-3-clause
4,778
184
codeparrot/github-code
1e4f6f61795c00ff52143969be788f381aeee0dd71b0bb1d35402ba81d7577f9
################################# LICENSE ################################## # Copyright (c) 2009, South African Astronomical Observatory (SAAO) # # All rights reserved. # # # # Redistribu...
Python
saltfp/saltfpringfilter.py
saltastro/pysalt
bsd-3-clause
7,647
192
codeparrot/github-code
91bb024077322fa55060f08227116c71dfaa14f381a05c29e0176eb28de1ba46
/* * Copyright (C) 2008 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 conditi...
C
third_party/WebKit/Source/modules/accessibility/AXTableColumn.h
sgraham/nope
bsd-3-clause
2,865
77
codeparrot/github-code
76c6cab612fa0e8eeaad5cadf0a42e7c4689d8239ab1f66eb4cd391acd56dc3c
/* dtkVrGestureRecognizer.h --- * * Author: Julien Wintz * Copyright (C) 2008 - Julien Wintz, Inria. * Created: Thu Oct 21 19:11:52 2010 (+0200) * Version: $Id$ * Last-Updated: Fri Nov 5 21:24:49 2010 (+0100) * By: Julien Wintz * Update #: 15 */ /* Commentary: * */ /* Change log: * */...
C
src/dtkVrSupport/dtkVrGestureRecognizer.h
NicolasSchnitzler/dtk
bsd-3-clause
1,080
53
codeparrot/github-code
0da6e999aaeeca84da7e081b833537cbedcce108a74f9f2fe7ecdc40b4d7e3b2
<?php /*========================================================================= MIDAS Server Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved. 69328 Lyon, FRANCE. See Copyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILIT...
PHP
core/controllers/components/SortdaoComponent.php
mgrauer/midas3score
bsd-3-clause
2,752
129
codeparrot/github-code
9850b2e49b45ef45d5fc990dad01d3e117015384ad8226daad0884543d444746
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <grp.h> #include <string.h> /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ /* compile instructions (using c static library, for security, to eliminat...
C
.setup/untrusted_execute.c
RCOS-Grading-Server/HWserver
bsd-3-clause
5,460
155
codeparrot/github-code
707f823ec3e19d13788f72fda8873921a176e4f01d3bb1b9f1b8644d8911bd47
__author__ = 'keltonhalbert, wblumberg' from sharppy.viz import plotSkewT, plotHodo, plotText, plotAnalogues from sharppy.viz import plotThetae, plotWinds, plotSpeed, plotKinematics #, plotGeneric from sharppy.viz import plotSlinky, plotWatch, plotAdvection, plotSTP, plotWinter from sharppy.viz import plotSHIP, plotST...
Python
sharppy/viz/SPCWindow.py
djgagne/SHARPpy
bsd-3-clause
29,262
772
codeparrot/github-code
6fbc6ce495da9e597b02b109151251e1375722731fe95830260f54f1aa35bd19
// # ifdef __cplusplus // extern "C" { // # endif //========================================================================================================================================================================================================200 //=============================================================...
C
test/c/b+tree/main.c
agrippa/hiper-port
bsd-3-clause
62,703
2,450
codeparrot/github-code
fb2b870201b82bff5a6af947236680f51da60d09a3efe16937d8c2dd08ceca1d
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_74b.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-74b.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate...
C++
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s06/CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_74b.cpp
JianpingZeng/xcc
bsd-3-clause
1,947
69
codeparrot/github-code
352b09a16301e6a5f896eca0621a0408710626222e62b11061317d0f1c9db6d0
;(function ($, window) { "use strict"; /** * @options * @param customClass [string] <''> "Class applied to instance" * @param lables.up [string] <'Up'> "Up arrow label" * @param lables.down [string] <'Down'> "Down arrow label" */ var options = { customClass: "", labels: { up: "Up", down: "Down" ...
JavaScript
web/js/jquery.fs.stepper.js
juniorspecialist/moab
bsd-3-clause
7,683
332
codeparrot/github-code
1322754797090796bfe55061f35786e6861af31dd625e271c5698ee75767c574
# 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 use ...
Python
conpaas-services/contrib/libcloud/compute/drivers/ec2.py
ema/conpaas
bsd-3-clause
53,777
1,656
codeparrot/github-code
8a9b84b1be6db61b3d14d6e1fb261ff32bd7997f82f7622fabe96f1e3de9dabd
var React = require('react'); var ReactFeatureFlags = require('ReactFeatureFlags'); var ReactDOM; var AsyncComponent = React.unstable_AsyncComponent; describe('ReactDOMFiberAsync', () => { var container; beforeEach(() => { container = document.createElement('div'); ReactDOM = require('react-dom'); });...
JavaScript
src/renderers/dom/fiber/__tests__/ReactDOMFiberAsync-test.js
yangshun/react
bsd-3-clause
8,185
292
codeparrot/github-code
584e67e6a542a18d47d406d3f29638231bc792e3615fce5a0c0faca4085af8d7
#!/usr/bin/env python """Backport from python2.7 to python <= 2.6.""" from itertools import repeat as _repeat, chain as _chain, starmap as _starmap try: from itertools import izip_longest as _zip_longest except ImportError: from itertools import izip def _zip_longest(*args, **kwds): # izip_longe...
Python
src/sas/sascalc/data_util/ordereddict.py
lewisodriscoll/sasview
bsd-3-clause
3,441
129
codeparrot/github-code
275c70cd55615800d0bc949d548b74bab19dbcbd3184372ab85838e291470952
/*=================================================================== 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
Core/Code/DataManagement/mitkRestorePlanePositionOperation.h
lsanzdiaz/MITK-BiiG
bsd-3-clause
2,051
77
codeparrot/github-code
8a5d562e450328bf2b3b8afdb5522310d92e876cbc57e6e98d014c7a55089f65
#!/usr/bin/env python ''' Author: Christopher Duffy Date: February 2015 Name: nmap_scanner.py Purpose: To scan a network Copyright (c) 2015, Christopher Duffy All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are...
Python
nmap_scannner.py
liorvh/pythonpentest
bsd-3-clause
2,224
51
codeparrot/github-code
fbd7c1571ed8be095ef2a1cc943a31df889dbade301e43f8568c12fed78c2f57
# Nov 22, 2014 # This patch is to create all the prep/sample template files and link them in # the database so they are present for download from os.path import join from time import strftime from qiita_db.util import get_mountpoint from qiita_db.sql_connection import SQLConnectionHandler from qiita_db.metadata_templ...
Python
qiita_db/support_files/patches/python_patches/6.py
RNAer/qiita
bsd-3-clause
1,165
35
codeparrot/github-code
e8723ab4226d84d89f645ec0d132a0460bc1dda37fa334be15fe94843026e657
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE GADTs #-} module Llvm.Pass.RewriteUse where import Control.Monad import Data.Maybe import Prelude hiding (succ) import qualified Compiler.Hoopl as H import Llvm.Data.Ir import Llvm.Util.Monadic (maybeM) import Debug.Trace type MaybeChange a = a -> Maybe a f2 :: (a -...
Haskell
src/Llvm/Pass/RewriteUse.hs
mlite/hLLVM
bsd-3-clause
10,153
225
codeparrot/github-code
56bf8d414ebb1b0c5a56ee5bfe55ef7a883408a9ae8929cc768295dc4e383a26
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__new_delete_long_41.cpp Label Definition File: CWE415_Double_Free__new_delete.label.xml Template File: sources-sinks-41.tmpl.cpp */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using new and Deallocae data using delete ...
C++
xcc/test/juliet/testcases/CWE415_Double_Free/s02/CWE415_Double_Free__new_delete_long_41.cpp
JianpingZeng/xcc
bsd-3-clause
2,863
121
codeparrot/github-code
25beec0e6423a9e1d21c26e530632b20abd13e03658834315c045ea33f691a9b
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_memmove_34.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml Template File: sources-sink-34.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Alloc...
C++
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s01/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_memmove_34.cpp
JianpingZeng/xcc
bsd-3-clause
3,266
119
codeparrot/github-code
3461879f82bea341af541a2cb100e2925e1d492c341f7f3a6a770e58a529f7f9
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_declare_memmove_53a.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-53a.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Se...
C
xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s05/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_declare_memmove_53a.c
JianpingZeng/xcc
bsd-3-clause
2,908
86
codeparrot/github-code
56a1b45a5436f3f2a02af60c251fcb51174571c792fed00e81a266ba97311d73
package org.broadinstitute.hellbender.utils.activityprofile; import htsjdk.samtools.SAMFileHeader; import htsjdk.samtools.reference.ReferenceSequenceFile; import org.broadinstitute.hellbender.engine.AssemblyRegion; import org.broadinstitute.hellbender.utils.*; import org.broadinstitute.hellbender.utils.fasta.CachingIn...
Java
src/test/java/org/broadinstitute/hellbender/utils/activityprofile/ActivityProfileUnitTest.java
ksthesis/gatk
bsd-3-clause
24,058
457
codeparrot/github-code
5fa6630b04a79f9f39f39dba180b891a8e1f5db535b12c30b46a0a1e4f4192a2
/* * 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
video_engine/vie_channel.h
SlimXperiments/external_chromium_org_third_party_webrtc
bsd-3-clause
16,431
435
codeparrot/github-code
3c8f7460a8e6a2150d843ee3d3abcf0b4a033a1e513b638d3036674086601cc4
package org.cipres.treebase.dao.study; import junit.framework.Test; import junit.framework.TestSuite; /** * The class <code>PackageTestSuite</code> builds a suite that can be used to run all of the tests * within its package as well as within any subpackages of its package. * * @generatedBy CodePro at 1...
Java
treebase-core/src/test/java/org/cipres/treebase/dao/study/PackageTestSuite.java
TreeBASE/treebasetest
bsd-3-clause
1,251
46
codeparrot/github-code
58c6a0e02ea0a546fa9e62f700662f1cf8b0095bae54dd1641a81cea1098c2df
from __future__ import print_function import numpy as np from bokeh.client import push_session from bokeh.io import curdoc from bokeh.models import (ColumnDataSource, DataRange1d, Plot, Circle, WidgetBox, Row, Button, TapTool) N = 9 x = np.linspace(-2, 2, N) y = x**2 source1 = ColumnData...
Python
examples/models/server/linked_tap.py
DuCorey/bokeh
bsd-3-clause
2,181
81
codeparrot/github-code
979c0eac83ef9aa1fc0567470ef237e86610f54999486629b81745bb45cc89d8
<?php namespace backend\controllers; use Yii; use common\models\TblAssetTestKeyboard; use common\models\SearchTblAssetTestKeyboard; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * TblAssetTestKeyboardController implements the CRUD actions for TblAssetTestKeyboard model. ...
PHP
backend/controllers/TblAssetTestKeyboardController.php
jflash49/TSS
bsd-3-clause
3,299
122
codeparrot/github-code
d25c9ca16902bdad5d673b9451dc97523504dbf083b3032aa6c2bfdb6a67fea7
""" BrowserID support """ from social.backends.base import BaseAuth from social.exceptions import AuthFailed, AuthMissingParameter class PersonaAuth(BaseAuth): """BrowserID authentication backend""" name = 'persona' def get_user_id(self, details, response): """Use BrowserID email as ID""" ...
Python
social/backends/persona.py
nvbn/python-social-auth
bsd-3-clause
1,664
48
codeparrot/github-code
eca79fa97900ffc641c51774a7a5273480307330eb6c9aa48de6e2fc778f99fc
#ifndef ALIEMCALCORRECTIONCLUSTERENERGYVARIATION_H #define ALIEMCALCORRECTIONCLUSTERENERGYVARIATION_H #include "AliEmcalCorrectionComponent.h" #include "TRandom3.h" /** * @class AliEmcalCorrectionClusterEnergyVariation * @ingroup EMCALCOREFW * @brief Cluster energy variation component in the EMCal correction fram...
C
PWG/EMCAL/EMCALtasks/AliEmcalCorrectionClusterEnergyVariation.h
btrzecia/AliPhysics
bsd-3-clause
2,483
54
codeparrot/github-code
905126849aa1b78e3fc77d852a55600e946c2d0e6dbf172dfd114613933d69fc
package edu.team597.support; /** * @author Tom Bottiglieri * Team 254, The Cheesy Poofs */ import edu.wpi.first.wpilibj.Timer; import java.io.IOException; import java.io.InputStream; import java.util.Vector; import javax.microedition.io.Connector; import javax.microedition.io.ServerSocketConnection; import javax.m...
Java
src/edu/team597/support/CheesyVisionServer.java
Team597/FRC-2014-StartLifter-Code
bsd-3-clause
4,666
174
codeparrot/github-code
9ef6570b724c7c2d40f1652b37cc53e09c3d6491ba494b288c8eeef6e9ecfcb3
from sqlalchemy import JSON, Boolean, Column, ForeignKey, Index, Integer, String from sqlalchemy.dialects import postgresql from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm import relationship from sqlalchemy.sql.functions import GenericFunction from qcfractal.storage_sockets.models.sql_base impor...
Python
qcfractal/storage_sockets/models/collections_models.py
psi4/mongo_qcdb
bsd-3-clause
9,556
316
codeparrot/github-code
9436124b199a52c2bb5e32a0d2ed46fcbabdc316331de513309c8abff123e791
/* * Copyright (C) 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: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
C++
third_party/WebKit/Source/core/layout/TextAutosizer.cpp
Bysmyyr/chromium-crosswalk
bsd-3-clause
44,757
1,191
codeparrot/github-code
a44c354637a0b0a5a7066b017d7fc69a39fd41bccad216b260ef6141301a4207
# -*- coding: utf-8 -*- # # SymPy documentation build configuration file, created by # sphinx-quickstart.py on Sat Mar 22 19:34:32 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickle...
Python
doc/src/conf.py
flacjacket/sympy
bsd-3-clause
6,093
189
codeparrot/github-code
7cc85b7154e97bb869b274628c739b63f2bcfd6553fb3339ad373cd64347f3d0
// 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_TEST_CHROMEDRIVER_STATUS_H_ #define CHROME_TEST_CHROMEDRIVER_STATUS_H_ #include <string> // WebDriver standard status codes. enum Sta...
C
chrome/test/chromedriver/status.h
leiferikb/bitpop-private
bsd-3-clause
1,037
43
codeparrot/github-code
9e0c03a91a16d844c0552177e75e4b935e9d7ed444ac3cc8e1c55185eafe9f51
/* The <unistd.h> header contains a few miscellaneous manifest constants. */ #ifndef _UNISTD_H #define _UNISTD_H /* Values used by access(). POSIX Table 2-6. */ #define F_OK 0 /* test if file exists */ #define X_OK 1 /* test if file is executable */ #define W_OK 2 /* test if...
C
lib/minix/include/unistd.h
Godzil/ack
bsd-3-clause
5,602
131
codeparrot/github-code
417bf722aef229a7c6a5e63da2484ce1c29aa64b188311c783babbdccc4ce249
# -*- encoding : utf-8 -*- ActiveAdmin.register Version, :sort_order => 'id_desc' do actions :index, :show menu :label => "Tablica zmian", :priority => 1 index do column 'Data', :sortable => :created_at do |e| l e.created_at, :format => :short end column 'Autor' do |e| if e.whodunnit ...
Ruby
app/admin/versions.rb
netkodo/otwartezabytki
bsd-3-clause
5,689
180
codeparrot/github-code
c36303e680403ebd8580a6f1e13721833a53c8a5ebad51935221f567c37d60d7
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_fgets_multiply_72b.cpp Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-72b.tmpl.cpp */ /* * @description * CWE: 190 Integer Overflow * BadSource: fgets Read data from the console using fgets(...
C++
xcc/test/juliet/testcases/CWE190_Integer_Overflow/s03/CWE190_Integer_Overflow__int_fgets_multiply_72b.cpp
JianpingZeng/xcc
bsd-3-clause
2,121
78
codeparrot/github-code
e52d7446627ddd4a134dbe4d4892b6687dca05e00a63e74e6eb1fbf7200864d1
#include "ScrollMsg.h" #include "QVBoxLayout" #include "QHBoxLayout" #include "UI/Config/Config.h" #include <QTextLayout> #include <QTextBlock> #include "Common/ScrollBar.h" CScrollMsg::CScrollMsg(AppListInterface * pList, QWidget *parent) : AppBase(pList, parent) { InitLayout(); connect(&m_timer,SIGNAL(timeo...
C++
UIShare/UI/ScrollableMessage/ScrollMsg.cpp
smartdevice475/hmi_sdk
bsd-3-clause
9,843
339
codeparrot/github-code
759d94ab4dd0751a66ac2c0c650590d70f93da570d8c821006e38367bf5d7ff7
/* * Copyright (C) 2006-2009 Vincent Hanquez <vincent@snarc.org> * * 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
cbits/cryptonite_sha256.c
vincenthz/cryptonite
bsd-3-clause
7,038
219
codeparrot/github-code
857dd6cf6156cc54a1731234b4d0782c67954355211edb2a742605e7bb5ebcee
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import subprocess from flask.ext.script import Manager, Shell, Server from flask.ext.migrate import MigrateCommand from foobar.app import create_app from foobar.user.models import User from foobar.settings import DevConfig, ProdConfig from foobar.datab...
Python
manage.py
ghofranehr/foobar
bsd-3-clause
1,092
43
codeparrot/github-code
2eade32a4c33ba4610e0ee56de94b5b8ad22c11a69b2aa51054bcc045b219506
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ #include <stddef.h> #include <s...
C
components/autofill/core/browser/autofill_metrics.h
ds-hwang/chromium-crosswalk
bsd-3-clause
30,737
723
codeparrot/github-code
e52080f773c9fb8fbdd8ed801c122c64cb00fec6e10fa302f08cf340fc839742
<?php namespace Auth; class Module { public function getConfig() { return include __DIR__ . '/config/module.config.php'; } public function onBootstrap($e) { $e->getApplication()->getEventManager()->getSharedManager()->attach('Zend\Mvc\Controller\AbstractActionContro...
PHP
module/Auth/Module.php
blue-ray/ocorrencia
bsd-3-clause
997
34
codeparrot/github-code
ae7f5553d467b414a384d0cf06d2521d8613fcb082ff036cefd1116b16bd392b
// Copyright 2017-2019 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "flag" "fmt" "log" "os" "path" "path/filepath" "github.com/u-root/u-root/pkg/boot/jsonboot" "github.com/u-root/u-root/pk...
GO
cmds/boot/localboot/main.go
hugelgupf/u-root
bsd-3-clause
8,801
241
codeparrot/github-code
cb121ce7e231dc879bd22fcf065e8e4b56b8a69e8285515f0ce57b7220c3de9a
// Copyright (c) 2013, salesforce.com, inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided // that the following conditions are met: // // Redistributions of source code must retain the above copyright notice, this list of condit...
JavaScript
src/main/webapp/Publisher/publisher.js
jthurst01/canvas-app-json
bsd-3-clause
6,834
150
codeparrot/github-code
fca5b3cb07e27a8e525cbf99bf1509a78808780846f6686427513dc4c967a80d
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE256_Plaintext_Storage_of_Password__w32_char_53d.c Label Definition File: CWE256_Plaintext_Storage_of_Password__w32.label.xml Template File: sources-sinks-53d.tmpl.c */ /* * @description * CWE: 256 Plaintext Storage of Password * BadSource: Read the password f...
C
xcc/test/juliet/testcases/CWE256_Plaintext_Storage_of_Password/CWE256_Plaintext_Storage_of_Password__w32_char_53d.c
JianpingZeng/xcc
bsd-3-clause
5,182
166
codeparrot/github-code
7708e79a083d4e1627830b7ca4af9df471a9a899015f94497d7076a3260d8dff
/** * * <i>Copyright (c) 2017 ItsAsbreuk - http://itsasbreuk.nl</i><br> * New BSD License - http://choosealicense.com/licenses/bsd-3-clause/ * * * @since 16.2.0 */ 'use strict'; const reload = require('require-reload')(require), // see https://github.com/fastest963/require-reload cwd = process.cwd(), ge...
JavaScript
lib/hapi-plugin/helpers/apply-server-routes.js
ItsAsbreuk/itsa-react-server
bsd-3-clause
6,635
183
codeparrot/github-code
849561a7d74161656c2cc178ffd6d5b0f041a0980a1778cc085c3c8a5fc9d637
using System; using System.IO; namespace NServiceKit.Logging.Log4Net { /// <summary> /// ILogFactory that creates an Log4Net ILog logger /// </summary> public class Log4NetFactory : ILogFactory { /// <summary> /// Initializes a new instance of the <see cref="Log4NetFactory"/> class. ...
C#
src/NServiceKit.Logging.Log4Netv1210/Log4NetFactory.cs
NServiceKit/NServiceKit.Logging
bsd-3-clause
2,235
66
codeparrot/github-code