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 |
|---|---|---|---|---|---|---|---|---|
54df89f0aa3437196f3a0cdc8a13bd53c5168097b9e9a02f1dfa342dcb59c9b2 | /**
* Copyright 2014 Netflix, Inc.
*
* 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 i... | Java | src/test/java/rx/ThrottleLastTests.java | tilal6991/RxJava | apache-2.0 | 2,100 | 63 | codeparrot/github-code |
d94ca5cb127448e87952286afd5145202b5ee45a98597a712d6bdce6f33b45b6 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | Java | JavaSource/org/unitime/timetable/webutil/SchedulingSubpartTableBuilder.java | rafati/unitime | apache-2.0 | 22,240 | 499 | codeparrot/github-code |
b49d52977a208ef9824e05d9806c60464410bf5b50bec1de9459efb1403d90b8 | /*
* Copyright 2017 The OpenYOLO 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 appl... | Java | protocol/java/org/openyolo/protocol/TokenRequestInfo.java | agilebits/OpenYOLO-Android | apache-2.0 | 7,440 | 206 | codeparrot/github-code |
47575f09b4d6d44d8d93ede6abfbb957547d75772b3ffe32f8a9ca9cfc6b9681 | """Demo platform that has a couple of fake sensors."""
from __future__ import annotations
from typing import Any
from homeassistant.components.sensor import STATE_CLASS_MEASUREMENT, SensorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
ATTR_BATTERY_LEVEL,
CONCENTR... | Python | homeassistant/components/demo/sensor.py | sander76/home-assistant | apache-2.0 | 3,738 | 135 | codeparrot/github-code |
6ddc75ffdc4f81b2b2dae5fa09b4a2fcbc81c9e95a9fb6f5fb0110bd4251875e | /*
* 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 ... | Java | geode-core/src/main/java/org/apache/geode/cache/client/internal/ProxyCache.java | davebarnes97/geode | apache-2.0 | 7,883 | 237 | codeparrot/github-code |
24364b9aad485a503eb318bd2cae4077ce9b2ff914fb0c74cb499b8e815bbe3d | package org.camunda.bpm.engine.rest.util.container;
import org.apache.cxf.endpoint.Server;
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
import javax.ws.rs.Path;
import javax.ws.rs.core.Application;
import javax.ws.rs.ext.Provider;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.... | Java | engine-rest/engine-rest/src/test/java-cxf/org/camunda/bpm/engine/rest/util/container/CXFServerBootstrap.java | AlexMinsk/camunda-bpm-platform | apache-2.0 | 2,929 | 93 | codeparrot/github-code |
14a75614d986719be2c611b8696539755cd06e01abd4fbf91d0c9cb0a23df47f | /*
* 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 | gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/util/DependencyGrabberTest.java | dalaro/incubator-tinkerpop | apache-2.0 | 3,818 | 106 | codeparrot/github-code |
0460b29bbfd001d09974e903716a9a8318888a2ee054c3d7ea4b78d3a55f429f | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.streams.ui.impl;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.S... | Java | plugins/stream-debugger/src/com/intellij/debugger/streams/ui/impl/TraceTreeCellRenderer.java | ThiagoGarciaAlves/intellij-community | apache-2.0 | 7,451 | 220 | codeparrot/github-code |
3172ad1b86c68ad1a966bdea2d13e77de736dbf10307694ff31fffcd037fb62b | /*
* 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 | phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java | mbrukman/phoenix | apache-2.0 | 71,977 | 1,420 | codeparrot/github-code |
77c0444214fb54d8e705da3fba035d7381f6108d68010a9630c3dba75764d84f | /**
* @requires multirow-row-manager
* javelin-install
* javelin-util
* javelin-dom
* javelin-stratcom
* javelin-json
* phabricator-prefab
* @provides herald-rule-editor
* @javelin
*/
JX.install('HeraldRuleEditor', {
construct : function(config) {... | JavaScript | webroot/rsrc/js/application/herald/HeraldRuleEditor.js | kanarip/phabricator | apache-2.0 | 12,246 | 424 | codeparrot/github-code |
1351378f4e68efeddb7aa46bb22199fb8c27bc77d0d1c1e6fa3c90d6604517b8 | // Copyright 2013 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.
#ifndef V8_ARM64_CODEGEN_ARM64_H_
#define V8_ARM64_CODEGEN_ARM64_H_
#include "src/ast.h"
#include "src/macro-assembler.h"
namespace v8 {
namespace int... | C | v8_4_8/src/arm64/codegen-arm64.h | weolar/miniblink49 | apache-2.0 | 1,499 | 50 | codeparrot/github-code |
3ffc56d25da07bbc494f7932e7c0f50435c6a09ff14fa14082f61a983bf43150 | // Copyright 2011 The Closure Library 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 requ... | JavaScript | source/core/js/libs/closure-library/closure/goog/ui/editor/equationeditordialog.js | psevestre/video-player-sample | apache-2.0 | 3,757 | 124 | codeparrot/github-code |
2874f5d2082f4b74a7d12169f5b6e987dfda18a931c831886f44ae0207cc169c | /* 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
* distributed... | Java | engine/src/test/java/org/camunda/bpm/engine/test/api/authorization/history/HistoricExternalTaskLogAuthorizationTest.java | AlexMinsk/camunda-bpm-platform | apache-2.0 | 8,825 | 252 | codeparrot/github-code |
4d652fb85bcfc0685dd6e0acd639aa1c6fc9191cc7f2f85da19c070018e4903f | /*
* Copyright 2016 ThoughtWorks, Inc.
*
* 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 agr... | Java | domain/src/com/thoughtworks/go/domain/materials/Modifications.java | stephen-murby/gocd | apache-2.0 | 6,681 | 171 | codeparrot/github-code |
b168066dcd0bd02a8a4858b32499b94687ccc50e90e4240f0c81c89bcdb450a6 | /**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat licenses this file to you 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 r... | Java | gateway/gateway-model/src/main/java/io/fabric8/gateway/loadbalancer/RandomLoadBalancer.java | jludvice/fabric8 | apache-2.0 | 1,297 | 43 | codeparrot/github-code |
50f2f281b8cca4cbe11e616639d403c05c90891f85dc1162e663737b3c0776a6 | #
# Author:: Steven Danna (<steve@chef.io>)
# Copyright:: Copyright 2012-2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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
#
# ... | Ruby | lib/chef/knife/osc_user_create.rb | natewalck/chef | apache-2.0 | 2,748 | 98 | codeparrot/github-code |
a04e3c4f53ac6d47d146d3a2a6a5e43d904cfd30f278f95ce3362c336f65af5d | /**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat licenses this file to you 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 r... | Java | fabric/fabric-boot-commands/src/main/java/io/fabric8/boot/commands/support/ResolverCompleter.java | jludvice/fabric8 | apache-2.0 | 2,024 | 61 | codeparrot/github-code |
0ca9ef3121f27d1a1ce13d4981f3113b24f5cec934b0a70496ca2fe29346ab92 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Composition;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.GenerateMember.GenerateDef... | C# | src/Features/Core/Portable/GenerateDefaultConstructors/GenerateDefaultConstructorsCodeRefactoringProvider.cs | yeaicc/roslyn | apache-2.0 | 2,434 | 50 | codeparrot/github-code |
4ffaa4e0bafaa3654c38d9a38d52f822611e9b42e6e2549f8448da181e1d98a3 | //===- MinGW.cpp ----------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C++ | COFF/MinGW.cpp | llvm-mirror/lld | apache-2.0 | 4,764 | 171 | codeparrot/github-code |
5b4ec1c70c5640d48efb264bca092fcf799986fb2f12c6c6d4f32f325c2ae393 | # Copyright 2011 OpenStack Foundation.
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance w... | Python | cloudbaseinit/openstack/common/log.py | CropCircleSys/bsd-cloudinit | apache-2.0 | 26,597 | 719 | codeparrot/github-code |
58e520fbfaf89bc477431cd35a88f00f85b623e44cc05273d1f238e8b7264369 | /*
* 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/unit/org/apache/cassandra/cql3/validation/entities/UserTypesTest.java | mourao666/cassandra-sim | apache-2.0 | 20,162 | 454 | codeparrot/github-code |
77e78bf66386cfd283bd7d5b738080ecb6c1ba36116261768ae87b2ce6f4797d | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#ifndef SRC_BGP_BGP_SERVER_H_
#define SRC_BGP_BGP_SERVER_H_
#include <tbb/spin_rw_mutex.h>
#include <boost/asio/ip/tcp.hpp>
#include <boost/dynamic_bitset.hpp>
#include <boost/scoped_ptr.hpp>
#include <map>
#include <set>
#include <string>
#inc... | C | src/bgp/bgp_server.h | vpramo/contrail-controller | apache-2.0 | 8,725 | 252 | codeparrot/github-code |
012ab2c686a935325133cc2f33956cf356af1749c7fe291c66759b6dc6f8c4c6 | package org.camunda.bpm.demo.orderconfirmation.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import javax.validation.constraints.NotNull;
import javax.validati... | Java | showcases/order-confirmation-rules/src/main/java/org/camunda/bpm/demo/orderconfirmation/model/Customer.java | tobiasschaefer/camunda-consulting | apache-2.0 | 1,234 | 63 | codeparrot/github-code |
5c1d751138b5d137f7fe0e594f74215f156f62ea803dca2eacfd27a90d645e0a | /*
* Copyright (C) 2014 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 app... | Java | packages/SystemUI/src/com/android/systemui/statusbar/phone/SystemUIDialog.java | Ant-Droid/android_frameworks_base_OLD | apache-2.0 | 2,269 | 66 | codeparrot/github-code |
e000e94156fac02a10364e12269b3c0491056d3621697ebc3e766434d3c4949f | /*
* 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 | src/org/apache/pig/newplan/logical/relational/LOForEach.java | internetarchive/pig | apache-2.0 | 5,656 | 151 | codeparrot/github-code |
b482fcd7355f9ba99011dc9b54ff25cd11ff647daf0a9679b67434d57a8f36ff | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.autoscaling.action;
import org.elasticsearch... | Java | x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/action/GetAutoscalingDecisionAction.java | gingerwizard/elasticsearch | apache-2.0 | 4,014 | 122 | codeparrot/github-code |
3d9ce93091b68ab7e5c0111fe82b2a9bfef2ead86e8ef6175d71f173808f3402 | /**
* 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 | core/src/main/scala/kafka/admin/LeaderElectionCommand.scala | guozhangwang/kafka | apache-2.0 | 11,692 | 290 | codeparrot/github-code |
17b337c7c42d788b4d34b1218cdcf824f2d405ab21bf8f004926e07bd965d721 | #!/bin/bash
#test /api/job/{id}/executions
DIR=$(cd `dirname $0` && pwd)
source $DIR/include.sh
###
# setup: create a new job and acquire the ID
###
# job exec
args="echo testing /job/ID/executions result"
project="test"
#escape the string for xml
xmlargs=$($XMLSTARLET esc "$args")
xmlproj=$($XMLSTARLET esc "$pr... | Shell | test/api/test-job-executions.sh | tjordanchat/rundeck | apache-2.0 | 15,011 | 594 | codeparrot/github-code |
4b764568256a9241834782b3ce92ea40a24dd9679da6fc2f49631f058719b8d9 | // Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-%typedarray%.prototype.map
description: >
Does not interact over non-integer properties
info: |
22.2.3.19 %TypedArray%.prototype.map ( callbackfn [ , thisArg ] )... | JavaScript | Jint.Tests.Test262/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-no-interaction-over-non-integer-properties.js | sebastienros/jint | bsd-2-clause | 1,120 | 42 | codeparrot/github-code |
f009b51c962958402345587a1086ddbb40dca3447deb299026dc146e1932a0dd | 'use strict';
angular.module('ontimeApp')
.directive('hasAnyAuthority', ['Principal', function (Principal) {
return {
restrict: 'A',
link: function (scope, element, attrs) {
var setVisible = function () {
element.removeClass('hidden');
... | JavaScript | oracle/src/main/webapp/scripts/components/auth/authority.directive.js | sandor-balazs/nosql-java | bsd-2-clause | 2,339 | 68 | codeparrot/github-code |
a01218bedbe7825397af6c689fe2ab86e26bef4e0f015660057a46459a7563b1 | class Camlp5TransitionalModeRequirement < Requirement
fatal true
satisfy(:build_env => false) { !Tab.for_name("camlp5").include?("strict") }
def message; <<-EOS.undent
camlp5 must be compiled in transitional mode (instead of --strict mode):
brew install camlp5
EOS
end
end
class Coq < Formula
... | Ruby | Library/Formula/coq.rb | tomas/homebrew | bsd-2-clause | 1,970 | 58 | codeparrot/github-code |
0cb70600d0a34733c167eba63992b6ef1c003b587524fd0ecd684712f9f0ac3a | /* C implementations of useful functions.
* Written by Tom Minka (unless otherwise noted).
*/
#define _USE_MATH_DEFINES 1
#include <math.h>
#include <stdlib.h>
#include <float.h>
#include "util.h"
#include "mex.h"
#ifdef _MSC_VER
#define finite _finite
#define isnan _isnan
#endif
#ifndef M_PI
#define M_PI 3.... | C | tools_intern/toolboxes/lightspeed/util.c | iqbalu/3D_Pose_Estimation_CVPR2016 | bsd-3-clause | 10,685 | 458 | codeparrot/github-code |
449e0df64b32a11c070db7a3620835863e3477fb6671e0030b33d5e868f68158 | <!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<title>Custom Dispatch Logic - Rubinius</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content='en' http-equiv='content-language'>
<meta content='Rubinius is an implementation of the Ruby program... | HTML | web/_site/doc/en/virtual-machine/custom-dispatch-logic/index.html | whiteley/rbx-deb | bsd-3-clause | 6,399 | 224 | codeparrot/github-code |
1d4a0356aecdac2d19ae6fc16573eb3e992f2cca05ac29ae0eb878fb0f60ee14 | #!/usr/bin/php
<?php
// PSR0 autoloader
function autoload($className) {
$className = ltrim($className, '\\');
$fileName = '';
$namespace = '';
if ($lastNsPos = strripos($className, '\\')) {
$namespace = substr($className, 0, $lastNsPos);
$className = substr($className, $lastNsPos + 1);... | PHP | support/unittester/run-saffire-tests.php | jaytaph/saffire | bsd-3-clause | 1,212 | 43 | codeparrot/github-code |
ef016fc70016c9c0fdd11c5c3a470627b992dcc005d8b0d9468787295de82ab8 | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** following c... | C | OOVisualization/src/statements/VIfStatement.h | lukedirtwalker/Envision | bsd-3-clause | 3,510 | 85 | codeparrot/github-code |
1d84e90dd46e702151d597669584377fc094c42ae2dc3543b9d5aff4ebf2e337 | -- | This module handles loading data from disk.
module HLearn.Data.LoadData
where
import SubHask
import SubHask.Algebra.Array
import SubHask.Algebra.Container
import SubHask.Algebra.Parallel
import SubHask.Compatibility.ByteString
import SubHask.Compatibility.Cassava
import SubHask.Compatibility.Containers
import... | Haskell | src/HLearn/Data/LoadData.hs | mikeizbicki/HLearn | bsd-3-clause | 12,398 | 352 | codeparrot/github-code |
0d08a5115f7d07be333c557a88825eb79014ce9b63e2394923551443d0e781bd | package edu.gemini.spModel.obscomp;
import edu.gemini.pot.sp.SPComponentType;
import edu.gemini.spModel.data.AbstractDataObject;
import edu.gemini.spModel.pio.ParamSet;
import edu.gemini.spModel.pio.PioFactory;
import java.util.*;
/**
* The SPDataOnly is defined to be a "hidden" container of generic
* information,... | Java | bundle/edu.gemini.pot/src/main/java/edu/gemini/spModel/obscomp/SPDataOnly.java | arturog8m/ocs | bsd-3-clause | 2,651 | 105 | codeparrot/github-code |
47b44ba13ca9122727accb41b5f181be4680e9912a5f35f6416d705be5983d95 | // 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 REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_H_
#define REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_H_
#include <memory>
#include <string>
#inclu... | C | remoting/host/security_key/gnubby_extension.h | axinging/chromium-crosswalk | bsd-3-clause | 970 | 35 | codeparrot/github-code |
930048afa7b34ff910ae19bd09dfe2e8268de222cd00f26d5f3b10126942341c | =pod
=head1 NAME
PKCS12_add1_attr_by_NID, PKCS12_add1_attr_by_txt - Add an attribute to a PKCS#12
safeBag structure
=head1 SYNOPSIS
#include <openssl/pkcs12.h>
int PKCS12_add1_attr_by_NID(PKCS12_SAFEBAG *bag, int nid, int type,
const unsigned char *bytes, int len);
int PKCS12_add1_a... | Perl | openssl/doc/man3/PKCS12_add1_attr_by_NID.pod | jens-maus/amissl | bsd-3-clause | 1,511 | 53 | codeparrot/github-code |
8b90cfbaba0c23908b8bddb399d0e2151bb446860bedddc08899275c934f4392 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.authority.rest;
import org.apache.commons.httpclient.HttpClient;
import org.apache.... | Java | dspace-api/src/main/java/org/dspace/authority/rest/RESTConnector.java | jamie-dryad/dryad-repo | bsd-3-clause | 2,613 | 92 | codeparrot/github-code |
c0e6d5a354589b0ae3ad7858363a846597e9ab773f7289d1b3babe0a90f7aa1d | #pragma once
#include <string>
#include <mutex>
#include <strads/ds/spmat.hpp>
#include <strads/include/cas_array.hpp>
#include <strads/sysprotobuf/strads.pb.hpp>
//enum matrix_type {cm_map, cm_vec, rm_map, rm_vec, dense2d }; // declared in strads.pb.hpp / sysprobuf directory
// cm_map : colum major sparse matri... | C++ | src/strads/src/strads/ds/dshard.hpp | daiwei89/wdai_petuum_public | bsd-3-clause | 1,814 | 48 | codeparrot/github-code |
2788a43b2ff92f2d074551566c922e7d206c7c7b00bf286c05cbd23f615bb8cd | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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
// ... | C# | src/NServiceKit.ServiceInterface/FluentValidation/Validators/NotEmptyValidator.cs | nataren/NServiceKit | bsd-3-clause | 2,917 | 79 | codeparrot/github-code |
2370393856b0785d2b51c6065766f2379d7ee2d00e96e0c1c19c14143c9244dd | // 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/android/compositor/scene_layer/tab_strip_scene_layer.h"
#include "base/android/jni_android.h"
#include "chrome/browser/android/c... | C++ | chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.cc | TheTypoMaster/chromium-crosswalk | bsd-3-clause | 8,865 | 197 | codeparrot/github-code |
4e2922bd412555a4e65eb953ad77d4c89cd08c6af3acff98318c9261aeaa8fa9 | /**
* @file rs_model.hpp
* @author Ryan Curtin
*
* This is a model for range search. It is useful in that it provides an easy
* way to serialize a model, abstracts away the different types of trees, and
* also reflects the RangeSearch API and automatically directs to the right
* tree types.
*/
#ifndef __MLPACK... | C++ | src/mlpack/methods/range_search/rs_model.hpp | stereomatchingkiss/mlpack | bsd-3-clause | 5,395 | 172 | codeparrot/github-code |
ac2f065e3fbdbe7ae7fd4d25475b8288838c56358f6ae378c64b2a94ee6f5f5f | from .enums import IncrementalSearchDirection
from .filters import SimpleFilter, Never
__all__ = (
'SearchState',
)
class SearchState(object):
"""
A search 'query'.
"""
__slots__ = ('text', 'direction', 'ignore_case')
def __init__(self, text='', direction=IncrementalSearchDirection.FORWARD, ... | Python | prompt_toolkit/search_state.py | ddalex/python-prompt-toolkit | bsd-3-clause | 1,105 | 37 | codeparrot/github-code |
78fd479cd1fc0246be70ef0ff8fb6436e1bb5a3135f7fab4a608c852aba050d9 | # 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.
import cStringIO
import json
import logging
import unittest
from telemetry.core import util
from telemetry.timeline import model
from telemetry.timeline imp... | Python | tools/telemetry/telemetry/core/backends/chrome/tracing_backend_unittest.py | ondra-novak/chromium.src | bsd-3-clause | 2,594 | 88 | codeparrot/github-code |
56acee88330967b1dd4532e9b36e73681805b10eb58b0cb916238a4f3fc48538 | /*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "blis1.h"
void bl1_strmvsx( uplo1_... | C | src/base/flamec/blis/2/bl1_trmvsx.c | dxander/libflame | bsd-3-clause | 6,727 | 245 | codeparrot/github-code |
36a3958a71158c2ff668dc42d7c93d10eb5962b8e9fe13e6a2529d2b5b95dc4d | #ifndef ALIANALYSISTASKCHECKTRACKS
#define ALIANALYSISTASKCHECKTRACKS
/* Copyright(c) 1998-2012, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
//*************************************************************************
// Class AliAnalysi... | C | PWGPP/global/AliAnalysisTaskCheckAODTracks.h | yowatana/AliPhysics | bsd-3-clause | 9,332 | 192 | codeparrot/github-code |
655d2c9cda9eda2186ac79d3551bf699bd431e8ebe4eeacda61d0a26bab6489f | // Copyright (c) 2011-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.
//
// Copyright (c) ... | C | port/port_posix.h | flabby/rocksdb | bsd-3-clause | 4,628 | 174 | codeparrot/github-code |
3e2816506f259231427b85249ef433a75738f38c0c93f862d53b2620d64d8675 | /*****************************************************************************
Copyright (c) 2014, Intel Corp.
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 cod... | C | lapack-netlib/LAPACKE/src/lapacke_zhgeqz.c | kortschak/OpenBLAS | bsd-3-clause | 4,822 | 110 | codeparrot/github-code |
de901dfff82adcaace79f80633c7dae56f863cca6d8b4abc0ca3f4239dca3900 | // Copyright 2017 The SwiftShader 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 b... | C | third_party/swiftshader/src/OpenGL/compiler/preprocessor/DirectiveHandlerBase.h | endlessm/chromium-browser | bsd-3-clause | 1,737 | 52 | codeparrot/github-code |
191306317e1c9e45fc6687780e28f9e6fceea4dc500fa5964f959f35ed2a6a06 | var Point = function(x, y) {
this.x = x || 0;
this.y = y || 0;
};
function clamp(value, optMin, optMax) {
if (optMin !== null) value = Math.max(value, optMin);
if (optMax !== null) value = Math.min(value, optMax);
return value;
}
function degreesToRadians(deg) {
return deg * (Math.PI / 180);
}
function r... | JavaScript | lib/torque/mercator.js | knownasilya/torque | bsd-3-clause | 2,986 | 92 | codeparrot/github-code |
0aa0016908d9ec43718115bde667ce01af89b066bc283681c009c430a04ab3e1 | // 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 "components/gcm_driver/crypto/gcm_encryption_provider.h"
#include <vector>
#include "base/base64.h"
#include "base/bind.h"
#include "base/loggi... | C++ | components/gcm_driver/crypto/gcm_encryption_provider.cc | danakj/chromium | bsd-3-clause | 9,722 | 273 | codeparrot/github-code |
9d7302824ff08e5177e0c01d977d2cd2b673d07d79d4a6f3d9c1aeb15d898845 | """
Multiclass and multilabel classification strategies
===================================================
This module implements multiclass learning algorithms:
- one-vs-the-rest / one-vs-all
- one-vs-one
- error correcting output codes
The estimators provided in this module are meta-estimators: they re... | Python | sklearn/multiclass.py | Vimos/scikit-learn | bsd-3-clause | 28,158 | 763 | codeparrot/github-code |
33f9dea711ea79b56eb9ad5aa7862434c8655ea863f755afbe53cbb0bf0381b1 | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\db\sqlite;
use yii\base\InvalidParamException;
use yii\base\NotSupportedException;
use yii\db\Connection;
use yii\db\Expression;
use yii\db\Query;
/**
... | PHP | framework/db/sqlite/QueryBuilder.php | kartik-v/yii2 | bsd-3-clause | 20,377 | 533 | codeparrot/github-code |
3dbc82d25ec729688aa3ae6c7467795fa134ecd8a7dc7d2df7bade24359784da | // 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 CONTENT_RENDERER_PEPPER_PEPPER_PARENT_CONTEXT_PROVIDER_H_
#define CONTENT_RENDERER_PEPPER_PEPPER_PARENT_CONTEXT_PROVIDER_H_
#include "base/ba... | C | content/renderer/pepper/pepper_parent_context_provider.h | keishi/chromium | bsd-3-clause | 909 | 32 | codeparrot/github-code |
59fd13ff1934c29c46da82cb2a4c1b4875eadfdef01db3f1c51ea890da0b507a | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <F... | C | FBSimulatorControl/Session/FBSimulatorSessionState+Queries.h | huahuasj/FBSimulatorControl | bsd-3-clause | 2,331 | 76 | codeparrot/github-code |
90bab2f854ae9fad6f03ad9d19dab0ebdd1be0ffab5ec527fb547116999c8956 | /***** Vca Distribution Client Example *****/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
******************/
/************************
***** Supporting *****
************************/
#include "Vca_VOneAppMain_.h"
#include "Vca... | C++ | software/src/master/src/vca_sample_distribution_client/vca_sample_distribution_client.cpp | MichaelJCaruso/vision | bsd-3-clause | 5,312 | 225 | codeparrot/github-code |
a4e186b05b19e5c64a5f49f16347d5fb10115cc266592e77580a8c42c3abaad8 | /* $NetBSD: emit2.c,v 1.8 2002/01/21 19:49:52 tv Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
* Copyright (c) 1994, 1995 Jochen Pohl
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... | C | usr.bin/xlint/lint2/emit2.c | jhbsz/OSI-OS | bsd-3-clause | 7,192 | 301 | codeparrot/github-code |
62cdc36130a73e826cf276716f6cb2781a0fb77b2477266a2df8287c4869a215 | // 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 "build/build_config.h"
// Need to include this before most other files because it defines
// IPC_MESSAGE_LOG_ENABLED. We need to use it to d... | C++ | chrome/common/logging_chrome.cc | axinging/chromium-crosswalk | bsd-3-clause | 15,280 | 417 | codeparrot/github-code |
361bcb65591ff0322ff58b3cfbb1b4abe0008eae59c03d31d827027b281e2168 | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | C | VisualizationBase/src/cursor/CursorShapeItem.h | Vaishal-shah/Envision | bsd-3-clause | 3,139 | 75 | codeparrot/github-code |
4ed992f694eef96a8c669f47f8628703a5377c45eeb8f6b64d32fcdaa71b3a10 | /**************************************************************************
Copyright (c) 2007, 2009 Chelsio Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must... | C | sys/dev/cxgb/ulp/tom/cxgb_tom.h | jhbsz/OSI-OS | bsd-3-clause | 8,222 | 281 | codeparrot/github-code |
3439d85eb90c4e44b70fd70616d7ad59a6b64dd3637bdfd7eeb29ffeab4e104f | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/data/webui/history_ui_browsertest.h"
#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include... | C++ | chrome/test/data/webui/history_ui_browsertest.cc | ChromiumWebApps/chromium | bsd-3-clause | 1,987 | 56 | codeparrot/github-code |
42fb463ae5382383ce8ea9c5fc15da66076b3ba78c8621146849fc97d510efa3 | // 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/chromeos/kiosk_mode/kiosk_mode_settings.h"
#include "base/bind.h"
#include "base/message_loop.h"
#include "base/values.h"
#i... | C++ | chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings_unittest.cc | junmin-zhu/chromium-rivertrail | bsd-3-clause | 5,771 | 168 | codeparrot/github-code |
d8165f9e5c5d0b0366ec47fe0e185edec89e04018e0c93fc77999e759592a431 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/hash/md5_constexpr.h"
#include "base/cxx17_backports.h"
#include "base/hash/md5.h"
#include "testing/gtest/include/gtest/gtest.h"
namespa... | C++ | chromium/base/hash/md5_constexpr_unittest.cc | ric2b/Vivaldi-browser | bsd-3-clause | 3,587 | 93 | codeparrot/github-code |
ec73898ab2bf446367eedfeb7bcfa11eafee462ade7a39eacbe5f32f9202eed6 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// TODO actually recognize syntax of TypeScript constructs
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"))... | JavaScript | www/static/hp/js/plugins/codemirror/mode/javascript/javascript.js | lumin824/MoneyWeb | mit | 26,346 | 693 | codeparrot/github-code |
2090ad4b6492ebcf4ab1f19a61e5162c7fe254fc79ff196b4fe7dd65069b3022 | /*
* linux/mm/compaction.c
*
* Memory compaction for the reduction of external fragmentation. Note that
* this heavily depends upon page migration to do all the real heavy
* lifting
*
* Copyright IBM Corp. 2007-2010 Mel Gorman <mel@csn.ul.ie>
*/
#include <linux/swap.h>
#include <linux/migrate.h>
#include <linux... | C | release/src-rt-7.x.main/src/linux/linux-2.6.36/mm/compaction.c | wkritzinger/asuswrt-merlin | gpl-2.0 | 16,602 | 607 | codeparrot/github-code |
4d4082e5a2834fe282fb0deeef16f54740a24c3cd6557535f042fa34d76e51a7 | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 wit... | C# | Microsoft.Research/Contracts/PresentationFramework/Sources/System.Windows.Controls.InkCanvas.cs | Microsoft/CodeContracts | mit | 13,955 | 609 | codeparrot/github-code |
be2932d178eac5f22771eb1ddfe18daed1196dff4e176edcbf7059fff7a1c6df | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.IO;
using System.Diagnostics;
using System.Data.Common;
using Res = System.SR;
namespace System.Dat... | C# | src/System.Data.SqlClient/src/System/Data/SqlTypes/SQLChars.cs | janhenke/corefx | mit | 24,074 | 730 | codeparrot/github-code |
68251b7e39d2c4d0b6fa1e2400caea7a954e24c4e9387eac5ba3176670b2cbfb | <?php
/**
* Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
namespace OC\Files\Stream;
/**
* a stream wrappers for ownCloud's virtual filesystem
*/
class OC {
/**
* @var \OC\Files... | PHP | owncloud-serv/lib/private/files/stream/oc.php | ACOKing/ArcherSys | mit | 2,953 | 138 | codeparrot/github-code |
5ec8e65bdab9578c2f07868b84b5273ec3cf7c8015e12096bf86e2546f81430a | // Ratio of Obese (BMI >= 30) in U.S. Adults, CDC 2008
var data = [
, .187, .198, , .133, .175, .151, , .1, .125, .171, , .172, .133, , .108,
.142, .167, .201, .175, .159, .169, .177, .141, .163, .117, .182, .153, .195,
.189, .134, .163, .133, .151, .145, .13, .139, .169, .164, .175, .135, .152,
.169, , .132, .... | JavaScript | workbench/phyloblast/dendrogram/d3test/d3/examples/cartogram/dorling.js | adebali/adebali.github.io | mit | 2,275 | 81 | codeparrot/github-code |
3e8dc4d9ddba5821dc0eccff3c2330fafa860ef2de843ec2d025b5a11cdf9f08 | package net.sf.jabref.logic.util.io;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.Arrays;
import java.util.List;
import java.util.Op... | Java | src/test/java/net/sf/jabref/logic/util/io/FileUtilTest.java | luizvneto/DC-UFSCar-ES2-201701-Grupo-NichRosaHugoLuizRodr | mit | 11,577 | 310 | codeparrot/github-code |
da036c11c72b753a5d91389460aa6c2c0754e2b7e46f07dc1dcd3d4d31d128ce | /*
* 10. Write a program to calculate n! for each n in the range [1..100].
* Hint: Implement first a method that multiplies a number represented
* as array of digits by given integer number.
*/
using System;
using System.Collections.Generic;
using System.Linq;
class Factorial
{
static void Main()
{
... | C# | Programming with C#/2. C# Fundamentals II/03. Methods/10. Factorial/Factorial.cs | SekulKamberov/Telerik-Academy | mit | 1,484 | 58 | codeparrot/github-code |
511e02d4e93f34552ce7d7a7865c82ddfca5ddc4f2def908a40eaa3cd5285628 | var types = require('../lib/types')
, assert = require('assert')
, inspect = require('util').inspect
test('v@:'
, [ 'v', [ '@', ':' ] ]
, [ 'void', [ 'pointer', 'pointer' ] ]
)
// test types.map()
assert.equal(types.map('r^v'), 'pointer')
assert.equal(types.map('r^^{__CFData}'), 'pointer')
assert.equal(types.... | JavaScript | test/types.js | jerson/NodObjC | mit | 1,014 | 36 | codeparrot/github-code |
510a01e2d6893436c658f22594c4afd12a9e69f5d121d176adda08b44ef13aec | <!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=US-ASCII">
<title>Chapter 36. Boost.Units 1.1.0</title>
<link rel="stylesheet" href="../../doc/src/boostbook.css" type="text/css">
<m... | HTML | original_sources/boost_1_59_0/doc/html/boost_units.html | TyRoXx/cdm | mit | 14,171 | 222 | codeparrot/github-code |
3be8bd19613a9f2573e16fae32ef181dbe3d3ce92e822f26af6020ee2b9dabb1 |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
//... | C++ | src/appleseed/renderer/modeling/object/object.cpp | est77/appleseed | mit | 3,137 | 130 | codeparrot/github-code |
e8e57e92431f86064228f08903721f832bf48a17039fd8a82f00ae18fd6f707e | package org.opencv.android;
import java.io.File;
import java.util.StringTokenizer;
import org.opencv.core.Core;
import org.opencv.engine.OpenCVEngineInterface;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android... | Java | openCVLibrary2411/src/main/java/org/opencv/android/AsyncServiceHelper.java | JeanHany/android_palet | mit | 17,936 | 393 | codeparrot/github-code |
556a3e8d6c333b4f9cf9a8b4d3249ce02448457619427f58c552a1a22f6b788b | module API
module V3
class Snippets < Grape::API
include PaginationParams
before { authenticate! }
resource :snippets do
helpers do
def snippets_for_current_user
SnippetsFinder.new(current_user, author: current_user).execute
end
def public_sni... | Ruby | lib/api/v3/snippets.rb | t-zuehlsdorff/gitlabhq | mit | 5,049 | 139 | codeparrot/github-code |
b30a0a9f39c6a72ada62d46a8f49c36d777e75ee2a069d5fd77eb2893eb9d82c | # -*- coding: utf-8 -*-
u"""
.. module:: utils
"""
from django.contrib.admin.models import LogEntry
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.shortcuts import get_object_or_404
from django.shortcuts import redirect
from django.utils.text import s... | Python | apps/volontulo/utils.py | KrzysztofMadejski/volontulo | mit | 2,267 | 82 | codeparrot/github-code |
42810d5eddaf4a3c03a5b7c054a1cf7d1d2dac7e73e14809a8f16b456f2e4f21 | <?php
namespace DesignPatterns\Structural\FluentInterface;
/**
* class SQL.
*/
class Sql
{
/**
* @var array
*/
protected $fields = array();
/**
* @var array
*/
protected $from = array();
/**
* @var array
*/
protected $where = array();
/**
* adds sele... | PHP | Structural/FluentInterface/Sql.php | aaasayok/DesignPatternsPHP | mit | 1,345 | 81 | codeparrot/github-code |
91a3acf27efe42e7e9f76dd4c13c0dad62e2e641530913672be89a94351be8c7 | package de.neuland.jade4j.util;
import java.util.ArrayList;
import java.util.List;
/**
* Split arguments passed as single String into list of strings, preserve quotes when argument is not simple string constant.
* For example:
* foo('a'),'b' -> [ "foo('a')", "b" ]
*
* @author dusan.zatkovsky, 2/5/15
*/
publi... | Java | src/main/java/de/neuland/jade4j/util/ArgumentSplitter.java | akkinenirajesh/jade4j | mit | 1,988 | 72 | codeparrot/github-code |
da11dcfc0621782913930435f9a0a36fd3288382c370571acebbd1e3c4fb2afb | /* WinUSBNet library
* (C) 2010 Thomas Bleeker (www.madwizard.org)
*
* Licensed under the MIT license, see license.txt or:
* http://www.opensource.org/licenses/mit-license.php
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
... | C# | WinUSBNet/USBNotifier.cs | radhs/winusbnet | mit | 6,437 | 191 | codeparrot/github-code |
442ae450e46e7ee2fbcfceb04ac74534362485548a4abd52e90de067d9ba9ea5 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using Microsoft.VisualStudio.IntegrationTest.Utilities.InProcess;
namespace Microsoft.VisualStudio.I... | C# | src/VisualStudio/IntegrationTest/TestUtilities/OutOfProcess/Shell_OutOfProc.cs | bartdesmet/roslyn | mit | 1,055 | 33 | codeparrot/github-code |
ae8aff228f38fc26408ff71f110bd0689f265647d5e8c1134d5a7e2a960ad6dc | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Deeper Dive into Boost.Asio</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... | HTML | deps/boost/libs/fiber/doc/html/fiber/integration/deeper_dive_into___boost_asio__.html | vslavik/poedit | mit | 48,630 | 439 | codeparrot/github-code |
ccb9915e833d97c0339613e5fcb7f17f42871b8b9e761f3fed7fddb2a311962e | using Newtonsoft.Json;
namespace Telegram.Bot.Types.InlineQueryResults
{
/// <summary>
/// Represents a link to a photo.
/// By default, this photo will be sent by the user with optional caption.
/// Alternatively, you can provide message_text to send it instead of photo.
/// </summary>
public... | C# | src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResultPhoto.cs | Fireblade954/telegram.bot | mit | 1,563 | 49 | codeparrot/github-code |
40988971f77e08f6ac2d81863e5609f71d1f234ca61be721f427e2b639fe087c | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>thread_pool::executor_type::post</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="../../../boost... | HTML | deps/boost/doc/html/boost_asio/reference/thread_pool__executor_type/post.html | nawawi/poedit | mit | 4,670 | 87 | codeparrot/github-code |
6f968b847a0d3ee66f9023160bd713d1f02751ed146bb934c7c88365d7ce2644 | /*============================================================================
* Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
#region Using directives
using System;
using System.Collections;
using System.Collections.Gener... | C# | src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs | bingbing8/PowerShell | mit | 23,821 | 557 | codeparrot/github-code |
4da8ef88489b2c3fbac5a1a109ce3a279567c4c0a6bf4db498b3c88cb927acae | /*
* Copyright © 2009 Intel Corporation
* Copyright © 1988-2004 Keith Packard and Bart Massey.
*
* 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 l... | C | xwayland/hash.c | krezovic/weston | mit | 7,698 | 310 | codeparrot/github-code |
8a57bf174eeacfe394eb68babb51bcaa6b205995d448bbb1f876130abe583c2b | # -*- coding: utf-8 -*-
import os
import re
from .cache_utils import cpickle_cache
from ._current_dir import current_dir
from .design_pattern import singleton, cached_property
@singleton()
class LazyData(object):
@cached_property
def en_us_dict(self):
"""
werid example.
>>> en_us_dic... | Python | etl_utils/lazy_data.py | Luiti/etl_utils | mit | 2,987 | 109 | codeparrot/github-code |
0e2c5dfed5c60825bc38d0a5362048ecd154577151166d368d4ebfda42772625 | <?php
namespace Kirby\Panel\Models;
use C;
use Kirby\Panel\Event;
use Kirby\Panel\Structure;
use Kirby\Panel\Models\File\Menu;
use Kirby\Panel\Models\File\UI;
use Kirby\Panel\Models\Page\Uploader;
class File extends \File {
public function uri($action = null) {
if(empty($action)) {
return parent::uri();... | PHP | public/panel/app/src/panel/models/file.php | youonlyliveonce/24-1 | mit | 6,636 | 285 | codeparrot/github-code |
dc68d03df88e7e361b3a50c716c036c9c62177fb43a7a2015734a1d35df32076 | <html>
<head>
<link rel="Stylesheet" media="screen" href="data/styles.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript" src="../src/jquery.jpath.js"></script>
<script type="text/javascr... | HTML | demo/jquery-jpath.html | yeelliott/jquery-utils | mit | 3,460 | 91 | codeparrot/github-code |
aa5f41bf39fc4597ff2b1f5c1e356b252868d8615b780750c8d1add5a5cb7efb | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/****************************************************************************/
/* gcco... | C++ | src/vm/gccover.cpp | ruben-ayrapetyan/coreclr | mit | 68,064 | 1,809 | codeparrot/github-code |
2507cb724a34df3ef7b8c55cc96cb217aa9c4a76bb371e87685fb97bc3cc9c3e | /*
* Copyright (c) 2017 Intel Corporation
*
* Intel Mobile Internet Devices (MID) based on Intel Atom SoCs have few
* microcontrollers inside to do some auxiliary tasks. One of such
* microcontroller is System Controller Unit (SCU) which, in particular,
* is servicing watchdog and controlling system reset functio... | C | u-boot/arch/x86/lib/scu.c | guileschool/beagleboard | mit | 3,753 | 169 | codeparrot/github-code |
07464db836d615724dbeaaf111d381fae2557f0960dbea20cc9679a3f74e5d39 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
... | C# | src/Features/Core/Portable/CodeRefactorings/AddMissingImports/AbstractAddMissingImportsFeatureService.cs | CyrusNajmabadi/roslyn | mit | 14,145 | 262 | codeparrot/github-code |
91476e08b7493d2ad9664b8d3dd8f114f6b9dffa78cba47a0c11082591b47e2d | //------------------------------------------------------------------------------
// <copyright file="SecureStringHasher.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <owner current="true" primary="true">[....]</owner>
//------------------------------------... | C# | System.Xml/System/Xml/Core/SecureStringHasher.cs | esdrubal/referencesource | mit | 3,807 | 91 | codeparrot/github-code |
39c315cfde9cb726d22c71fe19a5856b1c85177604079941614025bd9ae9617f | 'use strict';
var Transform = require('stream').Transform;
var PassThrough = require('stream').PassThrough;
var staticModule = require('static-module');
var resolve = require('resolve');
var path = require('path');
var stringify = require('js-stringify');
var isTemplateLiteral = require('./utils/is-template-literal.js... | JavaScript | lib/browserify.js | pugjs/react-jade | mit | 6,736 | 197 | codeparrot/github-code |
2f3c90ec9ab377288011107927922449427800ce5c6b4911e61d915f66224d28 | /*jslint node: true */
/*global describe, it, before, beforeEach, after, afterEach */
"use strict";
var assert = require('chai').assert;
var structure = require('../lib/pg-structure.js');
var testDB = require('./util/db.js');
var db;
describe('pg-structure', function () {
afterEach(functi... | JavaScript | test/pg-structure-2.js | egeste/pg-structure | mit | 2,489 | 63 | codeparrot/github-code |
e279e8e9fdf715201ee5b02846cb2b90b8d1cabc140ead104418c59e4807fb02 | /**
* Copyright (c) 2010-2019 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.... | Java | bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/A5_20/A5_20_04.java | theoweiss/openhab2 | epl-1.0 | 8,757 | 269 | codeparrot/github-code |
2680d0667206598640c473aa66e576e7e3dc71ff05311ae79764e4b0b1ad6794 | /**
* Copyright (c) 2010-2018 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | Java | addons/binding/org.openhab.binding.rfxcom.test/src/test/java/org/openhab/binding/rfxcom/internal/messages/RFXComHumidityMessageTest.java | johannrichard/openhab2-addons | epl-1.0 | 1,627 | 43 | codeparrot/github-code |
be39d63727e0d67b1780204120c5adc361cdd830eba50f26a9001d81b9b94d41 | /*
* file_input_raw
*
* See copyright in copyright.h and the accompanying file COPYING
*
*/
#include <dieharder/libdieharder.h>
/*
* This is a wrapper for getting random numbers in RAW (binary integer)
* format from a file. A raw file has no headers -- it is presumed to be
* a pure bit stream. We therefore... | C | libdieharder/rng_file_input_raw.c | azet/dieharder | gpl-2.0 | 7,778 | 251 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.