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
18bd5ebcc33d669acb5968a855ab0a1b6e5d326a5fdd2696555869bf6c91e6b2
// posix/chrono.cpp --------------------------------------------------------------// // Copyright Beman Dawes 2008 // Copyright Vicente J. Botet Escriba 2009 // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------...
C++
xray/SDK/include/boost/chrono/detail/inlined/posix/chrono.hpp
hpl1nk/nonamegame
gpl-3.0
3,336
121
codeparrot/github-code
fc923a12217b45043a82ed8712bc2498d934ddfa9210d979bdd705d0436af47a
/* * Copyright 2010 Tilera Corporation. All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, version 2. * * This program is distributed in the hope that it will ...
C
virt/arch/tile/include/asm/kmap_types.h
talnoah/android_kernel_htc_dlx
gpl-2.0
1,475
58
codeparrot/github-code
e888a90c6a137e9a07db287b5477e6484ce82ce079bc0883595e4b5b4a3d985e
#ifndef LINUX_CRASH_DUMP_H #define LINUX_CRASH_DUMP_H #ifdef CONFIG_CRASH_DUMP #include <linux/kexec.h> #include <linux/proc_fs.h> #include <linux/elf.h> #include <asm/pgtable.h> /* for pgprot_t */ #define ELFCORE_ADDR_MAX (-1ULL) #define ELFCORE_ADDR_ERR (-2ULL) extern unsigned long long elfcorehdr_addr; extern un...
C
media/include/linux/crash_dump.h
iwinoto/v4l-media_build-devel
gpl-2.0
2,925
93
codeparrot/github-code
389969c8b0379970df8233338449c774887329083870f565491b7ad9991ebfa8
/* * Apple iSight audio driver * * Copyright (c) Clemens Ladisch <clemens@ladisch.de> * Licensed under the terms of the GNU General Public License, version 2. */ #include <asm/byteorder.h> #include <linux/delay.h> #include <linux/device.h> #include <linux/firewire.h> #include <linux/firewire-constants.h> #include...
C
virt/sound/firewire/isight.c
JijonHyuni/HyperKernel-JB
gpl-2.0
18,436
757
codeparrot/github-code
0ca1ab05fabcf4c5a71e55c8ff6e748d0f2d06bf8ab38c7c098bfec0853c0f15
/** * Tag-closer extension for CodeMirror. * * This extension adds an "autoCloseTags" option that can be set to * either true to get the default behavior, or an object to further * configure its behavior. * * These are supported options: * * `whenClosing` (default true) * Whether to autoclose when...
JavaScript
wp-content/plugins/ilightbox/scripts/codemirror/closetag.js
d8ta/CMS_Skiclub
gpl-2.0
3,778
86
codeparrot/github-code
37f81f02e3d796f7d4cea1457e70445ed0bfa9d63c103860b0d4ed9c010669d9
/*! * classie - class helper functions * from bonzo https://github.com/ded/bonzo * * classie.has( elem, 'my-class' ) -> true/false * classie.add( elem, 'my-new-class' ) * classie.remove( elem, 'my-unwanted-class' ) */ /*jshint browser: true, strict: true, undef: true */ ( function( window ) { 'use strict'; ...
JavaScript
itrading/js/classie.js
joelpinheiro/joelpinheiro.github.io
mit
1,457
63
codeparrot/github-code
65e02ba2bb5724e80bd9f4875403c9de99df876644ad33f2680695c041b8288d
/* * Copyright (c) 2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the h...
C
oss/linux/linux-4.7/drivers/gpu/drm/msm/dsi/dsi_manager.c
geminy/aidear
gpl-3.0
21,982
832
codeparrot/github-code
041e4c86b0d12a88f9b3cbde54789fc5257e54d2492af3ca3c93f14a6fe2cfef
/* * pci.c -- PCI bus support for ColdFire processors * * (C) Copyright 2012, Greg Ungerer <gerg@uclinux.com> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details. */ #include <linux/types.h> #in...
C
linux-5.4/arch/m68k/coldfire/pci.c
BPI-SINOVOIP/BPI-Mainline-kernel
gpl-2.0
6,421
258
codeparrot/github-code
a8fc579cf67c944193a7d34d3d7a75de70a2eff40116e258c78c6905f824a376
/************************************************************************ * FILE NAME : TMSCSIM.C * * BY : C.L. Huang, ching@tekram.com.tw * * Description: Device Driver for Tekram DC-390(T) PCI SCSI * * Bus Master Host Adapter * * (C)Copyright 1995-1996 Tekram Technology Co., Ltd. * ***...
C
src/drivers/scsi/tmscsim.c
felixhaedicke/nst-kernel
gpl-2.0
77,473
2,622
codeparrot/github-code
c55e9b6c92e9e5782d7770be5b4e74f8824cd4dbbb4b74013906d6269d9dbff9
// Copyright 2011 John Maddock. Distributed under the Boost // 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) // // This file has no include guards or namespaces - it's expanded inline inside default_op...
C++
venv/bin/boost/multiprecision/detail/functions/constants.hpp
NixaSoftware/CVis
apache-2.0
9,838
289
codeparrot/github-code
39b641e7532b1c2b7b7fdda1efae2f5fb4b909f1703f372119d808590329e44b
/* * linux/fs/fifo.c * * written by Paul H. Hargrove * * Fixes: * 10-06-1999, AV: fixed OOM handling in fifo_open(), moved * initialization there, switched to external * allocation of pipe_inode_info. */ #include <linux/mm.h> #include <linux/fs.h> #include <linux/sched.h> #include <linux/pipe_fs_i.h> ...
C
virt/fs/fifo.c
talnoah/android_kernel_htc_dlx
gpl-2.0
3,260
154
codeparrot/github-code
18b7eab11f0ddea19cdf15dbfc2020270958ea9713a9d05e0c860d6d79bf1a5f
<?php /** * Validates the HTML type length (not to be confused with CSS's length). * * This accepts integer pixels or percentages as lengths for certain * HTML attributes. */ class HTMLPurifier_AttrDef_HTML_Length extends HTMLPurifier_AttrDef_HTML_Pixels { public function validate($string, $config, $context...
PHP
xe4kaist/classes/security/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Length.php
talkwithraon/XE4KAIST
apache-2.0
950
42
codeparrot/github-code
89acd244fdbaeb86248c0af93926eae0f03c6ec5dfb88abaff047434de079d65
/* * Copyright (c) 2010-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in ...
C
virt/drivers/crypto/qce/cipher.h
mericon/Xp_Kernel_LGH850
gpl-2.0
1,879
69
codeparrot/github-code
e4f25adcfee2f80d9f86abcbe07b06b2499a838d229bdb794567329cff946e16
/* * Gadget Function Driver for MTP * * Copyright (C) 2010 Google, Inc. * Author: Mike Lockwood <lockwood@android.com> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under t...
C
drivers/usb/gadget/f_mtp.c
GenTarkin/SGH-T769-kernel
gpl-2.0
32,141
1,269
codeparrot/github-code
a17412eb8f7842786d127ac84b707c542bb4664d3b7f160a37c773ddefacdd7f
// SPDX-License-Identifier: GPL-2.0 /* * Shared Memory Communications over RDMA (SMC-R) and RoCE * * Generic netlink support functions to interact with SMC module * * Copyright IBM Corp. 2020 * * Author(s): Guvenc Gulce <guvenc@linux.ibm.com> */ #include <linux/module.h> #include <linux/list.h> #include <l...
C
net/smc/smc_netlink.c
rperier/linux
gpl-2.0
3,254
142
codeparrot/github-code
4a3d7d150f4db1c8a2129fae02bb833b4163de5ed14ecdf5d0f7cb771773f40e
/* PCMCIA/Cardbus */ #include "qemu-common.h" typedef struct { qemu_irq irq; int attached; const char *slot_string; const char *card_string; } PCMCIASocket; void pcmcia_socket_register(PCMCIASocket *socket); void pcmcia_socket_unregister(PCMCIASocket *socket); void pcmcia_info(Monitor *mon); struct ...
C
tracers/qemu/decaf/hw/pcmcia.h
KernelAnalysisPlatform/KlareDbg
gpl-3.0
1,868
52
codeparrot/github-code
8832c15a1332267c2d2914cb09b3de876e3e884b31551d8c0454e0ffd9e8c679
#ifdef __KERNEL__ # include <linux/string.h> # include <linux/slab.h> # include <linux/bug.h> # include <linux/kernel.h> # ifndef dprintk # define dprintk(args...) # endif #else # include <string.h> # include <stdio.h> # include <stdlib.h> # include <assert.h> # define BUG_ON(x) assert(!(x)) # define dprintk(args...)...
C
net/ceph/crush/mapper.c
BRNmod/android_kernel_motorola_msm8226
gpl-2.0
14,341
622
codeparrot/github-code
33de1a2c33384efea92b7b932a363ae94f2247ea324f641bed79a403eaee2821
/* Copyright 2008-2011 Broadcom Corporation * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed to you * under the terms of the GNU General Public License version 2, available * at http://www.gnu.org/licenses/old-licenses/gpl...
C
virt/drivers/net/bnx2x/bnx2x_link.h
JijonHyuni/HyperKernel-JB
gpl-2.0
12,774
400
codeparrot/github-code
50dba332e3e74fc803a7d4c234ad1ec138399d7ffed7c37ea628e1348acdae53
/* * Machine interface for the pinctrl subsystem. * * Copyright (C) 2011 ST-Ericsson SA * Written on behalf of Linaro for ST-Ericsson * Based on bits of regulator core, gpio core and clk core * * Author: Linus Walleij <linus.walleij@linaro.org> * * License terms: GNU General Public License (GPL) version 2 */ ...
C
linux/linux-kernel/include/linux/pinctrl/machine.h
kv193/buildroot
gpl-2.0
5,115
171
codeparrot/github-code
d9d45de35ce45a4f9d06d0fc9c5d506c9505eb6e4f3975cc1f19a7f772e24a14
/* * include/linux/tegra_nvavp.h * * Copyright (C) 2011 NVIDIA Corp. * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any * kind, whether express or implied. */ #ifndef __LINUX_TEGRA_NVAVP_H #define __LINUX_TEGRA_N...
C
include/linux/tegra_nvavp.h
niker/elitekernel_oxp
gpl-2.0
2,265
97
codeparrot/github-code
812dcb2e11ec36eb30524300fc8084479ce80d92df8ac5f90bf7d6f4bc0b0e53
<?php /** * Smarty Internal Plugin Compile While * Compiles the {while} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile While Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_While extends Smarty_Internal_C...
PHP
x/lib/smarty/libs/sysplugins/smarty_internal_compile_while.php
xopherdeep/Skeleton-App
gpl-2.0
3,664
94
codeparrot/github-code
04b0f0e8ab3356d206e8748dc1f48649ee4747aa21c00613b317869c05ff14a5
/* Fallback per-CPU frame pointer holder * * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software F...
C
virt/include/asm-generic/irq_regs.h
AiJiaZone/linux-4.0
gpl-2.0
980
38
codeparrot/github-code
96e1e185db843f30d4b36c534a07c1bb424ca08ff2885f8c2653c39146093eb1
/* starfire.c: Linux device driver for the Adaptec Starfire network adapter. */ /* Written 1998-2000 by Donald Becker. Current maintainer is Ion Badulescu <ionut ta badula tod org>. Please send all bug reports to me, and not to Donald Becker, as this code has been heavily modified from Donald's original version. ...
C
linux_kernel_galaxyplayer-master/drivers/net/starfire.c
KOala888/GB_kernel
gpl-2.0
64,584
2,108
codeparrot/github-code
f13f54e1b4aa900e38a49714d9358daac7225ed34fa313551e67994e049c9796
/* * Support for the Tundra Universe I/II VME-PCI Bridge Chips * * Author: Martyn Welch <martyn.welch@ge.com> * Copyright 2008 GE Intelligent Platforms Embedded Systems, Inc. * * Based on work by Tom Armistead and Ajit Prem * Copyright 2004 Motorola Inc. * * Derived from ca91c042.c by Michael Wyrick * * This...
C
linux_kernel_galaxyplayer-master/drivers/staging/vme/bridges/vme_ca91cx42.c
KOala888/GB_kernel
gpl-2.0
47,180
1,839
codeparrot/github-code
6c8fd8efacea2500c8b99e9b392ffeb40500c2e1fa971aaa348efc7792205099
#ifndef __LINUX_SPINLOCK_API_SMP_H #define __LINUX_SPINLOCK_API_SMP_H #ifndef __LINUX_SPINLOCK_H # error "please don't include this file directly" #endif /* * include/linux/spinlock_api_smp.h * * spinlock API declarations on SMP (and debug) * (implemented in kernel/spinlock.c) * * portions Copyright 2005, Red H...
C
include/linux/spinlock_api_smp.h
rperier/linux
gpl-2.0
5,346
187
codeparrot/github-code
b162d42855df89162a59495eb091f27b7731b00ee6ebe03ef3d55345326e0fe2
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
C
sound/soc/msm/qdsp6v2/msm-pcm-lpa-v2.c
sohkis/android_kernel_motorola_shamu
gpl-2.0
23,983
838
codeparrot/github-code
a2e03adeb5d9786bbded3863ab73a2dfd6c6c5a74e31bea4808340f9c27a3446
# settings file for builds. # if you want to have custom builds, copy this file to "localbuildsettings.py" and make changes there. # possible fields: # resourceBaseUrl - optional - the URL base for external resources (all resources embedded in standard IITC) # distUrlBase - optional - the base URL to use for update c...
Python
buildsettings.py
McBen/ingress-intel-total-conversion
isc
2,320
55
codeparrot/github-code
c58fdb8d585d03a7729977a358f1828d5dbc35450be54043af87cd7739f46c9e
"use strict"; import assert from "assert"; import sinon from "sinon"; import testPlease from "../helpers/testPlease"; import { genericDouble } from "../helpers/doubles"; import * as JobsActionCreators from "../../../src/js/actions/JobsActionCreators"; import * as JobItemsActionCreators from "../../../src/js/actions/Job...
JavaScript
test/src/actions/__SharedActionCreators.js
foundersandcoders/chandelier
isc
4,345
157
codeparrot/github-code
5ec751815769b407fb122ed01fa63ca874f77eb4b85d7d070945f70cc46c6e2f
/** * @file * @brief Sample implementation of an AllJoyn client. That has an implmentation * a secure client that is using a shared keystore file. */ /****************************************************************************** * * * Copyright (c) 2009-2011, AllSeen Alliance. All rights reserved. * * Pe...
C++
alljoyn/alljoyn_core/samples/secure/DeskTopSharedKSClient.cc
hybridgroup/alljoyn
isc
12,315
383
codeparrot/github-code
3eab2a811c94b914051cdd10fbf647362cebe1be5df2f2394cb88bc86ae0aa11
import SpvChoicePage from "components/views/GetStartedPage/SpvChoicePage"; import { render } from "test-utils.js"; import { screen } from "@testing-library/react"; import user from "@testing-library/user-event"; import * as sel from "selectors"; import * as da from "actions/DaemonActions"; let mockIsTestNet; let mockT...
JavaScript
test/unit/components/views/GetStaredPage/SpvChoicePage.spec.js
decred/decrediton
isc
2,383
59
codeparrot/github-code
9109d09d75906e81b762a9b52c84dabf8247d632678908e77bf9271df89c75b3
const webpack = require('webpack'); const path = require('path'); const {debugMode, pkg} = require('./env'); const cwd = process.cwd(); const srcPath = path.join(cwd, pkg.src.js); const distPath = path.join(cwd, pkg.dist.js); // Babel loaders const babelLoaders = (function () { const presets = ['react', 'es2015',...
JavaScript
config/webpack.js
rolldever/react-starter-kit
isc
2,584
99
codeparrot/github-code
d356ae6383681f82754b801a2433cde03a983b61082a02562c5b69d988fc6626
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import os import shutil import sys import dirtyjson as json from ..decorators import linter from ..parsers.base import ParserBase @linter( name="coala", install=[ ["pipx", "install", "--spec", "coala-bears", "coala"], ...
Python
inlineplz/linters/coala.py
guykisel/inline-plz
isc
1,918
63
codeparrot/github-code
22b3e4ea11f6b21c65954d6a420424565a6d9ab39109e4adec6e2c7c8c6220e2
/* $OpenBSD: pcib.c,v 1.6 2013/05/30 16:15:01 deraadt Exp $ */ /* $NetBSD: pcib.c,v 1.6 1997/06/06 23:29:16 thorpej Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Jason R. Thorpe. * * Redistrib...
C
arch/amd64/pci/pcib.c
orumin/openbsd-efivars
isc
3,782
136
codeparrot/github-code
a7674e13eea6f4a4ba463b1ce800fb8ff5624b0c317493bc17a4ec1c677ea1fa
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020 The SymbiFlow Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC """ This file defines the RoutingTree class wh...
Python
fpga_interchange/route_stitching.py
SymbiFlow/python-fpga-interchange
isc
16,298
468
codeparrot/github-code
39436a91b4b8cc3c2a3a8a3454b1420391f2f994552959d3cc2a465dc8735c1d
/* Module handles message posting. */ 'use strict'; const AWS = require('aws-sdk'), Joi = require('joi'), config = require('../environments/config'), dynamodb = new AWS.DynamoDB({ region: 'us-east-1' }); /* Joi validation object */ const postMessageValidate = Joi.object().keys({ UserName: Joi...
JavaScript
lib/postMessage.js
luzou0526/msg-proj
isc
1,863
83
codeparrot/github-code
6bc614c6f86ee21b06655fc412a544a7feff3802db01430438f2b9f85c96bf37
'use strict'; const chalk = require('chalk'); function log(type) { if (arguments.length < 2) { return; } const msgs = Array.from(arguments).slice(1); let log = ['[rise]']; switch(type) { case 'error': log.push(chalk.red('ERRO')); break; case 'warn': log.push(chalk.yellow('WARN...
JavaScript
rise-cli/src/utils/log.js
rise-cloud/rise
isc
1,207
64
codeparrot/github-code
d7c7e01be475b9f3d4b2e47c1a86f1344bb3de934aeafccb0e4556305f129916
#! /usr/bin/env python # this script does not perform full installation, # it is meant for use from Makefile import sys, os.path, re from distutils.core import setup from distutils.extension import Extension # check if configure has run if not os.path.isfile('config.mak'): print "please run ./configure && make f...
Python
setup_skytools.py
mpihlak/skytools-dev
isc
1,526
56
codeparrot/github-code
bda64826db8773d7372c9c30487456ec9729df0d17d586aac9aaf9c527895615
// I used to use `util.format()` which was massive, then I switched to // format-util, although when using rollup I discovered that the index.js // just exported `require('util').format`, and then had the below contents // in another file. at any rate all I want is this function: function format(fmt) { fmt = String(...
JavaScript
src/util.format.js
sprjr/react-localize
isc
1,165
46
codeparrot/github-code
98dd9ed03b949aa48a9da74fa2eb56fb0fc94b2e4d638339152f3d8301115f7f
""" Based on :mod:`django.contrib.auth.tokens`. Supports the following settings: :setting:`WALDO_REGISTRATION_TIMEOUT_DAYS` The number of days a registration link will be valid before expiring. Default: 1. :setting:`WALDO_EMAIL_TIMEOUT_DAYS` The number of days an email change link will be valid before expiring. Def...
Python
philo/contrib/waldo/tokens.py
ithinksw/philo
isc
3,279
106
codeparrot/github-code
59d80eeb743dae5e97506fa4e58979b9b187837ec263db456a56a01de13bb2b3
'use strict'; const Async = require('async'); const Boom = require('boom'); const DataRetrievalRouter = require('./DataRetrievalRouter'); const DENY = 0; const PERMIT = 1; const UNDETERMINED = 3; const internals = {}; /** * Evaluate a single Policy of PolicySet * **/ internals.evaluatePolicy = (item, dataRetriev...
JavaScript
lib/index.js
franciscogouveia/rbac-core
isc
8,340
337
codeparrot/github-code
d092da4ec97f5e81857cbaab443bf18cf78b6267ee71a89ac7889ff80a8d3648
'use strict'; var lab = require('lab'), describe = lab.describe, it = lab.it, demand = require('must'), bole = require('bole'), fs = require('fs'), LogOutput = require('../lib/output-logfile'), mkdirp = require('mkdirp'), path = require('path'), ...
JavaScript
test/test-03.logfile.js
mehrdadrafiee/numbat-collector
isc
2,495
99
codeparrot/github-code
4db8d86adab32130abee3ca2e4e00c0250f753d3b9b20e2aa6caf40aff2cd6b9
import {normalize} from '../lib/themeUtils' const unused = new Set() const freeze = Object.freeze const createAccessors = (object, path = '') => { for (const key of Object.keys(object)) { const value = object[key] const keyPath = path ? `${path}.${key}` : key if (value && typeof value === 'object') { ...
JavaScript
test/_instrumentedTheme.js
novemberborn/kathryn
isc
1,067
37
codeparrot/github-code
ac6d410e0a7d49e512e3e863d3061478a5c1a55309e03ca09faf781abb39e5ad
/* See LICENSE file for copyright and license details. */ #include <errno.h> #include <dirent.h> #include <stdio.h> #include <string.h> #include "../util.h" const char * num_files(const char *dir) { struct dirent *dp; DIR *fd; int num = 0; if ((fd = opendir(dir)) == NULL) { fprintf(stderr, "opendir '%s': %s\n"...
C
components/num_files.c
R41z/slstatus
isc
562
31
codeparrot/github-code
7f6675637b7bbfb54c58ff5765745e6e3f726438aa8935f67f4c0383dad61374
package org.ripple.bouncycastle.jcajce.provider.symmetric; import org.ripple.bouncycastle.crypto.CipherKeyGenerator; import org.ripple.bouncycastle.crypto.engines.CAST6Engine; import org.ripple.bouncycastle.crypto.macs.GMac; import org.ripple.bouncycastle.crypto.modes.GCMBlockCipher; import org.ripple.bouncycastle.jca...
Java
ripple-bouncycastle/src/main/java/org/ripple/bouncycastle/jcajce/provider/symmetric/CAST6.java
xdv/ripple-lib-java
isc
1,685
63
codeparrot/github-code
53cb9b73a5cc3ea2d85ef6c3eafa84e49ad9b67659f6ce4a33eb8deb31554ffb
describe('getting elements by class name', function () { var chai = require('chai'), assert = chai.assert; var DomParser = require('../index.js'), parser = new DomParser(); context('Dom', function(){ it('spaces and case', function(){ var html = '<div class="examples">\n' + ...
JavaScript
test/getElementsByClassName.js
ershov-konst/dom-parser
isc
5,085
148
codeparrot/github-code
9cac20f3be8c3ce4accf5b4dbca0633b4b14fe79b03ef5c704aa2dbe905aedbc
import { event as d3_event, select as d3_select } from 'd3-selection'; import { svgIcon } from '../svg/icon'; import { t, textDirection } from '../util/locale'; import { tooltip } from '../util/tooltip'; import { geoExtent } from '../geo'; import { modeBrowse } from '../modes/browse'; import { uiDisclosure } f...
JavaScript
modules/ui/map_data.js
kartta-labs/iD
isc
30,340
989
codeparrot/github-code
624500ff2177601406373f153e5e2aa075bdb93b7c4998823e375b1fade64a44
using System; using System.Collections.Generic; using System.Text; /* * This file is part of lanterna (http://code.google.com/p/lanterna/). * * lanterna 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 Founda...
C#
NLanterna/TuiForms/TuiForms/input/KeyStroke.cs
FinnAngelo/Tomfoolery
mit
15,480
489
codeparrot/github-code
88823192b5cbeb43710f13ec449fa72cbe6f90316db6694a4db1a4ce6d844b93
// A database of labels define(['util', 'label'], function(Util, Label) { var Labels = function() { this.getURL = '/annotate.database.getlabels'; this.addURL = '/annotate.database.addlabel'; this.saveLabelURL = '/annotate.database.savelabel'; this.removeLabelURL = '/annotate.database.removelabel'; ...
JavaScript
code/web/resources/js/modules/labels.js
fegonda/icon_demo
mit
4,755
178
codeparrot/github-code
3caceefefadcc30fb4ad34c77f574fbfb9ad3fe4fdb10d6136cbef43453d0fdd
declare module 'all:part:@sanity/base/absolutes' { const components: React.ComponentType[] export default components } declare module 'all:part:@sanity/base/component' declare module 'all:part:@sanity/desk-tool/filter-fields-fn?' { declare const filterFields: Observable[] export default filterFields } declare...
TypeScript
packages/@sanity/types/parts/part.@sanity/base/other.d.ts
sanity-io/sanity
mit
10,562
356
codeparrot/github-code
7714fe8d52973a2baad01bbb361f8259200cbeb2e4c636e546b0437b452fbfb3
import java.util.Scanner; public class ParseURL { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); URL inputURL = new URL(scanner.nextLine()); System.out.println(inputURL.printStats()); } } class URL { private String rawURL; priva...
Java
Software University/09) Java Advanced - January 2017/13. Manual String Processing - Lab/02. Parse URL.java
i-den/SoftwareUniversity
mit
1,955
87
codeparrot/github-code
24cf3070b2c9eea815dac6bad640fd08113abeaa80efbfe118fcdcba57b9e60c
package com.nicolasdu.pick_n_eat; import android.media.Image; import java.io.Serializable; import java.net.URL; import java.util.ArrayList; /** * Created by Nicolas on 1/30/2015. */ public class Restaurant implements Serializable{ private String Title; private ArrayList<String> Address; ...
Java
app/src/main/java/com/nicolasdu/pick_n_eat/Restaurant.java
NicolasDucom/Pick-n-Eat-Android
mit
2,579
114
codeparrot/github-code
c355503d7c51230b37184c9b66dda6bf30b5f1959ac711cee8d48f9e0542c6ac
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
JavaScript
lib/require-manager/flow-require-manager.js
jseijas/flow-bot
mit
3,779
115
codeparrot/github-code
dab33d774ac5bc803b8f4bb6d8112e4b091d87e3ed9b6443d2d4e5461304891d
package com.digero.maestro.view; import info.clearthought.layout.TableLayout; import info.clearthought.layout.TableLayoutConstants; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.i...
Java
src/com/digero/maestro/view/SettingsDialog.java
digero/maestro
mit
18,081
550
codeparrot/github-code
5a9ddd3f7ec3133ced7734fc8e37af6bfec30edc475bb6d2c1c115d511dac5d7
using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Owin; using Owin; using Serilog.Context; namespace webapitmpl.Utility { /// <summary> /// Extensions for <see cref="IAppBuilder"/> involving correlation ids /// </summary> public static class CorrelationIdApp...
C#
WebApiTemplate/Utility/CorrelationIdAppBuilderExtensions.cs
jnonce/WebApiTemplate
mit
3,277
100
codeparrot/github-code
f3908208cc262028fb0e98ba29f019f500aec3d9544a3e2f4cd3d91eb63251db
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>demos: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.04.2-2.0.5/released/8.6/demos/8.10.0.html
coq-bench/coq-bench.github.io
mit
7,099
177
codeparrot/github-code
5a3926de2d7888062c4eed09a8843cec1fa57530508ed332dbc8e49dac2feae4
/* global process */ /** * Dependencies */ // Third party libraries var debug = require('debug')('wakizashi'); var merge = require('merge-descriptors'); var fs = require('fs'); // Wakizashi libraries var domoweb = require('./domoweb'); var auth = require('./auth'); var dataset = require('./dataset'); var dataflow =...
JavaScript
lib/wakizashi.js
woganmay/wakizashi
mit
1,425
74
codeparrot/github-code
3bc44dd48cbfdd867f8db5307dea24dc6ed3ac9d213670c6bf02830dadfd19d3
/* Copyright 2006 by Sean Luke and George Mason University Licensed under the Academic Free License version 3.0 See the file "LICENSE" for more information */ package ec.app.ecsuite; import ec.util.*; import ec.*; import ec.simple.*; import ec.vector.*; /* * ECSuite.java * * Created: Thu M...
Java
GP project/ecj/ec/app/ecsuite/ECSuite.java
ashkanent/GP_FitnessSharing
mit
30,336
754
codeparrot/github-code
ba447202e0ab781c9a0470c0d0d6188d33e45fd243c87f0a6bb649a3ccdaf7cb
var casper = require('casper').create(), x = require('casper').selectXPath, config = require('config.json'), fs = require('fs'), moment = require('moment'); casper.start("http://caravantomidnight.com/show-archive/"); var currentMonthUrl = "http://caravantomidnight.com/show-archive-" + moment(casper.cli.get(...
JavaScript
midnight_caravan_superscraper.js
tetious/CaravanScaper
mit
1,722
64
codeparrot/github-code
8305d98580b1e889db4df08a2a588dc9d3d6bff7a36e6a7e08c2e1edfdfc8a73
#pragma once #include <iostream> #include <glm.hpp> #include <SDL.h> #include "Shader.h" /** @brief A class for the UI Objects. @author Jamie Slowgrove */ class UIObject { private: /**The VBO for the rectangle*/ GLuint obj; /**The dimensions for the rectangle*/ glm::vec2 dimensions; /**The position for the UIObj...
C
Assignment 2/UIObject.h
JSlowgrove/PGG-Assignment-2-OpenGL-Skydiving-Sam
mit
2,059
83
codeparrot/github-code
15f9db33377dbc3602247bb4b51f6fc5f955ae5d4fdbae7855a76079add192f8
/** * Module dependencies. */ var passport = require('passport'); module.exports.loginForm = function(req, res) { res.render('login'); }; module.exports.login = passport.authenticate('local', { successReturnToOrRedirect: '/login/status/success', failureRedirect: '/login/status/failure' }); module.expor...
JavaScript
server/handlers/site.js
gjSCUT/NodeJsApiServer
mit
798
35
codeparrot/github-code
f50defc8b71715a803bbd3a64e60383a5005deca92746361d416c9aa41dde021
package dlei.forkme.gui.adapters; import android.content.Intent; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; import dlei.forkme.R; import dlei.forkme.gui.activities.github.RepositoryViewActivit...
Java
ForkMe-Mobile/app/src/main/java/dlei/forkme/gui/adapters/RepositoryRecyclerViewAdapter.java
darvid7/ForkMe-Mobile
mit
2,815
76
codeparrot/github-code
cafc655a23fad15a6116c29d9c7b3865c138b3160539443823a418921889b621
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" #include "util.h" #include "sync.h" #include "ui_interface.h" #includ...
C++
src/bitcoinrpc.cpp
jelly013/jellycoin
mit
48,794
1,309
codeparrot/github-code
ef2e45feaf346418b8568129c005fdf7392899e3672d02334ef4b59d92fb68f9
<?php namespace Rimelek\Columns3D\Drawable; class Column implements DrawableInterface { /** * @var ColumnConfiguration */ private $configuration; /** * Column constructor. * @param ColumnConfiguration $configuration */ public function __construct(ColumnConfiguration $configu...
PHP
src/Drawable/Column.php
rimelek/php-columns3d
mit
1,810
62
codeparrot/github-code
c093bb374f2749888b622eccf3ed3e1ab68e2c6ec96c65545f08d081074dc0d2
# Pad an Array # I worked on this challenge [with: Alan Alcesto] # I spent [1.5] hours on this challenge. (50 min peer pairing plus research before) # Complete each step below according to the challenge directions and # include it in this file. Also make sure everything that isn't code # is commented in the file. ...
Ruby
week-5/pad-array/my_solution.rb
Whelpley/phase-0
mit
4,654
126
codeparrot/github-code
26f82b9f0318608c625e7a9e9145a1b0690e22d2ed55742b7438c00f93cebe92
#pragma once #ifndef TARGET_OPENGLES /* todo: add support for attachment of multiple shaders if a uniform or attribute isn't available, this will cause an error make sure to catch and report that error. */ #include "ofConstants.h" #include "ofBaseTypes.h" #include "ofTexture.h" #include <map> class ofShader { ...
C
libs/openFrameworks/gl/ofShader.h
HellicarAndLewis/Hub
mit
3,970
120
codeparrot/github-code
cffc1169693eaea1313181cb9b39fe1131ba7711a32cfbec9c6a4eac012d651f
<?php session_start(); //$bdd = new PDO('mysql:host=mysql2.paris1.alwaysdata.com;dbname=studychoice_utilisateurs', '136109', 'ping'); $bdd = new PDO('mysql:host=localhost;dbname=tes', 'root', ''); if($_SESSION['id']) { if (isset($_GET['id']) AND $_GET['id'] > 0 AND $_GET['id'] == $_SESSION['id']) { if (isset($_S...
PHP
profil/index.php
projetpingSC/pingStudyChoice
mit
5,152
147
codeparrot/github-code
e325dec02289bca61812c3f4acaf1a4255194f7208b43a90c61570aaebf28767
(function( $, ko ) { // Namespace for app. window['massroute'] = window.massroute || {}; window.massroute['model'] = window.massroute.model || {}; /** * Overall session model that holds state of the application. * @return {massroute.model.Session} */ var Session = (function(...
JavaScript
massroute-examples/knockout/js/app/model.js
bustardcelly/massroute-js
mit
7,318
206
codeparrot/github-code
41cd5a19577fb51526f26d11bb3d877c5b6a8510e12ef145176147bc696bdeeb
<!DOCTYPE html> <HTML><head><TITLE>Manpage of MOUNT\&.CIFS</TITLE> <meta charset="utf-8"> <link rel="stylesheet" href="/css/main.css" type="text/css"> </head> <body> <header class="site-header"> <div class="wrap"> <div class="site-title"><a href="/manpages/index.html">linux manpages</a></div> <div class="site-descr...
HTML
manpages/man8/mount.cifs.8.html
yuweijun/yuweijun.github.io
mit
34,766
851
codeparrot/github-code
ade717e2be7dfd89f19c5fd1ea27e3e462e1d9be6345501e1d2811803c6371d0
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>Knee surgery</title> <meta name="description" content="" /> <meta name="HandheldFriendly" content="True" /> <meta name="viewport" content="width=device-width, initial-scale=1.0...
HTML
2013/05/10/Knee-surgery.html
ElteHupkes/eltehupkes.github.io
mit
20,866
354
codeparrot/github-code
6e968a0ddf8f5749560f800f5de1f698d387c4198e0d07e237cfd218dc25f1fb
/*! * \file * \brief Class tools::Gaussian_noise_generator. */ #ifndef GAUSSIAN_NOISE_GENERATOR_HPP_ #define GAUSSIAN_NOISE_GENERATOR_HPP_ #include <vector> #include <memory> #include "Tools/Algo/Draw_generator/Draw_generator.hpp" namespace aff3ct { namespace tools { #if defined(AFF3CT_CHANNEL_GSL) && defined(AF...
C++
include/Tools/Algo/Draw_generator/Gaussian_noise_generator/Gaussian_noise_generator.hpp
aff3ct/aff3ct
mit
1,388
52
codeparrot/github-code
e552fa78dfd98ea297ca0613c19cfeacf56277da3a25bac83bcc3409214c2cd6
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>IEventHostageHurt | demofile</title> <meta name="description" content="Documentation for demofile"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel...
HTML
docs/interfaces/_eventtypes_.ieventhostagehurt.html
saul/demofile
mit
9,548
217
codeparrot/github-code
1c1bb941647f3deeb128a777553cb9334c11d433ffbe8ad2f860f020e91b366f
<?php namespace Clocanth; use Clocanth\Renderable; class View implements Renderable { protected $name; protected $twig_handler; public function __construct($name) { global $twig; $this->twig_handler = $tw...
PHP
clocanth/framework/View.php
fallenby/clocanth
mit
788
32
codeparrot/github-code
28c78a9d8399d2b43402a1622bfdc7672febed873bc72f0a2241c1dd6ec9ba9e
using System; using System.Net; using System.Threading.Tasks; using Launcher.Desktop.Contracts; using Launcher.Desktop.Models; using Launcher.Desktop.Properties; using MahApps.Metro.Controls.Dialogs; using RestSharp; namespace Launcher.Desktop.Services { public class MojangAccountService : IAccountService { ...
C#
Launcher/Launcher.Desktop/Services/MojangAccountService.cs
m-lobocki/Minecraft-Launcher
mit
3,311
96
codeparrot/github-code
e73f20c00bf60cad8b0ab6cdb8785842f673a92dbcce3d0c3a8736a2708b63d1
/* ** $Id: cfe_tbl_task_cmds.c 1.15 2014/08/22 16:30:24GMT-05:00 lwalling Exp $ ** ** Copyright (c) 2004-2012, United States government as represented by the ** administrator of the National Aeronautics Space Administration. ** All rights reserved. This software(cFE) was created at NASA's Goddard **...
C
TRAPSat_cFS/cfs/cfe/fsw/cfe-core/src/tbl/cfe_tbl_task_cmds.c
CACTUS-Mission/TRAPSat
mit
74,226
1,660
codeparrot/github-code
c6267380329f7a0aebb67b298f7d69c75c68b2ced0724677424cc3d6e5c4a29a
/** * App * * Root application file. * Load main controllers here. */ define([ "jquery", "modules/connected-devices/index" ], function( $, ConnectedDevices ) { "use strict"; var retriveData = function(callback) { var connected_devices_request = $.getJSON("data/connected-dev...
JavaScript
js/src/app.js
alistairjcbrown/connected-devices-display
mit
1,751
87
codeparrot/github-code
f6026362d5360b3f93aa819d88c2d2c35a6e67c6f9d6a3abfc389d3872030abf
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FiscalizationTest { [TestClass] public class FiscalizationInteropTest { TestEnvironment Demo = TestEnvironment.Create(); [TestMethod] public void TestInvoiceRequest() { var com = new FiscalizationComInterop(); var result = ...
C#
test/FiscalizationCom/FiscalizationInteropTest.cs
tgrospic/Cis.Fiscalization
mit
1,257
45
codeparrot/github-code
65e39ac3888a2c5a6f4fd02fe397c7d998850296db83e428fcdd6d08483b6784
package main import "C" import ( "fmt" "net" "strings" "github.com/jvermillard/nativedtls" ) func main() { ctx := nativedtls.NewServerDTLSContext() if !ctx.SetCipherList("PSK-AES256-CCM8:PSK-AES128-CCM8") { panic("impossible to set cipherlist") } svrAddr, err := net.ResolveUDPAddr("udp", ":5684") if er...
GO
example_server/main.go
jvermillard/nativedtls
mit
1,023
63
codeparrot/github-code
8e8358f29ef2937293caa6cd543a121cf40e7acfabaccbf9023e421126dd338f
<?php $Google1 = false; $Google2 = false; function ShowGoogle() { global $Google1; global $Google2; // if ($Google1 || random(0,200)%2) { if (random(0,200)%2) { ShowGoogle2(); return; } $Google1 = true; ?> <p> <script type="text/javascript"><!-- google_ad_client = "pub-8624135492444658"; ...
PHP
Web/Google.inc.php
ajlopez/Todocontenidos
mit
1,384
69
codeparrot/github-code
2a2a4c864d26f1f6844923dc639b0187e38bd4923e243bea180b616a3e56f7e1
package synth.modulation; import net.beadsproject.beads.core.AudioContext; import synth.container.Device; /** * A basic envelope wrapping class. */ public class Envelope extends Modulator implements Modulatable { /** attack time in milliseconds */ protected int attack; /** decay time in milliseconds *...
Java
src/synth/modulation/Envelope.java
occloxium/Monoid
mit
4,051
160
codeparrot/github-code
50c7936962468fe25e66ffe60e3374788fe88aa19091be057a4839d40c63315b
<?php // src/Lestroistoques/RecettesBundle/Form/RecetteIngredientEditType.php namespace Lestroistoques\RecettesBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class RecetteIngredientEditType extend...
PHP
src/Lestroistoques/RecettesBundle/Form/RecetteIngredientEditType.php
lrtcl/Les_Trois_Toques
mit
838
34
codeparrot/github-code
55566f6a32aa4d027ec0272f603bf520c8b5521e45c326630bdc4d15d3f55102
<?php /** * User: caio.franchi * Date: 30/01/13 * Time: 16:19 */ class Utils { public static function get_real_ip() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FO...
PHP
src_backend/lib/utils.php
caiofranchi/franchistemplate
mit
651
33
codeparrot/github-code
25d0251f104c634ea87533036b93b4aac367f8189f43e410146222f46f2edce4
'use strict' import assert from 'assert' import {remove} from '..' describe('remove', () => { it('throws a TypeError if the first argument is not an array', () => { const targets = [null, true, function() {}, {}] if (global.Map) targets.push(new Map()) targets.forEach(value => { assert.throws(() ...
JavaScript
test/remove.js
sonnyp/mole
mit
803
35
codeparrot/github-code
fb502836ed8d0767c0a5e01cb90eb5e1ea6f6ea5619a94293b71a66a64f350f5
// // Copyright (c) 2008-2020 the Urho3D project. // // 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, m...
C++
Source/Urho3D/Scene/Component.cpp
rokups/Urho3D
mit
8,116
336
codeparrot/github-code
2f1408dac531ec87e20516e91a4be9e14e8243891cf919145e398b889a4125f5
package data_struct.labs.l04.a; /** * This is the Commission class for lab4 * * @author Eddie Gurnee * @version 10/14/2013 */ public class Commission extends Hourly { protected double totalSales; protected double commissionRate; public Commission(String eName, String eAddress, String ePhone, String socSec...
Java
complete/src/data_struct/labs/l04/a/Commission.java
pegurnee/2013-03-211
mit
773
32
codeparrot/github-code
494ce3102e42437625fc4b104d0fa5826e1fa08407921c613d512675790538e6
from otp.ai.AIBaseGlobal import * from pandac.PandaModules import * from DistributedNPCToonBaseAI import * import ToonDNA from direct.task.Task import Task from toontown.ai import DatabaseObject from toontown.estate import ClosetGlobals class DistributedNPCTailorAI(DistributedNPCToonBaseAI): freeClothes = simbase....
Python
toontown/toon/DistributedNPCTailorAI.py
ksmit799/Toontown-Source
mit
8,113
179
codeparrot/github-code
fcced76fefbb6e0b486b87350baed3ad0ba2612b4c41e4d81f656d7af99cf689
import { TestBed } from '@angular/core/testing'; import { provideMockActions } from '@ngrx/effects/testing'; import { Action, combineReducers, StoreModule } from '@ngrx/store'; import { ReplaySubject } from 'rxjs'; import { fastTestSetup } from '../../../../test/helpers'; import { MenuService, SharedModule } from '../....
TypeScript
src/browser/note/note-editor/note-editor.effects.spec.ts
seokju-na/geeks-diary
mit
4,380
109
codeparrot/github-code
89107373cd336b0757dee67fdf638272e8e4cb61c1cd18304cba59826442d2ac
#ifndef IRESOURCEMODEL_H #define IRESOURCEMODEL_H #include "engine_global.h" #include "multilanguagestring.h" #include <QObject> #include <QList> namespace BrowserAutomationStudioFramework { class ENGINESHARED_EXPORT IResourceModel : public QObject { Q_OBJECT public: explicit IResourceModel...
C
Engine/iresourcemodel.h
bablosoft/BAS
mit
1,689
46
codeparrot/github-code
f8ec04bd08462edb7fb32fbe19f24456c8f375d1d3aae381eb053270d65bd6b0
// tracker.cpp: Tracker class function declaration for tracking clothing articles // using the cam shift algorithm and obtain point cloud using pcl functions // Requirements: relies on the use of opencv and pcl // Author: Nishanth Koganti // Date: 2015/9/4 // TODO: // 1) Improve point cloud processing using different ...
C++
src/tracker.cpp
buntyke/IROSInterface
mit
7,073
264
codeparrot/github-code
d18ee5dd2528fe1477995f6df318b4ecb7a6428b508cf092c3658e3c829061bb
import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; @ManagedBean public class TestBean { private String[] colors= {"red","blue","green","black"}; private List<String> meals = new ArrayList<>(); public TestBean(){ meals.add("soup"); meals.add("fish fillet"); meals.add("...
Java
JSF2-Expression-Language/exercises_1_and_2/src/TestBean.java
Shalantor/JSF-Course
mit
613
38
codeparrot/github-code
3dc13dfe5a688e68f3ba0159dc062f32efa186c691c9bf923888f98d09a745b1
/* jshint strict: true, quotmark: false, es3: true */ /* global $: false, JSZip: false, odtprocessor: false */ var EUCopyright = EUCopyright || {}; EUCopyright.settings = EUCopyright.settings || {}; EUCopyright.settings.defaultToNoOpinion = EUCopyright.settings.defaultToNoOpinion === undefined ? true : EUCopyright.set...
JavaScript
js/eucopyright.js
okfde/eucopyright
mit
17,935
580
codeparrot/github-code
dd7f1b6144d5e24acaa492bd65e1b8bfae912ccc1be6a3e6b323d1f6730d0188
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
C++
Boss2D/addon/webrtc-jumpingyang001_for_boss/modules/audio_coding/neteq/neteq_stereo_unittest.cc
koobonil/Boss2D
mit
15,554
427
codeparrot/github-code
d4525cf396a4cdaac0a7bcb51ec403a0f61b2350199c75d02533c3ba064315c1
# -*- coding: utf-8 -*- """Checks/fixes are bundled in one namespace.""" import logging from rdflib.namespace import RDF, SKOS from .rdftools.namespace import SKOSEXT from .rdftools import localname, find_prop_overlap def _hierarchy_cycles_visit(rdf, node, parent, break_cycles, status): if status.get(node) is No...
Python
skosify/check.py
NatLibFi/Skosify
mit
8,938
213
codeparrot/github-code
0e268e9ea626becb1b98c1fcdac9c6083086398d4601aefaa504de8a696f5eca
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"> <title>Rescale image value range</title> <link rel="stylesheet" type="text/css" href="Help.css"> </h...
HTML
ghrg/Whitebox/WhiteboxGAT-linux/resources/Help/RescaleImageValueRange.html
jblindsay/jblindsay.github.io
mit
2,061
52
codeparrot/github-code
3de1027e63dc3e5382ec15f6508e255cb470f325086a8bbdf6f2e26e55aa623b
var gulp = require('gulp'); var Path = require('path'); var compass = require('gulp-compass'); var minifyCss = require('gulp-minify-css'); var del = require('del'); var browserify = require('browserify'); var source = require('vinyl-source-stream'); var browserSync = require('browser-sync'); var reload = browserSync.r...
JavaScript
gulpfile.js
campudus/ff-nw-flash
mit
3,571
135
codeparrot/github-code
388d62cba2efd8c76d345b002c39e9df508851f3f87929a3b5e596091dcd611e
/* * cloudfs: crypt source * By Benjamin Kittridge. Copyright (C) 2013, All rights reserved. * */ #include <stdio.h> #include <stdint.h> #include <termios.h> #include <ctype.h> #include <openssl/sha.h> #include <openssl/evp.h> #include <openssl/rand.h> #include "config.h" #include "log.h" #include "misc.h" #incl...
C
src/crypt.c
bysin/cloudfs
mit
6,345
251
codeparrot/github-code
d16e85bf9a045ebc38162ec92781c89d861f70c7a525baf076d6ccfd8083fba6
package net.sf.jabref; import java.net.Authenticator; import java.util.Map; import javax.swing.SwingUtilities; import javafx.application.Application; import javafx.application.Platform; import javafx.stage.Stage; import net.sf.jabref.cli.ArgumentProcessor; import net.sf.jabref.gui.remote.JabRefMessageHandler; impor...
Java
src/main/java/net/sf/jabref/JabRefMain.java
Mr-DLib/jabref
mit
6,658
144
codeparrot/github-code
1f71003df20620a785fc88ff11531fd7a6c7387b4a59642544b68f98ccad65d0
package com.ikasoa.springboot.autoconfigure; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.client.ServiceInstance; import org.springframework.cloud.client.discovery.DiscoveryClient; impor...
Java
ikasoa-spring-boot-starter/src/main/java/com/ikasoa/springboot/autoconfigure/ClientAutoConfiguration.java
venwyhk/ikasoa
mit
4,065
97
codeparrot/github-code
e69dce2ed1fcd0ddfceec8556205f0907c5581f00f42e7e7ba498592d947d6ef
<?php namespace AppBundle\Model\NodeEntity; use GraphAware\Neo4j\OGM\Annotations as OGM; /** * Class Staff * @package AppBundle\Model\NodeEntity * * @OGM\Node(label="Staff") */ abstract class Staff extends Person { /** * @OGM\Property(type="string") * @var string */ protected $email; ...
PHP
src/AppBundle/Model/NodeEntity/Staff.php
marius-dev/interactive_timetable
mit
913
50
codeparrot/github-code
b529af8f78d7d994c94da79614f79f164a43e1a44714ce5f14a4faab05f6da35
<?php /** * TOP API: taobao.wlb.item.delete request * * @author auto create * @since 1.0, 2013-03-23 12:41:17 */ class WlbItemDeleteRequest { /** * 商品ID **/ private $itemId; /** * 商品所有人淘宝nick **/ private $userNick; private $apiParas = array(); public function setItemId($itemId) { $this->i...
PHP
framework/WEB-INF/kylin_core/taobao/top/request/WlbItemDeleteRequest.php
allengaller/the-sbphp-framework
mit
1,041
66
codeparrot/github-code
90946eb6f61284a9a31f6b7800877a2d765a97dec7fc2cec317bf51d3196cd8d
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Directionality} from '@angular/cdk/bidi'; import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coer...
TypeScript
src/material/autocomplete/autocomplete-trigger.ts
andrewseguin/material2
mit
29,573
785
codeparrot/github-code