code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
/* * THE NEW CHRONOTEXT TOOLKIT: https://github.com/arielm/new-chronotext-toolkit * COPYRIGHT (C) 2012-2015, ARIEL MALKA ALL RIGHTS RESERVED. * * THE FOLLOWING SOURCE-CODE IS DISTRIBUTED UNDER THE SIMPLIFIED BSD LICENSE: * https://github.com/arielm/new-chronotext-toolkit/blob/master/LICENSE.md */ #pragma once #...
neshume/new-chronotext-toolkit
src/chronotext/android/cinder/CinderDelegate.h
C
bsd-2-clause
2,577
#include "IL.h" #include "ILVisitor.h" #include <core/Core.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> IL::IL():Opcode(Nop) { } IL::IL(IL::ILOpcode opcode) { this->Opcode = opcode; this->Operands.clear(); } IL::IL(IL::ILOpcode opcode, const IL::ILOperand& operand1) { this->Opcode = opco...
layerzero/cc0
src/toolchain/core/IL/IL.cpp
C++
bsd-2-clause
14,763
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2002, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the f...
solakian/RISE
extlib/openexr/ImfWav.cpp
C++
bsd-2-clause
7,911
#pragma once class QApplication; namespace nano { void set_application_icon (QApplication &); }
clemahieu/raiblocks
nano/nano_wallet/icon.hpp
C++
bsd-2-clause
97
/* Copyright (C) 2012, Code for America * This is open source software, released under a standard 2-clause * BSD-style license; see the file LICENSE for details. */ var ConfigBoston2 = { center: [42.36299, -71.057348], // [lat, lon] zoom: 13, // integer endpoint: 'boston', // string useCanvasMap: true, ma...
zmon/311DailyBriefKC
assets/js/libs/config.boston2.js
JavaScript
bsd-2-clause
543
<!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> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
avis/cds
doc/cds-api/functions_func_0x72.html
HTML
bsd-2-clause
12,069
cask 'srware-iron' do version :latest sha256 :no_check url 'https://www.srware.net/downloads/iron-mac64.zip' name 'SRWare SRWare Iron' homepage 'https://www.srware.net/en/software_srware_iron.php' license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placehol...
jppelteret/homebrew-cask
Casks/srware-iron.rb
Ruby
bsd-2-clause
449
/* * Copyright (c) 1997 - 1999, Marek Michałkiewicz * Copyright (c) 2001 - 2005, Tomasz Kłoczko * Copyright (c) 2008 , Nicolas François * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
mikedlowis-prototypes/albase
source/shadow/libmisc/pam_pass.c
C
bsd-2-clause
2,772
class Redo < Formula include Language::Python::Virtualenv desc "Implements djb's redo: an alternative to make" homepage "https://redo.rtfd.io/" url "https://github.com/apenwarr/redo/archive/redo-0.42c.tar.gz" sha256 "6f1600c82d00bdfa75445e1e161477f876bd2615eb4371eb1bcf0a7e252dc79f" license "Apache-2.0" r...
jabenninghoff/homebrew-core
Formula/redo.rb
Ruby
bsd-2-clause
2,536
cask 'portfolioperformance' do version '0.26.3' sha256 '542c7893acf298373260785d219b80b342a7037681079125c204e02b6e6da004' # s3.amazonaws.com/name.abuchen.portfolio was verified as official when first introduced to the cask url "https://s3.amazonaws.com/name.abuchen.portfolio/#{version}/PortfolioPerformance-#{v...
shorshe/homebrew-cask
Casks/portfolioperformance.rb
Ruby
bsd-2-clause
532
#include "postfix.h" #include "reference.h" #include "literal.h" #include "call.h" #include "../pkg/package.h" #include "../pass/expr.h" #include "../pass/names.h" #include "../type/reify.h" #include "../type/assemble.h" #include "../type/lookup.h" #include <string.h> #include <assert.h> static bool is_method_called(a...
dckc/ponyc
src/libponyc/expr/postfix.c
C
bsd-2-clause
11,495
class CaskError < RuntimeError; end class CaskNotInstalledError < CaskError attr_reader :token def initialize(token) @token = token end def to_s "#{token} is not installed" end end class CaskUnavailableError < CaskError attr_reader :token def initialize(token) @token = token end def to...
L2G/homebrew-cask
lib/cask/exceptions.rb
Ruby
bsd-2-clause
1,526
cask :v1 => 'grooveshark' do version :latest sha256 :no_check url 'http://adops-fio.grooveshark.com/desktop-app/downloads/grooveshark.zip' homepage 'http://www.grooveshark.com' license :unknown app 'Grooveshark.app' # todo: transitional, replace #{self.name...} with #{token} caveats <<-EOS.undent ...
prime8/homebrew-cask
Casks/grooveshark.rb
Ruby
bsd-2-clause
515
cask 'onedrive' do version '19.103.0527.0003' sha256 'c84a03d3a7de1a49d86462ccac609282c2fb51a09524a71254822105067d0c98' # oneclient.sfx.ms/Mac/Direct was verified as official when first introduced to the cask url "https://oneclient.sfx.ms/Mac/Direct/#{version}/OneDrive.pkg" appcast 'https://macupdater.net/cg...
winkelsdorf/homebrew-cask
Casks/onedrive.rb
Ruby
bsd-2-clause
2,539
/*-------------------------------------------------------------------- * Symbols referenced in this file: * - scanner_init * - core_yylex_init * - core_yyalloc * - yy_init_globals * - core_yyset_extra * - backslash_quote * - escape_string_warning * - standard_conforming_strings * - core_yy_scan_buffer * - co...
lfittl/libpg_query
src/postgres/src_backend_parser_scan.c
C
bsd-3-clause
620,535
/*============================================================================= Copyright (c) 2003 Joel de Guzman Copyright (c) 2004 Peder Holt Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://ww...
darwin/upgradr
ieaddon/Upgradr/boost/spirit/fusion/sequence/joint_view.hpp
C++
bsd-3-clause
2,083
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ namespace osCommerce\OM\Core\Site\Shop\Module\Box\BestSellers; use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; use...
haraldpdl/oscommerce
osCommerce/OM/Core/Site/Shop/Module/Box/BestSellers/Controller.php
PHP
bsd-3-clause
4,526
/* * Copyright (C) 2010 Apple Inc. All rights reserved. * Portions Copyright (c) 2010 Motorola Mobility, Inc. All rights reserved. * Copyright (C) 2012 Samsung Electronics Ltd. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
klim-iv/phantomjs-qt5
src/webkit/Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp
C++
bsd-3-clause
5,430
package org.jbehave.core.failures; public final class PassingUponPendingStep implements PendingStepStrategy { @Override public void handleFailure(Throwable throwable) { // do nothing } }
skundrik/jbehave-core
jbehave-core/src/main/java/org/jbehave/core/failures/PassingUponPendingStep.java
Java
bsd-3-clause
198
using System; using System.Configuration; namespace Shuttle.Core.Infrastructure { public class ComponentResolverCollectionElement : ConfigurationElementCollection { protected override ConfigurationElement CreateNewElement() { return new ComponentResolverElement(); } ...
Shuttle/shuttle-core-infrastructure
Shuttle.Core.Infrastructure/ComponentContainer/Resolver/ComponentResolverCollectionElement.cs
C#
bsd-3-clause
453
/************************************************************************************ * Copyright (c) 2006, University of Kansas - Hybridthreads Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are m...
masson2013/heterogeneous_hthreads
include/time/commands.h
C
bsd-3-clause
5,922
#include "aikido/statespace/dart/JointStateSpaceHelpers.hpp" namespace aikido { namespace statespace { namespace dart { //============================================================================== std::unique_ptr<JointStateSpace> createJointStateSpace( const ::dart::dynamics::Joint* joint) { auto space = co...
personalrobotics/aikido
src/statespace/dart/JointStateSpaceHelpers.cpp
C++
bsd-3-clause
809
export const description = ` setBindGroup validation tests. TODO: merge these notes and implement. > (Note: If there are errors with using certain binding types in certain passes, test those in the file for that pass type, not here.) > > - state tracking (probably separate file) > - x= {compute pass, render pass} ...
gpuweb/cts
src/webgpu/api/validation/encoding/cmds/setBindGroup.spec.ts
TypeScript
bsd-3-clause
10,251
""" Django ID mapper Modified for Evennia by making sure that no model references leave caching unexpectedly (no use if WeakRefs). Also adds cache_size() for monitoring the size of the cache. """ import os, threading #from twisted.internet import reactor #from twisted.internet.threads import blockingCallFromThread f...
tectronics/evennia
src/utils/idmapper/base.py
Python
bsd-3-clause
19,327
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bson import ( "bytes" "testing" "time" "github.com/youtube/vitess/go/bytes2" ) func TestVariety(t *testing.T) { in := map[string]string{"Val": "tes...
HeisenbergUncertain/vitess
go/bson/bson_test.go
GO
bsd-3-clause
10,358
var searchData= [ ['put_125',['put',['../classpmem_1_1kv_1_1db.html#a31dbecf3c960dec47d4a04328b9efd92',1,'pmem::kv::db']]], ['put_5fcomparator_126',['put_comparator',['../classpmem_1_1kv_1_1config.html#a95af80763cf924cf0b656d4ded034222',1,'pmem::kv::config']]], ['put_5fdata_127',['put_data',['../classpmem_1_1kv_1...
pbalcer/pbalcer.github.io
content/pmemkv/v1.3/doxygen/search/functions_6.js
JavaScript
bsd-3-clause
1,713
package net.emaze.dysfunctional.consumers; import java.util.Iterator; import net.emaze.dysfunctional.contracts.dbc; import java.util.function.Function; /** * A unary function consuming an iterator and yielding last element contained in * it. * * @param <E> the iterator element type * @author rferranti */ public...
EdMcBane/emaze-dysfunctional
src/main/java/net/emaze/dysfunctional/consumers/LastElement.java
Java
bsd-3-clause
997
/* * BSD 3-Clause License * * Copyright (c) 2017, Shogun-Toolbox e.V. <shogun-team@shogun-toolbox.org> * 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 ret...
karlnapf/shogun
src/shogun/lib/observers/ParameterObserverHistogram.cpp
C++
bsd-3-clause
2,792
from unittest import mock from django.db import connection, migrations try: from django.contrib.postgres.operations import ( BloomExtension, BtreeGinExtension, BtreeGistExtension, CITextExtension, CreateExtension, CryptoExtension, HStoreExtension, TrigramExtension, UnaccentExtension, )...
kaedroho/django
tests/postgres_tests/migrations/0001_setup_extensions.py
Python
bsd-3-clause
1,212
#ifndef _t_sync_message_ #define _t_sync_message_ #include <stdio.h> enum messageT {REQ_PUB, REQ_SD }; #endif
suzlab/Autoware
ros/src/system/sync/include/t_sync_message.h
C
bsd-3-clause
128
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xml:lang="en" lang="en"> <!-- this is a JXR report set --> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>pool 1.0 Reference</title> </head> <frameset c...
mbeiter/crypto4j
docs/1.0/pool/xref/index.html
HTML
bsd-3-clause
827
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__char_environment_w32CreateFile_14.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-14.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: environment Read input ...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s02/CWE23_Relative_Path_Traversal__char_environment_w32CreateFile_14.cpp
C++
bsd-3-clause
4,939
<!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> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
gnu3ra/SCC15HPCRepast
docs/API/relogo/html/structrepast_1_1relogo_1_1_type_info_cmp-members.html
HTML
bsd-3-clause
5,477
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ astropy.cosmology contains classes and functions for cosmological distance measures and other cosmology-related calculations. See the `Astropy documentation <https://docs.astropy.org/en/latest/cosmology/index.html>`_ for more detailed usage examples a...
mhvk/astropy
astropy/cosmology/__init__.py
Python
bsd-3-clause
830
/** * Copyright 2015 Palantir Technologies * * Licensed under the BSD-3 License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/BSD-3-Clause * * Unless required by applicable law or agreed to in wri...
sh4nth/atlasdb-1
atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/CleanupFollower.java
Java
bsd-3-clause
3,440
/* * Package: message.js * * Namespace: bbop.widget.message * * TODO: Code needs to be cleaned with <bbop.html>. * * BBOP object to produce a self-constructing/self-destructing * sliding message/announcments/warnings. * * Note that this is a steal of some older code. We'll probably have * to clean this u...
mugitty/bbop-js
lib/bbop/widget/message.js
JavaScript
bsd-3-clause
3,120
<?php declare(strict_types=1); namespace Kafka\Exception; use Kafka\Exception; class Protocol extends Exception { }
nmred/kafka-php
src/Exception/Protocol.php
PHP
bsd-3-clause
119
# -*- coding:utf-8 -*- from django.utils.translation import ugettext_lazy as _ # SearchForm's strings SEARCH_FORM_KEYWORDS = _(u'Key Words / Profession') SEARCH_FORM_LOCATION = _(u'City, State or Zip Code') # SearchFiltersForm's strings SEARCH_FILTERS_FORM_JOB_POSITION = _(u'Job Position') SEARCH_FILTERS_FORM_EXPERIE...
hellhovnd/dentexchange
dentexchange/apps/search/strings.py
Python
bsd-3-clause
551
--+ holdcas on; set names utf8; set system parameters 'intl_date_lang = es_ES'; -- TO_TIME -- text SELECT TO_TIME('10:11:12 teÌt pm', 'HH:MI:SS "teìt" PM'); SELECT TO_DATE('2010-01 teìt Nov', 'yyyy-dd "teÌt" Mon'); select 'TO_TIME( , PM)'; SELECT TO_TIME('10:11:12 PM', 'HH:MI:SS PM'); SELECT TO_TIME('10:11:12 AM', ...
CUBRID/cubrid-testcases
sql/_23_apricot_qa/_03_i18n/es_ES/_01_string_date_func/cases/_005_to_time.sql
SQL
bsd-3-clause
534
# -*- coding: utf-8 -*- """:mod:`itertools` is full of great examples of Python generator usage. However, there are still some critical gaps. ``iterutils`` fills many of those gaps with featureful, tested, and Pythonic solutions. Many of the functions below have two versions, one which returns an iterator (denoted by ...
doublereedkurt/boltons
boltons/iterutils.py
Python
bsd-3-clause
32,952
/*========================================================================= Program: Visualization Toolkit Module: vtkImageMagnitude.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software ...
keithroe/vtkoptix
Imaging/Math/vtkImageMagnitude.h
C
bsd-3-clause
1,612
<html> <head> <script src="../../http/tests/inspector/inspector-test.js"></script> <script src="../../http/tests/inspector/console-test.js"></script> <script> function onload() { var obj = new Object(); obj["a"] = 1; obj[Symbol()] = 2; obj[Symbol("a")] = 3; obj[Symbol("a")] = Symbol.iterator; o...
danakj/chromium
third_party/WebKit/LayoutTests/inspector/console/console-dir-es6.html
HTML
bsd-3-clause
1,615
// Copyright Aleksey Gurtovoy 2001-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Preprocessed version of "boost/mpl/aux_/full_lambda.hpp" header // -- DO NOT modify by hand! namespace pdalboo...
verma/PDAL
boost/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp
C++
bsd-3-clause
11,566
class Module: def __init__(self, mainMenu, params=[]): # metadata info about the module, not modified during runtime self.info = { # name for the module that will appear in module menus 'Name': 'Prompt', # list of one or more authors for the module ...
Hackplayers/Empire-mod-Hpys-tests
lib/modules/python/collection/osx/prompt.py
Python
bsd-3-clause
3,830
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ #include <list> #include <strin...
chromium2014/src
content/browser/worker_host/worker_process_host.h
C
bsd-3-clause
10,953
/***************************************************************************** * CVS File Information : * $RCSfile$ * Author: patmiller $ * Date: 2007/06/11 14:12:54 $ * Revision: 1.2 $ ****************************************************************************/ /*************************************...
nschloe/seacas
packages/zoltan/siMPI/pyMPI/siMPI/_MPI_UTILITY.c
C
bsd-3-clause
2,338
#!/usr/bin/python # ex:set fileencoding=utf-8: from __future__ import unicode_literals from django.conf.urls import patterns from django.conf.urls import url from django.contrib.admin.sites import AlreadyRegistered from django.contrib.contenttypes.models import ContentType from django.core.exceptions import Improperl...
django-bmf/django-bmf
djangobmf/core/module.py
Python
bsd-3-clause
17,355
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__char_environment_printf_18.c Label Definition File: CWE134_Uncontrolled_Format_String.label.xml Template File: sources-sinks-18.tmpl.c */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: environment Read inpu...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s02/CWE134_Uncontrolled_Format_String__char_environment_printf_18.c
C
bsd-3-clause
3,837
/* * 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...
unisontech/webrtc-core
test/channel_transport/udp_socket_wrapper_unittest.cc
C++
bsd-3-clause
2,590
import sys from apps.cowry.exceptions import PaymentMethodNotFound from django.utils.importlib import import_module def _load_from_module(path): package, attr = path.rsplit('.', 1) module = import_module(package) return getattr(module, attr) # TODO read django settings to find out what adapters to load. ...
onepercentclub/onepercentclub-site
apps/cowry/factory.py
Python
bsd-3-clause
3,526
/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2014 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ** follo...
lukedirtwalker/Envision
JavaImportTool/src/main/java/envision/java/importtool/Node.java
Java
bsd-3-clause
12,291
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "adc.h" #include "adc_chip.h" #include "common.h" #include "console.h" #include "dma.h" #include "hooks.h" #include "registers.h" #inc...
md5555/ec
chip/stm32/adc-stm32f3.c
C
bsd-3-clause
6,390
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Code Coverage for /home/gerard/sites/modules.w.doctrine/modules.zendframework.com/vendor/ZF2/library/Zend/Loader/AutoloaderFactory.php</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="css/bootstrap.m...
gerardoloan/moduleswdoctrine
module/ZfModule/test/clover-html/vendor_ZF2_library_Zend_Loader_AutoloaderFactory.php.html
HTML
bsd-3-clause
49,782
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
Caleydo/caleydo
org.caleydo.view.tourguide/src/main/java/org/caleydo/view/tourguide/spi/algorithm/IStratificationAlgorithm.java
Java
bsd-3-clause
1,118
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__char_declare_memcpy_52c.c Label Definition File: CWE126_Buffer_Overread.stack.label.xml Template File: sources-sink-52c.tmpl.c */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Set data pointer to a small buffer * GoodSource...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE126_Buffer_Overread/s01/CWE126_Buffer_Overread__char_declare_memcpy_52c.c
C
bsd-3-clause
1,793
// 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/extensions/api/declarative_content/content_action.h" #include <map> #include "base/lazy_instance.h" #include "base/strings/...
hefen1/chromium
chrome/browser/extensions/api/declarative_content/content_action.cc
C++
bsd-3-clause
18,231
Module("block.ui", function (m) { Class("Shape", { isa: block.ui.Container, has: { _left: { is: "rw", init: 200 }, _top: { is: "rw", init: 100 }, _width: { is: "rw" }, ...
erpframework/joose-js
examples/blok/block/ui/Shape.js
JavaScript
bsd-3-clause
11,209
--- id: 5ddb965c65d27e1512d44da4 title: Step 11 challengeType: 0 dashedName: step-11 --- # --description-- Log `meal.value` to the console, enter a number in the Breakfast input and hit the Calculate button. You'll notice that it displays what you entered. # --hints-- See description above for instructions. ```js ...
FreeCodeCamp/FreeCodeCamp
curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-javascript-calorie-counter/step-011.md
Markdown
bsd-3-clause
2,585
--- id: afd15382cdfb22c9efe8b7de title: Parear DNA challengeType: 5 forumTopicId: 16009 dashedName: dna-pairing --- # --description-- A faixa de DNA está faltando o elemento de pareamento. Pegue cada caractere, pegue seu par e retorne os resultados como um array de duas dimensões. [Pares de base](http://en.wikipedia...
FreeCodeCamp/FreeCodeCamp
curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/dna-pairing.md
Markdown
bsd-3-clause
1,691
/* ----------------------------------------------------------------------------- * * (c) The University of Glasgow 2006-2008 * * OS-specific memory management * * ---------------------------------------------------------------------------*/ #ifndef SM_OSMEM_H #define SM_OSMEM_H #include "BeginPrivate.h" void o...
sgillespie/ghc
rts/sm/OSMem.h
C
bsd-3-clause
2,912
SUBDIRS=lucida-suite lucida DOCKER_CONTAINER=claritylab/lucida VERSION=latest THREADS=4 include ./Makefile.common .PHONY: docker local ## build docker environment docker: docker build -t $(DOCKER_CONTAINER):$(VERSION) . ## build local environment THRIFT_VERSION=0.9.2 export THRIFT_ROOT=$(shell pwd)/tools/thrift-...
yunshengb/lucida
Makefile
Makefile
bsd-3-clause
510
package com.lunarworkshop.tinker; import java.io.IOException; import java.util.Arrays; import android.view.*; import android.app.*; import android.content.res.*; import android.graphics.*; import android.content.*; import android.util.*; import android.os.*; import android.util.Log; import org.libsdl.app.SDLActivit...
BSVino/ViewbackMonitor
android/src/com/lunarworkshop/tinker/TinkerActivity.java
Java
bsd-3-clause
10,404
;(function($B){ eval($B.InjectBuiltins()) var $ObjectDict = _b_.object.$dict function $list(){ // used for list displays // different from list : $list(1) is valid (matches [1]) // but list(1) is invalid (integer 1 is not iterable) var args = [], pos=0 for(var i=0, _len_i = arguments.length; i < ...
Lh4cKg/brython
www/src/py_list.js
JavaScript
bsd-3-clause
18,655
<div> <h3><div class="gpiic-speakText-announce-label gpii-label"></div></h3> <div> <label class="gpiic-speakText-punctuationVerbosity-label gpii-description"></label> <div class="gpiic-punctuationVerbosity-container gpii-punctuationVerbosity-container" role="radiogroup" aria-labelledby="" aria-d...
kaspermarkus/prefsEditors
src/shared/adjusters/html/punctuationVerbosityTemplate.html
HTML
bsd-3-clause
797
""" Example OAuthenticator to use with My Service """ import json from jupyterhub.auth import LocalAuthenticator from oauthenticator.oauth2 import OAuthLoginHandler, OAuthenticator from tornado.auth import OAuth2Mixin from tornado.httputil import url_concat from tornado.httpclient import HTTPRequest, AsyncHTTPClient...
minrk/oauthenticator
docs/source/example-oauthenticator.py
Python
bsd-3-clause
3,918
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE124_Buffer_Underwrite__char_alloca_loop_73b.cpp Label Definition File: CWE124_Buffer_Underwrite.stack.label.xml Template File: sources-sink-73b.tmpl.cpp */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: Set data pointer to before the allocated me...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE124_Buffer_Underwrite/s01/CWE124_Buffer_Underwrite__char_alloca_loop_73b.cpp
C++
bsd-3-clause
2,053
// Copyright 2010 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
xushiwei/szl
src/engine/constantfolding.h
C
bsd-3-clause
2,275
class ServiceError(Exception): """Base class for exceptions in this module.""" pass class UnsupportedFormatError(ServiceError): """Used to raise exceptions when a response doesn't match expected semantics or for failed version checks.""" pass class MissingLayerError(ServiceError): ...
venicegeo/eventkit-cloud
eventkit_cloud/utils/services/errors.py
Python
bsd-3-clause
454
package com.oracle.xmlns.apps.crmcommon.salesparties.salespartiesservice.types; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTyp...
delkyd/Oracle-Cloud
PaaS_SaaS_Accelerator_RESTFulFacade/FusionProxy_SalesPartyService/src/com/oracle/xmlns/apps/crmcommon/salesparties/salespartiesservice/types/FindMySalesAccountMyVC.java
Java
bsd-3-clause
2,508
# -*- coding: utf-8 -*- from django.contrib import admin from ionyweb.page.models import Page, Layout admin.site.register(Page) admin.site.register(Layout)
makinacorpus/ionyweb
ionyweb/page/admin.py
Python
bsd-3-clause
158
require 'spec_helper' describe "booking_countries/edit" do before(:each) do @booking_country = assign(:booking_country, stub_model(BookingCountry, :name => "MyString", :group_id => 1 )) end it "renders the edit booking_country form" do render # Run the generator again with the --web...
sibanand-cis/spree_city_group
spec/views/booking_countries/edit.html.erb_spec.rb
Ruby
bsd-3-clause
656
// 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/extensions/extension_sync_data.h" #include "base/files/file_path.h" #include "base/memory/scoped_ptr.h" #include "base/versi...
CTSRD-SOAAP/chromium-42.0.2311.135
chrome/browser/extensions/extension_sync_data_unittest.cc
C++
bsd-3-clause
5,920
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Python Module Index &mdash; django BMF alpha...
glomium/django-bmf.org
docs/dev/py-modindex.html
HTML
bsd-3-clause
8,860
package com.compositesw.services.system.admin.execute; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for rowValueList complex type. * ...
cisco/PDTool
CISAdminApi8.0.0/src/com/compositesw/services/system/admin/execute/RowValueList.java
Java
bsd-3-clause
1,842
/* Copyright (C) 2014 Parrot SA 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 dis...
Parrot-Developers/libARStream
Includes/libARStream/ARSTREAM_Sender.h
C
bsd-3-clause
13,125
from distutils.core import setup setup( name='PyMonad', version='1.3', author='Jason DeLaat', author_email='jason.develops@gmail.com', packages=['pymonad', 'pymonad.test'], url='https://bitbucket.org/jason_delaat/pymonad', license=open('LICENSE.txt').read(), description='Collection of c...
fnl/pymonad
setup.py
Python
bsd-3-clause
824
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Module containing the various stages that a builder runs.""" import json import logging import os from chromite.cbuildbot import commands from ch...
bpsinc-native/src_third_party_chromite
cbuildbot/stages/release_stages.py
Python
bsd-3-clause
14,805
from __future__ import print_function from __future__ import division from __future__ import unicode_literals from __future__ import absolute_import # Standard imports from future import standard_library standard_library.install_aliases() from builtins import * from past.utils import old_div import unittest import json...
shankari/e-mission-server
emission/incomplete_tests/TestCarbon.py
Python
bsd-3-clause
13,159
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_listen_socket_multiply_01.c Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-01.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: listen_socket Read data using a listen sock...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE190_Integer_Overflow/s03/CWE190_Integer_Overflow__int_listen_socket_multiply_01.c
C
bsd-3-clause
7,768
// Manages the rendering of the visualization function GLRunner(canvas, cfg) { this.init(canvas, cfg); } //Use initialization method rather than constructor to facilitate monkey-patched backends GLRunner.prototype.init = function (canvas, cfg) { this.canvas = canvas; this.cfg = cfg; cfg.ignoreGL = cfg.hasOwnProper...
modulexcite/superconductor
superconductorjs/src/GLRunner.js
JavaScript
bsd-3-clause
8,014
<?php /* * Transport interface file */ namespace Moneybird; /** * Transport interface */ interface Transport { /** * Perform the request * * @param string $url URL of request * @param string $requestMethod (GET|POST|PUT|DELETE) * @param string $data Data in string format * @para...
Blinden/HKJ
aangifte-doen/vendor/moneybird-php-api/Transport.php
PHP
bsd-3-clause
1,064
package com.jbooktrader.platform.preferences; import java.util.prefs.*; /** * @author Eugene Kononov */ public class PreferencesHolder { private static PreferencesHolder instance; private final Preferences prefs; public static synchronized PreferencesHolder getInstance() { if (instance == null)...
GabrielDancause/jbooktrader
source/com/jbooktrader/platform/preferences/PreferencesHolder.java
Java
bsd-3-clause
942
""" Module to read MODPATH output files. The module contains two important classes that can be accessed by the user. * EndpointFile (ascii endpoint file) * PathlineFile (ascii pathline file) """ import numpy as np from ..utils.flopy_io import loadtxt class PathlineFile(): """ PathlineFile Class. Par...
brclark-usgs/flopy
flopy/utils/modpathfile.py
Python
bsd-3-clause
20,645
<?php namespace Contracts\ControllerFactory; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; class ArtRequestControllerFactory implements FactoryInterface { /** * Creates a New Service * @param \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator */...
tomtuner/app
module/Contracts/src/ContractsRequest/ControllerFactory/ArtRequestControllerFactory.php
PHP
bsd-3-clause
584
// Copyright 2010-2021, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
fcitx/mozc
src/rewriter/calculator/calculator_test.cc
C++
bsd-3-clause
7,161
/* Copyright (c) 2016, 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 and the follow...
eburns1148/CareKit
CareKit/Insights/OCKInsightsTableViewHeaderView.h
C
bsd-3-clause
1,819
<?php /** * @copyright Copyright &copy; Kartik Visweswaran, communityii, 2014 - 2015 * @package communityii/yii2-user * @version 1.0.0 * * @author derekisbusy https://github.com/derekisbusy * @author kartik-v https://github.com/kartik-v */ namespace comyii\user\components; use yii\base\Component; /** * Clas...
derekisbusy/yii2-user
components/Account.php
PHP
bsd-3-clause
1,217
package org.hisp.dhis.user; /* * Copyright (c) 2004-2018, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright...
vietnguyen/dhis2-core
dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserCredentialsStore.java
Java
bsd-3-clause
2,566
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_src_wchar_t_cpy_53c.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_src.label.xml Template File: sources-sink-53c.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize data as...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s10/CWE122_Heap_Based_Buffer_Overflow__c_src_wchar_t_cpy_53c.c
C
bsd-3-clause
1,515
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__wchar_t_declare_cpy_72b.cpp Label Definition File: CWE127_Buffer_Underread.stack.label.xml Template File: sources-sink-72b.tmpl.cpp */ /* * @description * CWE: 127 Buffer Under-read * BadSource: Set data pointer to before the allocated m...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE127_Buffer_Underread/s04/CWE127_Buffer_Underread__wchar_t_declare_cpy_72b.cpp
C++
bsd-3-clause
1,759
<?php /** * TOP API: tmall.item.increment.update.schema.get request * * @author auto create * @since 1.0, 2015.08.03 */ class TmallItemIncrementUpdateSchemaGetRequest { /** * 需要编辑的商品ID **/ private $itemId; /** * 如果入参xml_data指定了更新的字段,则只返回指定字段的规则(ISV如果功能性很强,如明确更新Title,请拼装好此字段以提升API整体性能) **/ private ...
qq1156092409/subway
extensions/taobao/top/request/TmallItemIncrementUpdateSchemaGetRequest.php
PHP
bsd-3-clause
1,202
#ifndef __MORDOR_HTTP_OAUTH_H__ #define __MORDOR_HTTP_OAUTH_H__ // Copyright (c) 2009 - Mozy, Inc. #include "broker.h" namespace Mordor { namespace HTTP { namespace OAuth { std::pair<std::string, std::string> getTemporaryCredentials(RequestBroker::ptr requestBroker, const URI &uri, const std::string &method, co...
adfin/mordor
mordor/http/oauth.h
C
bsd-3-clause
3,290
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use app\models\general\GeneralLabel; /* @var $this yii\web\View */ /* @var $model app\models\RefHubungan */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="ref-hubungan-form"> <p class="text-muted"><span style="color: red">*</span> <?= GeneralLabel...
hung101/kbs
frontend/views/ref-instructor-penilaian-pendidikan/_form.php
PHP
bsd-3-clause
943
<!DOCTYPE html> <!-- Copyright (c) 2015 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <link rel="import" href="/tracing/model/user_model/user_expectation.html"> <script> 'use strict'; tr.exportTo('tr.metrics.sh', functi...
benschmaus/catapult
tracing/tracing/metrics/system_health/utils.html
HTML
bsd-3-clause
1,312
-- -- tests/base/test_configset.lua -- Test suite for the configset API. -- Copyright (c) 2012 Jason Perkins and the Premake project -- T.configset = {} local suite = T.configset local configset = premake.configset -- -- Setup and teardown -- local cset, parentset function suite.setup() parentset = configs...
Lusito/premake
tests/base/test_configset.lua
Lua
bsd-3-clause
7,212
// // Copyright (c) 2004-2020 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
BrutalCode/NLog
src/NLog/LayoutRenderers/Wrappers/WrapperLayoutRendererBuilderBase.cs
C#
bsd-3-clause
4,655
# -*- encoding: utf-8 -*- # Module iacolorhist def iacolorhist(f, mask=None): import numpy as np from iahistogram import iahistogram WFRAME=5 f = np.asarray(f) if len(f.shape) == 1: f = f[np.newaxis,:] if not f.dtype == 'uint8': raise Exception,'error, can only process uint8 images' ...
robertoalotufo/ia636
ia636/iacolorhist.py
Python
bsd-3-clause
1,449
import {Range} from "./range" import * as p from "core/properties" export namespace Range1d { export interface Attrs extends Range.Attrs { start: number end: number } export interface Props extends Range.Props {} } export interface Range1d extends Range1d.Attrs {} export class Range1d extends Range { ...
Karel-van-de-Plassche/bokeh
bokehjs/src/lib/models/ranges/range1d.ts
TypeScript
bsd-3-clause
1,529
<?php /** * Unit test class for the JoinStrings sniff. * * PHP version 5 * * @category PHP * @package PHP_CodeSniffer_MySource * @author Greg Sherwood <gsherwood@squiz.net> * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/lice...
benbeezy/Dollo3d
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php
PHP
bsd-3-clause
2,195
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Code Coverage for /home/gerard/sites/modules.w.doctrine/modules.zendframework.com/vendor/AssetManager</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="css/bootstrap.min.css" rel="stylesheet"> <link...
gerardoloan/moduleswdoctrine
module/ZfModule/test/clover-html/vendor_AssetManager.html
HTML
bsd-3-clause
6,046