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 |
|---|---|---|---|---|---|---|---|---|
764902d42a56c53df81817f6f000acb32104ae64ec630bca57c631e39f4c87bd | // 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 "media/filters/android/media_codec_audio_decoder.h"
#include "base/android/build_info.h"
#include "base/bind.h"
#include "base/callback_helpers.... | C++ | media/filters/android/media_codec_audio_decoder.cc | ds-hwang/chromium-crosswalk | bsd-3-clause | 17,221 | 565 | codeparrot/github-code |
cfda051e98b2ccd2f77200bea61af0e40f30cd77c13504fcc8d296dd7b2725ac | /*
* jmemmgr.c
*
* Copyright (C) 1991-1998, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
*
* This file contains the JPEG system-independent memory management
* routines. This code is usable across a ... | C | AIMToolkit_v4.0.0_rv44/source/dcmtk-3.6.1_20121102/dcmjpeg/libijg12/jmemmgr.c | NCIP/annotation-and-image-markup | bsd-3-clause | 42,472 | 1,176 | codeparrot/github-code |
f3e4a5d69f89877e8e1c430471a87dd0de73de58da06cc3bd15c116b0fedbc3f | /*
* Copyright 2016 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 | base/networkroute.h | jchavanton/webrtc | bsd-3-clause | 1,819 | 53 | codeparrot/github-code |
b3c060480400a4747396ea590e2d7552af250376baa80084d1f91605bf50090d | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE464_Addition_of_Data_Structure_Sentinel__basic_14.c
Label Definition File: CWE464_Addition_of_Data_Structure_Sentinel__basic.label.xml
Template File: sources-sink-14.tmpl.c
*/
/*
* @description
* CWE: 464 Addition of Data Structure Sentinel
* BadSource: Read ... | C | xcc/test/juliet/testcases/CWE464_Addition_of_Data_Structure_Sentinel/CWE464_Addition_of_Data_Structure_Sentinel__basic_14.c | JianpingZeng/xcc | bsd-3-clause | 3,635 | 132 | codeparrot/github-code |
4e291d595574e5cd39d3ef2f2a1b52858d5f5705d452b76b65d7c9e4f71e387b | # this clas was inspired (heavily) from the mephisto admin architecture
class Spree::Admin::OverviewController < Spree::Admin::BaseController
before_filter :check_json_authenticity, :only => :get_report_data
#todo, add rss feed of information that is happening
def index
@show_dashboard = show_dashboard
... | Ruby | app/controllers/spree/admin/overview_controller.rb | ReserveBar1/spree_simple_dash | bsd-3-clause | 6,153 | 151 | codeparrot/github-code |
8936376e29b1edaab6df39646af94a981e1a0c07b30896c6ffe278f366cd4327 | import re
from django import template
from django.conf import settings
from django.template import TemplateSyntaxError
from django.template.base import FilterExpression
from django.template.defaulttags import URLNode
from django.utils.encoding import iri_to_uri, smart_str
from django.urls import set_urlconf, get_urlco... | Python | django_hosts/templatetags/hosts.py | jezdez/django-hosts | bsd-3-clause | 5,070 | 151 | codeparrot/github-code |
6ec9279d51982b222ff494ca748bb9802aa50b350cb50c92025eafd09fdad714 | /******************************************************************
*
* CyberX3D for Java
*
* Copyright (C) Satoshi Konno 1997-2002
*
* File : DirectionalLightNode.java
*
* Revisions:
*
* 12/05/02
* - Removed a ambientIntensity field.
* - Removed getDiffuseColor(), getAmbientColor()
*
********************************... | Java | core/src/main/java/org/cybergarage/x3d/node/DirectionalLightNode.java | cybergarage/CyberX3D4Java | bsd-3-clause | 2,672 | 107 | codeparrot/github-code |
bfda748832bffe8eb129e0b19c2b1c5543d829c7a39fc896396d411d34945a7d | from mcpi.minecraft import Minecraft
from mcpi import block
from mcmodels import ISS, Stairs, Rocket, LaunchPad
from mcsensors import DisplayTube
from time import sleep, time
from mcclock import Clock
"""
SpaceCRAFT - Astro Pi competition[http://astro-pi.org/] entry
Conceived by Hannah Belshaw
Created by Martin O'Hanl... | Python | spacecraft/mcdisplays.py | astro-pi/SpaceCRAFT | bsd-3-clause | 5,395 | 182 | codeparrot/github-code |
3422b008b098a2cf16ae097029ebbe86895291725e1a3b60520992819e24bece | #include "whistlepig.h"
#include "tokenizer.lex.h"
typedef struct pword {
char* token;
pos_t start;
pos_t end;
} pword;
RARRAY_DECLARE(pword);
RAISING_STATIC(is_match(wp_query* query, const char* field, RARRAY(pword) words, uint32_t start, uint32_t* end, int* found)) {
wp_query* child;
*found = 0;
switch... | C | src/cbits/whistlepig/snippeter.c | thoughtpolice/hs-whistlepig | bsd-3-clause | 4,367 | 128 | codeparrot/github-code |
cb1512421267c152841c76fded2a430776feff12c56fe3f2dfd24ecce6146a1d | using System;
using System.Runtime.InteropServices;
namespace Cosmos.System.Graphics
{
/*
* This struct represents a video mode in term of its number of columns, rows and color_depth
*/
/// <summary>
/// Mode struct. Represents a video mode in term of its number of columns, rows and color depth... | C# | source/Cosmos.System2/Graphics/Mode.cs | zarlo/Cosmos | bsd-3-clause | 6,112 | 218 | codeparrot/github-code |
f5f7a9ad26691b2e29cd926d868fb4bfa935d96d248d4eaaa0529e751ddbc6b8 | //= require maskedinput
$(document).ready(function(){
$(".moip_payment").hide();
$("input[name='payment_type']").change(function(){
var payment_selected = $(this).val();
$(".moip_payment").hide();
$("#" + payment_selected).show();
});
$("#checkout_form_payment input[type=submit]").click(function(... | JavaScript | app/assets/javascripts/store/spree_moip_payment.js | Helabs/spree_moip_payment | bsd-3-clause | 5,383 | 161 | codeparrot/github-code |
1aebd23f42ae7f4e2a743e1061b00c37dc89e83c0f36302026ee7935f7478540 | /* __ *\
** ________ ___ / / ___ __ ____ Scala.js sbt plugin **
** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-js.org/ **
** /____/\___/_/ |_/... | Scala | js-envs/src/main/scala/org/scalajs/jsenv/phantomjs/PhantomJSEnv.scala | jasonchaffee/scala-js | bsd-3-clause | 17,657 | 512 | codeparrot/github-code |
55f7555f3f5a09d8f7403e9beeee4f34ed4c1bab936b59bc298e9ef53a70ce85 | /*
Copyright (C) 2014 Yahoo! Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following di... | JavaScript | scripts/domxss_epitome.js | neraliu/tpjs | bsd-3-clause | 3,167 | 80 | codeparrot/github-code |
5247fd2a2d25d698ae15e2f1ade49ba9d1e1ea971b7491fca87538ea567b1306 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__delete_struct_static_54e.cpp
Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.nonpointer.label.xml
Template File: sources-sink-54e.tmpl.cpp
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: static Da... | C++ | xcc/test/juliet/testcases/CWE590_Free_Memory_Not_on_Heap/s03/CWE590_Free_Memory_Not_on_Heap__delete_struct_static_54e.cpp | JianpingZeng/xcc | bsd-3-clause | 1,364 | 50 | codeparrot/github-code |
886ac8edb74e79591bb8e511479801990433c4f1129daa35b82ece5f57d90275 | package bio.terra.buffer.app.controller;
import static bio.terra.buffer.common.MetricsHelper.HANDOUT_RESOURCE_REQUEST_COUNT_VIEW;
import static bio.terra.buffer.common.testing.MetricsTestUtil.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.springframework.test.web.servlet.request.Mock... | Java | src/test/java/bio/terra/buffer/app/controller/BufferApiControllerTest.java | DataBiosphere/terra-resource-buffer | bsd-3-clause | 7,667 | 198 | codeparrot/github-code |
055c75b32ca0a6b28f393e2d18eac4add9b6d755860f3c88df11a4bc7d5fc9a6 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011-2012, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistri... | C | include/Gaffer/FilteredChildIterator.h | andrewkaufman/gaffer | bsd-3-clause | 4,539 | 160 | codeparrot/github-code |
5dd633611c85031cfb5d93e90cc2f358619d087423b26fc72f6340bac6e72957 | //this is our main file
// testing
#include <unistd.h>
#include <stdio.h>
#include <vector>
#include <iostream>
#include <boost/tokenizer.hpp>
#include <string>
#include <sys/types.h>
#include <sys/wait.h>
#include <cstring>
using namespace std;
void execute(string command, bool &pass) {
if(command == "exit")
{
e... | C++ | src/main.cpp | ybern004/rshell | bsd-3-clause | 2,770 | 146 | codeparrot/github-code |
2c3d9490079e133cc13e25218ff8b8189e8fe4179e832fd95a752bd304f3300b | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE690_NULL_Deref_From_Return__struct_calloc_01.c
Label Definition File: CWE690_NULL_Deref_From_Return.free.label.xml
Template File: source-sinks-01.tmpl.c
*/
/*
* @description
* CWE: 690 Unchecked Return Value To NULL Pointer
* BadSource: calloc Allocate data us... | C | xcc/test/juliet/testcases/CWE690_NULL_Deref_From_Return/s02/CWE690_NULL_Deref_From_Return__struct_calloc_01.c | JianpingZeng/xcc | bsd-3-clause | 2,622 | 89 | codeparrot/github-code |
fd08c458d82b15dfcbea3a93633d72668b2edefd3b125a647d035567de33acb5 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE194_Unexpected_Sign_Extension__listen_socket_malloc_83.h
Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml
Template File: sources-sink-83.tmpl.h
*/
/*
* @description
* CWE: 194 Unexpected Sign Extension
* BadSource: listen_socket Read data usin... | C | xcc/test/juliet/testcases/CWE194_Unexpected_Sign_Extension/s02/CWE194_Unexpected_Sign_Extension__listen_socket_malloc_83.h | JianpingZeng/xcc | bsd-3-clause | 1,358 | 51 | codeparrot/github-code |
a608f174721fd4a1915af53e8ef34db72c6425b90431254a40968eaa48f4ab97 | const $$ = {
on(root, eventName, selector, fn) {
root.addEventListener(eventName, function (event) {
const target = event.target.closest(selector);
if (root.contains(target)) {
fn.call(target, event);
}
});
},
onPanelRender(root, panelId, f... | JavaScript | debug_toolbar/static/debug_toolbar/js/utils.js | django-debug-toolbar/django-debug-toolbar | bsd-3-clause | 3,530 | 108 | codeparrot/github-code |
087539dd393f6b9308c3faab8b4cdc8b6fe6ee2818462dd01e599c74ab511a8b | import {ColorMapper} from "./color_mapper"
import {Factor} from "../ranges/factor_range"
import * as p from "core/properties"
import {Arrayable} from "core/types"
import {findIndex} from "core/util/array"
import {isString} from "core/util/types"
function _equals(a: Arrayable<any>, b: Arrayable<any>): boolean {
if (... | TypeScript | bokehjs/src/lib/models/mappers/categorical_color_mapper.ts | Karel-van-de-Plassche/bokeh | bsd-3-clause | 2,098 | 86 | codeparrot/github-code |
b6fcdc704b7845fdfada31a833174c432ea483200577d9c36853ac0c13953045 | // Copyright (c) 2015, The Radare Project. All rights reserved.
// See the COPYING file at the top-level directory of this distribution.
// Licensed under the BSD 3-Clause License:
// <http://opensource.org/licenses/BSD-3-Clause>
// This file may not be copied, modified, or distributed
// except according to those term... | Rust | radeco-lib/src/analysis/dce.rs | radare/radeco-lib | bsd-3-clause | 5,090 | 155 | codeparrot/github-code |
38a07b0d4bcff02492cb4aacb05bdb2faab17a341dc33c6d6983e28525219507 | /*
* 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.
*/
package com... | Java | drawee/src/main/java/com/facebook/drawee/generic/RoundingParams.java | qiyongqiang/fresco | bsd-3-clause | 7,839 | 274 | codeparrot/github-code |
3d761de4fce61e2d285308b669abffb388d5a1b32910e23012b96bfae7a5c32a | //===-- asan_allocator.cc -------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | third_party/llvm-project/compiler-rt/lib/asan/asan_allocator.cc | youtube/cobalt | bsd-3-clause | 39,790 | 1,110 | codeparrot/github-code |
b6ef09675e50f6f204519754fa4dfd6cd15a456f55b4e4e196e1e14528dc4789 | package io.sniffy.test;
import io.sniffy.sql.JdbcInvocationHandler;
import java.lang.reflect.Method;
import java.sql.Connection;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.Semaphore;
/**
* @since 3.1.6
*/
public class SlaveConnection extends JdbcInvocationH... | Java | sniffy-test/sniffy-test-common/src/main/java/io/sniffy/test/SlaveConnection.java | bedrin/jdbc-sniffer | bsd-3-clause | 1,596 | 55 | codeparrot/github-code |
a5017707c98eae3ff40d4f9fb3f017a18f464a9b5542a39bd8fdd3c2c51e3c0e | <?php
namespace SilverStripe\FullTextSearch\Utils;
use Iterator;
class CombinationsArrayIterator implements Iterator
{
protected $arrays;
protected $keys;
protected $numArrays;
protected $isValid = false;
protected $k = 0;
public function __construct($args)
{
$this->arrays = arr... | PHP | src/Utils/CombinationsArrayIterator.php | silverstripe-labs/silverstripe-fulltextsearch | bsd-3-clause | 1,803 | 85 | codeparrot/github-code |
ba4ac7f4c02a2ffe7ef3396f4a8a03e88faea056a8f2f81b0038f7d657655e7d | /*
* HTML5 Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ==========================================================================
Base sty... | CSS | docs/test/iife/css/main.css | cinecove/defunctr | bsd-3-clause | 6,381 | 338 | codeparrot/github-code |
1702b9d4fcc37ec90c34ea0e578fd35adf7cce0141a1cafa726810be263346f5 | /*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | C | vp10/encoder/rd.h | jmvalin/aom | bsd-3-clause | 5,260 | 195 | codeparrot/github-code |
7eb4e1ef22c7437b667801a81bf9ef4f7c43ad00b1741a4c680b0e91f6a9e5b3 | package pq
import (
"fmt"
"io"
"sync"
"github.com/flynn/flynn-discovery/Godeps/_workspace/src/github.com/flynn/go-sql"
"github.com/flynn/flynn-discovery/Godeps/_workspace/src/github.com/flynn/pq/oid"
)
type LargeObjects struct {
Has64 bool
mtx sync.Locker
fp *fastpath
}
const largeObjectFns = `select p... | GO | Godeps/_workspace/src/github.com/flynn/pq/large_object.go | imjorge/flynn-discovery | bsd-3-clause | 3,811 | 173 | codeparrot/github-code |
1b4cd7360d253286ce050ba79b9e930b39c513a0750f852c32c46ffd4cf0e58c | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_42.c
Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml
Template File: sources-sink-42.tmpl.c
*/
/*
* @description
* CWE: 195 Signed to Unsigned Conversion Error
* BadSource: fscan... | C | xcc/test/juliet/testcases/CWE195_Signed_to_Unsigned_Conversion_Error/s01/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_42.c | JianpingZeng/xcc | bsd-3-clause | 3,237 | 117 | codeparrot/github-code |
87b0f452e62dbdf9a8efb564fa49950f17a9c413a5001df4aec61c442fc24ba7 | /**
* Copyright (c) 2015, 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.
*/
import { Sour... | JavaScript | src/language/parser.js | Bernardstanislas/graphql-js | bsd-3-clause | 10,972 | 479 | codeparrot/github-code |
f7b83b726da52dbe44897e6d0aabbbffc101c0a0e0bd2a68811b46c1b3087f18 | """
Command handler
This module contains the infrastructure for accepting commands on the
command line. The process is as follows:
1) The calling object (caller) inputs a string and triggers the command parsing system.
2) The system checks the state of the caller - loggedin or not
3) If no command string was supplied... | Python | src/commands/cmdhandler.py | GhostshipSoftware/avaloria | bsd-3-clause | 20,996 | 480 | codeparrot/github-code |
6da60b15f301d016f7baf32477f58c6b0847b0b934cdef05469308f6432cf573 | import hashlib
import json
import os
import unicodedata
import uuid
from django.conf import settings
from django.core.files.storage import default_storage as storage
from django.core.urlresolvers import reverse
from django.db import models
from django.dispatch import receiver
from django.template.defaultfilters import... | Python | mkt/files/models.py | eviljeff/zamboni | bsd-3-clause | 11,351 | 333 | codeparrot/github-code |
06d835638485e18c3b90270b8ba3407bbf3185f7b9822f50725f5a423f9e0dfd | import {
buildRanking as buildRankingImpl,
IImposeColumnBuilder,
INestedBuilder,
IReduceBuilder,
IScriptedBuilder,
IWeightedSumBuilder
} from '..';
import {Ranking} from '../../model';
import {LocalDataProvider} from '../../provider';
export interface IBuilderAdapterRankingProps {
sortBy?: (string | { co... | TypeScript | src/builder/adapter/ranking.ts | Caleydo/lineup.js | bsd-3-clause | 3,344 | 136 | codeparrot/github-code |
0a7cc4cabe0657a4f79b5ad50df151df482e4a786975de523940638eceb178d5 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE617_Reachable_Assertion__zero_10.c
Label Definition File: CWE617_Reachable_Assertion__zero.label.xml
Template File: point-flaw-10.tmpl.c
*/
/*
* @description
* CWE: 617 Reachable Assertion
* Sinks:
* GoodSink: assert(true), which will never trigger
* ... | C | xcc/test/juliet/testcases/CWE617_Reachable_Assertion/CWE617_Reachable_Assertion__zero_10.c | JianpingZeng/xcc | bsd-3-clause | 2,659 | 97 | codeparrot/github-code |
b37f0c3674da25b7a00916d9d063a2c8d4dfb28ff0767bd8ff8a982d4654f8fd | <?php
/**
*
* feel free to mod this Class
*
*/
class User extends CActiveRecord
{
public static function model($className=__CLASS__)
{
return parent::model($className);
}
/**
* @return string the associated database table name
*/
public function tableName()
{
// DO NOT CHANGE
return Yii::app()-... | PHP | comercial/protected/modules/rbac/models/User.php | fipasoft/erp | bsd-3-clause | 585 | 42 | codeparrot/github-code |
93664a852be7b16d0c4b7e6d0f3ed40f8056ac7450a91b71dc8322122f201ad8 | import datetime
from mozillians.phonebook.models import Invite
from mozillians.users.models import IdpProfile
def redeem_invite(redeemer, code):
if code:
try:
invite = Invite.objects.get(code=code, redeemed=None)
voucher = invite.inviter
except Invite.DoesNotExist:
... | Python | mozillians/phonebook/utils.py | akatsoulas/mozillians | bsd-3-clause | 853 | 32 | codeparrot/github-code |
39d375622749411b38748d339a8ee6ee881c10cb20e01ae2daf77a2915167263 | /*
* Copyright (c) 2014-2015, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* l... | C | drivers/arm/tzc400/tzc400.c | athoelke/arm-trusted-firmware | bsd-3-clause | 9,562 | 341 | codeparrot/github-code |
35378ef57fe8dffc5ac948f72d242197752aca19a1858d6d5786f057feba4304 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE126_Buffer_Overread__wchar_t_declare_loop_07.c
Label Definition File: CWE126_Buffer_Overread.stack.label.xml
Template File: sources-sink-07.tmpl.c
*/
/*
* @description
* CWE: 126 Buffer Over-read
* BadSource: Set data pointer to a small buffer
* GoodSource:... | C | xcc/test/juliet/testcases/CWE126_Buffer_Overread/s03/CWE126_Buffer_Overread__wchar_t_declare_loop_07.c | JianpingZeng/xcc | bsd-3-clause | 4,989 | 167 | codeparrot/github-code |
9936d6491d67a900433f70d771a2dcb172e7d573b17e858586242cdef66f6ef9 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__src_char_alloca_cat_52b.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__src.label.xml
Template File: sources-sink-52b.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Initialize data... | C | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s08/CWE121_Stack_Based_Buffer_Overflow__src_char_alloca_cat_52b.c | JianpingZeng/xcc | bsd-3-clause | 1,497 | 47 | codeparrot/github-code |
28e8fc071411944c28feac3f10ce7aa8ddb67cb34dc52b79d65d4cdc2352e227 | // 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/p2p/socket_dispatcher.h"
#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "content/child/child_process... | C++ | content/renderer/p2p/socket_dispatcher.cc | Bysmyyr/chromium-crosswalk | bsd-3-clause | 6,328 | 205 | codeparrot/github-code |
46608d1e9fd21e0ecd1add8120c4f1bc752874a92851e5792a0ac8416c2aa9c0 | /************************************************************************
* posumm_cannon/mm_cannon_cnc.cpp: This file is part of the POSUMM project.
*
* POSUMM: Portable OSU Matrix-Multiply, CnC implementations.
*
* Copyright (C) 2014,2015 Ohio State University, Columbus, Ohio
*
* This program can be redistributed and... | C++ | samples/matrix_multiply/posumm/posumm_cannon/mm_cannon_cnc.cpp | fschlimb/icnc | bsd-3-clause | 25,337 | 788 | codeparrot/github-code |
12b92d16e5c2e2083939a332591f2529a4c9ed07d049dd107fff45329ce38c91 | \documentclass{llncs}
%\usepackage{showlabels}
%\usepackage{llncs}
%\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{algorithm2e}
%\usepackage{fullpage}
\pagenumbering{arabic}
%\newtheorem{theorem}{Theorem}[section]
%\newtheorem{definition}[theorem]{Definition}
%\newtheorem{lemma}[theorem]{Lemma}
%\newtheorem{c... | TeX | contents/research/publication/Conference/2006-08-13-Nilpotent/paper.tex | piyush-kurur-pages/website | bsd-3-clause | 53,616 | 1,161 | codeparrot/github-code |
dd13072438ea8159e7f52705f335acb8a88df71230a09cabe474b72a84886466 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__char_environment_ofstream_72b.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-72b.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: environment Read input fro... | C++ | xcc/test/juliet/testcases/CWE36_Absolute_Path_Traversal/s02/CWE36_Absolute_Path_Traversal__char_environment_ofstream_72b.cpp | JianpingZeng/xcc | bsd-3-clause | 1,629 | 65 | codeparrot/github-code |
802939d7e4c527dd54be9938bf0997478b2f96b578a56dcce4ea5afc61b859b0 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_memcpy_83_bad.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml
Template File: sources-sink-83_bad.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSour... | C++ | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s04/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_memcpy_83_bad.cpp | JianpingZeng/xcc | bsd-3-clause | 1,709 | 44 | codeparrot/github-code |
b3164d18924e126dcc834887e2468a0828ef9fe34d6efe41f88e6c63fc02db96 | // Copyright 2015 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.
package ssa
// findlive returns the reachable blocks and live values in f.
func findlive(f *Func) (reachable []bool, live []bool) {
reachable = ReachableBlock... | GO | src/cmd/compile/internal/ssa/deadcode.go | Cofyc/go | bsd-3-clause | 6,817 | 290 | codeparrot/github-code |
40f5ddbb07f824f295e6a266575e40447ce651660ab96b0645a125b72917f896 | // 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.
package org.chromium.sync.notifier;
import android.accounts.Account;
import android.content.Context;
import android.content.Intent;
import android.co... | Java | sync/android/java/src/org/chromium/sync/notifier/InvalidationController.java | zcbenz/cefode-chromium | bsd-3-clause | 9,399 | 259 | codeparrot/github-code |
22510e85e7ee9f2d1730d9ee88635bca4ef06b88521d677788369b354020d51b | # Copyright 2010 Google Inc.
#
# 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, dis-
# trib... | Python | vendor-local/boto/gs/acl.py | kumar303/rockit | bsd-3-clause | 10,641 | 297 | codeparrot/github-code |
4891f5cf81c4a64eead98d69c53428b4d3afff2bdd05de84bbaf4d9168888a21 | /* @flow */
import * as React from "react";
import { cloneDeep } from "lodash";
declare var Plotly: Object;
type Props = {
data: string | Object
};
declare class PlotlyHTMLElement extends HTMLElement {
data: Object;
layout: ?Object;
}
const NULL_MIMETYPE = "text/vnd.plotly.v1+html";
const MIMETYPE = "applicatio... | JavaScript | packages/commuter-frontend/transforms/PlotlyTransform.js | jdetle/nteract | bsd-3-clause | 2,308 | 89 | codeparrot/github-code |
c71b4cea1993837fde294ae84f73161855a8af75b63822a8dd11faed9fe5b94c | /*================================================================================
Copyright (c) 2013 Steve Jin. 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 re... | Java | src/main/java/com/vmware/vim25/HostVMotionNetConfig.java | patrickianwilson/vijava-contrib | bsd-3-clause | 2,261 | 57 | codeparrot/github-code |
a6d599b7649dc6b5bf6c5917ece4ee20a7c46fb66d864c8fce19afb7e4211594 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE123_Write_What_Where_Condition__connect_socket_34.c
Label Definition File: CWE123_Write_What_Where_Condition.label.xml
Template File: sources-sink-34.tmpl.c
*/
/*
* @description
* CWE: 123 Write-What-Where Condition
* BadSource: connect_socket Overwrite linked... | C | xcc/test/juliet/testcases/CWE123_Write_What_Where_Condition/CWE123_Write_What_Where_Condition__connect_socket_34.c | JianpingZeng/xcc | bsd-3-clause | 7,331 | 219 | codeparrot/github-code |
d4ea4477e9f425fe950bdc3009eb73519a29a296d99580a5afafe6ae8272c811 | //! Utilities useful for various generations tasks.
use std::ops::{Index, IndexMut};
use std::mem;
use std::iter;
use std::collections::HashMap;
use std::collections::hash_map::Entry;
use num::Float;
use na;
use na::{Pnt3, Dim, Cross, Orig};
use ncollide_utils::{HashablePartialEq, AsBytes};
use math::{Scalar, Point, V... | Rust | ncollide_procedural/utils.rs | MichaelRiss/ncollide | bsd-3-clause | 8,586 | 248 | codeparrot/github-code |
6587adc578fcbe42f274cd6302b35751e7d65d0f3c0738cdb47e7015302f01c6 | /*
* Copyright (C) 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | JavaScript | src/webkit/Source/WebInspectorUI/UserInterface/BreakpointActionView.js | klim-iv/phantomjs-qt5 | bsd-3-clause | 7,432 | 199 | codeparrot/github-code |
2cf1f594114b7bfb7511004d650f5c507011a05bc15aaaea66b478c2877efb77 | <?php
/**
* This is the model class for table "queue".
*
* The followings are the available columns in table 'queue':
*
* @property string $id
* @property string $worker
* @property string $create_time
* @property string $task
* @property string $start_time
* @property string $complete_time
* @... | PHP | protected/modules/queue/models/Queue.php | 1datr/yupe | bsd-3-clause | 5,044 | 148 | codeparrot/github-code |
41960150b98241b7cfc1d931b6e2d60f52cbdbe40af8a8977db3ac1d397b3c2d | /*
* linkage.c - Ruby LinkParser Linkage class
* $Id$
*
* Authors:
* * Michael Granger <ged@FaerieMUD.org>
*
* Copyright (c) 2007, 2008 The FaerieMUD Consortium
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files... | C | ext/linkage.c | smtlaissezfaire/ruby-linkparser2 | bsd-3-clause | 24,156 | 991 | codeparrot/github-code |
aef7f24c1d348236a6959eae3e8f0be289fc97e3be9829bbdfc55ba0230f4260 | #include <strads/include/common.hpp>
#include <strads/netdriver/zmq/zmq-common.hpp>
#include <strads/netdriver/comm.hpp>
#include <mpi.h>
#include <zmq.hpp>
#include <string>
using namespace std;
#define MAX_BUFFER (1024*16)
#define MAX_MACH (128)
#define ITER_TEST (0)
// local functions
void worker_ringwakeup(shar... | C++ | src/strads/netdriver/zmq/zmq-common.cpp | petuum/strads | bsd-3-clause | 73,241 | 1,842 | codeparrot/github-code |
8eda5cc7cb0ca77b7baca03fb03049c247bf9e907457bbe7488427f758377043 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE773_Missing_Reference_to_Active_File_Descriptor_or_Handle__w32CreateFile_68b.c
Label Definition File: CWE773_Missing_Reference_to_Active_File_Descriptor_or_Handle__w32CreateFile.label.xml
Template File: source-sinks-68b.tmpl.c
*/
/*
* @description
* CWE: 773 Mis... | C | xcc/test/juliet/testcases/CWE773_Missing_Reference_to_Active_File_Descriptor_or_Handle/CWE773_Missing_Reference_to_Active_File_Descriptor_or_Handle__w32CreateFile_68b.c | JianpingZeng/xcc | bsd-3-clause | 2,597 | 72 | codeparrot/github-code |
c626534714c319ca408266a091da09da787a1bd35d9f7b24f9d316d18aa9d109 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__char_console_w32CreateFile_81.h
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-81.tmpl.h
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: console Read input from the con... | C | xcc/test/juliet/testcases/CWE36_Absolute_Path_Traversal/s01/CWE36_Absolute_Path_Traversal__char_console_w32CreateFile_81.h | JianpingZeng/xcc | bsd-3-clause | 1,394 | 54 | codeparrot/github-code |
7d83209c40d2557206fc84c5c50d0124e240e041f71a68481bd0fd72d48ff17e | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__char_max_multiply_43.cpp
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-43.tmpl.cpp
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: max Set data to the max value for char
* GoodSource... | C++ | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s01/CWE190_Integer_Overflow__char_max_multiply_43.cpp | JianpingZeng/xcc | bsd-3-clause | 3,341 | 132 | codeparrot/github-code |
a1d778ffdb96c998ab9d6f3fa4fba45c98e4599c610539e6825b8a105e21cfb9 | <?php
namespace app\modules\core\components;
class Translit
{
public static function rus2translit( $string )
{
$converter = array(
'а' => 'a', 'б' => 'b', 'в' => 'v',
'г' => 'g', 'д' => 'd', 'е' => 'e',
'ё' => 'e', 'ж' => 'zh', 'з' => 'z',
'и' => 'i', 'й' => 'y', 'к' => 'k',
'л' => 'l', 'м' =>... | PHP | modules/core/components/Translit.php | ivphpan/darhan-butique | bsd-3-clause | 1,464 | 85 | codeparrot/github-code |
a01ff4e67938a6f93db3e65a85aa0fa8f41001448eafea271b5338cae9e484cf | #include "whistlepig.h"
static const int HASH_PRIME_SIZE = 32;
static const uint32_t prime_list[] = {
0ul, 3ul, 11ul, 23ul, 53ul,
97ul, 193ul, 389ul, 769ul, 1543ul,
3079ul, 6151ul, 12289ul, 24593ul, 49157ul,
98317ul, 196... | C | stringmap.c | wmorgan/whistlepig | bsd-3-clause | 9,148 | 284 | codeparrot/github-code |
21aed8216b00156be5913674155fc30dda90837b7e59a282fd89c57ec1aa800c | <?php
/**
* Toss convenience funcs into the global namespace.
* All of these are available as instance methods on Application
* but put here to make them easier to get reach. In other words, just syntactic sugar.
* To disable this global namespace pollution set:
* define('OMIT_GLOBAL_HELPERS', true);
* Before includin... | PHP | Vicious/Free.php | gdenisov/Vicious | bsd-3-clause | 2,036 | 71 | codeparrot/github-code |
64d0a25f0d08a6d6050db94e16666c8133c024ef84c25cd80ddf9877b584f59f | import os
from importlib import import_module
from pulsar import ImproperlyConfigured
from cloud import aws
from .. import core
content_types = {'fjson': 'application/json',
'inv': 'text/plain'}
class Docs(core.AgileCommand):
"""Requires a valid sphinx installation
"""
description = ... | Python | agile/plugins/docs.py | quantmind/pulsar-agile | bsd-3-clause | 2,024 | 59 | codeparrot/github-code |
fcb4f4b2c26bf517691d0ae752f5bf54bbcb50be5678db63ec3c931447e3cb06 | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | C++ | libs/hwdrivers/src/aria/src/ArFileParser.cpp | samuelpfchoi/mrpt | bsd-3-clause | 14,811 | 527 | codeparrot/github-code |
ac8aa825ae67935f0b3af45c229ad8423c3b34ccb7fbb62e3d5817802ff4eac0 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE193.label.xml
Template File: sources-sink-34.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Point d... | C | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s02/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34.c | JianpingZeng/xcc | bsd-3-clause | 3,907 | 117 | codeparrot/github-code |
0a35c09019be8f567ac8929b0db7c962804fd618fd74d266a88e1b70fab1316b | // Copyright 2009 The Trustees of Indiana University.
// 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)
// Authors: Jeremiah Willcock
// Andrew Lumsdaine
#ifndef BOOST_GRAPH_DETAIL_HISTOGRAM_... | C++ | LibsExternes/Includes/boost/graph/detail/histogram_sort.hpp | benkaraban/anima-games-engine | bsd-3-clause | 10,468 | 287 | codeparrot/github-code |
e922f21d672150164cfb232741860b882a127532aa03904e1d500eaae80896bd | # -*- coding: utf-8 -*-
"""
line.client
~~~~~~~~~~~
LineClient for sending and receiving message from LINE server.
:copyright: (c) 2014 by Taehoon Kim.
:license: BSD, see LICENSE for more details.
"""
import rsa
import requests
try:
import simplejson as json
except ImportError:
import json... | Python | line/api.py | Inndy/LINE | bsd-3-clause | 7,999 | 245 | codeparrot/github-code |
d9c484d07affec67e0a97b93abae54bdbb4871e48b084574429b72f23a6e556e | /*
* Copyright (c) 2012 Clément Bœsch
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any lat... | C | third_party/ffmpeg/libavformat/realtextdec.c | endlessm/chromium-browser | bsd-3-clause | 5,444 | 163 | codeparrot/github-code |
419739cdb0ed5deea603bbc5d3da7940bb7588daf77feff8fbf0e6795d84ce16 | {-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Monoid
import qualified Graphics.Vty as V
import qualified Brick.Main as M
import Brick.Widgets.Core
( Widget
, padAll
, str
)
import qualified Brick.Widgets.Dialog as D
import qualified Brick.Widgets.Center as C
import qualified Brick.AttrMap a... | Haskell | programs/DialogDemo.hs | FranklinChen/brick | bsd-3-clause | 1,675 | 63 | codeparrot/github-code |
35dd19f4bd5dd1123e400b18b9c25db1158f8dfbc99360b6f18ac9b505f12cc4 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE617_Reachable_Assertion__fgets_52a.c
Label Definition File: CWE617_Reachable_Assertion.label.xml
Template File: sources-sink-52a.tmpl.c
*/
/*
* @description
* CWE: 617 Reachable Assertion
* BadSource: fgets Read data from the console using fgets()
* GoodSour... | C | xcc/test/juliet/testcases/CWE617_Reachable_Assertion/CWE617_Reachable_Assertion__fgets_52a.c | JianpingZeng/xcc | bsd-3-clause | 2,673 | 102 | codeparrot/github-code |
0ba9bb8fe20894cfd7fe276cb4565445117fe5b3463172aa38c9cb83e704a9e9 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkRegularPolygonSource.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... | C | Filters/Sources/vtkRegularPolygonSource.h | SimVascular/VTK | bsd-3-clause | 3,731 | 102 | codeparrot/github-code |
d7a56fa74098dd1fdc8138d0d3edac3e93d0eb8473c992efc685fec33438f136 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_loop_67a.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml
Template File: sources-sink-67a.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set data ... | C | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_loop_67a.c | JianpingZeng/xcc | bsd-3-clause | 3,382 | 94 | codeparrot/github-code |
4cee9874dace2c5112118626fcdd8f5eac93c9ceb8a0a25fbf759db8c8959f08 | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace Centro\Model\Data;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputF... | PHP | module/Centro/src/Centro/Model/Data/Centro.php | tavoot/cysdusac | bsd-3-clause | 11,678 | 299 | codeparrot/github-code |
984eaae7ee5170081efc56e753fce640e2105d100a90f82b16e4486d54a79677 | /*
* MXF OP-Atom reader
*
* Copyright (C) 2006, British Broadcasting Corporation
* All Rights Reserved.
*
* Author: Philip de Nier
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of ... | C | examples/reader/mxf_opatom_reader.c | stuarthicks/libmxf | bsd-3-clause | 33,753 | 971 | codeparrot/github-code |
6aa55a6104a669d432474d6af7a1aeb04fd2424baeb6c4dcba574a0c89dabb37 |
package org.cipres.treebase.dao.study;
import org.hibernate.Criteria;
import org.cipres.treebase.dao.AbstractDAO;
import org.cipres.treebase.domain.study.CitationStatus;
import org.cipres.treebase.domain.study.CitationStatusHome;
/**
* CitationStatusDAO.java
*
* Created on Nov 20, 2006
*
* @aut... | Java | treebase-core/src/main/java/org/cipres/treebase/dao/study/CitationStatusDAO.java | TreeBASE/treebasetest | bsd-3-clause | 2,045 | 82 | codeparrot/github-code |
91643ae263f53e7e1aa8cd9566c364df2483cd1632cf5262bf2cab23c0b13e81 | // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "bin/dfe.h"
#include "bin/dartutils.h"
#include "bin/directory.h"
#include "bin/error_exit.h"... | C++ | runtime/bin/dfe.cc | dart-lang/sdk | bsd-3-clause | 18,138 | 549 | codeparrot/github-code |
593e2e4ec31ee37e69bb8be2d8d584b05c0d321c7941ebc200ea0bcc2660b77c | /*
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... | C | openssl/ssl/bio_ssl.c | jens-maus/amissl | bsd-3-clause | 13,083 | 508 | codeparrot/github-code |
5c56b6ace33a57ddb65b2f07bdb9d66df4c740dac131294a6b0057c1d55817e4 | <?php if (!defined('IDIR')) { die; }
/*======================================================================*\
|| ####################################################################
|| # vBulletin Impex
|| # ----------------------------------------------------------------
|| # All PHP code in this file is Copyright 2... | PHP | systems/wordpress_cms/001.php | vBZachery/vbimpex | bsd-3-clause | 6,389 | 132 | codeparrot/github-code |
ccf8268a4e182ead01e3b55cc2d78045243ced8c0f4d7ff36e478ffcbc7bd2a9 | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is grant... | C | src/chrono/collision/bullet/BulletCollision/CollisionShapes/cbtBvhTriangleMeshShape.h | projectchrono/chrono | bsd-3-clause | 5,480 | 145 | codeparrot/github-code |
9edae2e8408e922f0792ea1f8a2b395524b9d5128507561937e9fc5a46c353bb | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/policy/user_cloud_external_data_manager.h"
#include "base/location.h"
#include "base/memory/scoped_ptr.h"
#include "bas... | C++ | chrome/browser/chromeos/policy/user_cloud_external_data_manager.cc | cvsuser-chromium/chromium | bsd-3-clause | 1,583 | 44 | codeparrot/github-code |
14a9994caa59ba0c70c9556dab332a4525b6b0c0b9e077d96ab0bfe1efca5ace | using System.Windows;
using System.Windows.Controls;
namespace Paymetheus.Helpers
{
public class PasswordBoxWaterMark : DependencyObject
{
#region Attached Properties
public static bool GetIsMonitoring(DependencyObject obj)
{
return (bool)obj.GetValue(IsMonitoringProperty)... | C# | Paymetheus/Helpers/PasswordBoxWaterMark.cs | jrick/Paymetheus | isc | 3,618 | 112 | codeparrot/github-code |
71e67b2621934b5e06f75d0acf1a8deec47aa75d2d5c82293f9bcfd535edadb9 | package org.ripple.bouncycastle.jcajce.io;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.GeneralSecurityException;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import org.ripple.bou... | Java | ripple-bouncycastle/src/main/java/org/ripple/bouncycastle/jcajce/io/CipherInputStream.java | ripple/ripple-lib-java | isc | 6,507 | 219 | codeparrot/github-code |
ab3d7610342b47ad5dc35da50b42df5ae67c537326e61b1f1c448eaa54d12bd6 | package com.ripple.core.types.ledger;
import com.ripple.core.binary.STReader;
import com.ripple.core.coretypes.RippleDate;
import com.ripple.core.coretypes.hash.HalfSha512;
import com.ripple.core.coretypes.hash.Hash256;
import com.ripple.core.coretypes.hash.prefixes.HashPrefix;
import com.ripple.core.coretypes.uint.UI... | Java | ripple-core/src/main/java/com/ripple/core/types/ledger/LedgerHeader.java | mileschet/ripple-lib-java | isc | 3,583 | 93 | codeparrot/github-code |
b2a40e6f7298bd5b6fe62fcecf15679aee580403e1ea8a0e804f8bd0f697a7a7 | // Copyright 2013 the V8 project authors. All rights reserved.
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions o... | JavaScript | src/node/deps/v8/test/webkit/fast/js/kde/exception_propagation.js | x684867/nemesis | mit | 9,664 | 446 | codeparrot/github-code |
8c0f3e743feb52bc84a06c734099e59b9c9226b1407d770ab00499c57ed9da51 | /** @file
DMA Remapping Reporting (DMAR) ACPI table definition from Intel(R)
Virtualization Technology for Directed I/O (VT-D) Architecture Specification.
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under th... | C | inc/edk2/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h | jjingram/schminke | mit | 10,294 | 262 | codeparrot/github-code |
c8b2aa28d8c15c4225a76344fdf74acafb452b936134ea19601196f4f9828f1d | package controlP5;
/**
* controlP5 is a processing gui library.
*
* 2006-2015 by Andreas Schlegel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the ... | Java | sketchbook/libraries/controlP5/src/controlP5/Tooltip.java | jaspertravers/Processing | mit | 9,766 | 391 | codeparrot/github-code |
02d1a4805b2fe90b02e31cbd5e75a50a00ea5b777e5993efb8d4dac51878703a | <!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Module: Concurrent::Concern::Observ... | HTML | docs/1.0.5/Concurrent/Concern/Observable.html | lucasallan/concurrent-ruby | mit | 18,963 | 694 | codeparrot/github-code |
b75ec12b3945aa4bef62d20510a87ffe2a15f2eb1e6047f7c053866e60e07623 | var mocha = require('../')
, Suite = mocha.Suite
, Runner = mocha.Runner
, Test = mocha.Test;
describe('Runner', function(){
var suite, runner;
beforeEach(function(){
suite = new Suite('Suite', 'root');
runner = new Runner(suite);
})
describe('.grep()', function(){
it('should update the run... | JavaScript | test/runner.js | santiagoaguiar/mocha | mit | 12,222 | 378 | codeparrot/github-code |
b75b329f2114a76e37bc1f4fb9f2087155ee3be49142a1fdaa6466c412e0791e | # Time: O(max(r, c) * wlogw)
# Space: O(w)
class Solution(object):
def shortestDistance(self, maze, start, destination):
"""
:type maze: List[List[int]]
:type start: List[int]
:type destination: List[int]
:rtype: int
"""
start, destination = tuple(start), tu... | Python | Python/the-maze-ii.py | yiwen-luo/LeetCode | mit | 1,267 | 37 | codeparrot/github-code |
9c4ef2deb84ccd708263b8986ac6297f130d65426b30fe1a10173f1b7039b015 | from .Exporter import Exporter
from ..python2_3 import asUnicode
from ..parametertree import Parameter
from ..Qt import QtGui, QtCore, QtSvg, QT_LIB
from .. import debug
from .. import functions as fn
import re
import xml.dom.minidom as xml
import numpy as np
__all__ = ['SVGExporter']
class SVGExporter(Exporter):
... | Python | acq4/pyqtgraph/exporters/SVGExporter.py | campagnola/acq4 | mit | 17,330 | 439 | codeparrot/github-code |
a81c630fc2ca18c1ed5f7358a53a4185ceec6cd2f38cae7ab5def2f00617cdea | package org.hyperion.fileserver;
import java.nio.ByteBuffer;
import java.util.logging.Logger;
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.future.IoFuture;
import org.apache.mina.core.future.IoFutureListener;
import org.apache.mina.core.session.IoSession;
/**
* Represents a single update... | Java | src/org/hyperion/fileserver/UpdateSession.java | ThomasPapp/zHyperion | mit | 3,341 | 156 | codeparrot/github-code |
2ac8ddee345bac6888ddf701a711ba3f4fd209aebc05f329e40ba7333e34f943 | namespace Nez.AI.BehaviorTrees
{
/// <summary>
/// will repeat execution of its child task until the child task has been run a specified number of times. It has the option of
/// continuing to execute the child task even if the child task returns a failure.
/// </summary>
public class Repeater<T> : Decorator<T>
... | C# | Nez.Portable/AI/BehaviorTree/Decorators/Repeater.cs | ericmbernier/Nez | mit | 1,574 | 67 | codeparrot/github-code |
54c34855f13ea7fba2aba1523704a057406415dd8c7bd3e4a8f460fff4136d0d | package org.multibit.hd.ui.fest.use_cases.standard.restore_password;
import org.fest.swing.fixture.FrameFixture;
import org.multibit.hd.ui.fest.use_cases.AbstractFestUseCase;
import org.multibit.hd.ui.languages.MessageKey;
import org.multibit.hd.ui.views.wizards.welcome.WelcomeWizardState;
import java.awt.event.KeyEv... | Java | mbhd-swing/src/test/java/org/multibit/hd/ui/fest/use_cases/standard/restore_password/RestorePasswordEnterSeedPhraseUseCase.java | bitcoin-solutions/multibit-hd | mit | 4,266 | 157 | codeparrot/github-code |
54befe929e78ddda3ee989f3817ff925b352fb67205a8073aa8015658da572be | #!/usr/bin/env bash
# Base16 Ocean - Gnome Terminal color scheme install script
# Chris Kempson (http://chriskempson.com)
[[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Base 16 Ocean Dark"
[[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="base-16-ocean-dark"
[[ -z "$DCONF" ]] && DCONF=dconf
[[ -z "$UUIDGEN" ]] && UUIDGEN=uuidgen
... | Shell | zsh/base16-gnome-dark.sh | callmeyesh/Dotfiles | mit | 3,317 | 114 | codeparrot/github-code |
310dd49e825995e0ff45ab2cd477e1c568d5d7604fc9f53d353d68c6ed28ae1b | // Copyright 2013 the V8 project authors. All rights reserved.
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions o... | JavaScript | src/node/deps/v8/test/webkit/fast/js/kde/func-decl.js | x684867/nemesis | mit | 2,480 | 68 | codeparrot/github-code |
a53e3f843068b3e79450903fca0f31102ceea59759f13e66a103d1854c6cff9f | import sys, os, socket, atexit, re
import pkg_resources
from pkg_resources import ResolutionError, ExtractionError
from setuptools.compat import urllib2
try:
import ssl
except ImportError:
ssl = None
__all__ = [
'VerifyingHTTPSHandler', 'find_ca_bundle', 'is_available', 'cert_paths',
'opener_for'
]
c... | Python | pypi/bandersnatch/lib/python2.7/site-packages/setuptools/ssl_support.py | c0710204/mirrorsBistu | mit | 7,288 | 249 | codeparrot/github-code |
549a67f50f10acf0e53a7012f1387da907f9a3f2aa4ca3739a82b95939719af9 | /**
* Javascript ical Parser
* Proof of concept method of reading icalendar (.ics) files with javascript.
*
* @author: Carl Saggs
* @source: https://github.com/thybag/
* @version: 0.2
*/
function ical_parser(feed_url, callback){
//store of unproccesed data.
this.raw_data = null;
//Store of proccessed data.
... | JavaScript | public/js/ical_parser.js | jithinjose2/akku | mit | 7,407 | 225 | codeparrot/github-code |
1fdd8aca936ceeb39cf241739180332c4e59629b28e56e4c9de1f09c1b8708f8 | /*
* Copyright (c) 2017 - 2018
*
* 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, distribut... | Java | jsettlers.main.android/src/main/java/jsettlers/main/android/core/controls/AndroidControls.java | Peter-Maximilian/settlers-remake | mit | 7,363 | 233 | codeparrot/github-code |
593c16d26a0e6208d6f9a735d5d0e44bfb4238f1dfb32015ae7bc53fb420c9d9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../images/favicon.png" type="image/png">
<title>Brack... | HTML | template/rtl/media-manager.html | fanwenqi/admin | mit | 54,479 | 1,159 | codeparrot/github-code |
8155c12f7719facadb1fcfd11594b688d96a93c1389c208f2a02484b7dab0fdb | export default function ({ types: t }) {
function hasRefOrSpread(attrs) {
for (let i = 0; i < attrs.length; i++) {
const attr = attrs[i];
if (t.isJSXSpreadAttribute(attr)) return true;
if (isJSXAttributeOfName(attr, "ref")) return true;
}
return false;
}
function isJSXAttributeOfNam... | JavaScript | packages/babel-plugin-transform-react-inline-elements/src/index.js | zjmiller/babel | mit | 2,045 | 70 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.