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 |
|---|---|---|---|---|---|---|---|---|
afc3a556bc26a9f6b3ccb76957ee87d1c9b67a8e8b2779cf575fd060a0b4b3b1 | package org.drools.compiler.common;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.List;
import org.drools.core.common.TerminalNodeIterator;
import org.drools.core.util.Iterator;
import org.droo... | Java | drools-compiler/src/test/java/org/drools/compiler/common/TerminalNodeIteratorTest.java | Buble1981/MyDroolsFork | apache-2.0 | 2,807 | 79 | codeparrot/github-code |
e8efc632660cf1ddbf10b79a472d2056f62b6ee2e6107c265975587df3168c4e | /* Copyright 2019 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/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc | annarev/tensorflow | apache-2.0 | 12,371 | 314 | codeparrot/github-code |
9a857ec12c2ac00454223af952a39e71e66df472a6c61935937272fda6d2169e | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us" xml:lang="en-us">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contribut... | HTML | db/db-derby-10.13.1.1-bin/docs/html/ref/rrefunfreezedbproc.html | sadrayan/topic_web | apache-2.0 | 6,803 | 113 | codeparrot/github-code |
a908654844caf299aaaeedbf32c86018acf5ea79638ee96e667616bb8b720686 | #include "rxcpp/rx.hpp"
#include "rxcpp/rx-test.hpp"
#include "catch.hpp"
SCENARIO("from sample"){
printf("//! [from sample]\n");
auto values = rxcpp::observable<>::from(1, 2, 3);
values.
subscribe(
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
... | C++ | Rx/v2/examples/doxygen/from.cpp | Reactive-Extensions/RxCpp | apache-2.0 | 1,028 | 34 | codeparrot/github-code |
0e29e4db5b1e305a9e1ff4683b1170d91d7ba2dc00d717fddc54b8cacc47f0f0 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SqlServer.Types;
using System.Data.SqlClient;
using System.Data.Common;
using System.Data;
using System.Text.RegularExpressions;
namespace GeospatialServices.GeoJSON
{
public class GeoJSONService
... | C# | EIDSS v6/Utils/GeospatialServices/GeoJSON/GeoJSONService.cs | EIDSS/EIDSS-Legacy | bsd-2-clause | 4,537 | 113 | codeparrot/github-code |
67d8f5e1b1069a794efcaafe4d1a4e2bf595ba3eeb27b4b7a8879ad7f200ff2c | /*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2014 - 2017 Board of Regents of the University of
* Wisconsin-Madison, University of Konstanz and Brian Northan.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | Java | src/test/java/net/imagej/ops/benchmark/MappersBenchmarkTest.java | gab1one/imagej-ops | bsd-2-clause | 3,881 | 119 | codeparrot/github-code |
526cc7cb80544990fddbf692b584d06c08e73e95e0836430432753a74e6914f4 | /***************************************************************************
hop.cpp
-------------------
A hop class
-------------------
Copyright 1999-2008, David Johnson
Please see the header file for copyright and license information
**********************************************************************... | C++ | src/hop.cpp | AlvaroIT/qbrew-master | bsd-2-clause | 2,575 | 99 | codeparrot/github-code |
11e5b96c091fa256464f95f171b15f5c5f206da02d62abf23b1883b435747169 | # Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved.
# Copyright (c) 2006-2014 Sippy Software, Inc. All rights reserved.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistrib... | Python | sippy/UaStateGeneric.py | sippy/b2bua | bsd-2-clause | 1,909 | 53 | codeparrot/github-code |
aadd426e558889bccef79db9909a547dd6902eb797e65b564618066fc56b8feb |
# Django
from django.apps import AppConfig
class BhsConfig(AppConfig):
name = 'apps.bhs'
verbose_name = 'Base'
def ready(self):
import algoliasearch_django as algoliasearch
from .indexes import AwardIndex
Award = self.get_model('award')
algoliasearch.register(Award, Awar... | Python | project/apps/bhs/config.py | dbinetti/barberscore-django | bsd-2-clause | 898 | 34 | codeparrot/github-code |
3c2e09fb856720d25545c9aaa96941ca45c171616b79f0c522661490e9564d0b | /*
* Copyright (c) 2001-2007, Tom St Denis
* Copyright (c) 2014, STMicroelectronics International N.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:
*
* 1. Redistributions of source code... | C | core/lib/libtomcrypt/src/encauth/ccm/ccm_process.c | matt2048/optee_os | bsd-2-clause | 3,805 | 115 | codeparrot/github-code |
445cc274df2e63307411adc53a57250fb2b5b86c580221af114ed27acf0e3f08 | -- | The functions in this module allow you to limit the total size of incoming request bodies.
--
-- Limiting incoming request body size helps protect your server against denial-of-service (DOS) attacks,
-- in which an attacker sends huge bodies to your server.
module Network.Wai.Middleware.RequestSizeLimit
(
... | Haskell | wai-extra/Network/Wai/Middleware/RequestSizeLimit.hs | sordina/wai | bsd-2-clause | 3,370 | 74 | codeparrot/github-code |
20cae6affc7327f66a8d8d1116f0eac27e2b95e34bdc94ab54e70b570da435a8 | /*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This softwa... | C | tool/cmake-3.0.2/Source/CTest/cmCTestSubmitHandler.h | unix1986/universe | bsd-2-clause | 3,215 | 99 | codeparrot/github-code |
e8178d2b670f6b88e6f68478096e7e67d25d2c58b2834bd998a2936080ba8e71 | #ifndef __IPC_NAMESPACE_H__
#define __IPC_NAMESPACE_H__
#include <linux/err.h>
#include <linux/idr.h>
#include <linux/rwsem.h>
#include <linux/notifier.h>
#include <linux/nsproxy.h>
/*
* ipc namespace events
*/
#define IPCNS_MEMCHANGED 0x00000001 /* Notify lowmem size changed */
#define IPCNS_CREATED 0x0000000... | C | linux-lts-quantal-3.5.0/include/linux/ipc_namespace.h | andrewjylee/omniplay | bsd-2-clause | 5,233 | 179 | codeparrot/github-code |
f34c94a7e1fd34098bceb4ea993842bfe378e078d60fa318873ac65951d839e1 | /*
BCM2835 "GPU_FFT" release 3.0
Copyright (c) 2015, Andrew Holme.
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 ... | C | host_applications/linux/apps/hello_pi/hello_fft/hello_fft.c | roberttidey/userland | bsd-3-clause | 4,268 | 110 | codeparrot/github-code |
c966a9462f27ce7d71fb2bb5c28f45cc9000b2db6c037762ba23da041cf48010 | // Copyright (c) 2010 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 VIEWS_CONTROLS_TEXTFIELD_GTK_VIEWS_TEXTVIEW_H_
#define VIEWS_CONTROLS_TEXTFIELD_GTK_VIEWS_TEXTVIEW_H_
#pragma once
#include <gdk/gdk.h>
#incl... | C | views/controls/textfield/gtk_views_textview.h | meego-tablet-ux/meego-app-browser | bsd-3-clause | 1,698 | 55 | codeparrot/github-code |
ec7b7f7b348f3812b7a7887172cf1e5d305bf949bd318df61ac3ca0672114b64 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_CONTROLLER_H_
#define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_CONTROLLER_H_
#include "base/time/t... | C | content/browser/media/android/media_session_controller.h | ds-hwang/chromium-crosswalk | bsd-3-clause | 2,713 | 70 | codeparrot/github-code |
3fc6c0decdbe5ac5704e4f1d67920dbe900ba95224f44f803fd26d3f8aec48de | #include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/BasicAliasAnalysis.h"
#include "llvm/Analysis/Passes.h"
#include "llvm/IR/DIBuilder.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/S... | C++ | third_party/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter9/toy.cpp | endlessm/chromium-browser | bsd-3-clause | 41,095 | 1,453 | codeparrot/github-code |
fb374f9dc798ca974aed8160ff114f766afd2265f3cefc34722bd5b616ee6175 | /*=========================================================================
Program: The OpenIGTLink Library
Language: C++
Web page: http://openigtlink.org/
Copyright (c) Insight Software Consortium. All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warr... | C | Source/igtlTrackingDataMessage.h | openigtlink/OpenIGTLink | bsd-3-clause | 6,980 | 238 | codeparrot/github-code |
1a8ac5331777b415532d75091150fa84c0dda579f010f25a52e7ca445e05fae0 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ScrollbarTestSuite_h
#define ScrollbarTestSuite_h
#include "platform/heap/GarbageCollected.h"
#include "platform/scroll/ScrollableArea.h"
#includ... | C | third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h | axinging/chromium-crosswalk | bsd-3-clause | 3,860 | 107 | codeparrot/github-code |
ce638a23a15e9d0258a8608b9a239b06bf1fa61dbd14fb64e0b0a959282e39af | #!/usr/bin/env bash
#*----------------------------------------------------------------------------*#
#* Copyright (c) FIRST 2014. All Rights Reserved. *#
#* Open Source Software - may be modified and shared by FRC teams. The code *#
#* must be accompanied by the FIRST BSD license file in the root directory of... | Shell | test-scripts/deploy-and-run-test-on-robot.sh | robotdotnet/allwpilib | bsd-3-clause | 3,402 | 97 | codeparrot/github-code |
4211027a1701ab8805d85dc02bbf1bdae80e92b8e5f84f38588bbb63eaabeb85 | /*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* 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... | Java | Product/Production/Gateway/PatientDiscovery_10/src/main/java/gov/hhs/fha/nhinc/patientdiscovery/_10/gateway/ws/EntityPatientDiscoveryDeferredRequestSecured.java | sailajaa/CONNECT | bsd-3-clause | 3,948 | 79 | codeparrot/github-code |
4aa9dde08f47d3c03bb17ef4a81218432b6be283eeb93fd04b538cb5341bfa41 | /*
* Copyright (c) 2012 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 | voice_engine/monitor_module.h | yuxw75/temp | bsd-3-clause | 1,336 | 57 | codeparrot/github-code |
c4642462bcf23866678f1273817b6a40b11c947d5f96bddc06df01f68be02c98 | #!/usr/bin/env python
##########################################################################
#
# Copyright (c) 2019, 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:
#
# ... | Python | config/azure/publishBuild.py | boberfly/gaffer | bsd-3-clause | 5,308 | 174 | codeparrot/github-code |
ff6dc0a43a17cae376b306ed1683aa06c77a1a82dab247c849759907a19ef2be | /*===================================================================
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/QtWidgets/include/QmitkRenderWindowMenu.h | ireicht/MITK-CSI | bsd-3-clause | 11,574 | 334 | codeparrot/github-code |
d82b8665cc8ea587dd9836d003442938e774c238ecaf2922ab79cbfd61cc4c84 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... | PHP | module/Fmi/src/Fmi/Controller/CankoGrozevController.php | alimulrazi/fmi | bsd-3-clause | 6,476 | 202 | codeparrot/github-code |
ad7fcdeeb77a3af4fb2cf1db1ecf3ef60813ba303cd13ff411e69dd4ab414ae0 | {-# LANGUAGE DeriveDataTypeable, UndecidableInstances #-}
{-# LANGUAGE CPP #-}
--
-- (c) The University of Glasgow 2002-2006
--
-- The IO Monad with an environment
--
-- The environment is passed around as a Reader monad but
-- as its in the IO monad, mutable references can be used
-- for updating state.
--
module IO... | Haskell | compiler/utils/IOEnv.hs | GaloisInc/halvm-ghc | bsd-3-clause | 7,617 | 236 | codeparrot/github-code |
ec6a9b233a90e825f2495d89da7783f94abe4f83b196c8a3a83f6ad4a04639e2 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERFACE_H_
#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_... | C | chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h | guorendong/iridium-browser-ubuntu | bsd-3-clause | 9,758 | 253 | codeparrot/github-code |
a4b987a037c7794dbf78ed00fad99668e88ac774a4cf638e2a7288010b2833f2 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/collected_cookies_views.h"
#include "base/prefs/pref_service.h"
#include "chrome/browser/browsing_data/browsing_dat... | C++ | chrome/browser/ui/views/collected_cookies_views.cc | sgraham/nope | bsd-3-clause | 20,756 | 539 | codeparrot/github-code |
e0584ec64be6707bb4ed26a2428a553af34a084944e95874b85b014a555f17a8 | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2012. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | Java | src/edu/wpi/first/wpilibj/KickBot1/templates/wpilib/DigitalModule.java | SkylineSpartabots/Kit-Bot-1 | bsd-3-clause | 16,720 | 460 | codeparrot/github-code |
184d78ea0151b5b5e5c4d69f2d6d84818bb6c35464852dc34f55005ceaa3fe30 | // 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.
package org.chromium.chrome.browser.tabmodel;
import android.test.InstrumentationTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import... | Java | chrome/android/javatests_shell/src/org/chromium/chrome/browser/tabmodel/RestoreMigrateTest.java | guorendong/iridium-browser-ubuntu | bsd-3-clause | 12,835 | 269 | codeparrot/github-code |
59f80f573ba84c4bbc36d782ddfeb9f39ebcb029c90065ef1783d03deace7002 | from __future__ import print_function
import numpy as np
import pandas as pd
from bokeh.browserlib import view
from bokeh.document import Document
from bokeh.embed import file_html
from bokeh.glyphs import Circle, Line
from bokeh.objects import (
ColumnDataSource, Glyph, Grid, GridPlot, LinearAxis, Plot, Range1d
... | Python | glyphs/anscombe.py | the13fools/Bokeh_Examples | bsd-3-clause | 3,251 | 94 | codeparrot/github-code |
281b79e49321d05888865ecb96a40483d49f2b02af70b4875d598628419ac3cd | {% load i18n %}
{% load staticfiles %}
{% load wooey_tags %}
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>{% block title %}{% get_wooey_setting "WOOEY_SITE_NAME" %}{% endblock title %}</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.c... | HTML | wooey/templates/wooey/base.html | alexkolar/Wooey | bsd-3-clause | 27,832 | 819 | codeparrot/github-code |
708efb95634f26caf9b1b3955c24ad928fa647e2ca5e845e1577363deacb16ed | // 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 <vector>
#include "cc/blink/web_layer_impl_fixed_bounds.h"
#include "cc/layers/picture_image_layer.h"
#include "cc/test/fake_layer_tree_host.h"
#... | C++ | cc/blink/web_layer_impl_fixed_bounds_unittest.cc | 7kbird/chrome | bsd-3-clause | 7,084 | 178 | codeparrot/github-code |
15e33e2fe9274910d47eeb023116086b6d9d6cb52d958ea665fa98fb2ef84f7d | #ifndef RBX_CALL_FRAME_HPP
#define RBX_CALL_FRAME_HPP
#include "vmmethod.hpp"
#include "unwind_info.hpp"
#include "stack_variables.hpp"
#include "builtin/variable_scope.hpp"
#include "dispatch.hpp"
#include "arguments.hpp"
#include <ostream>
#ifdef ENABLE_LLVM
#include "llvm/jit_runtime.hpp"
#endif
namespace rubini... | C++ | vm/call_frame.hpp | slawosz/rubinius | bsd-3-clause | 5,461 | 275 | codeparrot/github-code |
f22a363bdc8e63f0b0e8dc9764616078080fa4ec295cd8171368c46df617346d | /* *****************************************************************************
Copyright (c) Microsoft Corporation. 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.... | TypeScript | src/Orchard.Web/Modules/Contrib.Widgets/Scripts/Type/jquery.d.ts | SouleDesigns/SouleDesigns.Orchard | bsd-3-clause | 21,715 | 675 | codeparrot/github-code |
f56731c94f1cd6b93395418a9f9bad2ca7b5fc52fc3af60f0510945be99abdd1 | <!DOCTYPE html>
<!--
Copyright (c) 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.
-->
<link rel="import" href="/tracing/base/iteration_helpers.html">
<link rel="import" href="/tracing/base/statistics.html">
<link rel="im... | HTML | tracing/tracing/ui/extras/analysis/sampling_summary.html | modulexcite/catapult | bsd-3-clause | 16,491 | 566 | codeparrot/github-code |
6da1add812877742bff883c98851cbf0625c5f6e1bd43940b93978b92e6bf512 | package org.motechproject.admin.web;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.motechproject.admin.service.SettingsService;
import org.motechproject.admin.service.StatusMessageService;
import org.motechproject.admin.settings.Settings;
import org... | Java | modules/admin/admin/src/test/java/org/motechproject/admin/web/SettingsControllerTest.java | motech/motech-server-pillreminder | bsd-3-clause | 3,315 | 108 | codeparrot/github-code |
4ea9da821cc4bb80929dbdac6d64ac277a3edbb6423ab4d49765c151e5369d28 | // Copyright 2016-2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
package main
import (
"os"
"golang.org/x/sys/unix"
)
var (
// Effective UID ... | GO | cmds/which/which_unix.go | rminnich/u-root | bsd-3-clause | 1,365 | 58 | codeparrot/github-code |
6304779c0613d7658f863c1333b9e641180f39a6f715f6a3e29745ec1d2ee465 | '''
'''
from __future__ import absolute_import
from ...exceptions import ProtocolError
index = {}
def register(cls):
''' Decorator to add a Message (and its revision) to the Protocol index.
'''
key = (cls.msgtype, cls.revision)
if key in index:
raise ProtocolError("Duplicate message specifi... | Python | bokeh/server/protocol/messages/__init__.py | htygithub/bokeh | bsd-3-clause | 643 | 33 | codeparrot/github-code |
fe76b0bda675186756ceed45d898c005f8637554582332a33db191d3ddce46b9 | /*
* Copyright (c) 2004-2022, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... | Java | dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/listener/SMSProcessingException.java | dhis2/dhis2-core | bsd-3-clause | 2,320 | 72 | codeparrot/github-code |
ebd7b81e57cf4bca470cd363eebb80bb7981b3b7bba4110e09f73992008f96ce | // 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 "core/html/HTMLFormControlElement.h"
#include "core/frame/FrameView.h"
#include "core/html/HTMLDocument.h"
#include "core/html/HTMLInputElement.... | C++ | third_party/WebKit/Source/core/html/HTMLFormControlElementTest.cpp | ds-hwang/chromium-crosswalk | bsd-3-clause | 3,024 | 78 | codeparrot/github-code |
dc80f733fc5b3bf9c3867fbd4e29b5b8dd7ccd0997e96449d477593b3086f1de | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2019, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * R... | C++ | src/GafferSceneUI/ShaderTweaksUI.cpp | hradec/gaffer | bsd-3-clause | 6,436 | 241 | codeparrot/github-code |
d9e4c02076382b05abc3685ca3b6a1c34aa6527126be7e63a90cb785086888a1 | from werkzeug.exceptions import NotFound
from werkzeug.utils import redirect
from .models import URL
from .utils import expose
from .utils import Pagination
from .utils import render_template
from .utils import url_for
from .utils import validate_url
@expose("/")
def new(request):
error = url = ""
if request... | Python | examples/couchy/views.py | mitsuhiko/werkzeug | bsd-3-clause | 2,120 | 74 | codeparrot/github-code |
acf196b0d7ec893599eaefe75e00c8ec537f7eb1d622c83a63b5a8c90e45977d | module Dwarf.Types
( -- * Dwarf information
DwarfInfo(..)
, pprDwarfInfo
, pprAbbrevDecls
-- * Dwarf address range table
, DwarfARange(..)
, pprDwarfARanges
-- * Dwarf frame
, DwarfFrame(..), DwarfFrameProc(..), DwarfFrameBlock(..)
, pprDwarfFrame
-- * Utilities
, pprByte
, pprHalf
,... | Haskell | compiler/nativeGen/Dwarf/Types.hs | ezyang/ghc | bsd-3-clause | 23,682 | 606 | codeparrot/github-code |
3d0a04270fe7f0d33f23f908f94296c82b65446944b60644c99d33973d22b4cc | /***********************************************************************************
Copyright (c) Nordic Semiconductor ASA
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source... | C | nRF51/rbc_mesh/include/fifo.h | mrquincle/nRF51-ble-bcast-mesh | bsd-3-clause | 2,526 | 62 | codeparrot/github-code |
35c78b8a7adf165bb32eeeb61e8a48a7c4660c51d476fb7f5692d435cda6844f | /*=========================================================================
Program: The OpenIGTLink Library
Language: C++
Web page: http://openigtlink.org/
Copyright (c) Insight Software Consortium. All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warr... | C | Source/igtlCommandMessage.h | leochan2009/OpenIGTLink | bsd-3-clause | 3,312 | 122 | codeparrot/github-code |
ff388ca95ab89358144cc0d247b6d5b4827272ad3e0a4aa455767f8c97081486 | // Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... | C++ | v8/src/rewriter.cc | leighpauls/k2cro4 | bsd-3-clause | 9,271 | 281 | codeparrot/github-code |
a05eb9408560bf7a0ff3313300980d320e880af5aa8854f531292f900cb7869a | // 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_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
#define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
#include <stddef.h>
#include <stdint.h>
#include <st... | C | net/url_request/url_request_http_job.h | ds-hwang/chromium-crosswalk | bsd-3-clause | 10,647 | 286 | codeparrot/github-code |
1c773e9a3e6272eeb9df92ddc7b105241d435e35d8aca1c473c444d36b43d7bb | /*
* (C) 1999-2003 Lars Knoll (knoll@kde.org)
* Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 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 the Free Software Foun... | C | third_party/blink/renderer/core/css/style_sheet_contents.h | scheib/chromium | bsd-3-clause | 8,965 | 247 | codeparrot/github-code |
fd060d06b7056cc84f74efa4f1c6676615071f56d9fb1cb156a2a9ce9e237a89 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/signin/profile_customization_ui.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_pr... | C++ | chromium/chrome/browser/ui/webui/signin/profile_customization_ui.cc | ric2b/Vivaldi-browser | bsd-3-clause | 4,486 | 101 | codeparrot/github-code |
e1ed288a40011dc9203728a60b7f78722ea205fce67dfd6f2b5027f3bef48e79 | /////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_aui.h
// Purpose: XRC resource handler for wxAUI
// Author: Andrea Zanellato, Steve Lamerton (wxAuiNotebook)
// Created: 2011-09-18
// Copyright: (c) 2011 wxWidgets Team
// Licence: wxWindows licen... | C | update_notifier/thirdparty/wxWidgets/include/wx/xrc/xh_aui.h | ric2b/Vivaldi-browser | bsd-3-clause | 1,613 | 52 | codeparrot/github-code |
674e5231bd4fb9a568744462cf2a958926db7b3bc7d2e1081210976fb41dbd5c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Components · Flat UI Free</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Loading Bootstrap -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css... | HTML | media/flatui/components.html | richmoh/kohana-start-kit | bsd-3-clause | 35,327 | 1,015 | codeparrot/github-code |
76d5bbc6fe6ab1e25171fdf351434b91e5d20c121fc07e915b70391afb9e30f4 | #!/usr/local/bin/perl
# (C) Hans Wolfgang Loidl, July 1995
#############################################################################
# Time-stamp: <Thu Oct 26 1995 18:23:00 Stardate: [-31]6498.62 hwloidl>
#
# Usage: SPLIT [options] <gr-file>
#
# Generate a set of granularit... | Perl | utils/parallel/SPLIT.pl | nomeata/ghc | bsd-3-clause | 9,636 | 380 | codeparrot/github-code |
64ae31299963e3f70cf494bd4709bf167dc7e76f4bd1a557f2f1c40de0af9f94 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class HistoryItem extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
e.preventDefault();
if (typeof this.props.onClick === 'function') {
thi... | JavaScript | client/src/containers/HistoryList/HistoryItem.js | open-sausages/silverstripe-asset-admin | bsd-3-clause | 1,475 | 57 | codeparrot/github-code |
aa50e615199ec30f6085e984cd5a79dc0598a2dd3a536938a7a4aea1382c56f5 | /**
* PrimeUI inputtextarea widget
*/
$(function() {
$.widget("primeui.puiinputtextarea", {
options: {
autoResize: false,
autoComplete: false,
maxlength: null,
counter: null,
counterTemplate: '{0}',
minQueryLength: 3,
... | JavaScript | resources/primeui-1.1/js/inputtextarea/inputtextarea.js | Padnyaend/books | bsd-3-clause | 12,424 | 369 | codeparrot/github-code |
86e54cdf9cb2b50646f9867146b8f15cd301a7fa77c4fb54c831f97e08afb509 | /****************************************************************************
*
* Copyright (c) 2016-2020 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... | C | platforms/nuttx/src/px4/nxp/s32k1xx/hrt/hrt.c | PX4/Firmware | bsd-3-clause | 24,850 | 922 | codeparrot/github-code |
29aee82f5eff344207ab50c8c98796f893577de72af1deb5cd2ed7d7890a2e6a | /*
GWEN
Copyright (c) 2010 Facepunch Studios
See license in Gwen.h
*/
#include "Gwen/Gwen.h"
#include <math.h>
namespace Gwen
{
namespace Skin
{
/*
Here we're drawing a few symbols such as the directional arrows and the checkbox check
Texture'd skins don't generally use these - but the Simple skin doe... | C++ | Code/Angel/Libraries/gwen/src/Skin.cpp | seanstermonstr/test | bsd-3-clause | 5,016 | 130 | codeparrot/github-code |
3c80390866bd2ade54c6e9b6581e65248d121eba94ba3e5d020d264094df4b1d | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | C# | OpenSim/Framework/NetworkServersInfo.cs | TomDataworks/opensim | bsd-3-clause | 3,555 | 78 | codeparrot/github-code |
a859ffc2639b9133cf23bf9ebea18641652db92c170b4a61836338153828399b | package org.ripple.bouncycastle.asn1.esf;
import org.ripple.bouncycastle.asn1.ASN1Null;
import org.ripple.bouncycastle.asn1.ASN1Object;
import org.ripple.bouncycastle.asn1.ASN1Primitive;
import org.ripple.bouncycastle.asn1.BERTags;
import org.ripple.bouncycastle.asn1.DERNull;
public class SignaturePolicyIdentifier
... | Java | ripple-bouncycastle/src/main/java/org/ripple/bouncycastle/asn1/esf/SignaturePolicyIdentifier.java | xdv/ripple-lib-java | isc | 1,967 | 77 | codeparrot/github-code |
e79bcf438fab66d4f930beca01c15dc212b8c9017f9fb519d76b29b7846d0c43 | 'use strict';
var _ = require('lodash');
var util = require('util');
var assert = require('assert');
var knex = require('knex');
var ripple = require('ripple-lib');
var validator = require('./schema-validator');
function noop() {
return;
}
var defaultLogger = {
debug: noop,
info: noop,
warn: noop,
error: no... | JavaScript | api/lib/db-interface.js | hserang/ripple-rest | isc | 10,255 | 387 | codeparrot/github-code |
0be48684bb980d239307050a5f38bf22366e56facf2867ff009de8bb1dc61667 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Extensions.Logging;
using NBitcoin;
using Stratis.Features.Collateral.CounterChain;
using TracerAttributes;
namespace Stratis.Features.FederatedPeg
{
/// <summary>
/// OP_RETURN data can be a hash, an address... | C# | src/Stratis.Features.FederatedPeg/OpReturnDataReader.cs | Neurosploit/StratisBitcoinFullNode | mit | 5,351 | 136 | codeparrot/github-code |
70a4c7c86229122ef12830c22fd50734004598f661b741df90d9b61e62cca0a1 | using GroupDocs.Viewer.Domain;
using GroupDocs.Viewer.Domain.Html;
using GroupDocs_Viewer_SharePoint.Layouts.GroupDocs_Viewer_SharePoint.BusinessLayer;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using... | C# | Plugins/GroupDocs_Viewer_SharePoint/GroupDocs-Viewer-SharePoint/Layouts/GroupDocs-Viewer-SharePoint/BusinessLayer/Helpers/Utils.cs | groupdocsviewer/GroupDocs_Viewer_NET | mit | 13,195 | 313 | codeparrot/github-code |
f9af527f9c91a1d2eb7d6270cf4cff106a573ae69dc54713735cbe39fbd87cdf | /*! instant.page v1.1.1 - (C) 2019 Alexandre Dieulot - https://instant.page/license */
let urlToPreload
let mouseoverTimer
let lastTouchTimestamp
const prefetcher = document.createElement('link')
const isSupported = prefetcher.relList && prefetcher.relList.supports && prefetcher.relList.supports('prefetch')
const all... | JavaScript | ajax/libs/instant.page/1.1.1/instantpage.js | extend1994/cdnjs | mit | 3,010 | 129 | codeparrot/github-code |
db424a4a8385a0da5f2c08424ad3e35aea85d1c5236cf7ad88e5d5bb026f1353 | /*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppälä
*
* 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... | Java | factory-kit/src/test/java/com/iluwatar/factorykit/factorykit/FactoryKitTest.java | mookkiah/java-design-patterns | mit | 3,063 | 94 | codeparrot/github-code |
455ddd811ab709137ce40cb4686f9e54092a4f127086b35d91bc0a3c7d9e2771 | package info.bitrich.xchangestream.coinjar.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class CoinjarWebSocketUserTradeEvent extends CoinjarEvent {
public final String topic;
public fin... | Java | xchange-stream-coinjar/src/main/java/info/bitrich/xchangestream/coinjar/dto/CoinjarWebSocketUserTradeEvent.java | stachon/XChange | mit | 1,933 | 70 | codeparrot/github-code |
b952821a725dc294b0b7382e94b08fe01d311d600cbfaba241deebfe837f6eeb | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2014
// by DotNetNuke Corporation
//
// 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 restrict... | C# | DNN Platform/Library/Services/Search/Controllers/UserResultController.cs | AugustKarlstedt/Dnn.Platform | mit | 6,616 | 168 | codeparrot/github-code |
b30994a7f801e942693279ee977dbaf5708019b8ee38925c3ace405e94b9e72e | #!/bin/bash
FN="hspeccdf_0.99.1.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.10/data/annotation/src/contrib/hspeccdf_0.99.1.tar.gz"
"https://bioarchive.galaxyproject.org/hspeccdf_0.99.1.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-hspeccdf/bioconductor-hspeccdf_0.99.1_src_all.tar.gz"
"h... | Shell | recipes/bioconductor-hspeccdf/post-link.sh | Luobiny/bioconda-recipes | mit | 1,403 | 48 | codeparrot/github-code |
11fe16595643385fbf58038adde643ef2fb5ef085022d173376b52ac4a44122c | /*
* arr - array to be sorted
* arr_size - size of array
*/
#include <stdio.h>
void insertion_sort(int *arr, int arr_size) {
int i, key, j;
for (i = 1; i < arr_size; i++) {
key = arr[i];
j = i - 1;
/* Move elements of arr[0...i-1], that are
greater than key, to one position ahead
of their current po... | C | insertion_sort/insertion_sort.c | mohitkyadav/algos | mit | 678 | 36 | codeparrot/github-code |
99733359404663b2e6391d2749d98222061d5ece4d95815d64d35aefbeaa9954 | <!DOCTYPE html><html lang="ja"><head>
<meta charset="utf-8">
<title>のレスポンシブデザイン</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@threejs">
... | HTML | manual/ja/responsive.html | fyoudine/three.js | mit | 11,601 | 208 | codeparrot/github-code |
332d1efd66f102f10d76b6c86a599bb5fcf13d4a835e79b1576599992a744422 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Form, Button } from 'semantic-ui-react';
import StarRatingComponent from 'react-star-rating-component';
import { getUserDetails } from '../UserDetails/actions';
import { changeStars, changeForm, submitRatingsForm } from... | JavaScript | client/src/components/Ratings/NewRating.js | bwuphan/raptor-ads | mit | 2,419 | 97 | codeparrot/github-code |
43e49ca9cb1bc32363d8555be51d2d0e9c9cb259c2c5e587a15e28957abae646 | #! /bin/sh
dest_rcmpd_path=/etc/init.d/rcmpd
ws_folder=$HOME/rcmp_ws
installer_folder=$(pwd)
ws_src_folder=$ws_folder/src
ros_folder=/opt/ros
install_rcm_component()
{
rcm_component_path=$installer_folder/$1
if [ -e "$rcm_component_path" ]
then
cp $rcm_component_path $1
unzip $1
rm... | Shell | scripts/install_r.sh | Fiware/i2nd.Robotics | mit | 2,708 | 106 | codeparrot/github-code |
4701ae64ee2760882dfcac1a0561cf0f1527ce447764ff35870fd883f9a64a58 | /*
* 6. Write a program that enters the coefficients a, b and c
* of a quadratic equation -> a*x2 + b*x + c = 0 and calculates
* and prints its real roots. Note that quadratic equations may
* have 0, 1 or 2 real roots.
*/
using System;
using System.Linq;
class QuadraticEquation
{
static void Main()
{
... | C# | Programming with C#/1. C# Fundamentals I/05. Conditional Statements/06. Quadratic equation/QuadraticEquation.cs | Psykepro/Telerik-Academy | mit | 1,346 | 44 | codeparrot/github-code |
74905bc6aefef72024fcf72bacf934139bc0e32875ea157b7d2cb5bec23c0b53 | // (C) Copyright Gennadiy Rozental 2005-2007.
// Use, modification, and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File ... | C++ | vegastrike/boost/1_35/boost/test/utils/runtime/cla/modifier.hpp | Ezeer/VegaStrike_win32FR | mit | 2,782 | 70 | codeparrot/github-code |
8dd5e27b6b787d57f0119d0aa2806daf6e398c1e4274958555ffcb3b69ba4306 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2012 Torus Knot Software Ltd
Also see acknowledgements in Readme.html
You may use this sample... | C | ogre/ogre_src_v1-8-1/Samples/DeferredShading/include/SharedData.h | jjenki11/blaze-chem-rendering | mit | 1,191 | 57 | codeparrot/github-code |
a3d7b5dd5ed37031dc1f81a5c24f9a92e06c93b2adac2252e4836577588859e6 | /* im_mask2vips
*
* Author: J.Cupitt
* Written on: 6/6/94
* Modified on:
* 7/10/94 JC
* - new IM_ARRAY()
* 1/2/10
* - gtkdoc
*/
/*
This file is part of VIPS.
VIPS is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published... | C | src/parsec/vips/src/conversion/im_mask2vips.c | tudinfse/fex | mit | 2,185 | 107 | codeparrot/github-code |
b99b800df1f7ba8a45b2c06be9405b7fe872d47f989aa0794e39d5ea7db3070b | /*
* Copyright (C) 1999 - 2004 Tomasz Kojm <tkojm@clamav.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... | C | include/llvm/projects/test-suite/MultiSource/Applications/ClamAV/clamscan_others.c | ensemblr/llvm-project-boilerplate | mit | 3,159 | 146 | codeparrot/github-code |
b3823564bcab85e716010480023a9fe69462c8ad5bd5aa0eca9496669ac87249 | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace Fs.UI.Winform.Controls
{
public class EventTabPage : TabPage
{
public delegate bool PageEvtHandler();
public PageEvtHandler TabOnClose;
public bool AllowClose = true;
protected TabControl vParent;
publ... | C# | History/Samples/WPF/Wpf3D/Fs/UI/Winform/Controls/EventTabPage.cs | mind0n/hive | mit | 1,046 | 53 | codeparrot/github-code |
1f2bf63bdfd939d88c115b091c936a609b9e594304951ff826030ca635f721b4 | using System.Collections.Generic;
using System.Linq;
using DotSpatial.Extensions;
using NuGet;
namespace DotSpatial.Plugins.ExtensionManager
{
public class GetPackage
{
private readonly Packages packages;
public GetPackage(Packages packageHelper)
{
packages = ... | C# | Source/DotSpatial.Plugins.ExtensionManager/GetPackage.cs | swsglobal/DotSpatial | mit | 1,098 | 32 | codeparrot/github-code |
0e7a731b23dce9f41f638cc85e2c381a40e58037bb3cb764f18d41f1ddf8c41c | /*
* Copyright (c) 2006-2017 DMDirc Developers
*
* 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, mer... | Java | src/test/java/com/dmdirc/ui/core/about/LicensedComponentTest.java | DMDirc/DMDirc | mit | 1,831 | 47 | codeparrot/github-code |
cdebcf8f142be326e23fc269c4ed9969e198f8f8cd056403a82b5d61ee57d514 | #ifndef COLOR_H
#define COLOR_H
#include <cmath>
namespace color {
// apply sRGB non-linearity to value
static inline float srgbcurve(float f) {
//if (f < 0.f) f = 0.f;
//if (f > 1.f) f = 1.f;
const float a = 0.055f;
if (f <= 0.0031308f) return 12.92f*f;
else return (1.f + a)*powf(f, 1.... | C | include/resample/color.h | liaojing/videomorphing | mit | 2,815 | 95 | codeparrot/github-code |
30bf8ef1dcd2c3975413d3c8c6f69e858e802289a7c2a34d7cb95d4cffb353d7 | // Copyright (c) 1998, 2008 Per M.A. Bothner.
// This is free software; for terms and warranty disclaimer see ./COPYING.
package gnu.bytecode;
public class InnerClassesAttr extends Attribute
{
/** Number of entries. */
int count;
short[] data;
/** Add a new InnerClassesAttr to a ClassType. */
public Inne... | Java | src/main/java/gnu/bytecode/InnerClassesAttr.java | Darkyenus/SBTHotswap | mit | 5,384 | 173 | codeparrot/github-code |
d63b5e38138bf7fc6f47c7d8125c4b2d9808d3033dd36af3c018fc5d9f747e86 | /*********************************************************************
*
* About Box for MPFS21
*
*********************************************************************
* FileName: AboutBox.cs
* Dependencies: Microsoft .NET Framework 2.0
* Processor: x86
* Complier: Microsoft Visual C#... | C# | libs/Microchip/TCPIP Stack/Utilities/Source/MPFS21/MPFS21/AboutBox.cs | kareen2707/TFG | mit | 5,142 | 143 | codeparrot/github-code |
0ca04c8227aafccd24f3ce524cdb78f72e4a3f53fe749c1b4f7c56434af3b546 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using Umbraco.Core;
using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Web.Models
{
/// <summary>
/// Provide an abstract base class for <c>IPublishedContent</c> implementations.
/// </summary>
/// <remarks>This base ... | C# | src/Umbraco.Web/Models/PublishedContentBase.cs | tcmorris/Umbraco-CMS | mit | 3,260 | 115 | codeparrot/github-code |
5c45f669410866845cc9c1e75a681852d4996f876866207d6e5cf011de95fad2 | #!/bin/bash
FN="hu6800subacdf_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.10/data/annotation/src/contrib/hu6800subacdf_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/hu6800subacdf_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-hu6800subacdf/bioconductor-hu6800subacdf_2.... | Shell | recipes/bioconductor-hu6800subacdf/post-link.sh | Luobiny/bioconda-recipes | mit | 1,438 | 48 | codeparrot/github-code |
303356c737f4c8bc8b8c23b9279c0a377b460e92cdaf878160b991132f477a1b | using System;
using System.Diagnostics;
using System.Text;
using i16 = System.Int16;
using u8 = System.Byte;
using u16 = System.UInt16;
namespace Community.CsharpSqlite
{
using sqlite3_value = Sqlite3.Mem;
public partial class Sqlite3
{
/*
** 2005 May 23
**
** The author disclaims copyright to ... | C# | GAPPSF/Community.CsharpSqlite/callback_c.cs | RH-Code/GAPP | mit | 19,529 | 561 | codeparrot/github-code |
6500814da8c0164dc1e3daa770e9bc2afb4be4488770709aa566e19f18bbcb98 | /*************************************************************************/
/* register_server_types.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | C++ | servers/register_server_types.cpp | n-pigeon/godot | mit | 8,233 | 181 | codeparrot/github-code |
d0ed5bf43fb5cec5300ba7debce91a954198992002fe2aeaea9dd997bc38a3b0 | Ext.require('Ext.chart.*');
Ext.require(['Ext.layout.container.Fit', 'Ext.window.MessageBox']);
Ext.onReady(function () {
store1.loadData(generateData(6, 20));
var donut = false;
var chart = Ext.create('Ext.chart.Chart', {
xtype: 'chart',
animate: true,
store: store1,
... | JavaScript | wsgi/container/pkgs/sencha/static/ext-4.2.2.1144/examples/charts/Pie.js | rch/flask-openshift | mit | 2,560 | 87 | codeparrot/github-code |
3d86b57953928bdfc8dbb6b0bbbab8ee2dc82653b73753adfd0bb482de8618a1 | """Example for exporting ResNet50 model to ONNX graph.
$ pwd
/path/to/onnx-chainer
$ python examples/resnet50/export.py -I target.jpg -O onnx_model
'model.onnx' will be output under 'onnx_model' directory.
"""
import argparse
import os
import chainer.cuda
import chainercv.links as C
from chainercv.transforms i... | Python | onnx_chainer/examples/resnet50/export.py | pfnet/chainer | mit | 2,402 | 71 | codeparrot/github-code |
ca1ee3811871c133e09e0e4bea0c5e0b9ef4db3b7fa7ac48ad26b0df912b8c3e | /*
* Copyright (C) 2009 Joel Sutherland
* Licenced under the MIT license
* http://www.newmediacampaigns.com/page/jquery-flickr-plugin
*
* Available tags for templates:
* title, link, date_taken, description, published, author, author_id, tags, image*
*/
(function($) {
$.fn.jflickrfeed = function(settings, callback) {
... | JavaScript | Cik.MagazineWeb.WebApp/Content/andia-agency/assets/js/jflickrfeed.js | TRex22/magazine-website-mvc-5 | mit | 2,331 | 83 | codeparrot/github-code |
5696bbe4002aba839871f4880fd66b389540dafa2ba627ba47207e29a40f55e4 | # -*- coding: latin-1 -*-
#retriever
"""Retriever script for direct download of vertnet-amphibians data"""
import os
from builtins import str
from pkg_resources import parse_version
from retriever.lib.models import Table
from retriever.lib.templates import Script
try:
from retriever.lib.defaults import VERSION
... | Python | scripts/vertnet_amphibians.py | henrykironde/deletedret | mit | 10,575 | 253 | codeparrot/github-code |
b83a7f8de5b7488e8ba36c1c78d6aa50d4befa64dbb3d61b64d6282e708c2361 | #!/usr/bin/env node
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use,... | JavaScript | packages/ringpop/benchmarks/convergence-time/scenario-runner.js | esatterwhite/skyring | mit | 6,422 | 193 | codeparrot/github-code |
5776f10e23647e3d6a6797b339770dbe96be092f95ce924d3cad5e416e77f178 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>is_deallocate_trivial</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="... | HTML | deps/boost_1_77_0/libs/json/doc/html/json/ref/boost__json__is_deallocate_trivial.html | davehorton/drachtio-server | mit | 9,586 | 148 | codeparrot/github-code |
76376cde60e120b71f50ee1f666b4ddf1290eaa654d4181bd8836f724441242d | using System;
using System.ComponentModel.Composition;
using System.Reactive.Linq;
using GitHub.Authentication;
using GitHub.Exports;
using GitHub.Models;
using ReactiveUI;
namespace GitHub.ViewModels
{
[ExportViewModel(ViewType = UIViewType.Login)]
[PartCreationPolicy(CreationPolicy.NonShared)]
public cl... | C# | src/GitHub.App/ViewModels/LoginControlViewModel.cs | naveensrinivasan/VisualStudio | mit | 3,384 | 100 | codeparrot/github-code |
b41428613c5cb0601e7997c77b562fe555fb8cdc80adc472f6cf3d54dea36c65 | <?php
/*
* This file is part of the Imagine package.
*
* (c) Bulat Shakirzyanov <mallluhuct@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Imagine\Filter\Advanced;
use Imagine\Exception\InvalidArgumentExcep... | PHP | web/libraries/imagine/Filter/Advanced/OnPixelBased.php | saysa/vyperS | mit | 1,439 | 55 | codeparrot/github-code |
f9b4bcb7b9ebfd7955dd01c310fc962eedc1bd595548d598b98deb3b88323a2a | /* semaphore.h
*
* Copyright 2012 Christopher Anderson <chris@nullcode.org>
* 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
*
* Unles... | C | include/kernel/semaphore.h | ErikCorryGoogle/lk | mit | 1,354 | 50 | codeparrot/github-code |
159cff22001821c62e29e7c24abd70294262541a9627e4e4a00d63aa094d1086 | module Whenever
class JobList
attr_reader :roles
def initialize(options)
@jobs, @env, @set_variables, @pre_set_variables = {}, {}, {}, {}
if options.is_a? String
options = { :string => options }
end
pre_set(options[:set])
@roles = options[:roles] || []
setup_fi... | Ruby | lib/whenever/job_list.rb | attilahorvath/whenever | mit | 5,414 | 186 | codeparrot/github-code |
febe29e40484de0cd823b0640fe726ce2125ae2014d5e2d333a560e9ebc54fa7 | function OnLoad() {
var options = {
sourceLanguage:
google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage:
[google.elements.transliteration.LanguageCode.TAMIL],
shortcutKey: 'ctrl+g',
transliterationEnabled: true
};
var con... | JavaScript | emis/static/js/autotranslate.js | tnemis/staging-server | mit | 1,285 | 34 | codeparrot/github-code |
7f4c00bd34421c196580154ec5d3507821a9a6a2bf209eb8846d521714e89b0a | #include "utility/w5100.h"
#include "utility/socket.h"
static uint16_t local_port;
/**
* @brief This Socket function initialize the channel in perticular mode, and set the port and wait for W5100 done it.
* @return 1 for success else 0.
*/
uint8_t socket(SOCKET s, uint8_t protocol, uint16_t port, uint8_t flag)
{
... | C++ | libraries/Ethernet/src/utility/socket.cpp | arduino-org/brackets-arduino | mit | 12,792 | 558 | codeparrot/github-code |
d0991f9af33047afab1f48dafa379abe315a44f8c0f7a3a97420776ddab67a85 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using GRA.Domain.Service;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.Filters;
namespace GRA.Controllers.Filter
{
public class EventUrlFilter : Attribute, IAsyncActionFilter
{
... | C# | src/GRA.Controllers/Filter/EventUrlFilter.cs | haraldnagel/greatreadingadventure | mit | 1,267 | 35 | codeparrot/github-code |
b2176300da56ba2717dd05d96ee48bbaad6ca9bccec7e1ba3469b07639f1155e | /*
* Copyright (c) 2014, Oculus VR, 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.
*
*/
#ifndef _... | C | Sharing/Src/External/RakNet-4.081/src/Source/SignaledEvent.h | joevdh/HoloToolkit | mit | 1,165 | 72 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.