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 |
|---|---|---|---|---|---|---|---|---|
5c5d485dcac660d7af6363b6b613b728f411f5a5cfbe9db147b8fb744f551244 | <?php
// classpath
namespace Mimoto\Core\entities;
// Mimoto classes
use Mimoto\Core\CoreConfig;
use Mimoto\Core\CoreFormUtils;
use Mimoto\EntityConfig\MimotoEntityPropertyValueTypes;
/**
* InputDropdown
*
* @author Sebastian Kersten (@supertaboo)
*/
class InputDropdown
{
public static function getStructur... | PHP | src/domains/Core/entities/InputDropdown.php | SebastianKersten/Mimoto | apache-2.0 | 4,860 | 140 | codeparrot/github-code |
6c31ffb282b8f6f2f3d0b6630d74e2301db194d90bca1b36726cf6d080ebce42 | /*
* Copyright (c) 2008, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | JavaScript | components/mediation-ui/org.wso2.carbon.message.processor.ui/src/main/resources/web/message_processor/js/tabs.js | maheshika/carbon-mediation | apache-2.0 | 3,504 | 106 | codeparrot/github-code |
bfdd70c48047abb75d580a5bb764dd048f6d7f3fa92c03e7fbdcba967b95d4cb | /*
* 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-fms/include/aws/fms/model/GetNotificationChannelResult.h | cedral/aws-sdk-cpp | apache-2.0 | 4,202 | 133 | codeparrot/github-code |
5672eacedc6f7048f837c6e9de6c59acd7a30f6e1f6cd598f2b0d34758663e40 | /*
* Copyright (C) 2015 Maros Cavojsky, (mpage.sk)
*
* 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 | app/src/main/java/sk/mpage/androidsample/drawerwithauthenticator/authentication/MyAuthenticatorService.java | heriproj/DrawerWithAuthenticator | apache-2.0 | 1,006 | 32 | codeparrot/github-code |
561f7ff265ea05b6f98f9a44c4ea134d646e2070b806366d25a5527288d6f562 | /*
* 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-saxon/src/test/java/org/apache/camel/builder/saxon/XPathAnnotationResultTypeTest.java | nikhilvibhav/camel | apache-2.0 | 2,775 | 75 | codeparrot/github-code |
562990a98e5340625d6aaf4664cf45b4dfef7634f30c92c4bd053eb3ff1cbcd9 | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Toxy.Test
{
[TestFixture]
public class ExcelTextParserTest
{
[Test]
public void TestExcel2003TextParser()
{
ParserContext context = new ParserContext(T... | C# | Toxy.Test/ExcelTextParserTest.cs | yixiangling/toxy | apache-2.0 | 2,801 | 69 | codeparrot/github-code |
909fe59461a0213772fe1ee102b93a0ce61d4b82daf3a4e1666ac60256243fad | package com.scalyr.util;
import com.scalyr.api.logs.EventAttributes;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import static org.testng.Assert.assertEquals;
i... | Java | src/test/java/com/scalyr/util/UtilTest.java | vivint-smarthome/scalyr-logback | apache-2.0 | 2,852 | 67 | codeparrot/github-code |
ff2c748cf8f9366923f432b99a4d8a899c3d27989c906a563d6e35e7ba349a87 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | C | arangod/RocksDBEngine/RocksDBSyncThread.h | Simran-B/arangodb | apache-2.0 | 2,614 | 87 | codeparrot/github-code |
f8cf9d032f6d4783cbf014b5a8535c18aa587382540ef053d52b3a2304974307 | /* The kernel call implemented in this file:
* m_type: SYS_RUNCTL
*
* The parameters for this kernel call are:
* m1_i1: RC_ENDPT process number to control
* m1_i2: RC_ACTION stop or resume the process
* m1_i3: RC_FLAGS request flags
*/
#include "kernel/system.h"
#include <assert.h>
#if USE_RUNCTL
/... | C | minix/kernel/system/do_runctl.c | veritas-shine/minix3-rpi | apache-2.0 | 2,297 | 77 | codeparrot/github-code |
2265224e735897b7c4614d9cb3a92b8658f47d4328ac18bcb75e81b39afdc8a0 | /**
* Copyright (c) 2015 SQUARESPACE, 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 | plugins/squarespace/src/test/java/com/squarespace/template/plugins/platform/CommerceUtilsTest.java | phensley/template-compiler | apache-2.0 | 4,305 | 122 | codeparrot/github-code |
a5af9751ae2fb0c3d4486f25ff3babbc8b174ffa1f9fcc0dd4d709f491783480 | // ----------------------------------------------------------------------------------
//
// 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.apa... | C# | src/ResourceManager/ServiceBus/Commands.ServiceBus/Cmdlets/DRConfig/SetAzureServiceBusGeoDRConfigurationBreakPair.cs | devigned/azure-powershell | apache-2.0 | 5,574 | 110 | codeparrot/github-code |
d923c25a4737e99754942d166f5633294502d5d3101d7a7512e3300567f9ba72 | /*
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014 The Billing Project, LLC
*
* Ning 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/lice... | Java | src/main/java/org/killbill/billing/plugin/meter/api/user/DebugJsonSamplesOutputer.java | killbill/killbill-meter-plugin | apache-2.0 | 3,472 | 73 | codeparrot/github-code |
a184815c94d79ccadc5baeeeea2fe1cb9653d97d129a03b4c2dde01affd3b130 | /*
* 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 | nifi-nar-bundles/nifi-couchbase-bundle/nifi-couchbase-processors/src/test/java/org/apache/nifi/processors/couchbase/TestGetCouchbaseKey.java | InspurUSA/nifi | apache-2.0 | 19,539 | 464 | codeparrot/github-code |
edd6991dbbf134cd6dfb30007efb8047cd3b2700feef6e1edb2dd448cc09a0ef | import sys
from fileutil import *
import json
from wabbit_wappa import *
from subprocess import call
import numpy as np
import random
from socket import *
import threading, Queue, subprocess
import time
import psutil
import pandas as pd
from seldon.pipeline.pandas_pipelines import BasePandasEstimator
from sklearn.util... | Python | python/seldon/vw.py | SeldonIO/seldon-server | apache-2.0 | 12,228 | 349 | codeparrot/github-code |
4c36dfc925d05ffd81dc633b7950bcf37edde0241c59383a1675c9806b19266f | /*
* 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 | bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/v1/CompensateScopeGenerator.java | matthieu/apache-ode | apache-2.0 | 1,983 | 48 | codeparrot/github-code |
33af023be3c607c578b7f4fb6796b647f67cb6b60ece5c2c9d42252408cdf28a | /*
* (c) Copyright 2020 EntIT Software LLC, a Micro Focus company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* The Apache License is available at
* http://www.apache.org/licenses/LICE... | Java | cs-abbyy/src/main/java/io/cloudslang/content/abbyy/utils/InputParser.java | CloudSlang/cs-actions | apache-2.0 | 3,394 | 97 | codeparrot/github-code |
8c24de466b131d42c684359aaa5eef3608049f065a22ea0d58da01465b79315c | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.math.impl.function;
import static org.testng.Assert.assertEquals;
import org.testng.annotations.Test;
import com.opengamma.strata.basics.value.ValueD... | Java | modules/math/src/test/java/com/opengamma/strata/math/impl/function/PiecewisePolynomialFunction1DTest.java | ChinaQuants/Strata | apache-2.0 | 31,502 | 824 | codeparrot/github-code |
828de29edba3801a797708d54634f4a27a362a1f15b97df7d5ec6b3939f51b0a | /**
* Copyright 2010 Newcastle University
*
* http://research.ncl.ac.uk/smart/
*
* 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... | Java | oauth-2.0/oauth2-httpclient4/src/main/java/org/apache/amber/oauth2/httpclient4/HttpClient4.java | sebadiaz/oltu | apache-2.0 | 4,579 | 119 | codeparrot/github-code |
8270db840ee5cce57f38fe193b1745326a4896c40718dbd6c4c1ba6d9b7f0d59 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | Python | dev/archery/archery/benchmark/compare.py | renesugar/arrow | apache-2.0 | 3,878 | 122 | codeparrot/github-code |
fd513a4b72b7d8af68c892f4051d99b60e799238f73dd6de3ed7cc6820b95523 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | presto-spi/src/main/java/com/facebook/presto/spi/StandardWarningCode.java | nezihyigitbasi/presto | apache-2.0 | 985 | 35 | codeparrot/github-code |
75c77c518bc0cce6e6d09b618bdb59cf5887bbe89cea92dedbf2c125bbac5eb2 | <?php
/**
* @file
* Definition of Drupal\file\Plugin\views\field\File.
*/
namespace Drupal\file\Plugin\views\field;
use Drupal\views\ResultRow;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\Component\Annotation\PluginID;
use Drupal\views\Plugin\views\field\Fi... | PHP | www/core/modules/file/lib/Drupal/file/Plugin/views/field/File.php | nickopris/musicapp | apache-2.0 | 2,100 | 78 | codeparrot/github-code |
60d55ca60a7d91a3792d93bb602e35a98713f01ae6381d43905994d0fb923e32 | import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';
import {Subject} from 'rxjs/Subject';
export enum MESSAGE_TYPE {
// webhooks
OPEN_WEBHOOKS_DIALOG, // all webhooks
EDIT_WEBHOOK,
WEBHOOK_UPDATED,
OPEN_QUICK_START,
OPEN_HTTP_REQUESTS_WINDOW, // on file/dir right click
SET_TAB_CON... | TypeScript | frontend/src/app/main/services/message.service.ts | liamray/nexl-js | apache-2.0 | 1,807 | 73 | codeparrot/github-code |
9106eb87674571c3ae81fd6bca34f07a8968f1b59d7991b0cad9cb014790d4ed | /**
* 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-zookeeper/src/main/java/org/apache/pulsar/zookeeper/ZooKeeperServerAspect.java | merlimat/pulsar | apache-2.0 | 4,046 | 101 | codeparrot/github-code |
a0b56d2d7e02f4653e6c9862862abdea4ef9a27594c7f2360c807b04dc24b79e | """These are bad """
# pylint: disable=missing-docstring
# pylint: disable=too-few-public-methods
import unittest
# This is bad
class TestCase(unittest.TestCase):
def test_one(self):
pass
class DerivedTestCase(TestCase):
def test_two(self):
pass
# This is bad, but the author seems to know ... | Python | test/input/func_layered_tests.py | Sveder/edx-lint | apache-2.0 | 1,314 | 66 | codeparrot/github-code |
026be3071fd85bd9e70a9cfaa4888443890112b621d40c6df93be47fec268de0 | /*****************************************************************************
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 requir... | C++ | native/common/jp_monitor.cpp | originell/jpype | apache-2.0 | 1,272 | 43 | codeparrot/github-code |
9ce37d679ad7e456b57d58d7b858aa82ba2929965ceae85feefdfdec4f9fde6f | /*
* Copyright (c) 2016, 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.or... | Java | modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/stream/function/Pol2CartStreamFunctionProcessor.java | gokul/siddhi | apache-2.0 | 7,647 | 178 | codeparrot/github-code |
ea72c73606518717d5c13344a82d8d7304eccf557eaedc3ecc7c37fefa852e5a | /**
* 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 | hbase-server/src/test/java/org/apache/hadoop/hbase/master/cleaner/TestReplicationHFileCleaner.java | Eshcar/hbase | apache-2.0 | 11,380 | 327 | codeparrot/github-code |
4bfa7509204497e82fb3f774820bed3426728daf683aceb2087d77632a7cb9c2 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ml.job.process.normalizer;
import org.apache.... | Java | x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/normalizer/NativeNormalizerProcessFactory.java | nknize/elasticsearch | apache-2.0 | 4,504 | 95 | codeparrot/github-code |
4bd2e209a153d02d626e4e82120c8c2bccc7f7ffae52567646728cd5c00d338d | //========================================================================
//
// File: ParseErrorForEmptySynchronousMessagesTests.java
//
// Copyright 2005-2014 Mentor Graphics Corporation. All rights reserved.
//
//========================================================================
// Licensed under the Ap... | Java | src/org.xtuml.bp.als.oal.test/src/org/xtuml/bp/als/oal/test/ParseErrorForEmptySynchronousMessagesTests.java | john-tornblom/bridgepoint | apache-2.0 | 8,196 | 190 | codeparrot/github-code |
1d52968f74ca6efa76c58ed075b04f7b1d5fbcc0e632094e3ca4820f9a385763 | package com.siberiadante.utilsample.bean;
import com.siberiadante.utilsample.activity.adapter.SDRecyclerViewAdapterActivity;
import com.siberiadante.utilsample.activity.practice.MVPTestActivity;
import com.siberiadante.utilsample.activity.util.SDActivityUtilActivity;
import com.siberiadante.utilsample.activity.util.SD... | Java | utilsample/src/main/java/com/siberiadante/utilsample/bean/MainData.java | SibreiaDante/SiberiaDanteLib | apache-2.0 | 7,371 | 126 | codeparrot/github-code |
597ba206a91c2ed4314a6708499eb32b977417ebb71daf9d8522fe81460434e3 | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
[JsonConverter(typeof(ReadAsTypeJsonConverter<SlackAttachment>))]
public interface ISlackAttachment
{
[JsonProperty("fallback")]
string Fallback { get; set; }
[JsonProperty("color")]
string Color { get; se... | C# | src/Nest/XPack/Watcher/Action/Slack/SlackAttachment.cs | adam-mccoy/elasticsearch-net | apache-2.0 | 4,670 | 149 | codeparrot/github-code |
adfcfa22994480272c076c02763d233d7605c16743e50a9e1a6a7573a5bc40a0 | <?php
final class FundInitiative extends FundDAO
implements
PhabricatorPolicyInterface,
PhabricatorProjectInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorSubscribableInterface,
PhabricatorMentionableInterface,
PhabricatorFlaggableInterface,
PhabricatorTokenReceiverInterf... | PHP | src/applications/fund/storage/FundInitiative.php | memsql/phabricator | apache-2.0 | 5,487 | 220 | codeparrot/github-code |
8be394854b7c1485f67ba5e69f02dc7a681f80c6988249ee68d91181f8edfafe | /**
* Copyright 2015 Palantir Technologies, 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 ... | Java | test-util/src/main/java/com/palantir/giraffe/test/runner/RemoveTestsFilter.java | afchang/giraffe-circle | apache-2.0 | 2,839 | 97 | codeparrot/github-code |
77129782299acc115cea7a073befe66738ff6d40ec5f1a0985f80ca8f217af8f | package org.decomposer.math;
import org.decomposer.math.vector.DoubleMatrix;
import org.decomposer.math.vector.ImmutableSparseDoubleMatrix;
import org.decomposer.math.vector.MapVector;
public class PartialMatrixEigenVerifier extends MultiThreadedEigenVerifier
{
protected double _subMatrixFraction;
protected int ... | Java | src/org/decomposer/math/PartialMatrixEigenVerifier.java | jakemannix/decomposer | apache-2.0 | 1,551 | 54 | codeparrot/github-code |
448237bdce826aadb08ef50c6cfcf1b5edf13d70efd98805f7733619d03b387f | /*
* Copyright 2013 - 2020 Outworkers Ltd.
*
* 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... | Scala | phantom-streams/src/test/scala/com/outworkers/phantom/streams/suites/BatchSubscriberIntegrationTest.scala | outworkers/phantom | apache-2.0 | 2,125 | 67 | codeparrot/github-code |
3716d040640aa10436c9733e3ee48cbb20a214d24ba78a68b4b5a086fafaaa01 | // Copyright 2018 The gVisor 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 agree... | C++ | test/syscalls/linux/wait.cc | google/gvisor | apache-2.0 | 30,140 | 914 | codeparrot/github-code |
d70f9940b5f7051f8b4c7340519ecc1762ad0a0ccb0caaa25080b470b7dad698 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | Java | geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PREntryIdleExpirationDistributedTest.java | jdeppe-pivotal/geode | apache-2.0 | 5,116 | 154 | codeparrot/github-code |
9904ab3c11e0e073da71b91ab0c82664443da99d8d5fee6287fc9a35641889fd | $(function () {
//默认加载函数
lion.web.AppInit();
var $formuser=$('#formuser'),//基本信息
$formpassword=$('#formpassword'),//修改密码
$formimg=$('#formImg');//修改头像
//上传图片预览与剪裁
$('#image').uploadPreview({DivShow:'imgDiv'});
//基本信息验证表单
handleVForm($formuser,submitBaseInfoForm);
//修改头像验证表单
handleImageVForm($for... | JavaScript | lion-admin-webapp/src/main/webapp/resources/admin/scripts/system/account.js | scwanglijun/lion-admin | apache-2.0 | 7,840 | 268 | codeparrot/github-code |
b25daaa2591e818a21497f50345ef7308eb9ac00706017c80528a7d4e2c29d5a | #!/bin/sh
TIMEOUT=15
QUIET=0
echoerr() {
if [ "$QUIET" -ne 1 ]; then printf "%s\n" "$*" 1>&2; fi
}
usage() {
exitcode="$1"
cat << USAGE >&2
Usage:
$cmdname host:port [-t timeout] [-- command args]
-q | --quiet Do not output any status messages
-t TIMEOUT | --timeout=timeout Ti... | Shell | scripts/wait-for.sh | google/keytransparency | apache-2.0 | 1,362 | 80 | codeparrot/github-code |
45366d57f111797c1cd5f0c48bb4c1fe9bdf10bd8d6d6c3383acef5eafa50485 | /*
* Copyright 2000-2009 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/debugger/impl/src/com/intellij/debugger/ui/impl/watch/MethodReturnValueDescriptorImpl.java | jexp/idea2 | apache-2.0 | 2,383 | 80 | codeparrot/github-code |
c1d2be18d1d7c7ed4472db0f1836e249398adc777d5ad0cf33cee83cc8e0028f | /****************************************************************************
*
* Copyright 2017 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | C | apps/system/utils/kdbg_stackopt.c | EunBongSong/TizenRT | apache-2.0 | 4,923 | 164 | codeparrot/github-code |
93d3fba96a5dab29fe4d30e550b621b4b2275519676e5b8b3faf3468ec2df7f0 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | Java | modules/flowable-engine/src/test/java/org/flowable/engine/test/api/tenant/TenancyTest.java | flowable/flowable-engine | apache-2.0 | 62,332 | 1,093 | codeparrot/github-code |
c1be7ea0d35cb028e4417b9ae0f8cc111da010dee4f58a5066ee9330f3d38ee6 | /*
* Copyright 2017 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/licenses/LICENSE-2.0
*
* Unless required b... | Java | variation-commons-core/src/main/java/uk/ac/ebi/eva/commons/core/models/ws/VariantSourceEntryWithSampleNames.java | EBIvariation/variation-commons | apache-2.0 | 5,072 | 125 | codeparrot/github-code |
785f38126d8d6099716b3939232ed3fd2235e4c9efaba9665e631a05533b2e2f | // Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the License); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
//... | C# | Python/Product/Profiling/Profiling/SessionsNode.cs | DinoV/PTVS | apache-2.0 | 11,247 | 292 | codeparrot/github-code |
5735110209c0f49fcf22707df70bce44ec6829c36095f139ab0458cbd77953a1 | /*
* Copyright 2006-2012 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 app... | Java | modules/citrus-java-dsl/src/test/java/com/consol/citrus/dsl/design/StopServerTestDesignerTest.java | hmmlopez/citrus | apache-2.0 | 2,315 | 65 | codeparrot/github-code |
41f7fda32fbcdad538853ceca62b121bf3a0f9d8eaf80a243413cd6ad6690b22 | /*
* Copyright 2000-2015 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 | platform/lang-impl/src/com/intellij/codeInspection/ex/LocalQuickFixWrapper.java | retomerz/intellij-community | apache-2.0 | 5,625 | 154 | codeparrot/github-code |
e67abf623efd46bafa89048055b09d4c5d9446fbb9983a001ee6ea20dae553a6 | // Copyright (C) 2014 Daniel Harrison
package hfile
import (
"bytes"
"encoding/binary"
"encoding/hex"
"log"
)
type Scanner struct {
reader *Reader
idx int
block []byte
pos *int
buf []byte
// When off, maybe be faster but may return incorrect results rather than error on out-of-order keys.
Enfor... | GO | scanner.go | theevocater/gohfile | apache-2.0 | 3,999 | 181 | codeparrot/github-code |
6294b346540eec78469e7162d8e0b60f223d5a08add0299f5b3da5f82ace4c93 | /*
* 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 | common/common-protobuf/src/test/java/org/apache/servicecomb/codec/protobuf/internal/converter/TestProtoToStringGenerator.java | ServiceComb/java-chassis | apache-2.0 | 2,907 | 84 | codeparrot/github-code |
06edcb24e190d4a526613092303a22ffce32a419304f276b861052a419e2faa5 | /*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | C# | sdk/src/Services/OpsWorks/Generated/Model/Internal/MarshallTransformations/UpdateLayerResponseUnmarshaller.cs | rafd123/aws-sdk-net | apache-2.0 | 3,505 | 94 | codeparrot/github-code |
6f86510a5b704dfddaa58093b1bd014daa2d1d786c73d4341735c747bf6fd8f5 | package javasmmr.zoowsome.views;
import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import javax.swing.SpringLayout;
@SuppressWarnings("serial")
public class AquaticFormFrame extends ZooFrame {
... | Java | Students/Hada Maria/Assignment 7.1/src/javasmmr/zoowsome/views/AquaticFormFrame.java | mariahada/JavaMainRepo | apache-2.0 | 6,009 | 179 | codeparrot/github-code |
fa686a2b9ed05fdbef40ca7cb3ae5dc6e4eeda8cf9e073c1f84c6d7066db3bff | /*
* Copyright (c) 2008-2020, Hazelcast, 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 ... | Java | hazelcast/src/test/java/com/hazelcast/cp/internal/datastructures/semaphore/UnsafeSessionlessSemaphoreBasicTest.java | mdogan/hazelcast | apache-2.0 | 2,766 | 80 | codeparrot/github-code |
db301f7651a6032107696ddb863e37b7b9718f52ed7e5adaf56113b792199a5b | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | C | Modules/Core/Common/include/itkPolygonCell.h | malaterre/ITK | apache-2.0 | 4,652 | 170 | codeparrot/github-code |
ad251d945d10c1266ef4d5f6a88799778499231726ffea9091b258881530003d | /*
* 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 | solr/modules/analytics/src/java/org/apache/solr/analytics/stream/reservation/write/LongCheckedDataWriter.java | apache/solr | apache-2.0 | 1,368 | 36 | codeparrot/github-code |
a1ee3d6d63f88dc5e27f6b6b0126add7facf22a435c620838f3ce83b04d466ee | <?php
/**
* Iptables Plugin
*
* PHP version 5
*
* @category PHP
* @package PSI_Plugin_Iptables
* @author erpomata
* @copyright 2016 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @version SVN: $Id: class.iptables.inc.php 661 2016-05-03 11:26:39Z erpoma... | PHP | public/phpsysinfo/plugins/iptables/class.iptables.inc.php | danilor/Luminus | apache-2.0 | 2,527 | 94 | codeparrot/github-code |
c5bf286fe8be7baa9cbf171489933f5d1e157382e124549b2f511a7e376b64c0 | /**
* 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 | metastore/src/java/org/apache/hadoop/hive/metastore/hbase/ObjectCache.java | vergilchiu/hive | apache-2.0 | 2,719 | 82 | codeparrot/github-code |
5aeb297fb6de8a1efa48520ebc7fb95ec91b7deb554345d531772a8faad9bfcf | /*
* Copyright 2017-present Open Networking 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 appli... | Java | apps/cfm/src/main/java/org/onosproject/cfm/rest/CfmWebApplication.java | sdnwiselab/onos | apache-2.0 | 1,201 | 39 | codeparrot/github-code |
7de9702896d470b28d289d68e810783013b5a04d29fd35677da22b2e502e2cb0 | # Copyright 2015 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | Python | bigquery/google/cloud/bigquery/table.py | jonparrott/gcloud-python | apache-2.0 | 48,513 | 1,418 | codeparrot/github-code |
64bfa86926edb3ebf13bf480a72b95d38a60a1d9e28d4385dc94ea71a6b60f1e | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Source code</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<div class="sourceContainer">
<pre><span class="sourceL... | HTML | docs/apidocs/src-html/net/jsign/pe/PEFormat.html | ebourg/jsign | apache-2.0 | 4,509 | 121 | codeparrot/github-code |
f864a52a5d88ba978ae1f3fdd27a5305842783f29adc9f8f1331b3dc50a3a649 | package org.opencompare.api.java.impl.value;
import org.opencompare.api.java.PCMElement;
import org.opencompare.api.java.PCMFactory;
import org.opencompare.api.java.impl.ValueImpl;
import org.opencompare.api.java.util.PCMVisitor;
import org.opencompare.api.java.value.IntegerValue;
/**
* Created by gbecan on 09/10/14... | Java | org.opencompare/api-java-impl/src/main/java/org/opencompare/api/java/impl/value/IntegerValueImpl.java | gbecan/OpenCompare | apache-2.0 | 1,204 | 48 | codeparrot/github-code |
7a0f6226a1ff5a516e7bd6f754642d0d638e13a1053d2c82c29c8de114f294f7 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Cats.Models;
using Cats.Models.Constant;
using Cats.Services.Logistics;
using Cats.Services.Common;
using Cats.Services.EarlyWarning;
using Cats.Services.Logistics;
using Cats.ViewModelBinder;
using log4net... | C# | Web/Areas/Logistics/Controllers/PromisedContributionController.cs | ndrmc/cats | apache-2.0 | 5,464 | 147 | codeparrot/github-code |
ed0b3c92e98316c7af08ea90ba6f19ac2b69cef670bad2886094d644d5aef7e9 | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
* Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | Java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/GetGroupPolicyRequest.java | mhurne/aws-sdk-java | apache-2.0 | 5,644 | 205 | codeparrot/github-code |
4e5406c19847895f8400c269a15338e4d528603f62deec624ead9f0ae19ffc5e | // Copyright 2016 The LUCI 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... | GO | tokenserver/appengine/impl/delegation/rpc_mint_delegation_token.go | luci/luci-go | apache-2.0 | 12,980 | 371 | codeparrot/github-code |
673c1c8e82d290dc1820a52b2beaf148249d9e6281a0222f6ed56c35d012e4c2 | /*
* 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 applica... | Java | java/simple-performance-test/src/main/java/com/example/bigtable/simpleperf/BigtableUtilities.java | sduskis/cloud-bigtable-examples | apache-2.0 | 2,119 | 61 | codeparrot/github-code |
2d0dcc4f0afd140d0e336a9012fb528e95f086b85101cc1259285ac43d580f94 | /*
* 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-pinpoint/source/model/UpdateApplicationSettingsRequest.cpp | cedral/aws-sdk-cpp | apache-2.0 | 1,238 | 46 | codeparrot/github-code |
9c72dccc33e1c05f8af5846bddcb70a438f60f5c287af5aa73cea961198efcfb | /* ------------------------------------------------------------------------ */
/* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may */
/* n... | C++ | src/image/Image.cc | gargamelcat/ONE4 | apache-2.0 | 19,870 | 711 | codeparrot/github-code |
0a81bef137beec895505f64ae73cb2863a1d63299ee48e4fab081139bd6afe92 | /*
* Copyright 2017-2020 Crown Copyright
*
* 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... | Java | store-implementation/federated-store/src/main/java/uk/gov/gchq/gaffer/federatedstore/operation/handler/FederatedTransformHandler.java | gchq/Gaffer | apache-2.0 | 1,863 | 46 | codeparrot/github-code |
afa2344e6d35d8b93e208b997f33595909df5f17a7789b2e96b8a39a491b32f3 | $(function() {
modal.prepare();
examing.initial();
});
var examing = {
initial : function initial() {
this.initialModel();
this.refreshNavi();
this.bindNaviBehavior();
this.addNumber();
this.bindOptClick();
// this.securityHandler();
// this.updateSummery();
this.bindfocus();
this.b... | JavaScript | education-portal/src/main/resources/static/js/exam/practice-improve-qh.js | smart-education-iot/smart-education-stack | apache-2.0 | 17,594 | 634 | codeparrot/github-code |
b8f5eaa88791fae8b21c62e06f45c610f8edb2172338a3e0840635c1295e288c | package ru.evgenyhodz;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedList;
/**
* @author Evgeny Khodzitskiy (evgeny.hodz@gmail.com)
* @since 09.03.2017
*/
public class Node {
private int value;
private Node next;
private Node head;
public... | Java | chapter_005/src/main/java/ru/evgenyhodz/Node.java | alittlemind/git_test | apache-2.0 | 1,406 | 60 | codeparrot/github-code |
ef58563479506002e105d9daf59a97e9cc2e22ab57a7662a6c513ff658854b4b | package com.centurylink.mdw.python;
import com.centurylink.mdw.annotations.Parameter;
import com.centurylink.mdw.annotations.RegisteredService;
import com.centurylink.mdw.script.ExecutionException;
import com.centurylink.mdw.script.ScriptEvaluator;
import javax.script.ScriptException;
import java.util.Map;
/**
* Py... | Java | mdw-workflow/assets/com/centurylink/mdw/python/PythonEvaluator.java | CenturyLinkCloud/mdw | apache-2.0 | 1,064 | 33 | codeparrot/github-code |
aae271d3297ae7abe4685632bbecd3552a1e9d33938847a7609dd143d3649e7d | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServi... | C | aws-cpp-sdk-imagebuilder/include/aws/imagebuilder/model/DeleteInfrastructureConfigurationResult.h | aws/aws-sdk-cpp | apache-2.0 | 4,179 | 123 | codeparrot/github-code |
567a610712fa5069c9c815be7db5d1332828543402c8309ffb862ee47bd13c6b | /**
* 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 | info/model/src/main/java/com/asakusafw/info/operator/view/OperatorView.java | ashigeru/asakusafw | apache-2.0 | 2,648 | 101 | codeparrot/github-code |
e5df8a7403e70cbb1787c5dcb331f01af15ae0e934221dd5990567f30217f8aa | <?php
class ControllerUserUser extends Controller {
private $error = array();
public function index() {
$this->load->language('user/user');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('user/user');
$this->getList();
}
public function add() {
$this->load->langu... | PHP | admin/controller/user/user.php | q178015846/yankee | apache-2.0 | 16,139 | 494 | codeparrot/github-code |
edadf9ff24d6d4361cad1796b46788f726037ed9f1d4326e939e05100cd0e949 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
... | C | aws-cpp-sdk-glue/include/aws/glue/model/GetBlueprintRequest.h | aws/aws-sdk-cpp | apache-2.0 | 4,079 | 134 | codeparrot/github-code |
c839e27832857658327c62e8aa6c0f5092228468cc7e9efda525ac8d57bf7591 | # Copyright 2017 Battelle Energy Alliance, 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | Python | framework/SupervisedLearning/ScikitLearn/LinearModel/LassoLarsCV.py | idaholab/raven | apache-2.0 | 6,473 | 110 | codeparrot/github-code |
12f7f03f0335314d7359db5eaa85068776fb95384a97d55150126237cfb760d0 | /**
* WinPR: Windows Portable Runtime
* Security Accounts Manager (SAM)
*
* Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
*
* 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 ... | C | winpr/libwinpr/utils/sam.c | bjcollins/FreeRDP | apache-2.0 | 7,570 | 414 | codeparrot/github-code |
94c2ddd0d2a875684c0a94df457fc06fbfd858385cf5a9bcc5d732137e8ac1ce | package main
import (
"context"
"fmt"
"os"
"sync"
"github.com/open-policy-agent/opa/cmd"
"github.com/open-policy-agent/opa/plugins"
"github.com/open-policy-agent/opa/plugins/logs"
"github.com/open-policy-agent/opa/runtime"
"github.com/open-policy-agent/opa/util"
)
type Config struct {
Stderr bool `json:"st... | GO | decision_logger_plugin_example/main.go | open-policy-agent/contrib | apache-2.0 | 1,392 | 71 | codeparrot/github-code |
35d9b361aca6cd07021313c4697b4d1730c86ed2f116de989ac24065e6a2d3ca | /*
* Copyright 2009 Andrey Khalzov, and individual contributors as indicated by the @author tag.
*
* 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/l... | Java | mobile/src/main/java/org/wannatrak/mobile/controller/Controller.java | chrooter/wannatrak | apache-2.0 | 42,219 | 1,264 | codeparrot/github-code |
3caaa6e2cad1c99c3ec3f940d9258f30d472d8c079e2b258ae5ae27294237af7 | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | crop/src/main/java/com/soundcloud/android/crop/CropUtil.java | xujiaji/HaiNaBaiChuan | apache-2.0 | 8,056 | 219 | codeparrot/github-code |
47ceb0f6257581fa7fce854d3fef56dbdc0dca2631b86d1c10b600e6bd70cc49 | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace ShopShopShop.Models
{
public class ExternalLoginConfirmationViewModel
{
[Required]
[Display(Name = "Email")]
public string Email { get; set; }
}
public class ExternalLoginListViewModel
... | C# | ShopShopShop/Models/AccountViewModels.cs | OliviaHihi/EDA_personal_project_server_side_web_app | apache-2.0 | 3,111 | 113 | codeparrot/github-code |
ad3250ab47c2b5439b31b2e276419088d1aae19fbba6e6b1b50869ad49146da1 | /**
* @file RouteOnAttribute.cpp
* RouteOnAttribute class implementation
*
* 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 fil... | C++ | libminifi/src/processors/RouteOnAttribute.cpp | minifirocks/nifi-minifi-cpp | apache-2.0 | 3,355 | 107 | codeparrot/github-code |
2735453d57465b502b2e8a88f49847f73ac9e6852239d09892b97be6d4be19ec | /*******************************************************************************
* Copyright (c) Intel Corporation
* Copyright (c) 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
... | Java | osc-server/src/main/java/org/osc/core/broker/service/securitygroup/AddSecurityGroupService.java | karimull/osc-core | apache-2.0 | 5,455 | 122 | codeparrot/github-code |
c9384ab28b50eff021e49560d27b4f7b4a7abb31b7806d55210154d6db331c57 | /*
* 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 | solr/core/src/java/org/apache/solr/rest/schema/analysis/ManagedWordSetResource.java | apache/solr | apache-2.0 | 7,367 | 195 | codeparrot/github-code |
01c232b529d66d322070760a25fa437ecb8514b508ba16761a8145685a1266e0 | var serverHostName = window.location.hostname;
var serverProtocolName = window.location.protocol;
var portName = window.location.port;
var save_dir = "uploadFiles\\";
var serverPath = serverProtocolName + "//" + serverHostName;
if (portName.length === 0) {
portName = "80";
}
if (serverHostName == "localhost") {
... | JavaScript | chapter_009_Spring_MVC/src/main/resources/static/js/signin.js | simvip/isliusar | apache-2.0 | 1,354 | 51 | codeparrot/github-code |
cdccfd4f5ba86854c8e921206f7b929d1962615d185b9130dc2bccb0a53128b2 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.search;
import org.elasticsearch.action.Actio... | Java | x-pack/plugin/async-search/src/main/java/org/elasticsearch/xpack/search/AsyncSearch.java | gingerwizard/elasticsearch | apache-2.0 | 2,558 | 58 | codeparrot/github-code |
23dbcb9e83201886394ab7d67a5dc927348b8fd7400ce797506ee95b45bcfb4d | package controllers;
import play.shaded.ahc.org.asynchttpclient.AsyncHttpClient;
import play.shaded.ahc.org.asynchttpclient.BoundRequestBuilder;
import play.shaded.ahc.org.asynchttpclient.ListenableFuture;
import play.shaded.ahc.org.asynchttpclient.ws.WebSocket;
import play.shaded.ahc.org.asynchttpclient.ws.WebSocketL... | Java | play26/scala/websocket-example-using-webjars-assets/test/controllers/WebSocketClient.java | play2-maven-plugin/play2-maven-test-projects | apache-2.0 | 2,512 | 74 | codeparrot/github-code |
c0683ba26108482d0337e9dcf0479277bb7903a5c7de7ca11bb5000e1d6b2f66 | /** @file
SSL/TLS Configuration Library Wrapper Implementation over OpenSSL.
Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and co... | C | third_party/edk2/CryptoPkg/Library/TlsLib/TlsConfig.c | google/google-ctf | apache-2.0 | 35,391 | 1,218 | codeparrot/github-code |
0436135f196ca3eacbbb36e0fb782ee7d5cb2c25a2085953aed6ce6783cbf940 | /*
* test(1); version 7-like -- author Erik Baalbergen
* modified by Eric Gisin to be used as built-in.
* modified by Arnold Robbins to add SVR3 compatibility
* (-x -c -b -p -u -g -k) plus Korn's -L -nt -ot -ef and new -S (socket).
*/
static char *RCSid = "$Id: c_test.c,v 3.3 89/03/27 15:47:25 egisin Exp $";
#... | C | ash-0.2/test.c | easion/os_sdk | apache-2.0 | 7,626 | 391 | codeparrot/github-code |
2c8e9d602c262dc5d02ec6f03a08d664921c1fe6942f89384456f1ff6c42ff8c | /**
* 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
*
* Unless required by applicable law or agreed to i... | Java | resource-management/azure-mgmt-utility/src/test/java/com/microsoft/azure/utility/compute/VMScenarioTests.java | flydream2046/azure-sdk-for-java | apache-2.0 | 3,968 | 95 | codeparrot/github-code |
fdcd140d88c85930cefd5d5393a8cc6559195b4328e6a10bb771c80a5de9e8d1 | package zttc.itat.user.service;
import static org.easymock.EasyMock.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import zttc.itat.user.dao.IUserDao;
import zttc.itat.user.model.User;
import zttc.itat.user.util.EntitiesHelper;
public class TestUserService {
private IUserDao userDao;
p... | Java | user-service/src/test/java/zttc/itat/user/service/TestUserService.java | flushman/whale | apache-2.0 | 959 | 46 | codeparrot/github-code |
6a27395d0a7902fb40feb692e2695d916cf74591479b6c3a5d8ea577fb8a0c26 | /*
* 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 | guvnor-webapp-core/src/main/java/org/drools/guvnor/client/widgets/VersionChooser.java | psiroky/guvnor | apache-2.0 | 10,227 | 198 | codeparrot/github-code |
58ce5cb384b0a44bf4e76b8d33dc342912bdd9ba7c27f346132ace0573ce1265 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2003-2009 Edgewall Software
# Copyright (C) 2003-2005 Daniel Lundin <daniel@edgewall.com>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http... | Python | trac/trac/db_default.py | apache/bloodhound | apache-2.0 | 14,109 | 417 | codeparrot/github-code |
44a40d75311e674314e72b00c9a77e649d6212e64333a64b1a77aa942f8ad59c | /*
* Copyright 2000-2016 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 | platform/dvcs-impl/src/com/intellij/dvcs/ui/BranchActionGroup.java | jk1/intellij-community | apache-2.0 | 2,325 | 74 | codeparrot/github-code |
c63bea1f708aeceb18211a901245a3b688fecbc00abff10b13537250184a56b9 |
/**
* The method will increase the given number by 1. If the given counter is equal
* or greater to {@link Number.MAX_SAFE_INTEGER} then it will be rolled back to
* 1.
* @param {number} number - An integer counter value to be incremented.
* @return {number} the next counter value increased by 1 (see the descript... | JavaScript | modules/util/MathUtil.js | jiyeyuran/lib-jitsi-meet | apache-2.0 | 1,132 | 41 | codeparrot/github-code |
6011441b889ba655d42b5e3d57141b9bdf215587c27976c8d84e1368178dbf18 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | C++ | lib/Utilities/ShellBase.cpp | joerg84/arangodb | apache-2.0 | 4,484 | 159 | codeparrot/github-code |
659bf745bdf96f2428e30d1d3268986f694ca0d15c3f6d9d7c87d3dbcc06e9c9 | # Copyright 2013 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | Python | nova/api/openstack/compute/plugins/v3/tenant_networks.py | shakamunyi/nova | apache-2.0 | 8,183 | 221 | codeparrot/github-code |
e6a0129206a298b407df93d023a97c09188722ac64e4b08a045272939784d876 | /**
* @license
* Copyright 2016 Palantir Technologies, 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... | TypeScript | src/rules/objectLiteralShorthandRule.ts | andy-hanson/tslint | apache-2.0 | 5,353 | 136 | codeparrot/github-code |
f0cc8ff5951f154b92f00b55f4b02894befcd71db689666b1963003163b544cd | /*
* Copyright 2006-2011 National Institute of Advanced Industrial Science
* and Technology (AIST), and 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://ww... | Java | src/ow/routing/pastry/Pastry.java | shudo/overlayweaver | apache-2.0 | 26,647 | 893 | codeparrot/github-code |
77bd1e833fcf88091aff466fcc6580b95faa1188a76da51d8794bf3849e5bd64 | package apincer.android.uamp.model;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.load.Key;
import java.io.Serializable;
import java.security.MessageDigest;
import java.util.List;
import apincer.android.uamp.R;
im... | Java | musicmate/src/main/java/apincer/android/uamp/model/RecordingItem.java | thawee/musixmate | apache-2.0 | 3,612 | 121 | codeparrot/github-code |
e3af076b4ce6f2af5dfc58c19df7c44c47e0e04efc5b1a06334d15bf68c97e1d | import sys
import argparse
import numpy as np
import pysam
import util
import snptable
import tables
import os
def write_results(out_f, chrom_name, snp_tab, ref_matches,
alt_matches, oth_matches, geno_sample):
haps = None
has_haps = False
if geno_sample:
# get index for t... | Python | mapping/get_as_counts.py | bmvdgeijn/WASP | apache-2.0 | 12,858 | 326 | codeparrot/github-code |
dbc6079fe0e9dae3d54fba6988f88c4302a5377ed5a7caab213344ee2557a13e | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | tensorflow/core/grappler/graph_view.h | dongjoon-hyun/tensorflow | apache-2.0 | 12,586 | 349 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.