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 |
|---|---|---|---|---|---|---|---|---|
6bb289c6dcc288dc84a6866ee9ce4b2dbe333a49f6f029a7fcaed15f808271f5 | <?php
class Language implements \ArrayAccess
{
private static $_instance = null;
private $_registry;
private $_data = [];
public function getInstance (\Registry $registry)
{
if (self::$_instance !== null) {
self::$_instance = new __CLASS__($registry);
}
return self::$_instance;
}
pri... | PHP | system/lib/Language.php | Prezto/Shopr | apache-2.0 | 1,461 | 70 | codeparrot/github-code |
288dd71433b3b066564606dac447f5bfbb456c496f529aa673203581f89b2a65 | package jat.gps_ins.relative;
/* JAT: Java Astrodynamics Toolkit
*
* Copyright (c) 2003 The JAT Project. All rights reserved.
*
* This file is part of JAT. JAT is free software; you can
* redistribute it and/or modify it under the terms of the
* NASA Open Source Agreement, version 1.3 or later.
*
* This p... | Java | src/main/resources/libs/JAT/jat/gps_ins/relative/RGPS_SIMU.java | MaximTar/satellite | apache-2.0 | 2,539 | 72 | codeparrot/github-code |
6ec42b11f63c65f21224e95ea2875b647d782907b32f47940495f0b65a8a9978 | /**
* @license Copyright 2017 The Lighthouse 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 applica... | JavaScript | lighthouse-viewer/app/src/lighthouse-report-viewer.js | umaar/lighthouse | apache-2.0 | 13,779 | 458 | codeparrot/github-code |
dc6fec69fe1da4d5c0ad0ef0019b9508b45718c2716d45eeb39ce033e4ea55e8 | package com.example.ledgr.dataobjects;
import java.util.ArrayList;
import java.util.UUID;
import junit.framework.Assert;
import org.joda.time.LocalDate;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.databas... | Java | src/com/example/ledgr/dataobjects/ItemsData.java | randyychan/Ledgr | apache-2.0 | 13,338 | 320 | codeparrot/github-code |
4d1942f5371dc37eb391f37f8ab31aadef5c4ea4857587a73d80023d330727a4 | // Copyright 2010 Victor Iacoban
//
// 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... | Java | plugins/hg4idea/src/org/zmlx/hg4idea/util/HgUtil.java | hurricup/intellij-community | apache-2.0 | 26,823 | 678 | codeparrot/github-code |
7547f7aa35b3daac2543b8f4870e7fdf966ed13666be9ffa1076657f93c8fefc | /*
* Copyright (c) 2015 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | C | src/plugins/dpdk/device/node.c | vpp-dev/vpp | apache-2.0 | 15,254 | 501 | codeparrot/github-code |
5065166d66594b9258c2fcf113607a96e8dc7c04e8927bde2679afba3a7e880f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Ionic makes it incredibly easy to build beautiful and interactive mobile apps using HTML5 and AngularJS.">
<meta name="keywords" content="html5,ja... | HTML | _site/docs/1.0.0-beta.12/api/utility/ionic.DomUtil/index.html | philmerrell/ionic-site | apache-2.0 | 35,723 | 1,559 | codeparrot/github-code |
d201004d76a821535653596b4a99c1ee839557a2225b9e4d629369449da30f6e | package liquibase.sqlgenerator.ext;
import liquibase.database.Database;
import liquibase.database.ext.HanaDBDatabase;
import liquibase.datatype.DataTypeFactory;
import liquibase.sql.Sql;
import liquibase.sql.UnparsedSql;
import liquibase.sqlgenerator.SqlGeneratorChain;
import liquibase.sqlgenerator.core.DropDefaultVal... | Java | src/main/java/liquibase/sqlgenerator/ext/DropDefaultValueGeneratorHanaDB.java | lbitonti/liquibase-hana | apache-2.0 | 2,082 | 54 | codeparrot/github-code |
123436b5cc3e2c2639006080e0f630d81a08c9411709aa5b122811fbc981c07c | /*
* Copyright 2014-2019 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-iotthingsgraph/src/main/java/com/amazonaws/services/iotthingsgraph/model/FlowExecutionEventType.java | jentfoo/aws-sdk-java | apache-2.0 | 2,594 | 76 | codeparrot/github-code |
0afe922583087f4a9d7866369c802314221d0f7e9c5cba746854215de3b81121 | package com.weygo.weygophone.pages.tabs.home.widget;
import android.content.Context;
import android.util.AttributeSet;
import com.weygo.weygophone.R;
import com.weygo.weygophone.pages.common.widget.WGCommonHorizontalListView;
/**
* Created by muma on 2017/6/4.
*/
public class WGHomeContentFloorClassifyColumnView ... | Java | app/src/main/java/com/weygo/weygophone/pages/tabs/home/widget/WGHomeContentFloorClassifyColumnView.java | mumabinggan/WeygoPhone | apache-2.0 | 858 | 31 | codeparrot/github-code |
f97ec264d9a96176d765566dd59f3f1d93b3caa9024c5db28fe899e6d4c6c1b1 | package com.hazelcast.internal.metrics.metricsets;
import com.hazelcast.internal.metrics.LongGauge;
import com.hazelcast.internal.metrics.ProbeLevel;
import com.hazelcast.internal.metrics.impl.MetricsRegistryImpl;
import com.hazelcast.logging.Logger;
import com.hazelcast.test.AssertTask;
import com.hazelcast.test.Haze... | Java | hazelcast/src/test/java/com/hazelcast/internal/metrics/metricsets/RuntimeMetricSetTest.java | lmjacksoniii/hazelcast | apache-2.0 | 3,465 | 108 | codeparrot/github-code |
4ca10b9a9daf1308f926a1f559c39b124455367dbcb192284491dc66939b5261 | /* $NetBSD: sdmmcchip.h,v 1.4 2011/05/18 01:07:17 dyoung Exp $ */
/* $OpenBSD: sdmmcchip.h,v 1.3 2007/05/31 10:09:01 uwe Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provide... | C | sys/dev/sdmmc/sdmmcchip.h | execunix/vinos | apache-2.0 | 4,033 | 122 | codeparrot/github-code |
c5cfc045093f6881df57a71142bc21f8608e2ca1dbae86ab2b2f8957aba60ff3 | /*
* Copyright (C) 2007 The Guava 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 agre... | Java | guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java | aiyanbo/guava | apache-2.0 | 5,714 | 157 | codeparrot/github-code |
9ab8b5102965033902dde6f5fb26b6a20aa502259c72a267d0d1147917c3fc84 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.Extensions.Internal;
namespace Microsoft.AspNetCore.SignalR
{
/// <summary>
/// Cont... | C# | src/SignalR/server/Core/src/HubInvocationContext.cs | aspnet/AspNetCore | apache-2.0 | 2,838 | 72 | codeparrot/github-code |
d102cde7f298f17a6ea0ecb7f00073de7c79bdd044db35c79de808fef1b79b86 | package org.docksidestage.postgresql.dbflute.cbean.nss;
import org.docksidestage.postgresql.dbflute.cbean.cq.ProductCategoryCQ;
/**
* The nest select set-upper of product_category.
* @author DBFlute(AutoGenerator)
*/
public class ProductCategoryNss {
// ========================================================... | Java | src/main/java/org/docksidestage/postgresql/dbflute/cbean/nss/ProductCategoryNss.java | dbflute-test/dbflute-test-dbms-postgresql | apache-2.0 | 1,477 | 31 | codeparrot/github-code |
0198fff607244f0e24e53adbb0cc08b503873fd6780e7314344c07ca5f111cf0 | /*
* Copyright 2014-2015 Objectos, Fábrica de Software LTDA.
*
* 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 | orm/orm-compiler/src/main/java/br/com/objectos/way/orm/compiler/CompanionTypeFactory.java | objectos/way | apache-2.0 | 1,726 | 53 | codeparrot/github-code |
16e2b6ed31dd9e98523d4e86c9dbc7832c6b556e1a8e811008234d69daf510d5 | require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
module NMEAPlus
module Message
module AIS
module VDMPayload
# AIS Type 24: Static Data Report
class VDMMsg24 < NMEAPlus::Message::AIS::VDMPayload::VDMMsg
payload_reader :part_number, 38, 2, :_u
# Override default bit... | Ruby | lib/nmea_plus/message/ais/vdm_payload/vdm_msg24.rb | ifreecarve/nmea_plus | apache-2.0 | 1,933 | 52 | codeparrot/github-code |
7418650d5dd19af13501735fb93f44f50d50f93489803a151c4ba131962677c4 | /*
* 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 | src/main/java/com/google/maps/PlaceDetailsRequest.java | googlemaps/google-maps-services-java | apache-2.0 | 5,703 | 175 | codeparrot/github-code |
7a374a39ddb496d273e8e16ab996de9eac06688f65bb5265eef84291d374ef1c | /*
* Copyright 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 applica... | Java | src/test/java/com/github/carlomicieli/nerdmovies/models/MailUserTests.java | CarloMicieli/spring-mvc-movies | apache-2.0 | 1,421 | 47 | codeparrot/github-code |
44a9b9694b763ad24ab8e824a00a784d2dec246cb091a01f7c122111508454a1 | /*
* Copyright (c) 2016 ingenieux Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Java | beanstalk-maven-plugin/src/main/java/br/com/ingenieux/mojo/beanstalk/config/DeleteConfigurationTemplateMojo.java | ingenieux/beanstalker | apache-2.0 | 2,439 | 79 | codeparrot/github-code |
2a52a534e53242933a11786981a86f1c1c9a82febc0ea6958a5d24e31b79c8a2 | package com.davidflex.supermarket.agents.shop;
import com.davidflex.supermarket.agents.behaviours.shop_agent.ListenEmployeesBehaviour;
import com.davidflex.supermarket.agents.behaviours.shop_agent.ListenNewOrdersBehaviour;
import com.davidflex.supermarket.agents.behaviours.shop_agent.ShowDataBehaviour;
import com.davi... | Java | src/main/java/com/davidflex/supermarket/agents/shop/ShopAgent.java | davidmigloz/supermarket-agent-system | apache-2.0 | 4,443 | 142 | codeparrot/github-code |
7aa7f4131d9c2c19a91995c0132201ef1d458ccaa6d97ccc97832eff6536b552 | /**
* Copyright 2013 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 ... | Java | core/src/test/java/com/google/bitcoin/wallet/DeterministicKeyChainTest.java | cbeams/bitcoinj | apache-2.0 | 14,404 | 295 | codeparrot/github-code |
182919bd48962fa270e947bb0bf73a6b48599669646f7bd53812db13aa200462 | package org.feldspaten.hyperion.html;
import java.util.LinkedList;
import java.util.List;
public class Page extends Html {
private String title = "";
/** If > 0, autorefresh is enabled with the given interval */
private int autoRefreshDelay = 0;
/** Meta fields */
private List<String> metas = new LinkedList<>(... | Java | org.feldspaten.hyperion/src/org/feldspaten/hyperion/html/Page.java | grisu48/Hyperion | apache-2.0 | 2,022 | 94 | codeparrot/github-code |
6da660256340bd71b1a378e6c90e60d0c6526401cfb53923b5356152a1a6bb31 | /**
* @license
* Copyright 2016 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 requir... | JavaScript | common/js/src/logging/logging.js | GoogleChromeLabs/chromeos_smart_card_connector | apache-2.0 | 12,352 | 368 | codeparrot/github-code |
bacccf123566453e40462ffc5b48513537701c8a1aad7a72663bd83a76863a69 | package com.neurospeech.hypercube.ui;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
im... | Java | hypercube/src/main/java/com/neurospeech/hypercube/ui/CustomViewPager.java | neurospeech/android-hypercube | apache-2.0 | 4,186 | 169 | codeparrot/github-code |
addca9968cc8c5ae3c5021963ae3c9daa188a8e19d3a7fd0d766def06c03622e | /*
* 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-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/transform/PutJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 4,208 | 98 | codeparrot/github-code |
46ab0b0689249b4bb054935c98d84bae6331bae0d35d533ac92108a20e7f7637 | /*
* Copyright 2003 - 2021 The eFaps 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 law or ... | Java | src/test/java/org/efaps/eql/PrintTest.java | eFaps/eFaps-Kernel | apache-2.0 | 17,502 | 455 | codeparrot/github-code |
fbe76ca0aa229a5cc0329de7ca41c055d2c415ca340cc7c40beaf7a3a914f206 | package cn.felord.wepay.ali.sdk.api.response;
import cn.felord.wepay.ali.sdk.api.internal.mapping.ApiField;
import cn.felord.wepay.ali.sdk.api.AlipayResponse;
/**
* ALIPAY API: alipay.pass.instance.add response.
*
* @author auto create
* @version $Id: $Id
*/
public class AlipayPassInstanceAddResponse extends Al... | Java | src/main/java/cn/felord/wepay/ali/sdk/api/response/AlipayPassInstanceAddResponse.java | NotFound403/WePay | apache-2.0 | 1,403 | 69 | codeparrot/github-code |
43200847c195864fb8be60282f756f118f60a535022523f5836c2013bff74694 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using WebJobs.Extens... | C# | src/ExtensionsSample/Samples/SplunkSamples.cs | glennblock/azure-webjobs-sdk-extensions-splunk | apache-2.0 | 2,267 | 67 | codeparrot/github-code |
5c98cbfa70ad38fe4e571411069070e0b15fc7baac55ad8e71ed7130f1e010b9 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html version="-//W3C//DTD XHTML 1.1//EN"
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/1999/xhtml
... | HTML | www/api/stream.html | hxfxjun/ImageMagick-6.9.1 | apache-2.0 | 11,522 | 280 | codeparrot/github-code |
8d359dba86663e6c26df6e10f1e95d315f659053fb56580eadd6db61617182a1 | /**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.90 (Sat, 18 Jun 2016 21:01:41 GMT)
*
* @copyright
* Copyright (C) 2004-2013 Alex Gorbat... | JavaScript | assets/js/syntaxhighlighter3/shBrushPython.js | guileschool/guileschool.github.io | apache-2.0 | 2,469 | 65 | codeparrot/github-code |
01c6a459a7dc09d665179dc8f6d9dbd1436cbcf813749b25e17c3a821e399642 | package org.apache.helix.integration.task;
/*
* 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 L... | Java | helix-core/src/test/java/org/apache/helix/integration/task/TestUnregisteredCommand.java | lei-xia/helix | apache-2.0 | 2,328 | 61 | codeparrot/github-code |
f4109b073b7dafbe857453e73bce90829eb446800afd4d116c5b4677d3b7b350 | /*
* Copyright (C) 2014-2016 LinkedIn Corp. 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 appl... | Java | gobblin-yarn/src/main/java/gobblin/yarn/GobblinYarnConfigurationKeys.java | yukuai518/gobblin | apache-2.0 | 4,517 | 76 | codeparrot/github-code |
622f908573840c384331330db8fbf8631945c3dcbd253ddb9abf1a04781d3e7c | /**
* Copyright (C) 2006-2020 Talend Inc. - www.talend.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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | JavaScript | component-starter-server/src/main/frontend/backend/index.js | chmyga/component-runtime | apache-2.0 | 1,677 | 60 | codeparrot/github-code |
9ba89f8546db43670ca177bf4ea355e2d1b9a44a130b41c9a478cd8ee729cce6 | #pragma once
#include <string>
#include <tuple>
#include <vector>
#include <boost/numeric/ublas/io.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include "pmlc/util/math/polynomial.h"
namespace pmlc::util::math {
class Matrix : public boost::numeric::ublas::matrix<Rationa... | C | pmlc/util/math/matrix.h | plaidml/plaidml | apache-2.0 | 2,781 | 77 | codeparrot/github-code |
441e09fa4c4f094969b5bdd53ac96cae011faa1ed65d66db3ead5915e610d36a | package org.sketchertab.style;
import android.graphics.Canvas;
import android.graphics.PointF;
import java.util.ArrayList;
import java.util.Map;
class SketchyStyle extends StyleBrush {
private float prevX;
private float prevY;
private float density;
private ArrayList<PointF> points = new ArrayList<P... | Java | src/org/sketchertab/style/SketchyStyle.java | dkovalkov/Sketcher-Tab | apache-2.0 | 2,060 | 80 | codeparrot/github-code |
43491323d9476185e894277f3f1852aa596e7420f0316ab5f78ad1b3adda1b82 | //
// Preferences.cpp
//
// $Id: //poco/1.7/OSP/samples/Preferences/src/Preferences.cpp#1 $
//
// Copyright (c) 2007-2016, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#include "Poco/OSP/BundleActivator.h"
#include "Poco/OSP/BundleContext.h"
#incl... | C++ | platform/OSP/samples/Preferences/src/Preferences.cpp | nextsmsversion/macchina.io | apache-2.0 | 2,650 | 98 | codeparrot/github-code |
ed1f171ee5ecf8610838e8c7544102a4af1919d45e23e57f1afc0407d58fa56a | /*
* 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/EC2/Generated/Model/Internal/MarshallTransformations/BundleInstanceResponseUnmarshaller.cs | mwilliamson-firefly/aws-sdk-net | apache-2.0 | 3,566 | 101 | codeparrot/github-code |
449e0e1b364aeabbe05d50d106ba5528035791d65d9d7e12a9ab4b0f996dbda4 | package net.swiftos.eventposter.core;
import android.app.Application;
import net.swiftos.eventposter.factory.HandlerFactory;
import net.swiftos.eventposter.modules.activitylife.handler.ActivityLifeHandler;
import net.swiftos.eventposter.template.IHandler;
/**
* Created by gy939 on 2016/10/3.
*/
public class EventP... | Java | eventposter/src/main/java/net/swiftos/eventposter/core/EventPoster.java | ganyao114/SwiftAndroid | apache-2.0 | 1,951 | 75 | codeparrot/github-code |
ae91eecd44e8b07f2a7514bf13492938ea80c8e24ac1f89442451cf15e00d576 | package burlap.domain.singleagent.gridworld;
import burlap.domain.singleagent.gridworld.state.GridWorldState;
import burlap.mdp.core.action.Action;
import burlap.mdp.core.state.State;
import burlap.mdp.singleagent.model.RewardFunction;
/**
* This class is used for defining reward functions in grid worlds that are a... | Java | src/main/java/burlap/domain/singleagent/gridworld/GridWorldRewardFunction.java | jmacglashan/burlap | apache-2.0 | 4,390 | 114 | codeparrot/github-code |
4b7dc8657d08839973cce14914050b86af70da8121723918fc8571fc48d6fff3 | /*
Copyright 2022 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, softwar... | Java | fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java | kubernetes-client/java | apache-2.0 | 8,415 | 216 | codeparrot/github-code |
83d2f9970062689de86b47dbe926b8c17f6176baaeff761dd93f8f80380ce57a | /**
* Copyright 2008 - 2012
*
* 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... | Java | Java/old/OpenGL-1.0(old_ver)/Loon-backend-JavaSE/src/loon/action/sprite/painting/Drawable.java | cping/LGame | apache-2.0 | 4,165 | 169 | codeparrot/github-code |
d28f3c34b6f1f93a4cf4c0810b11a1d239a98aa61362d7ddd46f37c74cc76f74 |
#include <lua.h>
#include <lauxlib.h>
#include <stdio.h>
#include <string.h>
/* Don't define bool, true, and false in C++, except as a GNU extension. */
#ifndef __cplusplus
#define bool int
#define true 1
#define false 0
#elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
/* Define _Bool, bool, false, true as a GNU... | C | lib/cocos2d-x/scripting/lua/cocos2dx_support/snapshot.c | idtek/extendwork | apache-2.0 | 11,451 | 429 | codeparrot/github-code |
cd731f0b88b472a5538a921bba446a3606f369274a8a25f4dcf9de410e0a240e | package play
import (
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"library/logger"
"sync"
. "types"
)
var AllPlayerM = NewPlayersManager()
type PlayerManager struct {
Players map[IdString]*Player
sync.Mutex
}
func NewPlayersManager() *PlayerManager {
return &PlayerManager{
Players: make(map[IdString]*Player,... | GO | src/game/server/play/playermanager.go | Leigh-Ma/gServer | apache-2.0 | 1,972 | 103 | codeparrot/github-code |
908636eefd4af479fa9e2fe8b5f2d9a291f35e1843ae28067f05a3e17566510f | package net.catchpole.silicone.resource;
// Copyright 2014 catchpole.net
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//... | Java | silicone/src/main/java/net/catchpole/silicone/resource/ClasspathResourceSource.java | slipperyseal/silicone | apache-2.0 | 1,023 | 32 | codeparrot/github-code |
4cf353ea1860d59c3c28e60cc4ee27797928dc512e736950a3e0d1ae2677d70b | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace UserInterface
{
public partial class SubjectForm : Form
{
MainMenu parent;
public SubjectForm(MainMe... | C# | UserInterface/UserInterface/SubjectForm.cs | Shin-Aska/GradingSystem-Prototype | apache-2.0 | 2,235 | 69 | codeparrot/github-code |
be4a753122462f3fbb7c05c9c8be449caaf6b7476dc338b2a5fa7fe35b7dd26c | /*
* Copyright 2016-2021 52°North Spatial Information Research GmbH
*
* 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 requi... | Java | engine/src/main/java/org/n52/javaps/algorithm/annotation/AbstractDataBinding.java | 52North/javaPS | apache-2.0 | 2,569 | 94 | codeparrot/github-code |
3befcff4ccee3fcc98f976053ddc68eea1b046a822b1bdfe8e810ced2b89c5e9 | 'use strict';
/**
* Tests for when Zotero is down/inaccessible
*/
const assert = require('../../utils/assert.js');
const Server = require('../../utils/server.js');
describe('Zotero service down or disabled:', function () {
describe('unreachable', function () {
this.timeout(20000);
const serve... | JavaScript | test/features/scraping/no-zotero.js | wikimedia/citoid | apache-2.0 | 28,908 | 487 | codeparrot/github-code |
bb878cac7dade9a783f3b01414136b12dd6757806755c7381068ae26657fe53c | /*
* This file is part of the Heritrix web crawler (crawler.archive.org).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
*... | Java | engine-3.1.1/engine/src/main/java/org/archive/crawler/restlet/ScriptResource.java | searchtechnologies/heritrix-connector | apache-2.0 | 13,729 | 329 | codeparrot/github-code |
3b2e7f40de1dd8f058992d4ef458818525332875ba9c24956ec2494f533ca29d | /*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*
*
*
*/
/*
*
* Varian, Inc. and its contributors. Use, disclosure and... | Java | src/cryo/src/ClientGui.java | OpenVnmrJ/OpenVnmrJ | apache-2.0 | 11,697 | 436 | codeparrot/github-code |
99582dd136828073773184cb916503cd7d4cd3134b9d5f73cab538a75579bf54 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Spaetzel.QueueDA
{
public static class Queue
{
/// <summary>
/// Locks the top message
/// </summary>
/// <returns></returns>
public static Message GetLockTopMessage()
... | C# | Queue.cs | spaetzel/QueueDA | apache-2.0 | 1,643 | 72 | codeparrot/github-code |
081b5619d774bddadd412a7e3e3f4b21a4a07804a528e17e294109b6949cc344 | # Copyright 2018 Google LLC. 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... | Python | text-dream/python/helpers/setup_helper.py | PAIR-code/interpretability | apache-2.0 | 3,457 | 95 | codeparrot/github-code |
5ccc50f40594e4ab4e1eecaba2eead99e9fb82c34b5b04a9d845c39903c60c98 |
#region Apache Notice
/*****************************************************************************
* $Revision: 638571 $
* $LastChangedDate: 2008-03-18 15:11:57 -0600 (Tue, 18 Mar 2008) $
* $LastChangedBy: gbayon $
*
* iBATIS.NET Data Mapper
* Copyright (C) 2006/2005 - The Apache Software Foundation
*
*
... | C# | IBatisNet.Common.Logging.Log4Net/Log4NetLoggerFA.cs | yYang365/IBatisNet | apache-2.0 | 3,643 | 130 | codeparrot/github-code |
9a7ffa6140a262d559995f4059ff56c7cca227abe4bdcf413829ab19476457e6 | /*
* Copyright 2013 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... | Java | demo/src/com/google/maps/android/utils/demo/ClusteringDemoActivity.java | canlasd/Map-Plotting | apache-2.0 | 5,098 | 182 | codeparrot/github-code |
b864db035737532cf1bc1bdba9ac2bc38da04ac1e6582e1563fe4bed9e1d5802 | #region Apache License 2.0
// Copyright 2008-2010 Christian Rodemeyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... | C# | source/SvnQuery/Index.cs | kalyptorisk/svnquery | apache-2.0 | 3,865 | 120 | codeparrot/github-code |
290edcdc971c26aebe3342dba2ac5031e7b9fabf1b28e5c4a9ca5277fde5caef | /*
* Copyright 2003-2021 Dave Griffith, Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Java | platform/lang-api/src/com/intellij/codeInspection/ui/SingleCheckboxOptionsPanel.java | siosio/intellij-community | apache-2.0 | 1,190 | 30 | codeparrot/github-code |
6058a7d8710e9052e837abb1e0e7372893fa4e8b416d36b230f74971d6a2575a | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | Java | platform/src/main/java/net/firejack/platform/generate/beans/web/model/Model.java | firejack-open/Firejack-Platform | apache-2.0 | 9,491 | 415 | codeparrot/github-code |
7891cc5a6e1e51da17542c9c19d1dcfed42190b18834bed6e89c4ec9cac065a0 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP | system/core/Router.php | jonyhandoko/khayana | apache-2.0 | 12,905 | 536 | codeparrot/github-code |
a577af7a70630940031f7fd771132be22683d698a170b964938d390b2cdec95a | /*
* Copyright (C) 2013 salesforce.com, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | JavaScript | aura-impl/src/main/resources/aura/storage/adapters/MemoryAdapter.js | DebalinaDey/AuraDevelopDeb | apache-2.0 | 9,685 | 350 | codeparrot/github-code |
fe04d10c8df5c69638863212bc251030df7d9997e8eeca8c7a4af95c60d0d0c3 | /*
* Copyright 2016-2020 Stefan Kalscheuer
*
* 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 | src/main/java/de/stklcode/jvault/connector/model/response/embedded/SecretMetadata.java | skalscheuer/jvaultconnector | apache-2.0 | 3,327 | 128 | codeparrot/github-code |
ca5798070e669fefb855139f20d308aa0d2a1f0b80e909ea6a9b76328e64bce5 | /* See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Esri 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... | Java | src/com/esri/gpt/control/webharvest/client/arcims/ArcImsRecordsAdapter.java | usgin/usgin-geoportal | apache-2.0 | 2,302 | 75 | codeparrot/github-code |
07fa2f8b3a626b7cd1bbe3de68866253bd9f329603c3801b8e9e8dbfe8a6e030 | import { Injectable } from '@angular/core';
import { Http, Headers, RequestOptions, Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import * as _ from 'lodash';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
import 'rxjs/add/observable/throw';
import 'rxjs/add/observab... | TypeScript | xenon-ui/src/main/ui/src/client/app/modules/app/services/base.service.ts | toliaqat/xenon | apache-2.0 | 8,677 | 225 | codeparrot/github-code |
6bcbd51a17599841eaf985553ad5cc6d6f71c38c7b5571707c333a9b62a70b76 | /*
* Copyright 2016-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 a... | C++ | folly/MicroLock.cpp | rklabs/folly | apache-2.0 | 2,308 | 69 | codeparrot/github-code |
6fc7d33e18b067a80f8edec30aeecd8b074bee0da9f8d543c23e8b8a60cbe61f | /*
* Copyright 2003-2012 Dave Griffith, Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Java | java-impl/src/main/java/com/siyeh/ipp/trivialif/ExpandBooleanIntention.java | consulo/consulo-java | apache-2.0 | 4,264 | 99 | codeparrot/github-code |
4cd280ce0a9fca63056d8782176fe568fad66554b7df2adaa373c9d02d1c0fc3 | /*
* 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 | platform/lang-impl/src/com/intellij/lang/ASTFactory.java | jexp/idea2 | apache-2.0 | 4,716 | 143 | codeparrot/github-code |
bbb4d120f1dc3fba37133bdf2e7463cfc7cb662a175c65760b67301a5ad5d183 | package reeds.generic
import cats.Traverse
import cats.data.{Validated, ValidatedNel}
import cats.syntax.traverse._
import cats.instances.list._
import reeds.{FReads, Reads}
import shapeless._
import shapeless.ops.hlist.IsHCons
trait ReadsAll[L <: HList] {
type Out <: HList
type In <: HList
def apply(in: In) : ... | Scala | reeds-shapeless/src/main/scala/reeds/generic/ReadsAll.scala | Acornsgrow/reeds | apache-2.0 | 1,861 | 52 | codeparrot/github-code |
2c4dede961b31e61b89ab0f2f5e463d6ed7e3dd180398ca918576d49802d9837 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | Java | src/main/java/org/olat/core/util/mail/ui/MailTemplateAdminController.java | stevenhva/InfoLearn_OpenOLAT | apache-2.0 | 3,376 | 98 | codeparrot/github-code |
c10025a8b6598aa0542b98df1aed05b09e03df1cf3e383844f5e103d3e7799b9 | package com.example.android.miwok.SeatAval.mainapp2.Stations;
import android.content.SharedPreferences;
import com.google.gson.Gson;
import java.util.ArrayList;
public class SeatTwoStnsSaver implements Runnable {
ArrayList<SeatTwoStnsClass> list =new ArrayList<SeatTwoStnsClass>();
SeatTwoStnsClass item;
... | Java | app/src/main/java/com/example/android/miwok/SeatAval/mainapp2/Stations/SeatTwoStnsSaver.java | rishabhnayak/ud839_Miwok-Starter-code | apache-2.0 | 2,984 | 77 | codeparrot/github-code |
95aa471ec7b4587da97e76e46c264923fea83e6ed97c09ba20e697145ce07847 | <?php echo $header; ?>
<script type="text/javascript">
function loading()
{
$('#frame_data').html('<div class="loading"></div>');
}
function tampilkan_list(posisi)
{
loading();
$('#frame_data').load(base_url+'report/regular_list/'+posisi);
}
function list_filter(posisi)
{
var filter = $('input... | PHP | application/views/report_regular_v.php | rizafr/ANCOL-SEAFRONT | apache-2.0 | 3,447 | 159 | codeparrot/github-code |
95b22340d3fad4751b85a39843f52d3b443668b2c23d5374714365409ebb668d | package com.fedevela.core.asic.pojos;
/**
* Created by fvelazquez on 27/03/14.
*/
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import org.codehaus.jac... | Java | src/main/java/com/fedevela/core/asic/pojos/ChecklistCap.java | fedevelatec/asic-core | apache-2.0 | 8,852 | 307 | codeparrot/github-code |
ea593a8e1c2a0a1028befa0ce19c815e007bbcebecd0ef37e0787c9e3eee7ba6 | /*
* 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 | app/src/main/java/com/shenrh/layout/widget/CustomElement.java | shenrh/UILayout | apache-2.0 | 6,083 | 153 | codeparrot/github-code |
bc124af51ee1698cf930e2a6e31e71e9342109eb90e55872d8e96f914684a1ef | /*
* Copyright 2012-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 a... | C | corelib/counter.c | mhaberler/libphenom | apache-2.0 | 14,832 | 615 | codeparrot/github-code |
0544d41f7fb3767e1700025a925866305c066aa90dc9acc2aea68cd0535aa720 | package math.functions;
import java.awt.Window;
import java.awt.event.ActionEvent;
import org.trianacode.gui.windows.ScrollerWindow;
import org.trianacode.taskgraph.Unit;
import triana.types.EmptyingType;
import triana.types.Histogram;
import triana.types.SampleSet;
import triana.types.Spectrum;
import triana.types.V... | Java | triana-toolboxes/math/src/main/java/math/functions/ATanCont.java | CSCSI/Triana | apache-2.0 | 6,235 | 225 | codeparrot/github-code |
edfb12698e4b4433cc33056418239bfc6c8eb3cfba84c9cee588da8dad16c1e1 | package com.xujun.funapp.widget.divider;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
imp... | Java | Fun/src/main/java/com/xujun/funapp/widget/divider/DividerGridItemDecoration.java | gdutxiaoxu/FunAPP | apache-2.0 | 5,998 | 155 | codeparrot/github-code |
d78dbfed2d5c7e743e29d9e79d83991234028bad4834e382e143467c38f0906a | require File.join(File.dirname(__FILE__), '..','..','..','puppet/provider/l3_base')
Puppet::Type.type(:l3_ifconfig).provide(:lnx, :parent => Puppet::Provider::L3_base) do
defaultfor :kernel => :linux
commands :ifup => 'ifup',
:ifdown => 'ifdown',
:arping => 'arping'
def self.ins... | Ruby | deployment/puppet/l23network/lib/puppet/provider/l3_ifconfig/lnx.rb | xarses/fuel-library | apache-2.0 | 9,748 | 270 | codeparrot/github-code |
fb0e920efe7d32164796abc4ff263a82d9a43b46a351a1eed59db018cb075d97 | package io.corbel.resources.rem.acl;
import static io.corbel.resources.rem.acl.AclTestUtils.getEntityWithoutAcl;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.*;
import java.util.Collections... | Java | rem-acl/src/test/java/io/corbel/resources/rem/acl/AclGetRemTest.java | corbel-platform/corbel | apache-2.0 | 10,337 | 218 | codeparrot/github-code |
de789d8a9e48e4b460ab7e73aa881fa778ace29810bea8369f299386b9984d9b | /*
* Copyright (C) 2010 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... | C++ | libs/hwcomposer/OverlayComposer/Layer.cpp | simokb96/core33g-Device-Tree | apache-2.0 | 15,385 | 557 | codeparrot/github-code |
48c583ac60adf08b023ccdf241b245d37e69120477d8821e6456288a2898a233 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* 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 | modules/core/test/com/haulmont/cuba/soft_delete/SoftDeleteMany2ManyTest.java | cuba-platform/cuba | apache-2.0 | 6,809 | 188 | codeparrot/github-code |
f55b57812367619b71a850e04fab4df644a74c37e02bcb988b3373d40a4b8749 | /*
* 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/wicket-core/src/main/java/org/apache/wicket/markup/parser/XmlPullParser.java | afiantara/apache-wicket-1.5.7 | apache-2.0 | 17,718 | 684 | codeparrot/github-code |
79e905ff37cdcc01587b43b2e35da2304a6dde43f5978743187fecb4d6a5ea5a | #pragma once
#include <memory>
#include "envoy/common/pure.h"
namespace Envoy {
namespace Upstream {
/**
* A monitor for "passive" health check events that might happen on every thread. For example, if a
* special HTTP header is received, the data plane may decide to fast fail a host to avoid waiting
* for the f... | C | include/envoy/upstream/health_check_host_monitor.h | dnoe/envoy | apache-2.0 | 810 | 31 | codeparrot/github-code |
00370711894cd6ba309d7ac0c795519adefc8b0b702e30d7d1af4df4b3a5e4eb | /*
* Copyright (c) 2020 - Manifold Systems 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 ... | Java | manifold-core-parent/manifold/src/main/java/manifold/api/util/JavacUtil.java | manifold-systems/manifold | apache-2.0 | 1,176 | 39 | codeparrot/github-code |
3d8bcaddfbdc188d6a5e0d86560aec2cfe50d9aa94cd3a5c008c893dd2f9d9a3 | import java.util.Scanner;
/**
* implement average movie ratings method
*
* 360-420-DW Intro to Java
* @author PMCampbell
* @version today
**/
public class MovieRatings {
public static void main(String[] args) {
double average;
int ratings[][] = { {4,6,2,5},
{7,9,4},... | Java | labs/lab8/MovieRatings.java | campbe13/JavaSourceSamples360 | apache-2.0 | 1,661 | 53 | codeparrot/github-code |
dc0bdf063e47eda0a55854cceac0e9d7750bb76f18a62e1912de7ff69c4c7bb2 | /*
* 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-efs/src/main/java/com/amazonaws/services/elasticfilesystem/model/transform/ModifyMountTargetSecurityGroupsRequestProtocolMarshaller.java | dagnir/aws-sdk-java | apache-2.0 | 2,903 | 64 | codeparrot/github-code |
b40485f847a14e2ad7718b769640272d45c9046e4a8d6572871d86f585c7f61c | <?php
namespace Elastica\Test;
use Elastica\Client;
use Elastica\Connection;
use Elastica\Document;
use Elastica\Exception\ClientException;
use Elastica\Script;
use Elastica\Index;
use Elastica\Request;
use Elastica\Test\Base as BaseTest;
use Elastica\Type;
class ClientTest extends BaseTest
{
public function te... | PHP | test/lib/Elastica/Test/ClientTest.php | CJGarner/mediawiki-extensions-CirrusSearch-Elastica | apache-2.0 | 30,498 | 847 | codeparrot/github-code |
a8dc1e5bb26e5fa451565f208a3acf33bcdc44f98a8e85d00aa6383519a5af22 | using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Messaging;
using Microsoft.Practices.ServiceLocation;
using NFCRing.UI.ViewModel.Services;
namespace NFCRing.UI.ViewModel.ViewMod... | C# | UI/NFCRing.UI.ViewModel/ViewModels/LoginControlViewModel.cs | mclear/Sesame | apache-2.0 | 10,041 | 302 | codeparrot/github-code |
272e89e250603a4da12d012fb01ab4c6647662efe90ebf57700937a132595076 | package org.heneveld.maven.license_audit.util;
import org.apache.maven.model.License;
import junit.framework.TestCase;
public class LicenseCodeTest extends TestCase {
public void testGetCodesFromRegex() {
assertEquals("EPL-1.0", LicenseCodes.getLicenseCode("Eclipse Public License, Version 1.0")... | Java | src/test/java/org/heneveld/maven/license_audit/util/LicenseCodeTest.java | ahgittin/license-audit-maven-plugin | apache-2.0 | 3,560 | 69 | codeparrot/github-code |
951ec9ee4e3cc0b8914e4240629bbfc53235c27c78eb9404792752285e33a54f | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | phizdets/phizdets-idea/src/vgrechka/phizdetsidea/phizdets/codeInsight/intentions/PyJoinIfIntention.java | vovagrechka/fucking-everything | apache-2.0 | 5,981 | 149 | codeparrot/github-code |
5acfc6d816b2a0b3cf2241bd704065d16cda242c4ec18d047e53c1da84d32a76 | CREATE OR REPLACE FUNCTION _get_benchmark(text,integer)
RETURNS numeric AS '
DECLARE
code ALIAS for $1;
n ALIAS for $2;
s TIMESTAMP;
e TIMESTAMP;
d numeric := 0;
r record;
BEGIN
FOR a in 1..n LOOP
s := timeofday();
EXECUTE code;
e := timeofday();
d := d + (extract(e... | SQL | misc/sql-scraps/benchmark.sql | unison/unison | apache-2.0 | 2,734 | 110 | codeparrot/github-code |
63970eed9e2c5ad841bad894b3b5ac1cdadf7bf7353a3ad35606a3b5c096dc41 | package cellmate.accumulo.reader;
import cellmate.accumulo.cell.SecurityStringValueCell;
import cellmate.accumulo.parameters.AccumuloParameters;
import cellmate.accumulo.reader.celltransformer.AccumuloCellTransformers;
import cellmate.accumulo.reader.celltransformer.SecurityStringCellTransformer;
import cellmate.cell.... | Java | accumulo-cellmate/src/test/java/cellmate/accumulo/reader/AccumuloReaderTest.java | bfemiano/cellmate | apache-2.0 | 13,464 | 330 | codeparrot/github-code |
c5ba0e1d94c510115a3e98fd6adb0aaba1954968973bf32817270737e0da8760 | # ---------------------------------------------------------------------------- #
# Copyright 2010-2013, C12G Labs S.L #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may ... | Ruby | src/vmm_mad/remotes/vmware/vmware_driver.rb | gargamelcat/ONE4 | apache-2.0 | 14,066 | 407 | codeparrot/github-code |
200eb2cf1bf339bb4b30383a2433f902260646b8c997edb44cb345c358686a40 | /*
* 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 requi... | JavaScript | rice-framework/krad-web/src/main/webapp/krad/scripts/krad.initialize.js | mztaylor/rice-git | apache-2.0 | 59,690 | 1,463 | codeparrot/github-code |
5ca428fcfd3d622800d91701bc2f4d3438b3b4a4ba60b27e3693a76bea4392e6 | /*
* Copyright (C) 2008 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 ... | Java | src/main/java/com/google/common/testing/junit4/JUnitAsserts.java | zorzella/test-libraries-for-java | apache-2.0 | 8,069 | 243 | codeparrot/github-code |
9934f0f6c2d6f5d4abe8071c7f18b87db8def90e5e87215ff5c2c6e3f1b087a4 | // Copyright (c) 2019 Cossack Labs Limited
//
// 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 ... | TypeScript | src/wrappers/themis/wasm/src/secure_comparator.ts | cossacklabs/themis | apache-2.0 | 6,570 | 230 | codeparrot/github-code |
97516598c148865231fde7ed6fe336cc962f7be710b65f1753edc1b9f89c7ea7 | /**
* Copyright 2016-2017 IBM 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 applicabl... | JavaScript | test/unit/chain.js | ratnakar-asara/fabric-sdk-node | apache-2.0 | 43,574 | 1,352 | codeparrot/github-code |
3f81e95e3ff7b34ca5237688d7ac6d1fa3fb1b11796bc6b6ab6d1215138f07c8 | /*
* Copyright 2014-2019 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-cognitosync/src/main/java/com/amazonaws/services/cognitosync/model/transform/GetIdentityPoolConfigurationResultJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,548 | 83 | codeparrot/github-code |
1399e9d547caa95d9f1e75dbf5d8e3e669c7f57591f3add6af6b5d3205eb1b19 | #!/bin/bash
echo "StackTach dev env build script"
PACKAGE=false
TOX=false
DEPLOY=false
QUICK=false
while getopts qpdt opt; do
case $opt in
q)
QUICK=true
;;
p)
PACKAGE=true
;;
t)
TOX=true
;;
d)
DEPLOY=true
;;
esac
done
shift $((OPTIND - 1))
DEV_DIR=git
PKG... | Shell | build.sh | madkiss/stacktach-sandbox | apache-2.0 | 3,230 | 147 | codeparrot/github-code |
5e4e3bf04725efd21d5d7a221e84a66417083cd88192c27b033f10fcb5d1391d | // Copyright 2010 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 i... | C++ | NativeCarbon.cc | Uncommon/diadem | apache-2.0 | 13,277 | 465 | codeparrot/github-code |
6ce1a94d1ac2a9dae524f9aad006fecea4337c65a024b7b970a6bbcecdc453dc | /*
* JEF - Copyright 2009-2010 Jiyi (mr.jiyi@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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | common-misc/src/main/java/jef/dynamic/ClassSource.java | xuse/ef-others | apache-2.0 | 1,514 | 64 | codeparrot/github-code |
fa3428454e3f8322a23fa5fb3bdd296ca849fd88701bcab749a886b8164e0c9b | /*******************************************************************************
* Copyright 2019 Intel 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.o... | C++ | Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/mkldnn/src/ocl/ref_lrn.hpp | mlperf/training_results_v0.7 | apache-2.0 | 10,061 | 300 | codeparrot/github-code |
f178c055b630b880775d394b2d677641aee8c571280271f386b7ca305e24b0c1 | package io.deepreader.java.commons.util;
import junit.framework.TestCase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* Created by Daniel on 09/10/15.
*/
public class SerializerTest extends TestCase {
@Before
public void setUp() throws Exception {
}
@After
publ... | Java | src/test/java/io/deepreader/java/commons/util/SerializerTest.java | idf/commons-util | apache-2.0 | 743 | 34 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.