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 |
|---|---|---|---|---|---|---|---|---|
c0185ecf68571740f16c7d5281237cfcc23facf1c08dd139f71c67f4750deaca | // Copyright 2014 Toggl Desktop developers.
#ifndef SRC_UI_LINUX_TOGGLDESKTOP_GENERICVIEW_H_
#define SRC_UI_LINUX_TOGGLDESKTOP_GENERICVIEW_H_
#include <QObject>
#include <QVector>
#include "./toggl_api.h"
class GenericView : public QObject {
Q_OBJECT
public:
explicit GenericView(QObject *parent = 0);
... | C | src/ui/linux/TogglDesktop/genericview.h | codeman38/toggldesktop | bsd-3-clause | 952 | 39 | codeparrot/github-code |
1a9bbbb940d23fdac3d76bfa009106063c4e74b4e89eedb6ec9c68bfe82dd817 | // Copyright 2018 Google Inc. 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 applicable... | C++ | base/synchronization/condition_variable_starboard.cc | youtube/cobalt | bsd-3-clause | 2,603 | 83 | codeparrot/github-code |
62e20e6a6247df30f5686236796d8a1316e1b87b639393b1ee360c31ec365c49 | // Copyright 2020 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/ash/net/network_diagnostics/signal_strength_routine.h"
#include "chromeos/services/network_config/public/cpp/cros_network_config... | C++ | chrome/browser/ash/net/network_diagnostics/signal_strength_routine_unittest.cc | scheib/chromium | bsd-3-clause | 5,001 | 128 | codeparrot/github-code |
4df823e44c1f7480be7d6988a5901c95647f6f621fa9ebdf81c9a6932f459025 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__malloc_char_fgets_83_goodG2B.cpp
Label Definition File: CWE789_Uncontrolled_Mem_Alloc__malloc.label.xml
Template File: sources-sinks-83_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: fge... | C++ | xcc/test/juliet/testcases/CWE789_Uncontrolled_Mem_Alloc/s01/CWE789_Uncontrolled_Mem_Alloc__malloc_char_fgets_83_goodG2B.cpp | JianpingZeng/xcc | bsd-3-clause | 2,202 | 59 | codeparrot/github-code |
d96d967ddb51f0cbfb2b54133406a7c6e75843cbc5b042dafd4f09423c92a5dd |
/*
* Carrot2 project.
*
* Copyright (C) 2002-2015, Dawid Weiss, Stanisław Osiński.
* All rights reserved.
*
* Refer to the full license file "carrot2.LICENSE"
* in the root folder of the repository checkout or at:
* http://www.carrot2.org/carrot2.LICENSE
*/
package org.carrot2.source.microsoft;
import java.... | Java | core/carrot2-source-microsoft/src/org/carrot2/source/microsoft/Bing3DocumentSource.java | MjAbuz/carrot2 | bsd-3-clause | 16,040 | 492 | codeparrot/github-code |
202e227426813a90218a28fa144ec4598ba4c8dc52166621466af9ba69544fe6 |
/*
* Copyright (C) xianliang.li
*/
#include <lxl_config.h>
#include <lxl_core.h>
#include <lxl_dfss.h>
typedef struct {
lxl_dfss_upstream_conf_t upstream;
} lxl_dfss_storage_srv_conf_t;
static void lxl_dfss_storage_init_request(lxl_dfss_request_t *r, lxl_dfss_upstream_t *u);
static int lxl_dfss_storage_creat... | C | src/dfs/storage/lxl_dfss_storage.c | lixianliang/speed | bsd-3-clause | 16,271 | 701 | codeparrot/github-code |
b75458298b3ebc3a09a337e92cd8040be8ccf385dfe251c4fad1a63d35eada01 | <?php
namespace backend\controllers;
use Yii;
use common\models\AuthItem;
use backend\models\AuthItemSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
/**
* AuthItemController implements the CRUD actions for AuthItem model.
*/
class Aut... | PHP | backend/controllers/AuthItemController.php | ibergonzi/opticas | bsd-3-clause | 3,791 | 146 | codeparrot/github-code |
653da05d14d096f3f3d408c5c00ec3df6a96bf1911ca9110d7395f9fb8202b2c | package test.data.sale;
import java.time.ZonedDateTime;
/**
* Définit une vente au comptoir en jeu.
* @author Fabrice Bouyé
*/
public final class Sale {
/**
* L'id de la vente.
*/
int id;
/**
* L'id de l'objet vendu.
*/
int itemId;
/**
* La quantité d'objets vendus.
... | Java | src/test/data/sale/Sale.java | fabricebouye/SalesListing | bsd-3-clause | 1,099 | 71 | codeparrot/github-code |
0a0e8ae61f2515984acd7106987935f1910e3a2a5f6ed30b38dd2e800e25fe32 | #!/usr/bin/python
import sqlite3, os, string, hashlib
from Crypto.Random import random
###################################################
#
# Default values for the config
#
###################################################
# Staging Key is set up via environmental variable
# or via command line. By setting RAND... | Python | setup/setup_database.py | rvazarkar/Empire | bsd-3-clause | 5,322 | 192 | codeparrot/github-code |
bcb47c274ac40ab101e746975274e5c87f72d64118f40553984d7d5b82eb582c | package net.md_5.bungee.config;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
import java.util.Map;
public class YamlConfigurationTest
{
private String docuement = ""
+ "receipt: Oz-Ware Purchase Invoice\n"
+ "date: 2012-08-06\n"
+ "custome... | Java | config/src/test/java/net/md_5/bungee/config/YamlConfigurationTest.java | net32/BungeeCord-1.6.4-1.7.10 | bsd-3-clause | 2,198 | 63 | codeparrot/github-code |
85c016cb433e8f4bb6a68fad32de7b16b24df3706b28fb9a7e59771dc10f65fe | /* Copyright (c) 2005 Russ Cox, MIT; see COPYRIGHT */
#ifndef _TASK_H_
#define _TASK_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
#include <stdarg.h>
#include <unistd.h>
#include <inttypes.h>
#include <zmq.h>
/*
* basic procs and threads
*/
typedef struct Task Task;
typedef struct Tasklist Tasklist;
int anyre... | C | src/task/task.h | mattknox/Mongrel2 | bsd-3-clause | 2,658 | 150 | codeparrot/github-code |
b821d7b9bbd5556476a0691e3dc0976e4e267842aedcbcd83dc2600254619e83 | module Poro
# This class serves as both the base class for all context factories, and the
# root class for retriving the application's context factory.
class ContextFactory
# The base error type for a factory specific error.
class FactoryError < RuntimeError; end
# Returns the context fact... | Ruby | lib/poro/context_factory.rb | paploo/poro | bsd-3-clause | 2,922 | 75 | codeparrot/github-code |
09d7baf60b5eae09d2de69ecad5552f391eb2cf3e2b1979e0ca13556c166c404 | #include <stdio.h>
#include <stdlib.h>
#include "../header/cregres.h"
int main(void) {
int N, p, intercept;
double alpha;
double *res2;
char *llsmethod = "qr";
N = 15;
p = 3;
intercept = 1;
// p = 3 corresponds to one dependent variable (YY) and two independent variables
// YY = b0 + b1 * X1 + b2 * X2 + u
... | C | test/regex5.c | rafat/cregres | bsd-3-clause | 3,114 | 79 | codeparrot/github-code |
ef158fd00a2078eb3ccc049cb7d9254e9a08dc4103599013efe25196334cf0b5 |
#ifndef BOOST_MPL_MAX_ELEMENT_HPP_INCLUDED
#define BOOST_MPL_MAX_ELEMENT_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/... | C++ | boost/boost/mpl/max_element.hpp | verma/PDAL | bsd-3-clause | 1,746 | 73 | codeparrot/github-code |
71f8098244b29699c35ea7a6884cdd917df49bdb8cd37ec0a3fe9c4a89d0c749 | #include "THClTensorMath.h"
#include "THClGeneral.h"
//#include "THClBlas.h"
#include "THClTensorCopy.h"
//#include "THClTensorRandom.h"
#include "THClApply.h"
#include "THClReduce.h"
#include "THClKernels.h"
#include "THClReduceApplyUtils.h"
#include <iostream>
#include <string>
using namespace std;
static std::stri... | C++ | src/lib/THClGather.cpp | hughperkins/cltorch | bsd-3-clause | 6,627 | 170 | codeparrot/github-code |
89abe684f025d5b382c2b53c5d8bd1aa2d48aa69576d87ce75438e8a20ac87e3 | /* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Flash memory module for Chrome EC - common functions */
#include "common.h"
#include "console.h"
#include "flash.h"
#include "gpio.h"
#incl... | C | common/flash.c | fachang/Algorithm | bsd-3-clause | 17,701 | 649 | codeparrot/github-code |
9cec245ba6c8ca51c9e33f617e45d0d5f4d495e61c3e5cd45cd22029c5e4d0fb | #
# Copyright(c) Anders Kindberg 2003
#
require 'madeleine'
module Madeleine
module Clock
# Let your system extend this module if you need to access the
# machine time. Used together with a TimeActor that keeps
# the clock current.
module ClockedSystem
# Returns this system's Clock.
de... | Ruby | lib/madeleine/clock.rb | ghostganz/madeleine | bsd-3-clause | 1,705 | 80 | codeparrot/github-code |
c1dc1a76f2e57966d45e3569523706d568203433ea47ddbddf27d3238f0f7b3a | /*!
* @file Printable.h
* @author 橋本敦史
* @date Last Change:2012/Jan/13.
*/
#ifndef __SKL_PRINTABLE_H__
#define __SKL_PRINTABLE_H__
#include "Serializable.h"
#include "Comparable.h"
#include <iostream>
#include <string>
#include <memory.h>
namespace skl{
/*!
* @brief 文字列として書き出しが可能であることを保証するインターフェ... | C | src/modules/Core/include/Printable.h | AtsushiHashimoto/TableObjectManager | bsd-3-clause | 2,261 | 119 | codeparrot/github-code |
22b3b5133aeb9b5e22f461e1cfcda3e3a9c63c1f69c43af09a152d92bf78af18 | package org.broadinstitute.hellbender.utils.spark;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.ja... | Java | src/main/java/org/broadinstitute/hellbender/utils/spark/SparkConverter.java | broadinstitute/gatk-protected | bsd-3-clause | 4,078 | 103 | codeparrot/github-code |
bbc5eb9363f56f55f2e97bd21e4b4f6736d0f2b26ba2e820c9e228cdda9cf490 | /*****************************************************************************
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_dpoequ.c | jmfranck/pyspecdata | bsd-3-clause | 2,553 | 53 | codeparrot/github-code |
6c226cf49a74cf5220b12b81fa260db37d5d0ee62620f627117dd63eda12b639 | // 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 "media/audio/pulse/audio_manager_pulse.h"
#include "base/command_line.h"
#include "base/environment.h"
#include "base/files/file_path.h"
#includ... | C++ | media/audio/pulse/audio_manager_pulse.cc | zcbenz/cefode-chromium | bsd-3-clause | 8,468 | 262 | codeparrot/github-code |
48b5f5fd0cf663145370d58a9def725582537f7fa8f59bd736e9b6a67b9d61db | /**
* @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'tcount', function( editor ) {
// Add a new option to a SELECT object (combo or list).
function addOption( combo, optionText, op... | JavaScript | protected/extensions/bootstrap/assets/js/ckeditor/plugins/tdforms/dialogs/tcount.js | GsHatRed/Yiitest | bsd-3-clause | 23,053 | 522 | codeparrot/github-code |
1afedb9748f8c83b0ffae33da96b1044b7d7928074c7f3b48c789f7ae5dedeb9 | package de.plushnikov.intellij.plugin.provider;
import com.intellij.codeInsight.daemon.ImplicitUsageProvider;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiField;
import de.plushnikov.intellij.plugin.processor.LombokPsiElementUsage;
import java.util.Collection;
/**
* Provides implicit usages of lom... | Java | lombok-plugin/src/main/java/de/plushnikov/intellij/plugin/provider/LombokImplicitUsageProvider.java | HamsterCoders/lombok-intellij-plugin | bsd-3-clause | 2,322 | 66 | codeparrot/github-code |
6a09a7823696fc98647de30519e3d61f80605417096aae6abf4f62ffbb9910f8 | <?php
/**
* Created by PhpStorm.
* User: 2m
* Date: 2017/2/1
* Time: 上午12:21
*/
namespace app\controllers;
class RoleController
{
const NORMAL = 'normal';
const GROUP_ADMIN = 'group_admin';
const SYSTEM_ADMIN = 'system_admin';
public static $map = [
self::NORMAL => [
'indexCo... | PHP | controllers/RoleController.php | yxwuxuanl/repair | bsd-3-clause | 1,132 | 51 | codeparrot/github-code |
a69a1716591dd79239ae58f6975b0d9015d45cab0efeb78d2ebad753619eef20 | /* Copyright (c) 2013-2014 Boundless and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/edl-v10.html
*
* Cont... | Java | src/geotools/src/test/java/org/locationtech/geogig/geotools/cli/postgis/PGImportTest.java | tsauerwein/geogig | bsd-3-clause | 6,187 | 185 | codeparrot/github-code |
e40ca2337a0184954f02544063a7912e413fec634e8796f71073be7390f15aa5 | package org.cagrid.core.cache;
import java.util.concurrent.ConcurrentHashMap;
public class WeakValueConcurrentCache<K, V> {
private final ConcurrentHashMap<K, WeakValue<V>> map = new ConcurrentHashMap<K, WeakValue<V>>();
public V get(K key) {
WeakValue<V> weakValue = map.get(key);
return cleanUp(key, weakValu... | Java | cagrid-core/src/main/java/org/cagrid/core/cache/WeakValueConcurrentCache.java | NCIP/cagrid2 | bsd-3-clause | 1,645 | 67 | codeparrot/github-code |
58af84c33145582f9ac8260b55aac6d5e476f6a6f792238981c94196f56379da | require_relative '../../../helpers/carto/html_safe'
require_relative '../api/vizjson_presenter'
module Carto
module Admin
class VisualizationPublicMapAdapter
extend Forwardable
include Carto::HtmlSafe
GEOMETRY_MAPPING = {
'st_multipolygon' => 'polygon',
'st_polygo... | Ruby | app/controllers/carto/admin/visualization_public_map_adapter.rb | raquel-ucl/cartodb | bsd-3-clause | 3,334 | 112 | codeparrot/github-code |
3582190e343cafd7d2257395ff1b379c936d4b2c77522020a632ccdd1b89185e |
#include "texception.h"
#include "stdfx.h"
#include "tpixelutils.h"
#include "tbasefx.h"
#include "tfxparam.h"
#include "trop.h"
#include "tparamset.h"
//===================================================================
// Local namespace stuff
namespace {
enum Status {
NoPortsConnected = 0,
Port0Connec... | C++ | toonz/sources/stdfx/glowfx.cpp | walkerka/opentoonz | bsd-3-clause | 11,343 | 349 | codeparrot/github-code |
b41db86e83652e8b396cb562a62553cd61a84890fce8da853ea239bef025d299 | /*
* weather.c: CBot plugin implementing weather queries
*/
#include <curl/curl.h>
#include <libconfig.h>
#include <sc-collections.h>
#include <sc-lwt.h>
#include <sc-regex.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cbot/cbot.h"
#include "cbot/curl.h"
char *defloc =... | C | plugin/weather.c | brenns10/cbot | bsd-3-clause | 2,863 | 116 | codeparrot/github-code |
e8cc175721411020144531f85f91fa2c48a689f85fe486bf935830f4fb240bf4 | package org.hisp.dhis.system.objectmapper;
/*
* Copyright (c) 2004-2016, 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 ... | Java | dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/objectmapper/DeflatedDataValueNameMinMaxRowMapper.java | mortenoh/dhis2-core | bsd-3-clause | 4,691 | 115 | codeparrot/github-code |
a96a18f0def97ec69040da9b6aca8da986993a83523a1968cfb09c843841d1a6 | # import pycountry as pycountry
from django.conf import settings
from django.http import HttpResponseRedirect, Http404
from django.utils import translation
from django.views.generic import TemplateView
from devilry.devilry_account.crapps.account import utils
from devilry.devilry_account.models import User
class Lang... | Python | devilry/devilry_account/crapps/account/select_language.py | devilry/devilry-django | bsd-3-clause | 2,654 | 71 | codeparrot/github-code |
646cad12655462ba3be0eaad8fd75eb92a771530e09015e1a2543931afd8ff69 | <?php
/***************************************************************************
Copyright (C) 2005-2008 GetBoo project
http://sourceforge.net/projects/getboo/
http://www.getboo.com/
This file is part of GetBoo.
GetBoo is free software; you can redistribute it and/or modify
it under the terms of the GNU Ge... | PHP | src-php/getboo.1.04/gcreate.php | flaviovdf/tag_assess | bsd-3-clause | 6,628 | 163 | codeparrot/github-code |
639f7e8c8c3e4302913452318c21f25ceffe021d094f08cbcc3914b352117e12 | // Copyright 2011 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.
// This file is used to generate an object file which
// serves as test file for gcimporter_test.go.
package exports
import (
"go/ast"
)
const (
C0 int = ... | GO | src/pkg/go/types/testdata/exports.go | ssrl/go | bsd-3-clause | 1,374 | 90 | codeparrot/github-code |
7eb65457fea6c469752f57673f38146b765aca7ef5ff29b2efaa214766783282 | <?php
/**
* @license © 2005 - 2016 by Zend Technologies Ltd. All rights reserved.
*/
namespace FluxoCaixa\Factory;
use Base\Factory\AbstractFactory;
use Zend\ServiceManager\ServiceLocatorInterface;
/**
* SIGA-Smart
*
* Esta class foi gerada via Zend\Code\Generator.
*/
class BsContaRepeteFactory extends Abstra... | PHP | module/FluxoCaixa/src/FluxoCaixa/Factory/BsContaRepeteFactory.php | callcocam/zf2-puro | bsd-3-clause | 715 | 34 | codeparrot/github-code |
80a9e70ee2e7af5ec98be3f8b2a28d363b339df3a02061590c837c19c5d01468 | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | JavaScript | Libraries/Video/VideoControl.js | ichengde/react-vr | bsd-3-clause | 10,421 | 379 | codeparrot/github-code |
6f4bfdfcdbe37c4a54075c92217ffeae8b7c07286d6cb7eb2ce35d870d97e7ff | // MeCab -- Yet Another Part-of-Speech and Morphological Analyzer
//
//
// Copyright(C) 2001-2006 Taku Kudo <taku@chasen.org>
// Copyright(C) 2004-2006 Nippon Telegraph and Telephone Corporation
#ifndef MECAB_LBFGS_H_
#define MECAB_LBFGS_H_
#include <vector>
#include <iostream>
namespace MeCab {
class LBFGS {
pr... | C | Library_Open_JTalk/src/mecab/src/lbfgs.h | STRatANG/MMDAgentExperimentEnvironment | bsd-3-clause | 1,838 | 72 | codeparrot/github-code |
fdb351b94c331fe19f9e61889bd9521d95a0eedc6e38e043d2270b253f54e0a3 | """
A Spawner for JupyterHub that runs each user's server in a separate docker container
"""
import os
import string
from textwrap import dedent
from concurrent.futures import ThreadPoolExecutor
from pprint import pformat
import docker
from docker.errors import APIError
from docker.utils import kwargs_from_env
from t... | Python | dockerspawner/dockerspawner.py | Fokko/dockerspawner | bsd-3-clause | 18,677 | 527 | codeparrot/github-code |
4f43f3b6617eed898972d1a00eeae45a2252e290ac66a30628551d59f996c8dc | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
namespace System... | C# | HttpClientPolyfill/Headers/HttpContentHeaders.cs | erdomke/HttpClientPolyfill | bsd-3-clause | 7,429 | 203 | codeparrot/github-code |
23ffd8d3d0971faef06b79014922fcced60e0c1e438b0c59f3db2d9f58d4e295 | module Square
class InventoryBuilder
class << self
# Inventory call only returns a square_id + quantity.
# So we must have ALL products on hand to query sku
def build_inventories(inventories, products)
all_variants = products.collect {|product| product['variations']}.flatten
inv... | Ruby | lib/square/inventory_builder.rb | nurelm/square_integration | bsd-3-clause | 1,198 | 39 | codeparrot/github-code |
01609abd4f64d6538d05c6ab021306a907f5efd7db8827ddacee7254e4a3a782 | /**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include "FilesystemHelpers.h"
#include <boost/filesystem.hpp>
namespace boostfs = boost::filesystem;
... | C++ | src/Utils/Utils/IO/FilesystemHelpers.cpp | qcscine/utilities | bsd-3-clause | 1,834 | 63 | codeparrot/github-code |
4b32a84de69cb79e93533845f5067f23de24264a8195efcc68eaba910bc439ed |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.tsa.statespace.sarimax.SARIMAX.prepare_data — statsmodels v0.10.1 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" ... | HTML | v0.10.1/generated/statsmodels.tsa.statespace.sarimax.SARIMAX.prepare_data.html | statsmodels/statsmodels.github.io | bsd-3-clause | 7,684 | 166 | codeparrot/github-code |
2c2179452de04aeff6992c3d99e7b4201d14e1f84871cb75daa96862e1544d8d | <?php
class Dao_Base_Nntp implements Dao_Nntp {
protected $_conn;
/*
* constructs a new Dao_Base_Cache object,
* connection object is given
*/
public function __construct($conn) {
$this->_conn = $conn;
} # ctor
/*
* Update of insert the maximum article id in de database.
*/
function setMaxArti... | PHP | lib/dao/Base/Dao_Base_Nntp.php | Blauwbek/spotweb | bsd-3-clause | 2,273 | 78 | codeparrot/github-code |
226b399293a192b5434c961a0d1f5b2f42e6cbadda9452ed360931b2b1cc24e8 | // 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.
/**
* @fileoverview
* Class handling creation and teardown of a remoting client session.
*
* The ClientSession class controls lifetime of the clie... | JavaScript | remoting/webapp/client_session.js | rogerwang/chromium | bsd-3-clause | 16,172 | 508 | codeparrot/github-code |
35e8d3f7eb1989361d1304b269e19e1f134fd4550313f21ea6d69c9219ccecde | // 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/test/chromedriver/devtools_client_impl.h"
#include "base/bind.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.... | C++ | chrome/test/chromedriver/devtools_client_impl.cc | nacl-webkit/chrome_deps | bsd-3-clause | 7,385 | 230 | codeparrot/github-code |
0c03db078ad1b11a2b8f5a7ae1cd95ce3e71f0f90867eeb91a33b78e648fb999 | <?php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\Paginator\Adapter\ArrayAdapter;
use Zend\Paginator\Paginator;
use Zend\View\Model\ViewModel;
use Zend\Json\Json;
class IndexController extends AbstractActionController
{
protected $authservice;
protected $... | PHP | module/Application/src/Application/Controller/IndexController.php | tomshaw/resource-datastore | bsd-3-clause | 3,687 | 133 | codeparrot/github-code |
af13da6693df138bb61d8b0c26a50431be40058fd426e17362670164f958818a | #!/usr/bin/env python
# coding=utf-8
#
# Copyright 2013 snowy.in
import uuid
import hashlib
import Image
import StringIO
import time
import json
import re
import urllib2
import tornado.web
import lib.jsonp
import pprint
from base import *
from lib.variables import *
from form.topic import *
from lib.variables import ... | Python | handler/notification.py | sllt/snowy | bsd-3-clause | 1,557 | 47 | codeparrot/github-code |
33624c98a58c376fb03f978bc13a02b17a5ec54dd6f057b6ff43b101c1c28cbe | // Copyright 2016 The SwiftShader 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 b... | C++ | third_party/swiftshader/src/OpenGL/libGLES_CM/Framebuffer.cpp | endlessm/chromium-browser | bsd-3-clause | 10,678 | 460 | codeparrot/github-code |
d79d841f2e45b887909bf6b06d7e1d5fd653a9723070fc7f1983a68cbe812ddd | {-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, NoImplicitPrelude
, RecordWildCards
, BangPatterns
, NondecreasingIndentation
, MagicHash
#-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
{-# OPTIONS_HADDOCK hide #-}
-... | Haskell | libraries/base/GHC/IO/Handle/Text.hs | bitemyapp/ghc | bsd-3-clause | 38,280 | 1,007 | codeparrot/github-code |
bf855eef28d73db16c4f9163930970b42f81f6091797778ecfed2b4b8b7dd1a4 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.ComponentModel;
using System.Runtime.Serialization;
namespace DDay.iCal
{
/// <summary>
/// The base class for all iCalendar objects and components.
/// </summary>
... | C# | DDay.iCal/General/CalendarObject.cs | mdavid/DDay-iCal-svn | bsd-3-clause | 9,207 | 332 | codeparrot/github-code |
b9cad26fb4ddcb5cfeccfe955e3eec8ee1da4102fbb3391a5521c775f7a95c44 | # -*- coding:utf-8 -*-
from __future__ import unicode_literals
from django import VERSION as DJANGO_VERSION
from django.middleware.csrf import CsrfViewMiddleware
from django.middleware.csrf import _sanitize_token as sanitize_csrf_token
if DJANGO_VERSION < (1, 10):
from django.middleware.csrf import _get_new_csrf_... | Python | yepes/middleware/csrf_token.py | samuelmaudo/yepes | bsd-3-clause | 1,653 | 48 | codeparrot/github-code |
92648448977201469eed4d1b94ee68799ea1815e3d4eef7deda4338756a8d077 | // 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/login/login_prompt.h"
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/command_line.h"
#include... | C++ | chrome/browser/ui/login/login_prompt.cc | Workday/OpenFrame | bsd-3-clause | 23,299 | 622 | codeparrot/github-code |
e54f79e012fedfe290b0d6b4731fe32ca8a429a3fcf65261944c6a3c109a1c19 | // 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 "third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.h"
#include "build/build_config.h"
#include "third_party/blink/renderer/platfo... | C++ | third_party/blink/renderer/platform/fonts/skia/skia_text_metrics.cc | endlessm/chromium-browser | bsd-3-clause | 5,902 | 174 | codeparrot/github-code |
c2b83dcf9d7e75b6ae61c73917388a547dee6b46d41b7b7832e6ecdc9c9b6e33 | package com.xebia.fitnesse.slim.soap;
import java.util.Collections;
import java.util.Iterator;
import java.util.Map.Entry;
import javax.xml.namespace.NamespaceContext;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
public class SimpleNamespaceContext implements NamespaceContext ... | Java | src/main/java/com/xebia/fitnesse/slim/soap/SimpleNamespaceContext.java | xebia/fitnesse-slim-soap-driver | bsd-3-clause | 1,050 | 41 | codeparrot/github-code |
bb3cc01b48569d617c58479b5d959fd4827f4977c672e2f1487557bd8ca77bcc | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# 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 copyrigh... | Python | vspk/v6/nutestsuite.py | nuagenetworks/vspk-python | bsd-3-clause | 12,813 | 417 | codeparrot/github-code |
63bd0618c1bc98b92476094a6073fc6b0634384b835656d6e25572bda1daa89b | from datetime import datetime, timedelta
from suds import client, wsse
import time
from .utils import recursive_asdict, load_class
class Locations(object):
"""Convenience class to communicate with the PostNL SOAP API"""
def __init__(self, settings):
self.settings = settings
security = wsse.S... | Python | postnl/locations/client.py | maerteijn/python-postnl-locations | bsd-3-clause | 3,143 | 83 | codeparrot/github-code |
d5fc9f688884078e4b121e9fbc2ef9bcadbac9676b2ed5663494b5def939d25c | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__int_fscanf_predec_08.c
Label Definition File: CWE191_Integer_Underflow__int.label.xml
Template File: sources-sinks-08.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: fscanf Read data from the console using fscanf()
... | C | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s05/CWE191_Integer_Underflow__int_fscanf_predec_08.c | JianpingZeng/xcc | bsd-3-clause | 5,360 | 203 | codeparrot/github-code |
28f6699e43d8cdd398b55d0f02291ffbd286482a089da38975f344dac089262b | /*
* Copyright 2018 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 contributing ... | C | third_party/webrtc/test/scenario/video_stream.h | endlessm/chromium-browser | bsd-3-clause | 4,330 | 127 | codeparrot/github-code |
4da8c6f86b94b8ea3828602fa7fa794aeb5658239fdc25016676e721d5a9260a | /*
* WYMeditor : what you see is What You Mean web-based editor
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
* Dual licensed under the MIT (MIT-license.txt)
* and GPL (GPL-license.txt) licenses.
*
* For further information visit:
* http://www.wymeditor.org/
*
* File Name:... | JavaScript | wymeditor/src/wymeditor/plugins/embed/jquery.wymeditor.embed.js | cilf/languator | bsd-3-clause | 1,758 | 58 | codeparrot/github-code |
eca7744ee09c0f3523db8cc7a165c22ac1518dd31a3a1a543419e3bc6f8c523b | <?php
/**
* TOP API: taobao.simba.campaign.areaoptions.get request
*
* @author auto create
* @since 1.0, 2012-12-23 16:43:51
*/
class SimbaCampaignAreaoptionsGetRequest
{
private $apiParas = array();
public function getApiMethodName()
{
return "taobao.simba.campaign.areaoptions.get";
}
public functio... | PHP | extensions/taobao/top/request/SimbaCampaignAreaoptionsGetRequest.php | qq1156092409/subway | bsd-3-clause | 520 | 33 | codeparrot/github-code |
f1c7b27de0459d0d4e50b975b8d875296c7b79fbc8ef6d2c81d78b08d73a8e10 | <?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "user".
*
* @property integer $id
* @property string $first_name
* @property string $last_name
* @property string $username
* @property string $auth_key
* @property string $password_hash
* @property string $password_reset_token... | PHP | backend/models/User.php | Summer-Sadness/nagruzka | bsd-3-clause | 1,967 | 69 | codeparrot/github-code |
68a512808509df3718c4eefe9c4659f14496a9fcd66ad66a69b0f0794598e648 | job = 0
localPlayer = getLocalPlayer()
function playerSpawn()
local logged = getElementData(source, "loggedin")
if (logged==1) then
job = tonumber(getElementData(source, "job"))
if (job==1) then -- TRUCKER
resetTruckerJob()
setTimer(displayTruckerJob, 1000, 1)
elseif (job==2) then -- TAXI
... | Lua | src_trunk/resources/job-system/c_job_framework.lua | valhallaGaming/uno | bsd-3-clause | 2,055 | 58 | codeparrot/github-code |
9156efbfef28aa5c981c2fe1b13d984495fd2b99b91600d7f881950c46713558 | #pragma once
#include <MediaSink.hh>
#include <H264VideoRTPSink.hh>
#include <liveMedia.hh>
#include <iostream>
#include <deque>
#include "live.h"
#include "MediaSink.hh"
#include "MediaQueue.h"
#include "VideoDecoder.h"
#include "MyVideoSink.h"
#define DUMMY_SINK_RECEIVE_BUFFER_SIZE 100000
/**
Our implementation of... | C | LiveProxy/MP4VVideoSink.h | fyeh/RTSPSource | bsd-3-clause | 1,644 | 58 | codeparrot/github-code |
ffa6e1d4d5dfa4e7746e4ed3448c765ab4af8023af7e86d6e115a5bcb8acaeda | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | C++ | Modules/Core/src/IO/mitkPointSetReaderService.cpp | fmilano/mitk | bsd-3-clause | 9,746 | 276 | codeparrot/github-code |
bef4f95d9525b651a257ad518f5d969856534ed453af3b628cc4ac0276c46fe3 | # -*- coding: utf-8 -*-
"""Bloggin app actions for admin."""
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext
from blogging.models import Post
# Post Actions
def make_published(modeladmin, request, queryset):
"""Mark the given posts as published."""
count... | Python | blogging/actions.py | jibaku/blogging | bsd-3-clause | 2,706 | 78 | codeparrot/github-code |
11262c9aa8d0170bfe61e15e8727c85960af899d4c4ac02f9ec412e40db4b307 | /**
* Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caintegrator/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.web.action.query;
import gov.nih.nci.caintegrator.external.ncia.NCIADicomJob;
import gov.nih... | Java | caintegrator-war/src/gov/nih/nci/caintegrator/web/action/query/NCIADicomFileResult.java | NCIP/caintegrator | bsd-3-clause | 2,214 | 64 | codeparrot/github-code |
0e198e1b7751865808bb67a59b13ea6722effa3532d17896d1f4808a2d29cdbb | class InvestigationsController < ApplicationController
include Seek::IndexPager
include Seek::DestroyHandling
include Seek::AssetsCommon
before_filter :find_assets, :only=>[:index]
before_filter :find_and_authorize_requested_item,:only=>[:edit, :update, :destroy, :show,:new_object_based_on_existing_one]
... | Ruby | app/controllers/investigations_controller.rb | HITS-SDBV/seek | bsd-3-clause | 4,467 | 135 | codeparrot/github-code |
fa76cc4d8815eb3ff924988a3efb8616ac31bfb275e74784f2e0f88803dbb403 | # Copyright (c) 2017, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from coremltools import __version__ as ct_version
from coremltools.models import _METADATA_VERSION, _MET... | Python | coremltools/converters/sklearn/_converter.py | apple/coremltools | bsd-3-clause | 5,804 | 162 | codeparrot/github-code |
9de2db2ff076951cb69bc8097b3fd1d558d26c870af393f49316515962830b14 | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | C++ | daemon/executor.cc | couchbase/memcached | bsd-3-clause | 5,434 | 173 | codeparrot/github-code |
acee3a1ab61d487f88931f32b72035c41d7718678b8e96f2e1e1ee3cbd74885a | // 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/image_loader.h"
#include "base/json/json_file_value_serializer.h"
#include "base/message_loop.h"
#include "base/p... | C++ | chrome/browser/extensions/image_loader_unittest.cc | loopCM/chromium | bsd-3-clause | 9,216 | 261 | codeparrot/github-code |
da8d39b0b33136623594015cd951d213ab6112f09c7d4ee4fee234fc1b4a031d | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 1987-2014 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later... | HTML | gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/share/doc/cpp/The-preprocessing-language.html | AlbandeCrevoisier/ldd-athens | bsd-3-clause | 7,122 | 155 | codeparrot/github-code |
decfca32c7dab99c14c3ce6746dc6ca16ca2efa22e8c95e1586977cb83316078 | $(document).ready(function(){
function textileTest(name, tests, testNumber){
test(name, function() {
var i = 0,l = tests.length;
if(testNumber !== undefined){
i = testNumber*2;
l = i+2;
}
for(; i < l ; i += 2 ){
equal(textileCompiler.compile(tests[i]), tests[i+1]);
... | JavaScript | source/js/test/textileCompiler.js | johnny/markupEditor | bsd-3-clause | 9,813 | 255 | codeparrot/github-code |
182dcf9928d9834d40a221c64450f93c30ed492809e758a286beb5530a24df39 | # -*- coding: utf-8 -*-
"""Librería para parsear entradas y salidas de Karel en XML."""
import xml.etree.ElementTree as ET
import sys
def load():
"""Regresa (input, output, nombre de caso) para la ejecución actual"""
with open('data.in', 'r') as data_in:
return KarelInput(data_in.read()), KarelOutput(sys.stdin.re... | Python | stuff/libkarel.py | rendon/omegaup | bsd-3-clause | 5,523 | 142 | codeparrot/github-code |
07ed06d0d17a93e9590aca54b5aa5d5dbb2ca572d6602c7083f56b4583eaebfe | <?php
namespace app\controllers;
use Yii;
use app\helpers\Mensaje;
use app\models\Usuario;
use app\models\Amigo;
use app\models\UsuarioSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use yii\helpers\Url;
/**
* UsuariosController implementa... | PHP | controllers/UsuariosController.php | fernando3287/friendly | bsd-3-clause | 8,802 | 279 | codeparrot/github-code |
9c67f173ab56beab522d680bb02df42dc7a3e952505d11f017f805194c695502 | package org.corebounce.soundium;
import java.util.ArrayList;
import java.util.List;
import ch.fhnw.util.IProgressListener;
public class MultiProgress implements IProgressListener {
private float progress;
private final List<IProgressListener> listeners = new ArrayList<>();
pub... | Java | ether-soundium/src/main/java/org/corebounce/soundium/MultiProgress.java | arisona/ether | bsd-3-clause | 841 | 40 | codeparrot/github-code |
b78b4c90888b839a1d15448123da826cf67d463f8f64b1da701e34f659cba385 | {-
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2001-2003
--
-- Access to system tools: gcc, cp, rm etc
--
-----------------------------------------------------------------------------
-}
{-# LANGUAGE CPP, MultiWayIf, ScopedTypeVariables #-}
module ... | Haskell | compiler/main/SysTools.hs | sdiehl/ghc | bsd-3-clause | 18,898 | 474 | codeparrot/github-code |
079a88ea288a97d44df94ab6ec57ecf5ca481b804d293f7a35e9136ecc1a7bb4 | """LU decomposition functions."""
from __future__ import division, print_function, absolute_import
from warnings import warn
from numpy import asarray, asarray_chkfinite
# Local imports
from .misc import _datacopied, LinAlgWarning
from .lapack import get_lapack_funcs
from .flinalg import get_flinalg_funcs
__all__ ... | Python | scipy/linalg/decomp_lu.py | jor-/scipy | bsd-3-clause | 6,757 | 224 | codeparrot/github-code |
4e727b2245433f3a9a76d2464a908191bdc83e8e6c5ff4f659d635ede0135242 | /*
* OpenSeadragon - TiledImage
*
* Copyright (C) 2009 CodePlex Foundation
* Copyright (C) 2010-2013 OpenSeadragon contributors
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* - Redistributions of source... | JavaScript | src/tiledimage.js | TMUND/openseadragon | bsd-3-clause | 50,700 | 1,419 | codeparrot/github-code |
123564346e8485a02e814569e4031ed72ba246fe38cf82970111d8eec21e3b73 | """
sentry.testutils
~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
import base64
import time
from sentry.conf import settings
from sentry.utils import json
from sentry.utils.auth im... | Python | src/sentry/testutils.py | simmetria/sentry | bsd-3-clause | 5,319 | 168 | codeparrot/github-code |
eb4c24511b19e529c8df94643eecfdece58117597f90f9fe1a0ec6a7906e7392 | // 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 COMPONENTS_SYNC_MODEL_IMPL_MODEL_TYPE_STORE_BACKEND_H_
#define COMPONENTS_SYNC_MODEL_IMPL_MODEL_TYPE_STORE_BACKEND_H_
#include <memory>
#include ... | C | components/sync/model_impl/model_type_store_backend.h | endlessm/chromium-browser | bsd-3-clause | 5,625 | 139 | codeparrot/github-code |
5ced9705408617c352ebb056137c66dd895a0f0fe969463fb5c87de6771a2853 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/signaling/ftl_message_reception_channel.h"
#include <utility>
#include "base/bind_helpers.h"
#include "base/callback.h"
#include "bas... | C++ | remoting/signaling/ftl_message_reception_channel.cc | endlessm/chromium-browser | bsd-3-clause | 7,045 | 216 | codeparrot/github-code |
706be72de0a3890e87afa78434e8a83ab3e1b79d34801ed2097269884ad755c1 | <?php
namespace frontend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\RefKategoriServis;
/**
* RefKategoriServisSearch represents the model behind the search form about `app\models\RefKategoriServis`.
*/
class RefKategoriServisSearch extends RefKategoriServis
{
/**
... | PHP | frontend/models/RefKategoriServisSearch.php | hung101/kbs | bsd-3-clause | 1,791 | 75 | codeparrot/github-code |
e874ab54f469c80461c64137b7e71ad104ad7d4ee7b2844f656389fd4bf2f264 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kooboo.Globalization;
using Kooboo.Globalization.Repository;
using Kooboo.CMS.Sites.Models;
using Kooboo.CMS.Sites.Caching;
using System.Threading;
using System.Collections;
namespace Koobo... | C# | Kooboo.CMS/Kooboo.CMS.Sites/Globalization/SiteLabelRepository.cs | Epitomy/CMS | bsd-3-clause | 2,648 | 98 | codeparrot/github-code |
5707392f0b515861a15654dbf0ea811636d4bd27b7f9b3a55fe71ee7f7c0f79d | #!/usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, The BiPy Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------... | Python | pyqi/core/interfaces/html/input_handler.py | biocore/pyqi | bsd-3-clause | 1,074 | 32 | codeparrot/github-code |
9031bf3c2d525cb2101e08fb9411fe76d8fc41dc9cf7be7728474d2bdc335286 | <?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use frontend\models\UploadForm2;
//$UploadForm = new UploadForm2;
if($user->avatar != ""){
$avatar = "/uploads/531B".$user->id."Iav.".$user->avatar;
}else{
$avatar = null;
}
?>
<div class="row">
<div class="col-xs-4">
<?php $form = ActiveForm::begin(... | PHP | frontend/views/member/myfoto/changePPic.php | rokasr/pzntsltaa | bsd-3-clause | 5,586 | 159 | codeparrot/github-code |
a8f0d24992b66b5d83e62ec9290e09d98f47e96740f54c9cf505ba1ea7c1cc7f |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" conte... | HTML | v0.13.0/_modules/statsmodels/multivariate/manova.html | statsmodels/statsmodels.github.io | bsd-3-clause | 26,487 | 464 | codeparrot/github-code |
4ab5037a9e93f86f49f70e13294dc4393e0ab0fadee9180b80a529e419737839 | # -*-coding:Utf-8 -*
# Copyright (c) 2013 LE GOFF Vincent
# 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
# lis... | Python | src/primaires/scripting/fonctions/etat_singulier.py | stormi/tsunami | bsd-3-clause | 2,255 | 57 | codeparrot/github-code |
b3af76d2224ea0119fb7db239483fbc6d08ab884c3932e62ed3d7cf509447992 | # Copyright (c) 2016, German Neuroinformatics Node (G-Node)
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted under the terms of the BSD License. See
# LICENSE file in the root of the Project.
from __future__ import (absolute_import, division, ... | Python | nixio/pycore/h5group.py | stoewer/nixpy | bsd-3-clause | 10,059 | 320 | codeparrot/github-code |
25c4fafcc48d1a28d35d741b2a580752cc1f117124f6dba233a3521c4d3944d2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>endog, exog, what’s that? — statsmodels 0.8.... | HTML | 0.8.0/endog_exog.html | statsmodels/statsmodels.github.io | bsd-3-clause | 10,765 | 229 | codeparrot/github-code |
a08dbd3bbc26b1487b701106aace3ab29df38a60fe975663a36896f127ec424d | package org.consec.federationdb.model;
import javax.persistence.*;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;
@Entity
@Table(name = "\"group\"")
@NamedQueries({
@NamedQuery(name = "Group.findAll", query = "SELECT g FROM Group g")})
public class Group implemen... | Java | federation-db/src/main/java/org/consec/federationdb/model/Group.java | consec/ConSec | bsd-3-clause | 2,528 | 96 | codeparrot/github-code |
319c4163827f2bc13e40a187c08127126e4d9fef73dbd994673d21c3c04c1ec3 | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | C | Modules/CameraCalibration/mitkCameraIntrinsicsProperty.h | fmilano/mitk | bsd-3-clause | 1,788 | 73 | codeparrot/github-code |
7bbd4d41262f72686d6ba7f822c66c1a73d44f5ea39b128b03118fbf2e1d6c2d | //
// websocketIO.cpp
// cefclient
//
// Created by Thomas Marrinan on 4/3/14.
//
//
#include "websocketIO.h"
websocketIO::websocketIO() : m_open(false),m_done(false) {
m_client.clear_access_channels(websocketpp::log::alevel::all);
m_client.set_access_channels(websocketpp::log::alevel::app);
m_client.i... | C++ | MacOSX/cef-offscreen/cefclient/websocketIO.cpp | tmarrinan/SAGE2_WebBrowser | bsd-3-clause | 3,793 | 126 | codeparrot/github-code |
fd68a4e9b0da4132c7c0697fa4c96827f92b1b57e2a56c6ce6d0e09fff101120 | // 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/net/spdyproxy/data_reduction_proxy_settings_android.h"
#include <stdint.h>
#include "base/android/jni_android.h"
#include "base... | C++ | chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc | was4444/chromium.src | bsd-3-clause | 7,848 | 230 | codeparrot/github-code |
08e4d1cd6e67caf22f4625054314e4444ed4c1a439f86d48ce2c31fb0b02199c | package cn.bitlove.babylive.activity;
import java.io.File;
import java.util.Calendar;
import android.app.DatePickerDialog.OnDateSetListener;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
i... | Java | src/cn/bitlove/babylive/activity/NewRecordActivity.java | xiaoai-opensource/babylive | bsd-3-clause | 9,721 | 348 | codeparrot/github-code |
5a82f8a5f20e0c6443dc8629219b8ba0c452fd0669a15ce9eebb9eefcee365a1 | /////////////////////////////////////////////////////////////////////////////
// Name: src/msw/app.cpp
// Purpose: wxApp
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
///////////////////////////////////////////////////... | C++ | update_notifier/thirdparty/wxWidgets/src/msw/app.cpp | ric2b/Vivaldi-browser | bsd-3-clause | 31,774 | 1,049 | codeparrot/github-code |
61b6b88c086fb92201c2c50e4aa538a6578014029dcdbdfef8a47d341a260109 | #include<vector>
#include<variant>
#include<string>
#include<tuple>
#include "include/basic_layout_dataset_variant_base.h"
#include "parsing/read_csv.h"
template<class Tb_>
class basic_layout_dataset
{
public:
std::vector<edan::basic_layout_dataset_variant_base<Tb_> > __dataset;
public:
/*
basic_layout_dataset(... | C | dataset-project/basic_layout_dataset.h | edan-dev/EDAN | bsd-3-clause | 616 | 34 | codeparrot/github-code |
e2a7d118774e5ba48f397e074c54c81ea06d9c3205af1a4fbde4718aa5bccf05 | <?php
namespace Benchmarks\MethodCall;
use PhpBench\Benchmark\Metadata\Annotations\AfterMethods;
use PhpBench\Benchmark\Metadata\Annotations\BeforeMethods;
use PhpBench\Benchmark\Metadata\Annotations\Iterations;
use PhpBench\Benchmark\Metadata\Annotations\Revs;
/**
* @BeforeMethods({"init"})
* @AfterMethods({"tear... | PHP | benchmarks/MethodCall/StaticCallWithUnpackingBench.php | MilesChou/php-notice | bsd-3-clause | 708 | 39 | codeparrot/github-code |
1be364fec116116495022aa4626ed522683adb8b04732c3bac951452fc129923 | /*
PhraseStructureTree.java
Copyright (C) 2005, Richard Johansson (richard@cs.lth.se).
Created in June, 2004 by Richard Johansson (richard@cs.lth.se).
$Log: PhraseStructureTree.java,v $
Revision 1.5 2011-06-09 08:39:58 johansson
Removed LGPL preamble.
Revision 1.4 2011-02-10 11:48:09 johansson
Added ... | Java | src/se/lth/cs/nlp/nlputils/pstree/PhraseStructureTree.java | ninjin/pennconverter | bsd-3-clause | 24,541 | 764 | codeparrot/github-code |
c2288fa4685bc6d06092427c6eee6be4fe5f8369344b8f9f066212c91274cb47 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/performance_manager/public/mechanisms/tab_loading_frame_navigation_scheduler.h"
#include "base/no_destructor.h"
#include "components... | C++ | components/performance_manager/mechanisms/tab_loading_frame_navigation_scheduler.cc | endlessm/chromium-browser | bsd-3-clause | 10,337 | 291 | codeparrot/github-code |
74808122d3e89b9594b5ab8c482e0292e7d119bdd5031ae466e28616a9f0ae74 | namespace Script.Install.Tools
{
partial class CustomInstaller
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>... | C# | src/Script.Install.Tools/CustomInstaller.Designer.cs | trondr/Script.Install.Tools | bsd-3-clause | 1,037 | 36 | codeparrot/github-code |
197257a19ab8fccb6843ea2608a1966e4e041cf8e5a2d0c95c6106f3bf18c2fd | /****************************************************************************
* Copyright (c) 1993, 1994
* Century Computing, Inc.
* ALL RIGHTS RESERVED
*
* The software (programs, data bases and/or documentation) on or in
* any media can not be reproduced, disclosed, or used except under... | C | vos/tae53_changes/src/lib/tae/qparmgen.c | marrocamp/nasa-VICAR | bsd-3-clause | 25,974 | 869 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.