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 |
|---|---|---|---|---|---|---|---|---|
d2b0b6b2ffe5f5709ca59506895f89589a57213af4cf9934728c32e7ef690f44 | /**
* 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 | gora-redis/src/test/java/org/apache/gora/redis/store/RedisStoreHashTest.java | apache/gora | apache-2.0 | 2,016 | 59 | codeparrot/github-code |
79776fffc486cc4310264062751c93e1689f8a5f7114034e0afeb007363553be | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | Java | services/src/main/java/org/keycloak/exportimport/dir/DirExportProvider.java | jean-merelis/keycloak | apache-2.0 | 3,522 | 100 | codeparrot/github-code |
8b8f4e52ece36448d009a9c5633d52bc7db187fb3f2f11b265192ec20412eb8c | /*
Copyright IBM Corp. 2016 All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | GO | orderer/ledger/ram/impl.go | rameshthoomu/fabric | apache-2.0 | 4,863 | 172 | codeparrot/github-code |
92bd03efeb3c70a3bdf4fdff4543d538135fe5eab81a13c21a8baa5583bdba2f | /*
* Copyright 2010 FatWire 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
*
* Unless required by... | Java | gsf-legacy/src/main/java/com/fatwire/gst/foundation/taglib/GsfSimpleTag.java | dolfdijkstra/gst-foundation | apache-2.0 | 1,654 | 54 | codeparrot/github-code |
bcdfbaca7e4b2ce26a10a82988f135d2908aa10c9164a852dcae64b59babc970 | /*
* 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 | asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/ToDoubleTypeComputer.java | ecarm002/incubator-asterixdb | apache-2.0 | 2,063 | 54 | codeparrot/github-code |
fb282d35b3e9c254f0b11de6cb8673908512803fc7f3c67a96639efa5f79be0c | package org.apache.commons.ssl.asn1;
import java.io.ByteArrayInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
public class ASN1StreamParser {
InputStream _in;
private int _limit;
private boolean _eofFound;
public ASN1StreamParser(
InputStream ... | Java | src/java/org/apache/commons/ssl/asn1/ASN1StreamParser.java | dvandok/not-yet-commons-ssl-debian | apache-2.0 | 5,634 | 194 | codeparrot/github-code |
e1720cbd55f299d706d14284bc06c189bebef040e3bbe2d0a2f4e929a7b69509 | /*
* 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 | src/main/java/org/elasticsearch/common/io/stream/StreamInput.java | Flipkart/elasticsearch | apache-2.0 | 14,677 | 504 | codeparrot/github-code |
6859a813bdf7444bbdababa2eb44b27dffea543cae80b993d1f9efe90e519be5 | /**
* Copyright 2013 Google, Inc.
* @fileoverview Calculate SHA1 hash of the given content.
*/
goog.provide("adapt.sha1");
goog.require("adapt.base");
/**
* @param {number} n
* @return {string} big-endian byte sequence
*/
adapt.sha1.encode32 = function(n) {
return String.fromCharCode((n >>> 24)&0xFF, (n >>> 16... | JavaScript | src/adapt/sha1.js | kuad9/vivliostyle.js_study | apache-2.0 | 4,018 | 147 | codeparrot/github-code |
aaec432e7c5a1cca77198f12e6fddac58b13147aae6a6f04ccf4143bd8e19237 | /*
*
* Copyright (c) 2003 Dr John Maddock
* Use, modification and distribution is subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/
#include "bcp.hpp"
#include <string>
#include <cstring>
#include <list>
#includ... | C++ | pwiz/libraries/boost_aux/tools/bcp/bcp_imp.hpp | biospi/mzmlb | apache-2.0 | 5,216 | 120 | codeparrot/github-code |
971f59fdbd09d545bda315dfbb65bdcbd939d6c26aaa215de16cc09dded27889 | (function () {
var ns = $.namespace('pskl.controller.settings');
var settings = {
'user' : {
template : 'templates/settings/preferences.html',
controller : ns.PreferencesController
},
'resize' : {
template : 'templates/settings/resize.html',
controller : ns.resize.ResizeControll... | JavaScript | src/js/controller/settings/SettingsController.js | piskelapp/piskel | apache-2.0 | 3,958 | 124 | codeparrot/github-code |
5b29169c9d4928fcc8b39d0303652ff548835c7aba3f0c832b679553c55ba5ee | /*
* Copyright 2012-2016 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 ap... | Java | spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java | joansmith/spring-boot | apache-2.0 | 25,506 | 1,035 | codeparrot/github-code |
ec62da470ade796c58d740057bf05ab01adc020b082c4daf852b1553724cec8f | <?php
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
$aThemes = $template->getThemes();
// Load the settings available in this system
$aSettings['website'][] = array(
'display' => 'Maintenance Mode', 'type' => 'select',
'options' => array( 0 => 'No', 1 => 'Yes' ),
'default' => 0,
'name'... | PHP | public/include/config/admin_settings.inc.php | fubendong2/php_mpos | apache-2.0 | 21,496 | 435 | codeparrot/github-code |
371e140e813770adce7e10dd55b3f8ab64a8ebc8353c0b10948ac71d0d56f047 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Uses of Class org.apache.poi.hssf.eventusermodel.HSSFUserException (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesh... | HTML | mylib/poi-3.11/docs/apidocs/org/apache/poi/hssf/eventusermodel/class-use/HSSFUserException.html | RyoSaeba69/Bio-info | apache-2.0 | 9,744 | 190 | codeparrot/github-code |
eec17e473c668d8eaf30ac41b93ed83af065fdfa697e842adfbaa2b7d38fd14f | /*
* 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 | core/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java | nezirus/elasticsearch | apache-2.0 | 16,494 | 318 | codeparrot/github-code |
5a31af5d2860824ebf941af80253c4ea66b2186ef420ab8998bbe9b88471b58c | /* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... | C | jerry-core/jmem/jmem-allocator.c | dbatyai/jerryscript | apache-2.0 | 6,171 | 235 | codeparrot/github-code |
bac54a087b947b54e3b693c59db06d31e988a1b660b3e8c569b60dadbdd6f218 | // 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.settings;
import com.intellij.debugger.DebuggerBundle;
import com.intellij.debugger.impl.DebuggerUtilsEx;
import com.intellij.debugger.ui.JavaDebugg... | Java | java/debugger/impl/src/com/intellij/debugger/settings/DebuggerDataViewsConfigurable.java | ThiagoGarciaAlves/intellij-community | apache-2.0 | 16,248 | 319 | codeparrot/github-code |
1a25ab57439a25267ba84efdb0aef320af4e893f366d72491f683e495ca194db | // Copyright 2014 Palantir Technologies
//
// 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 ... | Java | src/main/java/com/palantir/stash/stashbot/urlbuilder/StashbotUrlBuilder.java | alihalabyah/stashbot | apache-2.0 | 4,267 | 102 | codeparrot/github-code |
f6d08bd5be9bce6f5135e6e9f0954a439ffb451f50635bcafba713d10d91b239 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | Java | test/com/facebook/buck/features/apple/project/SchemeGeneratorTest.java | nguyentruongtho/buck | apache-2.0 | 56,208 | 1,265 | codeparrot/github-code |
c1442b847c51ccaf51eaab117c161557db74846e1d0d2395b7e1ee4dff4ddb6d | /*
* Copyright 2002-2016 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 ap... | Java | samples/javaconfig/chat/src/main/java/sample/data/ActiveWebSocketUser.java | ollie314/spring-security | apache-2.0 | 1,385 | 59 | codeparrot/github-code |
739a39dcda8441bb34e03dcbd44bb9542b225d28bf4e124f075036bde630a540 | /*
* Copyright (C) 2014 Dell, 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 la... | Java | doradus-server/src/main/java/com/dell/doradus/olap/search/SearchResultComparer.java | dell-oss/Doradus | apache-2.0 | 2,592 | 75 | codeparrot/github-code |
2271183d0022ece7370bec8549b6e264d3070ea05bf29d9c44aa6f02dd11d4fd | """
Platform for Ecobee Thermostats.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/climate.ecobee/
"""
import logging
import voluptuous as vol
from homeassistant.components import ecobee
from homeassistant.components.climate import (
DOMAIN, STATE... | Python | homeassistant/components/ecobee/climate.py | PetePriority/home-assistant | apache-2.0 | 16,743 | 447 | codeparrot/github-code |
fdaa3ca54fa8c3cffea5f9d3e92086a53aeb1f0746cfeff2b9242a52ce5dfc82 | /*
* Copyright 2016 Coursera 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 t... | Scala | naptime/src/test/scala/org/coursera/naptime/actions/FlattenedFilteringJacksonDataCodecTest.scala | vkuo-coursera/naptime | apache-2.0 | 4,567 | 156 | codeparrot/github-code |
d78b4f7fa3271f29056a4c358409fbcbb62607fe9af5a85d5d2cc18231f55c0a | // Copyright (C) 2017 Google 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 t... | GO | core/vulkan/loader/loader.go | dsrbecky/gapid | apache-2.0 | 3,395 | 115 | codeparrot/github-code |
bb2d76e2647cb269076849da5e83dc81b0ad8e1736e116da31832b7c8ba1ff3a | #!/usr/bin/env ruby
# Encoding: utf-8
#
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
#
# License:: 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 | dfp_api/examples/v201505/inventory_service/get_all_ad_units.rb | aditya01933/google-api-ads-ruby | apache-2.0 | 2,549 | 81 | codeparrot/github-code |
1a318aa17729577b0302f7d26cd098007c78d02d1a7fc3105d0b92338359216e | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
#include <aws/servicecatalog/model/ProvisionedProductDetail.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/servic... | C | aws-cpp-sdk-servicecatalog/include/aws/servicecatalog/model/DescribeProvisionedProductResult.h | jt70471/aws-sdk-cpp | apache-2.0 | 4,060 | 115 | codeparrot/github-code |
29353e9d605c38e5aa79c89c4cee2a23251ba8e1ef09bb3e670ba7adf358f6d3 | /*
* Copyright 2012-2017 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 ap... | Java | spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ManagementContextConfigurationImportSelectorTests.java | mosoft521/spring-boot | apache-2.0 | 3,362 | 124 | codeparrot/github-code |
700d63efc813496386270e7c3672e74f727725952d2b7ab1d91f7563362364d2 | /*
* Copyright (c) 2011 LinkedIn, 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 agree... | Java | src/main/java/cleo/search/SimpleTypeaheadElement.java | linkedin/cleo | apache-2.0 | 2,371 | 103 | codeparrot/github-code |
86f785a5b5635de27e7abe17bcb4823ad0049fe626ed68163afa06d0c0d0ab7f | // 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.
#nullable disable
using System;
using System.Collections.Immutable;
using System.Composition;
using System.Threadi... | C# | src/VisualStudio/Xaml/Impl/CodeFixes/RemoveUnnecessaryUsings/XamlRemoveUnnecessaryUsingsCodeFixProvider.cs | wvdd007/roslyn | apache-2.0 | 2,691 | 69 | codeparrot/github-code |
3aa547bd9b6f4484f0b8e5bddef3ac2ec1b07046bba4eaa2d5534719f2c4c3cc | """
pygments.lexers.stata
~~~~~~~~~~~~~~~~~~~~~
Lexer for Stata
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, default, include, words
from pygments.token import Comment, Keyword, Name... | Python | .aux/venv/lib/python3.9/site-packages/pygments/lexers/stata.py | sonntagsgesicht/regtest | apache-2.0 | 6,414 | 171 | codeparrot/github-code |
db9b15e5886e8ee331dece4f04d9c7cc40ba86d0952f66305182457caa8b9cec | /*
* Copyright 2018 NAVER Corp.
*
* 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 ... | Java | hbase/hbase-schema/src/main/java/com/navercorp/pinpoint/hbase/schema/core/command/HbaseSchemaCommandManager.java | naver/pinpoint | apache-2.0 | 6,290 | 154 | codeparrot/github-code |
5c9943944d36aa5abc5ad06de9e7520264cd842ed0337252d7d4272786d71f5f | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | Java | src/peers/gov/nasa/jpf/vm/JPF_java_util_concurrent_atomic_AtomicLongFieldUpdater.java | grzesuav/jpf-core | apache-2.0 | 5,324 | 171 | codeparrot/github-code |
e051565e45e3008dc147ea25c4bca4e6441ee949fe79214637a6fc30f54a8f68 | /* 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... | JavaScript | modules/flowable-ui-task/flowable-ui-task-app/src/main/webapp/scripts/landing-controller.js | roberthafner/flowable-engine | apache-2.0 | 3,572 | 100 | codeparrot/github-code |
b99fbdf16ba83c999f996ba3e9bbb55129f3e37ea6415f1dbaa27dd9bfa2e034 | //////////////////////////////////////////////////////////////////
//
// original file from Freeling src/main/sample_analyzer/analyzer_client.cc
//
// FreeLing - Open Source Language Analyzers
//
// Copyright (C) 2014 TALP Research Center
// Universitat Politecnica de Catalunya
//
// ... | C++ | FreeLingModules/analyzer_client.cc | a-rios/squoia | apache-2.0 | 3,543 | 117 | codeparrot/github-code |
89147d0554a57b2e4029586ea94b14b401326d75a4e426a36ab6bd404a83c395 | /*
*name:dtt
*time:2014.12.01
*content:注册页
*/
seajs.config({
// 别名配置
alias: {
'head':'../../../../module/head/js/init.js',
'service':'../../../../module/service/js/init.js',
'rightTips':'../../../../module/rightTips/js/init.js',
'dialog':'../../../../module/dialog/js/init.js'
}
});
define... | JavaScript | proxy/data/bankcard/zhuce/user/js-1223/project/user/register/js/init.js | ldjking/sharegrid | apache-2.0 | 15,759 | 576 | codeparrot/github-code |
b5ad28eed2d0bdca4b4ab7c71334924b8a9d942c71d21048bba0c90b1fe85613 | /*
Itay Marom
Cisco Systems, Inc.
*/
/*
Copyright (c) 2015-2015 Cisco Systems, 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 require... | C++ | src/rpc-server/trex_rpc_cmds_table.cpp | dimagol/trex-core | apache-2.0 | 2,451 | 122 | codeparrot/github-code |
d0fa75475f3419acc7325324f2a44ecde70077358765fe56177b525cbfd829b7 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>OldPowerPointFormatException (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<s... | HTML | mylib/poi-3.11/docs/apidocs/org/apache/poi/hslf/exceptions/OldPowerPointFormatException.html | RyoSaeba69/Bio-info | apache-2.0 | 9,163 | 275 | codeparrot/github-code |
2f50accda2a082bdc89ce005cc1d7bfbc99152a38fc545e9d3193ac26a7233fc | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | java/java-psi-impl/src/com/intellij/psi/impl/source/tree/java/AnnotationParamListElement.java | msebire/intellij-community | apache-2.0 | 5,047 | 135 | codeparrot/github-code |
0f2131399454a968642215296fd4ec4ccd36ebd4014868a2f93f031e8cfedc3f |
const React = require('react');
const CompLibrary = require('../../core/CompLibrary');
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;
const CWD = process.cwd();
const translate = require('../../server/translate.js').translate;
const siteConfig = require(`${CWD}/siteConfig.js`);
/... | JavaScript | site2/website/pages/en/versions.js | ArvinDevel/incubator-pulsar | apache-2.0 | 4,767 | 138 | codeparrot/github-code |
2a080568dbda57e4150f02f4000ab8a11f7305ddb41e290a792ac287915cf27f | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | java/java-impl/src/com/intellij/codeInsight/intention/impl/InlineStreamMapAction.java | goodwinnk/intellij-community | apache-2.0 | 12,804 | 303 | codeparrot/github-code |
ec1e63917ca0eca01f8869f8cdc3d471025ee48cf5d99c94622821842e8db688 | /*
Copyright 2015 Esri
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 un... | C++ | deps/libgdal/gdal/frmts/mrf/libLERC/CntZImage.cpp | jwoyame/node-gdal | apache-2.0 | 31,787 | 1,252 | codeparrot/github-code |
dfb3e2a080fdf664406e78fe210929f231344597394d5f81667890f9569898b9 | package container
import (
"context"
"fmt"
"io"
"github.com/docker/cli/cli"
"github.com/docker/cli/cli/command"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
"github.com/moby/sys/signal"
"github.com/pkg/errors"
"github.com/sirupsen/log... | GO | cli/command/container/attach.go | thaJeztah/cli | apache-2.0 | 5,044 | 175 | codeparrot/github-code |
bbe8bf042dbcf140108b0401d2cfeb428d5d632d6a99596a6eec38ebc9a3431a | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | Java | plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/actions/datasource/DataSourceTransactionModeContributor.java | AndrewKhitrin/dbeaver | apache-2.0 | 4,917 | 136 | codeparrot/github-code |
822a2d9985c4f3c655198c9794d42165196e32f2c09d061a5886da0619db0c39 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Based in part on code from Apache Ripple, https://github.com/apache/incubator-ripple
var utils = require('utils');
var _lastMouseEvent,
_isMouseDown;
// NOTE: missing view, detail, touches, targetTouches, scale and rotation
function _createTouchEven... | JavaScript | src/app-host/touch-events.js | busykai/cordova-simulate | apache-2.0 | 2,718 | 92 | codeparrot/github-code |
77e594ca69b6bba3b210b347e700ae75770f8462adaa88a852d8f6ced7915280 | /*-------------------------------------------------------------------------
*
* pathnode.h
* prototypes for pathnode.c, relnode.c.
*
*
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/optimizer/pathn... | C | Connectors/PostgreSQL/linked/libpq/include/postgresql/server/optimizer/pathnode.h | lokinfey/MyPerfectframework | apache-2.0 | 5,886 | 164 | codeparrot/github-code |
177265b9ccd05221bb2a7ada8e45274d5248b557943cf56bd107acb4b51982c1 | /*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... | C++ | src/types/schema/PrintSchema.cpp | bgarrels/zorba | apache-2.0 | 12,698 | 412 | codeparrot/github-code |
b2d2a55f4152f37469bb86e15f72c863916cacbbdc5d8283d1931378a6d92f25 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" >
<title>DC 2015
- Conduct</title>
<meta name="author" content="" >
<link rel="alternate" type="application/rss+xml" title="... | HTML | static/events/2015-washington-dc/conduct/index.html | benjohnson77/devopsdays-web | apache-2.0 | 11,169 | 281 | codeparrot/github-code |
187f9a4f78b77a049b9809eecf2ccc849c3dc137190b8a151ca93f4c9b365bbd | /**
*
* Copyright 2014 Andriy Tsykholyas, 2015 Florian Schmaus
*
* 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... | Java | smack-experimental/src/main/java/org/jivesoftware/smackx/hoxt/packet/HttpOverXmppReq.java | igniterealtime/Smack | apache-2.0 | 5,953 | 233 | codeparrot/github-code |
9b7368451c5b06dfd4ea87b12d149487428f7ffa36467c6814ce90202639a78f | /*
* 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 | server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/FilterAllocationDecider.java | gfyoung/elasticsearch | apache-2.0 | 11,933 | 213 | codeparrot/github-code |
1e7c89d9f109fca92f1a61da7f9301561ae883745a387561005588416b80955d | /**
* Copyright 2011 The PlayN 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 law or agreed to ... | Java | noise/src/playn/sample/noise/Main.java | thomaswp/playn-xna-samples | apache-2.0 | 3,149 | 103 | codeparrot/github-code |
ce82ab6d7be6164e446033ae0839349b13b49500a72ef53161b4805ce66249d8 | /*
* Copyright 2002-2006 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 require... | Java | spring-richclient-samples/spring-richclient-samples-simple/src/main/java/org/springframework/richclient/samples/simple/ui/ContactForm.java | springrichclient/springrcp | apache-2.0 | 5,979 | 137 | codeparrot/github-code |
222b5b1fd7bda4ccf2c8e626f6aea30f833b70470f34bb59357dd3ad3323ee6a | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mobileanalytics/MobileAnalytics_EXPORTS.h>
#include <aws/mobileanalytics/MobileAnalyticsErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfi... | C | aws-cpp-sdk-mobileanalytics/include/aws/mobileanalytics/MobileAnalyticsClient.h | aws/aws-sdk-cpp | apache-2.0 | 5,181 | 134 | codeparrot/github-code |
994fae86677cf5a96502c58156f834161061351c8a6cb8fb47c5a220257d9dd0 | /*
* Copyright 2005 JBoss 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 | drools-core/src/main/java/org/drools/reteoo/ObjectTypeNode.java | pperboires/PocDrools | apache-2.0 | 31,600 | 756 | codeparrot/github-code |
42dba1892472b0d8bb766f59cadc27471aedad099661bb41c60b3c297f6272d7 | /*
* 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 | modules/visor-console/src/test/scala/org/apache/ignite/visor/commands/disco/VisorDiscoveryCommandSpec.scala | gridgain/apache-ignite | apache-2.0 | 2,440 | 86 | codeparrot/github-code |
5c1104717346bc988e046ef3b9148486836a6bc81d1ef0f95f93c076eb2a50a4 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/HDFSBackedStateStoreProvider.scala | spark0001/spark2.1.1 | apache-2.0 | 22,751 | 610 | codeparrot/github-code |
380e4326b0e14daa13b87af111527bfd6d789ac2b03ba6fe100a2a1a416d4b11 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elasticloadbalancingv2/model/RulePriorityPair.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream... | C++ | aws-cpp-sdk-elasticloadbalancingv2/source/model/RulePriorityPair.cpp | aws/aws-sdk-cpp | apache-2.0 | 2,254 | 90 | codeparrot/github-code |
d81b5b1e9941e70e1b794914c1c8a9a5d5ccde23a8379b4cd6447a73cd2e99a3 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ds/DirectoryService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
c... | C | aws-cpp-sdk-ds/include/aws/ds/model/CertificateLimitExceededException.h | aws/aws-sdk-cpp | apache-2.0 | 3,014 | 102 | codeparrot/github-code |
b3f4d854252c6d5dc1b12faf2e134f7c6673b3729771716d56ab30fe0928d5f3 | /*
* Copyright 2013-present Facebook, 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... | Java | src/com/facebook/buck/rules/coercer/SortedSetTypeCoercer.java | janicduplessis/buck | apache-2.0 | 2,913 | 94 | codeparrot/github-code |
fa9761c26f31b6bb9c39932a37cc908038137353a9274d58616b37a6a240649c | // 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.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using System.Reflection.Metadata;
using Microsoft.CodeAnalysis.CSharp.Symbol... | C# | src/Compilers/CSharp/Portable/Symbols/Metadata/PE/DynamicTypeDecoder.cs | ericfe-ms/roslyn | apache-2.0 | 15,407 | 354 | codeparrot/github-code |
0f6a563bdbc532417df9e503287bec2f702ff2b4ec06643b03bb2939aff4da48 | /*
* 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 | server/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java | gfyoung/elasticsearch | apache-2.0 | 62,076 | 1,557 | codeparrot/github-code |
918af2267f1ffde12b25a3906b96cc0d09d4933d19e19d30d834053177c47097 | /*************************************************************************
Copyright (c) 20136 Adobe Systems Incorporated. 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... | JavaScript | edge-inspect-api-1.0.0.js | edge-code/edge-inspect-api | apache-2.0 | 30,259 | 944 | codeparrot/github-code |
6b3d7307f08a734ec468a4a0da256065f68f01dd595d10a19609a0081024de90 | /*
* 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 | examples/src/main/java/org/apache/spark/examples/ml/JavaStopWordsRemoverExample.java | chenc10/Spark-PAF | apache-2.0 | 2,353 | 66 | codeparrot/github-code |
be83fd2d9391369605463119efb25c502853b44fd7c065440538883d3d8d9e6a | /*
* JBoss, Home of Professional Open Source
* Copyright 2009 Red Hat Inc. and/or its affiliates and other
* contributors as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a full listing of
* individual contributors.
*
* This is free software; you can redistri... | Java | infinispan/core/src/test/java/org/infinispan/api/CacheAPITest.java | nmldiegues/stibt | apache-2.0 | 9,493 | 249 | codeparrot/github-code |
aee85ce49007f767307449aaf427381e1a8d65f7ccce8d2904e2941fb59c504b | /*
* Copyright 2013 Google Inc.
* Copyright 2014 Andreas Schildbach
*
* 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... | Java | tools/src/main/java/com/google/bitcoin/tools/BuildCheckpoints.java | wpstudio/blazecoinj | apache-2.0 | 5,898 | 133 | codeparrot/github-code |
3cfde739b242d65eed508c93af7134b2c612938cde3e9045fab774aebe544e53 | /*
* 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 | stack/services/src/main/java/org/apache/usergrid/management/exceptions/UnactivatedAppUserException.java | mesosphere/usergrid | apache-2.0 | 1,337 | 44 | codeparrot/github-code |
08df1ae538f26194ed78d7e7ab4067b770810c3d3e699f32226b4aa1a5a4fca9 | package com.cardpay.pccredit.customer.model;
import java.math.BigDecimal;
import java.util.Date;
import com.wicresoft.jrad.base.database.model.BusinessModel;
public class MarketingPlanWeb extends BusinessModel{
private static final long serialVersionUID = 1L;
private String id;
private String chineseNam... | Java | src/java/com/cardpay/pccredit/customer/model/MarketingPlanWeb.java | zhuyuanyan/PCCREDIT | apache-2.0 | 2,252 | 89 | codeparrot/github-code |
31644cf1134f347a58a0957c406301903f1a24acee865bff2ca9c278c224e1e7 | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | Java | src/peers/gov/nasa/jpf/vm/JPF_java_lang_reflect_Constructor.java | grzesuav/jpf-core | apache-2.0 | 7,663 | 224 | codeparrot/github-code |
f2bcc49714a84d0ef4fc3bca631c0e3cfbbce7f253500bcc9ebbf7f98707365b | --
-- 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")... | SQL | gemfirexd/examples/demo/vtis/sql/demoFileVtis.sql | papicella/snappy-store | apache-2.0 | 6,335 | 198 | codeparrot/github-code |
3780cd17c30626af08d382e5c35b38ed2c2e24968b918d8246eeb127cae53262 | /**
* Copyright 2005-2015 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-core/src/main/java/io/fabric8/service/child/ChildAutoScaler.java | jonathanchristison/fabric8 | apache-2.0 | 6,087 | 137 | codeparrot/github-code |
f46f05540cea7f7e6accb3f08c1eab599770da6d8411bacf1df2638b55937e10 | // lasterror.cpp
/* Copyright 2009 10gen 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 ... | C++ | freshcity.dependency.mongoclient/db/lasterror.cpp | RyokoAkizuki/freshcity | apache-2.0 | 3,930 | 143 | codeparrot/github-code |
7f28b9719eab203e9c662d81c73cb7dc1bea238177e827c2b2619d98dbf6171b | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>ViewProperties (ARX GUI Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script ty... | HTML | doc/gui/org/deidentifier/arx/gui/view/impl/utility/ViewProperties.html | TheRealRasu/arx | apache-2.0 | 22,739 | 506 | codeparrot/github-code |
32ea4ba148a58f29cb83185dabc93d499cdf8d2cc1b910afe3260ee9053fc845 | /*
* 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 | core/src/main/java/org/elasticsearch/index/IndexService.java | nezirus/elasticsearch | apache-2.0 | 33,997 | 849 | codeparrot/github-code |
b2cd1d8963ce145fb5ba4ac293d4d2fc1ae26e58b14fa97625ce4d3c94a78e79 | /*
* 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 | extras/rya.pcj.fluo/pcj.fluo.app/src/main/java/org/apache/rya/indexing/pcj/fluo/app/ProjectionResultUpdater.java | kchilton2/incubator-rya | apache-2.0 | 4,313 | 90 | codeparrot/github-code |
19222605729f708f9a04a2a199e19c95ed97d027e44e7f9e4530404b93768b54 | /*
* 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/percolator/src/test/java/org/elasticsearch/percolator/CandidateQueryTests.java | jimczi/elasticsearch | apache-2.0 | 19,649 | 440 | codeparrot/github-code |
28b20e0a74fc0bf72affee5c8741bf7c0050946d43ad6e7c942ba4f47391f700 | -- luainspect.init - core LuaInspect source analysis.
--
-- This module is a bit more high level than luainspect.ast. It deals more with
-- interpretation/inference of semantics of an AST. It also uses luainspect.globals,
-- which does the basic semantic interpretation of globals/locals.
--
-- (c) 2010 David Manura, ... | Lua | tools/ZeroBraneStudio/lualibs/luainspect/init.lua | LuaExtend/LuaExtend | apache-2.0 | 50,289 | 1,455 | codeparrot/github-code |
37d9099164e0c2c7d40ea86a3a825d4b0f8a4f192be068afa58f9cfe8635e150 | /*
* 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 | libraries/rest-client/src/main/java/org/apache/polygene/library/rest/client/api/HandlerCommand.java | apache/zest-qi4j | apache-2.0 | 6,730 | 219 | codeparrot/github-code |
550449bdf67464e180d01a9a9caa1969bc87982c5b6f09032d6ba5a22a706bf8 | /**
* Copyright 2013-2014 Facebook, 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 agree... | JavaScript | src/addons/transitions/ReactTransitionGroup.js | atom/react | apache-2.0 | 5,458 | 190 | codeparrot/github-code |
5566facbdb305ffc1f29f04afd668a296f1851229b7e5cc7adf419d9f6d0f0cd | package org.interledger.ilqp;
import static junit.framework.TestCase.assertTrue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.fail;
import org.junit.Test;
import java.math.BigInteger;
import java... | Java | src/test/java/org/interledger/ilqp/QuoteByDestinationAmountResponseTest.java | interledger/java-ilp-core | apache-2.0 | 4,010 | 120 | codeparrot/github-code |
3c7600bfa3335f2a728a863d86bc1618525a36c7892bc8acb6ef22667d275ae7 | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.o... | Java | modules/mobile-agents/windows/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/windows/common/exceptions/CertificateGenerationException.java | jelacote/product-mdm | apache-2.0 | 1,594 | 59 | codeparrot/github-code |
015ec15b267500c54d096f97730bba8cad9de0de87a4b890e9ad23811eb814ee | class Binwalk < Formula
desc "Searches a binary image for embedded files and executable code"
homepage "https://github.com/devttys0/binwalk"
url "https://github.com/devttys0/binwalk/archive/v2.1.1.tar.gz"
sha256 "1b70a5b03489d29f60fef18008a2164974234874faab48a4f47ec53d461d284a"
revision 3
head "https://git... | Ruby | Formula/binwalk.rb | robohack/homebrew-core | bsd-2-clause | 2,289 | 62 | codeparrot/github-code |
84408dd780a0960d2059d0ce89d97e29d0358064aa33422db66dbbcbac49d8eb | class GmshSvnStrategy < SubversionDownloadStrategy
def quiet_safe_system(*args)
super *args + ["--username", "gmsh", "--password", "gmsh"]
end
end
class Gmsh < Formula
desc "3D finite element grid generator with CAD engine"
homepage "http://geuz.org/gmsh"
url "http://gmsh.info/src/gmsh-2.14.0-source.tgz"... | Ruby | gmsh.rb | parcollet/homebrew-science | bsd-2-clause | 3,367 | 108 | codeparrot/github-code |
8827a4c630f9930acc9dcc092a4b942489bd76664a58aaa4b808fb22d056fd94 | /*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* Implementation of the Transmission Control Protocol(TCP).
*
* Authors: Ross Biro
* Fred N. van Kempen, <wa... | C | kernel/linux/linux-2.6.32/net/ipv4/tcp_output.c | sorbo/tcpcrypt | bsd-2-clause | 77,137 | 2,641 | codeparrot/github-code |
8b513714b17e8a7a0edfa4253aac0cac94ce19a8a3813013b736728b8d644bab | """OpenGLDemo.py -- A simple demo of using OpenGL with Cocoa
To build the demo program, run this line in Terminal.app:
$ python setup.py py2app -A
This creates a directory "dist" containing OpenGLDemo.app. (The
-A option causes the files to be symlinked to the .app bundle instead
of copied. This means you don't ... | Python | mac/pyobjc-framework-Cocoa/Examples/OpenGL/OpenGLDemo/OpenGLDemo.py | albertz/music-player | bsd-2-clause | 1,734 | 58 | codeparrot/github-code |
35d04856c7b0822b7005a322d56efdb805dc57b1e6add1b1391bb7617221f744 | #ifndef COORDINATE_CALCULATION
#define COORDINATE_CALCULATION
#include "util/coordinate.hpp"
#include <boost/math/constants/constants.hpp>
#include <boost/optional.hpp>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <utility>
#include <vector>
namespace osrm
{
namespace util
{
namespace coordinat... | C++ | include/util/coordinate_calculation.hpp | duizendnegen/osrm-backend | bsd-2-clause | 16,317 | 386 | codeparrot/github-code |
06b779b8d91668fc028e0df3294128c6d7f7bbce54bdd21f421807af9556c688 | from PyQt4.QtCore import QSize
from PyQt4.QtGui import QVBoxLayout
# This is really really ugly, but the QDockWidget for some reason does not notice when
# its child widget becomes smaller...
# Therefore we manually set its minimum size when our own minimum size changes
class MyVBoxLayout(QVBoxLayout):
def __init... | Python | sloth/sloth/gui/utils.py | bitmingw/FindYourSister | bsd-2-clause | 994 | 33 | codeparrot/github-code |
80c1b1b21e6557b69785a8912cef9fb446c06bc56959f0e05be7eb8004f7feb6 | $(document).ready(function () {
form = $('#form');
$("#Grid tbody>tr").click(function () {
var id = $(this).find("[name='id']").attr('value');
$("#grid_selecteditem").val(id);
});
});
function ClearSelection(e) {
$("#grid_selecteditem").val("");
}
var options = {};
fu... | JavaScript | EIDSS v6/eidss.webui/Scripts/Search/Panel.js | EIDSS/EIDSS-Legacy | bsd-2-clause | 2,369 | 84 | codeparrot/github-code |
cc9bf68c059bb1e174fe7d7ecbf1a5c4a9b513a191a9abcd299d197d6fac15e9 | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010, 2011, 2012 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library ... | C++ | html/HTMLFormCollection.cpp | yoavweiss/RespImg-WebCore | bsd-2-clause | 6,034 | 164 | codeparrot/github-code |
cbaab7f6fc8d3b5d201968f2dcaba1eb94800b524e8455779918e200070c5bf5 | // Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// 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,
// th... | Java | jodd-bean/src/main/java/jodd/typeconverter/impl/DoubleArrayConverter.java | javachengwc/jodd | bsd-2-clause | 6,359 | 222 | codeparrot/github-code |
a8f19c7d73d663101380954ee120c1d4956dcff127964c8a13afa45437aab8e3 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/... | C++ | chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.cc | ChromiumWebApps/chromium | bsd-3-clause | 11,733 | 319 | codeparrot/github-code |
4d8b6caa0b1a557a74286fbe507a521be7dcc5f58c934b43bddbfde754515942 | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | C++ | src/chrono/assets/ChAssetLevel.cpp | projectchrono/chrono | bsd-3-clause | 1,889 | 59 | codeparrot/github-code |
994cf1734ca209a766b2ae4616e1859147eaaee995667bd7b0b2d42e2637c6cc | <?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\SbmAdhocOrderRequest;
/**
* SbmAdhocOrderRequestSearch represents the model behind the search form about `app\models\SbmAdhocOrderRequest`.
*/
class SbmAdhocOrderRequestSearch extends SbmAdhocOrderRequest
{
... | PHP | models/SbmAdhocOrderRequestSearch.php | hendri30/OpenPrint | bsd-3-clause | 2,624 | 83 | codeparrot/github-code |
c1bc6218555aabf7cd8ce9387db7dd86367330129c9483883809664c4590f57e | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_POLICY_POLICY_OAUTH2_TOKEN_FETCHER_H_
#define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_OAUTH2_TOKEN_FETCHER_H_
#include ... | C | chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.h | CTSRD-SOAAP/chromium-42.0.2311.135 | bsd-3-clause | 4,256 | 120 | codeparrot/github-code |
f62174b391f45a45665ecac64c3e8cb0f4161c637b499920f9897bf400a98b4e | // 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 NET_SPDY_HPACK_DECODER_H_
#define NET_SPDY_HPACK_DECODER_H_
#include <stddef.h>
#include <stdint.h>
#include <map>
#include <string>
#include <v... | C | net/spdy/hpack/hpack_decoder.h | axinging/chromium-crosswalk | bsd-3-clause | 5,488 | 141 | codeparrot/github-code |
cbfa7edfd9a302e64b6502630d1294d6370680413ed2d503e60211def955a447 | /*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/core/SkFontMgrPriv.h"
#include "tools/flags/CommandLineFlags.h"
#include "tools/flags/CommonFlags.h"
#include "tools/fonts/TestFontMgr.h"
#if defined(SK_BUILD_FO... | C++ | tools/flags/CommonFlagsFontMgr.cpp | google/skia | bsd-3-clause | 985 | 40 | codeparrot/github-code |
0c92589dd0e61c5c8ee366af5a3203b1940b96ffe080ce20e4e6758e0df73da5 | package owltools.yaml.golrconfig;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
import owltools.gaf.io.AbstractXmlWrite... | Java | OWLTools-Solr/src/main/java/owltools/yaml/golrconfig/SolrSchemaXMLWriter.java | dhimmel/owltools | bsd-3-clause | 9,582 | 284 | codeparrot/github-code |
3423c111c221563f4805fc02516ffd4a58ceeee8bdf8505d7316b5dc24f82ce4 | /*
FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... | C | FreeRTOS/FreeRTOS/Demo/RX100-RSK_Renesas_e2studio/RTOSDemo/ParTest.c | jedediahfrey/STM32F4-Discovery_FW_V1.1.0_Makefiles | bsd-3-clause | 6,037 | 192 | codeparrot/github-code |
55c9762f3e572878e3f81c2d47e281fa7bf9b5d13c5abaff222afb63d88db696 | #ifndef __MORDOR_TEE_STREAM_H__
#define __MORDOR_TEE_STREAM_H__
// Copyright (c) 2013 - Cody Cutrer
#include <vector>
#include "stream.h"
namespace Mordor {
class TeeStream : public Stream
{
public:
TeeStream(std::vector<Stream::ptr> outputs, int parallelism = -2, bool own = true);
bool supportsWrite() { r... | C | mordor/streams/tee.h | ccutrer/mordor | bsd-3-clause | 717 | 38 | codeparrot/github-code |
f2d81e4ae11f1ce56835531ca04aaa19210fe48c92f1f5f9ab5502dc8268f929 | using System;
using System.Windows;
using System.Windows.Controls;
namespace Alphora.Dataphor.Frontend.Client.Silverlight
{
public class ContentElement : Element, ISilverlightContainerElement
{
protected override FrameworkElement CreateFrameworkElement()
{
return new ContentControl();
}
pub... | C# | Dataphor/Frontend.Client.Silverlight/Frontend.Client.Silverlight/Nodes/ContentElement.cs | JClingo/gitbook | bsd-3-clause | 2,019 | 94 | codeparrot/github-code |
ba24abfa44d1c4e7260b2626d2adf0203783c6d5c7577972bd4e25d193840d33 | # 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.
from string import Template
import optparse
import os
import sys
try:
grit_module_path = os.path.join(
os.path.dirname(__file__), '..', '..', '..'... | Python | mojo/services/html_viewer/generate_blink_resource_map.py | CTSRD-SOAAP/chromium-42.0.2311.135 | bsd-3-clause | 4,259 | 152 | codeparrot/github-code |
49b572d7a499721ddb2c02881ea47ca2ea4c388444f86a7abe6a0cbf8cf68b76 | <!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<title>Compiler - 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 programming language... | HTML | web/_site/doc/en/bytecode-compiler/compiler/index.html | slawosz/rubinius | bsd-3-clause | 5,931 | 216 | codeparrot/github-code |
ece6a52e76d9f82b28b29a45e67d04a7b0dd711c98bab6eb980fe26a0c7c895b | // -*-Mode: C++;-*-
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
//... | C++ | src/lib/xml/xml.cpp | zcth428/hpctoolkit111 | bsd-3-clause | 6,180 | 190 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.