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 |
|---|---|---|---|---|---|---|---|---|
9cec9110986ab044d41ff502d5f365d12b7452ba50ee54b5d3bee96dd50a63ef | import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import { get } from '@ember/object';
export default Route.extend({
access: service(),
catalog: service(),
scope: service(),
beforeModel() {
this._super(...arguments);
return get(this, 'catalog').fetchUnSc... | JavaScript | lib/global-admin/addon/multi-cluster-apps/catalog/route.js | lvuch/ui | apache-2.0 | 1,345 | 59 | codeparrot/github-code |
717886b00bc40aed4e33f9ff0a25fcb472de39186d385eeef06a1ed522ca45d1 | package AbsSytree;
import java.util.ArrayList;
public class SynExprSeq extends AbsSynNode {
public ArrayList<AbsSynNode> exprs;
public SynExprSeq(AbsSynNode e) {
this.exprs = new ArrayList<AbsSynNode>();
this.exprs.add(e);
}
public SynExprSeq append(AbsSynNode e) {
this.exprs.add(e);
retur... | Java | src/AbsSytree/SynExprSeq.java | mingyuan-xia/TigerCC | apache-2.0 | 767 | 39 | codeparrot/github-code |
5bf37632327924c6fc83c5d23391e08274fc027f6e822b038355401bf0b439e1 | /**
* Copyright 2017 Matthieu Jimenez. All rights reserved.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless req... | Java | src/main/java/paw/graph/customTypes/bitset/CTBitset.java | greycat-incubator/Paw | apache-2.0 | 1,522 | 55 | codeparrot/github-code |
3b9ef07a1281c745f1bbb1a62d6bf813b1a1177f2b0ddaea7629c964ff38d50a | /*
* Copyright (c) 2015 PLUMgrid, 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 ... | C++ | src/cc/bcc_common.cc | iovisor/bcc | apache-2.0 | 8,190 | 263 | codeparrot/github-code |
491f7e538988ae02c5adc63c4545937399c9a5661726f4321e9bdf0a5fa26cdd | <!DOCTYPE html>
<html lang="en" ng-app="querypro">
<head>
<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="description" content="">
<meta name="author" content="Jesse Cascio">
<title>S... | HTML | src/public/examples/d3-test.html | jessecascio/querypro | apache-2.0 | 8,255 | 197 | codeparrot/github-code |
433a4a2e9a22e6702b9ee043b61cf2eda9aa39aca3d9a80ac3997ee61ff93707 | /**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java | core/azure-core/src/main/java/com/microsoft/windowsazure/core/pipeline/Base64StringAdapter.java | southworkscom/azure-sdk-for-java | apache-2.0 | 1,133 | 36 | codeparrot/github-code |
5d7f153fd54ae1146e4d0096ee41b3025705df2d7324a4b459dcdf994e6844c8 | /**
* Copyright 2016 William Van Woensel
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 | MobiBenchWebService/src/main/java/wvw/utils/rule/builder/RuleBuilder.java | darth-willy/mobibench | apache-2.0 | 1,192 | 51 | codeparrot/github-code |
55060d5e9be791fabe5aa303b37c4fa36f93957ab63a2cc99c7910f890d679e8 | using System;
using System.IO;
using System.Text;
namespace NuGet
{
public static class StreamExtensions
{
public static byte[] ReadAllBytes(this Stream stream)
{
var memoryStream = stream as MemoryStream;
if (memoryStream != null)
{
... | C# | src/Core/Extensions/StreamExtensions.cs | xero-github/Nuget | apache-2.0 | 1,831 | 66 | codeparrot/github-code |
835741e3cce640194ecff91b51d75262e587b568808555179cc4a254db495df7 | /*
* Copyright 2013, Unitils.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 or... | Java | unitils-test/src/test/java/org/unitils/core/reflect/TypeWrapperIsAssignableParameterizedTypeTest.java | Silvermedia/unitils | apache-2.0 | 4,075 | 126 | codeparrot/github-code |
4c2fde978a8b1656ef77375e61db029368ce6d8b0075b832846d6c7072ab4004 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'litleleprikon'
from random import randint
FIGURES = ['камень', 'бумага', 'ножницы']
FIG_LEN = len(FIGURES)
class Player:
"""
Player class is needed to store tactics and to generate figures by this tactic
-- Doctests --
>>> player = Play... | Python | problem_2_rock_paper_scissor/player.py | litleleprikon/innopolis_test_task | apache-2.0 | 822 | 35 | codeparrot/github-code |
f73de8e679064b6b5e6ce88264d4362a7182745da41dbcb9969edfd199caf6da | /*
Copyright 2015 Crunchy Data Solutions, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | GO | adminapi/containermgmt.go | CrunchyData/crunchy-postgresql-manager | apache-2.0 | 18,288 | 696 | codeparrot/github-code |
38bd6f82db782282dc7e77db40c0068974af1dbeae68b3a05ff612ec50f3f257 | /*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | C | include/itkStructureTensorImageFilter.h | InsightSoftwareConsortium/ITKAnisotropicDiffusionLBR | apache-2.0 | 4,847 | 159 | codeparrot/github-code |
69cde93334e0a673e7f6956edb712cc7992123641b8952cd821d8e95dccc05bc | <?php
final class DifferentialLandingActionMenuEventListener
extends PhabricatorEventListener {
public function register() {
$this->listen(PhabricatorEventType::TYPE_UI_DIDRENDERACTIONS);
}
public function handleEvent(PhutilEvent $event) {
switch ($event->getType()) {
case PhabricatorEventType:... | PHP | src/applications/differential/landing/DifferentialLandingActionMenuEventListener.php | yangming85/phabricator | apache-2.0 | 1,348 | 55 | codeparrot/github-code |
69634782389153750231ff1e818fda3a6082638c8bca678ea3a5243606928f64 | /*
* 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 | core/src/main/java/org/elasticsearch/cluster/routing/RoutingNodes.java | mapr/elasticsearch | apache-2.0 | 37,917 | 1,023 | codeparrot/github-code |
8868f10b2a2246abb53a4f81df7e501abea8b23a49bc082874bd35f1aa9534f0 |
{-# LANGUAGE OverloadedStrings #-}
module Mdb.Status ( doStatus ) where
import Control.Monad ( when )
import Control.Monad.Catch (MonadMask)
import Control.Monad.IO.Class ( MonadIO, liftIO )
import Control.Monad.Logger ( logWarnN, logDebugN, logInfoN )
import Control... | Haskell | src/lib/Mdb/Status.hs | waldheinz/mdb | apache-2.0 | 1,802 | 47 | codeparrot/github-code |
f82f7e94aeb10dc30338e61743d2369e79238ce27bc6c5902bff46674fa6d632 | /*
* Copyright 2017 Yahoo Holdings, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Java | servers/zms/src/main/java/com/yahoo/athenz/zms/QuotaChecker.java | gurleen-gks/athenz | apache-2.0 | 12,013 | 319 | codeparrot/github-code |
c1cf8d5c4f13a0ef3e03c7e505b467e3a4d58441b588985087bd1bd5f1876df0 | #!/usr/bin/env python
# Copyright JS Foundation and other contributors, http://js.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.... | Python | tools/run-tests.py | yichoi/jerryscript | apache-2.0 | 16,290 | 438 | codeparrot/github-code |
6ee3f7b45e73203ca9ad143b5e6e7140074c9a16e6c6057cd0c408d16821d6fa | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | Java | android/libcore/luni/src/main/java/java/nio/ByteBufferAsCharBuffer.java | indashnet/InDashNet.Open.UN2000 | apache-2.0 | 5,714 | 187 | codeparrot/github-code |
f572ccc8292035db9b45b9020a3ea8422e62c20b40e70639894f011467e2366c | import math
def isPrime(num):
if num < 2:
return False # 0, 1不是质数
# num为100时, 它是不可能有因子是大于50的. 比如说60 * ? = 100, 这是不可能的, 所以这里只要比较sqrt(), 平方根
boundary = int(math.sqrt(num)) + 1
for i in range(2, boundary):
if num % i == 0:
return False
return True
def primeSieve(size):... | Python | Python101/src/math/PrimeSieve.py | songzhw/Hello-kotlin | apache-2.0 | 1,135 | 44 | codeparrot/github-code |
436baf9fbdb7a09dd69b790a5ed0b82d65df376f2a7e7c667b60178e4d0af227 | import Ember from 'ember';
const DELAY = 100;
export default Ember.Component.extend({
classNameBindings : ['inlineBlock:inline-block','clip:clip'],
tooltipService : Ember.inject.service('tooltip'),
inlineBlock : true,
clip : false,
model : null,
size : 'default',
... | JavaScript | app/components/tooltip-element/component.js | nrvale0/ui | apache-2.0 | 2,144 | 84 | codeparrot/github-code |
c5998eee0515d97213ce6b9042d066138a24141d0c7d6d766ff4d118d08ed463 | package com.altas.preferencevobjectfile.model;
import java.io.Serializable;
/**
* @author Altas
* @email Altas.TuTu@gmail.com
* @date 2014年9月27日
*/
public class UserInfo implements Serializable {
/**
*
*/
private static final long serialVersionUID = 8558071977129572083L;
public int id;
public String tok... | Java | PreferenceVObjectFile/src/com/altas/preferencevobjectfile/model/UserInfo.java | mdreza/PreferenceVObjectFile | apache-2.0 | 657 | 34 | codeparrot/github-code |
a58fb81851448e6e17ab440d1d38880f09d986bca576d211237b9e6d653536e0 | # -*- encoding: utf-8 -*-
#
# 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... | Python | aodhclient/utils.py | chungg/python-aodhclient | apache-2.0 | 4,160 | 128 | codeparrot/github-code |
ae4b3120c34681412ba24149055051b3fe142f2268e6d9b667652b12e53ef0ac | /* Copyright 2017 Braden Farmer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java | app/src/main/java/com/farmerbb/secondscreen/service/DisableKeyboardService.java | farmerbb/SecondScreen | apache-2.0 | 4,734 | 114 | codeparrot/github-code |
457ac8468d20a1e858ecc5a82a2caa5cd9f8d3d2c46c03ae2f6c1d5558516daf | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using AutoMapper;
using Art.Domain;
namespace Art.Rest.v1
{
// Generated 07/20/2013 16:40:13
// Change code for each method
public class UsersController : BaseApiCont... | C# | NetPatternDesign/Spark/Art.Rest.v1/Controllers/UsersController.cs | Kiandr/MS | apache-2.0 | 1,090 | 60 | codeparrot/github-code |
3b8ff2b818b475e35a761a247d6a8cf314ed762675ca864ff4c1a5b3b43f7ee5 | # Copyright 2013 - Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | Python | solum/objects/sqlalchemy/__init__.py | shakamunyi/solum | apache-2.0 | 1,920 | 43 | codeparrot/github-code |
3cd9ba4859136e2c2474955eb2a326d2612db1966deca1b3594752f2ffd43ef5 | /**
* Copyright (c) 2005-2012 https://github.com/zhuruiboqq
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.sishuok.es.common.entity.search.filter;
import com.sishuok.es.common.entity.search.SearchOperator;
import com.sishuok.es.common.entity.search.exception.InvlidSearchOperator... | Java | common/src/main/java/com/sishuok/es/common/entity/search/filter/Condition.java | zhuruiboqq/romantic-factor_baseOnES | apache-2.0 | 4,972 | 197 | codeparrot/github-code |
878fb4fb666cff1f0a980799120abc011546162c371525e4525cc60fb1946110 | /*************************************************************************
* Copyright (c) 2016, Gooeen. 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.a... | C | openvxpp/default_constructor.h | Gooeen/openvxpp | apache-2.0 | 1,457 | 42 | codeparrot/github-code |
a9b4be8299567f3f1d0d7b4bd3000ae7850135affb93ec626cf5ffeeb5a101da | package io.skysail.server.queryfilter.nodes.test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.junit.Ignore;
import org.junit.Test;
import io.skysail.domain.E... | Java | skysail.server.queryfilter/test/io/skysail/server/queryfilter/nodes/test/LessNodeTest.java | evandor/skysail | apache-2.0 | 4,873 | 152 | codeparrot/github-code |
3d3ff93acfd5b8bf0da1ad9dc414b3aa400ce5d9bb62738dfa230f7dee75fc44 | import ch.usi.overseer.OverAgent;
import ch.usi.overseer.OverHpc;
/**
* Overseer.OverAgent sample application.
* This example shows a basic usage of the OverAgent java agent to keep track of all the threads created
* by the JVM. Threads include garbage collectors, finalizers, etc. In order to use OverAgent, make su... | Java | examples/java_agent.java | IvanMamontov/overseer | apache-2.0 | 2,131 | 81 | codeparrot/github-code |
0ee250cdf77af295af6e238d944b7e519ff9e1ed74cc587524c50556607e350e | package mat.model;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* The Class SecurityRole.
*/
public class SecurityRole implements IsSerializable {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
/** The Constant ADMIN_ROLE. */
public static final String A... | Java | mat/src/mat/model/SecurityRole.java | JaLandry/MeasureAuthoringTool_LatestSprint | apache-2.0 | 1,430 | 77 | codeparrot/github-code |
912076caf407a97fb343f24df678460125ee473b92acc31c5ae945e6e63bb806 | package com.gaojun.appmarket.ui.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import com.gaojun.appmarket.R;
/**
* Created by Administrator on 2016/6/29.
*/
public class RationLayout extends FrameLayout {
privat... | Java | market/src/main/java/com/gaojun/appmarket/ui/view/RationLayout.java | GaoJunLoveHL/AppMaker | apache-2.0 | 1,962 | 65 | codeparrot/github-code |
548dc89aadf76c12ecb8c9f7f6649c8331a6f828d87e46b9999ff32c202560e4 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<t... | HTML | docs/new-pandas-doc/generated/pandas.Series.memory_usage.html | datapythonista/datapythonista.github.io | apache-2.0 | 21,854 | 316 | codeparrot/github-code |
a9cf06668d17921decbe696d171e763cdb29fe7ade2466b57ad70e976c0c4fde | /*
* 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/DiskMap.java | aws/aws-sdk-java | apache-2.0 | 6,034 | 190 | codeparrot/github-code |
16b8558d70dd889d8d5e497bebb5205eb3ce24daf96df4b244300ece55fbef4f | /*
* Copyright 2011-2014 Zhaotian Wang <zhaotianzju@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | Java | src/flex/android/magiccube/MagicCubeRender.java | flexwang/HappyRubik | apache-2.0 | 40,343 | 1,568 | codeparrot/github-code |
03249eefcd86b1447314fcc98d26c5985f74f81f9876c6ec79b64ffa9275f85f | package sagex.phoenix.remote.services;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import javax.script.Invocable;
import javax.script.ScriptException;
import sagex.phoenix.util.PhoenixScriptEngine;
public class JSMethodInvocationHandle... | Java | src/main/java/sagex/phoenix/remote/services/JSMethodInvocationHandler.java | stuckless/sagetv-phoenix-core | apache-2.0 | 1,998 | 54 | codeparrot/github-code |
736ccf9bfe050f1b9a1e650066859156b499e81f6962c23f2a0a09525da035ef | package io.izenecloud.larser.framework;
import io.izenecloud.conf.Configuration;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.kohsuke.args4j.CmdLine... | Java | src/main/java/io/izenecloud/larser/framework/LaserArgument.java | izenecloud/laser | apache-2.0 | 1,698 | 56 | codeparrot/github-code |
0a9f38503b8b5411cd3d14f3f5bdaef26383e1de61148896884f55358fa454bd | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Number</title>
<link rel="r... | HTML | cy/feat/Number.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 8,907 | 254 | codeparrot/github-code |
2ab599cae646319c0ce28826ba4cd29c4233ea6135dc1087124b60493d6bdebb | package com.nagopy.android.disablemanager2;
import android.os.Build;
import com.android.uiautomator.core.UiSelector;
@SuppressWarnings("unused")
public class UiSelectorBuilder {
private UiSelector uiSelector;
public UiSelector build() {
return uiSelector;
}
/**
* @since API Level 16
... | Java | uiautomator/src/main/java/com/nagopy/android/disablemanager2/UiSelectorBuilder.java | 75py/DisableManager | apache-2.0 | 6,177 | 264 | codeparrot/github-code |
5478486732d29662cc47094a1ff8c9dadaa59b33dc651f13da7c697986f047b0 | package com.salesmanager.shop.model.entity;
import java.io.Serializable;
public abstract class ReadableList implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private int totalPages;//totalPages
private int number;//number of record in current page
private long recordsTota... | Java | sm-shop-model/src/main/java/com/salesmanager/shop/model/entity/ReadableList.java | shopizer-ecommerce/shopizer | apache-2.0 | 950 | 48 | codeparrot/github-code |
f4bfb73df3fe54f722a05bbe69905a367dbae0bba0a170b2efe5a7566336993a | /*
* @(#)file SASLOutputStream.java
* @(#)author Sun Microsystems, Inc.
* @(#)version 1.10
* @(#)lastedit 07/03/08
* @(#)build @BUILD_TAG_PLACEHOLDER@
*
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
*
* The c... | Java | src/main/java/com/sun/jmx/remote/opt/security/SASLOutputStream.java | nickman/heliosutils | apache-2.0 | 5,384 | 174 | codeparrot/github-code |
8aaff72688cfeb5de8677dfe5320acf9d31e02ec5118f671bf070b1273899098 | package blended.itestsupport.condition
import akka.testkit.{TestActorRef, TestProbe}
import blended.itestsupport.condition.ConditionActor.CheckCondition
import blended.itestsupport.condition.ConditionActor.ConditionCheckResult
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
impo... | Scala | blended.itestsupport/src/test/scala/blended/itestsupport/condition/ParallelCheckerSpec.scala | woq-blended/blended | apache-2.0 | 2,881 | 83 | codeparrot/github-code |
cac40caf2dbadf2383ad83e1b0b6a6edd36dd2eafa25dcb733e4f571db09f0aa | // JavaScript Document
var flag1=true;
var flag2=true;
$(function () {
/*********************/
$.ajax({
type : 'POST',
dataType : 'json',
url : 'baseNeiName.do',
async : true,
cache : false,
error : function(request) {
bootbox.alert({
message : "请求异常",
size : 's... | JavaScript | 后台页面/WebRoot/js/myNeed/Repairpply.js | pange123/PB_Management | apache-2.0 | 3,262 | 151 | codeparrot/github-code |
9cea6b93bab658ae5c73bd09fd657c2c7218ac555aa276902ec0736c8685e45f | /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Copyright (c) 1999-2007 IVT Corporation
*
* All rights reserved.
*
---------------------------------------------------------------------------*/
/////////////////////////////////////////////////////////////////////////////
// Module Na... | C | examples/RemoteBrowser/BlueSoleil_SDK_2.0.5/include/Btsdk_Stru.h | favoritas37/QBluetoothZero | apache-2.0 | 13,230 | 323 | codeparrot/github-code |
fa4fd332f221202d35bab1b99343dc603277271220c81724661d1c0b910e2e35 | /*
* Copyright 2019 The Project Oak 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 o... | JavaScript | chrome_extension/background.js | project-oak/oak | apache-2.0 | 2,181 | 68 | codeparrot/github-code |
7ed3458f473035c741b5cb0634ece5e527643f3e8d4527eee458f520ea71a101 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright 2014 Thomas Barnekow (cloning, Flat OPC (with Eric White))
using System;
using System.Diagnostics;
using System.Collection... | C# | DocumentFormat.OpenXml/src/Framework/OpenXmlPackage.cs | tarunchopra/Open-XML-SDK | apache-2.0 | 95,905 | 2,381 | codeparrot/github-code |
c7eb7d8acb4c38bc2185cb6b2ecb0bed55af2ecd0797c93f878830fd969cde35 | /**************************************************************************
* Mask.java is part of Touch4j 4.0. Copyright 2012 Emitrom LLC
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License a... | Java | src/com/emitrom/touch4j/client/ui/Mask.java | paulvi/touch4j | apache-2.0 | 2,495 | 78 | codeparrot/github-code |
4dc999ee1d4bc18a1c247515a4b3f827c354ff9f4cf4874571f428235eda3db6 | // lightbox_plus.js
// == written by Takuya Otani <takuya.otani@gmail.com> ===
// == Copyright (C) 2006 SimpleBoxes/SerendipityNZ Ltd. ==
/*
Copyright (C) 2006 Takuya Otani/SimpleBoxes - http://serennz.cool.ne.jp/sb/
Copyright (C) 2006 SerendipityNZ - http://serennz.cool.ne.jp/snz/
This script is licensed under th... | JavaScript | site/lightbox/lightbox_plus.js | yusuke/samurai | apache-2.0 | 29,978 | 796 | codeparrot/github-code |
fafb5673c550f555a5be717a872fb4ad50ead7c10c923712e6460dde44174a84 | /*
* Copyright 2017-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | src/com/facebook/buck/util/trace/uploader/launcher/UploaderLauncher.java | LegNeato/buck | apache-2.0 | 2,379 | 76 | codeparrot/github-code |
a65e99441516d61705da873e0fd3355bad5087242ff3c9070a50130b9b2fc6d6 | /*
* Copyright 2013, Google Inc.
* 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 conditio... | Java | app/src/main/java/org/jf/dexlib2/builder/BuilderSwitchPayload.java | nao20010128nao/show-java | apache-2.0 | 2,310 | 62 | codeparrot/github-code |
39e012cd39dc14d787f06aa5a1ebd73e805a37c33e3653abc1a718d9b50cd18e | package nodeAST.relational;
import java.util.Map;
import nodeAST.BinaryExpr;
import nodeAST.Expression;
import nodeAST.Ident;
import nodeAST.literals.Literal;
import types.BoolType;
import types.Type;
import visitor.ASTVisitor;
import visitor.IdentifiersTypeMatcher;
public class NEq extends BinaryEx... | Java | GeorgePachitariu/ANTLR-First/src/nodeAST/relational/NEq.java | software-engineering-amsterdam/poly-ql | apache-2.0 | 1,336 | 52 | codeparrot/github-code |
b23284d92f72c850a180306fc31a868ed212ed203e8828cde72ee117796dff6d | package edu.ptu.javatest._60_dsa;
import org.junit.Test;
import java.util.TreeMap;
import static edu.ptu.javatest._20_ooad._50_dynamic._00_ReflectionTest.getRefFieldBool;
import static edu.ptu.javatest._20_ooad._50_dynamic._00_ReflectionTest.getRefFieldObj;
public class _35_TreeMapTest {
@Test
public void t... | Java | JavaTest/src/main/java/edu/ptu/javatest/_60_dsa/_35_TreeMapTest.java | rickgit/Test | apache-2.0 | 4,068 | 110 | codeparrot/github-code |
76d28ad59c82b29e2c9814b441fd46ca5d527a78569c0bb53cf4fe28b4b13f0c | package pokemon.vue;
import pokemon.launcher.PokemonCore;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBat... | Java | Pokemon-core/src/main/java/pokemon/vue/MyActor.java | yongaro/Pokemon | apache-2.0 | 2,197 | 63 | codeparrot/github-code |
c9fe7680b0b5a818262a5b667177048a6ce72775c211c11e0daa3158fb5121ff | # Cookbook Name:: postgresql
# Attributes:: postgresql
#
# 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... | Ruby | attributes/default.rb | pronix/postgresql | apache-2.0 | 30,398 | 643 | codeparrot/github-code |
c232df5b8f2a9bdfdb967df3c67cd342f515be79f365c0a655e150de4f05c167 | <?php
/* TwigBundle:Exception:exception.rdf.twig */
class __TwigTemplate_70e8b249c1428c255435d8a44ef7c09891fdf8c23551b886c441d0a716433b6a extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = arra... | PHP | Symfony/var/cache/dev/twig/43/43468dad29714cf35fffa471cafcb8fedae808ea624963fc40a0b533af7edd3e.php | messaoudiDEV/citypocketBackoffice | apache-2.0 | 2,965 | 63 | codeparrot/github-code |
06dcbbd266196f8394b3e506824733bab2b14ebb058cf8db9552bd9f54a74ed7 | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>ObjFormatType - com.ligadata.olep.metadata.ObjFormatType</title>
<meta name="description" content="ObjFormatType - com.ligadata.olep.m... | HTML | trunk/Documentation/KamanjaAPIDocs/com/ligadata/olep/metadata/ObjFormatType$.html | traytonwhite/Kamanja | apache-2.0 | 39,558 | 703 | codeparrot/github-code |
8def2d8af7eeb639b193f2563a38d9c7fdf287ca307b979e607ebfc5528a1e53 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// 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... | C | arangod/Scheduler/JobGuard.h | joerg84/arangodb | apache-2.0 | 2,425 | 102 | codeparrot/github-code |
697fd44e7e80637ba929d912fc1dc69a9d86a2bc5dcec09f66d63b9b9c46f1e9 | package org.ns.vk.cachegrabber.ui;
import java.awt.event.ActionEvent;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.AbstractAction;
import org.ns.func.Callback;
import org.ns.ioc.IoC;
import org.ns.vk.cachegrabber.api.Application;
import org.ns.vk.cachegrabber.api.vk.Audio;
import... | Java | src/main/java/org/ns/vk/cachegrabber/ui/TestAction.java | nikolaas/vk-cache-grabber | apache-2.0 | 994 | 40 | codeparrot/github-code |
005bbfd9320b7b02a2a49c885bbc091f37ec493168541b4ab328aed80ca9b965 | package com.mapswithme.maps.maplayer.traffic;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import com.mapswithme.util.log.Logger;
import com.mapswithme.util.log.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
@MainThread
public enum TrafficManager
{
INSTANCE;
priv... | Java | android/src/com/mapswithme/maps/maplayer/traffic/TrafficManager.java | rokuz/omim | apache-2.0 | 3,514 | 152 | codeparrot/github-code |
60c6b38251d0fc8554a37c7e0af74d2f6d772a97044bcccc47e91e96bb093eb7 | package brennus.asm;
import static brennus.model.ExistingType.VOID;
import static brennus.model.ExistingType.existing;
import static brennus.model.Protection.PUBLIC;
import static junit.framework.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List... | Java | brennus-asm/src/test/java/brennus/asm/TestGoto.java | julienledem/brennus | apache-2.0 | 4,143 | 145 | codeparrot/github-code |
0552eb794c63d92fe7b4416ece9b7b10190706e553f99ef314a8c9cf0e7cc4fd | /*-
* #%L
* Simmetrics - Examples
* %%
* Copyright (C) 2014 - 2021 Simmetrics 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/LIC... | Java | simmetrics-example/src/main/java/com/github/mpkorstanje/simmetrics/example/StringDistanceExample.java | mpkorstanje/simmetrics | apache-2.0 | 2,695 | 86 | codeparrot/github-code |
953a6f9ef5314be8c5abafed733f544b7ac46f64a1e44896c65c509562ed56b2 | /**
* 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 ap... | Java | library/src/main/java/de/hdodenhof/androidstatemachine/StateMachine.java | hdodenhof/AndroidStateMachine | apache-2.0 | 68,024 | 2,023 | codeparrot/github-code |
129f032d1132e270dc9181be2964626018970fd70173c6c44ee66cd5572c9d75 | /*
* Copyright 2015-2020 Noel Welsh
*
* 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... | Scala | java2d/src/main/scala/doodle/java2d/effect/Canvas.scala | underscoreio/doodle | apache-2.0 | 3,467 | 120 | codeparrot/github-code |
043a04faa8ebc4ee41b91588e917539a3445eec2f7c63715be9738bfec3ba3cd | /////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009-2011 Alan Wright. All rights reserved.
// Distributable under the terms of either the Apache License (Version 2.0)
// or the GNU Lesser General Public License.
////////////////////////////////////////////////////////////... | C++ | src/test/util/LuceneTestFixture.cpp | ustramooner/LucenePlusPlus | apache-2.0 | 1,080 | 31 | codeparrot/github-code |
b7ac66fca48cd8f73e307c9f4f4dac4128de65aba2680b63db6014f8471c470f | macimport os
import subprocess
name = "gobuildmaster"
current_hash = ""
for line in os.popen("md5sum " + name).readlines():
current_hash = line.split(' ')[0]
# Move the old version over
for line in os.popen('cp ' + name + ' old' + name).readlines():
print line.strip()
# Rebuild
for line in os.popen('go ... | Python | BuildAndRun.py | brotherlogic/gobuildmaster | apache-2.0 | 1,102 | 41 | codeparrot/github-code |
53b15bb8d432c5a52f8a9ee00f0bc61a744e598855e34b3858152bfda797d3aa | package org.apache.lucene.facet.sampling;
import java.io.IOException;
import java.util.Collections;
import org.apache.lucene.document.Document;
import org.apache.lucene.facet.FacetTestCase;
import org.apache.lucene.facet.index.FacetFields;
import org.apache.lucene.facet.params.FacetIndexingParams;
import org.apache.l... | Java | solr-4.2.1/lucene/facet/src/test/org/apache/lucene/facet/sampling/OversampleWithDepthTest.java | pkarmstr/NYBC | apache-2.0 | 5,565 | 129 | codeparrot/github-code |
c2ce8b12683680b2bf3ab11c9cf105378ed33108b41fc65c0440226173bc7150 | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | Python | tempest/services/compute/json/images_client.py | yamt/tempest | apache-2.0 | 5,741 | 143 | codeparrot/github-code |
0c166548eeb4c648b6d0f4a375e1fe6e710b38c5a48933afbf0390ada9d34529 | using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Maticsoft.DBUtility;//ÇëÏÈÌí¼ÓÒýÓÃ
namespace TSM.DAL
{
/// <summary>
/// Êý¾Ý·ÃÎÊÀàCK_People¡£
/// </summary>
public class CK_People
{
public CK_People()
{}
#region ³ÉÔ±·½·¨
/// <summary>
/// µÃµ½×î´... | C# | DAL/CK_People.cs | kamiba/FineUIDemo | apache-2.0 | 6,177 | 208 | codeparrot/github-code |
fdbfcab0ee6204b79ab943bbfd235675ee70c359d710902f4654728a73ceabf5 | // Copyright 2016 Benjamin Glatzel
//
// 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... | C | IntrinsicEd/src/IntrinsicEdPropertyEditorString.h | codedreality/Intrinsic | apache-2.0 | 1,451 | 47 | codeparrot/github-code |
fb6d6a14138d988020ebb522020aa7a6dcb6ab13b1237e72db6a0744b37b8a6d | /*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use t... | Java | jsprit-core/src/main/java/com/graphhopper/jsprit/core/util/SolutionVerifier.java | balage1551/jsprit | apache-2.0 | 2,020 | 50 | codeparrot/github-code |
997e9bf833798cdc10cb1d1750e430ed24a275627b5719f4c00965756faf2eb0 | package jp.ac.keio.bio.fun.xitosbml.image;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import ij.ImagePlus;
import ij.ImageStack;
import ij.process.ByteProcessor;
/**
* The class Filler, which provides several morphological ... | Java | src/main/java/jp/ac/keio/bio/fun/xitosbml/image/Filler.java | spatialsimulator/XitoSBML | apache-2.0 | 14,320 | 461 | codeparrot/github-code |
168514c8a9c3da8e125017caa5b8d316f7c6ec4d00e48189fde52ff4c1425b72 | # require './lib/class_extensions'
# require './lib/mylogger'
# DEV Only requries above.
require './lib/code_detector'
require './lib/dsl/style_dsl'
require './lib/dsl/selector_dsl'
require './lib/tag_helper'
require './lib/html/html_class_finder'
require './lib/html/style_list'
require './lib/highlighter/highlighters... | Ruby | anki_card_maker/lib/html/style_generator.rb | roycetech/Anki-Tools | apache-2.0 | 4,672 | 179 | codeparrot/github-code |
17ce637e5b452648303b51ba4bf876f805ff8513be18020bbf9281b572c3684a | """A client for the REST API of imeji instances."""
import logging
from collections import OrderedDict
import requests
from six import string_types
from pyimeji import resource
from pyimeji.config import Config
log = logging.getLogger(__name__)
class ImejiError(Exception):
def __init__(self, message, error):
... | Python | pyimeji/api.py | xrotwang/pyimeji | apache-2.0 | 4,739 | 131 | codeparrot/github-code |
826965f4613bff1903b5b88b66c53f8fa54d38b56325b4d230a541e38b95b47a | //
// $Id: RawFileTypes.h 10422 2017-02-02 19:51:54Z chambm $
//
//
// Original author: Darren Kessner <darren@proteowizard.org>
//
// Copyright 2008 Spielberg Family Center for Applied Proteomics
// Cedars-Sinai Medical Center, Los Angeles, California 90048
//
// Licensed under the Apache License, Version ... | C | pwiz/pwiz_aux/msrc/utility/vendor_api/thermo/RawFileTypes.h | biospi/mzmlb | apache-2.0 | 29,997 | 735 | codeparrot/github-code |
e712ee2c19509a2f4bcf149304498cfea845f171395c96603b9a9a9e9bb98413 | -- main.lua
-- Implements the plugin entrypoint (in this case the entire plugin)
-- Global variables:
local g_Plugin = nil
local g_PluginFolder = ""
local g_Stats = {}
local g_TrackedPages = {}
local function LoadAPIFiles(a_Folder, a_DstTable)
assert(type(a_Folder) == "string")
assert(type(a_DstTable) == ... | Lua | MCServer/Plugins/APIDump/main_APIDump.lua | jammet/MCServer | apache-2.0 | 50,162 | 1,665 | codeparrot/github-code |
49688fb5c20e7a50966467e771e7eca646ac5095f1df4700b50aca1f15ef06d6 | using MatrixApi.Domain;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Data.Json;
namespace MatrixPhone.DataModel
{
public static class UserDataSource
{
public static User user = new User();
... | C# | MatrixPhone/DataModel/UserDataSource.cs | jdehlin/MatrixApi | apache-2.0 | 1,201 | 48 | codeparrot/github-code |
20e25b946a9071c07896ee628d0ea5dc385330946b12cc3d6533cdfa54756b82 | // svgmap.js 0.2.0
//
// Copyright (c) 2014 jalal @ gnomedia
//
// 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... | JavaScript | js/svgmap.js | jalal/svgmap | apache-2.0 | 3,661 | 115 | codeparrot/github-code |
483175a560bb60c29c49f04eae9a909d2dcd92ad5ab58ebe0848dce0e24580b3 | package com.yezi.text.widget;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.SwitchCompat;
import android.view.View;
import android.widget.CompoundButton;
import com.yezi.text.activity.AdapterSampleActivity;
import com.yezi.te... | Java | text/app/src/main/java/com/yezi/text/widget/MyRecycleview.java | qwertyezi/Test | apache-2.0 | 1,720 | 49 | codeparrot/github-code |
df6202f9ef736264ab589d64c964cd8707d7a2f85f9cad3d39ab6d7df1c12849 | /*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java | Open/src/main/java/com/datalint/open/shared/xml/XMLParser.java | datalint/open | apache-2.0 | 3,302 | 113 | codeparrot/github-code |
1068f95ef3a53424a1f8fad479162638336fb40cff66683838f6e1f50b853a98 | /**
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under ... | Java | src/test/java/org/assertj/core/api/JUnitBDDSoftAssertionsSuccessTest.java | dorzey/assertj-core | apache-2.0 | 1,039 | 32 | codeparrot/github-code |
a43b0c707520534191ef0097a8b3a90c3e0468de6af507abeedbc450f2937f99 | (function () {
'use strict';
app.service('reportService', reportService);
function reportService($http, $window, $interval, timeAgo, restCall, queryService, dashboardFactory, ngAuthSettings, reportServiceUrl) {
var populateReport = function (report, url) {
function successCallback(response) {
if (r... | JavaScript | app/services/reportService.js | NerdCats/T-Rex | apache-2.0 | 3,588 | 107 | codeparrot/github-code |
ae2e710969db46dd92e0d7ce3660d13074a90aa646b83894f8953fd1d370e487 | /*******************************************************************************
* Copyright 2013-2015 alladin-IT GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... | Java | RMBTControlServer/src/at/alladin/rmbt/controlServer/ServerResource.java | alladin-IT/open-rmbt | apache-2.0 | 7,059 | 213 | codeparrot/github-code |
3f18d950ca2e5ff2d415e42086f508c3c0376e7ef51a0411b33a73dd6f8fa352 | package io.github.marktony.reader.qsbk;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.... | Java | app/src/main/java/io/github/marktony/reader/qsbk/QsbkFragment.java | HeJianF/iReader | apache-2.0 | 5,430 | 176 | codeparrot/github-code |
b9721c61b7155ac02cbd340d1f9aa4997d109271836fce03d3d9af28acfb136e | package org.gradle.test.performance.mediummonolithicjavaproject.p428;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test8570 {
Production8570 objectUnderTest = new Production8570();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | Java | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p428/Test8570.java | oehme/analysing-gradle-performance | apache-2.0 | 2,111 | 79 | codeparrot/github-code |
92ddf434e7419001caf3049ed69bd8d15e263692b7162a9fb077d9315c5a8c0b | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | Java | geode-core/src/main/java/org/apache/geode/management/internal/BaseManagementService.java | davebarnes97/geode | apache-2.0 | 5,962 | 175 | codeparrot/github-code |
c96f20a2610b40acbe7fe42cd136cf9344246bb76216e182712523a10aaa4743 | package com.melvin.share.ui.activity;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.text.TextUtils;
import android.view.View;
import android.widget.LinearLayout;
import com.bumptech.glide.Glide;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.goo... | Java | NewShare/app/src/main/java/com/melvin/share/ui/activity/OderEvaluateActivity.java | MelvinWang/NewShare | apache-2.0 | 4,348 | 125 | codeparrot/github-code |
a89baca1f42b7bc8677285bd67cbd7d85e89723d47a6f0cf5af1a58532fe1414 | // (C) Copyright 2015 Martin Dougiamas
//
// 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... | TypeScript | src/addon/messages/components/discussions/discussions.ts | jleyva/moodlemobile2 | apache-2.0 | 9,547 | 251 | codeparrot/github-code |
af5822af7fb527064d53acfaeb54bedff58163655c701697c85ed646a54c2e16 | package clockworktest.water;
import com.clockwork.app.SimpleApplication;
import com.clockwork.audio.AudioNode;
import com.clockwork.audio.LowPassFilter;
import com.clockwork.effect.ParticleEmitter;
import com.clockwork.effect.ParticleMesh;
import com.clockwork.input.KeyInput;
import com.clockwork.input.controls.Action... | Java | branches/3.0/engine/src/test/clockworktest/water/TestPostWater.java | PlanetWaves/clockworkengine | apache-2.0 | 12,539 | 313 | codeparrot/github-code |
8719a0b8fc6724e48b01f9bc46293c67a5ebfbbee14020b077b4268c8452c8ab | package com.hcentive.webservice.soap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ws.server.endpoint.annotation.Endpoint;
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
import org.springframework.ws.server.endpoint.annotation.RequestPayload;
import ... | Java | src/main/java/com/hcentive/webservice/soap/FormEndpoint.java | mebinjacob/spring-boot-soap | apache-2.0 | 1,458 | 46 | codeparrot/github-code |
a63517935eda803a40ba8f861cda2d6a4199665cb35da05ddcc4d6aedc2a1ade | /*
* Copyright 2015 Luca Capra <luca.capra@gmail.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Java | src/main/java/org/createnet/compose/data/GeoPointRecord.java | muka/compose-java-client | apache-2.0 | 2,062 | 84 | codeparrot/github-code |
1d9771a88207be9d8bce339204a2ccc3c7c3fa4b2bf8229fb7e8dcc7b788d61c | /*
* Copyright 2012-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | test/com/facebook/buck/ide/intellij/ProjectIntegrationTest.java | clonetwin26/buck | apache-2.0 | 16,432 | 474 | codeparrot/github-code |
d7c6baba18ee5f50d552d1bedeecb209977ff1e439c98e3aafe8d7a543eb2917 | /*
* Copyright 2016 John Grosh <john.a.grosh@gmail.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | src/main/java/com/jagrosh/jmusicbot/commands/QueueCmd.java | Blankscar/NothingToSeeHere | apache-2.0 | 3,885 | 95 | codeparrot/github-code |
6449d7bca14e7c219b45bb8333cf91214b3c4f5b844a04410c48083e9013abba | import { Configuration } from "./configuration";
import { ConfigurationParser } from "./configuration-parser";
import { CustomReporterResult } from "./custom-reporter-result";
import { ExecutionDisplay } from "./execution-display";
import { ExecutionMetrics } from "./execution-metrics";
import CustomReporter = jasmine.... | TypeScript | src/html-spec-reporter.ts | nbuso/protractor-html-spec-reporter | apache-2.0 | 2,180 | 63 | codeparrot/github-code |
bd6a2685bc5f9920e7ad676c52bc8d307145fb5ff3b1a4c173481f2c353d5b3a | /*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/DeregisterEcsClusterResult.java | jentfoo/aws-sdk-java | apache-2.0 | 2,373 | 73 | codeparrot/github-code |
f40fc2c1ebd88a3c659ba224c7f9c833002a379e813ded8eedee9bd09be7cac1 | #! /usr/bin/python
import sys
import os
import json
import grpc
import time
import subprocess
from google.oauth2 import service_account
import google.oauth2.credentials
import google.auth.transport.requests
import google.auth.transport.grpc
from google.firestore.v1beta1 import firestore_pb2
from google.firestore.v1be... | Python | firestore/examples/end2end/src/Write.py | GoogleCloudPlatform/grpc-gcp-python | apache-2.0 | 2,967 | 83 | codeparrot/github-code |
cae342f49a0cbfeb42f90e8cd0552192068099d0252bc6c7a98f83106a81a948 | using Lucene.Net.Support;
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
using System.Threading;
namespace Lucene.Net.Util
{
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOT... | C# | src/Lucene.Net/Util/IOUtils.cs | laimis/lucenenet | apache-2.0 | 24,051 | 604 | codeparrot/github-code |
571ea3c71bc9dcfdc5287e78f98a9f2a758ad7deb3533cac7654296adceee577 | // /*******************************************************************************
// * Copyright 2012-2018 Esri
// *
// * 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# | src/Toolkit/Toolkit.Android/UI/Controls/LayerLegend/LayerLegend.Android.cs | Esri/arcgis-toolkit-dotnet | apache-2.0 | 5,337 | 140 | codeparrot/github-code |
31ef20b7819a8ee85d93f5028adfbe8dbb3041efb5fc89b07ce9067913af5f5e | package de.choesel.blechwiki.model;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import java.util.UUID;
/**
* Created by christian on 05.05.16.
*/
@DatabaseTable(tableName = "komponist")
public class Komponist {
@DatabaseField(generatedId = true)
private UUID i... | Java | app/src/main/java/de/choesel/blechwiki/model/Komponist.java | ChristianHoesel/android-blechwiki | apache-2.0 | 1,341 | 69 | codeparrot/github-code |
13351c4439d4405724b1762b32ebc49768f0004213d3d91faeb69cd149b9830e | package server
import (
"fmt"
"math/big"
"net/http"
"strconv"
"time"
"github.com/san-lab/banketh-quorum/banketh/bots"
"github.com/san-lab/banketh-quorum/banketh/cryptobank"
"github.com/san-lab/banketh-quorum/banketh/data"
"github.com/san-lab/banketh-quorum/lib/bank/banktypes"
"github.com/san-lab/banketh-quo... | GO | requires/san-lab/banketh-quorum/banketh/server/handleBackoffice.go | hesusruiz/fabricaudit | apache-2.0 | 11,104 | 386 | codeparrot/github-code |
3d4235867d1b8891832602c48eff5f30855528481e626c777f1c5ad401c739e3 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/first_run/first_run.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
#include... | C++ | src/chrome/browser/first_run/first_run_linux.cc | plxaye/chromium | apache-2.0 | 2,876 | 76 | codeparrot/github-code |
1838ce20609a0d91c412a3e23967e9f179547c546b2c85077add5cf7714dea67 | package request
import (
"bytes"
"encoding/json"
"io/ioutil"
)
// A Handlers provides a collection of handlers for various stages of handling requests.
type Handlers struct {
RequestHandler func(*Request, *interface{}) error
ResponseHandler func(*Request, *interface{}) error
}
// RequestHandler ... | GO | common/request/handlers.go | visit1985/atlasgo | apache-2.0 | 1,144 | 37 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.