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 |
|---|---|---|---|---|---|---|---|---|
94395e5ad95db42c810799cdf00c43ea6ad15a27bf79a0183a7ce206db302fdc | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JSONOptions.scala | zuotingbing/spark | apache-2.0 | 8,266 | 196 | codeparrot/github-code |
979a04c32d900fe31751b035572ad362b46af871770fe73da0e8447369a1ad16 | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | C | core/LucyX/Search/ProximityMatcher.c | rectang/lucy | apache-2.0 | 12,748 | 333 | codeparrot/github-code |
51d06ea0ff5a23f40a16cee520342d666f1f1eb1836d46ed152ebb2a9db9c896 | ////////////////////////////////////////////////////////////////////////////////
//
// TYPHOON FRAMEWORK
// Copyright 2015, Typhoon Framework Contributors
// All Rights Reserved.
//
// NOTICE: The authors permit you to use, modify, and distribute this file
// in accordance with the terms of the license agreement a... | C | PocketForecast/UserInterface/Controllers/AddCity/PFAddCityViewController.h | pomozoff/Typhoon-example | apache-2.0 | 1,218 | 39 | codeparrot/github-code |
83b9998855f77130678ab9b1b8ef7a1959855abc6f61c0ac5e991643c2840834 | import os
from segments import Segment, theme
from utils import colors, glyphs
class CurrentDir(Segment):
bg = colors.background(theme.CURRENTDIR_BG)
fg = colors.foreground(theme.CURRENTDIR_FG)
def init(self, cwd):
home = os.path.expanduser('~')
self.text = cwd.replace(home, '~')
class... | Python | segments/filesystem.py | nimiq/promptastic | apache-2.0 | 916 | 38 | codeparrot/github-code |
7e97b9d3ed16aff3ecb6cdebdbfba1ab45534050c369db9e98687c2a681f016c | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | Java | gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/services/cache/GfxdConcurrentCache.java | papicella/snappy-store | apache-2.0 | 6,422 | 193 | codeparrot/github-code |
4eb8b96f5e691f6ad2c123d064e13ed34d365cf7cf56e2edcade9ac2a0409476 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | test/org/apache/pig/test/TestRegisteredJarVisibility.java | internetarchive/pig | apache-2.0 | 6,888 | 183 | codeparrot/github-code |
4b6a546e2dace341dd113cdeefc8a894010a4ba2ca8baaf61daf9d24a61dd7fd | package com.kodcu.service.extension.chart;
import com.kodcu.controller.ApplicationController;
import com.kodcu.other.Current;
import com.kodcu.service.ThreadService;
import javafx.scene.chart.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* Crea... | Java | src/main/java/com/kodcu/service/extension/chart/AreaChartBuilderService.java | gastaldi/AsciidocFX | apache-2.0 | 1,187 | 38 | codeparrot/github-code |
39f1f8d33788af6e699e13ea938b67835df6bf4bd60849454d9cb812c71949ab | package com.taobao.zeus.broadcast.alarm;
import java.net.InetAddress;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.NoSuchProviderException;
im... | Java | schedule/src/main/java/com/taobao/zeus/broadcast/alarm/MailAlarm.java | wwzhe/dataworks-zeus | apache-2.0 | 4,285 | 120 | codeparrot/github-code |
1a9d9b831f9efc4ad225576087d491a88bbfbc04b1d878c437dcf02271444a88 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java | tooling/features-maven-plugin/src/test/java/org/apache/felix/karaf/tooling/features/GenerateFeaturesXmlMojoTest.java | igor-sfdc/felix | apache-2.0 | 1,613 | 44 | codeparrot/github-code |
de24247f141a51da5b0f3ed47511bb0bdc40461d6f0e05e84a85d3c6157805e0 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" >
<title>Silicon Valley 2013
- Proposal</title>
<meta name="author" content="Andrew Hay" >
<link rel="alternate" type="... | HTML | static/events/2013-mountainview/proposals/DevOps for Security/index.html | joelaha/devopsdays-web | apache-2.0 | 13,054 | 322 | codeparrot/github-code |
041023a678d8dd29691034117fe8d3289bd35f19966a84f046a967402def4415 | /*-
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | mobile/blackberry/src/com/google/authenticator/blackberry/Uri.java | google/google-authenticator | apache-2.0 | 65,026 | 2,080 | codeparrot/github-code |
b299ea3739c47331a2b65dbb451c7f6a084f5a3211cf9308822a776f4a407d39 | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... | C# | Algorithm.CSharp/AlphaStreamsBasicTemplateAlgorithm.cs | AlexCatarino/Lean | apache-2.0 | 5,088 | 118 | codeparrot/github-code |
473790e91bad4cc43500e6134e9adac520bc3f789e190e281e8c6569204a48da | /*
* Copyright (c) 2009 Kathryn Huxtable and Kenneth Orr.
*
* This file is part of the SeaGlass Pluggable Look and Feel.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | Java | src/main/java/com/seaglasslookandfeel/ui/SeaGlassTextPaneUI.java | khuxtable/seaglass | apache-2.0 | 6,509 | 193 | codeparrot/github-code |
90bc997d86d718775621ffb9eb8b1c14f621f5171fc645e5a567b1a98b6e2f1f | /**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com - http://twitter.com/hoteia - contact@h... | Java | apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/service/pojo/CustomerPojoService.java | eric-stanley/qalingo-engine | apache-2.0 | 3,861 | 88 | codeparrot/github-code |
6a662f2fbf3b7cde5aaa0a88d1a71dfa576f6a7b8dc81fa34256be50e15e987f | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | modules/flowable-engine/src/main/java/org/activiti/engine/impl/context/ExecutionContext.java | roberthafner/flowable-engine | apache-2.0 | 1,626 | 50 | codeparrot/github-code |
24d3443807ce109a3e6a9478b432c9229349ceb00f0745c2c24c07e4fdf7f7db | #
# Copyright 2017 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | Perl | apps/protocols/dns/lib/dns.pm | Shini31/centreon-plugins | apache-2.0 | 3,088 | 103 | codeparrot/github-code |
ebdd887ac4a2c3d4d1f1e498fbe395e55fff66a88705b971c56c8bb7c6c1e822 | package nak.liblinear;
import static nak.liblinear.Linear.info;
/**
* Trust Region Newton Method optimization
*/
class Tron {
private final Function fun_obj;
private final double eps;
private final int max_iter;
public Tron( final Function fun_obj ) {
this(fun_obj, 0.1);
}
... | Java | src/main/java/nak/liblinear/Tron.java | scalanlp/nak | apache-2.0 | 7,591 | 261 | codeparrot/github-code |
d81abb6fa656e8f32abe2e9971d443ff933dc79325ee00e8a311de7e6277c22b | /*
Copyright IBM Corp. 2016 All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | GO | orderer/rawledger/rawledger.go | stonejiang208/fabric | apache-2.0 | 1,766 | 51 | codeparrot/github-code |
e960e063d06c4f64a1dbf080e5f1112fdf5a958f957b25f340f19ba3336a572a | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | tensorflow/core/util/util.h | xodus7/tensorflow | apache-2.0 | 2,106 | 62 | codeparrot/github-code |
2316c7d3e50275ded652435fc2fd14d471d4fc339cdfd420fefc68c0f4c1a96e | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | xml/xml-psi-impl/src/com/intellij/psi/impl/source/xml/XmlTagValueImpl.java | paplorinc/intellij-community | apache-2.0 | 5,970 | 188 | codeparrot/github-code |
9b3653b6d280a55b1babc729b83d89904749cd73b72118aa9c44d9f7e9a0f0e8 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | core/spring/src/main/java/org/apache/syncope/core/spring/security/AuthDataAccessor.java | apache/syncope | apache-2.0 | 23,971 | 531 | codeparrot/github-code |
c1ccefbf1faf9e8047dcab84d4b4daedd6f0873501ea927c01804a42e24757cd | // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | Rust | src/libstd/sys/unix/fs2.rs | bombless/rust | apache-2.0 | 10,355 | 379 | codeparrot/github-code |
178903c55ca1acd584d89e61d475acbf6cfde91f6003c4adf5c084bbfae11db1 | //
// Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu>
// Creation Date: Sat Aug 25 14:12:42 PDT 2018
// Last Modified: Sat Aug 25 19:47:08 PDT 2018
// Filename: tool-trillspell.cpp
// URL: https://github.com/craigsapp/humlib/blob/master/include/tool-trillspell.cpp
// Syntax: C++11; hum... | C++ | src/tool-trillspell.cpp | humdrum-tools/minHumdrum | bsd-2-clause | 11,287 | 371 | codeparrot/github-code |
98a139cfba0d25b0089c963ec04bcd0d687f0361e8ba7333f1418bfcbd69b623 | ///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#include "vu2.h"
#include "vu_priv.h"
////////////////////////////////////////... | C++ | src/vu2/src/vu_standard_filter.cpp | FreeFalcon/freefalcon-central | bsd-2-clause | 4,037 | 117 | codeparrot/github-code |
b18dac57f64ac3a13707c4d0da6c5cd0c3a4df40cfce33e7ca9bdfb1a139a862 | {% extends "base.html" %}
{% load filters %}
{% block title %}{{project_name}}: {{record.label}}{% endblock %}
{% block css %}
<link href="/static/css/dataTables.bootstrap.css" rel="stylesheet">
{% endblock %}
{% block navbar %}
<li><a href="..">{{project_name}}</a></li>
<li><a href="/{{... | HTML | sumatra/web/templates/record_detail.html | apdavison/sumatra | bsd-2-clause | 18,845 | 555 | codeparrot/github-code |
83f243adc43d60b2f7bc6d3ecea8e432bd1274942862eec888e71275235ebb80 | from PyQt4 import QtGui, QtCore, QtSvg
from PyQt4.QtCore import QMimeData
from PyQt4.QtGui import QGraphicsScene, QGraphicsView, QWidget, QApplication
from Orange.data.io import FileFormat
class ImgFormat(FileFormat):
@staticmethod
def _get_buffer(size, filename):
raise NotImplementedError
@stat... | Python | Orange/widgets/io.py | qPCR4vir/orange3 | bsd-2-clause | 4,645 | 149 | codeparrot/github-code |
5ee2de53ab9606d9d932084097ca22cfe56fd0171fcdca484a6713a9f96db673 | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by ... | C | html/HTMLOListElement.h | yoavweiss/RespImg-WebCore | bsd-2-clause | 2,216 | 72 | codeparrot/github-code |
30aee5d82f86f85375b759f0f6664b7313703b414e0a587ec2e969a6b9ff1356 | class Timidity < Formula
desc "Software synthesizer"
homepage "http://timidity.sourceforge.net/"
url "https://downloads.sourceforge.net/project/timidity/TiMidity++/TiMidity++-2.14.0/TiMidity++-2.14.0.tar.bz2"
sha256 "f97fb643f049e9c2e5ef5b034ea9eeb582f0175dce37bc5df843cc85090f6476"
bottle do
sha256 "0b26... | Ruby | Formula/timidity.rb | andyjeffries/homebrew-core | bsd-2-clause | 2,183 | 61 | codeparrot/github-code |
0e46677411d40db9e52f55d9672147bbefebf908c9635ff66cd3baca9d3ecaa4 | #include <sys/time.h>
#include <time.h>
#include "warnp.h"
#include "monoclock.h"
/**
* monoclock_get(tv):
* Store the current time in ${tv}. If CLOCK_MONOTONIC is available, use
* that clock; otherwise, use gettimeofday(2).
*/
int
monoclock_get(struct timeval * tv)
{
#ifdef CLOCK_MONOTONIC
struct timespec tp... | C | lib/util/monoclock.c | brainwater/spiped | bsd-2-clause | 669 | 42 | codeparrot/github-code |
93157b260e83d02f72189057468ecf9faf95848dd29f7a3662acd28655cc32e7 | class Yaz < Formula
desc "Toolkit for Z39.50/SRW/SRU clients/servers"
homepage "https://www.indexdata.com/yaz"
url "http://ftp.indexdata.dk/pub/yaz/yaz-5.15.1.tar.gz"
sha256 "ebef25b0970ea1485bbba43a721d7001523b6faa18c8d8da4080a8f83d5e2116"
revision 1
bottle do
cellar :any
sha256 "5c92b86a99954d7c9... | Ruby | Formula/yaz.rb | tkoenig/homebrew-core | bsd-2-clause | 2,539 | 75 | codeparrot/github-code |
283bcd6081aba045170331da8fb42690d98f6730e43f1ca54c4916299883c8de | /**
* Copyright (c) 2013-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.
*
* The examp... | JavaScript | Examples/UIExplorer/js/TextInputExample.android.js | mrspeaker/react-native | bsd-3-clause | 15,826 | 608 | codeparrot/github-code |
3bb2895c3298800b60b2aba423f326dec5e906c5ff96d4c031e7429b6b8c9a99 | #! /usr/bin/python
"""versioneer.py
(like a rocketeer, but for versions)
* https://github.com/warner/python-versioneer
* Brian Warner
* License: Public Domain
* Version: 0.7+
This file helps distutils-based projects manage their version number by just
creating version-control tags.
For developers who work from a V... | Python | versioneer.py | sahat/bokeh | bsd-3-clause | 25,525 | 644 | codeparrot/github-code |
b926e3daee85f366b22d1e72a6f12d3da64c81b9adf3df8c71dff23c2535d77e | <?php
/**
* TOP API: taobao.tmc.user.get request
*
* @author auto create
* @since 1.0, 2015.12.04
*/
class TmcUserGetRequest
{
/**
* 需返回的字段列表,多个字段以半角逗号分隔。可选值:TmcUser结构体中的所有字段,一定要返回topic。
**/
private $fields;
/**
* 用户昵称
**/
private $nick;
/**
* 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户
**/
privat... | PHP | common/components/topsdk/top/request/TmcUserGetRequest.php | jasonzhangxian/scanner | bsd-3-clause | 1,374 | 83 | codeparrot/github-code |
371102fb0076a689cd2e9b787e5c94b8bb1106165f378a49bf34d20f038fa0b7 | // 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.
#ifndef NET_SPDY_SPDY_FRAMER_H_
#define NET_SPDY_SPDY_FRAMER_H_
#include <map>
#include <memory>
#include <string>
#include <utility>
#include "base... | C | net/spdy/spdy_framer.h | CapOM/ChromiumGStreamerBackend | bsd-3-clause | 33,489 | 795 | codeparrot/github-code |
35887184224f6edc578597738e48602c684881e40bc83726ebebc381ff9265f0 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <utility>
#include "base/bind.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include... | C++ | remoting/protocol/connection_unittest.cc | axinging/chromium-crosswalk | bsd-3-clause | 10,137 | 320 | codeparrot/github-code |
c409fcee39a6debb8ec465b0e7cb85ed4e8a0d0e556931b136dcfb1d5a2b2d52 | """A connection adapter that tries to use the best polling method for the
platform pika is running on.
"""
import os
import logging
import socket
import select
import errno
import time
from operator import itemgetter
from collections import defaultdict
import threading
import pika.compat
from pika.compat import dictk... | Python | pika/adapters/select_connection.py | reddec/pika | bsd-3-clause | 21,137 | 605 | codeparrot/github-code |
0b169c3d05895411ce43c5b6c69d5f07d325011aafd199bd05b2221b34a0fc10 | /*
* 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++ | sdk/android/src/jni/androidmetrics_jni.cc | Alkalyne/webrtctrunk | bsd-3-clause | 2,312 | 62 | codeparrot/github-code |
7212db2aba08abd76534d566fda5a7c4d2a2d8e438b4fecc5827909b60903fd3 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020, Cinesite VFX Ltd. 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/GafferScene/MergeScenes.h | lucienfostier/gaffer | bsd-3-clause | 6,816 | 162 | codeparrot/github-code |
1bf81412954ad29d853f863de3f7b8058eadade74eaa1d90486f18e2c1197542 | /*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | C++ | src/udp_socket.cpp | jav/libtorrent | bsd-3-clause | 22,274 | 994 | codeparrot/github-code |
728d706070151496204058dd298a4cce2a11b9f69875c1c81c436a92bbd01250 | package VCP::DB_File::sdbm;
=head1 NAME
VCP::DB_File::sdbm - Subclass providing SDBM_File storage
=head1 SYNOPSIS
use VCP::DB_File;
VCP::DB_File->new;
=head1 DESCRIPTION
To write your own DB_File filetype, copy this file and alter it. Then
ask us to add an option to the .vcp file parsing to enable it.
=... | Perl | lib/VCP/DB_File/sdbm.pm | gitpan/VCP-autrijus-snapshot | bsd-3-clause | 5,516 | 279 | codeparrot/github-code |
c7978fd567cc19a18f92c9b0cc24f52da2855805006481d530f7669b89872190 | /*
* Copyright (c) 2015, Simone Margaritelli <evilsocket at gmail dot com>
* 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 copyr... | C | jni/libhook/linker.h | mokhdzanifaeq/arminject | bsd-3-clause | 3,126 | 99 | codeparrot/github-code |
4d960888ed9ee253cf73771bb5de6f566e7167f9f59fbff14207688c60501d87 | <!DOCTYPE html>
<html>
<head>
<title>Flatty - Flat Administration Template</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<meta content='text/html;charset=utf-8' http-equiv='content-type'>
<meta content='Flat administration template for Tw... | PHP | themes/backend/views/core/default/login.php | zahdxj/YinCart | bsd-3-clause | 18,532 | 227 | codeparrot/github-code |
9c4537d1b930e084e5064c8fad5f603a71e2a893b8d5c634a71cf7a46c21c22c | // 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.
#ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_FACTORY_CHROMEOS_H_
#define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_... | C | chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.h | patrickm/chromium.src | bsd-3-clause | 3,587 | 95 | codeparrot/github-code |
3f73f81b10bbe4c4e78be6caaa306ce85724936a2475261a82ee13d1213c5009 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/mojo/mojo_app_connection_impl.h"
#include <stdint.h>
#include <utility>
#include "base/bind.h"
#include "content/browser/mojo/... | C++ | content/browser/mojo/mojo_app_connection_impl.cc | axinging/chromium-crosswalk | bsd-3-clause | 1,495 | 51 | codeparrot/github-code |
497ceb65262c7d5d13b47f83354a664b4b9fe9f6365c49863eacc0cb962d7759 | # encoding: utf-8
require_relative './job'
module CartoDB
module Importer2
class FormatLinter
CHARACTER_LIMIT = 1000
def self.supported?(extension)
extension == '.kml'
end
# INFO: importer_config not used but needed for compatibility with other normalizers
def initialize(f... | Ruby | services/importer/lib/importer/format_linter.rb | codeandtheory/cartodb | bsd-3-clause | 827 | 39 | codeparrot/github-code |
fc6c9893bd6697dc9fa94d8982a474057b8730f991b01c1fe0755a3e17627318 | from __future__ import division, absolute_import, print_function
import sys
if sys.version_info[0] >= 3:
from io import StringIO
else:
from io import StringIO
import compiler
import inspect
import textwrap
import tokenize
from .compiler_unparse import unparse
class Comment(object):
""" A comment block.... | Python | docs/sphinxext/numpydoc/comment_eater.py | nguy/artview | bsd-3-clause | 5,425 | 170 | codeparrot/github-code |
714f188a6758fc368aa5c35ab1f77eb504edb18c5550e8584a770963775688eb | /**
* Copyright 2013-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.
*
* @providesModu... | JavaScript | src/renderers/shared/stack/event/eventPlugins/ResponderEventPlugin.js | nathanmarks/react | bsd-3-clause | 25,013 | 599 | codeparrot/github-code |
a910ff7e1986485bcd2d409fb7e2fbd9c394ae0de4b019bd66666dfe209a2430 | /*
* BridJ - Dynamic and blazing-fast native interop for Java.
* http://bridj.googlecode.com/
*
* Copyright (c) 2010-2015, Olivier Chafik (http://ochafik.com/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | Java | src/main/java/org/bridj/DefaultNativeList.java | nativelibs4java/BridJ | bsd-3-clause | 8,041 | 249 | codeparrot/github-code |
42d0857964cb9f41790f5dc7614d9df79e4b066b90e9b5553559d93635047535 | /*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chris Torek.
*
* Copyright (c) 2011 The FreeBSD Foundation
* All rights reserved.
* Portions of this software were developed by David Chisnall
... | C | lib/libc/stdio/vfwprintf.c | jrobhoward/SCADAbase | bsd-3-clause | 28,031 | 1,104 | codeparrot/github-code |
6b419f206dc7df394c034807458ad05ffe1f83f50840ab77e983d7e9920f00d9 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CSSParserFastPaths_h
#define CSSParserFastPaths_h
#include "core/CSSPropertyNames.h"
#include "core/CSSValueKeywords.h"
#include "platform/graphi... | C | third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.h | axinging/chromium-crosswalk | bsd-3-clause | 1,081 | 36 | codeparrot/github-code |
dd021f401f9882b292bb40d3854464190e1429edd44e4e8c84a51a1883d22904 | import copy
from django import forms
from django.db import models
from django.core.exceptions import ValidationError, ImproperlyConfigured
from django.db.models.fields.subclassing import Creator
from djangae.forms.fields import ListFormField
from django.utils.text import capfirst
class _FakeModel(object):
"""
... | Python | djangae/fields/iterable.py | nealedj/djangae | bsd-3-clause | 10,309 | 267 | codeparrot/github-code |
d61cb2e33f8f31f5e850622d8892ea3d6809ba9d14fae2cce4ef485c8f6990df | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_GTK_H_
#define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_GTK_H_
#... | C | chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.h | leiferikb/bitpop-private | bsd-3-clause | 1,731 | 46 | codeparrot/github-code |
e1e16535238268dc375372295f3ff9be15e4a1c90bfea25e99bc1e2e41a94221 | $.ajax({
url: './data/population.json',
success: function (data) {
var max = -Infinity;
data = data.map(function (item) {
max = Math.max(item[2], max);
return {
geoCoord: item.slice(0, 2),
value: item[2]
}
});
da... | JavaScript | doc/example/code/map3d_population3.js | wangyuefive/echarts-x | bsd-3-clause | 1,877 | 61 | codeparrot/github-code |
c798a6f19b816d2fe984ce62232846f11c7956741bc198dcd8e24445a9c21fc5 | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Peter Kelly (pmk@post.com)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
*
* This library is free software; yo... | C | third_party/WebKit/Source/core/dom/Element.h | axinging/chromium-crosswalk | bsd-3-clause | 39,638 | 977 | codeparrot/github-code |
5f30f71cf5652d0d5da556696bdec271a80cbb8dafcee0c12a129592fce94862 | """Tools for manipulating of large commutative expressions. """
from __future__ import print_function, division
from sympy.core.add import Add
from sympy.core.compatibility import iterable, is_sequence, SYMPY_INTS
from sympy.core.mul import Mul, _keep_coeff
from sympy.core.power import Pow
from sympy.core.basic impor... | Python | sympy/core/exprtools.py | kmacinnis/sympy | bsd-3-clause | 41,487 | 1,288 | codeparrot/github-code |
48729b64ff88128bea6f8909d4e06813359248643c6f1f4fe3a1ee09c2d20c47 | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | C++ | Modules/Core/test/mitkAccessByItkTest.cpp | iwegner/MITK | bsd-3-clause | 12,165 | 311 | codeparrot/github-code |
7e3ac358edca40315ffc66a3056ac11da351c27051623474865130b7151110c6 | /**
* OpenAL cross platform audio library
* Copyright (C) 1999-2007 by authors.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your op... | C | DK/lib/OpenAL/OpenAL32/alFilter.c | DKGL/DKGL | bsd-3-clause | 17,106 | 547 | codeparrot/github-code |
c6be6ba599ff7a677d6dca4a337e653cac986e8c709105108554a645e4303621 | # Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in>
# Copyright (c) 2008, Enthought, Inc.
# License: BSD Style.
# Enthought library imports.
from tvtk.tools.tvtk_doc import TVTKFilterChooser, TVTK_FILTERS
# Local imports.
from mayavi.filters.filter_base import FilterBase
from mayavi.core.common import ... | Python | mayavi/filters/user_defined.py | dmsurti/mayavi | bsd-3-clause | 3,082 | 84 | codeparrot/github-code |
0a449b9b4c8c840ae6dc683c2b8582efaed62abef6696146cd90c99c0d1e57fa | //
// IMAPFetchNamespaceOperation.h
// mailcore2
//
// Created by DINH Viêt Hoà on 1/12/13.
// Copyright (c) 2013 MailCore. All rights reserved.
//
#ifndef __MAILCORE_MCIMAPFETCHNAMESPACEOPERATION_H_
#define __MAILCORE_MCIMAPFETCHNAMESPACEOPERATION_H_
#include <MailCore/MCIMAPOperation.h>
#ifdef __cplusplus
na... | C | src/async/imap/MCIMAPFetchNamespaceOperation.h | zhanleewo/mailcore2 | bsd-3-clause | 732 | 39 | codeparrot/github-code |
7d9c624cc1d04c50e995cfd73009442a9a77a061e0044c238d8249d59de9281c | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/events/platform/x11/hotplug_event_handler_x11.h"
#include <X11/extensions/XInput.h>
#include <X11/extensions/XInput2.h>
#include <cmath>
#i... | C++ | ui/events/platform/x11/hotplug_event_handler_x11.cc | collinjackson/mojo | bsd-3-clause | 5,674 | 172 | codeparrot/github-code |
64c0523fe6cf1fdd88befbf58aae3e9950cffcbeb44843906597382c057d04ae | <?php
/**
* ALIPAY API: alipay.pass.instance.update request
*
* @author auto create
* @since 1.0, 2015-07-23 11:37:35
*/
class AlipayPassInstanceUpdateRequest
{
/**
* 需要更新的券实例变量和状态信息
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
... | PHP | web/alipay/aop/request/AlipayPassInstanceUpdateRequest.php | black-tangyang/basic | bsd-3-clause | 1,494 | 95 | codeparrot/github-code |
b8ac248ac58cbc6a1016a8ae536b24bc8d755ecc058a3e2f39b0e7f515d61fdb | """Univariate features selection."""
# Authors: V. Michel, B. Thirion, G. Varoquaux, A. Gramfort, E. Duchesnay.
# L. Buitinck, A. Joly
# License: BSD 3 clause
import numpy as np
import warnings
from scipy import special, stats
from scipy.sparse import issparse
from ..base import BaseEstimator
from ..prepr... | Python | sklearn/feature_selection/univariate_selection.py | loli/semisupervisedforests | bsd-3-clause | 18,609 | 604 | codeparrot/github-code |
6c8eea3e86ab639e4e05eeed4fb1f5fd6364106e61db2ba8a09a359d799766f9 | /*
* graph.h
* PHD Guiding
*
* Created by Craig Stark.
* Copyright (c) 2006-2010 Craig Stark.
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... | C | graph.h | lynxdeterra/open-phd-guiding | bsd-3-clause | 7,901 | 268 | codeparrot/github-code |
8e5a7c5fea816cd993308da0c305b307f691dc18c348c07fed7a6c05c44f8b88 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/chrome/browser/search_engines/template_url_service_factory.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/no_destructo... | C++ | ios/chrome/browser/search_engines/template_url_service_factory.cc | scheib/chromium | bsd-3-clause | 3,840 | 108 | codeparrot/github-code |
6b7eac1a20257f8ae32e06db91096453ca338d0a350e1c9be0c37f551ebb9d5c | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/threading/platform_thread.h"
#include <errno.h>
#include <sched.h>
#include <stddef.h>
#include "base/lazy_instance.h"
#include "base/log... | C++ | src/base/threading/platform_thread_freebsd.cc | kku1993/libquic | bsd-3-clause | 2,784 | 102 | codeparrot/github-code |
d6909b2a0c78b003e6e32980f61fac625294a40754e2534aca6fb94e2f1a317a | package org.broadinstitute.hellbender.tools.spark.pathseq;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Output;
import htsjdk.samtools.SAMSequenceRecord;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveInputStrea... | Java | src/main/java/org/broadinstitute/hellbender/tools/spark/pathseq/PSBuildReferenceTaxonomyUtils.java | magicDGS/gatk | bsd-3-clause | 17,481 | 350 | codeparrot/github-code |
13d83187cc740cc63de2f5061d7dcf37e2df6b07b8cd21ad224a5045c60dcce2 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/banners/app_banner_debug_log.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_conte... | C++ | chrome/browser/banners/app_banner_debug_log.cc | ds-hwang/chromium-crosswalk | bsd-3-clause | 2,713 | 60 | codeparrot/github-code |
7b1d9f96b4a74d0286f145f2f9408927c24bc0bb68bec3e1c765c1fdf973518f | // 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.
package org.chromium.content.browser.input;
import android.os.SystemClock;
import android.text.Editable;
import android.text.InputType;
import android.te... | Java | content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java | PeterWangIntel/chromium-crosswalk | bsd-3-clause | 27,345 | 642 | codeparrot/github-code |
84dee369ab00f556038dc8b392bfdd8eb64312044eed87ec86922286847b8fe0 | /*
* Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.net)
* 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, ... | C | source/Vertex.h | odanek/duel6r | bsd-3-clause | 2,490 | 70 | codeparrot/github-code |
62a60880554aee64cb4021e1f2b243aeb67efe8eab9591bf21a34a0acf8ba22c | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/layout/ng/mathml/ng_math_under_over_layout_algorithm.h"
#include "third_party/blink/renderer/core/layout/ng/mat... | C++ | third_party/blink/renderer/core/layout/ng/mathml/ng_math_under_over_layout_algorithm.cc | nwjs/chromium.src | bsd-3-clause | 18,124 | 429 | codeparrot/github-code |
2e66169e5706f8d5efc2a1dec908d00298c7ebfffb64baecda89453a6793d559 | /* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* 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 so... | JavaScript | lib/ace/layer/gutter.js | newrelic/ace | bsd-3-clause | 8,543 | 223 | codeparrot/github-code |
076d502acd55804943c8e5b3492ed66b4a3bbe15ecf95d3dc216bc47ce871c2b | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/fetch/multipart_parser.h"
#include "base/cxx17_backports.h"
#include "third_party/blink/public/platform/platfor... | C++ | third_party/blink/renderer/core/fetch/multipart_parser.cc | nwjs/chromium.src | bsd-3-clause | 12,588 | 341 | codeparrot/github-code |
8328b2169fe531d8fab404609e022c0f9f6df7f5a933bf67b56989d1dc1fe0a3 | //===- PDBExtras.h - helper functions and classes for PDBs ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | third_party/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/PDB/PDBExtras.h | endlessm/chromium-browser | bsd-3-clause | 1,888 | 49 | codeparrot/github-code |
7babceeb71feff816c5c7a24e45371e97e9a4181d338a3154067f2ff2bee7c75 | <?php
/* Prototype : string basename(string path [, string suffix])
* Description: Returns the filename component of the path
* Source code: ext/standard/string.c
* Alias to functions:
*/
echo "*** Testing basename() : usage variation ***\n";
// Define error handler
function test_error_handler($err_no, $err_ms... | PHP | testdata/fuzzdir/corpus/ext_standard_tests_file_basename_variation3.php | JSchwehn/php | bsd-3-clause | 2,234 | 100 | codeparrot/github-code |
83d9c648068ffb3be3b8b995c14364e8d5868fc044efb9263669d2fb383838ba | // Copyright 2019 the V8 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.
#include "src/torque/torque-compiler.h"
#include <fstream>
#include "src/torque/declarable.h"
#include "src/torque/declaration-visitor.h"
#include "src... | C++ | v8/src/torque/torque-compiler.cc | endlessm/chromium-browser | bsd-3-clause | 5,519 | 161 | codeparrot/github-code |
3e81bce4718b1e7a42c18879fa753ef1335290549cb202b7ec5c2f93632fc0a4 | # -*- coding: utf-8 -*-
# Copyright (C) 2012, Almar Klein
#
# Visvis is distributed under the terms of the (new) BSD License.
# The full license can be found in 'license.txt'.
import visvis as vv
import numpy as np
import os
# Try importing imageio
imageio = None
try:
import imageio
except ImportError:
pass
... | Python | functions/volread.py | chrisidefix/visvis | bsd-3-clause | 1,322 | 53 | codeparrot/github-code |
cc3b3ee2ac2fd658333a88b83e0eac06749b1d8cbbbe807179b677be9de25696 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/usb/usb_policy_allowed_devices.h"
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/strings/string_spli... | C++ | chromium/chrome/browser/usb/usb_policy_allowed_devices.cc | ric2b/Vivaldi-browser | bsd-3-clause | 5,366 | 139 | codeparrot/github-code |
998466d8f041cc990b85863c0f0bda566541f28a905995554edc3c4a054c9a89 | #pragma once
#include "scbwdata.h"
#include <algorithm>
namespace scbw {
/// The UnitFinder class is used to efficiently search for units in a certain
/// area using StarCraft's internal data structures.
class UnitFinder {
public:
/// Default constructor.
UnitFinder();
/// Constructs and... | C | SCT-Plugin/SCBW/UnitFinder.h | xboi209/general-plugin-template-project | isc | 9,141 | 275 | codeparrot/github-code |
76c37f6f8a3096ccf8b37fd563528829e9b442342f8da6f920ce4d37941e50f5 | /*
* Copyright (c) 2012-2014 The Khronos Group Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and/or associated documentation files (the
* "Materials"), to deal in the Materials without restriction, including
* without limitation the rights to use, copy, m... | C++ | sample/bindings/java/jni/Node.cpp | hy3440/HOG-OpenVX | mit | 3,492 | 84 | codeparrot/github-code |
124a1db380cd13ddb0b64a79063e4216f753288e01d7a7a245f1757e07d453a6 | # frozen_string_literal: true
require 'csv'
class CourseStudentsCsvBuilder
def initialize(course)
@course = course
end
def generate_csv
csv_data = [CSV_HEADERS]
courses_users.each do |courses_user|
csv_data << row(courses_user)
end
CSV.generate { |csv| csv_data.each { |line| csv << li... | Ruby | lib/analytics/course_students_csv_builder.rb | alpha721/WikiEduDashboard | mit | 1,126 | 49 | codeparrot/github-code |
465e6731bc1d6490f525405f94aa95092880395bad4e8fd86509bd45992e1c68 | /* Copyright (c) 2009-2013 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "net.h"
#include "ioloop.h"
#include "hash.h"
#include "strescape.h"
#include "fd-set-nonblock.h"
#include "login-proxy-state.h"
#include <unistd.h>
#include <fcntl.h>
#define NOTIFY_RETRY_REOPEN_MSECS (60*1000)
s... | C | src/login-common/login-proxy-state.c | Distrotech/dovecot | mit | 3,843 | 163 | codeparrot/github-code |
686fd16a4c5927c4e22236a84cca4c4a56dc6396e8853368dfc91903ea22022e | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="iso-8859-1">
<title>org.apache.commons.net.pop3 (Commons Net 3.3 API)</title>
<link rel="stylesheet" type="te... | HTML | lib/commons-net-3.3/apidocs/org/apache/commons/net/pop3/package-summary.html | asad/MCEDS | mit | 8,093 | 203 | codeparrot/github-code |
c5c34cb80e51714d1082e602d3974e7bc59eba15c1f171ff699fba90fcf7661a | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
namespace GSoft.Dynamite.Collections
{
/// <summary>
/// A list that supports synchronized reading and writing.
/// </summary>
/// <typeparam name="T">The type of ob... | C# | Source/GSoft.Dynamite/Collections/ConcurrentList.cs | GSoft-SharePoint/Dynamite | mit | 22,031 | 558 | codeparrot/github-code |
19f8a42c7a41534172f6683c44f69ba8131012f4d41750ed71c97e0efb40604d | /*global define*/
/*jslint white:true,browser:true*/
define([
'bluebird',
// CDN
'kb_common/html',
// LOCAL
'common/ui',
'common/runtime',
'common/events',
'common/props',
// Wrapper for inputs
'./inputWrapperWidget',
'widgets/appWidgets/fieldWidget',
// Display widgets
... | JavaScript | nbextensions/editorCell_bill/widgets/editorParamsViewWidget.js | msneddon/narrative | mit | 11,747 | 329 | codeparrot/github-code |
1269c3f7f3c8897b243a59fa97022344345da7f56df80a19c740769829498129 | #!/bin/bash
FN="ALL_1.32.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/experiment/src/contrib/ALL_1.32.0.tar.gz"
"https://bioarchive.galaxyproject.org/ALL_1.32.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-all/bioconductor-all_1.32.0_src_all.tar.gz"
)
MD5="a7181423086d1ea752a3e4... | Shell | recipes/bioconductor-all/post-link.sh | bebatut/bioconda-recipes | mit | 1,267 | 47 | codeparrot/github-code |
6788f03c3b87d09264c93a3cff1bd5d51bb3d07cd9c6626a1fa7a0b179d3e152 | package com.hearthsim.card.basic.spell;
import com.hearthsim.card.spellcard.SpellTargetableCard;
import com.hearthsim.event.effect.EffectCharacter;
import com.hearthsim.event.effect.EffectCharacterBuffTemp;
import com.hearthsim.event.filter.FilterCharacter;
import com.hearthsim.event.filter.FilterCharacterTargetedSpel... | Java | src/main/java/com/hearthsim/card/basic/spell/HeroicStrike.java | oyachai/HearthSim | mit | 1,140 | 44 | codeparrot/github-code |
9e7e9a8fb2fa841385dadc91246a4dca44d3a748f0ae4f686de499591c359cda | #! /bin/sh
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015 6WIND S.A.
# Do some basic checks in MAINTAINERS file
cd $(dirname $0)/..
# speed up by ignoring Unicode details
export LC_ALL=C
# Get files matching paths with wildcards and / meaning recursing
files () # <path> [<path> ...]
{
if [ -z "$1" ] ; th... | Shell | devtools/check-maintainers.sh | john-mcnamara-intel/dpdk | mit | 2,890 | 133 | codeparrot/github-code |
5af9a6b7f15321fe8dc79f798c63389b1b6328a1b48ebc8a8d73c47b55812245 | <!DOCTYPE html>
<html>
<head>
<title>NEJ实例 - 计数器</title>
<meta charset="utf-8" />
<script>
function log(msg){
var div = document.createElement('div');
div.innerHTML = msg;
document.body.appendChild(div);
}
</script>
</head>
<body>
<textarea id="abc" st... | HTML | test/cases/nej_0.1.0/webapp/src/javascript/lib/nej/util/cursor/demo/cursor.html | NEYouFan/nej-toolkit | mit | 1,185 | 42 | codeparrot/github-code |
c30497b655a53858c1903d6e773eac0cb2138df59ee54831a80abefb3c6501be | // Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "ProfileService_winrt.h"
#include "Utils_WinRT.h"
using namespace pplx;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Colle... | C++ | Source/Services/Social/WinRT/ProfileService_WinRT.cpp | jicailiu/xbox-live-api | mit | 2,818 | 88 | codeparrot/github-code |
7ba548cab7dd05297c99cdef512d8b31b695b5517d6bd418caa9d21f8dccf3ee | /*
* MP3 muxer
* Copyright (c) 2003 Fabrice Bellard
*
* 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 ... | C | jni/ffmpeg/libavformat/mp3enc.c | retsu0/FFmepg-Android | mit | 16,996 | 539 | codeparrot/github-code |
8ad67662381181bad9cd949b438c8a7cb9c4c22bc2030aa9e4609b3b5920acec | // Copyright (c) 2011-2013 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 "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include ... | C++ | src/qt/optionsdialog.cpp | bankonme/Potcoin-1 | mit | 9,332 | 290 | codeparrot/github-code |
f3a7f6c76970aa6a371fc0b86e846f51caaf2af97ff86f44ba9f35df094f735f | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "i... | C++ | src/init.cpp | s-matthew-english/bitcoin | mit | 80,293 | 1,645 | codeparrot/github-code |
571ca7bed6d9922541c666c3f59b4f0c66bd2251efbf82eaf4403b159ce4d97a | <?php
namespace esperanto\UserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\Group as BaseGroup;
/**
* Group
*/
class Group extends BaseGroup
{
/**
* @var integer
*/
protected $id;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $users;
... | PHP | src/esperanto/UserBundle/Entity/Group.php | gseidel/esperanto-cms | mit | 1,301 | 75 | codeparrot/github-code |
1744ed131dcf023bf30d525b15ffca2d3eb7ed4e5a61d36bac447701be8159c6 | var fs = require('fs');
var PNG = require('../lib/png').PNG;
var test = require('tape');
var noLargeOption = process.argv.indexOf("nolarge") >= 0;
fs.readdir(__dirname + '/in/', function (err, files) {
if (err) throw err;
files = files.filter(function (file) {
return (!noLargeOption || !file.match(/large/i))... | JavaScript | test/convert-images-spec.js | lukeapage/pngjs2 | mit | 2,317 | 89 | codeparrot/github-code |
a62dda0df4213bb38fcf103846efcb58d3cbdf51b1eae07db7a29c07049027c2 | var assert = require('assert');
var Q = require('q');
var R = require('..');
describe('pipeP', function() {
function a(x) {return x + 'A';}
function b(x) {return x + 'B';}
it('handles promises', function() {
var plusOne = function(a) {return a + 1;};
var multAsync = function(a, b) {return Q.when(a * ... | JavaScript | test/pipeP.js | donnut/ramda | mit | 988 | 36 | codeparrot/github-code |
f1039a78687a9a172a42c15cb56c30f759a731b0bfe6178083d82b036e2333fd | local yui_path = (...):match('(.-)[^%.]+$')
local Object = require(yui_path .. 'UI.classic.classic')
local FlatDropdown = Object:extend('FlatDropdown')
function FlatDropdown:new(yui, settings)
self.yui = yui
self.x, self.y = 0, 0
self.name = settings.name
self.size = settings.size or 20
self.option... | Lua | yaoui/FlatDropdown.lua | adonaac/yaoui | mit | 3,846 | 106 | codeparrot/github-code |
137f50a7a2b1542828b554b0b03f37f60c95a0274fb6f5d87594d78be3c0393f | //
// MTFontMathTable.h
// iosMath
//
// Created by Kostub Deshmukh on 8/28/13.
// Copyright (C) 2013 MathChat
//
// This software may be modified and distributed under the terms of the
// MIT license. See the LICENSE file for details.
//
@import Foundation;
@import CoreText;
@class MTFont;
/** MTGlyphPart ... | C | iosMath/render/internal/MTFontMathTable.h | kostub/iosMath | mit | 8,951 | 169 | codeparrot/github-code |
6d3f4f032ae2e13fbccf295ce96de652e1a5b7c1048d74526b11938da06edd39 | /*
* Farseer Physics Engine:
* Copyright (c) 2012 Ian Qvist
*
* Original source Box2D:
* Copyright (c) 2006-2011 Erin Catto http://www.box2d.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 t... | C# | Nez.FarseerPhysics/Farseer/Dynamics/Joints/DistanceJoint.cs | Blucky87/Nez | mit | 9,625 | 337 | codeparrot/github-code |
5c34cc1de23913117861728dc6824e770133c8d0ea2a34a457106efb8399a1e2 | <?php
/* WebProfilerBundle:Profiler:toolbar_js.html.twig */
class __TwigTemplate_5c613b42836f9a825aea4138cba148e6 extends Twig_Template
{
protected function doGetParent(array $context)
{
return false;
}
protected function doDisplay(array $context, array $blocks = array())
{
// line... | PHP | app/cache/dev_old/twig/5c/61/3b42836f9a825aea4138cba148e6.php | ksrinivasancomo/symfony2 | mit | 1,789 | 56 | codeparrot/github-code |
154e22b7be383b7998fd2d4e6824f73d483f2e768091fd684d2d8c433b7d088b | // +build linux
// +build 386 amd64 arm arm64
package ras
import (
"database/sql"
"fmt"
"os"
"strconv"
"strings"
"time"
_ "modernc.org/sqlite" //to register SQLite driver
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
// Ras plugin gathers and counts errors provided by ... | GO | plugins/inputs/ras/ras.go | m4ce/telegraf | mit | 9,486 | 342 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.