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 |
|---|---|---|---|---|---|---|---|---|
d412ba902ebd8ac3a9aab3402876fb6fed337fd82ae5eb8336c66f6230cdcaae | # -*- coding: utf-8 -*-
from aero.__version__ import __version_info__
__author__ = 'nickl-'
from .base import CommandProcessor as CommandProcessor
class InstallCommand(CommandProcessor):
from .base import coroutine
package = ''
adapter = ''
def wiring(self):
self.out = self.write()
... | Python | aero/commands/install.py | Aeronautics/aero | bsd-3-clause | 1,362 | 54 | codeparrot/github-code |
c0fbf9e1c69568f86b065e0af7f68dfbb6f8ed4f812fa8159844f8f0d4e2cb58 | /*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | C++ | third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp | highweb-project/highweb-webcl-html5spec | bsd-3-clause | 8,968 | 254 | codeparrot/github-code |
d55dc9c7ffb3bf4835b3c6df24a2465a7f6cfdb6e2e10490ce5e3840369525f3 | <?php
// adapted from Stephen P. Morse - steve@stevemorse.org
class HebrewTranslitString
{
const ALEF = 'א'; // d7 90
const BAIS = 'ב'; // d7 91
const GIMEL = 'ג'; // d7 92
const DALET = 'ד'; // d7 93
const HAY = 'ה'; // d7 94
const VAV = 'ו'; // d7 95
const ZAYIN = 'ז'; // d7 96
const KHESS = 'ח'; // ... | PHP | application/libraries/HebrewTranslitString.php | yitznewton/emeraldview-tidhar | bsd-3-clause | 14,581 | 516 | codeparrot/github-code |
09dc7c946dacdd645929bdd204dd44df2acfe66311bb0217a67e3c440ef4e414 | <?php
/**
* phploc
*
* Copyright (c) 2009-2014, Sebastian Bergmann <sebastian@phpunit.de>.
* 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 r... | PHP | src/Analyser.php | ircmaxell/phploc | bsd-3-clause | 28,431 | 797 | codeparrot/github-code |
5702a55eb4e2b2a0758b1a0e2468d1697eb81fb5a21c23a48a7024a9a1050561 | /*
* Copyright (c) 2006, 2007 Advanced Micro Devices, Inc.
* Contributed by Ray Bryant <raybry@mpdtxmail.amd.com>
* Contributed by Robert Richter <robert.richter@amd.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "S... | C | src/libpfm-3.y/lib/amd64_events.h | tcreech/papi-4.0.0-64-solaris11.2 | bsd-3-clause | 2,220 | 58 | codeparrot/github-code |
cc37dff65631279275785a0022756f998940685446050ac7950cf70faed53b4f |
package org.oasis_open.docs.wsn._2004._06.wsn_ws_basenotification_1_2_draft_01;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java cla... | Java | wsrf-notification-api/src/main/java/org/oasis_open/docs/wsn/_2004/_06/wsn_ws_basenotification_1_2_draft_01/PauseSubscriptionResponse.java | NCIP/cagrid2-wsrf | bsd-3-clause | 859 | 36 | codeparrot/github-code |
b41547af1753fda333de5e2fdaa3084e05963d53a34adbe90be5f1b57b8988fa | /*
Item/Items - 定义选项操作相关的基本操作。
选项控件,继承自基础控件,用于弹出菜单、下拉框、交换框等控件的单个选项,通常不直接初始化。选项控件必须用在使用选项组接口(Items)的控件中。
选项组不是控件,是一组对选项进行操作的方法的集合,提供了基本的增/删操作,通过将 ecui.ui.Items 对象下的方法复制到类的 prototype 属性下继承接口,最终对象要正常使用还需要在类构造器中调用 $initItems 方法。
*/
//{if 0}//
(function () {
var core = ecui,
array = core.array,
dom = co... | JavaScript | version-1.0/src/items.js | allskystar/ECUI | bsd-3-clause | 6,092 | 238 | codeparrot/github-code |
d0927c45c65f5f6d5cd8084af41a1a61192506e41a023598a45f440c90e0897a | import xmpp
import urllib, urllib2
import xmlrpclib
from sso.services import BaseService
from django.conf import settings
class JabberService(BaseService):
settings = { 'require_user': True,
'require_password': True,
'provide_login': False,
'use_auth_username': ... | Python | app/sso/services/jabber/__init__.py | nikdoof/test-auth | bsd-3-clause | 7,262 | 188 | codeparrot/github-code |
a5011a70d40b7fbcf27007fe25653a4d5dc8bc186cac2b447ca76e90968b9be9 | // Copyright 2004-present Facebook. All Rights Reserved.
#pragma once
#include <libudev.h>
#include <osquery/events.h>
#include <osquery/status.h>
namespace osquery {
enum udev_event_action {
UDEV_EVENT_ACTION_ADD = 1,
UDEV_EVENT_ACTION_REMOVE = 2,
UDEV_EVENT_ACTION_CHANGE = 3,
UDEV_EVENT_ACTION_UNKNOWN = ... | C | osquery/events/linux/udev.h | Anubisss/osquery | bsd-3-clause | 3,047 | 111 | codeparrot/github-code |
405bb21827f8f09483111eea2bb6cdc8cbe8d1cf1514be7ef342cfee0722d4f4 | // 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 "content/renderer/webplugin_delegate_proxy.h"
#if defined(TOOLKIT_GTK)
#include <gtk/gtk.h>
#elif defined(USE_X11)
#include <cairo/cairo.h>
... | C++ | content/renderer/webplugin_delegate_proxy.cc | Crystalnix/BitPop | bsd-3-clause | 55,237 | 1,506 | codeparrot/github-code |
15e295d4f7ca610e03cb71e4579c3c1e37214f7996b5f8bfcaa89526049e5360 | #include "base/types.hh"
#include "base/bitfield.hh"
#include "fi/faultq.hh"
#include "fi/opcode_injfault.hh"
#include "params/OpCodeInjectedFault.hh"
#include "fi/fi_system.hh"
using namespace std;
OpCodeInjectedFault::OpCodeInjectedFault(OpCodeInjectedFault &source)
: O3CPUInjectedFault(source){
setFaultType... | C++ | src/fi/opcode_injfault.cc | koparasy/faultinjection-gem5 | bsd-3-clause | 3,770 | 174 | codeparrot/github-code |
67b7c12e59036183c8a1f96c8e70b1cf648061124888c81c597b9a72cfc5d71c | import time
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Auth import Auth
from PLC.Sessions import Session, Sessions
from PLC.Nodes import Node, Nodes
from PLC.Persons import Person, Persons
class GetSession(Method):
"""
Returns a new session key if a user or node authenti... | Python | PLC/Methods/GetSession.py | dreibh/planetlab-lxc-plcapi | bsd-3-clause | 1,423 | 47 | codeparrot/github-code |
cc5964d64bf29ca4fa4b44dad21479b7a0159cd3bb15d0b6f52a5005f6b453b1 |
<!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>Taxation Powers Vote for the Scottish Parliamant 1... | HTML | 0.8.0/datasets/generated/scotland.html | statsmodels/statsmodels.github.io | bsd-3-clause | 11,181 | 193 | codeparrot/github-code |
264bf5c65c20f94e4402d378b7f6de3e6b010db22d4225a4ecb20b81c9ce173e | require 'game'
require 'curses'
require 'action'
require 'game_actions'
include Curses
=begin
* Name: CursesUI
* Description
A game interface using curses
* Author: elKano
* Date: 13-02-06
* License: GPL-2
=end
class CursesUI
@@tileset = {
:Floor => {:char => ".", :color => COLOR_WHITE},
... | Ruby | src/curses_ui.rb | asimy/isefad | bsd-3-clause | 7,204 | 306 | codeparrot/github-code |
6de97bf3aeb644dc033afc48bce864400a22ac4052faae8bc434ba87ba2d331d | <?php
namespace admin\controllers;
use Yii;
use common\helpers\Hui;
use common\helpers\Html;
use common\helpers\Inflector;
use common\helpers\ArrayHelper;
use admin\models\AdminMenu;
use admin\models\AdminUser;
use common\modules\rbac\models\AuthItem;
/**
* @author ChisWill
*/
class AdminController... | PHP | frontend/modules/admin/controllers/AdminController.php | ChisWill/cii | bsd-3-clause | 15,145 | 424 | codeparrot/github-code |
cd2e5961227ca64d59412266a908ba2f70b0d1cf06581fd1e5e417012ea71760 | // Copyright 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef OZONE_UI_EVENTS_EVENT_CONVERTER_OZONE_WAYLAND_H_
#define OZONE_UI_EVENTS_EVENT_CONVERTER_OZONE_WAYLAND_H_
#include <string>
#include "base/memory/s... | C | ui/events/event_converter_ozone_wayland.h | AndriyP/ozone-wayland | bsd-3-clause | 3,732 | 88 | codeparrot/github-code |
ca7dec8f3de67c460b92065404bcc8acd6636df032b9a71dd90f10e3d472e6cd | # -*- coding: utf-8 -*-
"""
werkzeug.wrappers
~~~~~~~~~~~~~~~~~
The wrappers are simple request and response objects which you can
subclass to do whatever you want them to do. The request object contains
the information transmitted by the client (webbrowser) and the response
object contains al... | Python | werkzeug/wrappers.py | mrdon/flask | bsd-3-clause | 76,207 | 1,805 | codeparrot/github-code |
ba58b4e5278805b6149fc4f9579c05c13397f0e823aa7f3270681e2ba7d20980 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.0.0.11832 (http://hl7.org/fhir/StructureDefinition/ValueSet) on 2017-03-22.
# 2017, SMART Health IT.
from . import domainresource
class ValueSet(domainresource.DomainResource):
""" A set of codes drawn from one or more code systems.
... | Python | rdr_service/lib_fhir/fhirclient_3_0_0/models/valueset.py | all-of-us/raw-data-repository | bsd-3-clause | 21,281 | 563 | codeparrot/github-code |
fcdc965855c0b677d4cbef28dc0565a3d6e8f48e51357b668331b6b7d3b2f9a3 | /*============================================================================
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++ | Plugins/org.blueberry.ui.qt/src/internal/berrySwitchToWindowMenu.cpp | MITK/MITK | bsd-3-clause | 3,493 | 156 | codeparrot/github-code |
f6299ebbae24ab9d226bda5583d3376cbf01ea91de44bdeb2287627aa8ca41a5 | package org.github.CircuitRunners;
import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.RobotDrive.MotorType;
public class TShirtCannon extends IterativeRobot {
// # Constants
// ## Ports
// Motor Controller Ports
public static final int JAGUAR_DRIVE_PORT_FL = 1;
public static final int JAGU... | Java | src/org/github/CircuitRunners/TShirtCannon.java | CircuitRunners/t_shirt_cannon | bsd-3-clause | 5,174 | 157 | codeparrot/github-code |
881d5d52f244ec0d2705e1b60978c008706605106436823e1b5dfb68a132dbd8 | /*
Copyright (c) 2000-2022, Board of Trustees of Leland Stanford Jr. University
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,... | Java | plugins/src/org/lockss/plugin/iop/IOPFilterRule.java | lockss/lockss-daemon | bsd-3-clause | 2,846 | 69 | codeparrot/github-code |
2ecc02d12ac509ef20890da3c2b319ad9e2c3ec1015a1061f333d3fc125f04a0 | package org.basex.query.util.pkg;
import java.util.*;
import org.basex.io.*;
/**
* EXPath or internal package. Internal packages have no version.
*
* @author BaseX Team 2005-22, BSD License
* @author Rositsa Shadura
*/
public final class Pkg {
/** List of dependencies. */
final ArrayList<PkgDep> dep = new A... | Java | basex-core/src/main/java/org/basex/query/util/pkg/Pkg.java | BaseXdb/basex | bsd-3-clause | 3,207 | 143 | codeparrot/github-code |
1465370fe24ff4510d88747ecd2b144b7f93b4918b3517cebf14f6254e5ed546 | #!/usr/bin/env python
# Copyright (c) 2017-2020, The Bifrost Authors. 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... | Python | testbench/your_first_block.py | ledatelescope/bifrost | bsd-3-clause | 3,507 | 100 | codeparrot/github-code |
e3457de2498920145adf241b85a85283bc364d7e329b078bc939d3d06b3a3d6c | /* Copyright (c) 2006, Sun Microsystems, 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 l... | Java | javacc/src/main/java/org/javacc/jjtree/NodeFiles.java | aradzie/javaccng | bsd-3-clause | 8,687 | 250 | codeparrot/github-code |
3521f30cc120226e8e306493030c21fb7354246237b0abdb1c738b2bd36e2fb6 | #region copyright
// Copyright (c) 2012, TIGWI
// All rights reserved.
// Distributed under BSD 2-Clause license
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tigwi.Storage.Library.Utilities;
using Microsoft.WindowsAzure.StorageClient;
using System.Globalizatio... | C# | Core/Tigwi.Storage.Library/utilities/MsgSetBlobPack.cs | ismaelbelghiti/Tigwi | bsd-3-clause | 14,262 | 357 | codeparrot/github-code |
fbe6d98f4fc022f79feae299b4d79e7ff354075384c306a10673c743b04d3182 | #!/bin/sh
# $0 url [url2 [url3 [...]]]
if [ -z "$1" ]; then
exit;
fi
# external commands
AWK="/usr/bin/awk"
CAT="/bin/cat"
CUT="/usr/bin/cut"
GREP="/bin/grep"
MKDIR="/bin/mkdir"
MV="/bin/mv"
RM="/bin/rm"
SED="/bin/sed"
TR="/usr/bin/tr"
WC="/usr/bin/wc"
WGET="/usr/bin/wget"
# -nv: basic option for simple messag... | Shell | blog.livedoor.jp/archives_carrot_02-carrot.sh | slzzp/mirror_script | bsd-3-clause | 7,327 | 216 | codeparrot/github-code |
7048e9916e878e095770544824d9f45f8239980a34ae4551a292585f0bf13430 | -----------------------------------------------------------------------------
--
-- Module : GameOfLife.Ui.Text
-- Copyright : 2016 Author name here
-- License : BSD3
--
-- Maintainer : bnazariy@gmail.com
-- Stability :
-- Portability :
--
-- |
--
------------------------------------------------------... | Haskell | src/GameOfLife/Ui/Text.hs | AM636E/HaskellGameOfLife | bsd-3-clause | 2,502 | 83 | codeparrot/github-code |
8716ec1a7ef51c28168dec768c49eea7fb71841db3d680ddbe91e23835ed5d89 | // 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 "remoting/host/client_session.h"
#include <algorithm>
#include "base/message_loop_proxy.h"
#include "media/video/capture/screen/screen_capt... | C++ | remoting/host/client_session.cc | zcbenz/cefode-chromium | bsd-3-clause | 12,409 | 342 | codeparrot/github-code |
d8bfcdf12222a40ea2280e930bd7aa907311899555fa96be445a4fe63e16a2f0 | // 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 MASH_SCREENLOCK_SCREENLOCK_H_
#define MASH_SCREENLOCK_SCREENLOCK_H_
#include <map>
#include <memory>
#include "base/macros.h"
#include "mash/ses... | C | mash/screenlock/screenlock.h | danakj/chromium | bsd-3-clause | 1,330 | 50 | codeparrot/github-code |
b02c31824faada796da8fa7ce1bf4efc6311a7f8a3a9af44bc4f9d49cecf3786 | package main
import (
"errors"
"io/ioutil"
"regexp"
"sort"
"strings"
"github.com/yubo/golib/orm"
)
type FieldInfo struct {
Name string // 字段名
Desc string // 字段描述
}
type KeyInfo struct {
Name string // 键名
Type string // 键类型
Fields string // 键的字段列表
}
type EngineInfo struct {
Name string // 引擎名
Desc ... | GO | mysqldiff/parser.go | yubo/gotool | bsd-3-clause | 5,931 | 262 | codeparrot/github-code |
22a056e11a88dd113e2e079fe58145a53031b7a00efca01cefe42d614ff8feb4 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.sandbox.stats.multicomp.ccols — statsmodels v0.10.2 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../_stat... | HTML | v0.10.2/generated/statsmodels.sandbox.stats.multicomp.ccols.html | statsmodels/statsmodels.github.io | bsd-3-clause | 7,164 | 163 | codeparrot/github-code |
aa0b982069daedde3da517c8520629bcb45204b0f4ec1bd9e477fdad93414180 | <?php
/**
* Webino (http://webino.sk/)
*
* @link https://github.com/webino/WebinoDraw/ for the canonical source repository
* @copyright Copyright (c) 2012-2018 Webino, s. r. o. (http://webino.sk/)
* @license BSD-3-Clause
*/
namespace WebinoDraw\Debugger;
use Tracy\Dumper;
use WebinoDebug\Debugger\A... | PHP | src/WebinoDraw/Debugger/DrawPanel.php | webino/WebinoDraw | bsd-3-clause | 2,343 | 109 | codeparrot/github-code |
f3410687e20316b44bf4f2b14a371ec710dbec7f9015ca27096cfa2b2092462b | <?php
namespace Library\Entity;
use Doctrine\Common\Collections\ArrayCollection;
class Book
{
const DEFAULT_COVER = 'upload/covers/no-photo.png';
/** @var int */
private $id;
/** @var string */
private $name;
/** @var string */
private $author;
/** @var string */
private $des... | PHP | module/Library/src/Library/Entity/Book.php | nekser/Books | bsd-3-clause | 3,424 | 197 | codeparrot/github-code |
25d784aea0addbe3f319f1d50c8161606419e2723b31b499a075f188e3105c2b | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_FACTORY_H_
#define CHROME_BROWSER_ASH_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_FACTORY_H_
#include ... | C | chrome/browser/ash/login/signin/oauth2_login_manager_factory.h | nwjs/chromium.src | bsd-3-clause | 1,834 | 54 | codeparrot/github-code |
9322300efaa3a1a78f8aecb01b8529ef67125a6f1794e133bf370e365ec6bd6c | /* ___ _ ___ _ _ *\
** / __| |/ (_) | | The SKilL Generator **
** \__ \ ' <| | | |__ (c) 2013-16 University of Stuttgart **
** |___/_|\_\_|_|____| see LICENSE ... | Scala | src/main/scala/de/ust/skill/generator/c/io/BinaryReaderHeaderMaker.scala | skill-lang/skill | bsd-3-clause | 1,614 | 59 | codeparrot/github-code |
abd70f700904dc0925fbc1a206f50821cc03d162ccbca969b60a5719d7097be8 |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>el — MetPy 0.11</title>
... | HTML | v0.11/api/generated/metpy.calc.el.html | metpy/MetPy | bsd-3-clause | 15,821 | 377 | codeparrot/github-code |
8a0d28276af650be3423aefe32d9da9cdaf6d59837ef9fb24672f8b46fbfbb46 | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "tour".
*
* @property integer $id
* @property string $name
*
* @property Booking[] $bookings
* @property TourFields[] $tourFields
*/
class Tour extends \yii\db\ActiveRecord
{
public $field_names = [];
public $field_sorts = ... | PHP | models/Tour.php | sahartak/yii-task | bsd-3-clause | 1,263 | 70 | codeparrot/github-code |
16f56c142301f371ae51b8616add41033c1a2e0b108fab4b0f224af110c9e09b | <!DOCTYPE html>
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<link rel="import" href="/tracing/base/settings.html">
<link rel="import" href="/tracing/base/utils.html">
<link rel="import" href="/t... | HTML | tracing/tracing/ui/timeline_view.html | catapult-project/catapult-csm | bsd-3-clause | 16,068 | 556 | codeparrot/github-code |
a958aa8bd65d94bfbedc91e07d4084ba470f2286ffebf78199778392c7e125e9 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "platform/heap/PersistentNode.h"
#include "platform/heap/Handle.h"
namespace blink {
PersistentRegion::~PersistentRegion()
{
PersistentNod... | C++ | third_party/WebKit/Source/platform/heap/PersistentNode.cpp | was4444/chromium.src | bsd-3-clause | 4,916 | 141 | codeparrot/github-code |
ed902c097cdcc88370056f90aca7ec3074a3e0fe2c67cc4a9847fa85af9b4058 | #!/usr/bin/python
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Wrapper for invoking the BFD loader
A simple script to invoke the bfd loader instead of gold.
This script is in a filename "ld... | Python | native_client/src/trusted/service_runtime/linux/ld_bfd.py | endlessm/chromium-browser | bsd-3-clause | 2,039 | 75 | codeparrot/github-code |
14903bd2c7652b76cc88862cfce0ff75b01a33099514ed0e4934fba165ba5d25 | module Main where
import Data.Graph.Inductive.Graph
import Data.Graph.Inductive.Tree (Gr)
import System.Exit
import Flow
source = 1
sink = 2
node = 3
graph :: Gr String Int
graph = insEdge (node, sink, 1) . insEdge (source, node, 3) . insEdge (source, sink, 10) $
insNodes [(source, "source"), (sink, "sink"), (no... | Haskell | src/Main.hs | thsutton/mf | bsd-3-clause | 911 | 39 | codeparrot/github-code |
29fdeb77e1fddd500a1d2ced285e25c2290b85a19a70699397053a134f84bc7b | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[SysUser]].
*
* @see SysUser
*/
class SysUserQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* @inheritdoc
* @return SysUser[]|array
*/
... | PHP | models/SysUserQuery.php | lismansihotang/tokogudang | bsd-3-clause | 550 | 35 | codeparrot/github-code |
703a055699aab303223233bc2b77226543d86e9bc04961b0193a1d7d7e12ad80 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/Identifier) on 2016-06-23.
# 2016, SMART Health IT.
from . import element
class Identifier(element.Element):
""" An identifier intended for computation.
A technical identifier - id... | Python | rdr_service/lib_fhir/fhirclient_1_0_6/models/identifier.py | all-of-us/raw-data-repository | bsd-3-clause | 2,304 | 68 | codeparrot/github-code |
83d1defe5998d481ffe6addc87749d6b3831bf49107621f192dc983896858122 | /*
* Copyright 2019 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrMtlSemaphore_DEFINED
#define GrMtlSemaphore_DEFINED
#include "include/gpu/GrBackendSemaphore.h"
#include "include/private/GrTypesPriv.h"
#include "src/gpu/GrSemapho... | C | third_party/skia/src/gpu/mtl/GrMtlSemaphore.h | endlessm/chromium-browser | bsd-3-clause | 1,129 | 45 | codeparrot/github-code |
9851b41cdf495e8cf1442bac1220860435cd36a095452fad1e3485fc9cd1098f | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
IRC bot...
"""
import threading
import src.utilities as util
import src.settings
import src.irc.botObject
class BotDispatcher(threading.Thread):
"""
The BotDispatcher object handles the delegation of the various bots on
the various specified servers.
... | Python | src/irc/botDispatcher.py | Tehnix/PyIRCb | bsd-3-clause | 2,303 | 76 | codeparrot/github-code |
db7d8b8d40dbd5fce1ec05dc7dcbca0896bf2bbe93e3b53912ea9e2edc144af1 | #include <cstdlib>
#include <iostream>
// define necessary traits to use cumath::complex with boost ublas classes und functions
#include <limits>
#include <boost/numeric/ublas/traits.hpp>
#include <cumath/complex.hpp>
namespace cumath {
template<class T>
struct complex_traits {
typedef complex_traits<T> se... | C++ | examples/ublas_traits.cc | rabauke/cumath | bsd-3-clause | 2,524 | 104 | codeparrot/github-code |
45f7688a294e9370ff2be9895cc754c09923080f56f1e8b681f496198b8f1b32 | <?php
namespace backend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\models\Specialnost;
/**
* SpecialnostSearch represents the model behind the search form about `backend\models\Specialnost`.
*/
class SpecialnostSearch extends Specialnost
{
/**
* @inheritdoc
*/
... | PHP | backend/models/SpecialnostSearch.php | Summer-Sadness/nagruzka | bsd-3-clause | 1,460 | 68 | codeparrot/github-code |
9f1ed66c116b525af8e3ef18ac6c41e34c5f4f3d78e654c5fbfa1549a5a4a107 | // 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 CHROME_BROWSER_MEDIA_PUBLIC_SESSION_TAB_CAPTURE_ACCESS_HANDLER_H_
#define CHROME_BROWSER_MEDIA_PUBLIC_SESSION_TAB_CAPTURE_ACCESS_HANDLER_H_
#incl... | C | chrome/browser/media/public_session_tab_capture_access_handler.h | nwjs/chromium.src | bsd-3-clause | 3,028 | 66 | codeparrot/github-code |
9f64a3e46f1a12bc399089e196742a15d9f5aa36616172560f6eba22eb1aafd1 | package org.hisp.dhis.importexport.action.util;
/*
* Copyright (c) 2004-2015, 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... | Java | dhis-web/dhis-web-importexport/src/main/java/org/hisp/dhis/importexport/action/util/ImportMetaDataTask.java | kakada/dhis2 | bsd-3-clause | 3,523 | 100 | codeparrot/github-code |
1c39ca7bdfee0957bdeeeaf87c9a1f6b90f286e6f7ba4c1cfa623727ecf24b4e | from django.core.management.base import NoArgsCommand
from mypage.widgets.conf import settings
class LockedCommand(NoArgsCommand):
help = 'helper command that locks iteslf and kills predecessors'
cachelock = settings.MYPAGE_COMMAND_CACHELOCK
cachelock_timeout = settings.MYPAGE_COMMAND_CACHELOCK_TIMEOUT
... | Python | mypage/widgets/management/commands/__init__.py | ella/mypage | bsd-3-clause | 1,936 | 67 | codeparrot/github-code |
6a81c6a8ffeb5262802b616937b9196fa90819313ceb739630aa0347e19fa293 | /**
*/
package tosca.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.e... | Java | dicer-core/src/tosca/impl/MonitoringPropertyImpl.java | DICERs/DICER | bsd-3-clause | 4,867 | 207 | codeparrot/github-code |
ffd70b78d1bdd8f645da3f37f561cde04e4fe8eb1a99e8d2c66ab38201a6b52c | /**
* Copyright (c) 2016 Mavicona
* All rights reserved.
*
* Mavicona Redis Client
*/
#ifndef _XLOCK_H_
#define _XLOCK_H_
#ifdef WIN32
#include <Windows.h>
#else
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#endif
class xLock {
private:
#ifdef WIN32
CRITICAL_SECTION mSection;
#else
pthrea... | C | lib/mavredis/xLock.h | yorickdewid/Mavicona | bsd-3-clause | 1,278 | 81 | codeparrot/github-code |
78510c7a854ceffc83df7161c093886b9f62bb0d902a9a95d085b0f5418494cb | # This file is part of QuTiP: Quantum Toolbox in Python.
#
# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
... | Python | qutip/about.py | zasdfgbnm/qutip | bsd-3-clause | 3,318 | 83 | codeparrot/github-code |
4239cc04dfb01a3ab11c5c1e3b133a03ec91db19f26d9ecd57d6ce72bc9d69ca | #--
# Copyright (c) 2012-2014 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
#--
import peak
import datetime
from nagare import presentation, security, ajax, i18n
from nagare.i18... | Python | kansha/card_addons/due_date/view.py | Net-ng/kansha | bsd-3-clause | 2,112 | 72 | codeparrot/github-code |
2b71d9d16938f29bb5abff3c79b8aecb94d08d9048482d904fe38e179ae30605 | <?php
/**
* Zend Search Index
* Copyright (c) 2009-2015 Onxshop Ltd (https://onxshop.com)
* Licensed under the New BSD License. See the file LICENSE.txt for details.
*/
require_once('Zend/Http/Client.php');
require_once('Zend/Search/Lucene.php');
require_once('Zend/Search/Lucene/Document/Html.php');
class Onxsh... | PHP | controllers/bo/component/search_index.php | chrisblackni/onxshop | bsd-3-clause | 1,857 | 108 | codeparrot/github-code |
cfe06df966a91e274d6165bf6d43055e480cdd4b3c072309268dbe31c308a143 | // 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.
#ifndef CHROME_BROWSER_ANDROID_SEND_TAB_TO_SELF_ANDROID_NOTIFICATION_HANDLER_H_
#define CHROME_BROWSER_ANDROID_SEND_TAB_TO_SELF_ANDROID_NOTIFICATION_HANDL... | C | chrome/browser/android/send_tab_to_self/android_notification_handler.h | scheib/chromium | bsd-3-clause | 2,235 | 68 | codeparrot/github-code |
90b50226a53e615b90ab0ef2c2db353ee07c00aefdc261c629c6ae295e7bc1e9 | //
// Copyright 2016 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.
//
// SamplerVk.h:
// Defines the class interface for SamplerVk, implementing SamplerImpl.
//
#ifndef LIBANGLE_RENDERER_VULKAN_SAMPLERVK_H_
#de... | C | third_party/angle/src/libANGLE/renderer/vulkan/SamplerVk.h | endlessm/chromium-browser | bsd-3-clause | 1,152 | 46 | codeparrot/github-code |
f4abdd3e89369729e0cb1b274fdb9c2cd11fa7da0cd005e0f17f4705c80a9a74 | // 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 | third_party/zlib/contrib/minizip/iostarboard.c | youtube/cobalt | bsd-3-clause | 7,620 | 220 | codeparrot/github-code |
17399e070596992d697f5545ec9e336871e80ecf85106d5e646cbc1fbacda55f | // importing fhir-client will create a global http request object
// import '../../../node_modules/fhir-js-client/dist/fhir-client-isomorphic-fetch';
import '../../../node_modules/fhir-js-client/dist/fhir-client';
// initial global stub for a FhirClient
// in the reducer auth.js, will be replaced once authorized and j... | JavaScript | src/redux/modules/auth.js | once-ler/react-fhir | bsd-3-clause | 3,464 | 132 | codeparrot/github-code |
4c1cfcfc9f0d1a4bedd940fa632304dfa4fa72a8f6325e8f63d3ade3aeb7c32b | """
sentry.testutils.cases
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
__all__ = (
'TestCase', 'TransactionTestCase', 'APITestCase', 'AuthProviderTestCase',
'RuleTest... | Python | src/sentry/testutils/cases.py | zenefits/sentry | bsd-3-clause | 14,473 | 458 | codeparrot/github-code |
97d0a0bd459a65f39422bb112048710e83f544cc08eae9b207bb5ed40ae9818c | // TODO: Enable flow type checking
import {
React,
Component,
View,
TouchableOpacity,
PureComponent,
Img,
StyleSheet,
T,
Icon,
EvilIcon,
} from '/components/Component.js'
import { observable, computed, transaction, autorun, action } from 'mobx'
import { observer } from 'mobx-rea... | JavaScript | src/components/menu/MenuItemOrderList.js | sipsop/qdapp | bsd-3-clause | 11,147 | 346 | codeparrot/github-code |
32e76c76662da45ff32bdc50b293dce5018bdb8c3b91bbb0609f129c9adfa7e9 | #emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*-
#ex: set sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the PyNIfTI package for the
# copyright and license terms.
#
### ### ### ### ### ### #... | Python | nipy/io/imageformats/compat.py | yarikoptic/NiPy-OLD | bsd-3-clause | 7,618 | 298 | codeparrot/github-code |
04420178cab3acf01cd6330487635a4b160dd6096083d230aca677b16db733fd | <?php
namespace Application\Model;
use Zend\Db\Adapter\Adapter as Adapter;
class RymAlbumMapper {
/**
* @var RymAlbumDb
*/
protected $albumDb;
/**
* @var RymArtistDb
*/
protected $artistDb;
/**
* @var RymGenreDb
*/
protected $genreDb;
/**
* @var RymA... | PHP | module/Application/src/Application/Model/RymAlbumMapper.php | sustainablepace/mre | bsd-3-clause | 1,474 | 61 | codeparrot/github-code |
65bcfb618e5be617b8cbcbc32437f7a75ab54c3ade03a048aad6b7c79b2ebd2e | using Microsoft.Research.MultiWorldTesting.Contract;
using Microsoft.Research.MultiWorldTesting.JoinUploader;
using Microsoft.Research.MultiWorldTesting.ExploreLibrary;
using VW;
using VW.Labels;
using VW.Serializer;
using System;
using System.IO;
using System.Collections.Concurrent;
using System.Collections.Ge... | C# | ClientDecisionService/DecisionServiceLocal.cs | sidsen/mwt-ds-decision | bsd-3-clause | 17,264 | 405 | codeparrot/github-code |
14ed3e30bbd4f42a3d1fece52a47fed78a19acb79f14ed0b014a4e245c0a5386 | /******************************************************************************
*
* Cisco Systems, Inc.
*
* Copyright (c) 2009-2010 by Cisco Systems, Inc.
* All rights reserved.
*
******************************************************************************
*
* File:
*
* Description: RTP input stream class... | C | eva/vqec-dp/channel/vqec_dp_rtp_input_stream.c | wmanley/cisco-vqe-client | bsd-3-clause | 99,515 | 2,736 | codeparrot/github-code |
a81f11eca8c24d8c50c76cab874745c6d26e55573f5f3a6846365b1b3b6a40b8 | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE Strict #-}
module Layers.Pool where
import Network
import Util
import Static
import Data.Singletons.TypeLits
import Data.Array.Repa
... | Haskell | src/Layers/Pool.hs | jonascarpay/convoluted | bsd-3-clause | 1,383 | 49 | codeparrot/github-code |
f15dd02a2446064da8dca0c764cc921b4bd1c873ab20d447b041d38ddb3a2c22 | <?php
/**
* LICENSE
*
* Copyright (c) 2011, Thiago Rigo.
* 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 ... | PHP | library/Phoda/Locator/Container.php | thiagophx/Phoda-Locator | bsd-3-clause | 3,008 | 103 | codeparrot/github-code |
b64f215c2d76c9c9ae5682ae39342607a0884ee8535ef4f5d4347ef4c6e8aac6 | <!DOCTYPE html>
<html lang="en">
<head>
<title>Teresa Brennan</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.m... | HTML | ms_teresa.html | codergirlstl/WeeLoveMusic | bsd-3-clause | 5,009 | 69 | codeparrot/github-code |
bac7fc06a7552e52ea60762444b8b7dc9b091dc1adcc6d3d63cc13839ce5a0af |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.stats.outliers_influence.GLMInfluence.d_linpred_scaled — statsmodels v0.10.2 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="s... | HTML | v0.10.2/generated/statsmodels.stats.outliers_influence.GLMInfluence.d_linpred_scaled.html | statsmodels/statsmodels.github.io | bsd-3-clause | 6,293 | 152 | codeparrot/github-code |
64d008ac9cffb9954efc269b0b93b664dce066b0561c913b4a45414ff59cb306 | package abi44_0_0.expo.modules.ads.facebook;
import android.content.Context;
import android.graphics.Color;
import com.facebook.ads.AdOptionsView;
import abi44_0_0.expo.modules.core.ModuleRegistry;
import abi44_0_0.expo.modules.core.ViewManager;
import abi44_0_0.expo.modules.core.interfaces.ExpoProp;
import abi44_0_... | Java | android/versioned-abis/expoview-abi44_0_0/src/main/java/abi44_0_0/expo/modules/ads/facebook/AdOptionsWrapperViewManager.java | exponentjs/exponent | bsd-3-clause | 2,094 | 72 | codeparrot/github-code |
a538801da95145041e34038ffdfba475b52cc9c2d623061af57bfededea70fab | // $Id: SimpleCmdMsg.h,v 1.3 2006/11/30 23:30:54 binetude Exp $
/* tab:4
* "Copyright (c) 2000-2003 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without wri... | C | contrib/GGB/apps/LRX/SimpleCmdMsg.h | ekiwi/tinyos-1.x | bsd-3-clause | 2,397 | 82 | codeparrot/github-code |
08fa1d3c788d9671d23085c408de0d048f77d43e62cc36e87ce76dad4a6e7634 | #
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, su... | CMake | share/cmake/Coveralls.cmake | gwydirsam/DickGrayson | bsd-3-clause | 4,903 | 130 | codeparrot/github-code |
b76b2fdcfe20b44be5566111f914a6d62abed25d21e904f9d289e03b4d49e079 | // 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 NGBlockLayoutAlgorithm_h
#define NGBlockLayoutAlgorithm_h
#include "core/CoreExport.h"
#include "core/layout/ng/ng_box.h"
#include "wtf/RefPtr.h"... | C | third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h | danakj/chromium | bsd-3-clause | 1,134 | 39 | codeparrot/github-code |
59070d1a96501d7f318e13822f5b345171810b7efaee7548a3fbd267adb673ac |
package geospace.control.agent.service;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* g... | Java | geospace-artifacts/src/main/java/geospace/control/agent/service/ObjectFactory.java | GeoJosh/geospace | bsd-3-clause | 8,208 | 228 | codeparrot/github-code |
522c7f2ca16e226d22e37506f3e7dedfd30740c6ed4f6cfac9e60ffd731ffbf0 | #!/usr/bin/env bash
#===============================================================================
#
# FILE: paquetes.sh
#
# USAGE: ./paquetes.sh -h
#
# DESCRIPTION: An interactive menu to delete, query, and update packages...
#
# REQUIREMENTS: dmenu, pacman
# BUGS: ---
# ... | Shell | paquetes.sh | leogtzr/pacmenu | bsd-3-clause | 7,809 | 427 | codeparrot/github-code |
014ddbabca677229f7cb2f9cfb6136e487a2375617599735846e7c7a3859eba2 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.discrete.discrete_model.GeneralizedPoisson.score_obs — statsmodels v0.10.1 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="sty... | HTML | v0.10.1/generated/statsmodels.discrete.discrete_model.GeneralizedPoisson.score_obs.html | statsmodels/statsmodels.github.io | bsd-3-clause | 6,209 | 149 | codeparrot/github-code |
17592622b5b9b529a657a13aaec95dcd39e2851e053b348525df0a370a3bee7b | /*
* Carrot2 project.
*
* Copyright (C) 2002-2010, 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.core;
import java.util.Collecti... | Java | core/carrot2-core/src/org/carrot2/core/Controller.java | arnaudsj/carrot2 | bsd-3-clause | 25,581 | 596 | codeparrot/github-code |
75f229cc47562a74fe1923549c74901da3c95834311f78f92518615949ec1bdf | <!DOCTYPE html>
<html class="game">
<head lang="en">
<!-- Add game name to title -->
<title>Playing Music Shop</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta charset="utf... | HTML | Source/Testing/HtmlRenderer.ExperimentalApp/Data/Files/game/B113861442585A10390DF2B711576BA1.html | todor-dk/HTML-Renderer | bsd-3-clause | 13,939 | 328 | codeparrot/github-code |
9b4559252b8816dd0feea01d30d94040ae765f170e6e4fc76d657e41f776baee | <?php
namespace Application\Direct\Form;
use KJSencha\Annotation as Ext;
class Profile
{
/**
* Basic information
*
* @return array
*/
public function getBasicInfo()
{
return array(
'success' => true,
'data' => array(
'name' => 'Roy van ... | PHP | module/Application/src/Application/Direct/Form/Profile.php | Rovak/KJSenchaExample | bsd-3-clause | 1,382 | 72 | codeparrot/github-code |
0b6138e2d64f68ded8c7f9549fd87dae0001078085a67577b3827f91820b4277 |
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /><title>
Free youtube to mp3 converter premium Download - youtube to mp3 converter premium for Windows
</title>
<link r... | HTML | Source/Testing/HtmlRenderer.ExperimentalApp/Data/Files/youtube to mp3/D52CA27D8F3627FA7D1E8CDBE83E4539.html | todor-dk/HTML-Renderer | bsd-3-clause | 72,005 | 1,296 | codeparrot/github-code |
763bb2a6257fab89a181f18841c0f15752ed5b21818cede69029a1b6859de28b | ///////////////////////////////////////////////////////////////////////////////
//PROJECT: MicroNuclei detection project
//-----------------------------------------------------------------------------
//
// AUTHOR: Nico Stuurman
//
// COPYRIGHT: Regents of the University of California 2015
//
// LICENSE:... | Java | MicroNuclei/src/org/micromanager/micronuclei/gui/DragDropUtil.java | nicost/mnfinder | bsd-3-clause | 3,402 | 105 | codeparrot/github-code |
48258d495f30bb2d7475d73d9e629d0397251a2cebd76a91a1a53c4ae268e7f4 | package main
import (
"fmt"
"runtime"
)
var i *int
func f(x int) {
pc, file, line, ok := runtime.Caller(0)
if !ok {
panic("runtime.Caller not OK!")
}
fmt.Printf("pc = %d, file = %s, line = %d\n", pc, file, line)
fmt.Printf("f %d\n", x)
}
func final(ii *int) {
fmt.Printf("finalizer called on int ... | GO | go/runtime/Caller.go | dterei/Scraps | bsd-3-clause | 535 | 39 | codeparrot/github-code |
617d1f23165a98389b832a91b0ad9f1e7f5ed7051f1f779d5612625d134ce664 | // 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.
/**
* @fileoverview Active Directory password change screen implementation.
*/
login.createScreen(
'ActiveDirectoryPasswordChangeScreen', 'ad-passwo... | JavaScript | chrome/browser/resources/chromeos/login/screen_active_directory_password_change.js | endlessm/chromium-browser | bsd-3-clause | 2,963 | 96 | codeparrot/github-code |
743afa5a5607bb5f507faf7ca4e8625f635abda11c1b05f9875882b3d6808cbe | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <ABI40_0_0React/core/LayoutPrimitives.h>
namespace ABI40_0_0facebook {
namespace ABI40_0_0React {
inline s... | C | ios/versioned-react-native/ABI40_0_0/ReactNative/ReactCommon/fabric/core/ABI40_0_0conversions.h | exponent/exponent | bsd-3-clause | 1,578 | 64 | codeparrot/github-code |
324e53e0d091e23582acac0fe8b0a9d4a0b0a527d415453c2b0194def590b1b6 | // 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/webui/options/startup_pages_handler.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/prefs/pref_se... | C++ | chrome/browser/ui/webui/options/startup_pages_handler.cc | zcbenz/cefode-chromium | bsd-3-clause | 8,880 | 257 | codeparrot/github-code |
71546ffcc78ef68d2ff7819076cb3c1fdce4ee5eddcfab46af66394039de2980 | // 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 "ui/base/touch/touch_factory_x11.h"
#include <X11/cursorfont.h>
#include <X11/extensions/XInput.h>
#include <X11/extensions/XInput2.h>
#incl... | C++ | ui/base/touch/touch_factory_x11.cc | pozdnyakov/chromium-crosswalk | bsd-3-clause | 9,808 | 287 | codeparrot/github-code |
9b66c90723a031d254e80341fe63e5b23b926939c3753583560a316aa0bb1fbd | /**
* zrender
*
* @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
*
* shape类:标线
*/
define(function (require) {
var Base = require('zrender/shape/Base');
var IconShape = require('./Icon');
var LineShape = require('zrender/shape/Line');
var lineInstance = new LineShape({});
var BrokenLineShap... | JavaScript | src/util/shape/MarkLine.js | chinakids/echarts | bsd-3-clause | 12,535 | 372 | codeparrot/github-code |
53d7b647744b5464bcf52f4745e18e106fdd289a8da7357c835713ef41f528f3 | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/component_updater/widevine_cdm_component_installer.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <st... | C++ | chrome/browser/component_updater/widevine_cdm_component_installer.cc | endlessm/chromium-browser | bsd-3-clause | 10,102 | 270 | codeparrot/github-code |
4f24212225a293690a8eb7f13edda9071a0c8e95dd6bc7e5fa6c392165a66933 | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "tweetnacl.h"
#include <stdlib.h>
#if HAVE_BSD_STDLIB_H
#include <bsd/stdlib.h>
#endif
#pragma GCC diagnostic ignored "-Wsign-compare"
#define FOR(i,n) for (i = 0;i < n;++i)
#define sv static void
typedef unsigned char u8;
typedef unsigned long u32;
typedef u... | C | tweetnacl.c | rescrv/libmacaroons | bsd-3-clause | 16,825 | 821 | codeparrot/github-code |
4690ec2bff44b091507de8539316734cff0cd4f26f694fbfa0f552a1347ff9a3 | /**
*
* Created: Francisco Martín (fmrico@gmail.com) 26/12/2013
*
**/
package vicode;
import edu.umd.cs.piccolo.PLayer;
import edu.umd.cs.piccolo.event.PBasicInputEventHandler;
import edu.umd.cs.piccolo.event.PDragEventHandler;
import edu.umd.cs.piccolo.event.PInputEvent;
import edu.umd.cs.piccolo.nodes.PImage;
... | Java | tools/VICODE/src/vicode/State.java | fmrico/WaterMellon | bsd-3-clause | 13,040 | 480 | codeparrot/github-code |
f50e120e02dd0d3d8a4a356d98ed2ec8d771d9243294b63f5dce624f71011243 | //
// Copyright 2013 Autodesk, Inc. All rights reserved.
//
// This computer source code and related instructions and comments are the
// unpublished confidential and proprietary information of Autodesk, Inc. and
// are protected under applicable copyright and trade secret law. They may
// not be disclosed to,... | C | sbqgp/exp_3dsmax/include/Graphics/Utilities/SplineRenderItem.h | kshman/sblsp | bsd-3-clause | 12,146 | 308 | codeparrot/github-code |
029b26d008a007e31f71da98414a386d8ee7ad74c047c59574727b129b3e4a2c | <?php
define('_', '~'.md5(uniqid(time())).'~');// спец. апостроф
set_time_limit(250);
function setup_saveloadlist() {
include('config.php');
define("SERVER", $setup_saveloadlist['SERVER']);
define("USER", $setup_saveloadlist['USER']);
define("PASSWORD", $setup_saveloadlist['PASSWORD']);
define("DB", $setup... | PHP | backend/php-mysql/index.php | yapro/sqldesigner | bsd-3-clause | 11,534 | 410 | codeparrot/github-code |
d45bed5ad93a6c5ba5ada79181967c1018cef18c3068900187d326385129c75d | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/services/storage/dom_storage/session_storage_impl.h"
#include <stdint.h>
#include <vector>
#include "base/bind.h"
#include "base/b... | C++ | components/services/storage/dom_storage/session_storage_impl_unittest.cc | endlessm/chromium-browser | bsd-3-clause | 52,085 | 1,285 | codeparrot/github-code |
f85c23e695286c9ca8a0b1858de3b8a6a474fccad19fceb463db8d0f7efa4805 | // prf reads manipulates perf.data files.
// See https://lwn.net/Articles/644919/
package main
import (
"bufio"
"encoding/binary"
"flag"
"fmt"
"log"
"os"
)
type (
PerfHeader struct {
Magic [8]byte
Size uint64
AttrSize uint64
Attrs PerfFileSection
Data PerfFileSection
EventT... | GO | src/tools/prf/main.go | taysom/va | bsd-3-clause | 1,023 | 65 | codeparrot/github-code |
ee16d4154368fd5ede1647f4b15cc2d642f1689ad1d05c1fc85b9f786211bdd4 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
from getpass import getpass
from datetime import datetime
import pprint
from docopt import docopt
import requests
from .spelling import spellchecker
from .dispatch import dispatch
from .utils import login, validate_usernam... | Python | respect/main.py | oubiga/respect | bsd-3-clause | 2,305 | 87 | codeparrot/github-code |
a87fa1ee5f01ea3308298d901cf15850537f61a2465fb4f6f0cb468a4fead0cb | // Copyright 2011 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 "cc/layers/layer_impl.h"
#include "cc/layers/painted_scrollbar_layer_impl.h"
#include "cc/layers/solid_color_scrollbar_layer_impl.h"
#include "c... | C++ | cc/layers/layer_impl_unittest.cc | CTSRD-SOAAP/chromium-42.0.2311.135 | bsd-3-clause | 32,541 | 728 | codeparrot/github-code |
e84a0ca17d8553009ae4462ab1f782f21b5f05108e9c36ce00164038baf0eca0 | // 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 "media/cast/net/cast_transport_impl.h"
#include <gtest/gtest.h>
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/bind.h... | C++ | media/cast/net/cast_transport_impl_unittest.cc | endlessm/chromium-browser | bsd-3-clause | 14,829 | 410 | codeparrot/github-code |
591cfc1b379b6d198a7fe592a7123814af6a52df21fd58f8bd89fb241d9a75f1 | // Load modules
var Boom = require('boom');
var Hoek = require('hoek');
var HttpSignature = require('http-signature');
// Declare internals
var internals = {};
exports.register = function (plugin, options, next) {
plugin.auth.scheme('signature', internals.implementation);
next();
};
exports.register.attribu... | JavaScript | lib/index.js | 58bits/hapi-auth-signature | bsd-3-clause | 2,386 | 90 | codeparrot/github-code |
446cdc49cf1cd98f5adc5694adc2cb96aaae70be29218b23cf331075d384507f | /* $NetBSD: pcmciavar.h,v 1.9 1998/12/29 09:00:28 marc Exp $ */
/* $FreeBSD: src/sys/dev/pccard/pccardvar.h,v 1.6 2000/01/21 03:08:43 hosokawa Exp $ */
/*
* Copyright (c) 1997 Marc Horowitz. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... | C | freebsd4/sys/dev/pccard/pccardvar.h | MarginC/kame | bsd-3-clause | 8,902 | 285 | codeparrot/github-code |
c0c757993af6d09d536a7a68d2269b7e5b15658c09db4c76db579b9066d2ab50 | #include "pch.h"
#include <utility>
#include "ClientContext.h"
using namespace SocketTcpUwp;
using namespace Concurrency;
ClientContext::ClientContext(
IAsyncThreadPage^ page,
DatagramSocket ^ client) :
page_{ std::move(page) }, client_{ std::move(client) }
{
}
ClientContext::~ClientContext()
{
// ... | C++ | examples/apps/mstc/SocketUdpUwp/ClientContext.cpp | jjlee3/openthread | bsd-3-clause | 3,832 | 136 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.