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 |
|---|---|---|---|---|---|---|---|---|
fe16f6fe02ba5d7604b2987a2defbab87e7b06dad894b0b963211c8230e4bfad | package au.org.garvan.phenomics.cr.testsuite.common.api.deserializer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import au.org.garvan.phenomics.cr.testsuite.common.api.testcase.impl.TestCaseConcept;
public class SystemSerializedEntry {
private String id;
pri... | Java | cr_testsuite_common/src/au/org/garvan/phenomics/cr/testsuite/common/api/deserializer/SystemSerializedEntry.java | tudorgroza/cr_testsuites | apache-2.0 | 1,144 | 44 | codeparrot/github-code |
d69292b45021deb5b4f656432455379b790c48382c769b9520092dfab236697c | //
// FragariaAppDelegate.h
// Fragaria
//
// Created by Jonathan on 30/04/2010.
// Copyright 2010 mugginsoft.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class SMLTextView;
@class MGSFragaria;
@interface FragariaAppDelegate : NSObject <NSWindowDelegate, NSApplicationDelegate, NSTableViewDelegate, NSTab... | C | FragariaAppDelegate.h | tonyjohnston/Fragaria-PHP | apache-2.0 | 1,373 | 48 | codeparrot/github-code |
00b36ee518843e6003ca5033470c6473ac5f1e7e6923a702bbb2110f1107d06e | package com.example.android.sunshine.app;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.text.format.Time;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Utility {
public st... | Java | app/src/main/java/com/example/android/sunshine/app/Utility.java | k-slugger/Sunshine | apache-2.0 | 9,992 | 231 | codeparrot/github-code |
aadd4e1f4dafa50586acafdd7ca4cf2719bc3ba058efe787caf71d1fa66bdb70 | package scala.meta.converter
import scala.meta.TreeConverterTestBaseNoLibrary
import scala.meta._
class TreeConverterDeclTest extends TreeConverterTestBaseNoLibrary {
def testVal(): Unit = {
doTest(
"val x,y: Int",
Decl.Val(Nil, List(Pat.Var(Term.Name("x")), Pat.Var(Term.Name("y"))), Type.Name("In... | Scala | scala/scala-impl/test/scala/meta/converter/TreeConverterDeclTest.scala | JetBrains/intellij-scala | apache-2.0 | 4,913 | 186 | codeparrot/github-code |
8064966e18da1ac5d4faa342196ef4e9fdf1ea6d6369c173f8671a46a6bbb222 | package com.google.vr.sdk.samples.TALL.CardboardAR.Stereoscopic;
//import com.google.vr.sdk.audio.GvrAudioEngine;
import android.app.Activity;
import android.content.Context;
import android.graphics.Point;
import android.opengl.GLES11Ext;
import android.opengl.GLES20;
import android.opengl.Matrix;
import android.os.B... | Java | samples/TALL/src/main/java/com/google/vr/sdk/samples/TALL/CardboardAR/Stereoscopic/StereoscopicActivity.java | Resolute3885/TALL | apache-2.0 | 16,751 | 549 | codeparrot/github-code |
b1264da834519baa7608c9d08c4900883cbe62809664beb6ac688ff46bfefd24 | <?php
namespace Stats\Controller;
use Nakade\Pagination\ItemPagination;
use DOMPDFModule\View\Model\PdfModel;
use Stats\Pagination\TournamentPagination;
use Zend\View\Model\ViewModel;
/**
*
* @package Stats\Controller
*/
class IndexController extends DefaultController
{
/**
*
* @return \Zend\View\Mod... | PHP | module/Stats/src/Stats/Controller/IndexController.php | Nakade-PlayInside/nakade-web | apache-2.0 | 7,104 | 266 | codeparrot/github-code |
4d401df356530b6086b591a8a6a05ee7d5aa8f3e0ae9ab488c148106d79e3b22 | /*
* #%L
* asio server
* %%
* Copyright (C) 2013 - 2015 Research Group Scientific Computing, University of Vienna
* %%
* 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:/... | Java | server/src/test/java/at/ac/univie/isc/asio/engine/EventfulConnectorTest.java | pyranja/asio | apache-2.0 | 4,164 | 107 | codeparrot/github-code |
6cb9b2428bda3f79def62f375bf4fca90af605f8508a08e4dc6708a5964cf22a | /*
* 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... | C# | ParquetHadoop/src/Hadoop/ParquetReader.cs | CurtHagenlocher/ParquetSharp | apache-2.0 | 7,795 | 227 | codeparrot/github-code |
1e337108d1da6ef760ae1a1ab111b734360e7ae7eb7ecd536a9a2316da697bfc | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | C++ | modules/platforms/cpp/thin-client/src/impl/transactions/transactions_impl.cpp | daradurvs/ignite | apache-2.0 | 6,553 | 212 | codeparrot/github-code |
fcb646922384a513f5c4b531dbdc0c105d820098aae009bf51cbdc6438fbfbc8 | /* 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 | modules/flowable-engine/src/main/java/org/flowable/engine/impl/webservice/WSService.java | motorina0/flowable-engine | apache-2.0 | 2,334 | 78 | codeparrot/github-code |
fe1e9ecc4ad03c0fc8ba3bd7033f0f005ed6769d21ac79a98cc1779507f324d3 | package zj.remote.baselibrary.util;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Rect;
import android.os.Build;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.View;
i... | Java | baselibrary/src/main/java/zj/remote/baselibrary/util/SupportSoftKeyboardUtil.java | hkq325800/YellowNote | apache-2.0 | 5,530 | 162 | codeparrot/github-code |
65395bedec7ea76291bf9edc1a7fd963554be9692396eb4afb910f33cfe33688 | // Hello.
//
// This is The Scripts used for Mosaic+ Main Page
//
//
function main() {
(function () {
'use strict';
/* ===================================
Show data team data
===================================== */
function showTeamData(teamRactive) {
teamRactive.set({team: teamData});
}
/... | JavaScript | js/main.js | nifemim/MosaicPlus | apache-2.0 | 2,614 | 119 | codeparrot/github-code |
77d1d90d6aed2c59ba8defbb6ec7f2a274da19606626378fe780f3b18557331e | /*
* Copyright 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" file ... | Java | core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/http/pipeline/stages/HandleResponseStage.java | aws/aws-sdk-java-v2 | apache-2.0 | 1,839 | 43 | codeparrot/github-code |
9c28eba9a882519446972cce09ae3c85b386f98507dd52a0aec8a123c8714cea | package com.sofast.application.util;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import java.util.Date;
/*
*
* @author fjiang
* @description
* @date 7/25/16
*/
public class DateHelper {
public static Date NowAddSeconds(int minus)... | Java | src/main/java/com/sofast/application/util/DateHelper.java | fengjiang-chuwa/sofast | apache-2.0 | 1,185 | 46 | codeparrot/github-code |
9adc50b353e4b16ec31a7c1d0368e83b6dfe9327c87d149cbb5f76cc229fd3c2 | /*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | Java | server/src/test/java/io/crate/metadata/PartitionNameTest.java | EvilMcJerkface/crate | apache-2.0 | 10,979 | 246 | codeparrot/github-code |
e641e9d05396a77a33880484b774d1ae02cc1417471233a3f11d5b7af77119f2 | /* -------------------------------------------------------------------------- */
/* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | C++ | src/hm/HookStateVM.cc | baby-gnu/one | apache-2.0 | 6,346 | 211 | codeparrot/github-code |
60a3dbde5676c633195787738ba597f27469833082f7831b5658f5765fb15298 | package org.jboss.resteasy.tracing.examples;
import io.undertow.servlet.api.DeploymentInfo;
import org.jboss.logmanager.LogManager;
import org.jboss.resteasy.core.ResteasyDeploymentImpl;
import org.jboss.resteasy.plugins.server.servlet.ResteasyContextParameters;
import org.jboss.resteasy.plugins.server.undertow.Undert... | Java | tracing-example/src/main/java/org/jboss/resteasy/tracing/examples/Demo.java | resteasy/resteasy-examples | apache-2.0 | 1,602 | 37 | codeparrot/github-code |
dc6e0b2558207e10a563f06e7f3cfa1d240ab603396abff79ffa10da8dd40fd5 | /*
* Copyright 2012-2013 inBloom, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | sli/api/src/main/java/org/slc/sli/api/service/CustomEntityValidator.java | inbloom/secure-data-service | apache-2.0 | 3,944 | 115 | codeparrot/github-code |
272894fc1eda2d924d0934a597c3c2339ab814748a789fb5b0b2ffa467869249 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsExtractorTest.java | stari4ek/ExoPlayer | apache-2.0 | 1,678 | 48 | codeparrot/github-code |
0e0bb55b064f95b1eb8116720e9996996d907ec1cbb1156235125aecc09ce99b | <?php
/**
* THE CODE IN THIS FILE WAS GENERATED FROM THE EBAY WSDL USING THE PROJECT:
*
* https://github.com/davidtsadler/ebay-api-sdk-php
*
* Copyright 2014 David T. Sadler
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | PHP | src/DTS/eBaySDK/MerchantData/Types/ShippingDetailsType.php | emullaraj/ebay-sdk-php | apache-2.0 | 12,260 | 300 | codeparrot/github-code |
1cc18235518a38881f5267dde1c5553400fca647bd99a78c292c9c6da735a2fc | <?php
namespace WrapCalculator;
class Box
{
const SIDE_LENGTH_WIDTH = "lw";
const SIDE_HEIGHT_WIDTH = "hw";
const SIDE_HEIGHT_LENGTH = "hl";
const SIDES = [
self::SIDE_LENGTH_WIDTH,
self::SIDE_HEIGHT_WIDTH,
self::SIDE_HEIGHT_LENGTH,
];
/**
* @var float
*/
... | PHP | src/WrapCalculator/Box.php | konrness/wrapping-paper-calculator | apache-2.0 | 2,286 | 130 | codeparrot/github-code |
26778560408805c5189251bbe08229b4d32ccb47ff031b905321260da29be4eb | // Copyright (C) 2009 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Java | java/com/google/gerrit/index/query/Predicate.java | qtproject/qtqa-gerrit | apache-2.0 | 5,590 | 181 | codeparrot/github-code |
fb77eda6442d83d827ee29efb76dc9f42cdf17fb5b91d940c80054198ec1bdcd | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "tensor_store.h"
#include <vespa/eval/eval/value_type.h>
#include <vespa/eval/eval/typed_cells.h>
namespace vespalib::eval { struct Value; }
namespace search::tensor {
/**
* Class for sto... | C | searchlib/src/vespa/searchlib/tensor/dense_tensor_store.h | vespa-engine/vespa | apache-2.0 | 3,072 | 81 | codeparrot/github-code |
65f07f356ce7bc54d934915b3b9577e8f43ab373204ee32362650e5c56fe2943 | /*
* 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-opsworks/src/main/java/com/amazonaws/services/opsworks/model/transform/DeploymentJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 5,318 | 121 | codeparrot/github-code |
873e0f49281019e6b5d0ed12d493315c5fedf482765c3f7715ca3873ac383118 | /*
* 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-neptune/src/main/java/com/amazonaws/services/neptune/model/transform/ModifyDBClusterParameterGroupResultStaxUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,687 | 66 | codeparrot/github-code |
bdae81304027cdf93b1d6de199970fdb317c36f7666fc0bafdb3ca5c88a502bf | /*
* Copyright 2015 Michal Harish, michal.harish@gmail.com
*
* 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 ... | Java | core/src/main/java/io/amient/kafka/metrics/MeasurementDeserializer.java | amient/kafka-metrics | apache-2.0 | 1,966 | 56 | codeparrot/github-code |
36b837851775b8469b50828e161c7ee901349afb330854cf7f238feecda23850 | /**
* Created with JetBrains WebStorm.
* User: liudan
* Date: 14-7-9
* Time: 下午9:56
* To change this template use File | Settings | File Templates.
*/
;(function(window){
if(window.deferred){
return;
}
var deferred = function(){
var _this = this;
_this.state = ... | JavaScript | js/deferred.js | liudan92221/diyjs | apache-2.0 | 4,714 | 154 | codeparrot/github-code |
9443ad49fa5896d8ea6070c95e4d3778dddb5f5001a0f30343988852aa57c2e9 | /**
* Copyright (c) 2016-present, RxJava Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | Java | src/test/java/io/reactivex/internal/operators/flowable/FlowableSampleTest.java | akarnokd/RxJava | apache-2.0 | 14,815 | 460 | codeparrot/github-code |
daaada3cc15c5ba1130c59491e9bdba5282d65deea4237b6018aa532ccff1872 | package com.kyletung.androiddailyrecord.utils;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
/**
* All rights reserved by Author<br>
* Author: Dong YuHui<br>
* Email: <a href="mailto:dyh920827@gmail.com">dyh920827@gmail.com... | Java | app/src/main/java/com/kyletung/androiddailyrecord/utils/AppInfoUtil.java | DongYuHui/android_daily_record | apache-2.0 | 2,206 | 102 | codeparrot/github-code |
f230c068bdef22730cef42aec638139adec149ec6036c04a88f301ca3ad9284a | /*global define*/
define([
'./DeveloperError'
], function(
DeveloperError) {
'use strict';
/**
* Wraps a function on the provided objects with another function called in the
* object's context so that the new function is always called immediately
* before the old one.
*
... | JavaScript | Source/Core/wrapFunction.js | omh1280/cesium | apache-2.0 | 941 | 34 | codeparrot/github-code |
20f74a4bee7d5783faa02631c3481328471036a91c52f5f7c0a7e7019cc7d15a | =head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2021] 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 obta... | Perl | modules/Bio/EnsEMBL/Production/Pipeline/ProteinFeatures/StoreGoXrefs.pm | Ensembl/ensembl-production | apache-2.0 | 3,506 | 124 | codeparrot/github-code |
e59905609fa819cc97613e17351c693df40fe1948f6397d367f9ef9e12dcf28a | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web.Mvc;
using System.Diagnostics.Contracts;
using System.Text.RegularExpressions;
using HyperSlackers.Bootstrap.Extensions;
using System.Web;
using System.Text;
namespace HyperSlackers.Bootstrap.Core
{
//! th... | C# | Bootstrap/Core/HtmlElement.cs | dmayhak/HyperSlackers.Bootstrap | apache-2.0 | 12,449 | 413 | codeparrot/github-code |
35e6e95731e98bc99e2a53daaf532e6d98d6545045b4507cef513e7561d4a933 | /*******************************************************************************
* Copyright 2013 SAP AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | Java | com.sap.core.odata.processor.core/src/test/java/com/sap/core/odata/processor/core/jpa/model/JPAEdmAssociationSetTest.java | SAP/cloud-odata-java | apache-2.0 | 6,071 | 181 | codeparrot/github-code |
f89334edca0a0985caebd63844ee87b5742429e7e0cf046a026794a702715ef1 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | modules/percolator/src/main/java/org/elasticsearch/percolator/PercolateResponse.java | zkidkid/elasticsearch | apache-2.0 | 10,264 | 300 | codeparrot/github-code |
068ab8bb884b8630514d98f9c8767ebf799e935d4accdde0dfdde6906cd40631 | using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
public class TestManager : MonoBehaviour
{
public static TestManager instance = null;
StreamWriter file;
[HideInInspector]
public string HMD;
[HideInInspector]
public string nonHMD;
[HideInIn... | C# | AsymmetricVRWalk/Assets/TestManager.cs | ActiveCG/ACVR10 | apache-2.0 | 1,959 | 99 | codeparrot/github-code |
d4dc1e9e50c63e741aefaba7bbbbec20a12328b4c4bbb10e25b1fb2cbfb4943e | /* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2022 INRIA.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... | C++ | mechanics/src/collision/native/bodies/SphereLDSSphereLDSR.cpp | siconos/siconos | apache-2.0 | 5,102 | 208 | codeparrot/github-code |
09da5d66180994a6dc02c96cc450817b58f0f4edab81e2f873adc6dcb73e39aa | function detailRoute($stateProvider) {
return $stateProvider
.state('editContact', {
url: '/contacts/edit/{id:[0-9]+}',
views: {
application: {
controller: 'ContactEditController as ctrl',
templateUrl: 'templates/contact-edit.htm... | JavaScript | idx-contacts-jee/contacts-web-frontend/src/main/frontend/components/contacts/edit/state.js | pwalser75/jee-demo | apache-2.0 | 1,633 | 48 | codeparrot/github-code |
0ab0780381a0ba817c83007f08de84865af639d28b11ea936bd4ca5d12ddafff | package ai.labs.backupservice;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.Authorization;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
... | Java | backupservice-defintion/src/main/java/ai/labs/backupservice/IRestGitBackupService.java | labsai/EDDI | apache-2.0 | 1,692 | 53 | codeparrot/github-code |
ae1a459104788354dc28f27cf1952c0975e469353eead705e749fdbf06684ac1 | // Copyright 2012 Google Inc. All Rights Reserved.
package mapreduce;
import entities.Branch;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.tools.mapreduce.MapOnlyMapper;
import util.BranchIndexer;
import java.util.Random;
import java.util.logging.Logger;
import static com.google.com... | Java | src/main/java/mapreduce/BranchMapper.java | vinaymavi/bnifsc | apache-2.0 | 2,202 | 60 | codeparrot/github-code |
942dafb996a20b43035b188a60ec79aea977f4849ae8d1780052d4b95aaaced8 | #pragma once
#include "generator/osm_element.hpp"
#include "generator/intermediate_data.hpp"
#include "routing/base/followed_polyline.hpp"
#include "routing/routing_helpers.hpp"
#include "indexer/ftypes_matcher.hpp"
#include "coding/file_reader.hpp"
#include "coding/file_writer.hpp"
#include "coding/write_to_sink.h... | C++ | generator/camera_node_processor.hpp | bykoianko/omim | apache-2.0 | 2,309 | 81 | codeparrot/github-code |
598fd25337abd62b26ab0303954f7bf6230f8975bc9d4dfdbb92ba3cd4f25d34 | package net.wildbill22.draco.generation.villages;
import java.lang.reflect.Field;
import net.minecraftforge.event.terraingen.InitMapGenEvent;
import net.minecraftforge.event.terraingen.InitMapGenEvent.EventType;
import net.wildbill22.draco.Configs;
import net.wildbill22.draco.lib.LogHelper;
import cpw.mods.fml.common... | Java | src/main/java/net/wildbill22/draco/generation/villages/VillageGenReplacer.java | DracoAnimus/Coding | apache-2.0 | 2,237 | 71 | codeparrot/github-code |
74dc70ecdf94308bdf8fb1993a8b0e36616ddce7d31e6ba4b441ed9b3bfd15c9 | /*
Copyright 2017 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | GO | pkg/client/clientset_generated/release_1_3/typed/batch/v1/fake/fake_batch_client.go | hyperhq/hypernetes | apache-2.0 | 1,129 | 38 | codeparrot/github-code |
5f7f47a0adb335d1a5d086f8cb150a813d34421d5a760fad539a4c816c9681a1 | package loon.action.collision;
import loon.action.ActionBind;
import loon.core.LRelease;
/**
* 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.... | Java | Java/old/OpenGL-1.0(old_ver)/Loon-backend-JavaSE/src/loon/action/collision/Gravity.java | cping/LGame | apache-2.0 | 3,580 | 185 | codeparrot/github-code |
12c778977b033f2e90be8618d82932e7772645f033f7c5e3691a77a50108ef25 | //效果函数
function switchItem(str,total,t){
for(var i=0;i<total;i++){
if(i==t){
document.getElementById(str+"_L_"+i).style.display="";
document.getElementById(str+"_S_"+i).style.display="none";
try{
if(document.getElementById(str+"_pic_"+i).getAttribute('src')!=document.getElementById(str+"_pic_"+i)... | JavaScript | js/movie_index.js | charlesSoftware/Monster-Video-Web-in-PHP | apache-2.0 | 1,442 | 40 | codeparrot/github-code |
36c240238a066e90a0719085186a36a373efeb7509d216075bae530e25192987 | /*
~ Copyright 2017 Ripple Foundation C.I.C. Ltd
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~ Unless required ... | JavaScript | src/app/helpers/httpMiddleware.js | PulseTile/PulseTile | apache-2.0 | 2,804 | 117 | codeparrot/github-code |
abf50782f3c8b2a0cf8467dbf98d461abadb117822d15f3cd7705acb8e08b76a | /*******************************************************************************
* Copyright (c) 2000, 2004 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/Snippet146.java | XClouded/t4f-core | apache-2.0 | 2,067 | 74 | codeparrot/github-code |
0fa0d31ef77115253006221083bf92fe9f307dbdfdd181fa894a3e7dd392a52f | package com.yanxin.filterdropmenu.library;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.vi... | Java | library/src/main/java/com/yanxin/filterdropmenu/library/FilterDropMenu.java | loopeer/FilterDropMenu | apache-2.0 | 10,100 | 273 | codeparrot/github-code |
4180b9d8aaa0e18a3cbe597d9912ca967c6c40cd54f3c9678fdcaf6cb2261bb1 | /*
* By: ulises-jeremias
* From: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=438
* Name: Strategic Defense Initiative
* Date: 07/09/2017
*/
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <utility>
#include <cstdio>
using nam... | C++ | uva.onlinejudge.org/StrategicDefenseInitiative.cpp | ulises-jeremias/Solutions | apache-2.0 | 1,854 | 89 | codeparrot/github-code |
91a4b47e4d5106028d95515a3540e67f245c4f3e9e09e27e29cc3484cb601a17 | /*
* Copyright 1999-2000,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | C++ | src/xercesc/util/BinFileInputStream.hpp | rherardi/xerces-c-src_2_7_0 | apache-2.0 | 3,497 | 106 | codeparrot/github-code |
9bbac4cdc7c58b641ccc89268a792e7926bc2ec7c6c5564ce9f98a8600b16f3b | /**
*
*/
package com.cardpay.pccredit.postLoan.filter;
import java.util.List;
import com.cardpay.pccredit.manager.web.AccountManagerParameterForm;
import com.wicresoft.jrad.base.web.filter.BaseQueryFilter;
/**
* @author shaoming
*
* 2014年11月11日 下午3:03:58
*/
public class PostLoanFilter extends... | Java | src/java/com/cardpay/pccredit/postLoan/filter/PostLoanFilter.java | JohnCny/PCCredit_YQ | apache-2.0 | 1,872 | 107 | codeparrot/github-code |
33ce159f8483ccc04aacc9854fb776d2c4a65ec7bcf0f81d0e6a41a073900182 | /*
* Copyright (c) 2015. Zuercher Hochschule fuer Angewandte Wissenschaften
* 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... | Java | src/main/java/ch/icclab/cyclops/usecases/tnova/rabbitMQClient/TnovaRabbitMQClient.java | icclab/cyclops-udr | apache-2.0 | 5,821 | 179 | codeparrot/github-code |
8857574997bb6c8bb382495a78b686ac1a1b7f9bbc961ebd03409d030ac98fcc | /*
* Copyright 2015-2016 OpenCB
*
* 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 | opencga-server/src/test/java/org/opencb/opencga/server/rest/JobWSServerTest.java | javild/opencga | apache-2.0 | 6,216 | 145 | codeparrot/github-code |
90a0ce1f0221813f64f4fa526f38312cd719cf7f05e3637d6e719e0e47f87b08 | /*
* Copyright (c) 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 applicabl... | Java | api/src/main/java/com/flipkart/flux/utils/Pair.java | flipkart-incubator/flux | apache-2.0 | 1,625 | 62 | codeparrot/github-code |
04c660d9f3b5764722ca729aae8f5b5d906968c4e05e1cb78b826123598e77ce | #include<iostream>
using namespace std;
/*
获取最大的int即2^31 - 1
得到结果:2147483647
*/
int getMaxInt()
{
return (1 << 31) - 1;
}
/*
使用g++编译,出现warning: left shift count is negative
结果为-1
*/
int getMaxInt_2()
{
return (1 << -1) - 1;
}
int getMaxInt_3()
{
return ~(1 << 31);
}
/*
在不了解int的长度情况下使用
*/
int getMaxInt_4()
{
... | C++ | c/bit/最大值.cpp | WeAreChampion/notes | apache-2.0 | 531 | 42 | codeparrot/github-code |
2b3783b0cc4404299680141920e4be12af508b46cbc0b046f76999d2e20fd0f3 | package com.iitb.WellinfoBean;
public class WellDataBean
{
String[] district_name;
String[] district_to_tehsil;
String[] tehsil_to_village;
Object[][] tehsil_names;
Object[][] village_name;
Object[][] well_data;
public String[] getDistrict_name() {
return district_name;
}
public void set... | Java | src/com/iitb/WellinfoBean/WellDataBean.java | raviprakashgiri/Intereactive_Voice_Forum | apache-2.0 | 1,277 | 50 | codeparrot/github-code |
c846936bcc3840d990885c4a12d064c85107bba579dd124f542514d3ff652e70 | /*
* Copyright 2013 Proofpoint 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 applicabl... | Java | src/main/java/org/kairosdb/util/Util.java | rdettai/kairosdb | apache-2.0 | 8,941 | 326 | codeparrot/github-code |
0bc5d361cb962a1d9004a7480c62f85bc3193d57a9c6d1b2f5f92af2f0f033e1 | using J2N.Numerics;
using J2N.Text;
using YAF.Lucene.Net.Analysis.TokenAttributes;
using YAF.Lucene.Net.Diagnostics;
using YAF.Lucene.Net.Support;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace YAF.Lucene.Net.Index
{
/*
* Licensed to the Apache Software Found... | C# | yafsrc/Lucene.Net/Lucene.Net/Index/FreqProxTermsWriterPerField.cs | YAFNET/YAFNET | apache-2.0 | 28,491 | 675 | codeparrot/github-code |
ca06747a0909ccab5892eb1302e58ef03d6c634cd5ac4050bfbf06b4b28f3d6e | package io.netty.bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelException;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelOption;
import io.netty.channel.ChannelPipeline;
import io.... | Java | transport/src/main/java/io/netty/bootstrap/Bootstrap.java | jroper/netty | apache-2.0 | 6,805 | 231 | codeparrot/github-code |
b6e5eef09611955d92997b7e3432e053d7a2f94260d7c7cdaa275a187d12c7e2 | {% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
{% load url from future %}
{% block form_id %}manage_{{ form.service.name }}_endpoints_form{% endblock %}
{% block form_class %}endpoints_form form-horizontal{% endblock %}
{% block form_action %}{% url 'horizon:endpoints_management:endpoints_management:e... | HTML | openstack_dashboard/dashboards/endpoints_management/endpoints_management/templates/endpoints_management/_endpoints.html | ging/horizon | apache-2.0 | 1,890 | 47 | codeparrot/github-code |
0175ec34470e0e6915d4dbff486ed3ee04de7344ae46d97fd3ad1af064f98a5a | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... | C++ | Codeforces/709-DIV2/A.cc | aajjbb/contest-files | apache-2.0 | 645 | 33 | codeparrot/github-code |
1a1b334f13d75db1538d24ab69228046787dd092ffa6d540b47d7b986e710f78 | using System;
namespace Algorithm.Sort
{
partial class Sort
{
/// <summary>
/// クイックソート。
/// </summary>
/// <param name="a">対象の配列</param>
public static void QuickSort<T>(T[] a)
where T : IComparable<T>
{
QuickSort(a, 0, a.Length - 1);
... | C# | Chapters/Algorithm/Sort/QuickSort.cs | ufcpp/UfcppSample | apache-2.0 | 2,133 | 77 | codeparrot/github-code |
a1f30cf126617f6cf8ab96690d4deb54a42263f7686ce99a676e70b5d43ac6f4 | /*
* 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 "license" fil... | C | aws-cpp-sdk-cognito-idp/include/aws/cognito-idp/model/DeviceConfigurationType.h | ambasta/aws-sdk-cpp | apache-2.0 | 2,957 | 86 | codeparrot/github-code |
2de7e985d8e74f5d9f5a4e571361e9e5df4c2cddf3b889c74c4b467920c26f12 | /*
* Copyright 2016-2017 Wultra 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 agreed ... | C | proj-xcode/Classes/core/PA2Session.h | lime-company/lime-security-powerauth-mobile-sdk | apache-2.0 | 22,939 | 530 | codeparrot/github-code |
15ecb06c16c56af7efb84a70052655814954bc789b2980458c1a8d4f66f8bb6d | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | Java | dcm4jboss-all/tags/DCM4CHEE_2_15_0/dcm4jboss-ejb/src/java/org/dcm4chex/archive/ejb/conf/AttributeFilterLoader.java | medicayun/medicayundicom | apache-2.0 | 9,886 | 231 | codeparrot/github-code |
04aacaafab92ed4329cafc5c6b8db247f0efc5c9be6d8aef3494db81c332305c | // import { fromJS } from 'immutable';
// import { createReducer } from 'redux-immutablejs';
import * as neuralNetworkActions from './neuralNetworkActions';
const initialState = {
isLoading: false,
networkSummaries: null,
selectedNetworkSummaryId: null,
selectedNetwork: {},
snapshotIndex: null,
selectedDra... | JavaScript | src/neuralNetwork/data/neuralNetworkReducer.js | csenn/nn-visualizer | apache-2.0 | 2,333 | 67 | codeparrot/github-code |
6472836d78f0478e89eddef89e1f971f449c208cfcc4f363c9dae87158adc2dd | package com.xiaomi.specdemo;
import android.util.Log;
import com.xiaomi.smarthome.device.api.BaseDevice;
import com.xiaomi.smarthome.device.api.Callback;
import com.xiaomi.smarthome.device.api.DeviceStat;
import com.xiaomi.smarthome.device.api.Parser;
import com.xiaomi.smarthome.device.api.XmPluginHostApi;
import or... | Java | plugProject/SpecDemo/src/main/java/com/xiaomi/specdemo/Device.java | MiEcosystem/NewXmPluginSDK | apache-2.0 | 4,493 | 148 | codeparrot/github-code |
ae7082593f3af33e5b04712f08825f989e002b953cafcf94fe4490fba2be3d6a | /*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | JavaScript | benchmark/BenchmarkRunner.js | hazelcast-incubator/hazelcast-nodejs-client | apache-2.0 | 2,998 | 102 | codeparrot/github-code |
853b9f34e276cd303effd714a7993174a9d4e2f930982c19fec617542613ddbe | package com.yobin.stee.tassel.utils;
import com.yobin.stee.tassel.utils.api.GalleryApi;
import okhttp3.OkHttpClient;
import retrofit2.CallAdapter;
import retrofit2.Converter;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
/**... | Java | app/src/main/java/com/yobin/stee/tassel/utils/NetWorkUtils.java | Yobin123/Tassel | apache-2.0 | 1,186 | 35 | codeparrot/github-code |
c7066455e73ade6a19356b655020036a0a82b736e8c361a4189b7284bb66b204 | /*
* Copyright 2013 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 b... | Java | src/main/java/com/exp/tracker/data/model/UserBean.java | arunkpatra/expense-tracker | apache-2.0 | 9,707 | 388 | codeparrot/github-code |
efcd4960c888de778758a8b1a71a0351af03c1abbc6f5d304e159c502bf8f722 | /*
* Copyright 2015 Akyruu (akyruu@hotmail.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 applicabl... | Java | aro-framework/src/main/java/com/avaryuon/fwk/core/i18n/I18nControl.java | akyruu/aro-framework | apache-2.0 | 5,873 | 187 | codeparrot/github-code |
3cc72a9d2d15abd6c4c8c6000287da2140cac27916cb035a3d3f8314d6766455 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `Gamma` struct in crate `rand`.">
<meta name="keywords" con... | HTML | docs/bindings/rand/distributions/gamma/struct.Gamma.html | liebharc/clFFT | apache-2.0 | 12,119 | 150 | codeparrot/github-code |
23c6598319b0603e7cf73a7c6e0c1d40c265317f6f356f2858fcb07aefaf8e3a | /**
* Licensed to the Austrian Association for Software Tool Integration (AASTI)
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. The AASTI licenses this file to you under the Apache License,
* Version 2... | Java | ui/admin/src/main/java/org/openengsb/ui/admin/model/UsernamePassword.java | openengsb/openengsb | apache-2.0 | 1,576 | 54 | codeparrot/github-code |
a2cd06baa128afb4ed33b43b1426a255177e76119096bcd8d65ce634b9b80a42 | import hashlib
import os
import uuid
from prov.identifier import Namespace
__citation__ = "https://doi.org/10.5281/zenodo.1208477"
# NOTE: Semantic versioning of the CWLProv Research Object
# **and** the cwlprov files
#
# Rough guide (major.minor.patch):
# 1. Bump major number if removing/"breaking" resources or PRO... | Python | cwltool/provenance_constants.py | common-workflow-language/cwltool | apache-2.0 | 1,889 | 56 | codeparrot/github-code |
1b80180e8817262b66bb13196cbfcb08b9feeb1145cc629d32592d4660e2cbcf | subdir-m += avl
subdir-m += nvpair
subdir-m += unicode
subdir-m += zcommon
subdir-m += zfs
subdir-m += zpios
INSTALL_MOD_DIR ?= extra
ZFS_MODULE_CFLAGS += -include /opt/git-clone/wbsairback/packages/wbsairback-zfs/wbsairback-zfs-0.6.1/../../wbsairback-spl/wbsairback-spl-0.6.1/spl_config.h
ZFS_MODULE_CFLAGS += -includ... | Makefile | packages/wbsairback-zfs/wbsairback-zfs-0.6.1/module/Makefile | WhiteBearSolutions/WBSAirback | apache-2.0 | 3,679 | 71 | codeparrot/github-code |
e67b4201342fbcf718ce5a7f4d02ce5bcf2eac9d14ed5641f890b9d1477c48db | /*
* Copyright (c) 2021 IoT.bzh
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT renesas_rcar_can
#include <kernel.h>
#include <errno.h>
#include <drivers/can.h>
#include <drivers/clock_control.h>
#include <drivers/clock_control/rcar_clock_control.h>
#include <logging/log.h>
LOG_MODULE_DECLARE(ca... | C | drivers/can/can_rcar.c | galak/zephyr | apache-2.0 | 30,826 | 1,057 | codeparrot/github-code |
2476e0e35cbbf487d6a6b9f4f141061d4105937716e7acd4c1ddab6077abfd01 | package com.roamtouch.gesturekit.gkplayer;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.LabeledIntent;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint.Align;
import android.graph... | Java | GKPlayer/src/com/roamtouch/gesturekit/gkplayer/PlayerLayout.java | RoamTouch/app-gkplayer-android | apache-2.0 | 9,794 | 297 | codeparrot/github-code |
460555b949670ec24f870cd81934a9ff2f18e4d1353d15835c44fdb170bf4585 | //! B+-tree nodes.
use std::borrow::{Borrow, BorrowMut};
use std::fmt;
use super::{Forest, Node, INNER_SIZE, SetValue, slice_insert, slice_shift};
/// B+-tree node.
///
/// A B+-tree has different node types for inner nodes and leaf nodes. Inner nodes contain M node
/// references and M-1 keys while leaf nodes contai... | Rust | lib/cretonne/src/bforest/node.rs | sunfishcode/cretonne | apache-2.0 | 29,386 | 815 | codeparrot/github-code |
f15ca029966f78c263850d2a260413bc1e05986833bd200d570d1aad53bec329 | package ca.corefacility.bioinformatics.irida.ria.unit.web.services;
import java.security.Principal;
import java.util.Locale;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.context.MessageSource;
import ca.corefacility.bioinformatics.irida.model.project.Project;... | Java | src/test/java/ca/corefacility/bioinformatics/irida/ria/unit/web/services/UIRemoteProjectServiceTest.java | phac-nml/irida | apache-2.0 | 4,151 | 105 | codeparrot/github-code |
351ad32c2b7bf0a03da7ee9ecb6a1c9163faeb48efd0fd33a25b1033fdb2dcb6 | // Copyright 2014 The Bazel 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 appl... | C++ | src/main/native/unix_jni_darwin.cc | meteorcloudy/bazel | apache-2.0 | 12,549 | 360 | codeparrot/github-code |
813b467515b332acb8c5ccc0151ba4ebe745003f897126b37b6264151fe6e1a1 | /**
* ProteinferProteinPager.java
* @author Vagisha Sharma
* Jan 7, 2009
* @version 1.0
*/
package org.yeastrc.www.misc;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
public class ResultsPager {
private static final ResultsPager instance = new ResultsPager();
private ResultsPager()... | Java | MSDaPl_Web_App/src/org/yeastrc/www/misc/ResultsPager.java | yeastrc/msdapl | apache-2.0 | 4,618 | 145 | codeparrot/github-code |
028a136486fadae7f070845014e28f742af260f07dd3bd68a04a0e968a7bd2a6 | /**
* 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/contrib/sqoop/src/test/org/apache/hadoop/sqoop/TestConnFactory.java | apache/hadoop-mapreduce | apache-2.0 | 4,308 | 139 | codeparrot/github-code |
8670bd7dbc8434c51d6bbd3f668176834fb3a7b36d2d332d3afb0792c1489352 | package com.mikfig.thatbombguy;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Sprite;
public class Bomb extends GameObject {
public Bomb(World aWorld, GridPosition gridPosition) {
super(aWorld, gridPosition);
Gdx.app.log(ThatBombGuy.LogTag, "Bomb constructor");
mCurrentFrame = 0;
mT... | Java | ThatBombGuy/src/com/mikfig/thatbombguy/Bomb.java | mffigueroa/ThatBombGuy | apache-2.0 | 1,575 | 51 | codeparrot/github-code |
08987783c40e39d5bb6a5b19b90a3660a8ea5113771f6832a26e514fe74ab403 | // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | Rust | src/librustc/back/rpath.rs | j16r/rust | apache-2.0 | 11,180 | 356 | codeparrot/github-code |
55323fc2398bd71db4e7b75cf578f3432ed0fe84a7bdaca5eb9bb87f409f78a8 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using System.Threading.Tasks;
using Demo.WebApp.Models;
namespace Demo.WebApp.Account
{
public partial c... | C# | Demo.AspFormsMvpSpecFlow/Demo.WebApp/Account/AddPhoneNumber.aspx.cs | cipicip/DotNet | apache-2.0 | 1,102 | 34 | codeparrot/github-code |
5b8f6691f11567dc7ef5fcbd74b63bb908ca36b09824ffcfc04ca7f6d49bddc8 | package ardom.vika.ui.lists.list_items.workScheduleInfo;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.Locale;
import ardom.common.... | Java | vika/src/main/java/ardom/vika/ui/lists/list_items/workScheduleInfo/WorkScheduleInfoViewHolder.java | tsadoklf/Ardom | apache-2.0 | 4,846 | 140 | codeparrot/github-code |
eda6bce04a630f0293b82e845a3bfff40cbceecb284121906d9a05a0ee913e8e | /**
* Standard Library for C++11/14/17
* Nana C++ Library(http://www.nanapro.org)
* Copyright(C) 2017 Jinhao(cnjinhao@hotmail.com)
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* @file nana/stdc++.cpp
*/
#in... | C++ | Brandisher/source/stdc++.cpp | LiveAsynchronousVisualizedArchitecture/lava | apache-2.0 | 10,692 | 470 | codeparrot/github-code |
0e076be7febb162d97488a8781686a51055b176faac8ceb18e943c6ef9242071 | package com.chinasoft.Correctness;
import java.util.Properties;
import org.eclipse.jdt.annotation.NonNull;
import com.chinasoft.Connection;
public class CorrectnessTest3<ParameterType, ReturnType>
{
private Connection conn = null;
private boolean connResult = false;
/**
* 对象一直为Null(空指针引用)
* Cor... | Java | src/com/chinasoft/Correctness/CorrectnessTest3.java | aitipachong/SonarQubeCheckRulesDemo | apache-2.0 | 3,685 | 179 | codeparrot/github-code |
a9ba4fc6abd14308cca42ff66f8611811aab73e6d3e4535010e6e616b478d15e | /*
* 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 | apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/TraceSegmentServiceClient.java | wu-sheng/sky-walking | apache-2.0 | 7,378 | 189 | codeparrot/github-code |
8a9047aedac300b6858f24ee0e5fd27d4ec98f8b431998fb6d496a9d4eef21c7 | /*
* 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.osedu.org/licenses/ECL-2.0
*
* Unless required by appli... | Java | src/main/java/org/kuali/kra/iacuc/onlinereview/IacucProtocolOnlineReviewStatusValuesFinder.java | vivantech/kc_fixes | apache-2.0 | 2,360 | 60 | codeparrot/github-code |
a470adb7fa11b516bc760c2c7cbf3d89a76ddf6423a76176e829d11b85abbeb5 | import * as utils from '../src/utils.js';
import {
BANNER,
VIDEO
} from '../src/mediaTypes.js';
import {
config
} from '../src/config.js';
import {
registerBidder
} from '../src/adapters/bidderFactory.js';
import {
createEidsArray
} from './userId/eids.js';
const BIDDER_CODE = 'smartadserver';
const GVL_ID = ... | JavaScript | modules/smartadserverBidAdapter.js | tchibirev/Prebid.js | apache-2.0 | 7,927 | 221 | codeparrot/github-code |
3d472e4564a38c67d1ef994763bb747556cbe2ab46df649202ea85abc982d06d | /**
* Copyright 2016-2017 Sixt GmbH & Co. Autovermietung KG
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain a
* copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law... | Java | src/main/java/com/sixt/service/framework/health/HealthCheckManager.java | tomasulo/ja-micro | apache-2.0 | 6,999 | 174 | codeparrot/github-code |
a319af8c5987435e29af640cee5da00ffcff2c568953bf9efeda76a6f4c04d36 | // Copyright 2019 The Wuffs 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | GO | script/print-deflate-huff-table-size.go | google/wuffs | apache-2.0 | 21,482 | 563 | codeparrot/github-code |
e993374847a38ee94907a8438b6e45cb0ba6a67c1f6cf3deb2a1a5146b476792 | /* 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 | modules/flowable-rest/src/main/java/org/activiti/rest/service/api/management/TableResource.java | roberthafner/flowable-engine | apache-2.0 | 2,582 | 67 | codeparrot/github-code |
34ff38c5cd95477852751c232dd7fb576f73f76d4388fb8bb23c411ac2171f5d | /*******************************************************************************
*
* Pentaho Data Profiling
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0... | Java | api/core/src/test/java/org/pentaho/profiling/api/util/ObjectHolderTest.java | smaring/pentaho-data-profiling | apache-2.0 | 1,670 | 53 | codeparrot/github-code |
2f5c3196b3da3e653e40ecfbb22b6c09ae3a5dc223d60b7eab778e45e76c7f02 | using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using NHunspellComponent.Spelling.Interfaces;
namespace NHunspellComponent
{
internal class CustomMaskedTextBox : MaskedTextBox, ISpellingControl
{
#region ISpellingControl Members
private bool spellingEnabled... | C# | NHunspellWrapper/CustomMaskedTextBox.cs | alatabbi/TexE | apache-2.0 | 951 | 42 | codeparrot/github-code |
4930ca5ec08c9aef75b758fc0ea5fee7f7b3ccb8eb06e66a630cb4f808c3185c | /* Copyright 2009 dotless project, http://www.dotlesscss.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
*
* Unl... | C# | src/dotlessVS.Test/LexerFixtures.cs | erikvanbrakel/DotLessVSIntegration | apache-2.0 | 2,100 | 60 | codeparrot/github-code |
9d005b6747b6fcd39da3e5c165cc41b43fd8dbd130e8994373312461d857c7b0 | package com.dcp.sm.gui.pivot;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import org.apache.pivot.collections.ArrayList;
import org.apache.pivot.collections.List;
import org.apach... | Java | src/main/java/com/dcp/sm/gui/pivot/Facade.java | DevComPack/setupmaker | apache-2.0 | 14,315 | 406 | codeparrot/github-code |
d0ee6aecf7a31164dda828de485a7fd1386d16d1f02fbaa2b0c497ccf30f9e83 | require 'bunny'
module NodeStarter
# class wrapping connection to queue that stores uss nodes to be started
class Consumer
class QueueNotInitialized < StandardError
end
def setup
@conn = Bunny.new(
hostname: NodeStarter.config.amqp.host,
port: NodeStarter.config.amqp.port,
... | Ruby | lib/node_starter/consumer.rb | AVGTechnologies/node_starter | apache-2.0 | 1,383 | 55 | codeparrot/github-code |
b05077402f7a11ff38f5190fdd90a85ba79bb81b2b57c31541f9f38d11d325a6 | from graphics import*
import random
from Player import *
from Button import *
class Tile():
def __init__(self,l):
self.letter = l
self.setValue()
self.rect = Rectangle(Point(0,0),Point(10,10))
self.text_letter = Text(Point(5,5),self.letter)
self.text_value = Text(... | Python | CSCI220/Week 15 - FINAL/Scrabble/Tile.py | itsallvoodoo/csci-school | apache-2.0 | 5,575 | 192 | codeparrot/github-code |
86e2824ad27ba762e5743ecb579de0b167d0961a7c15899a7142f7dde4982862 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | java/java-impl/src/com/intellij/psi/impl/source/tree/JavaChangeUtilSupport.java | jexp/idea2 | apache-2.0 | 25,049 | 519 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.