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
c64226500cc1275fa729b2cff3901a176b2fd512cd210a5c64951e8a52f4a36a
<?php namespace Avantinternet\Generators\Console; use Illuminate\Console\Command; use Avantinternet\Generators\FormGenerator; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; class FormCommand extends Command { /** * The name of command. * * @var ...
PHP
Console/FormCommand.php
Avantinternet/generators
bsd-3-clause
1,245
63
codeparrot/github-code
f3fe090b2e92a3b5aace684a2954b698b59a25cbfc0bc6475ef95c7c7be1592e
package com.mygdx.game; import com.badlogic.gdx.ApplicationAdapter; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; public class MyGdxGame extends ApplicationAda...
Java
my-gdx-game/core/src/com/mygdx/game/MyGdxGame.java
jdeyton/Sandbox
bsd-3-clause
2,178
87
codeparrot/github-code
7958a11ad65fd6b0f4fa5d7009661ecee86ed0d19381b036ccded4119f6bf11e
// 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 "base/json/json_reader.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string_number_conversions.h" #...
C++
components/autofill/browser/wallet/full_wallet_unittest.cc
loopCM/chromium
bsd-3-clause
16,262
506
codeparrot/github-code
270ba0f50c72d1e5c205b810e9380302df4f138237c9cd81fe83e660e6cc2cc5
from __future__ import unicode_literals import sys import os import re import mimetypes from copy import copy from importlib import import_module from io import BytesIO from django.conf import settings from django.contrib.auth import authenticate, login, logout, get_user_model from django.core.handlers.base import Ba...
Python
django/test/client.py
ericholscher/django
bsd-3-clause
22,448
600
codeparrot/github-code
769d5f52f7e9ca9a0fa1d10bf96efda6e2bd6f25811d060ee98e516505c76f6c
require 'dbm' class ScrapeCache def initialize @databases = Hash.new { |dbs, namespace| dbs[namespace] = DBM.open(namespace + "_2014") } end def put(namespace, key, value) if value.nil? puts "NULL PUT: #{key}" elsif (value.include?("Votre session n'est pas valide")) puts "INVALID PUT: #{k...
Ruby
lib/cache.rb
elecnix/evalmtl
bsd-3-clause
802
34
codeparrot/github-code
93134fd581d98a0916c8038c2a9bc1cc7c68845985a0bcfc650e45863f0146fc
# Author: Kratarth Goel # BITS Pilani (2014) # LSTM-RBM for music generation import sys import os import tables import tarfile import fnmatch import random import numpy import numpy as np from scipy.io import wavfile import theano import theano.tensor as T from theano.tensor.shared_randomstreams import RandomStreams f...
Python
speech_lstmrbm.py
kastnerkyle/speech_density
bsd-3-clause
18,687
470
codeparrot/github-code
fae77872250b2f17bc581d4ced14d76caa18751915b3337fba9af1a4ad9dda7a
/* * Copyright (c) 2004-2021, 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 notice, this * list o...
Java
core/src/main/java/org/hisp/dhis/android/core/indicator/IndicatorTypeCollectionRepository.java
dhis2/dhis2-android-sdk
bsd-3-clause
3,322
65
codeparrot/github-code
7de59c19e54c5bad2cbf37dab494d6a34feb16433c775962035516c7e3a641f9
/* * * Copyright (c) 2014 * * micROS Team, http://micros.nudt.edu.cn * National University of Defense Technology * All rights reserved. * * Authors: Bo Ding (modified base on the official ROS kernel) * Last modified date: 2014-09-17 * * Redistribution and use in source and binary forms, with or without * modification,...
C++
src/roscpp/src/libros/node_handle.cpp
cyberdb/micROS-drt
bsd-3-clause
22,792
853
codeparrot/github-code
909cb43dcddcf8492fe1ab3a77476d29295b22198b42ca64bfcc9484ecf8507b
package com.monkeyhorse.blog.services; import com.monkeyhorse.blog.models.Tag; import com.monkeyhorse.blog.repositories.TagRepository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheEvict; import o...
Java
src/main/java/com/monkeyhorse/blog/services/TagService.java
Uoor/MonekeyHorse
bsd-3-clause
1,914
64
codeparrot/github-code
dc312ddbda41ae6ab4b828d56a71b4da070fa8b6afe56849ad57b15ba2166eb8
// 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. #ifndef CHROME_BROWSER_PASSWORD_MANAGER_SIMPLE_PASSWORD_STORE_MAC_H_ #define CHROME_BROWSER_PASSWORD_MANAGER_SIMPLE_PASSWORD_STORE_MAC_H_ #include "compo...
C
chrome/browser/password_manager/simple_password_store_mac.h
SaschaMester/delicium
bsd-3-clause
1,355
36
codeparrot/github-code
f6100dbc34c91627e868f27dccbf12d742537c7f5c2c8d2c3cca38b5e1dbf3e2
/* * Copyright (c) 2010 The WebM 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 contributin...
C
vp10/decoder/decodeframe.c
openpeer/libvpx_new
bsd-3-clause
89,581
2,434
codeparrot/github-code
5b44d05544eee7ad0e27ef66b323fbec451c4e523610ae293ae04f9ef3094108
# -*- coding: utf-8 -*- from __future__ import absolute_import from datetime import datetime from django.db import models from django.contrib.auth.admin import User from django.core.urlresolvers import reverse #from django.contrib.contenttypes import generic #from django.contrib.contenttypes.models import ContentType ...
Python
homepage/homepage/blog/models.py
xgfone/homepage
bsd-3-clause
4,975
163
codeparrot/github-code
c36f357a48703766e8c966ca665f57e9c76c47ba2da237d5c7920a804005c7a9
// This file is part of MANTIS OS, Operating System // See http://mantis.cs.colorado.edu/ // // Copyright (C) 2003,2004,2005 University of Colorado, Boulder // // This program is free software; you can redistribute it and/or // modify it under the terms of the mos license (see file LICENSE) #include "mos.h" #inc...
C
src/apps/deprecated/topo/topo.c
turon/mantis
bsd-3-clause
3,991
195
codeparrot/github-code
ec5241c71ad30e2b261ebfdc358e3d5bbc9bba9e1558e1f6bd36681b4b4358ef
///////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2007-2013 // // 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) // // See http://www.boost...
C++
boost/boost/intrusive/detail/common_slist_algorithms.hpp
verma/PDAL
bsd-3-clause
3,385
103
codeparrot/github-code
ad110ccfea775ee5c12c0435bc3ec584908fb410be8b63851b35b0ca37e848fb
from django.core.management.base import BaseCommand from ...factories import PubmedFactory from ...models import Pubmed from ....users.factories import UserFactory from ....users.models import User class Command(BaseCommand): """Populate fake data.""" help = __doc__ def add_arguments(self, parser): ...
Python
server/annotation_tool/pubmed/management/commands/fake_data.py
bionikspoon/Annotation-Tool
bsd-3-clause
1,179
32
codeparrot/github-code
75c197b82d0fae3094c4c9664d68a838f2598e60c298b3bd8e0ca269639e9dd8
import subprocess from random import choice, randint from time import sleep import yaml from ooni.otime import timestamp import const class Test(object): def __init__(self, testfile, args=[]): self.testfile = testfile self.args = args self.output = None self.status = None ...
Python
test.py
edagar/censorship-analyser
bsd-3-clause
5,035
190
codeparrot/github-code
f7ee1865df457d05b99fb83f45fbb0907b343560c413ab8c94034609c5d1ee23
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } /* * -- BASE STYLES -- * Most of these are inherited from Base, but I want to change a few. */ body { line-height: 1.7em; color: #7f8c8d; font-size: 13px; } h1, h2, h3, h4, h5, h6, label { color: ...
CSS
css/layouts/marketing.css
alanguir/swagger2
bsd-3-clause
5,303
283
codeparrot/github-code
eec3d6eab1e1d142e92de6cd0dea3735005a2a6c15d0988a800942901d21e534
<?php namespace Amelia\Monzo; use Amelia\Monzo\Util\QueryParams; trait UsesQueryParams { /** * Default query params. * * @var array */ protected $params = []; /** * Set the "since" pagination query param. * * @param string $id * @return void */ public fun...
PHP
src/UsesQueryParams.php
ameliaikeda/monzo-php
bsd-3-clause
1,763
96
codeparrot/github-code
f571d7f2ad85ce4eefc34cd58504b5955d802ec4d96adb7bdb499aec1a6ce95e
<?php namespace SubscriberRest\Controller; use Zend\Mvc\Controller\AbstractRestfulController; use Subscriber\Model\Subscriber; // <-- Add this import use Subscriber\Form\SubscriberForm; // <-- Add this import use Zend\View\Model\JsonModel; class SubscriberRestController extends AbstractRestfulControl...
PHP
module/SubscriberRest/src/SubscriberRest/Controller/SubscriberRestController.php
klaasy1/nirph_test
bsd-3-clause
2,198
84
codeparrot/github-code
add1e0ae50e038c2b5371abfa4ad0d9a43eb1827d2ab9432779766fda2bfe4e7
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. /* The channel package implements the server side of App Engine's Channel API. Create creates a new channel associated with the given clientID, which must be un...
GO
lib/appengine/appengine/channel/channel.go
ashokgelal/gorilla
bsd-3-clause
2,080
73
codeparrot/github-code
48e56ec0cb60459fcb3f8683aa11606086359dd14f64f4e6a677ec11447e1f66
// 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 ASH_SHELL_LAUNCHER_DELEGATE_IMPL_H_ #define ASH_SHELL_LAUNCHER_DELEGATE_IMPL_H_ #include "ash/launcher/launcher_delegate.h" #include "base/co...
C
ash/shell/launcher_delegate_impl.h
timopulkkinen/BubbleFish
bsd-3-clause
1,684
54
codeparrot/github-code
8f52dc633dec6d2dcfddd694b34305c71f6ba65bbce73678bc15ff5216046f0b
/* * [The "BSD licence"] * Copyright (c) 2009 Ben Gruver * 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,...
Java
Android/DependenciesVectorAttackScanner/src/org/jf/dexlib/Code/Format/Instruction22t.java
Sukelluskello/VectorAttackScanner
bsd-3-clause
4,245
112
codeparrot/github-code
4271b2ce90ecd514d35af159adf04aaecb2e2e54bce89c711f7ec2eff0be5ab7
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD Lic...
PHP
module/Thongso/Module.php
comictvn/cnc_001
bsd-3-clause
2,005
68
codeparrot/github-code
6eab04fc416a30158cb3aecf6974b5723358bdb4abac400129adc85159861df1
#pragma once #ifndef T_THUMBNAILVIEWE_INCLUDED #define T_THUMBNAILVIEWE_INCLUDED #include "tw/scrollview.h" //forward declaration class Thumbnail; class TTextField; class TFilePath; class ThumbnailViewer : public TScrollView { vector<Thumbnail *> m_items; int m_selectedItemIndex; const TDimension m_itemSize; ...
C
toonz/sources/toonzfarm/tfarmclient/thumbnailviewer.h
JosefMeixner/opentoonz
bsd-3-clause
2,405
106
codeparrot/github-code
f67386e02be8c859ed5412076fad0b98ad1e8d6606bd6ec01abe52516e6f4232
/* * 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 <functional> #include <ABI42_0_0React/core/StateData.h> namespace ABI42_0_0facebook { namespace ABI42_0_0R...
C
ios/versioned-react-native/ABI42_0_0/ReactNative/ReactCommon/fabric/core/state/ABI42_0_0StateUpdate.h
exponentjs/exponent
bsd-3-clause
666
31
codeparrot/github-code
82d03bbd99fb42e72eaf5ca2263ebb8c7d05d1827d5a03ccb38d3904ac7de86f
import csv import numpy as np import numpy.random as nprand import util class GeoVidCorpus(object): def __init__(self, pairs, country_lookup=None): '''Initialize from (country, video) tuples.''' countries = dict() videos = dict() for country, video in pairs: countri...
Python
geovidcorpus.py
c4fcm/WhatWeWatch-Analysis
bsd-3-clause
2,764
76
codeparrot/github-code
1bf4c2c85b6de8a2d135fdd0cf43ac17f971a259a5683d42c350713da022f4df
import numpy as np from pax import plugin, datastructure from pax.dsputils import find_intervals_above_threshold_no_splitting import matplotlib.pyplot as plt class SoftwareZLE(plugin.TransformPlugin): """Emulate the Zero-length encoding of the CAEN 1724 digitizer Makes no attempt to emulate the 2-sample wo...
Python
pax/plugins/ZLE.py
XENON1T/pax
bsd-3-clause
6,092
132
codeparrot/github-code
e7b3d8f51fcd8826a3ae09531f2bdd81e5428f84ac8aa49881cf6ebb88195c97
/*************************************************************************** * * Copyright (c) 2012 Baidu.com, Inc. All Rights Reserved * $Id$ * **************************************************************************/ /** * @file callback_send_impl.h * @author * @date 2012/11/13 11:25:46 * @version...
C
sample/batch-callback/callback_send_impl.h
liuboflyon145/BGCC
bsd-3-clause
954
55
codeparrot/github-code
afa02f3a4029b2c48f9237e201282b68b6b4d40ae2e57f69a5f52dfa65468883
// 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. /** * The different pages that can be shown at a time. * Note: This must remain in sync with the order in manager.html! * @enum {string} */ var Page =...
JavaScript
chrome/browser/resources/md_extensions/manager.js
danakj/chromium
bsd-3-clause
8,408
301
codeparrot/github-code
ed9fcc76f5028d3742aa766c023c5379c093d54c682c1544d8392d6a2a5a9feb
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>statsmodels.sandbox.regression.gmm.NonlinearIVGMM.exog_names &#8212; statsmodels v0.10.0 documentation</title> <link rel="stylesheet" href="../_static/nature.css" type="text/css" /> <link rel="stylesh...
HTML
v0.10.0/generated/statsmodels.sandbox.regression.gmm.NonlinearIVGMM.exog_names.html
statsmodels/statsmodels.github.io
bsd-3-clause
5,972
149
codeparrot/github-code
918fa0c1c892758cf2a4b7757aaea7ce76dd0ecd9f2334fcf9cf2ec154141680
/* * Copyright (c) Andrey Kuznetsov. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, * this list of conditions...
Java
java/com/smartg/java/util/IterableProxy.java
andronix3/smartg.util
bsd-3-clause
3,370
105
codeparrot/github-code
f28381cdabe94396356d944de8e50073528c45340f9b41c28ca062ecbc40cf25
/* * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
Java
guestvm~guestvm/com.oracle.max.ve/test/test/com/sun/max/ve/sched/MultiApp.java
SnakeDoc/GuestVM
bsd-3-clause
3,090
104
codeparrot/github-code
2c0e6879250db257913e0d3806175d6b9e6f69d25388db1c9fee5ed50ea9f963
c c-------------- c drvAllreduce c-------------- c subroutine drvAllreduce ( eachproc, result, m ) c include "common.h" include "mpif.h" c dimension eachproc(m), result(m) c if (numpe > 1) then if(impistat.eq.1) then iAllR = iAllR+1 ...
FORTRAN
phSolver/common/mpitools.f
PHASTA/phasta
bsd-3-clause
6,404
228
codeparrot/github-code
be8d74f421da4cd2a7be57c89c2d6d4ca4a40f0459317c99cc906d7249e7ca9b
// 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/signin/token_service.h" #include "base/command_line.h" #include "base/string_util.h" #include "chrome/browser/profiles/profi...
C++
chrome/browser/signin/token_service.cc
paul99/clank
bsd-3-clause
17,270
469
codeparrot/github-code
56214b922472871eff8fe7e5066bd340010d97359c28b44d066c6eb6aa73448c
// // SLSMoleculeTableViewController.h // Molecules // // The source code for Molecules is available under a BSD license. See License.txt for details. // // Created by Brad Larson on 6/30/2008. // // This controller manages the root table of molecules that are stored on the device #import <UIKit/UIKit.h> #impor...
C
SLSMoleculeTableViewController.h
lemnar/Molecules
bsd-3-clause
1,419
47
codeparrot/github-code
69aa781113d6032be05820c66c84e4162e120d3627c83335b8e4ecd025a7d7be
<?php namespace backend\models; use Yii; use yii\db\ActiveRecord; use yii\db\Expression; use yii\helpers\ArrayHelper; use yii\behaviors\TimestampBehavior; use yii\helpers\Html; /** * This is the model class for table "marketing_image". * * @property string $id * @property string $marketing_image_path * @propert...
PHP
backend/models/MarketingImage.php
AntoshaPro/intranet.portal
bsd-3-clause
5,097
172
codeparrot/github-code
8cb9a95e50fb5c08e7a6f5044245184982e1295869e47067c0142f1bba223a61
"""Color palettes in addition to matplotlib's palettes.""" from typing import Mapping, Sequence from matplotlib import cm, colors # Colorblindness adjusted vega_10 # See https://github.com/theislab/scanpy/issues/387 vega_10 = list(map(colors.to_hex, cm.tab10.colors)) vega_10_scanpy = vega_10.copy() vega_10_scanpy[2] ...
Python
scanpy/plotting/palettes.py
theislab/scanpy
bsd-3-clause
4,616
216
codeparrot/github-code
c0cc9f3ca619121f9d7b7f9bbf705a0d3dbae8acec3c293afddf18a1fd43de72
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- This file documents the GNU Assembler "as". Copyright (C) 1991-2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Do...
HTML
gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/share/doc/as.html/Sparc_002dDirectives.html
AlbandeCrevoisier/ldd-athens
bsd-3-clause
6,645
162
codeparrot/github-code
f9ced66e996a623ee5acce4b3b525de07c24f314b1aa9ccbae9ac042421e014a
package org.pmiops.workbench.tools; import com.google.api.client.http.HttpTransport; import com.google.api.client.http.apache.ApacheHttpTransport; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.common.collect.ImmutableMap; import com.google.gson.Gson; import java.io.FileWriter; impo...
Java
api/tools/src/main/java/org/pmiops/workbench/tools/GenerateImpersonatedUserTokens.java
all-of-us/workbench
bsd-3-clause
4,502
121
codeparrot/github-code
d56bd5e1083cb6bacc71c60df60575094bc3f1bce608a7b5fe83522476082171
// 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 CHROME_BROWSER_CHROMEOS_EVENTS_EVENT_REWRITER_H_ #define CHROME_BROWSER_CHROMEOS_EVENTS_EVENT_REWRITER_H_ #include <map> #include <set> #include ...
C
chrome/browser/chromeos/events/event_rewriter.h
chromium2014/src
bsd-3-clause
7,136
201
codeparrot/github-code
c0d2b112b10ef85d7ae8760653e7c016157b2bafe89c93414c1a1159aab7f732
<?php /** * Fly Framework * * @copyright Copyright (c) 2013 Bingbing. (http://yanbingbing.com) */ namespace Fly\Db\Sql; use Fly\Db\Adapter\Driver\DriverInterface; use Fly\Db\Adapter\Driver\StatementInterface; use Fly\Db\Adapter\Parameters; use Fly\Db\Adapter\Platform\PlatformInterface; use Fly\Db\Adapter\Platform...
PHP
library/Fly/Db/Sql/Delete.php
yanbingbing/fly
bsd-3-clause
4,538
170
codeparrot/github-code
782309402910f38621098905847f0b34f2035c5cdf844f6f3b4090096117716a
<?php namespace Api\Controller; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; use Application\Controller\AbstractController; use Application\Model; use Application\TableGateway; use Application\Service\MailService; class CommentController extends AbstractController { public fu...
PHP
module/Api/src/Controller/CommentController.php
benoitduval/zf3-album
bsd-3-clause
4,019
93
codeparrot/github-code
783dfe177de11d49c53fc43ae5e60b7c3a8ed55da9f2e590bcbf36b8e05d69c6
// Copyright (c) Steinwurf ApS 2017. // All Rights Reserved // // Distributed under the "BSD License". See the accompanying LICENSE.rst file. #pragma once #include <cstdint> #include <system_error> #include <endian/big_endian.hpp> #include <endian/stream_reader.hpp> #include "descriptor/tag.hpp" #include "error.hpp...
C++
src/petro/stream.hpp
steinwurf/petro
bsd-3-clause
3,669
115
codeparrot/github-code
240d69e18b4281da22f6b55e1284ef5d0ae6f4b903d4c31c3f3cd6f0fc33245c
/* $This file is distributed under the terms of the license in /doc/license.txt$ */ package org.vivoweb.webapp.createandlink.crossref; import org.vivoweb.webapp.createandlink.Citation; import org.vivoweb.webapp.createandlink.CreateAndLinkResourceProvider; import org.vivoweb.webapp.createandlink.ExternalIdentifiers; i...
Java
api/src/main/java/org/vivoweb/webapp/createandlink/crossref/CrossrefCreateAndLinkResourceProvider.java
vivo-project/VIVO
bsd-3-clause
3,653
116
codeparrot/github-code
03317191a5b3f6be576a3c4d0c3e356c1a664b05d03c921a519ff1495c96cc81
# coding=utf-8 from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from qa.models import Question, Answer class AskForm(forms.Form): title = forms.CharField(max_length=1024, label="Заголовок вопроса") text = forms.CharField(widget=forms...
Python
ask/qa/forms.py
a-shar/web_tech
bsd-3-clause
1,871
66
codeparrot/github-code
988867ba3f55e7774e41ab9f828de2470731a0549871ed983229c188742af296
@inline function policy(m::KrusellSmith, net_return::Float64, wage::Float64, l_in::Vector{Float64}, g::Vector{Float64}, KF::Array{Float64,2}; damp::Float64 = 0.8, tol::Float64 = 1e-5) @assert 0 <= damp <= 1 nw::Int64 = get_s...
Julia
src/models/heterogeneous/krusell_smith/steady_state.jl
FRBNY-DSGE/DSGE.jl
bsd-3-clause
7,941
217
codeparrot/github-code
253679d59f268b68dedd64ccf865c8b430f17ea3adb53fa8e183d238d5d4a260
/** * To configure interaction with MongoDB */ package org.broadinstitute.macarthurlab.matchbox.config; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annot...
Java
src/main/java/org/broadinstitute/macarthurlab/matchbox/config/GeneSymbolMappingConfig.java
macarthur-lab/matchbox
bsd-3-clause
2,558
71
codeparrot/github-code
dcf1ef101cb0f0a0e63c53a56e0aa45db8c44c8d2fe8fd1e76a400fbe64975a1
/* No user fns here. Pesch 15apr92. */ /* * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice and this paragraph are * duplicated in all such forms and that any doc...
C
tools/source/newlib-1.9.0/newlib/libc/stdio/findfp.c
shaotuanchen/sunflower_exp
bsd-3-clause
3,725
162
codeparrot/github-code
8c322cfb416e68b79183a5f90b3107c08a4a7167399ef09e85c5299cde12a933
from ctypes.util import find_library from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.backends.sqlite3.base import ( DatabaseWrapper as SQLiteDatabaseWrapper, SQLiteCursorWrapper, ) from .client import SpatiaLiteClient from .features import DatabaseFeatures f...
Python
django/contrib/gis/db/backends/spatialite/base.py
mattseymour/django
bsd-3-clause
3,105
69
codeparrot/github-code
d45ed893c2d18d4a89daa0c0b7dd79bcb116face88381ce2b5c2f2700093b11f
/* ============================================================= * bootstrap-scrollspy.js v1.4.0 * http://twitter.github.com/bootstrap/javascript.html#scrollspy * ============================================================= * Copyright 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "L...
JavaScript
min/builder/js/bootstrap-scrollspy.js
acidvertigo/minify
bsd-3-clause
3,003
108
codeparrot/github-code
f9e1c01cfef5f41a9bac457e3df6c19c7f500d583801f40681a5084dc14eb5a2
package org.cagrid.gaards.ui.dorian.federation; import gov.nih.nci.cagrid.common.Utils; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.JLabel; import javax.swing.JPasswordField; import javax.swing.JTextField; import org.cagrid.gaards.authentication.Cred...
Java
cagrid/Software/core/caGrid/projects/gaards-ui/src/org/cagrid/gaards/ui/dorian/federation/OneTimePasswordAuthenticationPanel.java
NCIP/cagrid
bsd-3-clause
3,150
107
codeparrot/github-code
b06fd76c5c318e1daca00aff8695f5faa8b3a52f4b035fccbd059336eb5451f1
var mul = function (v1) { return function (v2) { return v1 * v2; }; } var fix = function (v1) { return fix = arguments.callee, v1(function (i) { return fix(v1)(i) }); } var list = function (v1) { return function (v2) { return function (v3) { return v3.nil ? v1 : v2(v3.head)(v3.tail); }; }; } var add = function (v1) { r...
JavaScript
src/test.js
tomlokhorst/AwesomePrelude
bsd-3-clause
2,232
41
codeparrot/github-code
cebadd2017d0d0f61fbd8ef79375a6b1d40f58da93c5fa62826afc63f6ad0def
<?php /** * Fwk * * Copyright (c) 2011-2012, Julien Ballestracci <julien@nitronet.org>. * All rights reserved. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ...
PHP
src/Definitions/ClassDefinition.php
fwk/Di
bsd-3-clause
7,839
248
codeparrot/github-code
5eebe501b293656160f1322089d0fe66d2a3a765c6fb91f0b43f25230e435443
// 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_ANDROID_DEVICE_INFO_H_ #define CONTENT_BROWSER_ANDROID_DEVICE_INFO_H_ #include <jni.h> #include <string> #include "base/andr...
C
content/browser/android/device_info.h
paul99/clank
bsd-3-clause
946
37
codeparrot/github-code
b65c3cca82441166a80edcb425a8aa4a00d05f0e89f15ae90fc7e63f43a98680
package edu.ucdenver.ccp.nlp.pipelines.runner.serialization; import java.io.BufferedWriter; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.zip.GZIPOutputS...
Java
nlp-pipelines-runner/src/main/java/edu/ucdenver/ccp/nlp/pipelines/runner/serialization/AnnotationSerializerAE.java
UCDenver-ccp/ccp-nlp-pipelines
bsd-3-clause
15,446
361
codeparrot/github-code
9e5069d50bd3533eb0c0db34c0d1ff5c78fecb0872717d9b8110d3543ad84fa7
/**************************************************************************** ** SCALASCA http://www.scalasca.org/ ** ***************************************************************************** ** Copyright (c) 1998-2013 ** ** Fors...
C
cube-3.0/src/cube/Matrix.h
pyrovski/scalasca
bsd-3-clause
2,357
79
codeparrot/github-code
d87e50e230eaa52cfa795c79a760e9fffe112fd35d79b68b9589e43847460468
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="language" content="en" /> <link href="./assets/ad363fd8/css/bootstrap.css" rel="stylesheet"> <link href="./assets/ac81533f/style.css" rel="stylesheet"> ...
HTML
documentation/backend-models-authitem.html
hscstudio/osyawwal2
bsd-3-clause
64,929
697
codeparrot/github-code
a2eb0c4f3b0c4f5011c5c1989c9ae27efcaf898a03adec97321e4ea7fa0e57cc
# # Copyright (c) 2010-2011, Nick Blundell # 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 cond...
Python
scripts/generate_docs.py
blundeln/pylens
bsd-3-clause
5,581
175
codeparrot/github-code
87f01f04bb5fdf45f1edffc7feae5896a190111813d6b4937658dc890d922489
'use strict'; const RDKit = require('../..'); beforeEach(() => RDKit.load()); test('manual method', () => { const smiles = 'COCO'; const mol = RDKit.Mol.fromSmiles(smiles); mol.addHs(); mol.embedMolecule(); expect(mol.toMolBlock()).toMatchSnapshot(); }); test('ETDG method', () => { const smiles = 'COCO'...
JavaScript
__tests__/rdDistGeom/embedMolecule.js
cheminfo/RDKitjs
bsd-3-clause
1,101
47
codeparrot/github-code
4f64ede5f987a1726718aaa91e789039b51f0bbd1f2f370100a67025521db556
using Bj.Essentials.Entities; using Bjx.WCF.Contracts; using System; using System.Collections.Generic; using System.ServiceModel; namespace Bj.Essentials.Proxies { public class TermsClient : ClientBase<ITermsService>, ITermsService { public IEnumerable<Terms> GetAll(string company) { ...
C#
src/Orchard.Web/Modules/Entiat.Products/TermsClient.cs
brownjordaninternational/OrchardCMS
bsd-3-clause
948
37
codeparrot/github-code
bf08bdafb5d538a180c9c13dd3d372d60f2c2a7d11a7d61ba98fefeadfee2270
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2020 Ben Vanik. All rights reserved. ...
C
src/xenia/base/utf8.h
sephiroth99/xenia
bsd-3-clause
5,604
149
codeparrot/github-code
43430b825a67ad2711a9f088c9b2fbcb99e82b60da6b80e98ba15977fb308f2d
<?php /** * This file provides utility functions and db function for the profile functions, * notably, but not exclusively, deals with custom profile fields * * @name ElkArte Forum * @copyright ElkArte Forum contributors * @license BSD http://opensource.org/licenses/BSD-3-Clause * * This software is a d...
PHP
Elkarte/src/Admin/ManageFeatures.php
joshuaadickerson/Elkarte2
bsd-3-clause
11,829
377
codeparrot/github-code
e8093a08f4b6bdd68505f080f0a63344a45e3912561028f8456ccd8c78881ec7
// lat/kaldi-kws.h // Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) // See ../../COPYING for clarification regarding multiple 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 t...
C
lucida/speechrecognition/common/src/lat/kaldi-kws.h
seong889/lucida
bsd-3-clause
1,916
55
codeparrot/github-code
b09250b3cefee428a2bdd0e24a34dec7f5f5c74fee4591c9d87fda8a5b9af1e0
import csv import argparse import json import logging import textwrap from edgar_importing import db from edgar_importing import ala from geoalchemy import WKTSpatialElement import geoalchemy.functions import sqlalchemy import shapely.wkt from shapely.geometry import Polygon, MultiPolygon # map of BLA categories to db...
Python
importing/edgar_importing/birdlife_shapefile_import.py
jcu-eresearch/Edgar
bsd-3-clause
8,026
257
codeparrot/github-code
f569fca1c838dafbd8fb855664cbc3dc5d6d493e344885ec093957ee512a477a
/** * This widget provides visibility and color data controls for a VisualizationModel. * It emits an event anytime the value has changed, attaching data in the form * of a serialized query string. */ cinema.views.CompositeToolsWidget = Backbone.View.extend({ initialize: function (settings) { this.model...
JavaScript
web/src/js/lib/widgets/CompositeToolsWidget.js
Kitware/cinema
bsd-3-clause
2,064
53
codeparrot/github-code
ddc77f2fa0ded4c093f1e137de7331f45da353040ecce29ef4751b4e4f728e0b
/* Python Multiarray Module -- A useful collection of functions for creating and using ndarrays Original file Copyright (c) 1995, 1996, 1997 Jim Hugunin, hugunin@mit.edu Modified for numpy in 2005 Travis E. Oliphant oliphant@ee.byu.edu Brigham Young University */ /* $Id: multiarraymodule.c,v 1.36 20...
C
numpy/core/src/multiarray/multiarraymodule.c
chadnetzer/numpy-gaurdro
bsd-3-clause
75,533
2,799
codeparrot/github-code
6c935b61c03e21c8fd79149595e63bf3b35c4c011f98cb8a0fed9c4f751c6838
package io.flutter.plugins.androidintent; import android.content.ComponentName; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.provider.Settings; import android.text.TextUtils; import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nulla...
Java
packages/android_intent/android/src/main/java/io/flutter/plugins/androidintent/MethodCallHandlerImpl.java
mehmetf/plugins
bsd-3-clause
7,389
222
codeparrot/github-code
ce33e3c3ea6e0ed357c5b2147a104297e85fc9acb6fe28fb717378c3474bbb3e
#include "net/util.h" #include "net/defines.h" #include "client/client.h" int backendEpoolFd; struct epoll_event *backendEventBuf; namespace mcpro { namespace net { namespace core { int initRecvBackend() { backendEpoolFd = epoll_create1 (0); ...
C++
src/net/recvBackend.cpp
magik6k/mcpro
bsd-3-clause
1,046
42
codeparrot/github-code
a6d62d4a757e9689afc9343bb97059590c7b9d20ce67e3009f503b0121681c53
{-# LANGUAGE DataKinds #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-| Module : Numeric.AERN.RealArithmetic.Basis.MPFR.Effort ...
Haskell
aern-mpfr-rounded/src/Numeric/AERN/RealArithmetic/Basis/MPFR/Basics.hs
michalkonecny/aern
bsd-3-clause
5,210
191
codeparrot/github-code
78cc17a19658cd32e9696933a4597320c2b41f0df0d7754fad07adbc4c581150
<?php use yii\helpers\Url; use yii\helpers\Html; use yii\bootstrap\Modal; use kartik\grid\GridView; use johnitvn\ajaxcrud\CrudAsset; use johnitvn\ajaxcrud\BulkButtonWidget; /* @var $this yii\web\View */ /* @var $searchModel common\models\SubSectorSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->...
PHP
backend/views/sub-sector/index.php
minpppst/rsc
bsd-3-clause
2,682
66
codeparrot/github-code
17ce266efc29e189324215b3c732134c92a036c561f37836d6e1222bdc8f5e00
package za.org.grassroot.services.account; import org.springframework.data.domain.Sort; import org.springframework.security.access.prepost.PreAuthorize; import za.org.grassroot.core.domain.Account; import za.org.grassroot.core.domain.AccountBillingRecord; import java.time.LocalDateTime; import java.util.List; /** *...
Java
grassroot-services/src/main/java/za/org/grassroot/services/account/AccountBillingBroker.java
mokoka/grassroot-platform
bsd-3-clause
2,063
56
codeparrot/github-code
6796ea8245a422c4ecacf1bd2678a82def10d54020130f11066a4067fd01c9e6
/****************************************************************************** This source file is part of the MoleQueue project. Copyright 2012 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distr...
C++
molequeue/app/queue.cpp
OpenChemistry/molequeue
bsd-3-clause
17,751
564
codeparrot/github-code
228b929d0bd24a3f8a95f5d2126f2f8d2514c92817325bdb1f5fa7e2745c992e
/* * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
C
third_party/WebKit/Source/core/animation/animatable/AnimatableVisibility.h
CTSRD-SOAAP/chromium-42.0.2311.135
bsd-3-clause
2,830
70
codeparrot/github-code
c03a75ed3999c21790041b74a39bcd68c48c58e3217ecac4bff5270b8e43ecce
using System; using System.Collections.Generic; using System.Linq; using Orchard.ContentManagement; using Orchard.Environment.Extensions; using Orchard.Localization; using Orchard.Security; using Orchard.Users.Models; using Orchard.Workflows.Models; using Orchard.Workflows.Services; namespace Orchard.Users....
C#
Modules/Orchard.Users/Activities/SignInUserActivity.cs
andrewconnell/aci-orchardcms
bsd-3-clause
3,159
82
codeparrot/github-code
983fa362c8ebb4dee67004a1033aa04e5a977cd880c392a4a7a49d98fb4f30ab
/* * Copyright (c) 2009-2020 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this...
Java
jme3-core/src/main/java/com/jme3/shader/ShaderNode.java
zzuegg/jmonkeyengine
bsd-3-clause
8,162
261
codeparrot/github-code
482bc2723887ecaa6875838cb5f6f376f937f88df3177990b4ec9b21139cbcf9
// Copyright 2015 Markus Dittrich // Licensed under BSD license, see LICENSE file for details // // st is a simple commandline helper script for calculating basic // statistics on a data file consisting of column oriented // floating point numbers. // NOTE: Currently stats will read in all the data to compute the stati...
Rust
src/main.rs
haskelladdict/st
bsd-3-clause
3,361
142
codeparrot/github-code
15297007ca2c8a6e389be803d1e792a0b1c3e99024b8012373abc67db899a637
// 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/browser/chromeos/extensions/file_manager/private_api_util.h" #include <string> #include "base/files/file_path.h" #include "base/message...
C++
chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
lihui7115/ChromiumGStreamerBackend
bsd-3-clause
14,011
369
codeparrot/github-code
53f5e696af4e9534737c75631a40b3895b4fc0e6d428769b9617d8087a8ba7dc
<?php /* * Autor : Juan Carlos Ludeña Montesinos * Año : Abril 2016 * Descripción : * */ namespace Orden\Form; use Orden\Model\Service\OrdenService; use Zend\Form\Form; use Zend\Form\Element; use Zend\ServiceManager\ServiceLocatorInterface; class BuscarForm extends Form { protected $_sl = null;...
PHP
module/Orden/src/Orden/Form/BuscarForm.php
NextTrick/cp
bsd-3-clause
3,155
98
codeparrot/github-code
07eb2e57c5824e0f0e5bacf86887914e9c30885d9edabe10ca3df9e7b51a00da
<?php /* Copyright (c) 2005, Till Brehm, projektfarm Gmbh 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 ...
PHP
interface/web/designer/form_list.php
TR-Host/THConfig
bsd-3-clause
3,255
89
codeparrot/github-code
aa1c1d065074c1955287f16cd737fa1ea439019e5471d20b0104cebce0ef087a
#!/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################### # Copyright/License Notice (Modified BSD License) # ######################################################################### ###################################################...
Python
plugins/plugin_core_debug.py
knaggsy2000/stormforce-mq
bsd-3-clause
4,779
123
codeparrot/github-code
6e81c2f2286200cc4389f9c672094c889e1804d8f30d1525e06cf949a38984d3
// 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 "components/browsing_data/content/file_system_helper.h" #include <memory> #include <utility> #include "base/bind.h" #include "base/location...
C++
components/browsing_data/content/file_system_helper.cc
endlessm/chromium-browser
bsd-3-clause
5,309
160
codeparrot/github-code
f74d050903b3c2546b48e4a08427856ab20651b02fed57c3310df55af0b1e47b
 angular.module('starter.filter', []) .filter('temp', function ($filter) { return function (input, precision) { if (!precision) { precision = 1; } var numberFilter = $filter('number'); return numberFilter(input, precision) + '\u00B0F'; }; }) .filter('alphabet', funct...
JavaScript
www/js/filter.js
amankothari/CRMLite
bsd-3-clause
5,287
157
codeparrot/github-code
68176cfc32db89362df769b0ec575dd43dbc6ca65ceef649e50f744dcc33f303
#-*- coding: utf-8 -*- """\ ====== Grades ====== For managing student grades, most teachers use spreadsheet tools. With these tools, it is hard to maintain grades in plain text files that are easily readable by humans. The goal of **Grades** is to let teachers manage their students's grade in plain text file while pro...
Python
grades/__init__.py
loicseguin/grades
bsd-3-clause
876
32
codeparrot/github-code
f18c26a801d6438ea662934e81749cf588f33728df0fc328f14eed888c01aabd
/*- * Copyright (c) 2008 Semihalf, Rafal Jaworowski * Copyright (c) 2009 Semihalf, Piotr Ziecik * Copyright (c) 2012 Andrey V. Elsukov <ae@FreeBSD.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
C
sys/boot/uboot/lib/disk.c
jhbsz/OSI-OS
bsd-3-clause
6,650
284
codeparrot/github-code
bbcc1e546776de1a37b27a9bd3e2c6b487cbe2a855c706ca2419eb53825da64b
/*- * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.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: * 1. Redistributions of source code must retain the above copyright * n...
C
sys/dev/ata/chipsets/ata-cyrix.c
jhbsz/OSI-OS
bsd-3-clause
4,334
134
codeparrot/github-code
d42e8ced6f3b220e9cf3bf54d7e4ab97e286ae9352a64e880bc11cc2e6d0add8
import {debounce, maxBy} from 'lodash'; import PropTypes from 'prop-types'; import React from 'react'; import moment from 'moment-timezone'; import styled from 'react-emotion'; import {Client} from 'app/api'; import {Config, EventsStatsData, Organization, Project} from 'app/types'; import {PanelAlert} from 'app/compon...
TypeScript
src/sentry/static/sentry/app/views/settings/projectIncidentRules/ruleForm.tsx
mvaled/sentry
bsd-3-clause
20,916
566
codeparrot/github-code
9e2833eac5a669338c57fbeda9dc15b7033d2ab642d7bc8015b097de81f621ef
// Copyright (c) 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 "chromeos/dbus/cras_audio_client.h" #include "base/bind.h" #include "dbus/bus.h" #include "dbus/message.h" #include "dbus/object_path.h" #in...
C++
chromeos/dbus/cras_audio_client.cc
codenote/chromium-test
bsd-3-clause
15,764
456
codeparrot/github-code
83c049c314083813de70873d1ec212e90f1f77095ee4942ac4e477db67d8c461
from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed from PLC.Filter import Filter from PLC.AddressTypes import AddressType, AddressTypes from PLC.Auth import Auth class GetAddressTypes(Method): """ Returns an array of structs containing details about address ty...
Python
PLC/Methods/GetAddressTypes.py
dreibh/planetlab-lxc-plcapi
bsd-3-clause
1,109
33
codeparrot/github-code
893da588b26670b249c276f5825018d94faa6e657169f88ca0362a112d70646c
package cn.bitlove.remind; import android.content.Context; import android.os.Handler; import android.widget.Toast; /** * Toast提示 * */ public class ToastReminder { private static Toast mToast; private static Handler mHandler; private static void init(Context context){ if(mToast==null){ mToast =...
Java
src/cn/bitlove/remind/ToastReminder.java
xiaoai-opensource/babylive
bsd-3-clause
768
36
codeparrot/github-code
cce48c51643b8c23778ea88e2ce4c1ea04686f71521f223d185d429ccd1e2c12
package core import ( "github.com/pkg/errors" ) var coreHousekeepingURI = CorePrefix + "coreHousekeeping" // coreHousekeeping does the housekeeping for the core concepts func coreHousekeeping(el Element, notification *ChangeNotification, trans *Transaction) error { uOfD := trans.uOfD trans.ReadLockElement(el) //...
GO
core/Housekeeping.go
pbrown12303/activeCRL
bsd-3-clause
1,763
51
codeparrot/github-code
3210de7df36bbc5a2d2a319b09abb6e44f6dfb8bd1dfb553ba78f2fb86ffdab2
/* * Copyright (c) 2008-2011, Piccolo2D project, http://piccolo2d.org * Copyright (c) 1998-2008, University of Maryland * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided * that the following conditions are met: * * Redistri...
Java
swt/src/test/java/org/piccolo2d/extras/swt/PSWTCanvasTest.java
tangentforks/piccolo2d.java
bsd-3-clause
4,427
116
codeparrot/github-code
2ceb0f4d873bf3d274f7312831430b0580e728bd40214d6b0ae9b254218071d2
/** * 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...
Java
atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactory.java
j-baker/atlasdb
bsd-3-clause
6,303
136
codeparrot/github-code
bfcf961841973b5287cbd4ee94641b9982078931ff874b614697fc03d9e082b0
System.register(["rtts_assert/rtts_assert", "angular2/src/facade/collection", "angular2/src/facade/lang", "./dom_adapter", "./generic_browser_adapter"], function($__export) { "use strict"; var assert, List, MapWrapper, ListWrapper, isPresent, setRootDomAdapter, GenericBrowserDomA...
JavaScript
angular2/src/dom/browser_adapter.js
patternMiner/greeting_app
bsd-3-clause
19,833
446
codeparrot/github-code
d5122b04ed6e43d0e01a10422454825eef6a47d7cb048b1ca4229d821eac40cb
package cz.muni.fi.pv243.test; import java.util.*; import javax.inject.Inject; import javax.naming.NamingException; import cz.muni.fi.pv243.dao.MemberDao; import cz.muni.fi.pv243.model.MemberAdvertisingAccount; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; i...
Java
auto-bazaar-ejb/src/test/java/cz/muni/fi/pv243/test/MemberDaoTest.java
tmarton/PV243-AutoBazaar
bsd-3-clause
9,339
328
codeparrot/github-code
8477275493fed2dc9cb332b6a8bd61fb2fd4b96d8c3c5419a6571d55bedc44b4
/*- * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ee.columbia.edu>. 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 copyrigh...
C
freebsd5/sys/pci/if_dc.c
MarginC/kame
bsd-3-clause
98,918
3,829
codeparrot/github-code
da7c6f49129ed0c25697f08e1227b2e45339fce82d3a392def1df33b12d30d76
/* * Tencent is pleased to support the open source community by making Pebble available. * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the Lic...
C++
src/utils/pebble_router.cc
mengjiahao/bubblefs
bsd-3-clause
4,848
165
codeparrot/github-code
85b96441a4c937efde56da4b80ec2b416a3bd94fdd7e1cf7bfc2820959ea201c
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Threading; using GuiTestingCon.GUI; using Slib; namespace GuiTestingCon.Net { public class AuthSocket { private string ServerIP = "24.52.192.14"; private readonly int Por...
C#
GuiTestingCon/Net/AuthSocket.cs
genusistimelord/guicon
bsd-3-clause
4,581
147
codeparrot/github-code
4ec15c6423dbb9bb7059f4dc5573e8846deae771865fb9d79723fdd91578339a
// Palladio template component module angular.module('palladioDurationView', ['palladio', 'palladio.services']) .directive('palladioDurationView', function (dateService, palladioService, dataService) { var directiveObj = { scope: { fullHeight: '@', fullWidth: '@', showControls: '@', showAccordion...
JavaScript
src/unfinished_components/palladio-duration-view/palladio-duration-view.js
humanitiesplusdesign/palladio
bsd-3-clause
16,264
491
codeparrot/github-code
1db89f725833a368af2ff427ee99a0ca0d9eb0e04be34e4bc9674ba10f4d3d1a
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ #in...
C
chrome/browser/ui/webui/chromeos/login/network_state_informer.h
junmin-zhu/chromium-rivertrail
bsd-3-clause
3,877
118
codeparrot/github-code
5a1ed213f921fc9657f1903652159e81a413b78afe775c0f3d800b941fa17455
// 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/views/tabs/tab_drag_controller.h" #include <math.h> #include <set> #include "base/auto_reset.h" #include "base/callback....
C++
chrome/browser/ui/views/tabs/tab_drag_controller.cc
nacl-webkit/chrome_deps
bsd-3-clause
76,097
2,051
codeparrot/github-code