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 |
|---|---|---|---|---|---|---|---|---|
5e718abbf51c93fe78816716106a987f84496f029e8d397be22b672d822910b1 | /**
* 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... | JavaScript | test/unit/@node-red/registry/lib/registry_spec.js | node-red/node-red | apache-2.0 | 25,692 | 615 | codeparrot/github-code |
7d17b0d8ffb09b7482325c5f89565e2bbbff785d56151278ddb4d4a95fdd7b9f | /*
Copyright 2015 The Kubernetes 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 in writing, ... | GO | test/e2e/scheduling/ubernetes_lite.go | frodenas/kubernetes | apache-2.0 | 8,080 | 233 | codeparrot/github-code |
e798d616496cc215e50a4a9166474a58e80fa0d3fc22c7e5fca50d95fda7760f | // Copyright 2018 PingCAP, 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... | GO | executor/projection.go | EvilMcJerkface/tidb | apache-2.0 | 15,103 | 474 | codeparrot/github-code |
c0062a5c1f98ca43798691028bc6ec32af5be33cdc5b105154d5e93d8d0e989f | // Copyright 2000-2019 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 org.jetbrains.plugins.groovy.gant;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.LangDataKeys;
import com.intellij.psi.Ps... | Java | plugins/groovy/src/org/jetbrains/plugins/groovy/gant/NewGantScriptAction.java | msebire/intellij-community | apache-2.0 | 2,820 | 78 | codeparrot/github-code |
4eef39094e81a777dff8aa0f1235bc92046420abef1b0f89d7aa429d228c2f17 | package api
import (
"fmt"
"mime"
"os"
"path"
"strings"
log "github.com/Sirupsen/logrus"
"github.com/docker/docker/engine"
"github.com/docker/docker/pkg/parsers"
"github.com/docker/docker/pkg/version"
"github.com/docker/libtrust"
)
const (
APIVERSION version.Version = "1.16"
DEFAULTHTTPHOST ... | GO | Godeps/_workspace/src/github.com/docker/docker/api/common.go | ajoy123/docker-machine | apache-2.0 | 2,370 | 80 | codeparrot/github-code |
1e2ad697e3e7e68d5e669a7a7af1917f560b251f0100ce2fb5ece3042842a98b | package com.twitter.finagle.server
import com.github.benmanes.caffeine.cache.{Cache, Caffeine}
import com.twitter.conversions.DurationOps._
import com.twitter.finagle.stats.{Counter, Gauge, StatsReceiver, Verbosity}
import com.twitter.finagle.{
Filter,
Service,
ServiceFactory,
ServiceFactoryProxy,
Stack,
S... | Scala | finagle-core/src/main/scala/com/twitter/finagle/server/ThreadUsage.scala | luciferous/finagle | apache-2.0 | 4,911 | 160 | codeparrot/github-code |
9be2dbcfcfed04f762a1d6d44edbcf6a476c15aef66cd67f38c5fd1dddda590a | /**
* Copyright (c) 2016-present, RxJava Contributors.
*
* 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 l... | Java | src/main/java/io/reactivex/internal/operators/flowable/FlowableSkipWhile.java | NiteshKant/RxJava | apache-2.0 | 3,028 | 98 | codeparrot/github-code |
a4c5ca2d6896acd767c578ed72e58c4bef8f7555d997eeb09d4b8451ed4afb8f | package com.krux.hyperion.activity
import com.krux.hyperion.HyperionContext
import com.krux.hyperion.adt.{HBoolean, HS3Uri}
import com.krux.hyperion.common.{BaseFields, PipelineObjectId}
import com.krux.hyperion.expression.RunnableObject
import com.krux.hyperion.resource.{Ec2Resource, Resource}
/**
* The server-sid... | Scala | contrib/activity/definition/src/main/scala/com/krux/hyperion/activity/PgpEncryptActivity.scala | sethyates/hyperion | apache-2.0 | 2,005 | 52 | codeparrot/github-code |
a681cd56c8d01b7d122996e37bbc314e311338ac8d77b727df57a17bc42a8a32 | /*
Copyright (c) 2007 Cyrus Daboo. 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 re... | C | Linux/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/POP3_Account_Panels/CPrefsPOP3Account.h | mbert/mulberry-main | apache-2.0 | 1,200 | 40 | codeparrot/github-code |
2012590053742a09cc64a750df99de95a769ebec200ad89ff8e0c30d19b99da0 | package com.echo.controller;
import org.jboss.netty.buffer.ChannelBuffer;
import com.strategicgains.restexpress.Request;
import com.strategicgains.restexpress.Response;
/**
* @author toddf
* @since Aug 31, 2010
*/
public class EchoController
extends AbstractDelayingController
{
private static final String ECH... | Java | examples/echo/src/java/com/echo/controller/EchoController.java | kushalagrawal/RestExpress | apache-2.0 | 1,142 | 50 | codeparrot/github-code |
13cf9cd5016f6d9ae9024101b7d57b41ac137407ca0a0d5c7ab83c909b059eac | /**
* (C) Copyright IBM Corp. 2015 - 2017
*
* 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 applicabl... | Scala | cli/src/test/scala/com/ibm/sparktc/sparkbench/workload/sql/SQLWorkloadTest.scala | ecurtin/spark-bench | apache-2.0 | 1,795 | 55 | codeparrot/github-code |
b6d4529a7662b1a3016385b192724d656c42c834120303d137731442cbc31c2d | /*
* Copyright (C) 2015-2017 NS Solutions Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | pitalium/src/test/java/com/htmlhifive/pitalium/it/exec/cap/IllegalBrowserWithAppropriateBroweserTest.java | hifive/hifive-pitalium | apache-2.0 | 1,958 | 69 | codeparrot/github-code |
8d8a31311eb7c5dbe527e2276625a3eeb16fe409fcd348afde8ce024a6bd8efa | /**
* Copyright 2016 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 | extensions/amp-jwplayer/0.1/amp-jwplayer.js | cory-work/amphtml | apache-2.0 | 5,718 | 191 | codeparrot/github-code |
6ca8dcae84dcd404cc6524181def9c261de0bd62911bb0968e9db001989a1f44 | /*
* Copyright 2010-2017 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 "license" fil... | C++ | aws-cpp-sdk-route53/source/model/UpdateTrafficPolicyInstanceRequest.cpp | cedral/aws-sdk-cpp | apache-2.0 | 2,074 | 70 | codeparrot/github-code |
c9b833358761fece230dccdd0185d3cabcc0ae4d6611b786564a67f6fa312550 | // Re-install all extensions
var extender = require('./extender'),
Q = require('q'),
extConfig = extender.getExtensionsConfig(),
types,
names,
currentInstall = Q(),
installCount = 0,
config;
// Read the extensions and reinstall each of them
types = Object.keys(extConfig);
for (var i = types... | JavaScript | utils/reinstall-extensions.js | deepforge-dev/deepforge | apache-2.0 | 942 | 31 | codeparrot/github-code |
a4a472c21714390cd6a23b25ac988478e1178ca8b47d7669c6e97c1e8686f7cf | <?php
// Include the DB access credentials
require 'dbcred.php';
// Include the PEAR Structures_DataGrid class
require 'Structures/DataGrid.php';
// instantiate grid for 2 records per page
$datagrid = new Structures_DataGrid(2);
// Define our Datasource options, in this case MDB2 MySQL
$options = arr... | PHP | book-examples/phpant2-master/chapter_05/examples/pearDataGrid.php | ZeusbaseWeb/zeusbasePHP | apache-2.0 | 2,716 | 88 | codeparrot/github-code |
ce0cb08684f034002d0160acb233f0dff940637567f0b668e4de361675d47d48 | # copied from aiopg
# https://github.com/aio-libs/aiopg/blob/master/aiopg/pool.py
import asyncio
import collections
from .connection import connect
from .utils import _PoolContextManager, _PoolConnectionContextManager
__all__ = ['create_pool', 'Pool']
def create_pool(minsize=10, maxsize=10, echo=False, loop=None,
... | Python | aioodbc/pool.py | aio-libs/aioodbc | apache-2.0 | 5,833 | 192 | codeparrot/github-code |
565dce870831489f0d5404df8852a936a1655102a02104b865e4b246e544b479 | #region Copyright
// Copyright 2015 Constantin Pascal
//
// 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... | C# | EntityTest/Engine/PropertyRuleSet/Strategies/PropertyValidationStrategy.cs | TestMonkeys/EntityTest | apache-2.0 | 1,513 | 43 | codeparrot/github-code |
433728db6a1c17be331d7dbefaf06dabeb6ad43aeb3dbf8036b5ac82dc614713 | /* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.resourceIndex;
import java.util.Collections;
import java.util.Set;
import org.... | Java | fcrepo-server/src/main/java/org/fcrepo/server/resourceIndex/ServiceDeploymentTripleGenerator.java | hbarnard/fcrepo-phaidra | apache-2.0 | 860 | 34 | codeparrot/github-code |
a8e8d3f7b5099c9b255343ed91b7f5f31a0532d8ba6606a6bc4ad3162b1cf1cc | package ru.job4j;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
//import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
/**
* Test Tracker.
*
* @author Aliaksandr Yatsushkevich (mailto:fenix8x@gmail.com)
* @version $Id$
* @since 0.1
*/
public class StubInputTest... | Java | chapter_002/Tracker/src/test/java/ru/job4j/StubInputTest.java | Fenix7x/Java-A-to-Z | apache-2.0 | 3,175 | 90 | codeparrot/github-code |
c60acea15d86fe65667fb42ef4937ea35bd70ae4521a588fc9fe8f142939fe01 | V1::GridsApi.route('grid_container_logs') do |r|
# GET /v1/grids/:name/container_logs
r.get do
r.is do
scope = @grid.container_logs
nodes = nil
services = nil
container_names = nil
limit = (r['limit'] || 100).to_i
follow = r['follow'] || false
from = r['from']
si... | Ruby | server/app/routes/v1/grids/grid_container_logs.rb | christofferh/kontena | apache-2.0 | 2,402 | 70 | codeparrot/github-code |
e0d10cdae080cb999af9df00bbcf3581dceb1c12dceba69970e71a2d2ec19a1b | /*
* Copyright 2003-2008 Dave Griffith, Bas Leijdekkers
*
* 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 applicab... | Java | plugins/InspectionGadgets/src/com/siyeh/ig/j2me/AnonymousInnerClassMayBeStaticInspection.java | IllusionRom-deprecated/android_platform_tools_idea | apache-2.0 | 1,126 | 30 | codeparrot/github-code |
f2f574defc5621e269e7cf104628100ddb3a6c6ce81a1119d5e816827ec11dd8 | /*
* Copyright 2021 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 | server/src/main/java/com/thoughtworks/go/server/service/SecurityAuthConfigService.java | GaneshSPatil/gocd | apache-2.0 | 6,611 | 130 | codeparrot/github-code |
2995714c4d15d99f043fd4c5c22a131611643bebe28906d9827687a9b569debd | package be.jvb.ipv6;
import org.junit.Test;
import static be.jvb.ipv6.IPv6Address.fromString;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
/**
* @author Jan Van Besien
*/
public class IPv6AddressPoolTest
{
@Test(expected = Ill... | Java | tags/ipv6-0.2/src/test/java/be/jvb/ipv6/IPv6AddressPoolTest.java | snoopy7713/java-ipv6 | apache-2.0 | 6,784 | 172 | codeparrot/github-code |
1a62a60db2338aefa50659f464092c4359ba351413546a3792c9a85cd2023503 | /*
Copyright 2016 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | GO | mungegithub/mungers/matchers/comment/comment.go | k8s-packages-power/contrib | apache-2.0 | 1,446 | 51 | codeparrot/github-code |
d5fbcfb818a6cdaf50287f28f445882c42504eeaed345a72ca1451d633e67235 | define([
'foreground/view/behavior/tooltip',
'text!template/appBar/playlistTitle.html'
], function (Tooltip, PlaylistTitleTemplate) {
'use strict';
var PlaylistTitleView = Marionette.ItemView.extend({
className: 'appBar-text text u-textOverflowEllipsis js-textTooltipable',
template: _.... | JavaScript | src/js/foreground/view/appBar/playlistTitleView.js | 1hella/StreamusChromeExtension | apache-2.0 | 882 | 35 | codeparrot/github-code |
a86a529cdeadf2dcb52ead5f8bad4ce8f08f4aceee4f62cab202c29dabbefa9e | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="generator" content="JsDoc To... | HTML | doc/0.9.8/guacamole-common-js/symbols/Guacamole.Keyboard.html | mike-jumper/incubator-guacamole-website | apache-2.0 | 29,418 | 1,202 | codeparrot/github-code |
2d11879b11cebed700f5aaa2bf497cfa6cd5c2a687aa91b3c02a9b3acfd4edee | /*
* 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-amqp/src/test/java/org/apache/camel/component/amqp/AMQPToDTest.java | pmoerenhout/camel | apache-2.0 | 2,995 | 84 | codeparrot/github-code |
f9d828ae9d269433da8e8fc27858c54c242666364592361005850efbdb14a019 | // Copyright 2000-2018 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 org.jetbrains.java.decompiler.main;
import org.jetbrains.java.decompiler.code.CodeConstants;
import org.jetbrains.java.decompiler.main.ClassesProcessor.ClassNode;
import ... | Java | plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/main/ClassWriter.java | jk1/intellij-community | apache-2.0 | 42,160 | 1,077 | codeparrot/github-code |
95b4d6ed37b29e2d62d3ff2fac857c96ccbac005b2a357167d5cceac68e553b7 | /*
Copyright 2017 The Kubernetes 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 in writing, ... | GO | test/e2e/network/dns_common.go | houming-wang/kubernetes | apache-2.0 | 18,409 | 615 | codeparrot/github-code |
4253470fb0f7c59d5099f034fbe381084351c3ffa39ffcdc8511308189461bc9 | /*
* Copyright 2002-2015 Barcelona Supercomputing Center (www.bsc.es)
*
* 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
*
* Unl... | Java | apps/HeatSweeper/src/main/java/es/bsc/mobile/apps/heatsweeper/Report.java | flordan/final | apache-2.0 | 2,351 | 94 | codeparrot/github-code |
7dbf358e5f0d8ee5723f2e5b7bdada2d0bc38c785b20b5cda63f40bb693ebf9f | package nkp.pspValidator.gui;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;
import javafx.stage.DirectoryChooser;
import javafx.stage.WindowEvent;
import nkp.pspValidator.shared.StringUtils;
import nkp.pspVali... | Java | javaFxModule/src/main/java/nkp/pspValidator/gui/ValidationResultsSummaryDialogController.java | NLCR/komplexni-validator | apache-2.0 | 3,188 | 100 | codeparrot/github-code |
eb75bd3f7f31bb03a9670e09b01b46f0fa75aab1aad240f6d4a1819aa02e5ce8 | /*
* This file is part of SGEA - Sistema de Gestão de Eventos Acadêmicos - TADS IFNMG Campus Januária.
*
* SGEA is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | Java | Projetos/GerenciadorEventosWeb/src/java/br/edu/ifnmg/GerenciamentoEventos/Infraestrutura/Dados/LogDAO.java | dsalinux/caixa-eletronico | apache-2.0 | 1,616 | 52 | codeparrot/github-code |
075b72d6610578e59e7124cbaf776a1e5d9b5e8733109ff5791d00523b18d44e | /*
* Copyright (C) 2012 Baidu.com 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 | testrunner/src/com/baidu/cafe/local/record/ViewRecorder.java | 0359xiaodong/Cafe | apache-2.0 | 84,546 | 2,178 | codeparrot/github-code |
3b39e3cda57ec87876dba003b1b9c80e35ea8a648dcb2b833b31f05e6b01841f | /*
* 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 | blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/generation/RequestAttributeGenerator.java | apache/cocoon | apache-2.0 | 8,052 | 196 | codeparrot/github-code |
16d6a92789d3676321f1102dfc7cf264918178c5d2812c089b910b3633cb9071 | /*
* Copyright 2014 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 | rpc/src/main/java/com/navercorp/pinpoint/rpc/server/DefaultPinpointServer.java | eBaoTech/pinpoint | apache-2.0 | 20,885 | 540 | codeparrot/github-code |
ca60366048f0126b1b8e5f2faa6a2fb6515821d12f79ae421cf23c56a06e410d | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="../../../../... | HTML | android-test-kit/docs/android-support-test-javadocs-0.1/espresso/espresso-idling-resource-2.0-javadoc/reference/android/support/test/espresso/package-summary.html | Sherchen/android-test-kit | apache-2.0 | 20,467 | 712 | codeparrot/github-code |
fb6b33422d4c3760229d613565a64441eb7bec6e2fd296dfbd5df38a772f490e | /* __ __ __ __ __ ___
* \ \ / / \ \ / / __/
* \ \/ / /\ \ \/ / /
* \____/__/ \__\____/__/
*
* Copyright 2014-2017 Vavr, http://vavr.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | Java | vavr/src/test/java/io/vavr/collection/StringTest.java | ummels/vavr | apache-2.0 | 7,520 | 262 | codeparrot/github-code |
b76c16b56b1837e37a3b8465811216345a58c4e7401b7d8d3a6eb5f666a33d3c | /*
Copyright 2016 The Kubernetes 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 in writing, ... | GO | cmd/kubeadm/app/apis/kubeadm/validation/validation.go | kad/kubernetes | apache-2.0 | 10,497 | 301 | codeparrot/github-code |
6fe46c8b8deeb1039108da347843fe743d87169f497935170978215efe533d78 | #!/usr/bin/env python
# This file is part of Androguard.
#
# Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr>
# All rights reserved.
#
# Androguard is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation,... | Python | apkviewer.py | xysec/androguard | apache-2.0 | 3,140 | 98 | codeparrot/github-code |
d4ac5fff08aca5ddd2011bce42b51406b4997c3ed3cbbc4f2274e2bfd5b06223 | <?php
/*------------------------------------------------------------------------
# plg_extravote - ExtraVote Plugin
# ------------------------------------------------------------------------
# author Joomla!Vargas
# copyright Copyright (C) 2010 joomla.vargas.co.cr. All Rights Reserved.
# @license - http://www.gnu.or... | PHP | plugins/content/tz_portfolio_vote/assets/ajax.php | doomchocolate/dreame-mall | apache-2.0 | 3,245 | 94 | codeparrot/github-code |
818b780eb23cd4d184a09d49193b3dd5a02ba705ec09deeeec8c8dd3581b9f03 | /* ieee802154_nrf5.h - nRF5 802.15.4 driver */
/*
* Copyright (c) 2017 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_NRF5_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_NRF5_H_
#include <net/ieee802154_radio.h>
#define NRF5_FCS_LENGTH (2)
#def... | C | drivers/ieee802154/ieee802154_nrf5.h | galak/zephyr | apache-2.0 | 2,744 | 98 | codeparrot/github-code |
8cd03aefa03b068638270c3ee3d1e78a6020cf57a44e4ba72de16983dfc71336 | /*
* 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 | processing/src/main/java/org/apache/druid/segment/filter/OrFilter.java | deltaprojects/druid | apache-2.0 | 7,084 | 222 | codeparrot/github-code |
b83f993ccc043aaf48870b46d0da082fceef168cca3ae202be42d91bc4881f33 | /*
* Copyright 2018 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | end-to-end/connector/src/main/java/com/google/cloudsearch/tutorial/GithubRepository.java | gsuitedevs/cloud-search-samples | apache-2.0 | 33,095 | 858 | codeparrot/github-code |
3a340658a0be895b01c85c83697d524913c7dded878931765458ab92e7cdd8d6 | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | Java | deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/word2vec/VocabWord.java | deeplearning4j/deeplearning4j | apache-2.0 | 5,121 | 163 | codeparrot/github-code |
955f5532a44b03f97853094c722a53e84f7074ddf9f7eb7e78b90fea0f4058d0 | //代码生成时,文件路径: E:/platform/myProject/svn/oss/quickbundle/trunk/quickbundle-securityweb/src/main/java/org/quickbundle/third/quartz/jobdetail/util/IJobDetailConstants.java
//代码生成时,系统时间: 2012-04-02 22:28:47
//代码生成时,操作系统用户: qb
/*
* 系统名称:单表模板 --> quickbundle-securityweb
*
* 文件名称: org.quickbundle.third.quartz.jobdetail.u... | Java | archetype/quickbundle-securityweb/src/main/java/org/quickbundle/third/quartz/jobdetail/util/IJobDetailConstants.java | quickbundle/javasec | apache-2.0 | 1,656 | 61 | codeparrot/github-code |
4bca20fa38c0e9a09f15f6814d90554a581e3e515b4899311187fc51fe1316df | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | src/java/org/apache/cassandra/streaming/StreamResultFuture.java | jasonstack/cassandra | apache-2.0 | 10,157 | 245 | codeparrot/github-code |
fe490c77982ccb8c1f73adba288bea1010bf589f3910656b0475d76e34587f14 | //: ----------------------------------------------------------------------------
//: Copyright (C) 2015 Verizon. 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 Licen... | Scala | chemist/src/test/scala/ShardingSpec.scala | neigor/funnel | apache-2.0 | 3,582 | 100 | codeparrot/github-code |
020dbb370550b95b35b7f875702020800f4cfc17ea70ab10e641a89ed1e32084 | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
/// <reference path="jqwidgets.d.ts" />
import '../jqwidgets/jqxcore.js';
import '../jqwidgets/jqxdraw.js';
import '../jqwidgets/jqxknob.js';
import { Component, Input, Output, EventEmitter, ElementRef, OnChange... | TypeScript | frontend/jqwidgets/jqwidgets-ts/angular_jqxknob.ts | liamray/nexl-js | apache-2.0 | 11,208 | 389 | codeparrot/github-code |
61256373b8d58e55244f1ef0d2f6ea6c7a21937d37bfc1d2448ba9f31f3abe04 | /**
* 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 | pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/ValidatorUtils.java | massakam/pulsar | apache-2.0 | 12,116 | 252 | codeparrot/github-code |
d5619ab430a803681c870cc69da110e38ca6b85055bb785be610bc3921bc5d97 | package mil.nga.giat.geowave.store.dimension;
import mil.nga.giat.geowave.index.sfc.data.NumericData;
import mil.nga.giat.geowave.index.sfc.data.NumericRange;
import mil.nga.giat.geowave.store.index.CommonIndexValue;
import com.google.common.math.DoubleMath;
import com.vividsolutions.jts.geom.Coordinate;
import com.v... | Java | geowave-store/src/main/java/mil/nga/giat/geowave/store/dimension/GeometryWrapper.java | viggyprabhu/geowave | apache-2.0 | 2,721 | 97 | codeparrot/github-code |
0dff5688360fabdc6c449ac988b6ebbbb0168f1d49bf025b52b730bad222598f | /*******************************************************************************
* Copyright 2013
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
... | Java | dkpro-similarity-master/dkpro-similarity-experiments-rte-gpl/src/main/java/dkpro/similarity/experiments/rte/util/GoldstandardWriter.java | TitasNandi/Summer_Project | apache-2.0 | 3,878 | 121 | codeparrot/github-code |
b5755267101b3290a653455b4c694afe9d3c63fec91f9ec635b4e3fa252e8595 | package algorithm.lp.networkflow;
import java.util.Iterator;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.jgrapht.alg.EdmondsKarpMaximumFlow;
import org.jgrapht.graph.DefaultDirectedGrap... | Java | GraphAlgorithms/networkflow/NetworkFlowTest.java | yubinbai/javatemplates | apache-2.0 | 5,924 | 184 | codeparrot/github-code |
6208308d9c2a812da2ef0710bc91c20bbae0b37667902e61e9214cea8ca130ae | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/route53-recovery-readiness/model/ListResourceSetsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringSt... | C++ | aws-cpp-sdk-route53-recovery-readiness/source/model/ListResourceSetsRequest.cpp | aws/aws-sdk-cpp | apache-2.0 | 1,116 | 51 | codeparrot/github-code |
750d100dc5f99d88f5fec99d82d2887d9ccfd6cda70d76bdf54034764f03428c | package com.litepaltest.test;
import java.util.ArrayList;
import java.util.List;
import org.litepal.tablemanager.Connector;
import org.litepal.util.BaseUtility;
import org.litepal.util.DBUtility;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.test.AndroidTestCase;
impo... | Java | sample/src/androidTest/java/com/litepaltest/test/LitePalTestCase.java | treejames/LitePal | apache-2.0 | 9,815 | 304 | codeparrot/github-code |
a4b3ac21d0913f961f269f3bcac4df52f53b8599117fa114899346063da33e3e | import {ActionTrust} from '#core/constants/action-constants';
import {Keys} from '#core/constants/key-codes';
import {bezierCurve} from '#core/data-structures/curve';
import {dispatchCustomEvent, tryFocus} from '#core/dom';
import {Layout} from '#core/dom/layout';
import {closest, realChildElements} from '#core/dom/que... | JavaScript | extensions/amp-accordion/0.1/amp-accordion.js | honeybadgerdontcare/amphtml | apache-2.0 | 20,141 | 643 | codeparrot/github-code |
0304e9be9f5b2239da01842f76546a33a6e4eed56a7ba8723fc56606e5912aa4 | /*
* Scala.js (https://www.scala-js.org/)
*
* Copyright EPFL.
*
* Licensed under Apache License 2.0
* (https://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package org.scalajs.testsuite.javalib.util
im... | Scala | test-suite/shared/src/test/require-jdk8/org/scalajs/testsuite/javalib/util/SplittableRandom.scala | nicolasstucki/scala-js | apache-2.0 | 6,308 | 163 | codeparrot/github-code |
266de6ea7479725f564672feb665510a3658a5741dc513a7aae59cedf3a92a98 | /**
* Copyright 2011-2019 Asakusa Framework Team.
*
* 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 | dmdl-project/asakusa-dmdl-core/src/main/java/com/asakusafw/dmdl/source/CompositeSourceRepository.java | ashigeru/asakusafw | apache-2.0 | 3,422 | 115 | codeparrot/github-code |
bb8a002c9442c56fe367a96f8de114328da571125174af92c37c6eda357e9a33 | /*
Copyright (c) 2009 Dave Gamble
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | C | lib/erlang/c_src/src/lib/cat_json.h | dianping/cat | apache-2.0 | 7,784 | 179 | codeparrot/github-code |
1a954e6f68715946ffaf804471ff91bbbcd086fa2dba32ecd5eecb4c4f08dcc8 | /**
* @license Copyright 2017 Google 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 required by applicable law or a... | JavaScript | lighthouse-core/gather/gatherers/css-usage.js | tkadlec/lighthouse | apache-2.0 | 1,266 | 32 | codeparrot/github-code |
27a09068d411e883c51dbb155a9039008f5cdacbf3ac23ba14c33ddb7fd69271 | /*
* Copyright 2022 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 | spark/spark-base/src/main/java/com/thoughtworks/go/spark/Link.java | gocd/gocd | apache-2.0 | 930 | 36 | codeparrot/github-code |
5e7fdc1fee890b82d4afbc07062fcc266ca37b8ba1f482fe0ef255c89aed2af0 | =head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
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/licen... | Perl | modules/Bio/EnsEMBL/Utils/PolyA.pm | mjg17/ensembl | apache-2.0 | 7,735 | 332 | codeparrot/github-code |
08f448b419ac99cec679d031266763748b9fb5cd772046e251f99070846a06b6 | import sqlalchemy as SA
import pushmanager.core.db as db
from pushmanager.core.mail import MailQueue
from pushmanager.core.requesthandler import RequestHandler
import pushmanager.core.util
class DelayRequestServlet(RequestHandler):
def post(self):
if not self.current_user:
return self.send_er... | Python | pushmanager/servlets/delayrequest.py | hashbrowncipher/pushmanager | apache-2.0 | 2,656 | 73 | codeparrot/github-code |
bcd35e151dc197c5d00b3ffd5ca689e057b4e070deb1fa9575be08304de5d7be | // Copyright 2000-2019 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.ide.ui.laf;
import com.intellij.ide.ui.UITheme;
import com.intellij.ide.ui.laf.darcula.DarculaLaf;
import com.intellij.ide.util.PropertiesComponent;
import c... | Java | platform/platform-impl/src/com/intellij/ide/ui/laf/UIThemeBasedLookAndFeelInfo.java | msebire/intellij-community | apache-2.0 | 5,112 | 140 | codeparrot/github-code |
3fb16e1343c6dc2f2125676b2f4bbc88e23587d6177ff84e1e7fd62b343cf47f | /*
* Copyright 2015 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Scala | src/main/scala/uk/gov/hmrc/play/http/HttpErrorFunctions.scala | liquidarmour/http-verbs | apache-2.0 | 3,479 | 75 | codeparrot/github-code |
7c7328258bd7a6d1d3bcc6bcd709c783a001a010d2c03423ad5081ba9d1fdb23 | // 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... | C++ | experiments/editorFramework/src/Toolkit_Layer_1/qt/qt_classes.hpp | apache/incubator-corinthia | apache-2.0 | 4,949 | 155 | codeparrot/github-code |
8c95bfff101d14fcd209c4fa3853b320f0135e3bebb13ca93d66169308df87c1 | /**
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not u... | Java | impl/src/main/java/org/jboss/arquillian/warp/impl/server/test/LifecycleTestEnrichmentWatcher.java | CSchulz/arquillian-extension-warp | apache-2.0 | 4,577 | 135 | codeparrot/github-code |
a6da9f850f498e2815150e0134eb4a061b041c6c067e52cbafd45b71234d8560 | // Copyright 2015 Google 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 required by applicable... | Java | examples/dfp_axis/src/main/java/dfp/axis/v201505/inventoryservice/GetAllAdUnits.java | raja15792/googleads-java-lib | apache-2.0 | 3,220 | 89 | codeparrot/github-code |
caea0535b823976d5bd366b9843ec17baf53f0ee9ebe5edaf358ca7b99de799b | /*
Copyright Microsoft Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRAN... | C# | MileageStats.Web/Models/VehicleDetailsViewModel.cs | mspnp/mobile-web | apache-2.0 | 2,098 | 73 | codeparrot/github-code |
4c0b0caefe51f1a9b386adc816f54b7f6f16a9c77d9e4d6a3931d6daf9eff896 | package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"sort"
"github.com/spf13/cobra"
"github.com/lxc/lxd/lxc/utils"
"github.com/lxc/lxd/shared"
cli "github.com/lxc/lxd/shared/cmd"
"github.com/lxc/lxd/shared/i18n"
"github.com/lxc/lxd/shared/termios"
)
type cmdConfigTemplate struct {
global *cmdGlobal
co... | GO | lxc/config_template.go | Skarlso/lxd | apache-2.0 | 7,748 | 337 | codeparrot/github-code |
76fd8bd41b34e91b057ada57f3aeebef58a910cb7f96beca8fdc6faa5bdb98b7 | /**
* Copyright 2016 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 | extensions/amp-analytics/0.1/variables.js | prateekbh/amphtml | apache-2.0 | 17,804 | 610 | codeparrot/github-code |
8dea64f6dd21c06a62402db1b5e15d50ffd453b0952d5fa91327a9b0874caaa8 | /*
* 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 | nbandroid.layout.impl/src/main/java/sk/arsi/netbeans/gradle/android/layout/impl/LayoutIO.java | NBANDROIDTEAM/NBANDROID-V2 | apache-2.0 | 3,134 | 105 | codeparrot/github-code |
4308f0ca827e6c116c437d2d83ed4d3b0a47a012f8ca3362a2ef123fded0a4c2 | package core.networking;
import core.Logger;
import core.Pin;
import core.Validations;
import javafx.application.Platform;
import layouts.EmbeddedLayout;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import java.util.concurrent.Callable;
class SendM... | Java | gui/src/main/java/core/networking/SendMacro.java | px3/silverknife | apache-2.0 | 3,835 | 100 | codeparrot/github-code |
af04e420e34ae5e6c3bb5bcf260152311767f41e471d68a5dbb494617ee3f358 | /*
* 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-aws/camel-aws2-eventbridge/src/test/java/org/apache/camel/component/aws2/eventbridge/localstack/EventbridgeDisableRuleIT.java | apache/camel | apache-2.0 | 4,363 | 112 | codeparrot/github-code |
4d71863fa55fb9856fe981c2de28b25d655500a01a4a4f44f68194a77c38eb1a | #ifndef BINARY_SEARCH_TREE_H
#define BINARY_SEARCH_TREE_H
#include "Collection.h"
#include "BinaryNode.h"
#include "TreeTraversal.h"
#include "CircularQueue.h"
//This is an interface. An interface does not have any
//concrete implementation.
template <typename T>
class BinarySearchTree : public Collection<T>
{
prote... | C | ADTs/BinarySearchTree.h | humboldt-cs/ADTs-cplusplus | apache-2.0 | 7,219 | 264 | codeparrot/github-code |
c063d64c566a686024bc501bfd58f902740a868db90882a80aa985ceeb2ddfaa | package com.github.vedenin.eng.stream_api;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.stream.Collectors;
/**
*
* Distinct method example in Stream Api
*
* Created by vedenin on 17 .10.15.
*/
public class DistinctTests {
private stat... | Java | stream_api/src/com/github/vedenin/eng/stream_api/DistinctTests.java | Vedenin/java_in_examples | apache-2.0 | 1,163 | 34 | codeparrot/github-code |
9299021b54b8efcb45538255bb2debce548ab138925642139f03a56baa0061a1 | // Copyright 2000-2018 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 org.jetbrains.jps.model.serialization;
import com.intellij.openapi.util.JDOMUtil;
import org.jdom.Element;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.a... | Java | jps/model-serialization/src/org/jetbrains/jps/model/serialization/JDomSerializationUtil.java | msebire/intellij-community | apache-2.0 | 2,503 | 73 | codeparrot/github-code |
b29972fa0c1acae783ddd6ea71d178df626b27138577db46134e999e4c670e07 | # -*- coding: utf-8 -*-
# (c) 2017-2019, ETH Zurich, Institut fuer Theoretische Physik
# Author: Dominik Gresch <greschd@gmx.ch>
"""
Defines a crystal lattice class.
"""
import numpy as np
import scipy.linalg as la
from fsc.export import export
# TODO: move to a separate module # pylint: disable=fixme,useless-suppr... | Python | bands_inspect/lattice.py | Z2PackDev/bands_inspect | apache-2.0 | 1,413 | 49 | codeparrot/github-code |
26173430f5f1310dcbc7d5063b2568c2bea83ec06e193d9bad05ef258efc7d60 | /*
* 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 n... | Java | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/EncryptedSnapshotTest.java | NSAmelchev/ignite | apache-2.0 | 11,499 | 299 | codeparrot/github-code |
8d3749e92e3fe7245338932b15c0beedbe6ad4cb4ea445ebc5980f3b2f7407f4 | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... | JavaScript | desktop/core/src/desktop/js/ko/components/ko.globalSearch.js | kawamon/hue | apache-2.0 | 20,424 | 603 | codeparrot/github-code |
5bc10a15f59598b663c9ae919729ecee07164ce3ebbf50d1ba6d543509c47488 | package org.jetbrains.plugins.scala
package lang
package refactoring
package introduceVariable
import org.jetbrains.plugins.scala.lang.psi.api.base.types.ScTypeElement
/**
* Created by Kate Ustyuzhanina
* on 8/18/15
*/
object OccurrenceData {
def apply(typeElement: ScTypeElement,
usualOccurrence: Arr... | Scala | src/org/jetbrains/plugins/scala/lang/refactoring/introduceVariable/OccurrenceData.scala | ilinum/intellij-scala | apache-2.0 | 2,406 | 59 | codeparrot/github-code |
a035e1a27d53808e230cba2e9ebdb56647a677a69945cd8ee70cdbf4b1e455f7 | # 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 under the... | Python | openstack/cloud/_block_storage.py | openstack/python-openstacksdk | apache-2.0 | 36,405 | 951 | codeparrot/github-code |
e750ad99c491f2322c3a625b1bb08164d039bcbdb4b8cd5803bc857f336a2071 | /* Copyright 2009 - 2010 The Stajistics Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | Java | stajistics-core/src/test/java/org/stajistics/data/AbstractDataContainerTestCase.java | lptr/stajistics | apache-2.0 | 6,747 | 222 | codeparrot/github-code |
409b70879d6e29da40f06730dde9acb187e020987d0c99ef05e218881d1101f8 | /*
* Copyright 2018 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 | back-end/hub-core/src/main/java/io/apicurio/hub/core/beans/Invitation.java | apiman/apiman-studio | apache-2.0 | 3,358 | 169 | codeparrot/github-code |
d296d75412dd202a1753858df9bbe20baa0aca4ae2350270043367fe3b89685a | /*
* 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 | src/main/java/org/apache/xmlgraphics/ps/PSProcSets.java | apache/xml-graphics-commons | apache-2.0 | 15,370 | 362 | codeparrot/github-code |
49bd6f61531f7f7a054c791bbb024f141a7d3a9bab9e8523550bd3017f88815c | package io.ebean.typequery.agent;
import io.ebean.typequery.PLong;
import org.junit.Test;
import prototype.domain.query.QAddress;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import stati... | Java | src/test/java/io/ebean/typequery/agent/EnhanceTest.java | ebean-orm/avaje-ebeanorm-typequery-agent | apache-2.0 | 959 | 38 | codeparrot/github-code |
9d076ee2efe9a33737114d72d11452429a4a984a60af953b5cefe481bc2f5aba | #!/usr/bin/env node
'use strict';
var COUCH_HOST = process.env.COUCH_HOST || 'http://127.0.0.1:5984';
var HTTP_PORT = 8000;
var CORS_PORT = 2020;
var cors_proxy = require('corsproxy');
var watch = require('watch-glob');
var Promise = require('bluebird');
var http_proxy = require('pouchdb-http-proxy');
var http_serve... | JavaScript | bin/dev-server.js | nolanlawson/worker-pouch | apache-2.0 | 3,170 | 120 | codeparrot/github-code |
aa420fb622806928781fe5a239605ecf9ee8bd3f767796e970e424b72baf906b | /*
* 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/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtTxPrepareRequest.java | dmagda/incubator-ignite | apache-2.0 | 15,543 | 561 | codeparrot/github-code |
1acb7aeeb3469e133b3f4270fc7423ff44b21b80ae7dd3e16ad7743773dc2d0c | /*****************************************************************************
* *
* PrimeSense Sensor 5.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. *
... | C++ | Source/XnDeviceSensorV2/XnSensorClientStream.cpp | gordonmcshane/Sensor | apache-2.0 | 10,766 | 331 | codeparrot/github-code |
bbd1ed4f8a659c07d49776e56626ebd8bfe8746d85646353664d79b194ace007 | /*
* 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 | bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidatorContextImpl.java | dblevins/bval | apache-2.0 | 5,616 | 161 | codeparrot/github-code |
8ce9c4176c07d8a69a10b1eb51393d59aae9ee3b2d110fa533b2ff85eca71e04 |
package org.fcrepo.server.security.xacml.util;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.PrintWriter;
import java.io.Writer;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.fcrepo.utilities.ReadableCharArrayWriter;
import org.fcrep... | Java | fcrepo-security/fcrepo-security-pep/src/main/java/org/fcrepo/server/security/xacml/util/DataUtils.java | hbarnard/fcrepo-phaidra | apache-2.0 | 2,454 | 76 | codeparrot/github-code |
bfb7204c97ec5a82b8deae0d0940352461baffcd5c500a3db33204e4244c8aa6 | namespace dp2Circulation
{
partial class BiblioSaveToDlg
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | C# | dp2Circulation/EntityForm/BiblioSaveToDlg.Designer.cs | DigitalPlatform/dp2 | apache-2.0 | 13,105 | 226 | codeparrot/github-code |
750aa88e1c55694cdeb499e29b6b7b57b32b8a78332cf27bb44e053d33ae2a9f | import { factory } from '../../utils/factory.js'
import { deepMap } from '../../utils/collection.js'
import { signNumber } from '../../plain/number/index.js'
const name = 'sign'
const dependencies = ['typed', 'BigNumber', 'Fraction', 'complex']
export const createSign = /* #__PURE__ */ factory(name, dependencies, ({ ... | JavaScript | src/function/arithmetic/sign.js | FSMaxB/mathjs | apache-2.0 | 1,652 | 64 | codeparrot/github-code |
a4552461e5d3cf19675dd51ba7791988432f4bd92b5de9455237c8d1eb7df03a | using System;
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
using Helios.Buffers;
using Helios.Exceptions;
using Helios.Ops;
using Helios.Serialization;
using Helios.Topology;
namespace Helios.Net
{
/// <summary>
/// Typed delegate used for handling received data
/// </summary>... | C# | src/Helios/Net/IConnection.cs | amccool/helios | apache-2.0 | 6,370 | 183 | codeparrot/github-code |
030d54884627a35d239b43852499896b1d0acc90b3b35abf344adfd6ce137c73 | __author__ = 'Jonathan Brodie'
import ctypes
from hzclient.clientmessage import ClientMessage
from util import util
'''
PUT
'''
def putEncode():
msg=ClientMessage()
msg.optype=0x1101
util.raiseNotDefined()
def putDecode(bytesobject):
servermsg=ClientMessage.decodeMessage(bytesobject)
util.raiseNotDe... | Python | hzclient/codec/transactionalmultimapcodec.py | hazelcast-incubator/pyhzclient | apache-2.0 | 1,449 | 69 | codeparrot/github-code |
3b623a65eca16ea7b6d68012a26a8812efc6fd191facc856628b1d50d1f49ba5 | package com.miaotu.activity;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;
import com.miaotu.R;
public class RedPackageIntroduceActivity extend... | Java | MiaoTu/src/main/java/com/miaotu/activity/RedPackageIntroduceActivity.java | miaotu3/Mitotu | apache-2.0 | 1,189 | 45 | codeparrot/github-code |
78eb368a6fd960bda58c6aefadeb99432e9610c9d225404112d249e5d61e66de | package so.library.draghelper.youtube;
import android.content.Context;
import android.support.v4.view.MotionEventCompat;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.webkit.WebView;
/**
* Created by minkyu on 2015. 2. 3..
*/
public class CustomWebView e... | Java | app/src/main/java/so/library/draghelper/youtube/CustomWebView.java | KoMinkyu/DragHelperView | apache-2.0 | 1,140 | 45 | codeparrot/github-code |
615e56e6ee70527854f3cd90d154044f7dd3801069dd7a24598a0e36a292bb34 | /*
* 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 n... | Scala | core/src/test/scala/unit/kafka/controller/ControllerEventManagerTest.scala | mihbor/kafka | apache-2.0 | 3,226 | 87 | codeparrot/github-code |
1895176bec287ea3978a31a989b913875c064d1612a10b3c1783e0942ae36218 | // ECMAScript 5 strict mode
"use strict";
assert2(cr, "cr namespace not created");
assert2(cr.plugins_, "cr.plugins_ not created");
/////////////////////////////////////
// Plugin class
cr.plugins_.Rex_CSV2Array = function(runtime)
{
this.runtime = runtime;
};
(function ()
{
var pluginProto = cr.plugins_.Rex_CSV2... | JavaScript | plugins/plugins/rex_csv2array/runtime.js | jasonshortphd/construct2games | apache-2.0 | 8,610 | 302 | codeparrot/github-code |
bb8d34f7bf1924e82106be84e86b5a31a52dfd3ac285d05af6e14dfb3d6e55c2 | package com.yeungeek.camerasample.camera1;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.ImageFormat;
import android.graphics.Matrix;
import android.hardware.Camera;
import android.os.Bundle;
import android.os.Looper;
import android.util.DisplayMetrics;
import android.u... | Java | CameraSample/app/src/main/java/com/yeungeek/camerasample/camera1/Camera1Activity.java | yeungeek/AndroidRoad | apache-2.0 | 13,882 | 440 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.