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
1db3256765bbfd53c1b3e57bff6b6f947fbc4cbe9aa55ac1b678c6dbbc2ff2ae
/* * 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 ...
Java
sql/src/main/java/org/apache/druid/sql/calcite/expression/builtin/DateTruncOperatorConversion.java
monetate/druid
apache-2.0
4,653
124
codeparrot/github-code
21cf717fa6350d6f44a7e52108058aacf84122087f47c5d2daf75723ad783738
/** * Copyright (C) 2014-2018 LinkedIn Corp. (pinot-core@linkedin.com) * * 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 * * Unle...
Java
pinot-tools/src/main/java/com/linkedin/pinot/tools/admin/command/StartBrokerCommand.java
apucher/pinot
apache-2.0
4,569
136
codeparrot/github-code
5f9ff14fad1d7cf4fa80ad3db6b3bc647c7ce689b2aa83315b03e624b85e87a2
/* * Copyright 2016 The Bazel Authors. 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 a...
Java
base/src/com/google/idea/blaze/base/lang/buildfile/psi/ForStatement.java
brendandouglas/intellij
apache-2.0
1,988
59
codeparrot/github-code
cfb6beaccb58458c3dee1f115011d55fcfc02d26d9287b57235069d8132e7eb8
/** * 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 m...
Java
policy/src/main/java/org/apache/wss4j/policy/builders/SamlTokenBuilder.java
asoldano/wss4j
apache-2.0
3,318
73
codeparrot/github-code
25c8f1414d34a163a39ac329e3d3439f55c034e2e62a70c75cd2fe360d512e71
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (C) 2013 PolyBeacon, 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...
Python
payload/api/controllers/v1/queue/__init__.py
gorocacher/payload
apache-2.0
3,397
105
codeparrot/github-code
441436d9873fa0fb7d670019b61c434eba8506765619c683a251d9ef2b84a3df
#pragma once #include <memory> #include "envoy/api/api.h" #include "envoy/common/pure.h" #include "envoy/common/time.h" #include "envoy/extensions/filters/http/jwt_authn/v3/config.pb.h" #include "envoy/thread_local/thread_local.h" #include "source/extensions/filters/http/common/jwks_fetcher.h" #include "source/exten...
C
source/extensions/filters/http/jwt_authn/jwks_cache.h
envoyproxy/envoy
apache-2.0
2,982
95
codeparrot/github-code
ecff2e33b8350cca01fd3c38f4ce36525d8289e69d249d492a5687d4c8006d80
import { TempNode } from '../core/TempNode.js'; import { FloatNode } from '../inputs/FloatNode.js'; import { FunctionNode } from '../core/FunctionNode.js'; import { NormalNode } from '../accessors/NormalNode.js'; import { PositionNode } from '../accessors/PositionNode.js'; function BumpMapNode( value, scale ) { Temp...
JavaScript
three/jsm/nodes/misc/BumpMapNode.js
sinorise/sinorise.github.io
apache-2.0
4,684
166
codeparrot/github-code
80311d2a1b29e2492e6eb41033469b0f3c0cdec1d6a955f8b8439312faaae306
/* * * 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 * "Licens...
Java
graphene-parent/graphene-augment/graphene-augment-mitie/src/main/java/graphene/augment/mitie/model/MitieResponse.java
danieljue/graphene
apache-2.0
2,205
86
codeparrot/github-code
6f21e6baf43087e84be735691ee8aaea696a5fbc8fae3c39373bcec805e14b7a
// Modifications copyright (C) 2017, Baidu.com, Inc. // Copyright 2017 The Apache Software Foundation // 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. ...
Java
fe/src/com/baidu/palo/analysis/RevokeStmt.java
cyongli/palo
apache-2.0
2,468
77
codeparrot/github-code
f4143b8706deb62257e2626b782eae1ce9d227ddf368951aeddc5d80468404ab
/* * Copyright (c) 2015. Rick Hightower, Geoff Chandler * * 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 appli...
Java
qbit/core/src/main/java/io/advantageous/qbit/message/MethodCall.java
RichardHightower/qbit
apache-2.0
1,421
55
codeparrot/github-code
a289cfbef01ab60d45870d6cdde4ff7fb072d68205bf8b9eea19be653a32a44b
package coredb.main.security.casestudy; import java.sql.Date; import java.util.LinkedList; import java.util.List; import coredb.unit.AttributeClass; import coredb.unit.EntitySecurityClass; public class CustomerTableBuilder extends CoredbTable{ public static final String TABLE_NAME = "customer"; public st...
Java
src/CoreDB-Relational Pluggin/Library/src/coredb/main/security/casestudy/CustomerTableBuilder.java
unsw-cse-soc/CoreDB
apache-2.0
1,773
45
codeparrot/github-code
9f776706a76521a3d80c0af4b07f921be9b4ac0d3802036c7597d08f89a78353
using System; using RestSharp; using RestSharp.Extensions; using RestSharp.Validation; namespace Twilio { public partial class TwilioRestClient { /// <summary> /// Retrieve the details for an AuthorizedConnectApp instance. Makes a GET request to an AuthorizedConnectApp Instance resource. /// </summary> /// ...
C#
src/Twilio.Api.WindowsPhone/AuthorizedConnectApps.Async.cs
mplacona/twilio-csharp
apache-2.0
2,079
51
codeparrot/github-code
b40e5e7c9d463447b13ff9827f756943f0d63967e74182626fa8bc5a3dcd8a35
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/GoogleMailConfiguration.java
davidkarlsen/camel
apache-2.0
3,691
134
codeparrot/github-code
7f1e495c2d02524a07231a06d1903871d1c4b305bfeeacdae492bf5e966a46d6
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may ...
Java
core/src/main/java/org/apache/calcite/rel/rules/ProjectJoinJoinRemoveRule.java
apache/calcite
apache-2.0
6,341
169
codeparrot/github-code
d5b54d8f9c0a5861682aee83add103f3f1176488192dee059b398029e3b26ab3
package edu.umn.amicus.aligners; import edu.umn.amicus.util.AlignedTuple; import edu.umn.amicus.util.ANA; import java.util.*; /** * Aligner that will generate tuples of annotations only if they overlap in both begin and end * * Created by gpfinley on 10/21/16. */ public class PerfectOverlapAligner implements Ali...
Java
src/main/java/edu/umn/amicus/aligners/PerfectOverlapAligner.java
gpfinley/ensembles
apache-2.0
1,215
37
codeparrot/github-code
367f85d2d1c1dfd1b111eed17b862e98317a23801ac305502aa4d499509df999
package com.carrotsearch.randomizedtesting; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.carrotsearch.randomizedtesting.annotations.Nightly; import com.carrotsearch.randomizedtesting.annotations.TestGroup; /** * Nightly mode checks. ...
Java
randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestNightlyMode.java
randomizedtesting/randomizedtesting
apache-2.0
1,275
55
codeparrot/github-code
543eff3300f4701741885ead360d55d0c31601b1ace008fc0769ed72e7f665e9
/****************************************** * * * dcm4che: A OpenSource DICOM Toolkit * * * * Distributable under LGPL license. * * See terms of license at gnu.org. * * * ***********...
Java
dcm4jboss-all/tags/DCM4JBOSS_2_4_2/dcm4jboss-ejb/src/java/org/dcm4chex/archive/ejb/entity/StudyBean.java
medicayun/medicayundicom
apache-2.0
21,596
632
codeparrot/github-code
d95006d144a55dad5c499c8a8a6ee9b28d1b45951d440d2aef2970875d0187e9
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
Java
java/server/src/org/openqa/grid/internal/DefaultGridRegistry.java
xmhubj/selenium
apache-2.0
12,959
441
codeparrot/github-code
53368af8560bb537d3c4b03d1ceb7beb4797f4899ba13ec84176a740820e85b0
package org.apache.ddlutils.platform.oracle; /* * 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...
Java
src/java/org/apache/ddlutils/platform/oracle/Oracle8Builder.java
etiago/apache-ddlutils
apache-2.0
19,202
525
codeparrot/github-code
7b78cd3b6162d5eca40c6497ff5815ca144b86baadf1f14bc275ac2b71c4d377
/* * Copyright 2012 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 in wri...
Java
jbpm-console-ng-showcase/src/main/java/org/jbpm/console/ng/client/ShowcaseEntryPoint.java
cristianonicolai/jbpm-wb
apache-2.0
16,959
413
codeparrot/github-code
325a60fe5f38794f5a682ec7cbbb6e9b69e7ee7ca4bc797e281d1bc234445f9e
/* Based on Base.js 1.1a (c) 2006-2010, Dean Edwards Updated to pass JSHint and converted into a module by Kenneth Powers License: http://www.opensource.org/licenses/mit-license.php */ /*global define:true module:true*/ /*jshint eqeqeq:true*/ define(function () { // Base Object var Base = function () { ...
JavaScript
lib/Base.js
bitExpert/mntyjs
apache-2.0
5,863
155
codeparrot/github-code
da9b360d5b4d934069f2cffbdfbe0fbb9c473b85adde29e77a734ca4206e146f
package com.googlecode.kanbanik.client.components; import java.util.ArrayList; import java.util.List; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.Scheduler; import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.dom.client.Style; import com.google.gwt.event.do...
Java
kanbanik-web/src/main/java/com/googlecode/kanbanik/client/components/PanelContainingDialog.java
mortenpoulsen/kanbanik
apache-2.0
8,655
317
codeparrot/github-code
3d5fedb11cf4d85ee04bb89f179cf9db8df7e302de5d9273773013bc8e240c58
/* * Copyright (c) 2011 LinkedIn, 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...
Java
src/main/java/com/flaptor/indextank/query/SimplePhraseQuery.java
linkedin/indextank-engine
apache-2.0
5,699
169
codeparrot/github-code
a21b8d1557d4a227f8b061e76e7e2b142085415947f9d1bd86bc2b7410d895a3
#pragma once // MESSAGE CAMERA_FEEDBACK PACKING #define MAVLINK_MSG_ID_CAMERA_FEEDBACK 180 MAVPACKED( typedef struct __mavlink_camera_feedback_t { uint64_t time_usec; /*< Image timestamp (microseconds since UNIX epoch), as passed in by CAMERA_STATUS message (or autopilot if no CCB)*/ int32_t lat; /*< Latitude in (d...
C
video/legacy/mavlink/ardupilotmega/mavlink_msg_camera_feedback.h
seeul8er/DroneBridge
apache-2.0
22,338
514
codeparrot/github-code
d971a2bd956ae2b23459b607807ba4c9d7050210edf2877eda687211694c2e56
#include "condor_common.h" #include "compat_classad.h" #include "classad_collection.h" #include "gahp-client.h" #include "Functor.h" #include "PutTargets.h" int PutTargets::operator() () { static bool incrementTryCount = true; dprintf( D_FULLDEBUG, "PutTargets::operator()\n" ); std::string ruleName; scratchpad->L...
C++
src/annex/PutTargets.cpp
htcondor/htcondor
apache-2.0
4,109
137
codeparrot/github-code
0d5063f75f5645212270830d56944e6566d4ae8210bccd7a80f971e0bbfb0347
/* * 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 ...
Java
test/unit/org/apache/cassandra/db/ReadCommandTest.java
jrwest/cassandra
apache-2.0
62,337
1,351
codeparrot/github-code
2b567aa1cb5f8de34e3060db99a3033fa80fe690d67797017e9461eff953cfba
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
elasticjob-infra/elasticjob-restful/src/test/java/org/apache/shardingsphere/elasticjob/restful/filter/DefaultFilterChainTest.java
elasticjob/elastic-job
apache-2.0
7,377
172
codeparrot/github-code
30a5a3b815823892b4fc875a9ed6a1a051b786482fd107da92e0f8b597cb6a11
/** * @author : Paul Taylor * @author : Eric Farng * * Version @version:$Id$ * * MusicTag Copyright (C)2003,2004 * * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser * General Public License as published by the Free Software Foundation; either ver...
Java
library/jaudiotagger226/src/main/java/org/jaudiotagger/tag/datatype/AbstractString.java
thawee/musixmate
apache-2.0
5,546
191
codeparrot/github-code
d2354b65c47d3a7ac00a668839bd8a6edf8bda6e8bdf4e5908a8e5cd0580a82b
/* * Copyright (C) 2014 The droitated DB 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 applicable law ...
Java
droitatedDBProcessor/src/main/java/org/droitateddb/processor/EntityAnnotationProcessor.java
arconsis/datarobot
apache-2.0
8,213
190
codeparrot/github-code
ed3886e49368aa28665a7befcf7c20114eb128894c045a98905b1b87d4d0e09b
/* * 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 ...
Scala
sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/MiscBenchmark.scala
michalsenkyr/spark
apache-2.0
11,437
268
codeparrot/github-code
62368951b3e478a6cd88a81ee13e05de918b655c3357caa50f756131dc89e4e4
// Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and University of // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and Th...
C++
copasi/bindings/cpp_examples/example3/example3.cpp
jonasfoe/COPASI
artistic-2.0
9,317
244
codeparrot/github-code
314e887299ec5eb7f0580b6947111fb67525feb864df95f4d99f75a50219ff7f
/* Synchronet Control Panel (GUI Borland C++ Builder Project for Win32) */ /* $Id: StatsLogFormUnit.cpp,v 1.3 2005/09/20 03:40:18 deuce Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see h...
C++
src/sbbs3/ctrl/StatsLogFormUnit.cpp
jonny290/synchronet
artistic-2.0
5,149
138
codeparrot/github-code
4fa3c7c0aa3f4d0dea851c710d4a23f2c2b745e22aff792cb3f00a950113524d
package Server; /* * Server.java */ import java.io.*; import java.net.*; import java.util.*; import Common.*; /**This is the main GUI class of the Server. * The GUI should be built in this class. */ public class Server { /**This is the Network Component this Server GUI uses * for sending and receiving mess...
Java
CopasiCS/Java/Server/Server.java
copasi/COPASI
artistic-2.0
2,311
106
codeparrot/github-code
9308615b4abfd5cd0c76afed738e3a1df8a3780966dd5cbf8decb352151e146c
/** * Copyright (c) 2009 - 2012 AppWork UG(haftungsbeschränkt) <e-mail@appwork.org> * * This file is part of org.appwork.utils.io.streamingio * * This software is licensed under the Artistic License 2.0, * see the LICENSE file or http://www.opensource.org/licenses/artistic-license-2.0.php * for details */ pac...
Java
src/org/appwork/utils/io/streamingio/Streaming.java
friedlwo/AppWoksUtils
artistic-2.0
15,116
318
codeparrot/github-code
4e14e33681da12df8c9db1f71dd36083445497f7743d7ce1989d003e9b72083b
/* * Copyright (c) 2007-2009 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any p...
C++
engine_original/bindings/src/Box2D/Collision/b2CollideEdge.cpp
Sammons/GameSync
bsd-2-clause
16,238
699
codeparrot/github-code
eba7190e738a844a4f22bc2be938e6e15a005872f179d23218140b9830d8f2e5
/* * Copyright (C) 2008 Apple Inc. All Rights Reserved. * Copyright (C) 2010 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...
C
xml/parser/CharacterReferenceParserInlineMethods.h
Treeeater/WebPermission
bsd-2-clause
6,297
170
codeparrot/github-code
8a15bb2063a97639e296e96cf2e76e737b8a3e66bf5e7cf05d40fd486a0f6311
/*! * @copyright@ */ sap.ui.controller("sap.ui.demokit.explored.view.sample", { onInit : function () { this.router = sap.ui.core.UIComponent.getRouterFor(this); this.router.attachRoutePatternMatched(this.onRouteMatched, this); this._viewModel = new sap.ui.model.json.JSONModel({ showNavButton : true, sh...
JavaScript
resources/sap/ui/demokit/explored/view/sample-dbg.controller.js
mindmill/open-cmis-explorer
bsd-2-clause
3,836
152
codeparrot/github-code
f3f7d5bac7d867f64a20b54c8a874525dcdcfda9b72491297a08a5d69c9f6cd6
function ProjectionNACL(cam_file, id, parent_id) { this.ProjectionNACLModule = null; this.nacl_id = id; this.statusText = 'NO-STATUS'; var nacl = this; nacl.updateStatus = function(opt_message) { if (opt_message) nacl.statusText = opt_message; var statusField = doc...
JavaScript
nacl_modules/projection/projection_nacl_mp.js
rajpurkar/driverseat
bsd-2-clause
3,816
119
codeparrot/github-code
5977014fc134413fc3b944fbe6d591b7885065ceb450f2c2659cabb0b5b8aa8b
// Copyright (c) 2013-2018 Anton Kozhevnikov, Thomas Schulthess // 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, ...
C++
src/SDDK/fft3d_grid.hpp
electronic-structure/sirius
bsd-2-clause
5,331
160
codeparrot/github-code
7cb0678254be7d9c32b13b6ad5094def862cabe0e063809526b4f4876d76588b
<?php // // Copyright (c) 2013, Zynga Inc. // https://github.com/zynga/saigon // Author: Matt West (https://github.com/mhwest13) // License: BSD 2-Clause // class CMDBParentChild implements HostAPI { public function getList() { return array('DC1-VC' => 1, 'DC2-VC' => 1); } public function get...
PHP
modules/HostInterfaces/CMDBParentChild.class.php
mhwest13/saigon
bsd-2-clause
4,356
120
codeparrot/github-code
965fd95fe6bfea03980008761237e639083e546440ebce20648b6f22571a7186
/////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // // Tactical Engagement - Robin Heydon // // Implements the user interface for...
C++
src/ui/src/taceng/te_units.cpp
markbb1957/FFalconSource
bsd-2-clause
80,369
3,042
codeparrot/github-code
6f0de4486211342d2d8b0bbe1ed4d986861c17e6c6bd01f43c6db8720525bc2a
/** @file */ #include "logging/syslog.h" /** * Adds an option to the options flag given to syslog. * @param syslog_option An option, provided by <syslog.h> */ void SysLog::add_option(int syslog_option) { m_options |= syslog_option; }; /** * Removes an option from the options flag given to syslog. * @param sy...
C++
src/logging/syslog.cpp
8l/swm
bsd-2-clause
2,353
114
codeparrot/github-code
de52885bcbb15d9920f64eb108ef5db393ab77e000ab23f1335eb6dd09f1bb62
/* * Copyright (C) 2009 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++
bindings/v8/custom/V8HTMLOptionElementConstructor.cpp
Treeeater/WebPermission
bsd-2-clause
4,270
108
codeparrot/github-code
9076bdd91a4a6018df1927797970be41db44ebb23be0490e3ddd5ed00e0080d0
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Diagnostics; namespace g3 { /// <summary> /// Arbitrary-Topology 3D Graph. This is similar to DMesh3 but without faces. /// Each vertex can be connected to an arbitrary number of edges. /// Each...
C#
geometry3Sharp/curve/DGraph3.cs
larsbrubaker/agg-sharp
bsd-2-clause
6,550
310
codeparrot/github-code
37355bc813c7388cd30af394658b00f6c5d68ec674a4ca5bd8d7faf5c7ab924b
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Title</title> <link rel="stylesheet" href="//design.yonyoucloud.com/static/uploader/css/webuploader.css"> <link rel="stylesheet" href="//design.yonyoucloud.com/static/uui/lat...
HTML
examples/plugin/jstooltip1-base.html
iuap-design/neoui
bsd-2-clause
2,461
73
codeparrot/github-code
f42dccf693bf315002aba7513e6756be15780176aa542ad6055cef8cb50aa09d
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
JavaScript
inspector/front-end/DebuggerScriptMapping.js
yoavweiss/RespImg-WebCore
bsd-2-clause
3,289
79
codeparrot/github-code
6bf9a106646104ed20ad20edcdf5ebf13a7156943b55fd468b180b925cf064d2
/** * @module ol/pointer/PointerEventHandler */ // Based on https://github.com/Polymer/PointerEvents // Copyright (c) 2013 The Polymer Authors. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
JavaScript
src/ol/pointer/PointerEventHandler.js
fredj/ol3
bsd-2-clause
11,165
419
codeparrot/github-code
c9b577c1fa2b8a8039cabc65fd48ecb2509552f81eeffa43f61f40c72199b2be
""" odtreader.py Contains class ODTFile for reading OOMMF ODT data into a Pandas dataframe Author: Ryan Pepper (2016) University of Southampton """ import pandas as pd import tempfile import re class ODTFile(object): def __init__(self, filename): f = open(filename) # Can't use 'w+b' for compatibility...
Python
joommf/odtreader.py
fangohr/oommf-python
bsd-2-clause
1,380
46
codeparrot/github-code
7e9edaf42c6290269868a1499e6908d65849aac697d974f13b5c35cb8e959ee7
#ifdef HAVE_CONFIG_H # include <config.h> #endif /* ifdef HAVE_CONFIG_H */ #include "ecore_x_private.h" static Eina_Bool _gesture_available = EINA_FALSE; #ifdef ECORE_XGESTURE static int _gesture_major, _gesture_minor, _gesture_patch; int _gesture_version; #endif /* ifdef ECORE_XGESTURE */ void _ecore_x_gesture_ini...
C
src/lib/ecore_x/xlib/ecore_x_gesture.c
jordemort/ecore
bsd-2-clause
3,269
138
codeparrot/github-code
33cef00bf615704d4632f4e230ddcbed36b0f96f5677b8a8fe6ed2d9512713ee
""" The ``LineEdit`` and ``MultiLineEdit`` widgets provide a way for the user to input text. .. UIExample:: 100 from flexx import app, event, ui class Example(ui.Widget): def init(self): with ui.VBox(): self.line = ui.LineEdit(placeholder_text='type here') ...
Python
flexx/ui/widgets/_lineedit.py
zoofIO/flexx
bsd-2-clause
7,452
245
codeparrot/github-code
cf22de1643b6a6ded78fc4852995ad094b2171017517064612dce460792f0359
/* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved * * Distribute freely, except: don't remove my name from the source or * documentation (don't take credit for my work), mark your changes (don't * get me blamed for your possible bugs), don't alter or remove this * notice. May be sold if builda...
C
head/usr.sbin/cron/cron/do_command.c
dplbsd/soc2013
bsd-2-clause
15,744
618
codeparrot/github-code
73858c06bd60c0cafdee149f822d85ee7fafc46b107ffb09705158c18ca4c1f1
///////////////////////////////////////////////////////////////////////////// // // File : QVBoxLayout_DhClass.cpp // Copyright : (c) David Harley 2010 // Project : qtHaskell // Version : 1.1.4 // Modified : 2010-09-02 17:02:05 // // Warning : this file is machine g...
C++
qws/src/gui/QVBoxLayout_DhClass.cpp
keera-studios/hsQt
bsd-2-clause
19,634
606
codeparrot/github-code
706e3f6fa43ffda58b033b491c26ba78f0f1f9d6d061e698a3b212192fd52c66
//////////////////////////////////////////////////////////////////////////// // // Copyright 2015 Realm 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/li...
C++
Sensorama/Pods/Realm/Realm/ObjectStore/src/shared_realm.cpp
wkoszek/sensorama-ios
bsd-2-clause
26,045
759
codeparrot/github-code
d9e5beafb1628b398cfd935f60b199decb5c5e41ed15d5689069707ac2772ce1
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: | The with statement adds a computed object to the front of the scope chain of the current execution context es5id: 12.10_A1.1_T3 description: > Using "with" insid...
JavaScript
Jint.Tests.Test262/test/language/statements/with/S12.10_A1.1_T3.js
sebastienros/jint
bsd-2-clause
3,685
149
codeparrot/github-code
aaf691032ceefb2809ec6cc7b70862453645255aab5f848dc9f6502e246a9a8f
# typed: true # frozen_string_literal: true module Utils # Helper functions for creating symlinks. # # @api private module Link module_function def link_src_dst_dirs(src_dir, dst_dir, command, link_dir: false) return unless src_dir.exist? conflicts = [] src_paths = link_dir ? [src_d...
Ruby
Library/Homebrew/utils/link.rb
konqui/brew
bsd-2-clause
2,491
83
codeparrot/github-code
7ebb35aae29b232312c07931e1f861705b70b2814f5a2b6693de8e817051e197
/* * linux/fs/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * Some corrections by tytso. */ /* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname * lookup logic. */ /* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture. */ #include <linux/init.h> #include <linux/export.h...
C
linux-lts-quantal-3.5.0/fs/namei.c
andrewjylee/omniplay
bsd-2-clause
89,881
3,634
codeparrot/github-code
155512fbfd70de12bf35b9eec5d04e80bac863a91d152527ab0ef7cd0f78af65
// A. L. Delcher modified by bhaas. // // File: dagchainer.cpp // // Last Modified: 7 November 2003 // // Do DP on dag of matches to get chains of matches #include <stdio.h> #include <stdlib.h> //#include <iostream> //#include <iomanip> #include <fstream> #include <math.h> #include <string.h> #...
C++
bin/dagchainer_bp/dagchainer.cpp
asherkhb/coge
bsd-2-clause
10,055
431
codeparrot/github-code
3565948a8ae4993755dacc8bce5e195d182488e96af679c2561dae3f8593da4e
// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #include <dune/stuff/test/main.hxx> #include "spaces_cg.hh" #include "spaces_cg_pdelab.hh" #if HAVE_D...
C++
test/spaces_cg_pdelab.cc
BarbaraV/dune-gdt
bsd-2-clause
1,780
61
codeparrot/github-code
c9efdc4b2fc159725db7956e5de92f6f5532ba02a89e7624cdec01c67de00171
/* * Copyright (c) 2001-2007, Tom St Denis * 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 cond...
C
core/lib/libtomcrypt/include/tomcrypt_mac.h
BreezeWu/optee_os
bsd-2-clause
17,309
450
codeparrot/github-code
fa2c7095416be68a38872dd196bb655752dc21c1a250c619220b5fbdf2d02e0f
/*- * Copyright (c) 2007-2011 Varnish Software AS * All rights reserved. * * Author: Dag-Erling Smørgav <des@des.no> * * 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 re...
C
bin/varnishd/stevedore.c
igorhvr/varnish
bsd-2-clause
14,005
604
codeparrot/github-code
66f6f683b8e6dd49c65434d418505b7d00dc4403b070407a5150c047569684a3
// 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 COURGETTE_DISASSEMBLER_WIN32_X64_H_ #define COURGETTE_DISASSEMBLER_WIN32_X64_H_ #include <stddef.h> #include <stdint.h> #include "base/macros.h"...
C
courgette/disassembler_win32_x64.h
nwjs/chromium.src
bsd-3-clause
1,985
59
codeparrot/github-code
68867d995bc5322b902693963e0a2b5af48d2edd4db421220cbb09fe87ac331d
#!/usr/bin/env python3 from contextlib import contextmanager import time from main import has_subset_sum_zero class Duration: def __init__(self, elapsed=None): self.elapsed = elapsed @contextmanager def timeit(): duration = Duration() tic = time.time() yield duration elapsed = time.time...
Python
201705/peque/biggest_set.py
vigojug/reto
bsd-3-clause
1,385
61
codeparrot/github-code
23423eec3559b13ea969076ff4292d70bb0dc7257c82496bc50ac09e6fc17551
package com.biggestnerd.civradar.gui; import java.awt.Color; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import org.lwjgl.input.Keyboard; import com.biggestnerd.civradar.CivRadar; import com.biggestnerd.civradar.Config; public class G...
Java
src/main/java/com/biggestnerd/civradar/gui/GuiWaypointOptions.java
BlackXnt/CivRadar
bsd-3-clause
2,865
84
codeparrot/github-code
ce18aca98742d45a4f3338d6a79fb3cecd217e772da36bbc6987c0d89d98bfc0
"use strict"; /* Title: QuestionHierarchy These are the base implementations for various parts of the question hierarchy. The server and client will create instances of these classes, customized or subclassed as appropriate (e.g. the client would fetch data from the server, while the server would load dat...
JavaScript
src/common/QuestionHierarchy.js
CarnegieLearning/MathFluency
bsd-3-clause
8,619
279
codeparrot/github-code
e42c3f7398bde27e8d1805090ac171bbc265939fa700d65176b63718bfb40f16
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>YUI: Toolbar Button Example</title> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.0/build/reset-fonts-grids/reset-fonts-grids.css"> <link rel="stylesheet" type="text/c...
PHP
button1/index.php
chemouna/yui-examples
bsd-3-clause
8,590
251
codeparrot/github-code
9efdb346b65c9da415bf85c9a84f7f5497a8ee597d6809ef041cbcf4f8002bc0
using System.Collections.Generic; using System.Linq; namespace Piedone.Combinator.SpriteGenerator.Utility { internal class Graph { private Dictionary<int, GraphNode> _nodes; /// <summary> /// Directed graph with weigted edges. /// </summary> /// <param name="_nodes">Li...
C#
src/Orchard.Web/Modules/Piedone.Combinator/SpriteGenerator/Utility/Graph.cs
SouleDesigns/SouleDesigns.Orchard
bsd-3-clause
4,316
108
codeparrot/github-code
d9a56ffdbccff881c98ab10faa200b6ca80b0f538a4e23de2e466ffe61dd18ae
<?php use hipanel\modules\domain\models\Domain; use yii\helpers\Html; use yii\helpers\Url; use yii\web\View; /** * @var View $this * @var Domain $model * @var boolean $askPincode */ ?> <?= Html::beginForm([ 'options' => [ 'class' => 'form-horizontal', ], ]); ?> <?= Html::hiddenInput('id', $model-...
PHP
src/widgets/views/auth-code.php
hiqdev/hipanel-module-domain
bsd-3-clause
4,123
135
codeparrot/github-code
86164690674745fe425e9110f5d995c405f408e6992787ceac6f1bda0049ac29
""" XML serializer. """ from xml.dom import pulldom from xml.sax import handler from xml.sax.expatreader import ExpatParser as _ExpatParser from django.apps import apps from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.core.serializers import base from django.db import...
Python
django/core/serializers/xml_serializer.py
theo-l/django
bsd-3-clause
16,785
425
codeparrot/github-code
20ac23ac4738e022514dba9a2529385d5291cc7fcd86256367f4866217841163
/* * This file is part of otf2xx (https://github.com/tud-zih-energy/otf2xx) * otf2xx - A wrapper for the Open Trace Format 2 library * * Copyright (c) 2013-2016, Technische Universität Dresden, Germany * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ...
C++
include/otf2xx/event/thread_acquire_lock.hpp
tud-zih-energy/otf2xx
bsd-3-clause
3,487
97
codeparrot/github-code
5c5430aed2065eef59f50bdb483ad302ddc1c90ebc4a24d86e32468dc242de94
<?php if (!defined('IDIR')) { die; } /*======================================================================*\ || #################################################################### || # vBulletin Impex || # ---------------------------------------------------------------- || # All PHP code in this file is Copyright 2...
PHP
systems/fusetalk3/011.php
internetbrands/vbimpex
bsd-3-clause
6,012
142
codeparrot/github-code
ea4365ae01654b417a31edc85f38071daef89acca4e691de442f23eef742334e
#include <sys/mman.h> #include <unistd.h> #include <stdint.h> #include <fcntl.h> /* for open(2) */ #include <stdio.h> /* for snprintf */ #include <string.h> #ifdef DEBUG #include <stdlib.h> #define ASSERT(c) if (!(c))\ { fprintf(stderr, "%s:%d Assert: %s\n", __FILE__, __LINE__, #c); abort(); } #else ...
C
ljmm.c
cloudflare/ljmm
bsd-3-clause
9,042
328
codeparrot/github-code
5b6f6e0beda1b8f4a5987bcb03b65d104413925d4b61664a031735a974214b61
// 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 CHROMEOS_SERVICES_LIBASSISTANT_GRPC_ASSISTANT_CLIENT_H_ #define CHROMEOS_SERVICES_LIBASSISTANT_GRPC_ASSISTANT_CLIENT_H_ #include <memory> #inclu...
C
chromeos/services/libassistant/grpc/assistant_client.h
scheib/chromium
bsd-3-clause
9,114
226
codeparrot/github-code
8b3fae3febc412013c148e0c02ae9c86a648fc1c9da78d8a4892dc7c6412cf43
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__char_calloc_61a.c Label Definition File: CWE401_Memory_Leak.c.label.xml Template File: sources-sinks-61a.tmpl.c */ /* * @description * CWE: 401 Memory Leak * BadSource: calloc Allocate data using calloc() * GoodSource: Allocate data on the s...
C
xcc/test/juliet/testcases/CWE401_Memory_Leak/s01/CWE401_Memory_Leak__char_calloc_61a.c
JianpingZeng/xcc
bsd-3-clause
2,556
97
codeparrot/github-code
205b87322c837448d4cf60b4199b38c213c46bb8855e55f371b22c08c71edddd
/**CFile**************************************************************** FileName [extraBddBoundSet.c] PackageName [extra] Synopsis [Characterization of bounds sets in the BDD. This method for the implicit computation of all bound sets is described in the paper: A. Mishchenko, X. Wang, T. Kam. A New ...
C
cudd-2.4.2/extra20/extraBddBoundSet.c
tectronics/parameter-toolkit
bsd-3-clause
11,853
326
codeparrot/github-code
6cae566f12b1502f6dc2dc30b969d19200addf7cbe2eaba6ff1bf2d50727049f
/* libxmms-flac - XMMS FLAC input plugin * Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 Josh Coalson * * 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 version 2 ...
C
src/plugin_xmms/plugin.c
kode54/flac
bsd-3-clause
24,601
685
codeparrot/github-code
f0597370af6791e365f095a54ec81997fd41bc8a27f45d92243d1151ae399721
/* static char *inet_id = "@(#)Copyright (C) 2017 H.Shirouzu inet.h Ver4.70"; */ /* ======================================================================== Project Name : Internet access Create : 2017-08-10(Thr) Update : 2017-08-10(Thr) Copyright : H.Shirouzu =============================...
C
src/TLib/tinet.h
Mapaler/FastCopy_CN
bsd-3-clause
1,468
57
codeparrot/github-code
b8300874fb6e81a427425cce10d929e58ddbb57513a198cb3f2afe7b7f6388c5
### # Copyright (c) 2002-2004, Jeremiah Fincher # Copyright (c) 2010, James Vega # 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 copyri...
Python
plugins/ChannelStats/test.py
mazaclub/mazabot-core
bsd-3-clause
4,460
95
codeparrot/github-code
fed90a2c59f6d4edb372e2662140a0244cf60c028859ea50666d0d6d9fcff46c
//= require ./static-config //= require ./dispatcher (function () { "use strict"; var Dispatcher = Dashboard.Dispatcher; var config = Dashboard.config; var fetchedProperties = []; Dashboard.config.fetch = function () { var resolve, reject; var promise = new Promise(function (rs, rj) { resolve = rs; reject = rj...
JavaScript
dashboard/app/lib/javascripts/dashboard/config.js
arekkas/flynn
bsd-3-clause
2,651
117
codeparrot/github-code
1aaf29252bd01fde8cabddf3fb55fb880abf2beaadc16009ad04150e8d6ecdaf
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE195_Signed_to_Unsigned_Conversion_Error__connect_socket_malloc_54a.c Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml Template File: sources-sink-54a.tmpl.c */ /* * @description * CWE: 195 Signed to Unsigned Conversion Error * BadSou...
C
xcc/test/juliet/testcases/CWE195_Signed_to_Unsigned_Conversion_Error/s01/CWE195_Signed_to_Unsigned_Conversion_Error__connect_socket_malloc_54a.c
JianpingZeng/xcc
bsd-3-clause
4,919
161
codeparrot/github-code
b7685afd4c7aab5fb8ad46a1faa103fe0fb1a6953f613a3623f628459ae1fe9b
"""Functionality related with filters in a PyTables file.""" import warnings import numpy as np from . import utilsextension, blosc_compressor_list, blosc_compcode_to_compname from .exceptions import FiltersWarning from packaging.version import Version import tables as tb blosc_version = Version(tb.which_lib_versio...
Python
tables/filters.py
avalentino/PyTables
bsd-3-clause
16,149
438
codeparrot/github-code
1938d801de4740326c928395339acd4be0a0955ec3689be91fd46cd37f1bd4da
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Create the RenderWindow, Renderer and both Actors # ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkRenderWindowInteractor(...
Python
graphics/VTK-7.0.0/Imaging/Hybrid/Testing/Python/shepards.py
hlzz/dotfiles
bsd-3-clause
1,608
64
codeparrot/github-code
4292899b3a4c6b5db97aa141f0f94f27b778fd134bc879f476c3630f15d5a1ec
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved. using UnityEngine; namespace HutongGames.PlayMaker.Actions { [ActionCategory(ActionCategory.Transform)] [Tooltip("Sets Random Rotation for a Game Object. Uncheck an axis to keep its current value.")] public class SetRandomRotation : FsmState...
C#
samples/Myo-Surgeon-Assistant-App/src/Unity3D/Myo_SFDC_v3/Assets/Myo Samples/PlayMaker/Actions/SetRandomRotation.cs
developerforce/WearablePack-Myo
bsd-3-clause
1,223
55
codeparrot/github-code
dedd380208a3d29c4ced39fdd2a487a4031c5a6b01cebd01978c678538247bc0
#include <string.h> #include <iostream> #include <glib.h> #include "stdlib.h" #include "b64/encode.h" #include "b64/decode.h" using namespace std; // Include the contextiso header #include "include/contextiso.h" #define BUFFER 2048 // Usage example of libcontextiso int main(int argc, char *argv[]) { // The con...
C
dashboard/libcontextiso/cg_vams_iso_gen.c
bcfuchs/citizengrid
bsd-3-clause
2,273
74
codeparrot/github-code
2cbabb77dedd0d6bd5e7ad154a5a9f7faf00d9fbd506220abe93c2ef3feff494
/******************************************************************************* * Copyright (c) 2014 Pivotal Software, Inc. and others. * All rights reserved. This program and the accompanying materials are made * available under the terms of the Eclipse Public License v1.0 * (http://www.eclipse.org/legal/epl-v1...
Java
org.eclipse.flux.client.java/src/main/java/org/eclipse/flux/client/impl/SimpleUserPermissions.java
eclipse/flux
bsd-3-clause
2,471
74
codeparrot/github-code
d85811001d30ad829561c133ef0729272194c3a174404ae273183340ce74d7d6
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
C++
third_party/nt2/linalg/functions/geesx_no_w.hpp
hainm/pythran
bsd-3-clause
1,398
53
codeparrot/github-code
1c22203c81a16689661d716f0a2a80ab07249ee96df6f2ac1e12a5de447a531a
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE114_Process_Control__w32_char_connect_socket_53a.c Label Definition File: CWE114_Process_Control__w32.label.xml Template File: sources-sink-53a.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_53a.c
JianpingZeng/xcc
bsd-3-clause
5,112
174
codeparrot/github-code
8e2847fd702ba224bdc6ba7a24058fd9c2944598a7a5be8a4a2877be64ead97d
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_delete_int_15.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_delete.label.xml Template File: sources-sinks-15.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Mana...
C++
xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s05/CWE762_Mismatched_Memory_Management_Routines__new_array_delete_int_15.cpp
JianpingZeng/xcc
bsd-3-clause
5,959
219
codeparrot/github-code
f7c9c8b2d9295fbbf2370ca0928c5cb5dd31095ccd1b5119afe335343d70b7b0
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_free_class_53b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_free.label.xml Template File: sources-sinks-53b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Mana...
C++
xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s05/CWE762_Mismatched_Memory_Management_Routines__new_array_free_class_53b.cpp
JianpingZeng/xcc
bsd-3-clause
1,411
56
codeparrot/github-code
291604dc3a72f5b677caf05df77dd2474df367da6287644f19dc6dd6137582e5
#!/usr/bin/env python2.6 import lxml.html, re, HTMLParser class InvalidArguments(Exception): pass class MetaHeaders: def __init__(self, url=None, page=None,name='name',content='content', unescape_entities=False): if page: self.root = lxml.html.document_fromstring(page) elif url: self.root = lxml.html.pa...
Python
plugins/python/metaheaders.py
OAButton/tricorder
bsd-3-clause
2,791
127
codeparrot/github-code
1b791f3cad6dbc52ee4e83cf02adeb056fa89d6956f098c5bc4710483cea7469
#include "IMPL/TrackerPulseImpl.h" //#include "Exceptions.h" #include <algorithm> using namespace EVENT ; namespace IMPL{ TrackerPulseImpl::TrackerPulseImpl() : _cellID0(0) , _cellID1(0) , _time(0), _charge(0), _quality(0), _cov( TRKPULSENCOVMATRIX ), _corrData(0){ } /// ...
C++
src/cpp/src/IMPL/TrackerPulseImpl.cc
iLCSoft/LCIO
bsd-3-clause
2,220
90
codeparrot/github-code
452f9dcfca9aefcb8030f9bbe37057217efb1120663b0cb16d151f138a0bb3ff
/******************************************************************************* * Copyright SemanticBits, Northwestern University and Akaza Research * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/caaers/LICENSE.txt for details. *************************************...
Java
caAERS/software/core/src/main/java/gov/nih/nci/cabig/caaers/api/impl/DefaultInvestigatorMigratorService.java
CBIIT/caaers
bsd-3-clause
19,526
406
codeparrot/github-code
9d502b3e9f54092baeebe7c44fd3deff7f21f674517fcb457fd7e49d38cf7933
var boutique = { animate_nivo: function($progress, speed) { $progress.find('span').animate({ 'width': '100%' }, speed, 'linear'); }, reset_nivo: function($progress) { $progress.find('span').stop().css('width', '0%'); }, resize_menu: function(width) { if(width > 979) { $('.main-menu').find('ul').remo...
JavaScript
public/js/la_boutique.js
phuchungnguyen78/heoproject
bsd-3-clause
6,608
232
codeparrot/github-code
c989bf7a5b5d70dfa19e9c91d95128d2c8558419226c997619163bff8862d114
var _ = require('underscore'); var WidgetModel = require('../widget-model'); var LockedCategoriesCollection = require('./locked-categories-collection'); /** * Model for a category widget */ module.exports = WidgetModel.extend({ defaults: _.extend({ type: 'category', search: false, locked: false }, ...
JavaScript
lib/assets/javascripts/deep-insights/widgets/category/category-widget-model.js
CartoDB/cartodb
bsd-3-clause
3,683
152
codeparrot/github-code
4159a6346b1436519496648615a84ceba5e428b21ea97eee63387f21acad5d13
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>YUI: Get and Pipes - Example 2</title> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.4.0/build/reset-fonts-grids/reset-fonts-grids.css"> <link rel="stylesheet" type="tex...
PHP
get2/index.php
chemouna/yui-examples
bsd-3-clause
8,750
196
codeparrot/github-code
442d31d8972b32a8ad80d720c3b7f0b6a21789a24c9104ef8e800ddfef240474
<?php class Services_Upgrade_Settings { private $_settings; public function __construct(Dao_Factory $daoFactory, Services_Settings_Container $settings) { $this->_settings = $settings; } // ctor public function update() { /* * Make sure some versionnumbers are alw...
PHP
lib/services/Upgrade/Services_Upgrade_Settings.php
GeoffreyDijkstra/spotweb
bsd-3-clause
10,181
289
codeparrot/github-code
438a9d66865bce151b97d05dae03cdf9de09b5092516a682498823a04ec4aaef
/* * 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 conditions a...
C
third_party/blink/renderer/core/css/css_segmented_font_face.h
scheib/chromium
bsd-3-clause
5,749
141
codeparrot/github-code
6b7225ba9e000603a38b780f28b4c4bb1e3231b09d87f8bda4c46856a2cfca54
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome_elf/blacklist/blacklist.h" #include <assert.h> #include <string.h> #include <vector> #include "base/basictypes.h" #include "chrome_elf...
C++
chrome_elf/blacklist/blacklist.cc
7kbird/chrome
bsd-3-clause
15,679
445
codeparrot/github-code
c5af9025199f03d7c3803ffbd9f2745a6e94a23fa835089f623e91ba1c86c4c7
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/ash/launcher/browser_launcher_item_controller.h" #include <map> #include <string> #include "ash/launcher/launcher_model....
C++
chrome/browser/ui/ash/launcher/browser_launcher_item_controller_unittest.cc
leiferikb/bitpop-private
bsd-3-clause
16,786
451
codeparrot/github-code
16bc2ba454f6ed65ddd58b9ba0ea7a2047aa76156b8f67f058e4e1957da33d88
{-#LANGUAGE NoImplicitPrelude #-} {-#LANGUAGE OverloadedStrings #-} {-#LANGUAGE OverloadedLists #-} {-#LANGUAGE TypeFamilies #-} {-#LANGUAGE MultiParamTypeClasses #-} {-#LANGUAGE FlexibleInstances #-} {-#LANGUAGE FlexibleContexts #-} {-#LANGUAGE LambdaCase #-} {-#LANGUAGE TupleSections #-} {-#LANGUAGE DeriveGeneric #-}...
Haskell
src/Web/Sprinkles/Backends/Spec.hs
tdammers/templar
bsd-3-clause
19,599
552
codeparrot/github-code
8b233311ca3229751dc97b51c9276266f128872cc662922aad43e5cea1ccc0a4
// Copyright NVIDIA Corporation 2002-2015 // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following d...
C
dp/sg/io/DPBF/DPBF.h
swq0553/pipeline
bsd-3-clause
44,452
711
codeparrot/github-code