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 |
|---|---|---|---|---|---|---|---|---|
7509e6eaddfe58f09c2d76aa89b8477a05b856705fc9bb2d3a5e720334fd321f | # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import datetime
import faulthandler
import logging
import os
import signal
import sys
import threading
import traceback
from contextlib import contextmanager
from typing import Callable, I... | Python | src/python/pants/base/exception_sink.py | tdyas/pants | apache-2.0 | 23,733 | 563 | codeparrot/github-code |
44795858e320adaa9ffd2221ae93d6c06180ac8782f9313696451005d2ff8592 | package org.testory;
import static java.lang.String.format;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import static org.testory.Testory.thenReturned;
import static org.testory.Testory.when;
import static org.testory.common.Throwables.printStackTrace;
import static org.testory.te... | Java | test/java/org/testory/TestThenReturnedObject.java | testory/testory | apache-2.0 | 3,481 | 147 | codeparrot/github-code |
b4f33e7b7981fa629b6b510821f582bdd1e1f2802afddffa1c636586fcfa8cb7 | /*
*
* * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.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.apa... | Java | graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientElement.java | DiceHoldingsInc/orientdb | apache-2.0 | 18,826 | 566 | codeparrot/github-code |
37779fc7d728808e29491b5b81fe3d99df4ece8b1405cd848621b18254b0207e | # -*- coding: utf-8 -*-
"""
Add compatibility for gevent and multiprocessing.
Source based on project GIPC 0.6.0
https://bitbucket.org/jgehrcke/gipc/
"""
import os, sys, signal, multiprocessing, multiprocessing.process, multiprocessing.reduction
gevent=None
geventEvent=None
def _tryGevent():
global gevent, gevent... | Python | flaskJSONRPCServer/gmultiprocessing.py | byaka/flaskJSONRPCServer | apache-2.0 | 6,393 | 177 | codeparrot/github-code |
73b632d80602f0e6be64a667dd6737b4a3d335fbd05b85d64e1b1744c33575a6 | /*
* Copyright 2012 Switchfly
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | Java | inputvalidation/src/main/java/com/switchfly/inputvalidation/PatternValidationStrategies.java | switchfly/switchfly-java | apache-2.0 | 1,776 | 46 | codeparrot/github-code |
0618fda92e66b7a1ede04c0c1ce7b7deaeacdbfe25633f17cc40d43c1db91c34 | /* ==========================================
* JGraphT : a free Java graph-theory library
* ==========================================
*
* Project Info: http://jgrapht.sourceforge.net/
* Project Creator: Barak Naveh (http://sourceforge.net/users/barak_naveh)
*
* (C) Copyright 2003-2008, by Barak Naveh and Con... | Java | src/org/jgrapht/experimental/permutation/CollectionPermutationIter.java | Alejandro-Frech/AnalisisAlgoritmos | apache-2.0 | 5,089 | 182 | codeparrot/github-code |
bae6906532eca6ecdeb0fa80660a0808bb38e61522e2fb851d49627e1af4a6c3 | /*
Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | pkg/scheduler/framework/v1alpha1/framework.go | quinton-hoole/kubernetes | apache-2.0 | 16,643 | 533 | codeparrot/github-code |
8dcc6fe11473418fb9c290e29f5d180c873ec124448359211b864b5eeb2d2d36 | package uk.co.badgersinfoil.metaas.fixes;
import junit.framework.TestCase;
import uk.co.badgersinfoil.metaas.ActionScriptFactory;
import uk.co.badgersinfoil.metaas.ActionScriptParser;
import uk.co.badgersinfoil.metaas.dom.*;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;... | Java | src/test/java/uk/co/badgersinfoil/metaas/fixes/InterfaceMetodsSemicolonTest.java | code-orchestra/metaas-fork | apache-2.0 | 1,494 | 45 | codeparrot/github-code |
cb4736963ffacf27ac9c3b90d3590bbc58a55a058fd11058fa1240baa5a128fe |
$GLOBAL_scriptExitCode = 0
. "$PSScriptRoot\Common.ps1"
Start-ScriptLog "SP-Binaries-Pre-Patch"
import-module storage
$SPConfigSilentName = "SPConfigCustom.xml"
$SPConfigSilent = "
<Configuration>
<Package Id=""sts"">
<Setting Id=""LAUNCHEDFROMSETUPSTS"" Value=""Yes"" />
</Package>
<Package Id=""spswfe"... | PowerShell | Extensions/SPBinariesPrePatch.ps1 | gilroyneil/SP-Azure | apache-2.0 | 10,131 | 295 | codeparrot/github-code |
f8a2b4e8d3a9ce77cae22958664ef8bcb8cb640f474e9f6cf5d3234abeb26e4f | //#! Ignore-License
/*
* Copyright 2007 - 2009 Lars Heuer (heuer[at]semagia.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-... | Java | ontopia-engine/src/main/java/net/ontopia/topicmaps/utils/jtm/JSONToken.java | ontopia/ontopia | apache-2.0 | 3,297 | 96 | codeparrot/github-code |
12caed01282eceac86bad9123ca4fdbf045511d8583a6117a4b18874875f2d56 | /*
* 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-lightsail/src/main/java/com/amazonaws/services/lightsail/model/transform/CreateContainerServiceDeploymentResultJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,075 | 75 | codeparrot/github-code |
036199f0ef54d804fda1923ee969bc13e3bc55b207975209b3270388329f33be | //===--- ModuleFormat.h - The internals of serialized modules ---*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | C | include/swift/Serialization/ModuleFormat.h | slavapestov/swift | apache-2.0 | 43,622 | 1,506 | codeparrot/github-code |
53389b972786fce3ac450db8253d40fb5e1985524a603e14c3f160426b585dc4 | package org.jboss.arquillian.extension.switchyard.container;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import javax.xml.namespace.QName;
import org.slf4j.Logger;... | Java | src/main/java/org/jboss/arquillian/extension/switchyard/container/SwitchYardInterceptor.java | panga/arquillian-extension-switchyard | apache-2.0 | 5,002 | 150 | codeparrot/github-code |
fd4b52c4f87d58063a03289c16a3d1a917e163d72e2f0a4287e88af663f45bdb | /*
* 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 | dubbo-spring-boot/dubbo-spring-boot-actuator/src/main/java/org/apache/dubbo/spring/boot/actuate/endpoint/condition/CompatibleOnEnabledEndpointCondition.java | wuwen5/dubbo | apache-2.0 | 3,256 | 69 | codeparrot/github-code |
1e57064171acc54d2dc4e5e9857a27092ed99612572a9640d555b66def389709 | package org.consumersunion.stories.common.shared.service.datatransferobject;
import java.util.List;
import org.consumersunion.stories.common.shared.model.document.Document;
import com.google.common.collect.Lists;
import com.google.gwt.user.client.rpc.IsSerializable;
public class Documents implements IsSerializable ... | Java | shared/src/main/java/org/consumersunion/stories/common/shared/service/datatransferobject/Documents.java | stori-es/stori_es | apache-2.0 | 877 | 37 | codeparrot/github-code |
7053d176b5ef24dcb0f565b427c5815d631ede956f419ab678167d96b689bee4 | import React from "react";
import { TRANSACTION_STATUSES } from "../enums/transactions";
const { AWAITING_PROCESS, PROCESSING, PROCESSED } = TRANSACTION_STATUSES;
const STATUS_MAP = {
"Awaiting Process": AWAITING_PROCESS,
Processing: PROCESSING,
Processed: PROCESSED
};
export default class TransactionStatusDro... | JavaScript | assets/js/batch-transaction-form/transaction-status-dropdown.js | umnretirees/membership-platform | apache-2.0 | 1,033 | 43 | codeparrot/github-code |
42bdaf2728b67f8a024778cbad24dfc9c0ec8a96d068a83e8d850f4cbded86e5 | package com.java110.dto.smallWeChat;
import com.java110.dto.PageDto;
import com.java110.dto.smallWechatAttr.SmallWechatAttrDto;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @ClassName FloorDto
* @Description 小程序管理数据层封装
* @Author wuxw
* @Date 2019/4/24 8:52
* @Version 1.0
* a... | Java | java110-bean/src/main/java/com/java110/dto/smallWeChat/SmallWeChatDto.java | java110/MicroCommunity | apache-2.0 | 3,377 | 162 | codeparrot/github-code |
2b0e66638d9725351706e030df68568d7a27402b96b690ca9fd53d82f14a4a7a | /*--------------------------------------------------------------------------
* Copyright 2009 utgenome.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | Java | utgb-core/src/main/java/org/utgenome/format/fasta/CompactFASTAGenerator.java | utgenome/utgb | apache-2.0 | 4,629 | 147 | codeparrot/github-code |
8c4b8f0b2e0edd0ff17c751a5b7ad8683d508381d95863f0ddeb25c93c6604f7 | /*
* ModeShape (http://www.modeshape.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Java | modeshape-jcr/src/test/java/org/modeshape/jcr/JcrTckSuites.java | rhauch/modeshape | apache-2.0 | 3,334 | 98 | codeparrot/github-code |
8d29826f649da7241a74097bb92d9cc3b3d80bbfb0bd53fcdf8e2a29bd55036e | using SF.Sys.Linq;
using SF.Sys.Logging;
using SF.Sys.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SF.Common.Notifications.Senders
{
/// <summary>
/// 测试提供者
/// </summary>
public class DebugNotificationSendProvider : IDebugNotificationSendPr... | C# | Projects/Server/Common/SF.Common.Notifications.Implements/Senders/DebugNotificationSendProvider.cs | etechi/ServiceFramework | apache-2.0 | 907 | 39 | codeparrot/github-code |
d17174638dc666f6b2b0316c641ff080a7127aeb28400973b7c2d44a5ea3ab2e | // Copyright 2014 Serilog 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 law or a... | C# | src/Serilog.Extras.Web/Extras/Web/Enrichers/HttpRequestClientHostNameEnricher.cs | vossad01/serilog | apache-2.0 | 2,173 | 59 | codeparrot/github-code |
a7273f16a3e138cec7d9da987c2b3b5eb94626d276a103488d945627ec9ceb89 | /*
************************************************************************************************************************
* eNand
* Nand flash driver scan module
*
* Copyright(C), 2008-2009, Soft... | C | SOFTWARE/A64-TERES/u-boot_new/arch/arm/cpu/armv8/wine/nand/nand_bsp/nfc_for_boot0/src/nand_scan_for_boot.c | OLIMEX/DIY-LAPTOP | apache-2.0 | 8,760 | 330 | codeparrot/github-code |
a4615ee272ce86abb9b08c7affe7a1e7f0957992accfb6338176511ae3d774c5 | #
# Author:: Bryan W. Berry (<bryan.berry@gmail.com>)
# Cookbook Name:: java
# Provider:: ark
#
# Copyright 2011, Bryan w. Berry
#
# 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:/... | Ruby | java/providers/ark.rb | appriss/chefjava | apache-2.0 | 10,082 | 267 | codeparrot/github-code |
7ba15d8ffa93391a01cfbce194007086ddabe391721975385829873a4b77a449 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/delta/DataPageInsertFragmentRecord.java | vadopolski/ignite | apache-2.0 | 2,524 | 85 | codeparrot/github-code |
95b90a8d8a2abce50e5827943016179a44c46f8a58ec7ac3dbcfceb04686e481 | /*
Copyright 2011 Harri Smått
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 wri... | Java | src/fi/harism/curl/CurlMesh.java | cags12/android_page_curl | apache-2.0 | 35,477 | 1,087 | codeparrot/github-code |
c0f344ab33b9637b7b42622c1b1b2b5f8b5f637dc6f93a26c07615362cac96a7 | package org.wx.common;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import java.util.Set;
public class Config {
private static ResourceBundle resources = null;
private static... | Java | src/test/java/org/wx/common/Config.java | rocye/wx-idk | apache-2.0 | 2,241 | 93 | codeparrot/github-code |
9037ae7e895b5a10642dee25fba77024201c2461e1d8bc345511780f723df3d1 | //===--- TypeCheckProtocolInference.cpp - Associated Type Inference -------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | lib/Sema/TypeCheckProtocolInference.cpp | natecook1000/swift | apache-2.0 | 75,845 | 2,105 | codeparrot/github-code |
d996ba060f22f737fdb547759052e82f61869e0361f73a6338f0f281717c0366 | /*
Copyright 2014 Shahriyar Amini
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | Java | Source/GortGUIv2/Gort/database/src/org/cmuchimps/gort/modules/database/Installer.java | samini/gort-public | apache-2.0 | 1,134 | 34 | codeparrot/github-code |
c1b8df7c27e1e4a20eac2c2ad051aa9d7a2586f538dd32aef2ee68de2e9985c6 | /**
*/
package pcmarchoptions.provider;
import archoptions.provider.OnlySingleInstantiationItemProvider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.edit.provider.ComposeableAdapt... | Java | bundles/Toometa/toometa.pcmarchoptions.edit/src/pcmarchoptions/provider/PCM_OnlySingleInstantiationItemProvider.java | KAMP-Research/KAMP | apache-2.0 | 3,732 | 127 | codeparrot/github-code |
ad24127d8435480595ed412828cde06f912ededa0cbe94f1ac886e0894c42187 | /*
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | bigtable-grpc-interface/src/main/java/com/google/cloud/bigtable/grpc/BigtableGrpcClientOptions.java | dmmcerlean/cloud-bigtable-client | apache-2.0 | 3,194 | 103 | codeparrot/github-code |
007cba746f47c84dd5e6fad3d89caf1bafd058e96417ba67c1adf1e3cd0ad871 | package org.marketcetera.photon.internal.marketdata;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
... | Java | photon/photon/plugins/org.marketcetera.photon.marketdata/src/main/java/org/marketcetera/photon/internal/marketdata/MarketDataManager.java | nagyist/marketcetera | apache-2.0 | 10,465 | 265 | codeparrot/github-code |
34837cf4cee1a3fc1bda8e232ab2c796fef8914351d14ef245633c94f2d082c0 | /*
* 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/org/apache/pig/newplan/logical/expression/DereferenceExpression.java | simplegeo/hadoop-pig | apache-2.0 | 6,495 | 177 | codeparrot/github-code |
8c72204443d871003c5c456c35a6a8e8c359be4c9efd50c3d766456000d897ca | // Copyright 2014 Traceur 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 ... | JavaScript | src/runtime/InternalLoader.js | vicb/traceur-compiler | apache-2.0 | 17,018 | 596 | codeparrot/github-code |
53a794d6b39d7ed961daa99e8a305e62095b72e34f6f283e9b8a61362acab72e | package cn.com.chenyixiao.designpattern.observer.zoo;
import java.util.ArrayList;
import java.util.List;
/**
* 动物园类, 相当于观察者模式中的Subject, 负责存储动物园中的所有动物, 并在新动物加入时通知所有已注册的监听器.
* @author 尘一笑
* 这个类比前面两个都复杂,其包含两个list,一个用来存储动物园中所有动物,另一个用来存储所有的监听器,
* 鉴于animals和listener集合存储的对象都很简单,本文选择了ArrayList来存储。
* 存储监听器的具体数据结构要视问题而定,比... | Java | src/cn/com/chenyixiao/designpattern/observer/zoo/Zoo.java | tensorchen/DesignPattern | apache-2.0 | 1,646 | 47 | codeparrot/github-code |
b9f85e32335bd293de4d638ec600317edfef8f97b3f4a438eae5300e278f8850 | // *****************************************************************************
// Copyright 2013-2019 Aerospike, 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... | JavaScript | test/lists.js | aerospike/aerospike-client-nodejs | apache-2.0 | 50,782 | 1,360 | codeparrot/github-code |
e08b2b0fc0395f7e46a9bc3f8c9b05d0da957df7328ff188654dadda2bde58e1 | /**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.medical.common.supcan.common.fonts;
import com.medical.common.supcan.annotation.common.fonts.SupFont;
import com.medical.common.utils.ObjectUtils;
import com.thoughtworks.xstream.annotations... | Java | src/main/java/com/medical/common/supcan/common/fonts/Font.java | dingyifly/medical | apache-2.0 | 2,524 | 145 | codeparrot/github-code |
3fa4b9b3e7fcbca1cbb71152c6bc90f9024fb4409626de7f4d6be5a73221759d | /*
* Copyright (C) 2015-2016 Neo Visionaries 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 a... | Java | websocket/src/main/java/com/neovisionaries/ws/client/PongSender.java | angcyo/RLibrary | apache-2.0 | 1,073 | 36 | codeparrot/github-code |
fc40cf40077fa30dd9420626470dfd268a72053078594cb623d22174cefe075f | /*
Copyright (c) 2018 VMware, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | GO | govc/library/rm.go | bruceadowns/govmomi | apache-2.0 | 1,832 | 75 | codeparrot/github-code |
21251e3e4c20eb8775f1a8216bc1e07569dcad3700433f076c8c813d26cff701 | /*
* Copyright (c) 2009-2012 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | Java | trunk/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/AbstractHeightMap.java | PlanetWaves/clockworkengine | apache-2.0 | 16,437 | 496 | codeparrot/github-code |
5dd45df695a575b1619cb9cf0a947fe4effc56f94ddaeea3c7e1d238df1bc7c3 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | src/main/java/org/apache/bcel/generic/ElementValuePairGen.java | typetools/commons-bcel | apache-2.0 | 3,607 | 119 | codeparrot/github-code |
f42f60796546bd78b1eb5a3b1b2c59ccf2b24d0abd1eced414a1aecf7470674e | package org.webcurator.ui.target.controller;
import static org.junit.Assert.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
i... | Java | wct-core/src/test/java/org/webcurator/ui/target/controller/LogReaderControllerTest.java | DIA-NZ/webcurator | apache-2.0 | 17,452 | 531 | codeparrot/github-code |
ae456cc7da7686edab27624e291c97a429d25b4a001f321e52e86c219842f4e4 | package com.zhanghao.skinexpert.fragments;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;... | Java | app/src/main/java/com/zhanghao/skinexpert/fragments/ProductSearchFragment.java | BMambaYe/SkinExpert | apache-2.0 | 4,994 | 129 | codeparrot/github-code |
e28553a568598e8dadd3f26abf80d45fc5335c7455421eaf7c41997b17225557 | const Mentions = require('./MessageMentions');
const Attachment = require('./MessageAttachment');
const Embed = require('./MessageEmbed');
const MessageReaction = require('./MessageReaction');
const ReactionCollector = require('./ReactionCollector');
const ClientApplication = require('./ClientApplication');
const Util ... | JavaScript | src/structures/Message.js | devsnek/discord.js | apache-2.0 | 18,882 | 595 | codeparrot/github-code |
759b4dba365db944f6ec6b0f02e7d56914fc2d2fd8135225c4e08d49a1857c65 | /*
* Copyright (c) 2015 Red Hat, Inc.
*
* This file is licensed to you under your choice of the GNU Lesser
* General Public License, version 2.1 or any later version (LGPLv2.1 or
* later), or the Apache License 2.0.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <assert.h>
#include <sys/types.h>
#include <s... | C | glfs.c | open-iscsi/tcmu-runner | apache-2.0 | 23,472 | 1,015 | codeparrot/github-code |
318a970f4ce113d9b18faa337ed16515a186569239b8edc4532eda775e6436de | # Copyright 2015 Mirantis, 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 a... | Python | networking_vsphere/agent/firewalls/dvs_securitygroup_rpc.py | VTabolin/networking-vsphere | apache-2.0 | 2,782 | 74 | codeparrot/github-code |
b6499b5cd3655689e764be9f9da93dbc11a296ac3ec34fa4bca876e9679ab1f4 | <?php
use wenyuan\ueditor\Ueditor;
use yii\helpers\Url;
use frontend\models\Member; //用户模型
use frontend\models\UserThirdPartyLogin; //用户第三方登录模型
$session = Yii::$app->session;
$session->isActive?'':$session->open();
$user = $session->get('user');
$tplogin = isset($user['third_par... | PHP | frontend/views/product/uc_prodadd_step2.php | songhongyu/idaiyan | apache-2.0 | 14,669 | 267 | codeparrot/github-code |
7a18c3ec84819b49421c423591a86860f09c30d3ce4f2355a366943e07378567 | /*
Copyright 2016 ElasticBox 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 agreed to in w... | JavaScript | src/ui/app/instances/ek-instances/ek-instances.directive.js | ElasticBox/elastickube | apache-2.0 | 1,087 | 37 | codeparrot/github-code |
9e2f74ec2a321fadbc3a8ae05ae16d5de1c36638ec2543766660cc6869e135cb | import { Template } from 'meteor/templating';
import { Meteor } from 'meteor/meteor';
import { Roles } from 'meteor/alanning:roles';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { $ } from 'meteor/jquery';
import { getStudentProfileMethod } from '../../../api/user/StudentProfileCollection.methods';
/... | JavaScript | app/imports/ui/components/landing/radgrad-login-buttons.js | radgrad/radgrad | apache-2.0 | 2,450 | 78 | codeparrot/github-code |
dfdfc351dab1ced6500752347e2ac137f6895f63dec54400ddb654ed68be86cb | /*
* Copyright 2015 Coursera 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 t... | Java | idea-plugin/src/org/coursera/courier/psi/CourierNamedElementReferenceBase.java | coursera/courier | apache-2.0 | 2,963 | 88 | codeparrot/github-code |
9d1e71173ba3a55742846df955a0ea86fcd8d5510f3d3bcbd8a5d7f2f39b9d83 | /*
* Copyright 2000-2012 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 | jam-api/src/main/java/com/intellij/jam/reflect/JamAnnotatedChildrenQuery.java | consulo/consulo-java | apache-2.0 | 2,223 | 67 | codeparrot/github-code |
2fe89a9f4796a167d6615798ab66a9d947cd0687e9fd5d51dcca8ccf90ee905a | /**
* 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 | ql/src/java/org/apache/hadoop/hive/ql/optimizer/listbucketingpruner/ListBucketingPrunerUtils.java | vergilchiu/hive | apache-2.0 | 13,590 | 381 | codeparrot/github-code |
82e7b2a4af4dd0ecb1b19850140d7b0edc8a4710de58a248a3991ca68d0278c1 | /*
* 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 | core/src/main/java/org/apache/calcite/sql/util/IdPair.java | julianhyde/calcite | apache-2.0 | 1,904 | 64 | codeparrot/github-code |
8cef958ca431482656b2a06dbc2a691dc63f724f619df58ef74cb094a5d37e06 | /*
* 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 | sdks/java/core/src/main/java/org/apache/beam/sdk/coders/BigEndianIntegerCoder.java | vikkyrk/incubator-beam | apache-2.0 | 3,325 | 113 | codeparrot/github-code |
0389f86fe87eacad892f2b56850913718a9dac2e9059e3ab5364e14cc3971be1 | package org.kloeckner.maven.plugin.util;
/*
* 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 Lic... | Java | src/main/java/org/kloeckner/maven/plugin/util/VersionRangeUtils.java | mkloeckner/version-range-maven-plugin | apache-2.0 | 11,735 | 328 | codeparrot/github-code |
971c154e34bcf34be2cd2a0b5f18025fe8b8eb2ee41b658d00e8e27b11382725 | package com.commafeed.frontend.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@SuppressWarnings("serial")
@ApiModel(description = "List of entries with some m... | Java | src/main/java/com/commafeed/frontend/model/Entries.java | Athou/commafeed | apache-2.0 | 1,525 | 49 | codeparrot/github-code |
97e8f964aaf12ba6601c2e1170284d5e02f4f8ab6e9ee6137d982847bbeb6bc6 | /*
* Copyright 2019, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.controller;
import static org.hamcrest.core.IsCollectionContaining.hasItems;
import static org.hamcrest.core.IsNull.notNullValue;
import static org.hamcres... | Java | address-space-controller/src/test/java/io/enmasse/controller/AddressFinalizerControllerTest.java | EnMasseProject/enmasse | apache-2.0 | 5,952 | 157 | codeparrot/github-code |
f6364ad62fbe99cf9f92050af44a00f36f801d18722cd99bac8b4f2b6b75fed8 | package com.daemon.pas.presenter.activity;
import android.graphics.Bitmap;
import android.view.View;
import android.view.WindowManager;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.daemon.mvp.presenter.Activity... | Java | app/src/main/java/com/daemon/pas/presenter/activity/WebViewActivity.java | Daemon1993/Pas | apache-2.0 | 3,891 | 143 | codeparrot/github-code |
b004add2b521cdbec2e419c9674d5bdf2453a752734ebf7089bc19defed85893 | /*
* Copyright (c) Facebook, 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 applic... | Java | src/com/facebook/buck/file/CopyTree.java | JoelMarcey/buck | apache-2.0 | 3,941 | 100 | codeparrot/github-code |
f7649f0b73059cbee4dd40edc388d803a34aba9bb063d23d5374aac061320e35 | <!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="HTML, CSS, JS, JavaScript, framework, bo... | HTML | docs/getting-started.html | macula-projects/mower | apache-2.0 | 41,429 | 718 | codeparrot/github-code |
dcd51c05a29ee57f24236520c00b343ec3c528ae66c524806545e17099a92736 | using System;
using System.Reflection.Emit;
using JetBrains.Annotations;
namespace ILGeneratorExtensions
{
/// <summary>
/// Contains extension methods for perofmring bitwise operations on integers
/// </summary>
public static class BitOperations
{
#region And
/// <summary>
/// Pop two integer... | C# | BitOperations.autogen.cs | matwilko/ILGenerator.Extensions | apache-2.0 | 16,815 | 382 | codeparrot/github-code |
20b31818ba3d8712da1cb7902708fa5142eba785219bc6af4a8adb8e16e5866f | /*
* Copyright 2013 pingworks - Alexander Birk und Christoph Lukas
* Copyright 2014 //SEIBERT/MEDIA - Lars-Erik Kimmel
*
* 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://w... | JavaScript | frontend/app/view/BundleGrid.js | pingworks/dash | apache-2.0 | 15,690 | 343 | codeparrot/github-code |
d3e0ebff39218b14e66e55da666fa9c9a0a6bedcaf15150348a3f87e6397b75d | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.fileEditor.impl;
import com.intellij.AppTopics;
import com.intellij.CommonBundle;
import com.intellij.application.options.CodeStyle;
import com.intel... | Java | platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.java | sabi0/intellij-community | apache-2.0 | 30,349 | 819 | codeparrot/github-code |
4684325d96ca5b8161d09d7f1eeee1ff5de1cfcc8d4be228dcbc4f39fee7f285 | package pl.pjagielski;
import static javax.ws.rs.core.MediaType.APPLICATION_JSON;
import static javax.ws.rs.core.Response.Status.CREATED;
import static javax.ws.rs.core.Response.Status.OK;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.POST;
import ja... | Java | src/main/java/pl/pjagielski/TodoEndpoint.java | pjagielski/jersey2-starter | apache-2.0 | 1,432 | 51 | codeparrot/github-code |
3a6aeb7bd2bf1763ec55662e182b7d53154822d65b746df1763f178ecfb5f167 | /*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | C | gooda-analyzer/kernels/conditional_jmp/cond_jmp16_nt.c | miguelinux/gooda | apache-2.0 | 2,292 | 85 | codeparrot/github-code |
2f31f425bb6215e3860240e0f3b26fbb11509288c26ad6b083bb6dcc02ff3d56 | package com.weather.yogurt.weatherapp.activity;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import android.view.View;
import andro... | Java | app/src/main/java/com/weather/yogurt/weatherapp/activity/WeatherActivity.java | Git-Yogurt/WeatherApplication | apache-2.0 | 9,358 | 225 | codeparrot/github-code |
1387e5c8dae5b7c5e9b17ded6433bef7539e50700986019b9e00d31bccf24be3 | #!/usr/bin/env python3
# encoding: utf-8
"""
main.py
The entry point for the book reader application.
"""
__version_info__ = (0, 0, 1)
__version__ = '.'.join(map(str, __version_info__))
__author__ = "c.guenther@mac.com"
import time
import sqlite3
import pdb
import signal
import sys, os
import rfid
import config
i... | Python | RASPI-stuff/python-codeline/fairytale/main.py | siliconchris1973/fairytale | apache-2.0 | 3,954 | 135 | codeparrot/github-code |
e3cfc03b90e38f0f5db69c67c99510637677531d74df1a4e6560869b6927e1e6 | /*
* Copyright 2005,2010 WSO2, Inc. http://wso2.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 applicable l... | C | src/wsf.c | MI-LA01/kt_wso2-php5.3 | apache-2.0 | 80,507 | 2,227 | codeparrot/github-code |
882b33f1ffe1db0bfcf2e79a081ee5f5d26289aa1e8ea32a2136854d5cd738a1 | import java.util.*;
import java.util.stream.*;
/*
* The Traveller represents the entity moving through
* the Maze.
*/
public class Traveller
{
public Traveller (Maze maze, boolean debug)
{
_theMaze = maze;
_debug = debug;
}
public int findAllKeys ()
{
Vector<Wormhole> o... | Java | AdventOfCode/2019/day20/part1/Traveller.java | nmcl/scratch | apache-2.0 | 5,211 | 145 | codeparrot/github-code |
3ce86bce11234597e6020c0f75bbd875f2e8e1da59977264541f5c6ab5562113 | //
// Copyright 2015 Ilkka Oksanen <iao@iki.fi>
//
// 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... | TypeScript | server/lib/search.ts | ilkkao/mas | apache-2.0 | 3,032 | 132 | codeparrot/github-code |
1fd39784dce41291b681c30cf276be0a4d40223f0654b80d2c9c278698faa5ab | 'use strict'
/* globals describe, test, expect, jest */
const path = require('path')
// This is the module we are testing
const { crawlForMovies } = require('../crawlForMovies')
const crawlParams = {
rootDirectory: __dirname,
searchDirCb: jest.fn(),
movieFileCb: jest.fn()
}
describe('crawlForMovies', () => {
... | JavaScript | app/background/__tests__/crawlForMovies.test.js | blenoski/movie-night | apache-2.0 | 954 | 37 | codeparrot/github-code |
f656893c4ce2cfd726c53494b83bcbc3b5c53392f5120f47d8b4c27750606449 | /*
Copyright (c) 2010, Siemens Corporate Research a Division of Siemens Corporation
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... | Java | src/com/siemens/cmiv/avt/mvt/outlier/OutlierManager.java | OpenXIP/avt-mvt | apache-2.0 | 1,159 | 35 | codeparrot/github-code |
8e9eed31c65f711f5ebcbbac95b6266cad65cbbfedd227777fc675c735a99190 | // 在这里写你的事件
package main
import (
"github.com/ying32/govcl/vcl"
"github.com/ying32/govcl/vcl/rtl"
"github.com/ying32/govcl/vcl/types"
"github.com/ying32/govcl/vcl/types/keys"
"github.com/ying32/govcl/vcl/types/messages"
"github.com/ying32/govcl/vcl/win"
)
//::private::
type TForm1Fields struct {
hotKeyId type... | GO | samples/Windows/registerHotKey/Form1Impl.go | ying32/govcl | apache-2.0 | 1,290 | 58 | codeparrot/github-code |
9fdd0fa059a928e0571722c5ac26d3b5bbae74d4bda675a878e3ed223069f9a2 | /*
* Copyright 2018 Red Hat, Inc. 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 app... | Java | kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-backend/src/test/java/org/kie/workbench/common/stunner/bpmn/backend/service/diagram/marshalling/events/intermediate/CatchingIntermediateEvent.java | jhrcek/kie-wb-common | apache-2.0 | 9,830 | 221 | codeparrot/github-code |
c229f498a6be1ab1fe939491c83ba91fedaa21d8d4424be32be4d20a18f2fbe7 | using System.Security.Principal;
using Moq;
using PlantUmlStudio.Core.Security;
using Xunit;
namespace Tests.Unit.PlantUmlStudio.Core.Security
{
public class WindowsSecurityServiceTests
{
public WindowsSecurityServiceTests()
{
securityService = new WindowsSecurityService(() => principal.Object);
}
[Theo... | C# | Tests.Unit/PlantUmlStudio.Core/Security/WindowsSecurityServiceTests.cs | mthamil/PlantUMLStudio | apache-2.0 | 1,017 | 39 | codeparrot/github-code |
88ac2b072bece05b0eb5cddaa7efcafb6f3f2c79dd1e0ff52a22e1d6affceec5 | /*
* Copyright 2002-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | spring-core/src/main/java/org/springframework/aot/generator/ProtectedElement.java | spring-projects/spring-framework | apache-2.0 | 1,854 | 69 | codeparrot/github-code |
d4ab226c0751da8db6b42de319c2f0ea566f5b795e2e32d23a731d0186766b82 | package com.huawei.esdk.fusionmanager.local.model.storage;
/**
* 修改磁盘扩展请求消息。
* <p>
* @since eSDK Cloud V100R003C30
*/
public class ModifyVolumeReqEx
{
/**
* 【必选】当前操作用户所在VDC编码。
*/
private String vdcId;
/**
* 【必选】VPC ID。
*/
private String vpcId;
/**
* 【必选】磁盘编码。
... | Java | source/FM/V1R5/esdk_fm_neadp_1.5_native_java/src/main/java/com/huawei/esdk/fusionmanager/local/model/storage/ModifyVolumeReqEx.java | eSDK/esdk_cloud_fm_r3_native_java | apache-2.0 | 1,105 | 71 | codeparrot/github-code |
9679554537ae197d2410fb83837cd922eb65012453c540db2ee1f36987b708aa | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import List from '../../components/List';
import UserIcon from '../../icons/User';
const Item = (props) => {
const { className, item: user } = props;
const classNames = ['item__container'];
if (className) {
... | JavaScript | ui/js/pages/user/Users.js | ericsoderberg/pbc-web | apache-2.0 | 1,319 | 56 | codeparrot/github-code |
9edde64d80d2317084786f05df7006b481f62fe3604492c9e95a17ce2c192cbe | package com.ctrip.platform.dal.dao.helper;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import com.ctrip.platform.dal.dao.ResultMerger;
public class DalListMerger<T> implements ResultMerger<List<T>> {
private List<T> result = new ArrayList<>... | Java | dal-client/src/main/java/com/ctrip/platform/dal/dao/helper/DalListMerger.java | ctripcorp/dal | apache-2.0 | 762 | 35 | codeparrot/github-code |
892066168023083ed3ae54c8f924bb5b17bc706e54479466e6a9ba2718ebc999 | /*
* Copyright 2014 FIZ Karlsruhe
*
* 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 | escidocng-backend/src/main/java/de/escidocng/controller/DescribeController.java | escidoc-ng/escidoc-ng | apache-2.0 | 2,001 | 60 | codeparrot/github-code |
114af6e26e9601a2112797ba8112ca8a560c498ac4f724ed0a2ea52703f54efc | package org.gradle.test.performance.mediummonolithicjavaproject.p292;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test5847 {
Production5847 objectUnderTest = new Production5847();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | Java | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p292/Test5847.java | oehme/analysing-gradle-performance | apache-2.0 | 2,111 | 79 | codeparrot/github-code |
dbb231366fff085d25f3e64048d3fd19288f39e131ce3061b15ef8e1612aa64d | /*
* 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 ... | Scala | src/main/scala/com/irvingc/spark/SampleDBSCANJob.scala | irvingc/dbscan-on-spark-example | apache-2.0 | 2,269 | 64 | codeparrot/github-code |
5e512025aab6877eeb0ce4aef27ac45c375313bf06191a9d7dcfdcc3aca67c62 | package org.proxy.handler;
import org.proxy.domain.Car;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
/**
* Created by thiago on 24/09/14.
*/
public class CarInvocationHandler implements InvocationHandler {
private static ... | Java | src/main/java/org/proxy/handler/CarInvocationHandler.java | thiagoandrade6/proxy-test | apache-2.0 | 774 | 32 | codeparrot/github-code |
8c012bf5e42aebf23a4373f9b6c5e024fc24eb89a4bd2887ea53dbe71e7d6f1e | /*
* Copyright (C) 2015 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 | mobile/src/main/java/pe/asomapps/udacity/goubiquitous/widget/TodayWidgetIntentService.java | Danihelsan/GoUbiquitous | apache-2.0 | 7,149 | 152 | codeparrot/github-code |
02e31179de775bcd32f84bdddf7af3f4153fad2933f22089ded88198371e0809 | /*
* 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 | asterixdb/asterix-external-data/src/test/java/org/apache/asterix/external/input/record/reader/RecordWithPKTestReaderFactory.java | heriram/incubator-asterixdb | apache-2.0 | 2,841 | 71 | codeparrot/github-code |
3b00efd9d63ac3187fa8cd81f83045cebd00dfda7da7bf82b762b6c9bcdc2560 | /*
* Copyright (c) 2016 Juniper Networks, Inc. All rights reserved.
*/
define([ 'lodash',
'controlnode-widgetcfg', 'vrouter-widgetcfg','databasenode-widgetcfg',
'analyticsnode-widgetcfg','confignode-widgetcfg','monitor-infra-widgetcfg',
'security-dashboard-widgetcfg',
'confignode-mode... | JavaScript | webroot/js/widget.configmanager.js | biswajit-mandal/contrail-web-core | apache-2.0 | 4,969 | 108 | codeparrot/github-code |
bf9222b22e8dba11e20626388351c749be2f191da3ec1f6d0412e1ea507ddf0e | // xiNET interaction viewer
// Copyright 2013 Rappsilber Laboratory
//
// This product includes software developed at
// the Rappsilber Laboratory (http://www.rappsilberlab.org/).
"use strict";
var Config = require('../../controller/Config');
var Link = require('./Link');
var SequenceLink = requ... | JavaScript | src/model/link/BinaryLink.js | joshkh/joshkh.github.io | apache-2.0 | 9,868 | 284 | codeparrot/github-code |
a98d55b201f964791342cc4a6a7d302f767403d1a5fce07c49e683c07b1a0a60 | /**
* Copyright 2012-2013 American Institute for Computing Education and Research 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-... | Java | src/main/java/org/aicer/hibiscus/util/HashGenerator.java | aicer/hibiscus-http-client | apache-2.0 | 4,395 | 139 | codeparrot/github-code |
a93d9d4f05f38aac4d7682401d795b0fd6d73fccb73c2c309e5e9fab12afe6ce | /*
* Licensed to Intel Corporation under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Intel Corporation licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use t... | Scala | dl/src/test/scala/com/intel/analytics/bigdl/dataset/BatchPaddingSpec.scala | dding3/BigDL | apache-2.0 | 11,387 | 286 | codeparrot/github-code |
6a35e540a0c0ccc2d819b639a2b016ebbd943aa043a0bbef0ffa95f9e8f6e4bf | package dhg.ccg.tag.learn
import dhg.util._
import math.{ log, exp }
import com.typesafe.scalalogging.slf4j.{ StrictLogging => Logging }
import scalaz._
import Scalaz._
import scala.collection.breakOut
import dhg.ccg.prob._
import dhg.ccg.tagdict.TagDictionary
trait TransitionDistributioner[Tag] {
type Word = Strin... | Scala | src/main/scala/dhg/ccg/tag/learn/SupHmmDistributioner.scala | dhgarrette/2015-ccg-parsing | apache-2.0 | 13,311 | 247 | codeparrot/github-code |
59a77300ffc940df857e12ae63a79e2471fc87e76edf7932d336fb174575e640 | /*
* Copyright 2010 Erlend Nossum
*
* 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 | semispace-comet/semispace-comet-webapp/src/test/java/org/semispace/comet/client/notification/NoticeC.java | nostra/semispace | apache-2.0 | 838 | 30 | codeparrot/github-code |
f7779e3c7bb6e6c79daef0c2c9fbfd955c7afc7162dacb33b1a71fd8f6c17d76 | package com.dmitrymalkovich.android.githubanalytics.settings;
/*
* Copyright 2016. Dmitry Malkovich
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... | Java | app/src/main/java/com/dmitrymalkovich/android/githubanalytics/settings/SettingsActivity.java | DmitryMalkovich/gito-github-client | apache-2.0 | 10,259 | 270 | codeparrot/github-code |
6bc9378ebd7900c6703ed02c63195d9b81d84f42d93d786203061baccfb08255 | using UnityEngine;
using System.Collections;
public class FormationChecker : MonoBehaviour {
public GameObject bullet;
public GameObject circleIndicator;
public GameObject lineIndicator;
public GameObject columnIndicator;
public GameObject shield;
public GameObject player1;
public GameObject player2;
p... | C# | Assets/scripts/FormationChecker.cs | Rufei/vanguard-delta | apache-2.0 | 6,809 | 156 | codeparrot/github-code |
a3a7b6dd6fcbee81f8f66f56302802ee2ab00365c5f63718e20e64b45df103e1 | @ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
set I18NSPHINXOPTS=%SPHINXOPTS% source
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLS... | Batchfile | docs/make.bat | dave-tucker/hp-sdn-client | apache-2.0 | 6,720 | 243 | codeparrot/github-code |
462ebc2a8a734e5d16c4085b31a323e5906a1fd32f07cacd4848263393dee3d4 | #!/usr/bin/env python
#
# Copyright 2014 Simone Campagna
#
# 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... | Python | src/configment/configment.py | simone-campagna/py-configment | apache-2.0 | 5,069 | 155 | codeparrot/github-code |
54735696ed6207764aa5c9ffa05e2362118e269054b0bb6a2d67d9ed834a5151 | /*
Car.cpp - Library for IWM Rocket Avoidance Robot Car.
Created by Steve Mullarkey, November 18, 2013.
Copyright 2013 Steve Mullarkey
Licensed under the Apache License, Version 2.0
*/
#include "Arduino.h"
#include <Servo.h>
#include "Car.h"
Car::Car(int frontServoPin,
int backServoPin,
int motorP... | C++ | Car.cpp | Stormagedon/Car | apache-2.0 | 7,579 | 240 | codeparrot/github-code |
6bd60b77c25db0439933c0712bafa87181d579a6e633ebbf5b79b68944a99d89 | <?php
/**
* Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
namespace OC\Template;
class CSSResourceLocator extends ResourceLocator {
public function doFind( $style ) {
if (strpos($style... | PHP | lib/private/template/cssresourcelocator.php | kebenxiaoming/owncloudRedis | apache-2.0 | 1,206 | 38 | codeparrot/github-code |
014f57a19ff777924e3089fd2f6fdbef58d2bb68f20f6cf00e5b3a25b3cc3535 | // Copyright 2019 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... | C# | NtApiDotNet/Win32/EventTrace.cs | googleprojectzero/sandbox-attacksurface-analysis-tools | apache-2.0 | 1,468 | 53 | codeparrot/github-code |
a39c01e9e1875c19942c418a76bc2ee3bd8581d59e37b4846cf214f28921da51 | /*
* Copyright 2010-2016 OrientDB LTD (http://orientdb.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 ... | Java | object/src/main/java/com/orientechnologies/orient/object/enumerations/OObjectEnumLazySet.java | orientechnologies/orientdb | apache-2.0 | 4,757 | 185 | codeparrot/github-code |
a283a61b75b767f97135522005fbe20e2f61072be43811f56e6b007bf6ec0ba9 | import React from 'react'
import { connect } from 'react-redux'
import { Timeline, Alert } from 'antd'
const Item = Timeline.Item
@connect(state => ({
stage: state.config.stage,
news: state.config.news,
timeline: state.config.timeline
}))
class Events extends React.Component {
render (
{ news... | JavaScript | app/views/FrontPage/Events/Events.js | RcKeller/STF-Refresh | apache-2.0 | 1,128 | 44 | codeparrot/github-code |
600156f0c72af7c57d9fec188f0a6eb42e5cd255faabd2d06d8841e1fcfe95f2 | //
// Datum - renderer
//
//
// Copyright (c) 2015 Peter Niekamp
//
#pragma once
#include "datum.h"
#include "datum/math.h"
#include "datum/asset.h"
#include "camera.h"
#include "vulkan.h"
#include "resourcepool.h"
#include "skybox.h"
#include "envmap.h"
#include "spotmap.h"
#include "colorlut.h"
#include "material.... | C | src/renderer/renderer.h | pniekamp/datum | apache-2.0 | 12,495 | 540 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.