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
41141b0338184ef4288cf196e7e3094c7dcad0831f21ed5ad81946c10f8a8190
/** * Copyright 2011 Ryszard Wiśniewski <brut.alll@gmail.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 * * Unless req...
Java
Android/DependenciesVectorAttackScanner/src/brut/androlib/mod/SmaliMod.java
Sukelluskello/VectorAttackScanner
bsd-3-clause
2,342
86
codeparrot/github-code
c6acf29ecaad6d33e709a85e1c9e35fe8c51f5446a4767d8afd25253fef573e3
// 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. #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_STATUS_METRICS_PROVIDER_BASE_H_ #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_STATUS_METRICS_PROVIDER_BASE_H...
C
components/signin/core/browser/signin_status_metrics_provider_base.h
nwjs/chromium.src
bsd-3-clause
2,321
62
codeparrot/github-code
9a1e0abdf47ff4a22efba23b37f8435fee4e59efe940cb8fa0adee2ef6bdf8e1
<!DOCTYPE html > <html> <head> <link rel="stylesheet" href="demos.css" type="text/css" media="screen" /> <script type="text/javascript" src="../libraries/RGraph.common.core.js" ></script> <script type="text/javascript" src="../libraries/RGraph.line.js" ></script> <title>RGraph demo: Line char...
HTML
backend/web/RGraph/demos/effects-line-unfold.html
mkiwebs/churchapp
bsd-3-clause
2,996
90
codeparrot/github-code
58435223040cdcb104f4b58e3b6a3d0c873843cc32534509eb9da5bcecb47f0c
using Edi.Advance.BTEC.UiTests.PageObjects.Controls; using Edi.Advance.Core.Common; using OpenQA.Selenium; namespace Edi.Advance.BTEC.UiTests.PageObjects { public class ExternalLinksPage : BtecMasterPage { public ExternalLinksPage() : base(UI.Links) { } public Link...
C#
PageObjects/ExternalLinksPage.cs
ir0n4ikoko/MyBTEC_SeleniumTests
bsd-3-clause
1,463
60
codeparrot/github-code
4164ef48459527a7a16fbbe1095e92f58174a70f19a2e9f022e4548018b0beb8
/* * Copyright (C) 2007 Apple Computer, 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 ...
C++
third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp
danakj/chromium
bsd-3-clause
3,477
104
codeparrot/github-code
b3cfb28cc825ffa49f7f26b9772b113908f8b889bac851494934913ca6465c09
/* * Copyright (c) 2015 Cisco and/or its affiliates. * 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 applicabl...
C
src/VPP/src/vppinfra/bihash_template.c
wfnex/openbras
bsd-3-clause
15,727
611
codeparrot/github-code
72defa9f645d5d6023f057476f167b14d08931a892855e71db17bc93e31177f1
package org.basex.server; /** * This class defines the available command-line commands. * * @author BaseX Team 2005-22, BSD License * @author Christian Gruen */ public enum ServerCmd { /** Code for creating a query process: {query}0. */ QUERY(0), /** Code for iterating results (obsolete). */ NEXT(1), /*...
Java
basex-core/src/main/java/org/basex/server/ServerCmd.java
BaseXdb/basex
bsd-3-clause
1,916
67
codeparrot/github-code
a56866bedc299c186f4bf54bafb1ebff001e11cbbf319bd1463f67054bd52104
/* * Copyright 2014 The guava 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 __GUAVA_MODULE_H__ #define __GUAVA_MODULE_H__ #include "guava.h" #include "guava_router/guava_router.h" #include "guava_handler.h" #include "...
C
include/guava_module.h
StarfruitStack/guava
bsd-3-clause
1,661
104
codeparrot/github-code
b4462216086efd4312f0d501160b1710d2af00e42f4c2e2764cc0f1224c55440
<?php namespace backend\controllers; use Yii; use backend\models\User; use backend\models\UserSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * UserController implements the CRUD actions for User model. */ class UserController extends Controller { public funct...
PHP
backend/controllers/UserController.php
propensic7/propensic7
bsd-3-clause
3,069
122
codeparrot/github-code
a1fce3e4d39bfb9e23b6fa8da0bc6868cf69472558a54006b9a62114eed72c4d
package io.compgen.sjq.server; import io.compgen.common.MonitoredThread; import io.compgen.common.StringUtils; import io.compgen.common.TallyValues; import java.io.File; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Date; impo...
Java
src/java/io/compgen/sjq/server/ThreadedJobQueue.java
compgen-io/sjq
bsd-3-clause
10,125
415
codeparrot/github-code
c057598980688294d927f47f7f967b9e51837aa24522588f121aae1a88fa0dc7
/** * MOTECH PLATFORM OPENSOURCE LICENSE AGREEMENT * * Copyright (c) 2010-11 The Trustees of Columbia University in the City of * New York and Grameen Foundation USA. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
Java
motech-mobile-core/src/main/java/org/motechproject/mobile/core/model/GatewayRequestImpl.java
motech/MOTECH-Mobile
bsd-3-clause
11,499
363
codeparrot/github-code
99e774aea1abfa36444fdff247dcff392f534b4ebf015981f558e2ca71fbb4bc
package edu.utk.phys.fern; // ---------------------------------------------------------------------------------------------------------- // Example class for testing creation of a modally blocking dialog window. // Test by executing java MakeMyDialog. // -----------------------------------------------------------...
Java
src/edu.utk.phys.fern/edu/utk/phys/fern/MakeMyDialog.java
jayjaybillings/fern
bsd-3-clause
7,493
202
codeparrot/github-code
937ac15fa5a3a429da65b3a79eba683f0aaae89f18d0c71943cc41d0dc24c812
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_OZONE_PLATFORM_WAYLAND_HOST_ZWP_TEXT_INPUT_WRAPPER_V1_H_ #define UI_OZONE_PLATFORM_WAYLAND_HOST_ZWP_TEXT_INPUT_WRAPPER_V1_H_ #include <text-in...
C
ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.h
endlessm/chromium-browser
bsd-3-clause
4,052
107
codeparrot/github-code
c5ae9c9f40c4e19f31dbaf838347be62f8a6d918f35e3d3dca7bbb3695b55968
// This code (and its parent process in changes.js) is a Node.JS listener // listening to CouchDB's _changes feed, and is derived from // https://github.com/mikeal/node.couch.js and // http://dominicbarnes.us/node-couchdb-api/api/database/changes.html // It monitors when requests are submitted to: // (when configuring ...
JavaScript
node_changes_listeners/changes_listeners.js
DouglasHuston/rcl
bsd-3-clause
10,689
239
codeparrot/github-code
05551ae3ea58909e28ee2f86247266c9c47561bc0defbdea2408ee13db4605ea
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD Lic...
PHP
module/Vitucho/Module.php
texai/eczf2
bsd-3-clause
2,245
75
codeparrot/github-code
0c83dc1e2d8dac3d2e6aa0fc0520d6085441123ae061afe883608dfd6cefdcdf
/* $OpenBSD: fpu_subr.c,v 1.1 2001/09/08 22:33:51 jason Exp $ */ /* $NetBSD: fpu_subr.c,v 1.3 1996/03/14 19:42:01 christos Exp $ */ /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This software was developed by the Computer Systems Engineering group * at Lawr...
C
openbsd/sys/arch/sparc64/fpu/fpu_subr.c
MarginC/kame
bsd-3-clause
6,469
225
codeparrot/github-code
6c92c391cb4ba9044a01eae1017d3475adcd4201680233dcd9b4b88bb260be56
""" Module containing functions to differentiate functions using tensorflow. """ try: import tensorflow as tf from tensorflow.python.ops.gradients import _hessian_vector_product except ImportError: tf = None from ._backend import Backend, assert_backend_available class TensorflowBackend(Backend): def...
Python
pymanopt/tools/autodiff/_tensorflow.py
j-towns/pymanopt
bsd-3-clause
2,913
94
codeparrot/github-code
61049556b3ad5bcb403295e191bb7e7065a9ca85f9e07950c235ce64a116077e
// Copyright 2015 CoreOS, Inc. All rights reserved. // Use of this source code is governed by the BSD 3-Clause license, // which can be found in the LICENSE file. package sqlbuilder type Dialect interface { EscapeCharacter() rune InsertReturningClause() string Kind() string Name() *string } type genericDialect s...
GO
dialect.go
coreos/sqlbuilder
bsd-3-clause
1,212
62
codeparrot/github-code
850db57cdbd0c47b96240af2061c4c7abaefece573ea7677c613b306f5b9d1cf
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
JavaScript
public/javascripts/app_project/pdf/handleit_form.js
dandahle/Catalyst-AppVetting
bsd-3-clause
13,826
384
codeparrot/github-code
1f83abba606cd34c3661b29d267b17ff5931cf03ae98be83a6b0ef3311daf422
<?php /** * Objeto referente a la tabla de base de datos 'tipo_pregunta'. * * @author Emanuel Carrasco * @copyright * @license */ namespace Application\Model\Entity; /** * Define el objeto TipoPregunta y el intercambio de información con el hydrator. */ class TipoPregunta { private $tip_pre_id; pr...
PHP
module/Application/src/Application/Model/Entity/TipoPregunta.php
manucv/GestionProcesos
bsd-3-clause
1,727
83
codeparrot/github-code
f7876d7be6d173cc62f52b43533abbab89cbbb558c9370c8b68e86c8ce6d13b1
<?php namespace frontend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use frontend\models\Seccion; /** * SeccionSearch represents the model behind the search form about `frontend\models\Seccion`. */ class SeccionSearch extends Seccion { /** * @inheritdoc */ public functio...
PHP
frontend/models/SeccionSearch.php
MvegaR/proyecto
bsd-3-clause
1,592
69
codeparrot/github-code
7449b4b821eab4bbe92c4d1a25df3bea3d821ee83b36e08b4d83478f41443b1b
/* Generates contents of opcode switch from ip_spec.t Call is: mkswitch prefix ip_spec.t cases [ functions ] Note: The u flag has been implemented by just copying and adjusting the code for 2, which is almost identical to that for 4. When this has stabilized, combine. */ /* $Id$ */ #include <stdio.h> exter...
C
util/int/switch/mkswitch.c
Godzil/ack
bsd-3-clause
6,064
289
codeparrot/github-code
a7491be27b54e13b7bb4af831261d3e0fefc002fd676cf65f606c40ef32b308a
/** Copyright (c) 2017, Philip Deegan. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
C++
inc/kul/os/win/os.bot.hpp
mkn/mkn.kul
bsd-3-clause
4,047
139
codeparrot/github-code
fe73ea2401c7a24ae0e45600e9ec73018e6f88264db32aa7fff182e0e84462c1
package gov.samhsa.acs.pep.sts; import java.io.IOException; import javax.security.auth.callback.Callback; import javax.security.auth.callback.CallbackHandler; import javax.security.auth.callback.UnsupportedCallbackException; import org.apache.wss4j.common.ext.WSPasswordCallback; public class PasswordCallbackHandler...
Java
DS4P/access-control-service/pep-sts-war/src/main/java/gov/samhsa/acs/pep/sts/PasswordCallbackHandler.java
OBHITA/Consent2Share
bsd-3-clause
1,032
34
codeparrot/github-code
32371e44dd2dee05d3cee00c702e102ba3c1f362711ecdfbcfe38b66ed3b608f
package net.jr.jrc.utils; import java.io.*; import java.nio.channels.FileChannel; public final class IOUtils { private static final int DEFAULT_BUF_SIZE = 4096; public static InputStream readResource(String path) { return IOUtils.class.getClassLoader().getResourceAsStream(path); } public static InputS...
Java
src/main/java/net/jr/jrc/utils/IOUtils.java
jrialland/jrc
bsd-3-clause
1,929
68
codeparrot/github-code
5eb4bf89b7520ae7575ac0259f451e0e738e57de8aa91fe7d9f2fbcd340aec2e
{-| Module : AERN2.Utils.Bench Description : utilities for benchmarks Copyright : (c) Michal Konecny License : BSD3 Maintainer : mikkonecny@gmail.com Stability : experimental Portability : portable -} module AERN2.Utils.Bench ( listFromGen ) where -- import Test.Qu...
Haskell
aern2-mp/src/AERN2/Utils/Bench.hs
michalkonecny/aern2
bsd-3-clause
718
34
codeparrot/github-code
da4b6c7d802210f35b95d97a6a62542b798c432cab6cec55df53d4e9409e0593
/* Copyright (c) 2008-2013, Northwestern University 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 a...
C
AIMToolkit_v4.1.0_rv44/source/AIMLib/AIMXML/type_iso.CBAG_INT_NonNeg.h
NCIP/annotation-and-image-markup
bsd-3-clause
2,443
62
codeparrot/github-code
feeab7f64f193025643c66c500adb2fa52f15c8fb81d7a00d3927ed59c4daf07
/* * Copyright (c) 2008,2009, Yale Laboratory of Networked Systems * 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...
C
portal/server/src/admin/admin_state.h
Yale-LANS/ALTO
bsd-3-clause
5,739
191
codeparrot/github-code
702081086cc53f7682f5616aedc479354ef4dc82ea295e5b86ea4d9f02cc6336
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/performance_manager/persistence/site_data/site_data_reader.h" #include <utility> #include "base/bind.h" #include "base/callback.h" ...
C++
components/performance_manager/persistence/site_data/site_data_reader.cc
endlessm/chromium-browser
bsd-3-clause
1,726
54
codeparrot/github-code
e0ba539285e7072cbd7caf7694d17e4512be64cd389c411ad130d2d9fe73930e
<?php /** * Created by PhpStorm. * User: ROMAN * Date: 24.03.2016 * Time: 21:21 */ namespace Auth\GoogleClient; //use Auth\GoogleClient\GoogleRequest; class GoogleUtils { public $token; public function setToken($token) { $this->token = $token; } public function getCustomerInfo() ...
PHP
module/Auth/src/Auth/GoogleClient/GoogleUtils.php
nfsmostroman/zendp
bsd-3-clause
521
34
codeparrot/github-code
240376769e678f6008586aa4e052130ef8fe30090600f537c3e3143bf9e853dc
/* * 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++
third_party/webrtc/video_engine/test/auto_test/primitives/base_primitives.cc
leighpauls/k2cro4
bsd-3-clause
2,617
68
codeparrot/github-code
c169069a3fa38f7ce136774affb2d3af2805e3718efd769472209c4b9a6c881e
""" Given a positive integer n and you can do operations as follow: If n is even, replace n with n/2. If n is odd, you can replace n with either n + 1 or n - 1. What is the minimum number of replacements needed for n to become 1? Example 1: Input: 8 Output: 3 Explanation: 8 -> 4 -> 2 -> 1 Example 2: Input: 7 Out...
Python
python/integer_replacement.py
shub0/algorithm-data-structure
bsd-3-clause
763
48
codeparrot/github-code
ebded8eafd0a6aaa7f05ca6dd6e2cba64215efb5069fc3647c563858538ac5af
/******************************************************************************* * Tree container */ ul.dynatree-container, #content ul.dynatree-container { font-family: tahoma, arial, helvetica; font-size: 10pt; /* font size should not be too big */ white-space: nowrap; padding: 3px; margin: 0; /* iss...
CSS
src/collective/dynatree/jquery.dynatree/skin/ui.dynatree.css
collective/collective.dynatree
bsd-3-clause
10,305
442
codeparrot/github-code
d0f5089de2dcffd2b858af055c7f85eabf62b367cdcdd091abe6a15b56654e51
<?php /* Copyright (c) 2012, Kimo Rosenbaum and contributors 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...
PHP
php/v2/classes/output.php
kimor79/api_producer
bsd-3-clause
6,115
261
codeparrot/github-code
cafd1cd5588939bd38f9947a9347f22a980e9f43ca453eecbd04ddb68a319d32
/** * Copyright (c) 2015, Facebook, Inc. All rights reserved. * * Facebook, Inc. ("Facebook") owns all right, title and interest, including * all intellectual property and other proprietary rights, in and to the React * Native CustomComponents software (the "Software"). Subject to your * compliance with these t...
JavaScript
Libraries/CustomComponents/ListView/ListView.js
philonpang/react-native
bsd-3-clause
21,129
614
codeparrot/github-code
d9803fa9bd56934b4c774c67a865c7d759749ca6849048fc09006050e6ef7a08
/** * Copyright (c) 2013, Sony Mobile Communications 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 * notic...
Java
logdog/src/logdog/logdog.java
sonyxperiadev/logdog
bsd-3-clause
4,250
102
codeparrot/github-code
540ca0f88c856ddae3a692157849198fae13e0634766b6ad132a0c9de54ebdf2
/* ========================================================================= */ /* ------------------------------------------------------------------------- */ /*! \file template.c \date March 2014 \author Nicu Tofan \brief implementation of a template */ /* --------------------------------------...
C
logic/template.c
TNick/xpotepu
bsd-3-clause
3,220
135
codeparrot/github-code
1a88980898aff20f7ebbcc387ec005ec7e171cf19e405c7432ac52e7a1429d08
<?php namespace Localizapet\Model; class Registro { /** * @var int */ public $id; /** * @var string */ public $nome; /** @var string */ public $sexo; /** @var string */ public $detalhes; /** @var string */ public $foto; /** @var \Localizapet\Model...
PHP
module/Localizapet/src/Model/Registro.php
igorbarato/localizapet
bsd-3-clause
5,469
319
codeparrot/github-code
c0670d4fca0863bc4ff3356ed5078d51443f7b44b6b1541faa3c226baaad8f71
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2011 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software consists...
Python
babel/messages/extract.py
mbr/Babel-CLDR
bsd-3-clause
22,451
551
codeparrot/github-code
90533f76b18318282b8afd832dba1e70bfee3d2b7307f818cb4dd3a067bc3f35
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2021 Ben Vanik. All rights reserved. ...
C++
src/xenia/kernel/xam/apps/xgi_app.cc
sephiroth99/xenia
bsd-3-clause
5,605
144
codeparrot/github-code
ed316b2f3cc15c72075a8d55c812f81ebc9df3aedb28c6c96e3a57cc2ee147c8
/* * Copyright (c) 2010-2011 The Regents of The University of Michigan * 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 * not...
C++
src/cpu/inorder/resource_sked.hh
koparasy/faultinjection-gem5
bsd-3-clause
8,559
280
codeparrot/github-code
beb21099b78beeb78927bea786d283919b774da149750bf88ae00a7b63b4c93a
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>operator == method - KId class - hetimatorrent.dht library - Dart API</title> <!-- required because all the...
HTML
doc/api/hetimatorrent.dht/KId/operator_equals.html
kyorohiro/dart_hetimatorrent
bsd-3-clause
8,651
201
codeparrot/github-code
bb9bb016cee5c6c85c5adf532cefa4b4abfb6cd218fbdea7f913c6dd1fe66370
<?php namespace app\models\forms; use Yii; use yii\base\Model; use app\models\User; /** * Password reset request form */ class PasswordResetRequestForm extends Model { public $email; /** * @inheritdoc */ public function rules() { return [ ['email', 'trim'], ...
PHP
models/forms/PasswordResetRequestForm.php
AdeAttwood/Yii2-Basic-Grunt
bsd-3-clause
1,658
68
codeparrot/github-code
fb4dc7f49a830acaa5ecdcea24bf111a303f33edc1518726835aa244f1f4fdd6
using System.Linq; using FasterTests.Core.Interfaces; using FasterTests.Core.Interfaces.Integration; namespace FasterTests.Core { public class TestRunnerBootstrapper : ITestRunnerBootstrapper { private readonly string _testAssemblyPath; private readonly ITestInspector _testInspector; p...
C#
Source/Core/TestRunnerBootstrapper.cs
devoyster/FasterTests
bsd-3-clause
1,300
37
codeparrot/github-code
c526bf26a679b88c6ec007492b54bdc65d0cf5759be6206c5081b33fce5df518
package kr.ac.kaist.jsaf.nodes; import java.lang.Double; import java.lang.String; import java.math.BigInteger; import java.io.Writer; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.ArrayList; import java.util.LinkedList; import kr.ac.kaist.jsaf.nodes_util.*; import kr.ac.ka...
Java
src/main/java/kr/ac/kaist/jsaf/nodes/Expr.java
darkrsw/safe
bsd-3-clause
1,092
42
codeparrot/github-code
7475ed2286bdbbc7beac27dfbf13d63e490fad9fc3b881fd5542fac110c21ca5
(function () { "use strict"; var Pos = CodeMirror.Pos; function getHints(cm, options) { var tags = options && options.schemaInfo; var quote = (options && options.quoteChar) || '"'; if (!tags) return;// logO(tags, 'tags');//gets tags from schema (html in this case) ...
JavaScript
lib/CodeMirror_Custom/addon/hint/xml-hint.js
webpadonline/webpadonline.github.io
bsd-3-clause
4,423
86
codeparrot/github-code
4593a8ef2e83236cd07d51d02e8b02d0def5818ed8f941b846f61c9ea95a6144
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
C
third_party/protobuf/src/google/protobuf/stubs/mathlimits.h
youtube/cobalt
bsd-3-clause
10,887
283
codeparrot/github-code
1c8ec587b62b670bb3587ecebda46a2b84b380424f8e17c0d73614450239d8b7
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/THLapack.c" #else void THLapack_(gesv)(int n, int nrhs, real *a, int lda, int *ipiv, real *b, int ldb, int* info) { #ifdef __LAPACK__ #if defined(TH_REAL_IS_DOUBLE) extern void dgesv_(int *n, int *nrhs, double *a, int *lda, int *ipiv, double *b, int *ldb, int ...
C
libraries/TH/generic/THLapack.c
soumith/TH
bsd-3-clause
2,805
67
codeparrot/github-code
1d418cb78555b8aaa43eea84bd2f32d07af885c84c325b42e098f3b37a6e8044
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Zend Framework API Documentation</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta><link rel="stylesheet" href="css/black-tie/jquery-ui-1.8.2.custom.css" type="text/css"></link><link rel="stylesheet" href="css/jquery.treeview.css" ty...
HTML
documentation/api/core/db_Db_Adapter_Pdo_Pgsql.html
wukchung/Home-development
bsd-3-clause
84,064
2,291
codeparrot/github-code
ab9cfb22ea1507a1c201dcf473c34478120f319d0181a362f926f587db93211d
class StoriesController < ApplicationController before_filter :require_logged_in_user_or_400, :only => [ :upvote, :downvote, :unvote, :hide, :unhide, :preview ] before_filter :require_logged_in_user, :only => [ :destroy, :create, :edit, :fetch_url_title, :new ] before_filter :find_user_story, :only => [...
Ruby
app/controllers/stories_controller.rb
cannikin/lobsters
bsd-3-clause
7,334
312
codeparrot/github-code
df017435042ff919d34788b4c643aaa4d6a02cb51134f8c807d73310483f31de
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_WEB_APPLICATIONS_PENDING_APP_MANAGER_IMPL_H_ #define CHROME_BROWSER_WEB_APPLICATIONS_PENDING_APP_MANAGER_IMPL_H_ #include <memory>...
C
chrome/browser/web_applications/pending_app_manager_impl.h
endlessm/chromium-browser
bsd-3-clause
3,561
112
codeparrot/github-code
c5e37925fc5e1291d45749930d66a943279f793caee71c61fb7091d0fd32be7d
C Copyright(C) 2009-2017 National Technology & Engineering Solutions of C Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with C NTESS, the U.S. Government retains certain rights in this software. C C Redistribution and use in source and binary forms, with or without C modification, are permitted provid...
FORTRAN
packages/seacas/applications/blot/grinit.f
nschloe/seacas
bsd-3-clause
9,826
280
codeparrot/github-code
d2a79cff4fbd1663704ea29205393a9b720a05f6e9de0a4597ba2f8d34a0056e
#include "server.h" int ConvertNumberToString(int num,char *str) { if (num==0) { str[0]='0'; // str[1]='0'; return 1; } if (num<0) { str[0]='-'; num=-num; } else { str[0]='+'; } int broj_zn=0,num1=num; while (num1>0) { num1=num1/16; broj_zn++; } int i; for (i=broj_zn-1;i>=0;i--) { if (...
C++
c++/examples/nav350/nav350_server/src/server.cc
punithm/sicktoolbox
bsd-3-clause
26,876
1,296
codeparrot/github-code
aba1f12a7525052ff2071ab48cc8c2eba40e54b915e959df2d5d1e105c7124c8
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/status/network_menu_icon.h" #include <algorithm> #include <cmath> #include <map> #include <utility> #include "base...
C++
chrome/browser/chromeos/status/network_menu_icon.cc
leighpauls/k2cro4
bsd-3-clause
31,767
969
codeparrot/github-code
aa2963b5a738854f252e93b8b6671b594f586c33b0174ddfcdc9417c74780e81
/* ECE-C433 Project 2 * Part 1b * Author: Sean Barag */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #include <pcap/pcap.h> void main() { /* check for root uid :) */ if( getuid() != 0 ) { fprintf(stderr, "...
C
proj2/p1b.c
sjbarag/ECE-C433
bsd-3-clause
2,204
94
codeparrot/github-code
2737635a9b0f5d3b18457ff218dc3f872112a21dfdc0253f5097521e16d486c7
/**************************************************************************** ** Meta object code from reading C++ file 'qtesteventloop.h' ** ** Created: Mon 26. Nov 09:22:32 2012 ** by: The Qt Meta Object Compiler version 63 (Qt 4.8.4) ** ** WARNING! All changes made in this file will be lost! *******************...
C++
src/3rdparty/Qt4.8.4/src/testlib/tmp/moc/debug_shared/moc_qtesteventloop.cpp
kzhong1991/Flight-AR.Drone-2
bsd-3-clause
2,867
95
codeparrot/github-code
02053c165e265b7ef40f32a29318ceb385ac61ee451cf993c4a2524ffbe4972e
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <ABI44_0_0React/ABI44_0_0renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropShadowNode.h> ...
C
ios/versioned-react-native/ABI44_0_0/ReactNative/ReactCommon/react/renderer/components/legacyviewmanagerinterop/ABI44_0_0LegacyViewManagerInteropComponentDescriptor.h
exponentjs/exponent
bsd-3-clause
1,207
39
codeparrot/github-code
aeb5ca4aa2201be12d8af532d1ad4df4da8701928e6bc38b210bc05bde924bac
#include "FilterByProbe.h" #include "ProbeEvents.h" #include "ProbeGlCalls.h" #include "mmcore/CoreInstance.h" #include "mmcore/EventCall.h" #include "mmcore_gl/FlagCallsGL.h" #include "mmcore_gl/utility/ShaderSourceFactory.h" #include "probe/CallKDTree.h" #include "probe/ProbeCalls.h" #include "probe/ProbeCollection...
C++
plugins/probe_gl/src/FilterByProbe.cpp
UniStuttgart-VISUS/megamol
bsd-3-clause
17,339
437
codeparrot/github-code
096b25279fa526dd97274e32032177ead711f38cfe6a4f3230388d53ee5a1da5
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from parlai.core.agents im...
Python
parlai/agents/rnn_baselines/seq2seq.py
calee88/ParlAI
bsd-3-clause
10,385
294
codeparrot/github-code
c00b91a09b4a69c079b95e79f67b0773377edd9abf0c9af0fb722289380c2752
#!/usr/bin/env python # -*- coding: utf-8 -*- # This software is under a BSD license. See LICENSE.txt for details. from datatank_py.DTStructuredGrid2D import DTStructuredGrid2D, _squeeze2d import numpy as np class DTStructuredMesh2D(object): """2D structured mesh object. This class corresponds to DataT...
Python
datatank_py/DTStructuredMesh2D.py
amaxwell/datatank_py
bsd-3-clause
4,176
112
codeparrot/github-code
e8a42724d7c6673026decd013f663cada64aae3c3358c09ddc4e4f23b2a67e5d
/** * This file is the event bus demo **/ // Global namespace var EventBus = (function() { var // List of optional events events = {}, // Reference to the last fired event lastEvent, domNodes = [] ; function init() { domNodes['create-name'] = document.qu...
JavaScript
WorkingDemo/js/EventBus_solution.js
nirgeier/EventBus
bsd-3-clause
3,985
171
codeparrot/github-code
35b14bd105fae281c6dff75a2e20667a53350c6aca71067ca3e2790b59e89702
/****************************************************************************** * Copyright 2014-2014 Chenchen Xu. All rights reserved. * See the full license in License.txt. ******************************************************************************/ using System; using System.Collections.Generic; using Sys...
C#
FlappyMagi/FlappyMagi/Magi.cs
verashira/FlappyMagi
bsd-3-clause
7,308
225
codeparrot/github-code
7797cc9441b34b520c736e084d94a562acadf1020d4924ccd45bb57603042419
<?php namespace Dingo\Api\Provider; use Dingo\Api\Routing\Router; use Dingo\Api\Routing\UrlGenerator; use Dingo\Api\Routing\ResourceRegistrar; class RoutingServiceProvider extends ServiceProvider { /** * Register the service provider. * * @return void */ public function register() { ...
PHP
src/Provider/RoutingServiceProvider.php
behzadsh/api
bsd-3-clause
1,539
65
codeparrot/github-code
30697c1e57bd8fff647bf5d5d762a80e95ecf078a820d6301d56e21ab4ca3e1a
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2012, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
C
moveit_experimental/kinematics_cache/v2/kinematics_cache/include/moveit/kinematics_cache/kinematics_cache.h
v4hn/moveit
bsd-3-clause
8,117
187
codeparrot/github-code
0ed82bc005ddb4b9a9f53a038053a630e1e64d5916efea28a1d368e2285017e8
// 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 "ui/views/controls/scrollbar/overlay_scroll_bar.h" #include <memory> #include "base/bind.h" #include "base/i18n/rtl.h" #include "base/macros.h"...
C++
ui/views/controls/scrollbar/overlay_scroll_bar.cc
nwjs/chromium.src
bsd-3-clause
7,033
201
codeparrot/github-code
548aba42f43126a2a0410034d47e3fd7fdff8ce442fc194d211fa5293e6230b4
<?php /* * This file is part of prooph/proophessor. * (c) 2014-2015 prooph software GmbH <contact@prooph.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Date: 5/2/15 - 5:58 PM */ namespace Application\Model\Todo; use Applic...
PHP
module/Application/src/Application/Model/Todo/PostTodoHandler.php
prolic/proophessor-do
bsd-3-clause
1,440
61
codeparrot/github-code
26f8fca149e81c6e1281ac0af9c72b87ee441fbe24a92d2d31c37851555b41f4
package de.bwaldvogel.mongo.backend.postgresql; import static de.bwaldvogel.mongo.backend.TestUtils.json; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import java.util.Arrays; import java.util.Collections; import java.util.UUID; import org.bson.Document; import org.junit.jupiter.api.After...
Java
postgresql-backend/src/test/java/de/bwaldvogel/mongo/backend/postgresql/PostgresqlBackendTest.java
bwaldvogel/mongo-java-server
bsd-3-clause
9,876
299
codeparrot/github-code
026a1acdd7deec6b50f8757ff808dbed271d55e40aa79a9f209ef4efe2c29b92
import errno import os import shutil def mkdir(path, mode=0o777, exist_ok=False): try: os.mkdir(path, mode) except OSError as e: if not exist_ok or e.errno != errno.EEXIST or not os.path.isdir(path): raise def makedirs(path, mode=0o777, exist_ok=False): try: os.makedi...
Python
doppel/__init__.py
jimporter/doppel
bsd-3-clause
1,483
59
codeparrot/github-code
62dfc81318d628892893f433c3b52b59f735fa06d8bbdf352ad35398c3bb9758
# -*- coding: utf-8 -*- from django.contrib import admin from django.core.urlresolvers import reverse from vkontakte_api.admin import VkontakteModelAdmin from .models import Album, Video class VideoInline(admin.TabularInline): def image(self, instance): return '<img src="%s" />' % (instance.photo_130,) ...
Python
vkontakte_video/admin.py
ramusus/django-vkontakte-video
bsd-3-clause
1,550
50
codeparrot/github-code
b45b7294924659267e0679cc57e4594867b520f7e427275dd3973a568203a02d
/*********************************************************************************************************************** ** ** 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...
C
Comments/src/items/VCommentDiagram.h
patrick-luethi/Envision
bsd-3-clause
4,213
98
codeparrot/github-code
6da588f5937388e9da7224ef0087af166ce0e70bf1289ef1f200335e69a500ed
/** * Copyright (C) 2004-2016, GoodData(R) Corporation. All rights reserved. * This source code is licensed under the BSD-style license found in the * LICENSE.txt file in the root directory of this source tree. */ package com.gooddata.gdc; import static com.gooddata.util.Validate.notNull; import com.github.sardin...
Java
src/main/java/com/gooddata/gdc/GdcSardine.java
liry/gooddata-java
bsd-3-clause
1,163
39
codeparrot/github-code
6bdf2d9f3be159215aa45d37ed63a72bd4813c8ba4d2fe864deafd78dfa5614a
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/clipboard/clipboard_ozone.h" #include <limits> #include <utility> #include "base/bind.h" #include "base/containers/flat_map.h" #includ...
C++
ui/base/clipboard/clipboard_ozone.cc
endlessm/chromium-browser
bsd-3-clause
20,249
567
codeparrot/github-code
9fd94225efee5d44b009c913eb4a265b4d109a2cbeaedf62f552a39aa20239a4
/* * Copyright (c) 2016, 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: * * 1. Redistributions of source code must retain the above copyright notice, * this list of c...
Java
ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/DefaultAlertService.java
xizi-xu/Argus
bsd-3-clause
42,930
1,132
codeparrot/github-code
231e6f57460777e71fec76fafc35f609ae1eefee49e352e38880dae39f155818
<?php namespace common\models; use Yii; use DateTime; /** * This is the model class for table "group_semesters". * * @property integer $id * @property integer $group_id * @property integer $semester_number * @property integer $begin_date * @property integer $end_date */ class GroupSemesters extends \yii\db\Ac...
PHP
common/models/GroupSemesters.php
umninchi/site-for-pm
bsd-3-clause
2,190
82
codeparrot/github-code
c1e825645a3acdc78ae56ff35daf4e12525a65fa777ba46b366c1e18d0c7ab63
<?php namespace Netsensia\Service; use Zend\Db\TableGateway\TableGateway; use Zend\Db\Sql\Select; use Netsensia\Exception\NotFoundResourceException; class CommentsService extends NetsensiaService { private $articleCommentsTable; public function __construct( TableGateway $articleCommentsTable ) ...
PHP
module/Netsensia/src/Netsensia/Service/CommentsService.php
Netsensia/directorzone
bsd-3-clause
2,539
93
codeparrot/github-code
e6305f4f52bdb00b901b7d21438fb5599a54523b2ccf02d5b6ca9b0bc90d4431
@ECHO OFF REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) set BUILDDIR=_build set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . set I18NSPHINXOPTS=%SPHINXOPTS% . if NOT "%PAPER%" == "" ( set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% set I18N...
Batchfile
docs/make.bat
jeremy-c/unusualbusiness
bsd-3-clause
5,114
191
codeparrot/github-code
e921118003152fbe7733129216db94f7e1e85cc65776f23f187c335b9d23b630
/* * 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 above copyright * notice, this list of conditio...
C
third_party/blink/renderer/core/inspector/inspector_css_agent.h
scheib/chromium
bsd-3-clause
16,941
401
codeparrot/github-code
13a2565d4cdebb21fc679a8dcc9dd560b0475a27398185b68c86f23e60b76148
#ifndef INSTANCE_H #define INSTANCE_H #include "ECStd.hpp" #include "Graphics.hpp" #include "InputMan.hpp" class Instance { bool _running; public: const uint WIDTH = 1024, HEIGHT = 768; SDL_Surface* surface; InputMan* in; Bitmap* screen; Instance(); virtual ~Instance();...
C++
include/Instance.hpp
Exeter-College-Game-Development/ECGame
bsd-3-clause
898
46
codeparrot/github-code
d117138d798c87fb3fe18bc2df67e52c39ee2214b95c7060982cdb0d42cbe613
/* * Copyright 2019 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "src/core/SkCanvasPriv.h" #include "src/gpu/GrCaps.h" #include "src/gpu/GrDirectContextPriv.h" #include "src/gpu/GrGeometryProcessor.h" #include "...
C++
third_party/skia_next/third_party/skia/gm/tessellation.cpp
youtube/cobalt
bsd-3-clause
16,729
415
codeparrot/github-code
905fa93a5ef9bee07df300bcd4f3ef578b764d6176a3ee90e7bdad1be6aa4512
""" This scripts compares the autocorrelation in statsmodels with the one that you can build using only correlate. """ import numpy as np import matplotlib.pyplot as plt import scipy.signal as signal import statsmodels.api as sm from signals.time_series_class import MixAr, AR from signals.aux_functions import sidekick...
Python
examples/auto_correlations_compare.py
h-mayorquin/time_series_basic
bsd-3-clause
1,897
89
codeparrot/github-code
1e6c8b320ea05148dd111315756b170b2d3b1456e066437668a9fd1227f924d2
/***************************************************************************** Copyright (c) 2011, Intel Corp. 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 cod...
C
lapack-3.4.0/lapacke/src/lapacke_dbbcsd_work.c
jmfranck/pyspecdata
bsd-3-clause
8,662
201
codeparrot/github-code
d85c942c7b4630405de1403f932274a893f3e27e63f3f738dbe623206fa4f672
/* Copyright (c) 2012-2013, AOYAMA Kazuharu * All rights reserved. * * This software may be used and distributed according to the terms of * the New BSD License, which is incorporated herein by reference. */ #include <TBson> #include <QDateTime> #include <QRegExp> #include <QStringList> #include <QAtomicInt> #inc...
C++
src/tbson.cpp
seem-sky/treefrog-framework
bsd-3-clause
8,567
341
codeparrot/github-code
3efc16e4fc6c14616291f4d57c4899d50fb6043d3e9688eb79a135fe4a028ba1
C Copyright(C) 2011-2017 National Technology & Engineering Solutions of C Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with C NTESS, the U.S. Government retains certain rights in this software. C C Redistribution and use in source and binary forms, with or without C modification, are permitted provid...
FORTRAN
packages/seacas/applications/grepos/gp_movnd2.f
nschloe/seacas
bsd-3-clause
4,843
130
codeparrot/github-code
7d91dd952c9fba1ab12e30ac1ae53a3c410571087c2bcf77bf8b3b75da54fe40
/*Copyright (c) 2011, Mathieu Bordas 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 following d...
Java
src/main/java/qualify/doc/DocImage.java
mbordas/qualify
bsd-3-clause
1,767
33
codeparrot/github-code
b42dae9b2dfb1d795250bca5ed32e30d3b4c93874b1822f160a8feb4d9bb3dd8
// Copyright 2019 The Cobalt 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 ap...
C
starboard/elf_loader/relocations.h
youtube/cobalt
bsd-3-clause
2,640
95
codeparrot/github-code
a6c3a358127ae269b485610fb1eb7512abeb6b4c739a85beaf3bbc80b6a61cd6
<!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="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <t...
HTML
0.9.0/generated/statsmodels.discrete.count_model.ZeroInflatedNegativeBinomialResults.set_null_options.html
statsmodels/statsmodels.github.io
bsd-3-clause
8,501
162
codeparrot/github-code
3a571b0cb244d259fb9d9c6b6f5a9b54a0ce2954ddc614133f7da1184a355607
<?php namespace frontend\controllers; use Yii; use yii\base\InvalidParamException; use yii\web\BadRequestHttpException; use yii\web\Controller; use yii\filters\VerbFilter; use yii\filters\AccessControl; use common\models\LoginForm; use frontend\models\PasswordResetRequestForm; use frontend\models\ResetPasswordForm; us...
PHP
frontend/controllers/SiteController.php
Meloyan/bank-test
bsd-3-clause
5,276
215
codeparrot/github-code
72da24bcbe2c3b8a54e6b875ac695ebba991fc24a8b80bab8bf99cad8becec69
-- | The type of cave kinds. Every level in the game is an instantiated -- cave kind. module Game.LambdaHack.Content.CaveKind ( pattern DEFAULT_RANDOM , CaveKind(..), InitSleep(..), makeData #ifdef EXPOSE_INTERNAL -- * Internal operations , validateSingle, validateAll, mandatoryGroups #endif ) where import...
Haskell
definition-src/Game/LambdaHack/Content/CaveKind.hs
LambdaHack/LambdaHack
bsd-3-clause
7,660
149
codeparrot/github-code
bd555f1d9ccfd5ed3bb51517ed54b454994aa2aca25173ec3971cf994718de48
// Copyright 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. #include "core/paint/SVGClipPainter.h" #include "core/dom/ElementTraversal.h" #include "core/layout/svg/LayoutSVGResourceClipper.h" #include "core/layout...
C++
third_party/WebKit/Source/core/paint/SVGClipPainter.cpp
highweb-project/highweb-webcl-html5spec
bsd-3-clause
5,251
128
codeparrot/github-code
f5d5b82ab786db75937f30c1e3e797696ce71485945cafa1fcb22f21b0ffefef
// Copyright(C) 1999-2017 National Technology & Engineering Solutions // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with // NTESS, the U.S. Government retains certain rights in this software. // // Redistribution and use in source and binary forms, with or without // modification, are permitted p...
C
packages/seacas/libraries/ioss/src/Ioss_Quad6.h
nschloe/seacas
bsd-3-clause
3,289
82
codeparrot/github-code
d5657fcf1b3423b3841ac0621b4e23b42cccf6d38b86424340ab030528bcdde4
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>statsmodels.genmod.cov_struct.Nested.initialize &#8212; statsmodels v0.10.0 documentation</title> <link rel="stylesheet" href="../_static/nature.css" type="text/css" /> <link rel="stylesheet" href=".....
HTML
v0.10.0/generated/statsmodels.genmod.cov_struct.Nested.initialize.html
statsmodels/statsmodels.github.io
bsd-3-clause
7,928
173
codeparrot/github-code
f7d0858848297d02584a503bb191651397b7dcf0d5278d54223e95cf6cd6cb80
# # init_lib.py # # functions for initialization # from aws_lib import SpinupError import base64 from boto import vpc, ec2 from os import environ from pprint import pprint import re import sys import time from yaml_lib import yaml_attr def read_user_data( fn ): """ Given a filename, returns the file's co...
Python
susecon2015/init_lib.py
smithfarm/ceph-auto-aws
bsd-3-clause
9,277
309
codeparrot/github-code
6974b2cda15de880d050dc81ed5f374063c8431dd81be4bb5e9f7ce1d549e2cf
using System.Collections.Generic; namespace PaintingCode.DotNetEmailTemplater.Entities { public class EmailScope { public EmailScope() { HtmlEmailBody = string.Empty; PlainEmailBody = string.Empty; Subject = string.Empty; BooleanLogics = new List<BooleanLogic>(); StringVariables = new List<String...
C#
DotNetEmailTemplater/Entities/EmailScope.cs
Xaniff/DotNetEmailTemplater
bsd-3-clause
2,175
93
codeparrot/github-code
169ad0354ab85a18fff5ef9661a44c7aa8ebdd6b301112677b3d661967d97cac
// decrypt is a tiny utility that can decrypt Pond detachments given the key // file. The key file can be saved to disk from within the main Pond client. // Later the bulk of the data, transported by other means, can be decrypted // with this utility. (Or the main Pond client itself.) package main import ( "errors" ...
GO
decrypt/decrypt.go
ioerror/pond
bsd-3-clause
2,409
120
codeparrot/github-code
5060cb45c1ac27a805f08ee5306c4fb46eb78968be5f13de5f76b169eda2ca50
#ifndef _FEEDFORWARD_H_ #define _FEEDFORWARD_H_ #include <vector> #include "Layer.hpp" #include "Loss.hpp" #include "types.hpp" class FeedForward { public: FeedForward(const std::vector<Layer *> &layervec, Loss *lf); virtual ~FeedForward(); void save(std::ostream &os); void load(std::istream &is); void tr...
C++
include/nnet/FeedForward.hpp
henrygouk/nnet
bsd-3-clause
926
37
codeparrot/github-code
aacd6b81753c71fb31aab41fe07ce1b422f5d9f9ddb93374342a1f819c6dc6fc
package apollo.gui.genomemap; import java.awt.Graphics; import java.util.Vector; import apollo.gui.Selection; import apollo.gui.TierManagerI; import apollo.gui.Transformer; public interface FeatureTierManagerI extends TierManagerI { public void synchDrawablesWithTiers(); public String getTierLabel(int tier_num...
Java
src/java/apollo/gui/genomemap/FeatureTierManagerI.java
genome-vendor/apollo
bsd-3-clause
893
37
codeparrot/github-code
d611c549f74507dcaacca666d53838984803032e26340b2ed4d58e94046e4e83
// Copyright 2017 Mattias Pernhult. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package goiaf // TODO: add functionality for cache headers import ( "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "strconv" "strings" "time...
GO
client.go
MattiasPernhult/goiaf
bsd-3-clause
5,486
238
codeparrot/github-code
4c63e128cece3a6ce458daf28cad655072daed785b3011cccbd6c650ace9ff7a
var notificationschema = require('../model/notification_model.js'); var mailer = require('./mail.js'); // Mail Functionality var app = require('express')(); var server = require('http').Server(app); var io = require('socket.io')(server); var protocol = 'http'; // Response Function var sendR...
JavaScript
api/notification.js
rihbyne/notification-wallet
bsd-3-clause
9,387
272
codeparrot/github-code
f9c5760e9d9335118e747964efbb4331ce27daf8e1f58a78b7827c9b8e8d4031
<?php namespace app\models; use app\components\ActiveRecord; /** * @property int $id * @property int $id_menu * @property string $title * @property string $redirect * @property int $position * @property int $placement * @property array $params */ class MenuItem extends ActiveRecord { const PLACEMENT_BEFO...
PHP
models/MenuItem.php
grnrbt/grass
bsd-3-clause
2,484
140
codeparrot/github-code
65112bac1f6308083722774b368b83c501bf41cc4688e8b3535ff3fe65ff1b63
// 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 "components/autofill/core/browser/autofill_profile.h" #include <algorithm> #include <functional> #include <map> #include <ostream> #include <set...
C++
components/autofill/core/browser/autofill_profile.cc
Workday/OpenFrame
bsd-3-clause
36,304
1,035
codeparrot/github-code