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 |
|---|---|---|---|---|---|---|---|---|
33d58820e6c4496c1683ddd632c2a11914214bcd3a4f48236aad6b101ad48938 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License, Ve... | Python | Code/Python/Kamaelia/Tools/VideoReframer/EDL.py | sparkslabs/kamaelia | apache-2.0 | 4,771 | 143 | codeparrot/github-code |
d5b128f8145efa9ba61faeb83a9fd1e929779928c017893a7b3b38fcc6a120b6 | from rest_framework import generics, permissions as drf_permissions
from api.base.views import JSONAPIBaseView
from api.base.utils import get_object_or_error
from api.base.filters import ODMFilterMixin
from api.base.pagination import NoMaxPageSizePagination
from api.base import permissions as base_permissions
from api... | Python | api/taxonomies/views.py | rdhyee/osf.io | apache-2.0 | 3,601 | 91 | codeparrot/github-code |
90597bd0f0ccdc014e65cb4a6e17b8b150b4e6d24f323b4f3e4d8ece49929aaf | package com.intellij.internal.validation;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.ModalityState;
import com.intellij.openapi.application.impl.LaterInvocator;
import com.intellij.openapi.progress.ProgressIndicator... | Java | platform/platform-impl/src/com/intellij/internal/validation/MacMessagesTest.java | IllusionRom-deprecated/android_platform_tools_idea | apache-2.0 | 4,009 | 131 | codeparrot/github-code |
bbcb7d16862956081316d50f7d8d6f3afdb8757d2dbc9908bdfe749bef3b6231 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/pinpoint/Pinpoint_EXPORTS.h>
#include <aws/pinpoint/model/SMSChannelResponse.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResu... | C | aws-cpp-sdk-pinpoint/include/aws/pinpoint/model/DeleteSmsChannelResult.h | awslabs/aws-sdk-cpp | apache-2.0 | 1,518 | 58 | codeparrot/github-code |
4935080074aafeddbe50a90c50ccffc32f75047d068b78f7fdd9cae86f58222b | package com.eas.client.queries;
import com.eas.client.DatabasesClient;
import com.eas.client.DatabasesClientWithResource;
import com.eas.client.SqlCompiledQuery;
import com.eas.client.SqlQuery;
import com.eas.client.TestConstants;
import com.eas.client.settings.DbConnectionSettings;
import com.eas.script.Scripts;
impo... | Java | platypus-js-datamodel/src/test/java/com/eas/client/queries/SqlQueryTest.java | altsoft/PlatypusJS | apache-2.0 | 3,838 | 101 | codeparrot/github-code |
c57deaa3d9f82d949502833695bdfb69b52131df2e0032b681401d1f6aaf987e | /*
* drivers/rtc/rtc-vt8500.c
*
* Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
*
* Based on rtc-pxa.c
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those t... | C | SOFTWARE/A64-TERES/linux-a64/drivers/rtc/rtc-vt8500.c | OLIMEX/DIY-LAPTOP | apache-2.0 | 8,736 | 310 | codeparrot/github-code |
5e97d59d39537a494fbe0855e7513ac7f98b85a3898d15a20da3284c81248b3e | package org.openremote.controller.component.onlysensory;
/* OpenRemote, the Home of the Digital Home.
* Copyright 2008-2010, OpenRemote Inc.
*
* See the contributors.txt file in the distribution for a
* full listing of individual contributors.
*
* This program is free software: you can redistribute it and/or m... | Java | CSCI362/schfiftyFive_TESTING/project/org/openremote/controller/component/onlysensory/LabelBuilder.java | itsallvoodoo/csci-school | apache-2.0 | 1,911 | 54 | codeparrot/github-code |
002ded18a4586669f93d4424be1da85d040034d5c1ec7f928dbca151fd3e2cd8 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codeguruprofiler/model/UntagResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#inc... | C++ | aws-cpp-sdk-codeguruprofiler/source/model/UntagResourceRequest.cpp | awslabs/aws-sdk-cpp | apache-2.0 | 965 | 46 | codeparrot/github-code |
36acfdf13102c7742941c0cc5b9067046555d78fccf5a2558466a29e33441124 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | Java | src/main/java/org/jasig/portlet/proxy/mvc/portlet/gateway/GatewayPortletEditController.java | Jasig/WebproxyPortlet | apache-2.0 | 13,078 | 291 | codeparrot/github-code |
9a5932d5d073c4d8a7b2ffe1ed4ba1b433c8cca2beff0a9a292314d52a50da3f | // 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.Threading.Tasks;
using Roslyn.Test.Utilities;
using Xunit;
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Classification
{
public... | C# | src/EditorFeatures/CSharpTest/Classification/TotalClassifierTests_Dynamic.cs | VPashkov/roslyn | apache-2.0 | 32,757 | 909 | codeparrot/github-code |
651386a412ab5e0c2b89409656b1e7c7b451406de0ce617fe152dfb14caa7911 | var helper = require('./specHelper'),
util = require('util'),
path = require('path'),
fs = require('fs');
describe("fs.Stat", function() {
beforeEach(function() {
helper.testComplete(false);
});
it("should generate an error if the file is not found", function() {
waitsFor(helper.test... | JavaScript | src/test/javascript/fsStatSpec.js | nodyn/nodyn | apache-2.0 | 6,136 | 195 | codeparrot/github-code |
8e9a8dd9dc66eba8d98a515529d87f245f97b7ce3f1d10fc4f080db82875a86f | /*
* 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 | tools/ledger/src/main/java/org/apache/bookkeeper/tools/cli/commands/AutoRecoveryCommandGroup.java | sijie/bookkeeper | apache-2.0 | 2,361 | 56 | codeparrot/github-code |
ceb3c6275ff11daf9dac24638bc00f237f2d5dd666c0704bb254883e545c04c2 | /**
* 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/test/scala/unit/kafka/admin/ReassignPartitionsCommandTest.scala | geeag/kafka | apache-2.0 | 9,463 | 226 | codeparrot/github-code |
1f31fb3104b651b14ec12c4acb87aeb52873101bc71f088b717f92e599a32367 | package org.apache.cassandra.cql3;
import org.junit.Test;
public class ContainsRelationTest extends CQLTester
{
@Test
public void testSetContains() throws Throwable
{
createTable("CREATE TABLE %s (account text, id int, categories set<text>, PRIMARY KEY (account, id))");
createIndex("CREATE... | Java | test/unit/org/apache/cassandra/cql3/ContainsRelationTest.java | jsanda/cassandra | apache-2.0 | 15,065 | 284 | codeparrot/github-code |
039d1468a67ff0eb59d1b61d53dd1e21535a7a729261c004d5c0f988626255f3 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/MapQueryResults.java | ilantukh/ignite | apache-2.0 | 5,901 | 225 | codeparrot/github-code |
b5563d1602e27d32f9ab0b2999ed6d309adba05d07c0b97c6f2e70a54bc3c468 | /*
* ====================================================================
* 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
... | Java | httpcore5/src/main/java/org/apache/hc/core5/http/impl/IncomingEntityDetails.java | apache/httpcore | apache-2.0 | 2,916 | 93 | codeparrot/github-code |
364aec1555b630cc8bb930fb75e068c5060c743e0ba76f6d095c5a2c5236a871 | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | Java | aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/transform/InvalidParameterCombinationExceptionUnmarshaller.java | mhurne/aws-sdk-java | apache-2.0 | 1,616 | 43 | codeparrot/github-code |
408c101a07f1d73454494f1535a0143914e73ee1d20892d0bc47b13c687417db | /*****************************************************************************/
// Copyright 2006-2011 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in
// accordance with the terms of the Adobe license agreement accompanying it.
/***********... | C | third_party/externals/dng_sdk/source/dng_info.h | qrealka/skia-hc | apache-2.0 | 4,096 | 164 | codeparrot/github-code |
911c82c0c78f09f96afcff59e8ddca074245e433f60236ea07f7bee618b7d1bb | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/RussianAnalyzerProvider.java | strapdata/elassandra | apache-2.0 | 1,877 | 48 | codeparrot/github-code |
841658a613751b3c17de28546fd7dda41c66c4bdf3325b7d60cd5a2097364586 | /*
* 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 | client/idrepo/console/src/main/java/org/apache/syncope/client/console/pages/MustChangePassword.java | apache/syncope | apache-2.0 | 2,252 | 62 | codeparrot/github-code |
03f75e10a637e35596e1b427b5cd3459f0c2d60c5df978f8af5d6fb81209acc4 | /**
*
* Copyright the original author or authors
*
* 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... | Java | src/org/jivesoftware/smackx/pubsub/provider/PubSubProvider.java | Soo000/SooChat | apache-2.0 | 2,138 | 62 | codeparrot/github-code |
075c9be9927c008bff7208fbc3a1fb5aac2de287d6298f0f07f53f7bc1e37d30 | using RedGate.SSC.Windows.Client.Chromium;
using RedGate.SSC.Windows.Client.Credentials;
namespace RedGate.SSC.Windows.Client
{
internal class CredentialsFormViewModel : IBindableToJs
{
private readonly ICredentialsManager m_CredentialsManager;
public CredentialsFormViewModel()
: t... | C# | RedGate.SSC.Windows.Client/CredentialsFormViewModel.cs | modulexcite/sql-scripts | apache-2.0 | 915 | 30 | codeparrot/github-code |
b68e442423a9302caffda3dc7fbf3a29545e617f6c4382c0f51d43984c45f9c2 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | runtime/src/modules/activiti-engine/src/main/java/org/activiti/engine/impl/form/AbstractFormType.java | adbrucker/SecureBPMN | apache-2.0 | 962 | 33 | codeparrot/github-code |
047ec66b821024a4160b47ba9562389de693ecd263c13ece4ab32c82f8d0a943 | /*
* Copyright 2020 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 | common/src/test/java/com/thoughtworks/go/config/MaterialRevisionsMatchers.java | ketan/gocd | apache-2.0 | 4,151 | 125 | codeparrot/github-code |
6eb2c0540d7fbc5e60a8e27af81633d9d35ffb4cbf0a8a725de4bf5cd5897099 | import asyncio
import ctypes
import os
import time
import unittest
import sys
clib = ctypes.CDLL('libc.so.6', use_errno=True)
class timespec(ctypes.Structure):
_fields_ = [('tv_sec', ctypes.c_long),
('tv_nsec', ctypes.c_long)]
class itimerspec(ctypes.Structure):
_fields_ = [('it_interval',... | Python | timerfd.py | asvetlov/europython2015 | apache-2.0 | 2,878 | 110 | codeparrot/github-code |
e7bcb11f0dc5986ad08370bb40910b4b624c49d0d903040fb0d67fb0d9a4e431 | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>org.scalatest.PartialFunctionValues</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<li... | HTML | public/scaladoc/1.8/org/scalatest/PartialFunctionValues.html | scalatest/scalatest-website | apache-2.0 | 23,869 | 411 | codeparrot/github-code |
564ca4610afc549fddd9f8bbeb3a8978e72c2c01a0c06c39d05090d15cb441ad | /*
* 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 ... | JavaScript | nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/templates/nf-templates-table.js | MikeThomsen/nifi | apache-2.0 | 16,614 | 451 | codeparrot/github-code |
19da8a9122bc16bb99ca0f02bdf293f7b233b44df37b13cf2bb96e4c5fc94883 | /*
* Copyright 2019 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 | plugin-infra/go-plugin-activator/src/test/java/com/thoughtworks/go/plugin/activation/GoExtensionWithLoadAnnotationMethodThrowingException.java | kierarad/gocd | apache-2.0 | 1,995 | 53 | codeparrot/github-code |
cc0f85e7896828b58b4f74d65a8f0142275404fcf293053472e4a20020005253 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/route53domains/model/DomainTransferability.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespac... | C++ | aws-cpp-sdk-route53domains/source/model/DomainTransferability.cpp | aws/aws-sdk-cpp | apache-2.0 | 1,275 | 61 | codeparrot/github-code |
752018379895feb68ec6a20fdd934b9e483c24fd774e2a1adf3bf94afe46ff71 | # -*- coding: utf-8 -*-
""" The module provides functions for conversion of a message body/body lines
into classifiers features space.
The body and the message sender string are converted into unicode before
applying features to them.
"""
from talon.signature.constants import SIGNATURE_MAX_LINES
from talon.signature... | Python | talon/signature/learning/featurespace.py | saleswise/talon | apache-2.0 | 2,878 | 74 | codeparrot/github-code |
ced5a96129f11c242a6b3035b82ebe05bf81af0ee90c65cfd9812eadc7b96b10 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/medialive/model/MsSmoothOutputSettings.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aw... | C++ | aws-cpp-sdk-medialive/source/model/MsSmoothOutputSettings.cpp | aws/aws-sdk-cpp | apache-2.0 | 1,720 | 76 | codeparrot/github-code |
05a92f97cfcd501f7398460194278212f9f06473b9d2d83485a60f2c753f1d5d | /**
*
* 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"); ... | Java | hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionObserverInterface.java | amyvmiwei/hbase | apache-2.0 | 28,563 | 783 | codeparrot/github-code |
93f1312101d911251b8d8bc9de8d54813181131a0e9bdd3209c894cfc3245b6b | /**
* Copyright 2020 The AMP HTML 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 require... | JavaScript | build-system/tasks/performance-urls.js | nexxtv/amphtml | apache-2.0 | 1,840 | 61 | codeparrot/github-code |
e1b0865bb5cc5891a3ce1f446b3f68473f258e854e5a68ea7196474565db80d5 | <?php
/**
* Created by IntelliJ IDEA.
* User: Nikolay Chervyakov
* Date: 21.08.2014
* Time: 12:40
*/
namespace App\Core;
/**
* Links to be appended as response header Link.
* @package App\Core
*/
class ResponseLink
{
/**
* @var string
*/
protected $url;
/**
... | PHP | classes/App/Core/ResponseLink.php | AdrienKuhn/hackazon | apache-2.0 | 979 | 66 | codeparrot/github-code |
12240c5cfcc6aecb359ebddd215fec72db1ff70aaf80d6873e0f80341b993d24 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfDispatchMessageTest.java | apache/camel | apache-2.0 | 4,475 | 108 | codeparrot/github-code |
4023b6ee47566269732f9889fff3b650dd7fb5457892b6ca6585626b9c07b0d3 | /*
* Copyright 2013 The Netty Project
*
* The Netty Project 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 ... | Java | codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoderTest.java | yipen9/netty | apache-2.0 | 8,259 | 188 | codeparrot/github-code |
56fde92bc2e7f4c9aa731523f7ceb2d49a7516cfb1b98ea85381630264a33494 | /*******************************************************************************
* Code contributed to the webinos 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.... | JavaScript | webinos/core/xmpp-pzp/lib/Connection.js | krishnabangalore/Webinos-Platform | apache-2.0 | 26,914 | 754 | codeparrot/github-code |
bf41fd37d39afa6f3ea544741a70e8c3e933520443a08f8a887211aa47381186 | /*
* 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 | java/gadgets/src/test/java/org/apache/shindig/gadgets/FetchResponseUtilsTest.java | apache/shindig | apache-2.0 | 3,699 | 91 | codeparrot/github-code |
31a34d42164ff8aa279d1f869c33d7bdfa8742dc62f76dace6e15958e2bc413c | /**
* 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 | metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/bolt/WriterBolt.java | kylerichardson/incubator-metron | apache-2.0 | 3,669 | 105 | codeparrot/github-code |
d78e78151c5c66998655d004083ec1aa03e6748a73de28f32b6487c07fbf1f64 | package com.fpt.ruby.model;
import java.util.Date;
import javax.persistence.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class MovieTicket {
@Id
String id;
private String cinema;
private String movie;
private String type;
private Date date;
private String city;
public... | Java | src/main/java/com/fpt/ruby/model/MovieTicket.java | NguyenAnhDuc/fpt-qa | apache-2.0 | 1,312 | 73 | codeparrot/github-code |
816114ec18f7ee229e4ecc1c8ae6e55e784e5c5f6e286e48bf5997ef5b42f29b | // Python Tools for Visual Studio
// 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.apache.org/licenses/LICENSE-2.0
//... | C# | Python/Product/Analysis/Values/BuiltinEventInfo.cs | DinoV/PTVS | apache-2.0 | 2,617 | 76 | codeparrot/github-code |
794234e539949fe42dbf02ec4193224c7dfab0ef5d3fd8a13bd7948d346854b4 | /*
*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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
*
... | Java | components/apimgt/org.wso2.carbon.apimgt.rest.api/src/main/java/org/wso2/carbon/apimgt/rest/api/validation/ParameterEqualityValidator.java | rnavagamuwa/custom-carbon-apimgt | apache-2.0 | 3,466 | 87 | codeparrot/github-code |
f4d7b2774fa5028d5550dd855e745386929b9f10a65a1c0794b7c2c645fef76c | /******************************************************************************
* Copyright 2019 The Apollo 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
... | C | modules/planning/common/open_space_info.h | xiaoxq/apollo | apache-2.0 | 11,571 | 392 | codeparrot/github-code |
b645e7583d5c2603f06aabdcd8e4659890faed302ce1351a6895e49592eecf62 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | C# | gemfirexd/client/test/csharp/adonet-auto/AdoNetTest.BIN/Connection/CreateConnectionWithNoConnStr.cs | papicella/snappy-store | apache-2.0 | 2,015 | 69 | codeparrot/github-code |
71194c8ae59bdb00860aad9695c401f70bebb218eb6a0a5b11960ca1d830f6ff | #include "LKH.h"
#include "Genetic.h"
/*
* The ReadParameters function reads the name of a parameter file from
* standard input and reads the problem parameters from this file.
*
* All entries of the parameter file are of the form <keyword >= <value>
* (or <keyword><whitespace><value>), where <keyword> denotes ... | C | SRC/ReadParameters.c | TSRTQUAD/uppdragsplanering | bsd-2-clause | 38,551 | 883 | codeparrot/github-code |
3b2b88a2da2d7ff20dea8ac16c9c19b6b403c82b2810cc86255e2058b9b3f10e | /*
Copyright (c) 2015, Cisco Systems
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following ... | C | common/common_kernels.h | tmatth/thor | bsd-2-clause | 2,577 | 44 | codeparrot/github-code |
06b16662593b763b70334626b336e2f18b7f3b8df7ecaf7b2e26bdab20b70900 | #ifndef EXTRACTOR_CALLBACKS_HPP
#define EXTRACTOR_CALLBACKS_HPP
#include "extractor/class_data.hpp"
#include "extractor/guidance/turn_lane_types.hpp"
#include "util/typedefs.hpp"
#include <boost/functional/hash.hpp>
#include <boost/optional/optional_fwd.hpp>
#include <string>
#include <unordered_map>
namespace osmi... | C++ | include/extractor/extractor_callbacks.hpp | KnockSoftware/osrm-backend | bsd-2-clause | 3,081 | 98 | codeparrot/github-code |
25e8c606b8d39fd9969901e93c87a88e0980d873f8ec6a2d27d84d8fd0683d3a | /*
* Copyright (c) 2015, Ericsson AB. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the ... | C | gst/scream/gstscreamqueue.h | EricssonResearch/openwebrtc-gst-plugins | bsd-2-clause | 3,110 | 81 | codeparrot/github-code |
2ba07c9661dd108fc3f90323aa8db3fffe26bb6921889cbe420bf975f33521c6 | /*
* Machine Generated include file for message "Unit Message".
* NOTE: This file is read only. DO NOT ATTEMPT TO MODIFY IT BY HAND.
* Generated on 28-August-1997 at 17:24:21
* Generated from file EVENTS.XLS by MicroProse
*/
#ifndef _UNITMSG_H
#define _UNITMSG_H
/*
* Required Include Files
*/
#include "F4vu.h"... | C | src/falclib/include/msginc/unitmsg.h | FreeFalcon/freefalcon-central | bsd-2-clause | 1,836 | 88 | codeparrot/github-code |
0572cae9691ffbe7c72c7b63da6d29dfc5997cb6e90e85629b27f655e89f87ff | package slick.test.codegen
import com.typesafe.slick.testkit.util.StandardTestDBs._
import com.typesafe.slick.testkit.util.{DBTest, DBTestObject, JdbcTestDB}
import org.junit.Assert._
import org.junit.Test
import scala.concurrent.ExecutionContext.Implicits.global
object CodeGeneratorRoundTrip3Test extends DBTestObje... | Scala | slick-testkit/src/test/scala/slick/test/codegen/CodeGenRoundTrip3Test.scala | kwark/slick | bsd-2-clause | 3,496 | 80 | codeparrot/github-code |
08752958a2c77d7df412f52071641a6993e41a53e76ef6b2b68fde05cfb3f366 | from Foundation import *
from AppKit import *
class FileSettings(NSObject):
fsdefault_py = None
fsdefault_pyw = None
fsdefault_pyc = None
default_py = None
default_pyw = None
default_pyc = None
factorySettings = None
prefskey = None
settings = None
def getFactorySettingsForFile... | Python | mac/pyobjc-framework-Cocoa/Examples/AppKit/PyObjCLauncher/FileSettings.py | albertz/music-player | bsd-2-clause | 6,020 | 161 | codeparrot/github-code |
c5a2af512f4a1a2e2ff0c5b9cce4b0caf1e1b65ec23036a043bb964b71663b08 | /*
* Copyright (c) 2010 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | C++ | html/HTMLOutputElement.cpp | yoavweiss/RespImg-WebCore | bsd-2-clause | 4,617 | 145 | codeparrot/github-code |
b6c0b6e02b4ba5c9f321aeabfb80017d660b3f7ae60739c1e3c98add96027e8f | using MatterHackers.Agg;
using MatterHackers.Agg.VertexSource;
using MatterHackers.MeshVisualizer;
using MatterHackers.RenderOpenGl;
using MatterHackers.RenderOpenGl.OpenGl;
using MatterHackers.VectorMath;
/*
Copyright (c) 2014, Lars Brubaker
All rights reserved.
Redistribution and use in source and binary forms, wit... | C# | examples/GCodeVisualizer/Renderer/RenderFeatures/RenderFeatureExtrusion.cs | jlewin/agg-sharp | bsd-2-clause | 6,077 | 159 | codeparrot/github-code |
583ee92aeaacf1fd1dec03fc9d299209e8e27e057a583e1b02e1b7cdf630d8fd | /////////////////////////////////////////////////////////////////////////////
// Name: translation.h
// Purpose: wxTranslation class
// Author: wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/**
This class allows to ge... | C | wxWidgets-3.1.0/interface/wx/translation.h | adouble42/nemesis-current | bsd-2-clause | 21,112 | 581 | codeparrot/github-code |
ca7b223f29570134316d6d1a41f5da285e1d28c8b4ccee2054e469fa72832f5b | /////////////////////////////////////////////////////////////////////////////
// Name: src/xrc/xh_clrpicker.cpp
// Purpose: XML resource handler for wxColourPickerCtrl
// Author: Francesco Montorsi
// Created: 2006-04-17
// Copyright: (c) 2006 Francesco Montorsi
// Licence: wxWindows licence
/... | C++ | wxWidgets-3.1.0/src/xrc/xh_clrpicker.cpp | adouble42/nemesis-current | bsd-2-clause | 1,567 | 55 | codeparrot/github-code |
871304c7b31bd211b04b3c9a47545a277721ee191d2e8aaf2d0222349ac98e1a | /*
* 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/Services/DocumentQueryCore/src/main/java/gov/hhs/fha/nhinc/docquery/entity/proxy/EntityDocQueryProxyWebServiceUnsecuredImpl.java | AurionProject/Aurion | bsd-3-clause | 5,809 | 126 | codeparrot/github-code |
7ded6c76dc9907ae08da3565834c5fac9df9cbbc992f1dc28f2fa4983c52fa2b | /*
* Copyright (C) 2015, Nils Moehrle
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#ifndef TEX_RECT_HEADER
#define TEX_RECT_HEAD... | C | libs/tex/rect.h | lemony-fresh/mvs-texturing | bsd-3-clause | 2,458 | 113 | codeparrot/github-code |
7475adbaf719c469fc87259416b2d1a2a5bc42d05f127afa8fc8b330690db591 | """
Scrapy - a web crawling and web scraping framework written for Python
"""
import pkgutil
import sys
import warnings
from twisted import version as _txv
# Declare top-level shortcuts
from scrapy.spiders import Spider
from scrapy.http import Request, FormRequest
from scrapy.selector import Selector
from scrapy.ite... | Python | scrapy/__init__.py | pawelmhm/scrapy | bsd-3-clause | 1,044 | 43 | codeparrot/github-code |
7b35fab9a415c59c7bbfb786b28edf290dcb3f15ced9fea0a9903a8c3081eca1 | {% extends "admin/change_list.html" %}
{% load i18n admin_static admin_list cms_admin cms_js_tags %}
{% block title %}{% trans "List of pages" %}{% endblock %}
{% block bodyclass %}change-list{% endblock %}
{% if not is_popup %}{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="../../">{% trans "Home" %}</a>... | HTML | cms/templates/admin/cms/page/tree/base.html | SinnerSchraderMobileMirrors/django-cms | bsd-3-clause | 4,697 | 137 | codeparrot/github-code |
2c2b1a729d71b951e4b8d9ca6f26cca2559b926cf9d5c353bcbc461fc7f9272d | <?php
require_once(dirname(__FILE__).'/global.php');
if (!is_null($webPageTestKey) && array_key_exists('compare', $_POST) && is_array($_POST['compare']))
{
$comparison_url = $webPageTestBase.'video/compare.php?tests=';
$repeat = 0;
if (array_key_exists('repeat', $_POST)) {
$repeat = 1;
}
$labels = null;
if ... | PHP | pagetestcompare.php | sergeychernyshev/showslow | bsd-3-clause | 913 | 39 | codeparrot/github-code |
6fab16fe9329c243a71e7614711ac737583512734e052179904b45009d72711b | using System;
using System.Windows;
using System.Windows.Controls;
namespace Alphora.Dataphor.Frontend.Client.Silverlight
{
/// <summary> Abstract class the implements functionality common panel based container elements. </summary>
public abstract class ContainerElement : Element, ISilverlightContainerElemen... | C# | Dataphor/Frontend.Client.Silverlight/Frontend.Client.Silverlight/Nodes/ContainerElement.cs | n8allan/Dataphor | bsd-3-clause | 1,479 | 69 | codeparrot/github-code |
f4d850a110dc8f093636e7b430ea284b904e3d5d668df584739da7df541be180 | /*
* Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.net)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, ... | C | source/Font.h | odanek/duel6r | bsd-3-clause | 2,754 | 81 | codeparrot/github-code |
00d0476b562e20ec8018b0983db5b1d2af563fac979ae435a68ae8175585f349 | // 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 <stdio.h>
#include <string>
#include <sstream>
#include "base/message_loop.h"
#include "base/threading/platform_thread.h"
#include "ipc/ipc_... | C++ | ipc/ipc_fuzzing_tests.cc | zcbenz/cefode-chromium | bsd-3-clause | 12,344 | 414 | codeparrot/github-code |
6bf40cb1a3ce2489fd7c4cdcf14ddfeeeac1f67ec7fa2309d439b1f0e5f5667e | <!DOCTYPE html>
<html dir="ltr" lang="ja">
<head>
<title>Rubinius : Use Ruby™</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content='ja' http-equiv='content-language'>
<meta content='Rubinius is an implementation of the Ruby programming l... | HTML | web/_site/doc/ja/what-is-rubinius/index.html | slawosz/rubinius | bsd-3-clause | 6,333 | 241 | codeparrot/github-code |
ac7f25be4fa7cdab0768c34bab9521212f502e289c18751a5b1cb31b70899731 | <?php
namespace app\modules\lang\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\lang\models\Language;
/**
* LanguageSearch represents the model behind the search form about `app\modules\lang\models\Language`.
*/
class LanguageSearch extends Language
{
/**
* @inheritd... | PHP | modules/lang/models/LanguageSearch.php | ivphpan/gwm | bsd-3-clause | 1,615 | 70 | codeparrot/github-code |
6b1d61dd1f8e3104cef9e33e4c655c4f108b7bdfe6624ac07ed904e28749e92f | // Copyright 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/scheduler/delay_based_time_source.h"
#include <stdint.h>
#include "base/test/test_simple_task_runner.h"
#include "cc/test/scheduler_test_co... | C++ | cc/scheduler/delay_based_time_source_unittest.cc | axinging/chromium-crosswalk | bsd-3-clause | 14,681 | 395 | codeparrot/github-code |
de7aeb101684a44c5ea61b39385172bd0f9e3f009b8e81243deb606c16c66532 | // 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 CC_QUADS_LIST_CONTAINER_H_
#define CC_QUADS_LIST_CONTAINER_H_
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_e... | C | cc/quads/list_container.h | mou4e/zirconium | bsd-3-clause | 9,162 | 241 | codeparrot/github-code |
a0b44abe3c7daba6c4619e55d74342caf7681fa745d4171b19c0d104cc86eb3d | module Spree
module Admin
class OrdersController < Spree::Admin::BaseController
before_action :initialize_order_events
before_action :load_order, only: [:edit, :update, :cancel, :resume, :approve, :resend, :open_adjustments, :close_adjustments, :cart, :store, :set_store]
respond_to :html
... | Ruby | backend/app/controllers/spree/admin/orders_controller.rb | ayb/spree | bsd-3-clause | 6,120 | 170 | codeparrot/github-code |
c90616b9e9cc51a85886ea86b6caa528a130d08b4563c0a0ac4a8b7d3c2b96f4 | // 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 "components/breadcrumbs/core/breadcrumb_persistent_storage_manager.h"
#include <string.h>
#include <memory>
#include <string>
#include "base/b... | C++ | components/breadcrumbs/core/breadcrumb_persistent_storage_manager.cc | scheib/chromium | bsd-3-clause | 13,766 | 352 | codeparrot/github-code |
baf5aadf67053c0aa11e01acefaeb7a2c44fd29abd1ada3f89bb773d692152c7 | """
Formtools Preview application.
"""
try:
import cPickle as pickle
except ImportError:
import pickle
from django.conf import settings
from django.http import Http404
from django.shortcuts import render_to_response
from django.template.context import RequestContext
from django.utils.crypto import constant_ti... | Python | django/contrib/formtools/preview.py | skevy/django | bsd-3-clause | 5,860 | 155 | codeparrot/github-code |
dc1ce5dd7e347d3041b443e01e69eb018fa102c296535dbe275e96407c240006 | // 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.
#ifndef SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_BACKEND_H_
#define SYNC_API_ATTACHMENTS_ATTACHMENT_STORE_BACKEND_H_
#include "base/callback.h"
#include "ba... | C | sync/api/attachments/attachment_store_backend.h | mou4e/zirconium | bsd-3-clause | 2,692 | 67 | codeparrot/github-code |
04379dc7db0109add71b37df5a1742132b057769db38e518b2f2c41424d7a6c4 | package org.buildmlearn.toolkit.learnspelling.data;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.support.annotation.NonNull... | Java | source-code/app/src/main/java/org/buildmlearn/toolkit/learnspelling/data/SpellDb.java | opticod/BuildmLearn-Toolkit-Android | bsd-3-clause | 3,735 | 139 | codeparrot/github-code |
ba575d8f6fa17547bf37de8fcf1e279ef89958bf8e93f1732e5584df62bbf610 |
/*+-----------------------------------------------------------------**
** OpenScop Library **
**-----------------------------------------------------------------**
** extensions/dependence.h **
**------------... | C | source/extensions/dependence.c | realincubus/openscop | bsd-3-clause | 22,909 | 655 | codeparrot/github-code |
c50c87124a15cd60550be44270b9eac362aabfcb2469d4b7acf72f6ae2f3d51f | <?php
global $users, $torrents, $seeds, $leechers, $percent;
// $language['rtl']='rtl'; // if your language is right to left then uncomment this line
// $language['charset']='ISO-8859-1'; // uncomment this line with specific language charset if different than tracker's one
$language['ACCOUNT_CONFIRM']='Konto bekræftel... | PHP | language/danish/lang_main.php | cybyd/cybyd | bsd-3-clause | 27,415 | 546 | codeparrot/github-code |
f00b5c1d2ce825ca47a40f850759de3d10e7c16d474729d1aa4049c954436d9a | // 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/test/base/testing_pref_service.h"
#include "base/prefs/default_pref_store.h"
#include "base/prefs/testing_pref_store.h"
#include "ch... | C++ | chrome/test/base/testing_pref_service.cc | leiferikb/bitpop-private | bsd-3-clause | 4,202 | 126 | codeparrot/github-code |
936a3f29eecbd568edf6e3ebcc0b158b4e287d8afadd6c1b4792bc699bbd9981 | from __future__ import absolute_import, division, print_function
from keyword import iskeyword
import re
import datashape
from datashape import dshape, DataShape, Record, Var, Mono, Fixed
from datashape.predicates import isscalar, iscollection, isboolean, isrecord
import numpy as np
from odo.utils import copydoc
impo... | Python | blaze/expr/expressions.py | maxalbert/blaze | bsd-3-clause | 22,980 | 808 | codeparrot/github-code |
4b32fcee5a93565ac5ac5d011a28c710ec54d49bc821a1a85407b8ed9750c689 | /*
Alphora Dataphor
© Copyright 2000-2008 Alphora
This file is licensed under a modified BSD-license which can be found here: http://dataphor.org/dataphor_license.txt
*/
using System;
using System.Resources;
using System.Reflection;
namespace Alphora.Dataphor.Frontend.Client.Web
{
[Serializable]
publi... | C# | Dataphor/Frontend.Client.Web/WebClientException.cs | JClingo/gitbook | bsd-3-clause | 3,294 | 51 | codeparrot/github-code |
3c61257ad01c6a6222ca425ef1af3cadc901a45e70040dd92518494eecdc5208 | // 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 "services/tracing/public/cpp/traced_process.h"
#include <utility>
#include "build/build_config.h"
#if !defined(OS_NACL) && !defined(OS_IOS)
#i... | C++ | services/tracing/public/cpp/traced_process.cc | nwjs/chromium.src | bsd-3-clause | 1,206 | 44 | codeparrot/github-code |
45bd32a739ffb0eff2fdddf2a066d66fb4fe7f5a858e02ba0fcbbc410c64cedd | // 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 "chromecast/browser/metrics/cast_browser_metrics.h"
#include "base/bind.h"
#include "base/check.h"
#include "base/command_line.h"
#include "base... | C++ | chromium/chromecast/browser/metrics/cast_browser_metrics.cc | ric2b/Vivaldi-browser | bsd-3-clause | 5,483 | 140 | codeparrot/github-code |
77078d89664f2ec5bd40a56f791a71733a56dfdd986a446f713f0e6109b91cec | // 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 CHROME_BROWSER_SYNC_GLUE_BOOKMARK_DATA_TYPE_CONTROLLER_H__
#define CHROME_BROWSER_SYNC_GLUE_BOOKMARK_DATA_TYPE_CONTROLLER_H__
#include <strin... | C | chrome/browser/sync/glue/bookmark_data_type_controller.h | ChromiumWebApps/chromium | bsd-3-clause | 2,429 | 66 | codeparrot/github-code |
dfc2fdb38fe9c2f9630e8fe140776e524a3231affa8c86fc85735a13c2beb549 | """
kombu.utils.compat
==================
Helps compatibility with older Python versions.
"""
############## py3k #########################################################
import sys
is_py3k = sys.version_info[0] == 3
if is_py3k: # pragma: no cover
from io import StringIO, BytesIO... | Python | vendor-local/lib/python/kombu/utils/compat.py | rtucker-mozilla/mozpackager | bsd-3-clause | 4,371 | 127 | codeparrot/github-code |
21fe5615755f6c99a926280fe7cfc722a50733892c84f2b01e8fc2c1e2941506 | # (C) Datadog, Inc. 2010-2016
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
require './ci/common'
def gearman_version
'1.0.6'
end
def gearman_rootdir
"#{ENV['INTEGRATIONS_DIR']}/gearman_#{gearman_version}"
end
namespace :ci do
namespace :gearman do |flavor|
task before_instal... | Ruby | ci/gearman.rb | tebriel/dd-agent | bsd-3-clause | 2,299 | 78 | codeparrot/github-code |
d20b883ae50da4e052cbeaf424f136331d89feb83cb98b800ee88b8cde3b8e78 | // 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.
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PATTERN_PROVIDER_PATTERN_PROVIDER_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_PATTERN_PROVIDER_PATTERN_PROVIDER_H... | C | components/autofill/core/browser/pattern_provider/pattern_provider.h | scheib/chromium | bsd-3-clause | 2,949 | 82 | codeparrot/github-code |
ff7ce0f7a33ded9de3fb6cb36cfa086ae14840233b7edff480a732821c3099b1 | /*
*
* cblas_strmv.c
* This program is a C interface to strmv.
* Written by Keita Teranishi
* 4/6/1998
*
*/
#include "cblas.h"
#include "cblas_f77.h"
void cblas_strmv(const CBLAS_LAYOUT layout, const CBLAS_UPLO Uplo,
const CBLAS_TRANSPOSE TransA, const CBLAS_DIAG Diag,
const int... | C | lib/OpenBLAS-0.2.19/lapack-netlib/CBLAS/src/cblas_strmv.c | ryanrhymes/openblas | bsd-3-clause | 3,242 | 123 | codeparrot/github-code |
51cf9bc7eaadc8dbb80e6299e80943b0c3a2b0e749ed754fd474adb26106ed3b | // 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 CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSERVER_H_
#define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSI... | C | chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.h | nacl-webkit/chrome_deps | bsd-3-clause | 2,229 | 66 | codeparrot/github-code |
1a2382474295ec8b494b0beb9ce68db9047062d1c6ad9aaeac9984885fd349c3 | #include "Core/SigiLog.hpp"
#include "DrSigilFrontend.hpp"
#include "FrontendShmemIPC.hpp"
#include "whereami.h"
#include "glob.h"
auto drSigilCapabilities() -> sigil2::capabilities
{
using namespace sigil2;
using namespace sigil2::capability;
auto caps = initCaps();
caps[MEMORY] = availabili... | C++ | src/Frontends/DrSigil/DrSigilFrontend.cpp | mdlui/Sigil2 | bsd-3-clause | 7,823 | 243 | codeparrot/github-code |
1f96969d609a4c46075117e34d4b3466f1b3d8a941eed82a2897d28892192bb4 | def provision_bootstrap(config)
# TODO this will break if the environment contains the ' delimiter,
# so at some point we need to escape the ' character here and unescape
# it in bootstrap.sh
config.vm.provision "shell" do |sh|
sh.path = "bootstrap.sh"
sh.privileged = false
end
end
def provider_libv... | Ruby | deployment/vagrant/core.rb | stefanocasazza/FrameworkBenchmarks | bsd-3-clause | 2,132 | 66 | codeparrot/github-code |
806b52367e7156e64cced62cec8eb12e14cfd4fc8d146dcbc678c12f99ee8240 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Caching;
using Kooboo.CMS.Caching;
using Kooboo.CMS.Sites.Models;
using Kooboo.CMS.Sites.Caching;
using Kooboo.CMS.Content.Models;
using Kooboo.CMS.Content.Caching;
namespace Kooboo.CMS.Toolkit
{
/// <summ... | C# | Kooboo.Toolkits/Kooboo.CMS.Toolkit/Common/Utilities/CacheUtility.cs | Kooboo/Extensions | bsd-3-clause | 4,486 | 147 | codeparrot/github-code |
a5e66e91aaa71df60ef53bd46aae39f4ac266de13507c0b1e8d0719decc792ec | // Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | C++ | third_party/protobuf/python/google/protobuf/pyext/extension_dict.cc | endlessm/chromium-browser | bsd-3-clause | 18,823 | 475 | codeparrot/github-code |
d6d05c4466fb5368715e0b24422bc675cc308c03079c711265cdfbe49277feac | """ Defines the ScalesTickGenerator class.
"""
from numpy import array
from traits.api import Any
from enable.font_metrics_provider import font_metrics_provider
from ticks import AbstractTickGenerator
# Use the new scales/ticks library
from scales.api import ScaleSystem
class ScalesTickGenerator(AbstractTickGenerat... | Python | chaco/scales_tick_generator.py | tommy-u/chaco | bsd-3-clause | 1,682 | 47 | codeparrot/github-code |
c58d6db3f4138c68688047327f31fc1474b28c7533e3dd601ae2ac843483638e | // Copyright 2015 The Crashpad 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 ... | C++ | third_party/crashpad/crashpad/handler/mac/crash_report_exception_handler.cc | endlessm/chromium-browser | bsd-3-clause | 10,142 | 252 | codeparrot/github-code |
5327c6f329650a4c77f5c80946274b8d4ec324a0add5a8faa72d4a0e59414866 | import { escapeHTML } from './utils.js';
/**
* @typedef {object} Renderer
* @property {(text: string) => void} addText
* @property {(node: Node) => void} openNode
* @property {(node: Node) => void} closeNode
* @property {() => string} value
*/
/** @typedef {{kind?: string, sublanguage?: boolean}} Node */
/** @t... | JavaScript | src/lib/html_renderer.js | highlightjs/highlight.js | bsd-3-clause | 2,199 | 106 | codeparrot/github-code |
ae5d19bc1d3732d938701c482d5dcf259f30eb97899ac85e88b26404fb9c41de | package org.revenj.serialization.xml;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.awt.*;
import java.util.List;
import java.util.function.Function;
@XmlRootElement(name = "Point")
class PointIntXML {
@XmlElement
public int x;
@XmlElement
p... | Java | java/revenj-core/src/main/java/org/revenj/serialization/xml/PointIntXML.java | ngs-doo/revenj | bsd-3-clause | 1,051 | 46 | codeparrot/github-code |
d0b301764ce10fa719d5162b54a8306ed739c884cbf80b904b891096afc270ba | // Copyright 2021 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/policy/core/browser/url_allowlist_policy_handler.h"
#include <memory>
#include <utility>
#include "base/strings/string_number_conve... | C++ | components/policy/core/browser/url_allowlist_policy_handler_unittest.cc | scheib/chromium | bsd-3-clause | 6,324 | 179 | codeparrot/github-code |
a8755251fc1bfa4db2d854aab0bde6c94b487996622ee54afb727d9174829bea | //===-- ABIWindows_x86_64.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++ | third_party/llvm/lldb/source/Plugins/ABI/X86/ABIWindows_x86_64.cpp | endlessm/chromium-browser | bsd-3-clause | 28,766 | 838 | codeparrot/github-code |
341c7035dfdc53b692b703be7451724a7ecb4993288e54b7944f9e98fa83540d | import logging
import numpy as np
import pandas as pd
import numexpr as ne
from astropy import units as u, constants as const
from tardis.plasma.properties.base import ProcessingPlasmaProperty
from tardis.plasma.properties.util import macro_atom
logger = logging.getLogger(__name__)
__all__ = ['StimulatedEmissionFac... | Python | tardis/plasma/properties/radiative_properties.py | orbitfold/tardis | bsd-3-clause | 11,605 | 257 | codeparrot/github-code |
e12af10351759a9596088304d9090f9f3b3fe137e7b3d6dae9c3d0fa8a1134cc | /* Copyright (c) 2017 - 2018, 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 code must retain the above copyright notice, this
*... | C | third_party/NordicSemiconductor/drivers/radio/nrf_802154_request_swi.c | mszczodrak/openthread | bsd-3-clause | 9,440 | 184 | codeparrot/github-code |
5cb8b154beda436c862403922230bda6c5c236af7f66bba39fe4ea0e1bf8646b | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_
#define WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_
#include <string>
#include <vector>
#include "ui/gfx/codec... | C | webkit/support/webkit_support_gfx.h | Crystalnix/house-of-life-chromium | bsd-3-clause | 2,447 | 64 | codeparrot/github-code |
1d926abf012d2a02e49973398efea1d33407391d8969806a0fc89dea9d6a5bbd | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/dbus/constants/dbus_paths.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/path_service.h"
#i... | C++ | chromium/chromeos/dbus/constants/dbus_paths.cc | ric2b/Vivaldi-browser | bsd-3-clause | 2,152 | 69 | codeparrot/github-code |
04dacd638ed168f7a23578f16df67414fa13ee9fe2a4c09e5409a66362f299b9 | /*
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License.
See the accompanying LICENSE file for terms.
*/
/* jslint esnext: true */
// Purposely using the same implementation as the Intl.js `Intl` polyfill.
// Copyright 2013 Andy Earnshaw, MIT License
var hop = Object.pro... | JavaScript | packages/ember-intl-relativeformat/addon/es5.js | null-null-null/ember-intl | bsd-3-clause | 1,740 | 73 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.