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
39419767b60a979b78abbb305167a49b075666cbfd1c76b7096f7e780c15c1e1
{-# LANGUAGE OverloadedStrings, RecursiveDo, ScopedTypeVariables, FlexibleContexts, TypeFamilies, ConstraintKinds #-} module Frontend.Properties.R53 ( r53Properties ) where import Prelude hiding (mapM, mapM_, all, sequence) import qualified Data.Map as Map import Data.Monoid ((<>)...
Haskell
Lib/Frontend/Properties/R53.hs
Rizary/awspi
bsd-3-clause
4,264
126
codeparrot/github-code
296fccdbf26f1a8661659a363b74bffe3a5d67e4e2aa1cb83c2bde6d0c53381f
{-# LANGUAGE FlexibleInstances #-} module Eval ( runEval ) where import Control.Monad.State import Control.Monad.Writer (WriterT, runWriterT, tell) import Data.List import Data.Maybe import qualified Data.Map as Map import Text.PrettyPrint import Pretty import Syntax -- Values data Value = VInt Integer | VBo...
Haskell
src/Eval.hs
zanesterling/haskell-compiler
bsd-3-clause
1,951
92
codeparrot/github-code
a25c80a13961eb8ae7ab36a8f35b40297664085451195a0e8f6325ddf44a9d70
// 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/shared/starboard/file_atomic_replace_write_file.cc
youtube/cobalt
bsd-3-clause
1,899
72
codeparrot/github-code
4708e0b01ef2d89c227ee502d1b364d59759cdfae998cd29aafb3f166feb12e6
/**************************************************************************** ** ** Copyright (C) 2004-2005 Trolltech AS. All rights reserved. ** ** This file is part of the documentation of the Qt Toolkit. ** ** This file may be used under the terms of the GNU General Public ** License version 2.0 as published ...
C
GamepadTNG/src/client.h
iti-luebeck/HANSE2011
bsd-3-clause
1,648
59
codeparrot/github-code
9fe5b18fc23d9d713f773ec2d0d17a3c5564214fffa7c12d74f8fc195a6c5085
/******************************************************************************* * Copyright Duke Comprehensive Cancer Center and SemanticBits * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/c3pr/LICENSE.txt for details. **********************************************...
Java
codebase/projects/core/test/src/java/edu/duke/cabig/c3pr/MayoSpecificRegistryUseCaseTest.java
NCIP/c3pr
bsd-3-clause
44,705
690
codeparrot/github-code
46b2998f89eaf184057eb199fab47035b97c29bd3283aaf64dae6c71610659f3
# Copyright (c) 2014, Salesforce.com, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # - Redistributions of source code must retain the above copyright # notice, this list of conditions...
Python
distributions/util.py
forcedotcom/distributions
bsd-3-clause
7,375
213
codeparrot/github-code
0daa7f6d9163b09498f222e7939d892f152308c4c49d58222d9750b51f266821
// ----------------------------------------------------------------------- // <copyright file="BestSplitter.cs" company="Sharpkit.Learn"> // Authors: Gilles Louppe <g.louppe@gmail.com> // Peter Prettenhofer <peter.prettenhofer@gmail.com> // Brian Holt <bdholt1@gmail.com> // Noel Dawe <no...
C#
src/Sharpkit.Learn/Tree/BestSplitter.cs
foreverzet/Sharpkit.Learn
bsd-3-clause
7,786
222
codeparrot/github-code
601d2426ef214b703d86bb1d4b316fac83b157ba1ae03fc1c02cd2d5f1e87325
/* ******************************************************************************* * Copyright (c) 2007-2014, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source c...
C
cnc/internal/range_step_instance.h
icnc/icnc
bsd-3-clause
15,749
289
codeparrot/github-code
3afe7e70fd05e53446bc587c069465cd30bccc65259841a1d3ebe7b3bc4106e9
/** * The Affix Component * * @module aui-affix */ var win = A.config.win; /** * A base class for Affix. * * Check the [live demo](http://alloyui.com/examples/affix/). * * @class A.Affix * @extends Base * @param {Object} config Object literal specifying scrollspy configuration * properties. * @constr...
JavaScript
src/aui-affix/js/aui-affix.js
adorjan/alloy-ui
bsd-3-clause
6,261
263
codeparrot/github-code
7635a2b966d74de91bf2e50e9360d8ce4c4bf519f3f4c6306ef78498acda9e7a
/* * Copyright (c) 2011 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
modules/rtp_rtcp/source/rtp_sender.h
ikonin/WebRTC
bsd-3-clause
11,657
315
codeparrot/github-code
703a6bf0151f03bb0a90e568860d7653039202849e7838024632c921c624c9c3
/* * Copyright (c) 2008, Michael Pradel * All rights reserved. See LICENSE for details. */ package applications import collaborations.Person import collaborations.StickyThesisSupervision._ object StickyThesisSupervisionTestApp { trait SpecialPerson extends Person { def x = 23 } def main(args : Array...
Scala
examples/applications/StickyThesisSupervisionTestApp.scala
tupshin/Scala-Roles
bsd-3-clause
1,068
44
codeparrot/github-code
037c6b91c429b064c3c1719a4a8c58de1f7ae4fe3511abec5a3417d64f22ad12
""" Read a dictionary from a JSON file, and add its contents to a Python dictionary. """ import json import types from instmakelib import rtimport INSTMAKE_SITE_DIR = "instmakesite" # These are the supported field names # =================================== # The name of the plugin (without ".py") for logging # usa...
Python
instmakelib/jsonconfig.py
gilramir/instmake
bsd-3-clause
999
43
codeparrot/github-code
7e2efd4751700c79f487ec811689531c15cf53a131aca9b3dc9150e788bdc6cb
<?php namespace frontend\controllers; use common\models\Order; use common\models\OrderDetail; use common\models\Product; use common\models\Subcriber; use frontend\models\Cart; use Yii; use yii\web\Controller; use yii\helpers\Json; /** * Product Controller */ class ProductController extends Controller { public ...
PHP
frontend/controllers/ProductController.php
tuanpv1/drugstore
bsd-3-clause
6,450
184
codeparrot/github-code
bd8f1608fbfc5860b7946228c8fb5a695cb42aac9b505906cc4415c7b830e3f6
// Copyright 2016 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/task/thread_pool/task_tracker.h" #include <atomic> #include <string> #include <vector> #include "base/base_switches.h" #include "base/cal...
C++
base/task/thread_pool/task_tracker.cc
endlessm/chromium-browser
bsd-3-clause
29,383
791
codeparrot/github-code
ec702fd89009dd5590083a3931851547f77a26954c783b9f3a408e4e83464b33
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suit...
Ruby
sample_app/config/environments/test.rb
kuza/rails-tutorial
bsd-3-clause
1,765
43
codeparrot/github-code
73acefcb247062f37fab995f394233eb87b06d379ea2242e7593642f324cecb5
// Copyright 2016 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_TEXT_CHARACTER_PROPERTY_DATA_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_TEXT_CHARACTER_PROPERTY_DATA_H_ #...
C
third_party/blink/renderer/platform/text/character_property_data.h
endlessm/chromium-browser
bsd-3-clause
6,402
176
codeparrot/github-code
72707441f2f8f01869ad0c9eca12c410b5392202ab077e668d1605d7a04bcae2
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2015, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
PHP
system/database/DB_query_builder.php
readerself/readerself
bsd-3-clause
61,969
2,734
codeparrot/github-code
0a6ace307ee85b510b1363068c2db8abbd620a5e29e752ec3a88a1231c52deaf
{-# LANGUAGE GeneralizedNewtypeDeriving #-} module HTIG.IRCServer.Core ( IRCState(..) , IRCM , runIRCM , runIRCM' , getConn , getGlobal , setGlobal , modifyGlobal , modifyGlobal' , getLocal , setLocal , modifyLocal , modifyLocal' , liftIO ) where import C...
Haskell
HTIG/IRCServer/Core.hs
nakamuray/htig
bsd-3-clause
2,338
95
codeparrot/github-code
5750a5943d934f0f316f6f01d185733bf7476916eebac709bd0cf95c56b69702
''' Renderers for various kinds of annotations that can be added to Bokeh plots ''' from __future__ import absolute_import from six import string_types from ..core.enums import (AngleUnits, Dimension, FontStyle, LegendClickPolicy, LegendLocation, Orientation, RenderMode, SpatialUnits, Verti...
Python
bokeh/models/annotations.py
rs2/bokeh
bsd-3-clause
34,179
1,054
codeparrot/github-code
51a8099bc2134126739630cd096980b2a3f6e3bfe30f8202e7bc9634664210a4
#include "ace/config-all.h" #include "ace/Log_Msg.h" #include "ace/OS_Memory.h" #include "ace/OS_NS_string.h" #include "Options.h" #include "Protocol_Manager.h" // Returns a pointer to the Drwho_Node associated with HOST_NAME (if // it exists, otherwise a new node is created. Note that if a // Drwho_Node is found it...
C++
src/ace/ACE_wrappers/apps/drwho/Protocol_Manager.cpp
wfnex/openbras
bsd-3-clause
1,829
87
codeparrot/github-code
70f7a7193f7652b2723743b44c2b72d50b5657ffcae1290e86b66140a75e495d
<?php namespace Music\Controller; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; use Music\Model\Music; use Music\Form\MusicForm; class MusicController extends AbstractActionController { protected $musicTable; public function indexAction() { return new Vie...
PHP
module/Music/src/Music/Controller/MusicController.php
zocuxtech/smsandemail
bsd-3-clause
1,423
51
codeparrot/github-code
c02a08eb9d9ed02a89f9bb2fc864d6973db1ce2c8679cd237c027b8e53f2eced
package edu.northwestern.bioinformatics.studycalendar.domain.tools.hibernate; import edu.northwestern.bioinformatics.studycalendar.domain.DomainTestCase; import edu.northwestern.bioinformatics.studycalendar.domain.ScheduledActivityMode; import edu.northwestern.bioinformatics.studycalendar.domain.ScheduledActivityState...
Java
domain/src/test/java/edu/northwestern/bioinformatics/studycalendar/domain/tools/hibernate/ScheduledActivityStateTypeTest.java
NUBIC/psc-mirror
bsd-3-clause
6,590
146
codeparrot/github-code
4a23f97fa2690d84988b576440cb70f3be381a65547539b1f1a407437aea3555
package org.mafagafogigante.dungeon.game; import org.mafagafogigante.dungeon.util.Percentage; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; /** * The LocationPreset class that serves as a recipe for Locations. */...
Java
src/main/java/org/mafagafogigante/dungeon/game/LocationPreset.java
ffurkanhas/dungeon
bsd-3-clause
2,633
112
codeparrot/github-code
b15a5d40ded7f8040ca7605e772afc531baedf739397919c12069b5406c56300
// Copyright 2017 Yanni Coroneos. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "../../embedded" "fmt" "runtime" "syscall" ) /* * This is the entry point of GERT. dont try anything fancy */ //go:nosplit func En...
GO
gert/armv7a/programs/gopher/kernel.go
ycoroneos/G.E.R.T
bsd-3-clause
1,928
89
codeparrot/github-code
7e889273210ddcbb6389777df7212c5839af98a1f86c8a482384925de1629f20
// Copyright 2012 Jimmy Zelinskie. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package geddit import ( "fmt" ) // Submission represents an individual post from the perspective // of a subreddit. Remember to check for nil pointers befor...
GO
submission.go
aggrolite/geddit
bsd-3-clause
1,804
56
codeparrot/github-code
579857588fdc4da269500f24d4102cfa1435979545dc84404db004a165f6bf2e
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/spdy/hpack_encoding_context.h" #include <cstddef> #include "base/logging.h" #include "base/macros.h" #include "net/spdy/hpack_constants.h"...
C++
net/spdy/hpack_encoding_context.cc
anirudhSK/chromium
bsd-3-clause
9,278
232
codeparrot/github-code
7751114fb323214411ecc29ba939343c50162214dafafed4778cd5e5bfd40552
import threading from ctypes import POINTER, Structure, byref, c_char, c_char_p, c_int, c_size_t from django.contrib.gis.geos.base import GEOSBase from django.contrib.gis.geos.libgeos import GEOM_PTR, GEOSFuncFactory from django.contrib.gis.geos.prototypes.errcheck import ( check_geom, check_sized_string, check_st...
Python
django/contrib/gis/geos/prototypes/io.py
erikr/django
bsd-3-clause
11,671
353
codeparrot/github-code
fba6d3aeddaf2ffff473554fc3bc20be52f64eef5a36723285e5a9fb8fb5c06e
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
C
Modules/Core/include/mitkImagePixelAccessor.h
NifTK/MITK
bsd-3-clause
3,925
138
codeparrot/github-code
e24a43046e2502e1163ee1d4b4f7cd1db729806c557aeb12462f101f2888ddae
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free...
C++
sky/engine/core/css/resolver/StyleResolverState.cpp
chinmaygarde/mojo
bsd-3-clause
2,199
62
codeparrot/github-code
900f9fd2b30020a64279bba8a5cdf4182b7dcd28bb30e4beff4caf5726d7e9d2
module Seek class ActivityStats #the time periods to be tested PERIODS={"daily"=>1.day.ago,"weekly"=>1.week.ago,"monthly"=>1.month.ago,"six_monthly"=>6.month.ago,"yearly"=>1.year.ago} #the item types to include INCLUDED_TYPES=["Sop","Model","Publication","DataFile","Assay","Study","Invest...
Ruby
lib/seek/activity_stats.rb
aina1205/virtualliverf1
bsd-3-clause
2,115
77
codeparrot/github-code
cd858db128195954a9bb293e74f10d33b26ee866fbc722245691339b31e65109
var url = document.URL; var array = url.split("/"); var base = array[3]; if (array[2] == 'localhost') { var staticurl = '/' + base + '/client/dashboard/reporting'; //var url_action = array[6].split("?")[0]; } else { var staticurl = '/client/dashboard/reporting'; // var url_action = array[5].split("?")[0]; } ...
JavaScript
js/basicscroll.js
skyinsurance/acars
bsd-3-clause
1,660
79
codeparrot/github-code
b585f8fbc9a706ba6da4b29dc4a61c967b6509326645e1b59472d19c236539ee
// 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 "google_apis/gaia/gaia_auth_util.h" #include <vector> #include "base/logging.h" #include "base/string_util.h" #include "base/strings/string...
C++
google_apis/gaia/gaia_auth_util.cc
loopCM/chromium
bsd-3-clause
2,370
76
codeparrot/github-code
11b1147e22403cf1e3ba6050f30d962dae9dd4f2ef504f8ba9b04b9a13610097
""" Methods to characterize image textures. """ import numpy as np from ._texture import _glcm_loop, _local_binary_pattern def greycomatrix(image, distances, angles, levels=256, symmetric=False, normed=False): """Calculate the grey-level co-occurrence matrix. A grey level co-occurence matr...
Python
skimage/feature/texture.py
SamHames/scikit-image
bsd-3-clause
10,468
294
codeparrot/github-code
d56331cb51d35dfec294936a12b613e3a1b4c09bc6da7d003e1f8bba4f429161
//= require ../store (function () { "use strict"; var AppJobs = FlynnDashboard.Stores.AppJobs = FlynnDashboard.Store.createClass({ displayName: "Stores.AppJobs", getState: function () { return this.state; }, willInitialize: function () { this.props = { appId: this.id.appId }; }, didInitialize: func...
JavaScript
lib/javascripts/stores/app-jobs.js
flynn-archive/flynn-dashboard-web
bsd-3-clause
899
54
codeparrot/github-code
ebb6fc268d625bc8ed6c566dd21db003f01a5de7b20723a36c20c657f77b0dbd
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h" #include "base/bind.h" #include "chrome/browser/chrome_n...
C++
chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
Workday/OpenFrame
bsd-3-clause
16,123
431
codeparrot/github-code
1a31df4844a2b14d6a6ad00c338e6592c98c5f72ffbbfe8a781824ef11c41de0
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys INSTALLED_APPS = [ 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'mptt', 'cms', 'menus', 'djangocms_inherit', 'south', ] DATABASES = { ...
Python
schemamigration.py
divio/djangocms-inherit
bsd-3-clause
1,455
61
codeparrot/github-code
fe19de8b3c41ae3f1f6af7cf87f50b2b4c204d7bc6dae68af25c2736448a58d3
/** * Copyright (c) 2017, Gluon * 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 ...
Java
spring-motd/client/src/main/java/com/gluonhq/spring/motd/client/service/Service.java
erwin1/gluon-samples
bsd-3-clause
2,745
62
codeparrot/github-code
616fe2d8491476333825479afa47916511077e13e4bc87ea158199738be5a5bd
/***************************************************************************** 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_dtrsen_work.c
jmfranck/pyspecdata
bsd-3-clause
5,430
123
codeparrot/github-code
0498234495bae54667486572da8583a50db3cba5e5253dc95b7c05cd7c07cf99
# Copyright (c) 2016, the GPyOpt Authors # Licensed under the BSD 3-clause license (see LICENSE.txt) from ...models import GPModel import numpy as np class CostModel(object): """ Class to handle the cost of evaluating the function. param cost_withGradients: function that returns the cost of evaluating ...
Python
GPyOpt/core/task/cost.py
SheffieldML/GPyOpt
bsd-3-clause
2,686
81
codeparrot/github-code
75b19e076ab187f8ef49c56cd49ad24d1f4b1b0cdf409e18be7264f97c11c27a
/* * Copyright (c) 2009, Cybozu Labs, 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 c...
C
minefield/server/picoev_epoll.c
methane/minefield
bsd-3-clause
4,974
171
codeparrot/github-code
50899e66b21207f10a071ec1666a0363005db25f2b395b7f6c9ef7a3f621133a
<?php namespace lukisongroup\purchasing\models\warehouse; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use lukisongroup\purchasing\models\warehouse\HeaderDetailRelease; /** * HeaderDetailReleaseSearch represents the model behind the search form about `lukisongroup\purchasing\models\warehouse\Header...
PHP
lukisongroup/purchasing/models/warehouse/HeaderDetailReleaseSearch.php
adem-team/advanced
bsd-3-clause
2,840
90
codeparrot/github-code
647616a452342724409587c5e7377e1941e37cfc08bf7ea9d2f088e2185de065
# -*- coding: utf-8 -*- """ Copyright (C) 2015, MuChu Hsu Contributed by Muchu Hsu (muchu1983@gmail.com) This file is part of BSD license <https://opensource.org/licenses/BSD-3-Clause> """ from selenium import webdriver import os import time import logging import re import random from cameo.utility import Utility from...
Python
cameo/spiderForTECHORANGE.py
muchu1983/104_cameo
bsd-3-clause
7,388
167
codeparrot/github-code
15cfcf7aa0620b2ac332fc806e055bcfebfee6dedd6aa04b98ab94b33d86724f
<div class="form" id="establecimientoForm"> <form action="" method="post">{% csrf_token %} {{ form.non_field_errors }} <div class="form-select"> {{ form.jurisdiccion.errors }} <label for="id_jurisdiccion">Jurisdicción:</label> {{ form.jurisdiccion }} </div> <div class="form-select"> {{ form.tipo_ge...
HTML
meregistro/templates/registro/dependencia_funcional/form.html
MERegistro/meregistro
bsd-3-clause
1,977
58
codeparrot/github-code
7fb748fec7015a5d60ddb9c04cb8a4a52a6739c2de9f2ba9b2b80cd529e36bc2
package de.intarsys.tools.locator; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Reader; import java.io.Writer; import java.net.URL; import java.util.ArrayList; import java.util.List; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import de.in...
Java
src/de/intarsys/tools/locator/ZipFileLocator.java
intarsys/runtime
bsd-3-clause
3,058
163
codeparrot/github-code
2836c9a6cde38cbc5610f1465d0328547a4c23dc8abcb5582ae53abc2f404bae
<?php require_once(__DIR__.DIRECTORY_SEPARATOR."config.php"); require_once(dirname(__DIR__). DIRECTORY_SEPARATOR. "unitConverter". DIRECTORY_SEPARATOR. "classUnitConverter.php" ); use SharedPHP\TestSuite; use SharedPHP\UnitConverter; # Muuta ...
PHP
PHP/testSuite/testUnitConverter.php
jahyvari/shared-php
bsd-3-clause
1,425
49
codeparrot/github-code
6de36a9d24d11f2890fc0e0f98089ebb56ab64ec41c45ac8b814434af119e7b6
#include <stdio.h> #include <stdlib.h> #include "Logging.h" #include "memutils.h" #include "path.h" int main(int argc, char *argv[]){ char *currDir = NULL; char relPath[] = "../doc"; char testPart[] = "/foo/bar/test.txt"; char *filePart = NULL; char *newDir = NULL; Logging_setup(argv[0], LOG_TOSTDERR | LOG...
C
src/PathTest.c
kaiaie/bile
bsd-3-clause
911
32
codeparrot/github-code
2a6034e9afd226e29baaacdfb1aa8bef1c951ffc283622da76e783c9d6cea41f
import itertools import os import re from abc import ABC, abstractmethod from glob import glob from pathlib import Path import numpy as np import torch from PIL import Image from ..io.image import _read_png_16 from .utils import verify_str_arg from .vision import VisionDataset __all__ = ( "KittiFlow", "Sint...
Python
torchvision/datasets/_optical_flow.py
pytorch/vision
bsd-3-clause
19,330
503
codeparrot/github-code
cc13dba98f8679a91e4276363cee127f412d232798bda3549389d84ebcbcc57e
<!DOCTYPE html> <html lang="en-US" dir="ltr"> <head> <meta charset="utf-8"> <title>YouTube mp3 :: Add-ons for Firefox</title> <link rel="shortcut icon" type="image/x-icon" href="https://addons.cdn.mozilla.net/static/img/favicon.ico"> <link title="Firefox Add-ons" ...
HTML
Source/Testing/HtmlRenderer.ExperimentalApp/Data/Files/youtube to mp3/09E9DA47A2F4B9A01280E8D0DED86F67.html
todor-dk/HTML-Renderer
bsd-3-clause
29,145
613
codeparrot/github-code
6d75d88d6588357f8927a0343e745573aba22772d3a5927e00605f96003c7f89
/* * Account.cpp * * Created on: 20 March 2015 * Author: cyosp */ #include <com/cyosp/mpa/core/Account.hpp> namespace mpa { bool Account::isAccountAlreadyExisting( string accountName ) { bool ret = false; // TODO : try to use BDD facilities // Get accounts list vector<mpapo::Account> accounts = all()...
C++
src/com/cyosp/mpa/core/Account.cpp
cyosp/MPA
bsd-3-clause
3,000
125
codeparrot/github-code
fa5529b6be95f2016acb76f698f7930345015990541b572d9c09cf3ace68a023
// This is a generated file. Not intended for manual editing. package io.v.vdl.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; import static io...
Java
gen/io/v/vdl/psi/impl/VdlTagImpl.java
vanadium/intellij-vdl-plugin
bsd-3-clause
933
36
codeparrot/github-code
6ad037790afb7a18e13a24f9f4479c43f4afe2f1be418bc63c77eb41e44ab487
// 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 "content/browser/frame_host/interstitial_page_impl.h" #include <vector> #include "base/bind.h" #include "base/compiler_specific.h" #include "ba...
C++
content/browser/frame_host/interstitial_page_impl.cc
ltilve/chromium
bsd-3-clause
33,808
904
codeparrot/github-code
0e68fe9ebe22967e3ff1f78fcd2a5a2df3f98b5611fb8ccaf9341875afb21748
#ifndef edan_internal_variant_layout_base_h_ #define edan_internal_variant_layout_base_h_ #include<utility> #include<memory> #include<vector> #include<variant> #include<string> namespace edan { template < //class Self, class Tb_ > class basic_layout_dataset_variant_base { public: std::variant <...
C
dataset-project/include/basic_layout_dataset_variant_base.h
edan-dev/EDAN
bsd-3-clause
2,034
110
codeparrot/github-code
e71eecf59d6367fcaa74c0d77fa5521c2e0ef0a73f86682c94226012b807b01b
/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
C++
src/api/c/transpose.cpp
shehzan10/arrayfire
bsd-3-clause
4,289
119
codeparrot/github-code
f6221fa30e314b7abcc70feac6622057ed146e66a48bc8b2b2d1fb1d06559060
# -*- coding: utf-8 -*- from __future__ import absolute_import class BadOption(Exception): """ Incorrect HTTP API arguments """ pass class RenderError(Exception): """ Error rendering page """ pass class InternalError(Exception): """ Unhandled internal error """ pass class GlobalTimeoutEr...
Python
splash/exceptions.py
Youwotma/splash
bsd-3-clause
1,502
56
codeparrot/github-code
486f3662d28078929008c657302a7bd4631dac6ae95c830c1da46e6a50fd7d3b
/* $NetBSD: if_ed.c,v 1.31 1999/03/25 23:10:13 thorpej Exp $ */ /* * Device driver for National Semiconductor DS8390/WD83C690 based ethernet * adapters. * * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. * * Copyright (C) 1993, David Greenman. This software may be used, modified, * copied, d...
C
netbsd/sys/arch/amiga/dev/if_ed.c
MarginC/kame
bsd-3-clause
31,749
1,255
codeparrot/github-code
23875d0a83cbefb9121c91d07754beae0ed5704dab7379497c6e979d228e3a20
#!/bin/bash -ex # # Copyright 2005-2019 The Mumble Developers. All rights reserved. # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file at the root of the # Mumble source tree or at <https://www.mumble.info/LICENSE>. if [ "${TRAVIS_REPO_SLUG}" == "mumble-voip/mumble" ] ...
Shell
scripts/travis-ci/script.bash
Lartza/mumble
bsd-3-clause
2,220
57
codeparrot/github-code
677c368982281adf44d7374b2145800893c785a625116233585c48c3fd4faac2
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
C++
third_party/llvm/libcxx/test/std/input.output/file.streams/fstreams/fstream.members/open_path.pass.cpp
endlessm/chromium-browser
bsd-3-clause
1,488
56
codeparrot/github-code
4f798bafe39e1af47c1912f458204f3567a219816356b4639ebb8bc0d5b39828
"Yang/Wu's OEP implementation, in PyQuante." from math import sqrt import settings from PyQuante.NumWrap import zeros,matrixmultiply,transpose,dot,identity,\ array,solve from PyQuante.Ints import getbasis, getints, getJ,get2JmK,getK from PyQuante.LA2 import geigh,mkdens,trace2,simx from PyQuante.hartree_fock impo...
Python
PyQuante/OEP.py
berquist/PyQuante
bsd-3-clause
25,427
722
codeparrot/github-code
530ad4874e73a143fcaf26760fa25f3a10aadfe61ff56df8de700565f32532ba
<?php namespace Obsequium\Entity; use Doctrine\ORM\Mapping as ORM; use Zend\Stdlib\Hydrator\ClassMethods; /** * Escala * * @ORM\Table(name="escala", indexes={@ORM\Index(name="fk_escala_policial1_idx", columns={"pol_Codigo"})}) * @ORM\Entity */ class Escala { /** * @var integer * * @ORM\Column...
PHP
module/Obsequium/src/Obsequium/Entity/Escala.php
clauderlima/bpma
bsd-3-clause
4,158
210
codeparrot/github-code
21c6e3dfd422b7027e5a5d8a1d98fa67dbdc87b5fcd110e704e72aa594cb14db
<?php namespace App\Http\Requests\User; use App\User; use Illuminate\Foundation\Http\FormRequest; class UserEditRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return \Auth::check()...
PHP
app/Http/Requests/User/UserEditRequest.php
pierobot/mangapie
bsd-3-clause
618
33
codeparrot/github-code
17995e5aca6f21e683c151a519a370587abe3ecb6ce88767668962d367690c13
import React from 'react'; import styled from '@emotion/styled'; import space from 'app/styles/space'; import {getListSymbolStyle, listSymbol} from './utils'; type Props = { children: Array<React.ReactElement>; symbol?: keyof typeof listSymbol | React.ReactElement; className?: string; }; const List = styled((...
TypeScript
src/sentry/static/sentry/app/components/list/index.tsx
beeftornado/sentry
bsd-3-clause
1,235
54
codeparrot/github-code
6630a86a2ddf4f759ca1edeebdca3d9c623da9a946083f25b3356339c367b83b
/* Copyright (c) 2006, NIF File Format Library and Tools All rights reserved. Please see niflib.h for license. */ //-----------------------------------NOTICE----------------------------------// // Some of this file is automatically filled in by a Python script. Only // // add custom code in the designated areas o...
C++
src/obj/BSDismemberSkinInstance.cpp
BlazesRus/niflib
bsd-3-clause
4,491
161
codeparrot/github-code
62643512423a91849e2146cf831b1d8974cecfd54cc4ab0b0bd40475bb334f98
//---------------------------------------------------------------------------// //! //! \file tstTwoDDistributionHelpers.cpp //! \author Luke Kersting //! \brief Coherent photon scattering distribution unit tests //! //---------------------------------------------------------------------------// // Std Lib Includes...
C++
packages/monte_carlo/collision/native/test/tstTwoDDistributionHelpers.cpp
lkersting/SCR-2123
bsd-3-clause
15,030
402
codeparrot/github-code
6789be0345b0834d4a6396de31690c0675b2a275b2ecd9e3f25bc777140fc2c9
// Copyright 2015 The Vanadium Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package namespace import ( "io" "strings" "sync" "v.io/v23" "v.io/v23/context" "v.io/v23/glob" "v.io/v23/naming" "v.io/v23/options" "v.io/v23/r...
GO
runtime/internal/naming/namespace/glob.go
vanadium/go.ref
bsd-3-clause
7,783
265
codeparrot/github-code
a6603e55d8f844d41b29a6a0cbfa7343dea65c2e8db132753b146fb001e42183
#ifndef __UI_EDITOR_INTROSPECTION_PROPERTY__ #define __UI_EDITOR_INTROSPECTION_PROPERTY__ #include "ValueProperty.h" namespace DAVA { class UIControl; class UIDataBindingComponent; class UILayoutSourceRectComponent; } class IntrospectionProperty : public ValueProperty { public: IntrospectionProperty(DAVA::BaseOb...
C
Programs/QuickEd/Classes/Model/ControlProperties/IntrospectionProperty.h
dava/dava.engine
bsd-3-clause
2,801
83
codeparrot/github-code
9a88c90f4e91ff414bde5fb73997ee39b22ee3ea8d821ab2dfe0a40c7838c642
{-# LANGUAGE TemplateHaskell, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses, TypeFamilies #-} module WormLikeChain where import Control.Applicative import Control.Monad import qualified Data.Vector.Unboxed as V import qualified Data.Vector.Generic import qualified Data.Vector.Generic.Mutable import Data...
Haskell
WormLikeChain.hs
bgamari/polymer-models
bsd-3-clause
6,278
184
codeparrot/github-code
2389c210a9dffeaed44f145723ab88abf1da839279f820464ef6a52428e18749
// This is a generated file. Not intended for manual editing. package io.v.vdl.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; import static io...
Java
gen/io/v/vdl/psi/impl/VdlFunctionLitImpl.java
vanadium/intellij-vdl-plugin
bsd-3-clause
1,102
47
codeparrot/github-code
6a89d5d1a6c2420be9d9722f1155e3e294c7c38ff83b3b55f47bffe05b2e19ec
/** Copyright 2009-2017 National Technology and Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government retains certain rights in this software. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering...
C
sprockit/sprockit/serialize_array.h
minyee/sst-macro
bsd-3-clause
3,546
116
codeparrot/github-code
5a5c569e7dab24e1c9d3c99bdafba77076dd5a240e0276b2aa9479c8fd6399d3
from __future__ import print_function, division from sympy.core import S, sympify, cacheit, pi, I, Rational from sympy.core.add import Add from sympy.core.function import Function, ArgumentIndexError, _coeff_isneg from sympy.functions.combinatorial.factorials import factorial, RisingFactorial from sympy.functions.elem...
Python
sympy/functions/elementary/hyperbolic.py
kaushik94/sympy
bsd-3-clause
48,081
1,653
codeparrot/github-code
89efabea8ef415e598d737def465dfa2263eccfe463289d0326b8712387fec4c
package goftp import ( "fmt" "strings" ) //ftp客户端命令的帮助信息 var FTP_CLIENT_CMD_HELP = map[string]string{ FCC_HELP: "print local help information", FCC_QUESTION_MARK: "print local help information", FCC_CD: "change remote working directory", FCC_LS: "list contents of remote path", FC...
GO
src/goftp/goftphelp.go
jemygraw/goftp
bsd-3-clause
1,771
64
codeparrot/github-code
c6a8e29d83ee4b663d6b68a971cc5238b5116104c927773ecf402e5660e7a791
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/api/storage/managed_value_store_cache.h" #include <set> #include "base/bind.h" #include "base/bind_helpers.h" #i...
C++
chrome/browser/extensions/api/storage/managed_value_store_cache.cc
nacl-webkit/chrome_deps
bsd-3-clause
9,636
251
codeparrot/github-code
48982e34f755d54a27c93a1086461128fcfca198e14fbc539bc9c4ca38e0ce1e
// Restrict output in a codecell to a maximum length define([ 'base/js/namespace', 'jquery', 'notebook/js/outputarea', 'base/js/dialog', 'notebook/js/codecell', 'services/config', 'base/js/utils' ], function(IPython, $, oa, dialog, cc, configmod, utils) { "use strict"; var base_url...
JavaScript
nbextensions/usability/limit_output/main.js
jbn/IPython-notebook-extensions
bsd-3-clause
4,242
121
codeparrot/github-code
f88f8a0e460f29b981432c3b06fa3e3a6085579c6abcde2a0baf26eaf1ef9f3b
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libdokan import ( "strings" "time" "github.com/keybase/client/go/kbfs/data" "github.com/keybase/client/go/kbfs/dokan" "github.com/keybase/client/go/kbfs/i...
GO
go/kbfs/libdokan/common.go
keybase/client
bsd-3-clause
5,056
176
codeparrot/github-code
9c0b8aab3a3f7174c714824099d1fb1d70ce3ca5faf3993cc289a6e8bf080911
#!/usr/bin/env python """ Single trace Analysis """ __author__ = "Yanlong Yin (yyin2@iit.edu)" __version__ = "$Revision: 1.4$" __date__ = "$Date: 02/08/2014 $" __copyright__ = "Copyright (c) 2010-2014 SCS Lab, IIT" __license__ = "Python" import sys, os, string, getopt, gc, multiprocessing from sig import * from acc...
Python
src/analysis/single_trace_analysis.py
yinyanlong/iosig
bsd-3-clause
8,008
250
codeparrot/github-code
b3656f4e1b981c4b70e056b8cd0bc1d2e1f825460efc34cc84b9581141ef595d
// // Copyright 2015 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // BufferGL.cpp: Implements the class methods for BufferGL. #include "libANGLE/renderer/gl/BufferGL.h" #include "common/debug.h" #include "co...
C++
src/libANGLE/renderer/gl/BufferGL.cpp
mikolalysenko/angle
bsd-3-clause
5,956
203
codeparrot/github-code
3a58006f43b2baf388637ffba24efc057215dbb5f082cbfaf505d72c90a6fc43
/** * Copyright (c) 2015 See AUTHORS file * 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...
Java
core/src/main/java/org/mini2Dx/core/graphics/ShapeTextureCache.java
hyperverse/mini2Dx
bsd-3-clause
6,063
147
codeparrot/github-code
8076056ce79699a7acf0b93e71dbfac97a87a094a403dda0e9babd058e2ebe3e
/* dlasq5.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
C
src/lapack/dlasq5.c
juanjosegarciaripoll/cblapack
bsd-3-clause
5,718
222
codeparrot/github-code
39490d64697d81859b37cc95741373f4d47759d1765f48433f6706c9cf4eafa2
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__char_min_postdec_03.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-03.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: min Set data to the min value for char * GoodSource: ...
C
xcc/test/juliet/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__char_min_postdec_03.c
JianpingZeng/xcc
bsd-3-clause
4,663
185
codeparrot/github-code
5484745b7035b9d3194b5a11f42d77671d84e6711a6a503a5636f7f956ba6578
/*****************************************************************************/ /** * @file ParticleBasedRenderer.cpp * @author Naohisa Sakamoto */ /*****************************************************************************/ #include "ParticleBasedRendererGLSL.h" #include <cmath> #include <kvs/OpenGL> #includ...
C++
Source/Core/Visualization/Renderer/ParticleBasedRendererGLSL.cpp
naohisas/KVS
bsd-3-clause
17,008
505
codeparrot/github-code
e2856c54d54da9fabc9fefbc4f9672e7f0e9e2793c01a342a0f3602e51bb6705
#import "DBStatusBackgroundView.h" #import "DBStatusBarItemView.h" @class DBStatusWindowController; @protocol PanelControllerDelegate <NSObject> @optional - (DBStatusBarItemView *)statusItemViewForPanelController:(DBStatusWindowController *)controller; @end #pragma mark - @interface DBStatusWindowController : NS...
C
DBStatusBar/DBStatusWindowController.h
dbainbridge/DBStatusBar
bsd-3-clause
825
32
codeparrot/github-code
f5d944be592e530c0e902b92bf136599bba66453b06ad7060ef2e96641353c8b
/*------------------------------------------------------------------------- * * Copyright (c) 2004-2014, PostgreSQL Global Development Group * * *------------------------------------------------------------------------- */ package org.postgresql.jdbc2; import java.lang.reflect.Method; import java.sql.SQLException; imp...
Java
org/postgresql/jdbc2/EscapedFunctions.java
ekoontz/pgjdbc
bsd-3-clause
25,872
597
codeparrot/github-code
9e54c900566d3662d61b289b9dc276716022d48ed5008e2d32e34e3de6f3172d
(function(config, models, views, routers, utils, templates) { // This is the top-level piece of UI. views.Application = Backbone.View.extend({ // Events // ------ events: { 'click .toggle-view': 'toggleView' }, toggleView: function (e) { e.preventDefault(); e.stopPropagation(); var l...
JavaScript
_includes/views/application.js
dilbapat/dilbapat.github.com
bsd-3-clause
4,664
168
codeparrot/github-code
b997cc782d95a156c0c54fe41431fd74bbc56eff247fed86286996bcf5c3ec17
<?php namespace app\modules\aux_planejamento\models\planilhas; use Yii; /** * This is the model class for table "planilhaconsumo_planico". * * @property integer $id * @property string $planilhadecurso_cod * @property integer $planodeacao_cod * @property integer $materialconsumo_cod * @property integer $planic...
PHP
modules/aux_planejamento/models/planilhas/PlanilhaConsumo.php
FernandoMauricio/portal-senac
bsd-3-clause
2,227
80
codeparrot/github-code
784cd5be40e00aa270ee765cfa18780d3b208c155da890f701ab267b9ce41d39
using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Linq; using Projac.Sql; namespace Projac.SqlClient.Legacy { public static partial class TSql { /// <summary> /// Returns a T-SQL non query stored procedure. /// </summary> /// <param...
C#
src/Projac.SqlClient/Legacy/TSql.NonQueryProcedure.cs
yreynhout/Projac
bsd-3-clause
4,624
97
codeparrot/github-code
2a1d2fe9054eecbd15509dab575778edc75926ac44689d31e621d234c4b1f6d4
{-# LANGUAGE TypeFamilies ,MultiParamTypeClasses,DeriveFunctor,DeriveFoldable,DeriveGeneric ,TypeOperators#-} module Scaling.S1 where import Space.Class import Exponential.Class import Data.Foldable import Multiplicative.Class import Data.FMonoid.Class import Data.Distributive import Data.Monoid import Linear.V2 impor...
Haskell
Scaling/S1.hs
massudaw/mtk
bsd-3-clause
1,199
47
codeparrot/github-code
ef5f6376367514d597511a86420a0617d75d10ed5a1eb16815e3fe6f30181eee
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // HTTP server. See RFC 2616. package http import ( "bufio" "bytes" "context" "crypto/tls" "errors" "fmt" "io" "io/ioutil" "log" "net" "net/textpro...
GO
src/net/http/server.go
linux-on-ibm-z/go
bsd-3-clause
95,139
3,206
codeparrot/github-code
b51ac7c2f7f08de4be5654734a9a1a7f0cdf39f889bc076f4281de33c5342795
/* Copyright (c) 2006-2013, Alexis Royer, http://alexis.royer.free.fr/CLI 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 abo...
C++
cpp/src/tk.cpp
kn65op/cli-toolkit
bsd-3-clause
3,472
92
codeparrot/github-code
ab5fda70d7c9d65e2c6b3619a45e7326c1c10616691ea13cd95658c813004e6e
# 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. """Provides a layer of abstraction for the issue tracker API.""" import logging from apiclient import discovery from apiclient import errors import httplib...
Python
dashboard/dashboard/issue_tracker_service.py
SummerLW/Perf-Insight-Report
bsd-3-clause
6,428
191
codeparrot/github-code
8fa03b40757683890d38d2cf973edbc0350f4d12d3dd2855036b820cfd90f71c
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-} module Text.HeX.Standard.LaTeX (defaults) where import Text.HeX import Text.HeX.Standard.TeX (ctl, ch, grp) import Text.HeX.Standard.Generic (getSectionNum) defaults :: HeX () defaults = do addParser [Inline] $ basicInline ch addParser [Block] $ basicBlock t...
Haskell
Text/HeX/Standard/LaTeX.hs
jgm/HeX
bsd-3-clause
1,264
39
codeparrot/github-code
f5e3f5555b0a6488059c6776d362e6e35944054f799fb663d4cec2154597e6ef
#ifndef DUNE_AX1_ELECTROLYTE_HH #define DUNE_AX1_ELECTROLYTE_HH #include <valarray> #include <vector> #include <dune/ax1/common/constants.hh> // Ion template<class T> class Ion { public: Ion (T valence_, std::string name_, T relCon_=1.0) : valence(valence_), relCon(relCon_), name(name_) {} ...
C++
dune/ax1/common/electrolyte.hh
pederpansen/dune-ax1
bsd-3-clause
3,901
173
codeparrot/github-code
f875b10ef66e37fff7d2781edf2f896b1c57ceb1f270ca1a15c7a11a9abc8c3a
// // Created by mwo on 6/11/15. // #ifndef XMREG01_CMDLINEOPTIONS_H #define XMREG01_CMDLINEOPTIONS_H #include <iostream> #include <string> #include <boost/program_options.hpp> #include <boost/optional.hpp> namespace xmreg { using namespace std; using namespace boost::program_options; /** * Manag...
C
src/CmdLineOptions.h
moneroexamples/onion-monero-blockchain-explorer
bsd-3-clause
688
38
codeparrot/github-code
5d696adedb760a37cee663418e5931d011a7f3f55c1ce66b0460f944ad1fdff6
package edu.umass.cs.jfoley.coop.conll.classifier; import ciir.jfoley.chai.collections.Pair; import gnu.trove.map.hash.TIntFloatHashMap; import java.util.Iterator; /** * @author jfoley. */ public class SparseFloatFeatures implements FeatureVector { TIntFloatHashMap features; @Override public Iterator<Pair<I...
Java
src/main/java/edu/umass/cs/jfoley/coop/conll/classifier/SparseFloatFeatures.java
jjfiv/coop
bsd-3-clause
712
33
codeparrot/github-code
b7e30e2a2a9780ad41c22f896c7625e1ee586d5757f1814f6a48030cd88fdeee
/* * This file is part of RHexLib, * * Copyright (c) 2001 The University of Michigan, its Regents, * Fellows, Employees and Agents. All rights reserved, and distributed as * free software under the following license. * * Redistribution and use in source and binary forms, with or without * modification, are pe...
C++
hardware/UofM/MAnalogProbe.cc
kiik/RHexLib
bsd-3-clause
4,389
133
codeparrot/github-code
5e6788324927d5ae21e47f91cfec412c5637de8ee46988dae978006073d48ac3
import java.util.*; public class Row<T> { private HashMap<String, T> rowValues; private int nColumns; public Row(int c) { nColumns = c; rowValues = new HashMap<String, T>(nColumns); } public HashMap<String, T> getRowValues() { return rowValues; } public void setRowValues(HashMap<String, T> rowValue...
Java
Spam ID3/src/Row.java
Nelspike/UniversityStuff
bsd-3-clause
760
46
codeparrot/github-code
694ca44fda1fb6b44287aca352be7e719a7cc4f86b4838a75de00dcd3a285c4e
// 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 "native_client/src/trusted/plugin/pnacl_coordinator.h" #include <utility> #include <vector> #include "native_client/src/include/checked_cas...
C++
ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc
zcbenz/cefode-chromium
bsd-3-clause
38,753
979
codeparrot/github-code
c854d6d83e55dd7ae2e4d5c783d7251566c3b4e15ff88f543e6c4fa6fa5f46f3
# -*- coding: utf-8 -*- from flask import render_template, redirect, url_for, flash, abort from purchasing.decorators import requires_roles from purchasing.data.stages import Stage from purchasing.data.flows import Flow from purchasing.conductor.forms import FlowForm, NewFlowForm from purchasing.conductor.manager im...
Python
purchasing/conductor/manager/flow_management.py
codeforamerica/pittsburgh-purchasing-suite
bsd-3-clause
2,911
82
codeparrot/github-code
0cf1524ac793f2ebbc9f0d6c7e22ca95d1437ce059ae4dc9e04ca4298eef9474
<? include('emoji.php'); header('Content-type: text/plain; charset=UTF-8'); # # this code point was picked on purpose. the conversion from unified to # various types is roundtrip-capable, but the same codepoint in e.g. # DoCoMo is also used for other unified characters. # $test_iphone = "Hello \...
PHP
emoji/test.php
hdmessaging/brightkite-wordpress
bsd-3-clause
2,003
69
codeparrot/github-code
7d8af24c6c54d6cde64200ced4fde9178792172716cc82cb17dd456c7aed86e3
/* Copyright (c) 2009-2012, Jack Poulson All rights reserved. This file is part of Elemental. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyri...
C++
include/elemental/core/matrix.hpp
ahmadia/elemental
bsd-3-clause
38,436
1,400
codeparrot/github-code
e70775fbf8c8a4bd346c852679d4b4e70edf0373eaac3bcf1918163dcac9eae3
import threading from collections import defaultdict from funcy import once, decorator from django.db import DEFAULT_DB_ALIAS, DatabaseError from django.db.backends.utils import CursorWrapper from django.db.transaction import Atomic, get_connection, on_commit from .utils import monkey_mix __all__ = ('queue_when_in...
Python
cacheops/transaction.py
Suor/django-cacheops
bsd-3-clause
4,124
133
codeparrot/github-code
ce62ccbdd661abdddb15bfdfb775a3d1744544909ce985bc29e5dc3e32196202
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=50 -ast-print %s | FileCheck %s // RUN: %clang_cc1 -fopenmp -fopenmp-version=50 -x c++ -std=c++11 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -fopenmp-version=50 -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s // RUN: %clang_cc1 -ver...
C++
third_party/llvm/clang/test/OpenMP/parallel_for_ast_print.cpp
endlessm/chromium-browser
bsd-3-clause
5,443
153
codeparrot/github-code