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 |
|---|---|---|---|---|---|---|---|---|
6e66cdb2421f303a513ba69e53ba82752a56c30e2f8ca8b3d243e673a8c11d2a | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using Analyzer.Utilities;
using Analyzer.Utilities.Exte... | C# | src/Microsoft.CodeQuality.Analyzers/Core/ApiDesignGuidelines/DoNotRaiseExceptionsInUnexpectedLocations.cs | heejaechang/roslyn-analyzers | apache-2.0 | 18,435 | 343 | codeparrot/github-code |
67a6f8cb2bcba291f4cc6afcd25bffa0521fb058805804101846eb090cfc0a41 | package com.sibilantsolutions.grison;
import java.io.IOException;
import java.net.SocketException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.... | Java | demo/src/main/java/com/sibilantsolutions/grison/Grison.java | jtgeiger/grison | apache-2.0 | 2,832 | 77 | codeparrot/github-code |
f4948a2e264320e4a688575eb293f12a617618dbfbcdd4f0205344325274ebf1 | /**
* Licensed to Odiago, Inc. under one or more contributor license
* agreements. See the NOTICE.txt file distributed with this work for
* additional information regarding copyright ownership. Odiago, Inc.
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this ... | Java | src/main/java/com/odiago/flumebase/exec/DummyExecEnv.java | flumebase/flumebase | apache-2.0 | 2,989 | 119 | codeparrot/github-code |
007d134eded5cda2a94bae1dd55eca0b6905f2a749b510f52687e629da8b81a4 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | Java | src/plantuml-asl/src/net/sourceforge/plantuml/help/CommandHelpFont.java | talsma-ict/umldoclet | apache-2.0 | 2,606 | 72 | codeparrot/github-code |
b5c5be41a6778a2c0b590eb2b2643a9fec7721e72e3eea1c6b56c4ce85472c83 | <?php
/**
* Copyright 2016 SURFnet B.V.
*
* 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... | PHP | src/OpenConext/EngineBlockBundle/Authentication/AuthenticationLoopGuard.php | thijskh/OpenConext-engineblock | apache-2.0 | 2,488 | 74 | codeparrot/github-code |
6caea11457c44164e7c12fcc394d9b324cced5af812234a8319c1dc718662d65 | using NBi.Core.Structure;
using NBi.Core.Structure.Olap;
using NBi.Core.Structure.Relational;
using NBi.Core.Structure.Tabular;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
name... | C# | NBi.Testing.Core/Structure/StructureDiscoveryFactoryProviderTest.cs | Seddryck/NBi | apache-2.0 | 9,020 | 156 | codeparrot/github-code |
22bd28463acde7bf840e813f488eb7a96e89677687eeb50725c474d204181bf3 | /*******************************************************************************
* 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 | nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/shape/Reshape.java | RobAltena/deeplearning4j | apache-2.0 | 4,835 | 157 | codeparrot/github-code |
9e5d435695d4cece2f00ba5dd025ed591cb46cff543131c5de6a31585e2b30dc | /**
* 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 | commonlib/src/main/java/com/streamsets/pipeline/lib/parser/sdcrecord/SdcRecordDataParserFactory.java | kiritbasu/datacollector | apache-2.0 | 2,224 | 56 | codeparrot/github-code |
144eaf0a2d62d2bb71dd70d6eba813753685711aefed0e34edc3b5df7ce5eaac | /*
* Copyright 2018-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | test/com/facebook/buck/artifact_cache/ArtifactCachesIntegrationTest.java | romanoid/buck | apache-2.0 | 25,258 | 523 | codeparrot/github-code |
3ededed2b9004cc73e3873a3c27552593b8d3a1ee0b58e021968f87180448d0e | package com.innerfunction.uri;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.innerfunction.util.NotificationCenter;
/**
* Object for representing local preference data resources.
*/
public class LocalResource extends Resource {
private static fina... | Java | src/com/innerfunction/uri/LocalResource.java | innerfunction/semo-core-and | apache-2.0 | 1,815 | 58 | codeparrot/github-code |
485a8a752159ed44c9ad475ec78ff9a5fb27da77aacab5385d5f5b5152ae2fc4 | goog.provide('recoil.structs.table.ColumnKey');
goog.provide('recoil.structs.table.MutableTable');
goog.provide('recoil.structs.table.MutableTableRow');
goog.provide('recoil.structs.table.Table');
goog.provide('recoil.structs.table.TableCell');
goog.provide('recoil.structs.table.TableInterface');
goog.provide('recoil.s... | JavaScript | src/structs/table/table.js | evaks/recoil | apache-2.0 | 58,760 | 2,170 | codeparrot/github-code |
d1065785bc45c6b6fd149db6e7d8b20be8f207696e82feeaece6696517f45fdf | ////////////////////////////////////////////////////////////////////////////////
/// 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 | arangod/Aql/Functions.h | hkernbach/arangodb | apache-2.0 | 20,173 | 355 | codeparrot/github-code |
1d87ad688ab731646bb9d91e50968b42fe009f1eada0fafdffe31b034c7a1a1a | /*
* Copyright 2017 Anton Tananaev (anton@traccar.org)
* Copyright 2017 Andrey Kunitsyn (andrey@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... | Java | src/org/traccar/model/GroupAttribute.java | 5of9/traccar | apache-2.0 | 1,103 | 41 | codeparrot/github-code |
a92a4aceb95decfa46db0a857c62835aae2115287bb0bcc0740e21545a41c552 | /*
* nodekit.io
*
* Copyright (c) 2016 OffGrid Networks. 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 | src/nodekit/NKElectro/NK_ElectroHost/www/default/index.js | nodekit-io/nodekit-darwin | apache-2.0 | 2,049 | 50 | codeparrot/github-code |
4cfbea7a736311e9db56af2c60d17ab89c703ec48006c8963cdb2f2bfee6f6d0 | //===--- DebuggerTestingTransform.cpp - Transform for debugger testing ----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | lib/Sema/DebuggerTestingTransform.cpp | tjw/swift | apache-2.0 | 8,782 | 250 | codeparrot/github-code |
74a4792483f656bde1514af56f3e7d16934c7f2aa28295535d7077a6ccc50db1 | <?php
namespace app\modules\admin\controllers;
use Yii;
use app\common\Controller;
use app\common\SystemConfig;
use app\modules\admin\models\PluginManager;
class PluginManagerController extends Controller
{
public $defaultAction = 'local';
private $plugin_center_url = "#";
//plugin list
public function ac... | PHP | app/modules/admin/controllers/PluginManagerController.php | zhanqu/yii2adm | apache-2.0 | 1,394 | 53 | codeparrot/github-code |
7fdf056240aa62d345f1c876f5ec2e6591d8f3e47954cc91248aa1b836b82d6d | /*
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 | mungegithub/mungers/sig-mention-handler.go | piosz/test-infra | apache-2.0 | 4,451 | 127 | codeparrot/github-code |
58fcacd38a6bdb854980e63b34193fbbd4226a04e6ec7df2d5522175b2382c4d | package de.mhus.cap.core;
import java.util.UUID;
import org.eclipse.swt.graphics.Image;
import de.mhus.lib.MException;
import de.mhus.lib.cao.CaoException;
import de.mhus.lib.cao.util.MutableElement;
import de.mhus.lib.cao.util.NoneApplication;
import de.mhus.lib.config.IConfig;
public class ConnectionDefinition ex... | Java | de.mhus.hair/hair3/de.mhus.cap.core/src/de/mhus/cap/core/ConnectionDefinition.java | mhus/mhus-inka | apache-2.0 | 2,185 | 87 | codeparrot/github-code |
1375bf9aeddc4655bc8d6fa18b3a0fcb610acf127a452651c62376c8f46d372b | /**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | Java | rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/datadictionary/DataDictionaryIndexMapper.java | ua-eas/ksd-kc5.2.1-rice2.3.6-ua | apache-2.0 | 14,959 | 368 | codeparrot/github-code |
648a789e447007bb3b1b862b99dfafd30f5a7d1b847eea8c725f48271fa84aff | /*
* Copyright 2016 The BigDL 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 agr... | Scala | spark/dl/src/test/scala/com/intel/analytics/bigdl/integration/torch/L1PenaltySpec.scala | zhangxiaoli73/BigDL | apache-2.0 | 1,930 | 52 | codeparrot/github-code |
f04cf20d490c431b2ba6a834387258d2ab3a989c7b5de977abc9129f6b800c4d | /*
* (c) Copyright 2020 Micro Focus, 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/LICENSE-2.0
*
* Unless required ... | Java | cs-nutanix-prism/src/main/java/io/cloudslang/content/nutanix/prism/entities/NutanixCommonInputs.java | CloudSlang/score-actions | apache-2.0 | 12,806 | 389 | codeparrot/github-code |
6a379ed2ca6bb9198c8bdf6dbf60f122db6d30beb4fcd2c89f543266ef7fed93 | /*
siddhartha dimania
*/
package com.alarmpro_x;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import androi... | Java | src/com/alarmpro_x/MainActivity.java | siddimania/AlarmPro-X | apache-2.0 | 5,518 | 265 | codeparrot/github-code |
dbb6316d28cd27f97d16abc0905d1c7326a8c032e68f438d99a2df940d0b7758 | package com.frankzhu.appbaselibrary.base;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.frankzhu.appbaselibrary.R;
/**
* Author: Zhu... | Java | appbaselibrary/src/main/java/com/frankzhu/appbaselibrary/base/FZBasePullRefreshFragment.java | Frank-Zhu/FZBaseLib | apache-2.0 | 2,271 | 60 | codeparrot/github-code |
02e0485aa6299afc90430451b77e199e88266553ac12f162e4dc7bac347ffa03 | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Java | codec/src/test/java/io/netty/handler/codec/marshalling/RiverCompatibleMarshallingDecoderTest.java | jroper/netty | apache-2.0 | 1,352 | 38 | codeparrot/github-code |
ca88533345ab349e83f84a0d9f0834bd972fe2b48552f6adc2ec6cc9de4f81d3 | package com.github.hartorn.mysql2pgsql;
import java.io.IOException;
import java.io.Writer;
import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.xm... | Java | XmlToSql/src/main/java/com/github/hartorn/mysql2pgsql/Xml2SqlDataEventHandler.java | Hartorn/mysql2postgresql | apache-2.0 | 5,518 | 166 | codeparrot/github-code |
877735b136d75ad6115dbe30529c01b2fe69349ed2d943943858b6105cce58f6 | /*
Copyright 2013 Giovanni Bricconi
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... | Java | kelvin/src/main/java/org/apache/solr/kelvin/SingletonConditionRegistry.java | gibri/kelvin | apache-2.0 | 1,930 | 57 | codeparrot/github-code |
0775c0e08542d2326dc6adf5208b1e99541186c7cadbf2549c7fd26340b1012b | #!/bin/bash
# Copyright 2014 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 applic... | Shell | cluster/vagrant/config-default.sh | timothysc/kubernetes | apache-2.0 | 2,531 | 76 | codeparrot/github-code |
594d9f83642c756482a566e70bba81be8c0fa72fec1cb2ae032e435ccdfa5ed6 | /*******************************************************************************
* 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.
*
*... | C | libnd4j/include/helpers/DebugHelper.h | deeplearning4j/deeplearning4j | apache-2.0 | 2,753 | 81 | codeparrot/github-code |
97d7ec415b9054c91cd593ed8641eb97e8c317bdbf05b611615247d2da917774 | /*******************************************************************************
* 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.
*
*... | C | libnd4j/include/types/int8.h | deeplearning4j/deeplearning4j | apache-2.0 | 2,260 | 95 | codeparrot/github-code |
9096299d90be7be5ed0dfe3154043a7804ab561cbd643e7278f44e931ba90bca | package com.sengled.rest.data.dynamodb.test;
import com.sengled.rest.data.dynamodb.domain.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.sengled.rest.data.dynamodb.repository.UserRepository;
import com.sengled.rest.data.dynamodb.util.JsonUtil;
import org.springframework.beans.factory.annotati... | Java | src/main/java/com/sengled/rest/data/dynamodb/test/UserRepositoryIntegrationTest.java | las1991/spring-data-dynamodb-demo | apache-2.0 | 1,710 | 54 | codeparrot/github-code |
0c9c6f92bbb9898e861d15a54b0c0a66ed532eab0592811ef7cef2b1e6cbe8d1 | package com.pokemaps.pokemaps;
import java.util.Random;
import com.google.android.gms.maps.model.LatLng;
import com.pokemaps.pokemaps.data.Item;
import com.pokemaps.pokemaps.data.Pokemon;
import com.pokemaps.pokemaps.data.Pokemon.PokemonRarity;
import com.pokemaps.pokemaps.data.Pokemon.PokemonType;
import com.pokemap... | Java | src/com/pokemaps/pokemaps/Utilities.java | DirkBrand/Pokemaps | apache-2.0 | 10,452 | 247 | codeparrot/github-code |
f839cf10788c88db8a355c4bc061a9bbb6e84244bbd480ed718161ddbfa09369 | /*
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
C * *
C * copyright (c) 2011 by UCAR *
C * *
C * University Corp... | C | rouziclib/libraries/orig/fftpack_double.h | Photosounder/rouziclib | apache-2.0 | 5,992 | 168 | codeparrot/github-code |
4791eb4a4736f7b83b85c07ed1d626a9839d3c69b03d7b01ccdef765d76ac578 | // <copyright file="MetricCounterFieldsExtensions.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
// ReSharper disable CheckNamespace
namespace App.Metrics
// ReSharper resto... | C# | src/Core/src/App.Metrics.Core/Extensions/MetricCounterFieldsExtensions.cs | alhardy/AppMetrics | apache-2.0 | 1,866 | 64 | codeparrot/github-code |
8be6b5c8a2ea5eb3c1276c93c269bcc21f767d0e470f3723517df9c7b57aacb5 | /*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | Java | plugin/osgi/eclipse/src/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet347.java | XClouded/t4f-core | apache-2.0 | 1,798 | 59 | codeparrot/github-code |
935dcc8e8852605bba3dc4cbc6d35afdfc9afff25a309f50d42b6c9aa5df627f | #! /usr/bin/env python
"""
Simulate DSR over a network of nodes.
Revision Info
=============
* $LastChangedBy: mandke $
* $LastChangedDate: 2011-10-26 21:51:40 -0500 (Wed, 26 Oct 2011) $
* $LastChangedRevision: 5314 $
:author: Ketan Mandke <kmandke@mail.utexas.edu>
:copyright:
Copyright 2009-2011 The Universit... | Python | sandbox/experiments/dsr/icc/test.py | reidlindsay/wins | apache-2.0 | 15,846 | 431 | codeparrot/github-code |
785a4481ac8ae4b679d2b74736b49f35395b2efc459d50315836dc1855ca7268 | package com.globalsight.ling.tm3.core;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
/**
* A set of results for a single leverage operation.
*/
public class TM3LeverageResults<T extends TM3Data> {
private T source;
privat... | Java | src/main/java/com/globalsight/ling/tm3/core/TM3LeverageResults.java | tingley/tm3 | apache-2.0 | 4,509 | 155 | codeparrot/github-code |
1fe3eedc5462cf75467a51f49c62537de3b429cb45958373c21085de5262d1be | /*
* Copyright 2012-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 "licen... | Java | aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/DescribeDocumentRequestMarshaller.java | dagnir/aws-sdk-java | apache-2.0 | 2,380 | 59 | codeparrot/github-code |
44b847d3143fb4a379d303aef2e5437c02464d7ed4b37feaad0a359b8c9ca0aa | /* *\
** Squants **
** **
** Scala Quantities and Units of Measure Library and DSL **
** (c) 2013-2015, Ga... | Scala | shared/src/main/scala/squants/radio/Radiance.scala | underscorenico/squants | apache-2.0 | 2,217 | 59 | codeparrot/github-code |
ee193704a5f647f86cdfb8fcc906d369862a0acea705d946b6e3f43a97f7b245 | /* global describe, beforeEach, it */
const path = require('path');
const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
const fse = require('fs-extra');
const expectedFiles = {
eurekaregistry: [
'./k8s/registry/jhipster-registry.yml',
'./k8s/registry/application-confi... | JavaScript | test/kubernetes.spec.js | Tcharl/generator-jhipster | apache-2.0 | 15,547 | 408 | codeparrot/github-code |
5780d15c20abdfb1239614f90beac25c4a58cd7f78aaae48c5bba07ce7ab3eac | package be.kwakeroni.evelyn.model;
import java.util.Optional;
import java.util.OptionalInt;
public class ParseException extends Exception {
private String source = null;
private Integer line = null;
private Integer position = null;
public ParseException(String message) {
super(message);
... | Java | parameters-backend/parameters-backend-inmemory/src/main/java/be/kwakeroni/evelyn/model/ParseException.java | kwakeroni/BusinessParameters | apache-2.0 | 1,413 | 59 | codeparrot/github-code |
1b20ceb6247cc27e19fe79134909e0b71e45b502c52195e7b853b6f0e88b2d76 | package com.hexonxons.leprawatch.view;
import com.hexonxons.leprawatch.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
public ... | Java | LepraWatch/src/com/hexonxons/leprawatch/view/PostElementView.java | hexonxons/LepraWatch | apache-2.0 | 1,678 | 58 | codeparrot/github-code |
273500660c47d049f4f5aebafad54353af3125597cf72f66e09035cc1df4b5d4 | package com.suscipio_solutions.consecro_mud.Abilities.Prayers;
import java.util.Vector;
import com.suscipio_solutions.consecro_mud.Abilities.interfaces.Ability;
import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg;
import com.suscipio_solutions.consecro_mud.Exits.interfaces.Exit;
import com.suscipio_solu... | Java | com/suscipio_solutions/consecro_mud/Abilities/Prayers/Prayer_SenseLife.java | ConsecroMUD/ConsecroMUD | apache-2.0 | 4,481 | 143 | codeparrot/github-code |
27ab264566f372316d4708144deac99ef4e2adf2886cfc2e7b2c3d35ea3f0175 | <!DOCTYPE html>
<html>
<head>
<title>TestNG reports</title>
<link type="text/css" href="testng-reports.css" rel="stylesheet" />
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="testng-reports.js"></script>
<script type="text/javascript" src="... | HTML | test-output/index.html | Sery-NF/selenium-java-training-serynf | apache-2.0 | 11,849 | 240 | codeparrot/github-code |
e4c74da5d27a8cde4c9d323013e21de07f112184bff2ea369e2ae0f39802d947 | package com.palmelf.eoffice.model.admin;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.... | Java | src/main/java/com/palmelf/eoffice/model/admin/ConfSummary.java | jacarrichan/eoffice | apache-2.0 | 3,683 | 132 | codeparrot/github-code |
817fecd68249b2d762c45ef26f86b6ec421380d933cb4d0c18e23e2625225649 | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>网页右键菜单</title>
<style type="text/css">
*{margin:0;padding:0;}
#right_button_menu{
wid... | HTML | Css_CodeBase/按钮或链接/3.6/网页右键菜单.html | 0end1/code_base | apache-2.0 | 2,620 | 95 | codeparrot/github-code |
be96648b4a7b7544213f79b67d27ff1a2e4e6aae99b615f15088456642f5f11c | /**
* $RCSfile$
* $Revision$
* $Date$
*
* Copyright 2013 Robin Collier
*
* 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/L... | Java | test-unit/org/jivesoftware/smack/TestUtils.java | mcaprari/smack | apache-2.0 | 2,145 | 69 | codeparrot/github-code |
b172e836a61f95bee4b238147f2902d1452d4df90a1d42733031f58f4d77373e | package org.stepic.droid.core;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
... | Java | app/src/main/java/org/stepic/droid/core/ScreenManager.java | StepicOrg/stepik-android | apache-2.0 | 7,366 | 173 | codeparrot/github-code |
343544fc3c1a388f2bdf0b99ffe6a816883ca4dd1d82e57e8f987156538bf22e | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | server/src/test/java/org/elasticsearch/cluster/coordination/FollowersCheckerTests.java | crate/crate | apache-2.0 | 30,646 | 640 | codeparrot/github-code |
6d7b11a6ba286b5bd4818a67862a4b87733b91fdca144918b14f0e420549d38d | /*
* Copyright 2017-2022 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 "licen... | Java | aws-java-sdk-inspector/src/main/java/com/amazonaws/services/inspector/model/SecurityGroup.java | aws/aws-sdk-java | apache-2.0 | 5,448 | 191 | codeparrot/github-code |
dd8a9ca6145fbb4da28e69e9ed1367c29eb7444f918cb749a3106f8992f4921c | /* Copyright (c) 2015 Michael Hamilton.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with teh License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | C++ | mtfn.cpp | fizzup/mtfn | apache-2.0 | 25,678 | 1,235 | codeparrot/github-code |
9e5328a4bebd94936af91cdb99d5b1f94d27d60150285189d2fd763f1451d450 | package ca.uhn.fhir.jpa.dao.dstu3;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.mock;
import java.io.IOException;
import java.io.InputStream;
import javax.persistence.EntityManager;
import org.apache.commons.io.IOUtils;
import org.hibernate.search.jpa.FullTextEntityManager;
import org.hibe... | Java | hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/dstu3/BaseJpaDstu3Test.java | Cloudyle/hapi-fhir | apache-2.0 | 11,670 | 275 | codeparrot/github-code |
7be0e5f080b87b0433f74fa5768cf2a1941ee34e91ca4a83d7395af42649a3f6 | using System;
using System.IO;
using System.Net;
using System.Text;
using Serilog.Core;
using Serilog.Events;
using Serilog.Formatting;
using Serilog.Sinks.Network.Formatters;
namespace Serilog.Sinks.Network.Sinks.TCP
{
public class TCPSink : ILogEventSink, IDisposable
{
private readonly ITextForm... | C# | Serilog.Sinks.Network/Sinks/TCP/TCPSink.cs | thierryx96/Serilog.Sinks.Network | apache-2.0 | 1,150 | 46 | codeparrot/github-code |
1af5dbf4987b740c8f0846f097197541e9751a98e386cf4859f8354f4555a09d | // 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... | C++ | strutil.cc | shinh/kati | apache-2.0 | 10,589 | 464 | codeparrot/github-code |
955459f39e04bfffea6da93a982a1a74f67ebd81463134be3b5bfb7f1ce0352d | package com.epam.cisen.jenkins;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.osgi.service.component.ComponentContext;
import com.epam.cisen.core.api.AbstractConnector;
import com.epam.cisen.core.api.Connector;
import com.epam.cisen.core.api.dto.CiRepor... | Java | project-java/cisen-jenkins/src/main/java/com/epam/cisen/jenkins/JenkinsConnector.java | eliogrin/CISEN | apache-2.0 | 1,181 | 46 | codeparrot/github-code |
d2ad4ae44b4449e6db2bb50861b3823583a4b70be829a9a12978379e39c1371f | /*******************************************************************************
* Copyright 2011, 2012 Chris Banes.
*
* 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.apac... | Java | jrj-TouGu/src/com/gome/haoyuangong/views/photoview/PreGingerScroller.java | simplelifetian/GomeOnline | apache-2.0 | 1,807 | 58 | codeparrot/github-code |
02eaca647a8c4fe37ddc06b989d00330a8a1f51e593055adffab3e393964d885 | /*
* 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 | xml-impl/src/main/java/com/intellij/xml/util/AnchorReferenceImpl.java | consulo/consulo-xml | apache-2.0 | 7,994 | 310 | codeparrot/github-code |
b1188bba530bcdd9152a4df89e4357ff65b7f5699c51e549890119e04a871c7a | /*
* Copyright 1&1 Internet AG, https://github.com/1and1/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | src/main/java/net/oneandone/sushi/metadata/Item.java | mlhartme/metadata | apache-2.0 | 5,220 | 185 | codeparrot/github-code |
25d44b720df7ffdfd889313793312b2dae1f29997355943e8d6afc8d2bbc53b5 | /**
* Copyright (C) 2015-2016 Miguel Osorio. All rights reserved.
*/
package models.daos
import java.util.UUID
import javax.inject.Inject
import models.Event
import org.joda.time.DateTime
import play.api.libs.json.Json
import scala.concurrent.ExecutionContext.Implicits.global
import play.modules.reactivemongo.jso... | Scala | app/models/daos/EventDAO.scala | migue48/bbg-vintage-racing | apache-2.0 | 2,331 | 89 | codeparrot/github-code |
2335021f522237c20f6df076c45abb703ce74ab8479b7e773eeecd78529f8bfa | package info.guardianproject.otr;
import info.guardianproject.otr.app.im.IDataListener;
import info.guardianproject.otr.app.im.app.ImApp;
import info.guardianproject.otr.app.im.engine.Address;
import info.guardianproject.otr.app.im.engine.ChatSession;
import info.guardianproject.otr.app.im.engine.DataHandler;
import i... | Java | src/info/guardianproject/otr/OtrDataHandler.java | prive/prive-android | apache-2.0 | 25,171 | 664 | codeparrot/github-code |
72132b0ff224a7e1cac49cf9d1ea6d05c26a4d895ffe943cefaea818d5d957ad | package model
const (
// TypeUser .
TypeUser = int32(0) // 普通tag // TypeUser tag type
// TypeUpper .
TypeUpper = int32(1) // up主tag
// TypeOfficailCategory .
TypeOfficailCategory = int32(2) // 官方-分类tag
// TypeOfficailContent .
TypeOfficailContent = int32(3) // 官方-内容tag
// TypeOfficailActivity .
TypeOfficailA... | GO | 126-go-common-master/app/service/main/tag/model/tag.go | LQJJ/demo | apache-2.0 | 1,694 | 84 | codeparrot/github-code |
307dde6f9c03a85a89691c0605b17d762d97c2e33bc584a1ec76547cb4b20208 | package com.davidbracewell.apollo.linear.sparse;
import com.davidbracewell.apollo.linear.NDArray;
import com.davidbracewell.apollo.linear.NDArrayFactory;
import org.apache.mahout.math.function.IntDoubleProcedure;
import org.apache.mahout.math.list.IntArrayList;
import org.apache.mahout.math.map.OpenIntFloatHashMap;
/... | Java | src/main/java/com/davidbracewell/apollo/linear/sparse/SparseFloatNDArray.java | dbracewell/apollo | apache-2.0 | 1,674 | 72 | codeparrot/github-code |
da69e3b9d46e6a0a82153dc5806124a7733d27ed7febf0f1b6a55fa68323f73a | <?php
class SCWS {
public $dict = 'C:\xampp\htdocs\ManYouRen\2\protected\vendors\scws\dict.xdb'; // ĬÈϲÉÓà xdb (²»ÐèÆäËüÈκÎÒÀÀµ)
public $mydata = NULL; // ´ýÇÐÊý¾Ý
public $version = 2; // ²ÉÓð汾
public $autodis = false; // ÊÇ·ñʶ±ðÃû×Ö
public $ignore = false; // ÊÇ·ñºöÂÔ±êµã
pu... | PHP | protected/vendors/scws/scws.php | mxok/travelman | apache-2.0 | 1,253 | 46 | codeparrot/github-code |
40940a4c794181cba50c616710d193b650a976ecd9ed41e23a0e3761317b6042 | package io.ino.solrs;
import static java.util.Arrays.asList;
import static java.util.concurrent.TimeUnit.SECONDS;
import static java.util.stream.Collectors.toList;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.collection.IsIterableContainingInAnyOrder.containsInAnyOrder;
import static org... | Java | src/test/java/io/ino/solrs/JavaAPIFunTest.java | inoio/solrs | apache-2.0 | 12,586 | 308 | codeparrot/github-code |
4f3ec6bc90879b72ee1d8fa2749c830e0f0b502fdfb627cccacea1582bb38607 | using Builder.Model;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
namespace Builder.Utility
{
public sealed class BuilderHelper
{
private static readonly Lazy<BuilderHelper> lazy =
new Lazy<BuilderHelper>(() => ... | C# | environments/dotnet20/builder/Utility/BuilderHelper.cs | life1347/fission | apache-2.0 | 6,557 | 181 | codeparrot/github-code |
bb2e4c5746dcaa8ff3abaf2d700cb315179c27f877c1dde73624717fefaa0a51 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package hu.bme.aait.tt.entity;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
imp... | Java | src/java/hu/bme/aait/tt/entity/Task.java | ttoth/time-tracking-system | apache-2.0 | 3,033 | 124 | codeparrot/github-code |
3ba9ad3fd760b812bb288b2a54f96d33f7929569661bdccb122a5ed597e2596e | // Copyright 2021 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 ... | Java | backend/core/utils/Circular.java | google/android-uiconductor | apache-2.0 | 2,650 | 99 | codeparrot/github-code |
21d291e70077f9baf450b447aef17d4b3be4c8cea32d2d425af2885d2ce885ed | package ro.isdc.wro.http.support;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class TestContentTypeResolver {
@Test
public void shouldResolveCSSExtenstion() {
assertEquals("text/css", ContentTypeResolver.get("somefile.css"));
}
@Test
public void shouldResolveJPGExtenst... | Java | wro4j-core/src/test/java/ro/isdc/wro/http/support/TestContentTypeResolver.java | dacofr/wro4j | apache-2.0 | 2,004 | 75 | codeparrot/github-code |
dc5427f5071a6055959cb019d389baf2951c391c65afda4e025aede746bf8127 | /*
* Copyright 2016, Pavel Annin
*
* 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 ... | Java | app/src/main/java/ru/annin/store/presentation/ui/viewholder/DetailStoreViewHolder.java | anninpavel/VTUZ_SE_Store | apache-2.0 | 2,892 | 98 | codeparrot/github-code |
3844dd96ca562640db941a6d07dbce093a2a9105c480ed4221bc9c1ce6b87e45 | #!/usr/bin/env bash
set -e
path=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cli="$path/../../../bin/esxcloud-cli"
# Store initial list of tenants
initialTenants=$($cli -n tenant list | awk '{print $2}')
# Create many tenants named by a letter in the alphabet
for name in {a..z}
do
$cli -n tenant create $na... | Shell | photon/sample_scripts/tenant_cli.sh | vmware/photon-controller-cli | apache-2.0 | 828 | 34 | codeparrot/github-code |
6722b2a43022fdf655b7ee134ac8142d6a98cca6ac55231615b064140fec54fc | /*
* 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/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java | StrategyObject/fop | apache-2.0 | 17,941 | 545 | codeparrot/github-code |
10e9364932e914442cc8471ee441947774230aee9f5f4bac1634876892e8be80 | /*
* Copyright (C) 2014 TopCoder Inc., All Rights Reserved.
*/
package gov.opm.scrd.services.impl.reporting;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import com.lowagie.text.Table;
import com.lowagie.text.rtf.RtfWriter2;
import gov.opm.scrd.LoggingHelper;
import gov.opm.scrd.en... | Java | Code/SCRD_BRE/src/java/ejb/gov/opm/scrd/services/impl/reporting/DeductionRatesReportService.java | NASA-Tournament-Lab/CoECI-OPM-Service-Credit-Redeposit-Deposit-Application | apache-2.0 | 17,452 | 351 | codeparrot/github-code |
2f0fd1548850d622af3c745cbfef18e635644a30376d0308cbcaa779e2a7566c | /**
* Copyright 2020 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... | TypeScript | jupyterlab_comments/src/service/add_comment.ts | GoogleCloudPlatform/jupyter-extensions | apache-2.0 | 2,254 | 110 | codeparrot/github-code |
2d64e5aaf23f0ea26ce05c73d167be8a7bb8497c2dff6b436db8f48cacaefd98 | package com.codechix.explorers.solardata.installation;
public class InstallationBuilder {
private SolarInstallation installation;
public InstallationBuilder() {
installation = new SolarInstallation();
}
public SolarInstallation build() {
return installation;
}
public Install... | Java | pytheas-solardata/src/main/java/com/codechix/explorers/solardata/installation/InstallationBuilder.java | codechix/CodeChix-Public-Repo | apache-2.0 | 1,689 | 64 | codeparrot/github-code |
edac51ce0d8c2a895678460c5bad4013c21211f703cdfd57bb7776b09dbf1b48 | /*
* 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-machinelearning/src/main/java/com/amazonaws/services/machinelearning/model/transform/S3DataSpecJsonUnmarshaller.java | dump247/aws-sdk-java | apache-2.0 | 3,572 | 96 | codeparrot/github-code |
af4469fdb791a09ef21dfef3bbe8535c24b5cbf0d923e06b52d5e855c5f2e226 | // Copyright 2012 Cloudera 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 in wr... | C++ | be/src/exec/hash-table.cc | cloudera/recordservice | apache-2.0 | 36,799 | 915 | codeparrot/github-code |
8f7faac4fd09816e35c3da2d8f84b65aaa39b9975a4ed3e50757426e4e75ac2b | /*
* Artifactory is a binaries repository manager.
* Copyright (C) 2012 JFrog Ltd.
*
* Artifactory 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, either version 3 of the License, or
* (at your o... | Java | backend/core/src/main/java/org/artifactory/repo/db/DbStoringRepoMixin.java | alancnet/artifactory | apache-2.0 | 36,688 | 805 | codeparrot/github-code |
49adcd2aaad4188c3543a4ac7bd8a34b9de4df0b66d8575329823bb15014104e | package org.gradle.test.performance.mediummonolithicjavaproject.p452;
public class Production9041 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | Java | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p452/Production9041.java | oehme/analysing-gradle-performance | apache-2.0 | 1,891 | 105 | codeparrot/github-code |
f6bca6c532d0cfe63121aad852834a915694cf3f653303e284eef1b73c15f10d | package org.gradle.test.performance.mediummonolithicjavaproject.p55;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test1103 {
Production1103 objectUnderTest = new Production1103();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.s... | Java | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p55/Test1103.java | oehme/analysing-gradle-performance | apache-2.0 | 2,110 | 79 | codeparrot/github-code |
513b39df48abd6ab17109ad2ddc75250b9b6231cad5672be777da4b754581d35 | /*
*
* * Copyright 2012-2015 Viant.
* *
* * Licensed under the Apache License, Version 2.0 (the "License"); you may not
* * use this file except in compliance with the License. You may obtain a copy of
* * the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by ap... | Java | client/src/main/java/com/sm/store/client/TCPClientFactory.java | viant/CacheStore | apache-2.0 | 3,058 | 75 | codeparrot/github-code |
def6e1f17e74572f87d2efdd6af9dd2cb132a2c0569cdb3e3c458a1a532b9ea6 | /*******************************************************************************
* 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 Lice... | Java | register-interest/src/main/java/org/mousephenotype/cda/ri/entities/ContactGene.java | mpi2/PhenotypeData | apache-2.0 | 2,148 | 79 | codeparrot/github-code |
85aab0ea8a15ce937f4ab8ae8af3d5e076997b39a02b27bdad016825fa4be081 | // Copyright 2020 The Tink-Rust 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 ag... | Rust | daead/benches/benchmarks.rs | project-oak/tink-rust | apache-2.0 | 2,181 | 63 | codeparrot/github-code |
99ac554bab5a294626340cd4c6fff0758661f85c12b6438a4e4ef8a5c4df41bf | /* Copyright (c) 2018 PaddlePaddle 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 agr... | C | paddle/fluid/inference/tensorrt/engine.h | PaddlePaddle/Paddle | apache-2.0 | 26,251 | 728 | codeparrot/github-code |
ee6ea267afb301099a11351c89c14eae656294e99e63bed0ae3cd50de1110e30 | # coding=utf-8
#下面的代码是接口函数,无关
def get(ar,index):
l=len(ar);
if index<0:
return ar[l+index];
else:
return ar[index];
def find(ar,filter):
for r in ar:
if filter(r):
return r;
return None;
def execute(ar,filter,action):
for r in ar:
if filter(r):
action(r);
unabled=[户型图存储方案,户型图存储,安居客户型列表,安居客评价... | Python | 安居客/安居客.py | ferventdesert/Hawk-Projects | apache-2.0 | 1,454 | 76 | codeparrot/github-code |
b666da639fbad54a75724953c911aa1bfb27a5673f51ae48eedf8e52412a5262 | package org.vaadin.grid.enhancements.client.navigation;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Node;
import com.google.gwt.dom.client.NodeList;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.user.client.Command;
im... | Java | GridEnhancements/src/main/java/org/vaadin/grid/enhancements/client/navigation/BodyNaviagtionHandler.java | bonprix/vaadin-grid-enhancements | apache-2.0 | 2,334 | 84 | codeparrot/github-code |
85203c2d83280a34567c7ff01060f25152a8ccc64ad70a551d13f7f00e10b748 | <?php
if ( !defined( 'ABSPATH' ) || ! defined( 'YITH_YWRAQ_VERSION' ) ) {
exit; // Exit if accessed directly
}
/**
* Implements helper functions for YITH Woocommerce Request A Quote
*
* @package YITH Woocommerce Request A Quote
* @since 1.0.0
* @author Yithemes
*/
if ( !function_exists( 'yith_ywraq_locat... | PHP | wp-content/plugins/yith-essential-kit-for-woocommerce-1/modules/yith-woocommerce-request-a-quote/includes/functions.yith-request-quote.php | thenguyenit/wordpress | apache-2.0 | 12,751 | 418 | codeparrot/github-code |
d69ff2bc2cc88cb3fb10f8c64997b2f278a6bc4476fc40c0e33b63ac131a3522 | /*
* 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 | virtdata-lib-curves4/src/main/java/org/apache/commons/math4/linear/SingularValueDecomposition.java | virtualdataset/metagen-java | apache-2.0 | 28,974 | 745 | codeparrot/github-code |
47ab097a47b10a7ad400802b24567f8f7dd484b5e5b8ad11fa8162f36be6f9cf | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>PHPExcel classes</title>
<meta name="author" content="... | HTML | protected/messages/PHPExcel/Documentation/API/markers.html | kristhianfigueroa/retos | apache-2.0 | 20,912 | 498 | codeparrot/github-code |
f19dcedb3d2316499728cd2ca817c90fefdf2608434c0bbd272de25fe0b2891b | package org.pathvisio.biomartconnect.impl;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import... | Java | src/org/pathvisio/biomartconnect/impl/TableDialog.java | mkutmon/biomartconnect | apache-2.0 | 2,032 | 74 | codeparrot/github-code |
0eed7f1697afa1baa188a1e3f532c03f880aafaf99118cbb357e74715aed9240 | /*
* Copyright 2012-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 "licen... | Java | aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/transform/UntagResourceRequestProtocolMarshaller.java | dagnir/aws-sdk-java | apache-2.0 | 2,580 | 62 | codeparrot/github-code |
e0825635e4aa9d78706ec57ee57c3c6e234b48ee129db8bb2d225e5f16be34bd | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.curve.generator;
import com.opengamma.analytics.financial.interestrate.YieldCurveBundle;
import com.opengamma.analytics.financial.interest... | Java | src/com/opengamma/analytics/financial/curve/generator/GeneratorCurveYieldPeriodicInterpolatedNode.java | charles-cooper/idylfin | apache-2.0 | 2,880 | 75 | codeparrot/github-code |
2fbff77a3218775ef62ea073eb5b4add018f538a198fb2d94e37c38367306855 | <?php
/* Copyright (C) 2004-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
* Cop... | PHP | dolibarr/install_dummy/etape1.php | SOSWEB-CH/protocall | apache-2.0 | 20,051 | 617 | codeparrot/github-code |
b46fd867ec03fea4220eadd810e79c75f5caee15af9d671a404dc7c7640f0b91 | /*
* 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/main/java/org/apache/sysml/api/mlcontext/ProjectInfo.java | iyounus/incubator-systemml | apache-2.0 | 3,620 | 136 | codeparrot/github-code |
4518c26f3bd0352d0f343d2cc9e92ef63c0c7d609d6b5f9351bb0beb3cfb7fd9 | /*
* 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-rekognition/include/aws/rekognition/model/FaceRecord.h | JoyIfBam5/aws-sdk-cpp | apache-2.0 | 3,992 | 121 | codeparrot/github-code |
b9315380ba06fb2360826dff13ef5f891330f2a9ebd26811d29ec0a873dd3ccb | package at.linuxtage.companion.model;
public class DownloadScheduleResult {
private static final DownloadScheduleResult RESULT_ERROR = new DownloadScheduleResult(0);
private static final DownloadScheduleResult RESULT_UP_TO_DATE = new DownloadScheduleResult(0);
private final int eventsCount;
private DownloadSche... | Java | app/src/main/java/at/linuxtage/companion/model/DownloadScheduleResult.java | linuxtage/glt-companion | apache-2.0 | 951 | 42 | codeparrot/github-code |
9979eb7cfdc235b85d55d67a303ff2fa0cc39b9089d9ae2566432f25b8bdc8fe | package com.planet_ink.coffee_mud.Abilities.Prayers;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
impor... | Java | com/planet_ink/coffee_mud/Abilities/Prayers/Prayer_ConsecrateLand.java | bozimmerman/CoffeeMud | apache-2.0 | 4,232 | 146 | codeparrot/github-code |
22a766ebca1449c55935bcccc28c2830b8c4d26742367acd7c3f00e527cfc214 | /**
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
*/
define(['require', 'elementUtils'],
function (require, ElementUtils) {
/**
* @class Trigger
* @constructor
* @class Trigger Creates a Trigger
... | JavaScript | components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/editor/js/design-view/elements/definitions/trigger.js | wso2/carbon-analytics | apache-2.0 | 2,455 | 84 | codeparrot/github-code |
ada5e388d7c0786d99b317df702a4ac58c4db037b4ecc3081213149ee6f07c6a | /**
* Copyright 2011 The Buzz Media, 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 applicab... | Java | src/main/java/org/ubjson/io/charset/StreamEncoder.java | thebuzzmedia/universal-binary-json-java | apache-2.0 | 3,859 | 122 | codeparrot/github-code |
f439c97f7d971057704444483be649916ad5790a89f622100c927af9c18e6e77 | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | C++ | exegesis/x86/microarchitectures.cc | google/EXEgesis | apache-2.0 | 20,747 | 670 | codeparrot/github-code |
cc2b465db180f37127337d570eb9ae88af32917b8507ed31909b87fa3ed7f1b5 | /**
* 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/replication/TestReplicationWithTags.java | HubSpot/hbase | apache-2.0 | 10,471 | 262 | codeparrot/github-code |
3ab3edb0900a1dc789157661bdc3685bc9f098c054f6f90a3d44b900cfb58658 | /*
* 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/tools/nodetool/DescribeRing.java | strapdata/cassandra | apache-2.0 | 1,874 | 53 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.