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 |
|---|---|---|---|---|---|---|---|---|
1aace2e05ac8679fef3fa47722ce96b85bf7cd5819e7cfea511f2bc9e23aa6f1 | /*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | Java | xworker_swt/src/main/java/xworker/swt/statement/ITERATORCreator.java | x-meta/xworker | apache-2.0 | 3,383 | 87 | codeparrot/github-code |
f16f02fcfd9cbd6cefce8c11c11d37319346713077e34c5e273293bd96a67403 | package registry
import (
"encoding/json"
"errors"
"fmt"
"net"
consul "github.com/hashicorp/consul/api"
)
type consulRegistry struct {
Address string
Client *consul.Client
Options Options
}
func encodeEndpoints(en []*Endpoint) []string {
var tags []string
for _, e := range en {
if b, err := json.Marsha... | GO | registry/consul_registry.go | iheitlager/go-micro | apache-2.0 | 4,217 | 219 | codeparrot/github-code |
3373af641620204e0b86c9e24cc875b4467c9e5648aaaf8865aa2cb33835c276 | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <java/nio/charset/CharsetEncoder.hpp>
extern void unimplemented_(const char16_t* name);
java::nio::charset::CharsetEncoder::CharsetEncoder(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* ... | C++ | ext/stub/java/nio/charset/CharsetEncoder-stub.cpp | pebble2015/cpoi | apache-2.0 | 7,550 | 189 | codeparrot/github-code |
2b366581af786e4a7bdbcc836457404b018052ed3d1ea69833ac026b7221c62c | /*
* Copyright 2017-2018 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | src/main/java/com/mageddo/config/DatasourceConfiguration.java | mageddo/bookmark-notes | apache-2.0 | 2,886 | 111 | codeparrot/github-code |
7873a21e1c1420446e903ec466f0290d4693f0e37ebab55fbe518cfb3a851f88 | /*
* Copyright 2015 TheShark34
*
* 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 | src/main/java/fr/theshark34/feelcraft/FeelcraftTopBar.java | TheShark34/Feelcraft | apache-2.0 | 6,244 | 207 | codeparrot/github-code |
e708971a00425cb0a16cbf6956058547243fe398caddf31ecad09ff7e184b72b | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | tensorflow_model_optimization/python/core/api/quantization/keras/default_8bit/default_8bit_transforms/__init__.py | tensorflow/model-optimization | apache-2.0 | 2,949 | 34 | codeparrot/github-code |
3f728e1e9077aef63b3e902fd384ab8b10bec0013816a94616dd7cc7095f0f5a | package com.modinfodesigns.property;
import com.modinfodesigns.property.transform.json.JSONParserTransform;
import com.modinfodesigns.property.transform.string.StringTransform;
import com.modinfodesigns.property.transform.xml.XMLParserTransform;
import com.modinfodesigns.utils.DOMMethods;
import org.w3c.dom.... | Java | property/src/main/java/com/modinfodesigns/property/DataList.java | detnavillus/modular-informatic-designs | apache-2.0 | 11,623 | 424 | codeparrot/github-code |
3f990cbe63d00f84f5c0894cc656b6964a4cdee3878fcc5c58ffb1e7151c232f | /**
* @namespace
* @name File_Decorate
* @description undefined
*/
define(function(require, exports, module) {
var FW = require("breeze/framework/js/BreezeFW");
require("./TypeDecorate");
FW.register({
"name": "File_Decorate",
"extends": ["TypeDecorate"],
/**
*@function
... | JavaScript | gadget/CMSMgrTypeDecorate/File_Decorate.js | breezeloganluo/breeze | apache-2.0 | 2,560 | 81 | codeparrot/github-code |
50a22388b656344aeda9c73297ccc13b494b9f52eb826a774bf40f2d5fbf8b8e | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChangesViewManager.java | idea4bsd/idea4bsd | apache-2.0 | 31,072 | 703 | codeparrot/github-code |
68a5bfd8a95c1e69faa4437e0988e6667e519719b82ba15cfd83143f7b28b075 | <?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>SelectorInterruptor - ScalaTest 2.2.4 - org.scalatest.concurrent.SelectorInterruptor</title>
<meta name="description" content="Selecto... | HTML | public/scaladoc/2.2.4/org/scalatest/concurrent/SelectorInterruptor$.html | scalatest/scalatest-website | apache-2.0 | 23,923 | 459 | codeparrot/github-code |
ce14d9c4079939db049d326058b6f8eeefc9b057ee44b19757bbb7ad58cabdc2 | // Copyright 2014-2015 Boundary, 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 agree... | Java | src/main/java/com/boundary/sdk/event/snmp/SnmpToExecProcessor.java | boundary/boundary-event-sdk | apache-2.0 | 2,734 | 90 | codeparrot/github-code |
49b0a26cec6f5b2c12b1bd090618693f7bbc16aeb5f3249b3e7d0ae2a090d27d | /*
* 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
* dis... | Java | rdf-delta-server-local/src/test/java/org/seaborne/delta/server/patchstores/TestPatchLogMem.java | afs/rdf-delta | apache-2.0 | 1,444 | 37 | codeparrot/github-code |
4e77b6c58c4e6a23c5b10625f3fbe29963eb87fc4a5303aa996037c50179f57a | /*
* Copyright 2014 PrismTech
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | Java | java/chirpit-cafe/src/main/java/com/prismtech/vortex/chirpit/BaseChirpActionListener.java | PrismTech/vortex-chirpit | apache-2.0 | 2,002 | 60 | codeparrot/github-code |
745a9c5f60db7cb2eea23f653f6624575b356b3b2b93425a083e65c6ce7d4433 | package studio.carbonylgroup.textfieldboxes;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
/**
* Text Field Boxes
* Aux class to collect multiple click listeners
* Created by CarbonylGroup on 2017/11/22
*/
class CompositeListener implements View.OnFocusChangeListener {
privat... | Java | textfieldboxes/src/main/java/studio/carbonylgroup/textfieldboxes/CompositeListener.java | HITGIF/TextFieldBoxes | apache-2.0 | 788 | 34 | codeparrot/github-code |
baefcf87756850a3cf8cdbcb6915da45f20244e309f0b045360c51035e3e620b | /*
* Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | funtl-framework-tools/tencent-wechat/src/main/java/com/funtl/framework/tencent/wechat/pay/protocol/closeorder/CloseorderRequest.java | funtl/framework | apache-2.0 | 2,075 | 83 | codeparrot/github-code |
cbae624f888931a98f2e9e40b018db7a07a768a3ec9ec0c1b74281a4fd3c997a | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | Java | core/server/master/src/main/java/alluxio/master/file/InodeTtlChecker.java | madanadit/alluxio | apache-2.0 | 4,965 | 128 | codeparrot/github-code |
51182498484cf0a2dbd7003b4995610cd0422e7eb86b687d1c7eac28d6fddde2 | package com.ref;
import java.lang.ref.WeakReference;
import java.util.HashMap;
import java.util.WeakHashMap;
public class DemoWeakRef {
public static void main(String[] args) throws InterruptedException {
WeakReference r = new WeakReference(new String("I'm here"));
String s = new String("Im here");
WeakReferenc... | Java | CoreProject/src/com/ref/DemoWeakRef.java | trienvu/CoreProject | apache-2.0 | 1,809 | 60 | codeparrot/github-code |
ce78037e61991c6888c0864b610faa7e92c3101b8632a2f9df70e0caa39cb28b | /*******************************************************************************
*
* Copyright (c) 2004-2010 Oracle Corporation.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and i... | Java | stapler-jelly/src/main/java/org/kohsuke/stapler/jelly/JellyClassTearOff.java | eclipse/hudson.stapler | apache-2.0 | 3,512 | 97 | codeparrot/github-code |
d0bfdf6e0ae8d338eae702baa858d9d8f00e3b0dcd2945f615886727d8999d86 | package ru.lozenko.headwindsolutions.geofence.storage;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
/**
* Created by Ivan Lozenko on 22.10.2016.
* Реализация менеджера на основе {@link android.content... | Java | app/src/main/java/ru/lozenko/headwindsolutions/geofence/storage/SharedPreferencesStorageManager.java | Ivan876l678/GeoFence | apache-2.0 | 2,119 | 55 | codeparrot/github-code |
d420fe61e4f75babe4ba6a627cd2583baf6a1a5e2cfe16c79b9dfd24d11fb45c | /*
* File: indecies.h
* Copyright (C) 2004-2010 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#ifndef _INDECIES_H
#define _INDECIES_H
#include "common/sedna.h"
#include "common/u/usem.h"
#include "tr/idx/index_types.h"
#include "tr/idx/indeximpl.h"
#include "tr/structures/m... | C | kernel/tr/idx/indecies.h | sedna/sedna | apache-2.0 | 3,393 | 94 | codeparrot/github-code |
9b1ec64e898683ee4458b5b45e75cd9f912ea631391a5a975f6156d26f9ac4ba | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2017 Andrew Khitrin (ahitrin@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/licens... | Java | plugins/org.jkiss.dbeaver.ext.ui.locks/src/org/jkiss/dbeaver/ext/ui/locks/manage/LockManagerViewer.java | ruspl-afed/dbeaver | apache-2.0 | 8,891 | 251 | codeparrot/github-code |
94928bf177daa3582bc6bef2844bdb1fe79ddd9e152b38392e35cb4977c657de | /*
* 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
*... | C | src/zcl/core/memory/memory.c | matteobertozzi/RaleighSL | apache-2.0 | 3,405 | 108 | codeparrot/github-code |
37168e6682a075b19fe173f38cc26043ad2d6d06ab23b384657da83f9d8e5e15 | /*
TM1638.cpp - Library implementation for TM1638.
Copyright (C) 2011 Ricardo Batista (rjbatista <at> gmail <dot> com)
This program is free software: you can redistribute it and/or modify
it under the terms of the version 3 GNU General Public License as
published by the Free Software Foundation.
This program is dist... | C++ | tm1638-demo/tm1638-library/TM1638QYF.cpp | sjm42/avr | apache-2.0 | 4,083 | 153 | codeparrot/github-code |
d9d8ecd6167fcfc0c63705c65cf155b537ff8908a007ec138c1f153caacf4e86 | /*
* 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 | examples/shardingsphere-sample/shardingsphere-example-generated/shardingsphere-jdbc-sample/shardingsphere-jdbc-memory-local-shadow-spring-boot-starter-mybatis-example/src/main/java/org/apache/shardingsphere/example/shadow/spring/boot/starter/mybatis/repository/OrderRepository.java | apache/incubator-shardingsphere | apache-2.0 | 1,497 | 50 | codeparrot/github-code |
c6e18f50a547875712df013a4346d12e1794f12f473c59aed2d82b546769a2c0 | # Copyright 2010-2011 OpenStack Foundation
# Copyright 2013 IBM Corp.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/license... | Python | nova/api/openstack/compute/views/images.py | phenoxim/nova | apache-2.0 | 6,081 | 167 | codeparrot/github-code |
76d319890a966407231079ced039f6ffd26b5d0f79f76a81b5251b681df7dd73 | /**
* 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/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerCustomExceptionHandlerTest.java | punkhorn/camel-upstream | apache-2.0 | 7,821 | 203 | codeparrot/github-code |
903302d91d95cc9157568f80c71d015ecd0bbe16b6f831a89ed44b22ea711621 | /*
* Copyright 2018 XuJiaji
*
* 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... | Java | app/src/main/java/io/xujiaji/hnbc/utils/FileUtils.java | xujiaji/HaiNaBaiChuan | apache-2.0 | 9,082 | 270 | codeparrot/github-code |
d457bbd9b2dc5e87c8f85cb5ab065285737f39346000631164c716dd98c3ecf3 | /*jshint loopfunc: true, unused:false */
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | JavaScript | zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js | nikste/incubator-zeppelin | apache-2.0 | 71,295 | 2,147 | codeparrot/github-code |
434d7745b1e8613f58d84172294bdcbc475cd97e8fdd94b1c6f6c225c8cd00f0 | <?php
namespace api\models;
use Yii;
/**
* This is the model class for table "good_rush".
*
* @property integer $id
* @property integer $gid
* @property string $price
* @property integer $limit
* @property string $rush_pay
* @property integer $point_sup
* @property integer $amount
* @property integer $star... | PHP | api/models/GoodRush.php | shenzhongwei/wine | apache-2.0 | 1,912 | 84 | codeparrot/github-code |
d096314be8fde50ae37657c141c8360a09c583ba35d12b1269f91dacf9614d9d | const assert = require('assert');
const factor = require('../../lib/factor');
const print = require('../../lib/util/print');
const NO_STEPS = 'no-steps';
function testFactor(expressionString, outputStr, debug=false) {
const steps = factor(expressionString, debug);
let lastStep;
if (steps.length === 0) {
las... | JavaScript | test/factor/factor.test.js | google/mathsteps | apache-2.0 | 942 | 37 | codeparrot/github-code |
3ab6a8e2e22fb9007b06cc00e5bda3c04b6ddcd620fa060b5690a13af1a97cb8 | /*
* 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 | flink-runtime/src/test/java/org/apache/flink/runtime/dispatcher/FaultyJobGraphStore.java | fhueske/flink | apache-2.0 | 1,951 | 65 | codeparrot/github-code |
4ee1deceda645ed14b35c6807c112c468c3f14f98f15c83ae4070296df18a2ac | package resources
import "github.com/awslabs/goformation/cloudformation/policies"
// AWSAmazonMQConfiguration_TagsEntry AWS CloudFormation Resource (AWS::AmazonMQ::Configuration.TagsEntry)
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-configuration-tagsentry.html
type A... | GO | cloudformation/resources/aws-amazonmq-configuration_tagsentry.go | PaulMaddox/goformation | apache-2.0 | 2,838 | 63 | codeparrot/github-code |
930f0a3ad028697f7e6f257b631cea4e1afa23898a82bc075b2e1373169afe85 | /*
* GameStateManager.java
*/
package iut.info1.spaceInvadersRebirth.gameStates;
import java.awt.Graphics2D;
/**
* Classe permettant de gérer les états du jeu (menus, game over et le jeu).
* Cette classe permet de déterminer à quel moment
* afficher ces différents états.
* @author
* @version 1.0
*/
public cl... | Java | src/iut/info1/spaceInvadersRebirth/gameStates/GameStateManager.java | MrBin99/spaceInvadersRebirth | apache-2.0 | 5,779 | 193 | codeparrot/github-code |
39e74c40fe8124554e5e66d281f15a86ce93f98779dacbe76b14fd45b4550539 | package org.jetbrains.plugins.scala.failed.typeInference
import org.jetbrains.plugins.scala.PerfCycleTests
import org.jetbrains.plugins.scala.lang.typeConformance.TypeConformanceTestBase
import org.junit.experimental.categories.Category
/**
* @author mucianm
* @since 04.04.16.
*/
@Category(Array(classOf[PerfCy... | Scala | scala/scala-impl/test/org/jetbrains/plugins/scala/failed/typeInference/StructuralsConformanceTest.scala | jastice/intellij-scala | apache-2.0 | 1,138 | 50 | codeparrot/github-code |
9a514e95bad62ae7c2785deafaec55971e24b8db6bad839fc4d578c57a3f848b | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 ... | C++ | paddle/operators/mean_op.cc | hedaoyuan/Paddle | apache-2.0 | 2,264 | 64 | codeparrot/github-code |
e44149612f7706ae3a52df20ee12968f3cb9d25103b8dd4606c17f61675ccd04 | var path = require('path');
var logger = require('bunyan');
BunyanMailgun = require('bunyan-mailgun');
var emailStream;
module.exports.initMail = function (mailgunSettings) {
emailStream = new BunyanMailgun(mailgunSettings);
module.exports.mail = logger.createLogger({
name: 'topTeamerMail',
streams: [{
... | JavaScript | server/utils/logger.js | efishman15/topteamer2 | apache-2.0 | 2,169 | 87 | codeparrot/github-code |
36489cae9c942f2d0ded140a7cbd03244555b2e86ddc38e3f28f5729333e2f12 | /*
Copyright 2013-2014 Erik Anderson
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, so... | C | frame/make_frame.h | odysseus654/modHpsdr | apache-2.0 | 9,036 | 285 | codeparrot/github-code |
004d83f8ca2a530a41bf2722ad7a387c47f0595a104ec0ecee246c07dab41f9d | /**
* Generates an observable sequence by running a state-driven loop producing the sequence's elements, using the specified scheduler to send out observer messages.
*
* @example
* var res = Rx.Observable.generate(0, function (x) { return x < 10; }, function (x) { return x + 1; }, function (... | JavaScript | web/bootstrap/RxJS/src/core/linq/observable/generate.js | haghard/splanet | apache-2.0 | 2,089 | 43 | codeparrot/github-code |
285bffc7d6c36330aa81a79a024b718acf0946e7ff5cad10d54cfd4209825a51 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>"math/strided/special/smskdeg2rad/docs/types/index.d" | stdlib</title>
<meta name=... | HTML | public/docs/ts/latest/modules/_math_strided_special_smskdeg2rad_docs_types_index_d_.html | stdlib-js/www | apache-2.0 | 13,642 | 265 | codeparrot/github-code |
bd13b8b79ef9359b6158aa702462fe397f6c81bca33e7146d966201aac0d7fe4 | /*
* 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-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/transform/DeinterlacerJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,172 | 83 | codeparrot/github-code |
d7c7928846a16101cbb62090b30633afafd5b9a452ca27f4fbaded6b2fd23dcc | /**
* 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/test/java/com/tatsuyafw/camel/component/fluentd/FluentdEndpointTest.java | tatsuyafw/camel-fluentd | apache-2.0 | 1,833 | 51 | codeparrot/github-code |
3775877115ff0a823b5773611e59d2f002d18697760eed1cf9d6d14af2c55288 | package main
import (
"fmt"
"hyperagent/heartbeat"
"hyperagent/log"
"hyperagent/monitor"
"hyperagent/rest"
"hyperagent/web"
"net/http"
"os"
"os/signal"
"syscall"
"github.com/takama/daemon"
)
const (
name = "HyperAgent"
description = "Hyper agent service"
)
// dependencies that are NOT required ... | GO | main.go | qinsc/hyperagent | apache-2.0 | 2,542 | 118 | codeparrot/github-code |
8c4cb1474c3fda6a1a544b9ed0dc78e6b2f7ea92e3f8edd3ec9b38117db8b486 | package com.unipad.singlebrain;
import android.os.Bundle;
import android.os.Message;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import com.unipad.utils.ActivityCollector;
/**
* Created by Wbj on 2016/4/7.
*/
public abstract class BasicActivity extends FragmentActivity implements View... | Java | app/src/main/java/com/unipad/singlebrain/BasicActivity.java | qiuzichi/SingleMadBrain | apache-2.0 | 1,131 | 55 | codeparrot/github-code |
9e05e64c5fb0465dcad77688695cc248af93474211f06235f2e5f4f41a3b4262 | """Base Bolt classes."""
from __future__ import absolute_import, print_function, unicode_literals
from collections import defaultdict
import os
import signal
import sys
import threading
import time
import warnings
import logging
from six import iteritems, reraise, PY3
from .base import Component
from .ipc import (re... | Python | streamparse/bolt.py | singhdev/streamparse | apache-2.0 | 16,210 | 425 | codeparrot/github-code |
68df6d6552ea096e7a5990c64bcd286028a2995672c3f41704b75f9c7d7b7d88 | /********** tell emacs we use -*- c++ -*- style comments *******************
Copyright (c) 2006, Trey Smith. 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.... | C | src/main/solverUtils.h | trey0/zmdp | apache-2.0 | 2,777 | 107 | codeparrot/github-code |
c59d47741af6763c1114eeac038b480463316c151ee4ac8c597596f889cabf54 | <!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>Statistics of Reflex in UD_Croa... | HTML | treebanks/hr_set/hr-feat-Reflex.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 9,932 | 190 | codeparrot/github-code |
39c6409282c3eb02f707ee30bbb0e27eab5dd198e5fa8263736522ed86037d5d | package com.estore.fragment;
/*
我的订单---待评价页面
*/
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment... | Java | app/src/main/java/com/estore/fragment/WaitingEvaluateFragment.java | liangsheng888/Estore | apache-2.0 | 20,824 | 501 | codeparrot/github-code |
8711a554141d018eb36868b3fe7e4a6a150ff2c1f6ce31a9984c948ced1075bf | package org.apache.maven.settings.building;
/*
* 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 ... | Java | maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsProblem.java | Tibor17/maven | apache-2.0 | 4,463 | 160 | codeparrot/github-code |
3e004a773b2a8a46b4f2bdb3ca02688ad270eb9c4be2b94c3bb2858640b57ab2 | package com.sfl.pms.services.payment.processing.impl.auth;
import com.sfl.pms.services.payment.common.dto.auth.CustomerPaymentMethodAuthorizationPaymentDto;
import com.sfl.pms.services.payment.common.dto.channel.PaymentProcessingChannelDto;
import com.sfl.pms.services.payment.common.dto.channel.ProvidedPaymentMethodPr... | Java | services/services_impl/src/test/java/com/sfl/pms/services/payment/processing/impl/auth/ProvidedPaymentMethodAuthorizationRequestTypeOperationsProcessorImplTest.java | sflpro/ms_payment | apache-2.0 | 6,805 | 137 | codeparrot/github-code |
3a8536be81fc38e297537b39ed0dd2317018874e8f597beb667d18c72d72e129 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>"blas/ext/base/dapxsumkbn2/docs/types/index.d" | stdlib</title>
<meta name="descri... | HTML | public/docs/ts/latest/modules/_blas_ext_base_dapxsumkbn2_docs_types_index_d_.html | stdlib-js/www | apache-2.0 | 13,196 | 256 | codeparrot/github-code |
62e06c9e17041f7ae23cc4862d7238c1faeef3715410bebab75d4aef3055a979 | package edu.grinnell.mhctd.json;
import java.math.BigDecimal;
import java.util.Queue;
/**
* JSONNumbers Class
*
* @implements JSONValue
*
* @author Hannah Cohn
* @author Ty Dewey
* @author Madeleine Hardt
* @author Christine Tran
*/
public class JSONNumber
implements JSONValue
{
// +--------+-------... | Java | src/edu/grinnell/mhctd/json/JSONNumber.java | deweytyl/mhctd-JSON | apache-2.0 | 3,155 | 134 | codeparrot/github-code |
24e12f967c80340e3fcd9243595e1aef9e30633d94d3e3fbb31b958922123fb4 | package nl.weeaboo.vn.impl.scene;
import nl.weeaboo.common.Insets2D;
import nl.weeaboo.common.Rect2D;
import nl.weeaboo.vn.core.IEventListener;
import nl.weeaboo.vn.image.INinePatch;
import nl.weeaboo.vn.impl.image.NinePatchRenderer;
import nl.weeaboo.vn.layout.ILayoutGroup;
import nl.weeaboo.vn.render.IDrawBuffer;
im... | Java | core/src/main/java/nl/weeaboo/vn/impl/scene/Panel.java | anonl/nvlist | apache-2.0 | 4,014 | 162 | codeparrot/github-code |
3b3a23557427b283dd3db5346c34baa4630f00bcd50e592bdad591f8abc9d43f | /*
* Copyright 2012, 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 applica... | C++ | android/frameworks/compile/libbcc/lib/Renderscript/RSEmbedInfo.cpp | indashnet/InDashNet.Open.UN2000 | apache-2.0 | 5,400 | 159 | codeparrot/github-code |
2807e95512ae03b2efd01a31825033cc68b677965bf1699776c6098e777223be | /*
* Benchmark of ARX's implementation of the game theoretic approach proposed in:
* A Game Theoretic Framework for Analyzing Re-Identification Risk.
* Zhiyu Wan, Yevgeniy Vorobeychik, Weiyi Xia, Ellen Wright Clayton,
* Murat Kantarcioglu, Ranjit Ganta, Raymond Heatherly, Bradley A. Malin
* PLOS|ONE. 2015.
... | Java | src/org/deidentifier/arx/benchmark/BenchmarkSetup.java | arx-deidentifier/gta-benchmark | apache-2.0 | 14,828 | 421 | codeparrot/github-code |
ea7cfd44bd8af1bc44d648b8ad9d424b636a35800104e6fbc707324702a7fbd2 | #!/usr/bin/env ruby
# Encoding: utf-8
#
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
#
# License:: 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
#
# ... | Ruby | adwords_api/examples/v201605/campaign_management/get_all_disapproved_ads.rb | kjvarga/google-api-ads-ruby | apache-2.0 | 3,446 | 98 | codeparrot/github-code |
0d6fa027c398dd1e7b5d2b29632bb5f6b7fa9efbc452f6f3623677836efd73aa | #include "HeaderAndFooter.h"
TBTK::DocumentationExamples::HeaderAndFooter headerAndFooter("Plotter");
//! [Plotter]
#include "TBTK/Array.h"
#include "TBTK/Model.h"
#include "TBTK/Models/SquareLattice.h"
#include "TBTK/Property/Density.h"
#include "TBTK/PropertyExtractor/Diagonalizer.h"
#include "TBTK/Range.h"
#include... | C++ | doc/examples/Visualization/MatPlotLib/Plotter.cpp | dafer45/TBTK | apache-2.0 | 3,995 | 168 | codeparrot/github-code |
412cd3d16158dd0af4d4a82d693ed0b363ea66b9cfdfe7a3520a67e01c8ebc86 | /*
* Copyright © 2014-2017 EntIT Software LLC, a Micro Focus company (L.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | Java | runtime-management/runtime-management-impl/src/main/java/io/cloudslang/runtime/impl/ExecutionEngine.java | CloudSlang/score | apache-2.0 | 1,727 | 50 | codeparrot/github-code |
1d0d269802eb4740eedfb11392236e8a99d18a97ceede931e1dec64980bb42ee | /**
* Created by fengxiang on 2017/9/19.
*/
//会在三个都执行完成时候才会执行一下次操作
/*
( ()=>{
let p1 = Promise.resolve(1);
let p2 = 2;
var p3 = new Promise((resolve, reject) => {
if(1!=1) reject()
setTimeout(resolve, 10000, 'foo');
});
Promise.all([p1,p2,p3]).then( values=>{
console... | JavaScript | asyn/promise.js | 17golang/nodejsstudy | apache-2.0 | 2,967 | 167 | codeparrot/github-code |
7df2b15126e8d3f330ecca2f07e1baa2401d14cb04fd08d58f0ac7dcbbe9bcbb | #!/usr/bin/perl -w
#
# Copyright 2020, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | Perl | examples/feeds/get_feed_items_of_feed_item_set.pl | googleads/google-ads-perl | apache-2.0 | 4,824 | 142 | codeparrot/github-code |
5ac5bfde1e72302d4afdd9d7ee7edf689e2604d21207441c872472f85fd1e4fb | package models
import javax.inject.Inject
import scala.util.{ Failure, Success }
import anorm._
import anorm.SqlParser.{ get, str }
import play.api.db.DBApi
import scala.concurrent.Future
case class Company(id: Option[Long] = None, name: String)
@javax.inject.Singleton
class CompanyRepository @Inject()(dbapi: DB... | Scala | play26/scala/anorm-example/app/models/CompanyRepository.scala | play2-maven-plugin/play2-maven-test-projects | apache-2.0 | 1,498 | 57 | codeparrot/github-code |
4215f76881453da2f329d5704b004d29ce79ee36ebdc9a553b9e4616cfdd652f | #!/bin/bash
set -eu
function usage {
echo "Usage: $0 [OPTION]..."
echo "Run Nova's test suite(s)"
echo ""
echo " -V, --virtual-env Always use virtualenv. Install automatically if not present"
echo " -N, --no-virtual-env Don't use virtualenv. Run tests in local environment"
echo " -s,... | Shell | run_tests.sh | windskyer/k_nova | apache-2.0 | 7,129 | 233 | codeparrot/github-code |
bf7ec0fa7ac06211c1c27da35d61292318b818d5254e123e23b0bf00a95828d5 | /**
* 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... | JavaScript | packages/pubsub/test/iam.js | tcrognon/google-cloud-node | apache-2.0 | 5,258 | 183 | codeparrot/github-code |
66651d42a0336172072e58226c69a3f41d7952a92a7494f414d74d9a03fcf1b7 | // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
'jquery',
'base/js/utils',
'base/js/dialog',
'base/js/events',
'base/js/keyboard',
], function(IPython, $, utils, dialog, events, keyboard) {
"use strict";
... | JavaScript | public/ipython/tree/js/notebooklist.js | antonkulaga/spark-notebook | apache-2.0 | 21,883 | 589 | codeparrot/github-code |
d7bec5c8026077b357f9175ec7a1c2400f291fffebcc2f6e4fe21db51755322c | /*
* Copyright (c) 2016-present The Limitart 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 applicabl... | Java | src/top/limitart/collections/RankMapImpl.java | HankXV/Limitart | apache-2.0 | 6,334 | 232 | codeparrot/github-code |
a7fa17f2d42140256e0972a4f27da4ffdd6c3218e5d9542c959bbf66d4582049 | # -*- coding: utf-8 -*-
"""The Viper analysis plugin CLI arguments helper."""
from plaso.analysis import viper
from plaso.cli.helpers import interface
from plaso.cli.helpers import manager
from plaso.lib import errors
class ViperAnalysisArgumentsHelper(interface.ArgumentsHelper):
"""Viper analysis plugin CLI argum... | Python | plaso/cli/helpers/viper_analysis.py | dc3-plaso/plaso | apache-2.0 | 3,976 | 104 | codeparrot/github-code |
43558e6d9ed1c108d5f99cd3db3d19a8dcda671726889f9c3f8233bacf8d66c0 | // Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | C++ | src/build.cc | sbinet/ninja | apache-2.0 | 25,063 | 846 | codeparrot/github-code |
8bc80339f52399ebbe1af1e8f9c1f2af350f98fd7843707504b18a8aaa7f3d65 | /*
* Copyright DataStax, 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 wri... | Java | core/src/main/java/com/datastax/oss/driver/internal/core/servererrors/DefaultWriteTypeRegistry.java | datastax/java-driver | apache-2.0 | 1,309 | 39 | codeparrot/github-code |
88266c292b590c346fa79f95b5d82bc88ff5b662550b7e563a4829ed912177c5 | /**
* This file is part of SIMPL4(http://simpl4.org).
*
* Copyright [2017] [Manfred Sattler] <manfred@ms123.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.ap... | Java | bundles/docbook/src/main/java/org/ms123/common/docbook/rendering/FORenderer.java | ms123s/simpl4-src | apache-2.0 | 5,978 | 161 | codeparrot/github-code |
2e11a525a6603d52f3b7e7370d989314421fb2bab4b18e670096fbeda56058c6 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | python/src/com/jetbrains/python/debugger/PyLineBreakpointType.java | hurricup/intellij-community | apache-2.0 | 4,428 | 111 | codeparrot/github-code |
e05f2a1621f4ec92c0827dae64de389e25ff08d2ea764e942b641f463d4716a9 | package com.mossle.bpm.listener;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.R... | Java | src/main/java/com/mossle/bpm/listener/CopyTaskListener.java | JakFlew/lemon | apache-2.0 | 5,028 | 123 | codeparrot/github-code |
39c3dac9f0447cd8d1f0799ccfd3c6de35fe2382ea14ff58a6bc7b517810e02b | package io.quarkus.grpc.runtime.devmode;
import java.util.function.Supplier;
import org.jboss.logging.Logger;
import io.quarkus.dev.spi.HotReplacementContext;
import io.quarkus.dev.spi.HotReplacementSetup;
public class GrpcHotReplacementSetup implements HotReplacementSetup {
private static final Logger LOGGER =... | Java | extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/GrpcHotReplacementSetup.java | quarkusio/quarkus | apache-2.0 | 1,784 | 56 | codeparrot/github-code |
13a14a14d2057b91fa92f746e401bd4cb1a2ebfabba9aee685cdc5202503b77e | /*
* Copyright (c) 2009, tamacat.org
* All rights reserved.
*/
package org.tamacat.httpd.util;
import java.util.LinkedHashMap;
import java.util.Map.Entry;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.tamacat.util.IOUtils;
import org.w3c.dom.Document;
import... | Java | src/test/java/org/tamacat/httpd/util/MimeTypesXmlParser.java | tamacat/tamacat-httpd | apache-2.0 | 2,274 | 84 | codeparrot/github-code |
0239d4f8c7cd424dfed8ff9b6d2fc223ab33bc3d93324a83598c7127efaa056c | """
Analytical template tags and filters.
"""
from __future__ import absolute_import
import logging
from django import template
from django.template import Node, TemplateSyntaxError
from django.utils.importlib import import_module
from templatetags.utils import AnalyticalException
TAG_LOCATIONS = ['head_top', 'hea... | Python | storefront/templatetags/analytical.py | linkedin/indextank-service | apache-2.0 | 2,352 | 82 | codeparrot/github-code |
26ff8796c71d82072b249932ae367a9818d1177e48f9b9d78621f53463a49adc | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <iostream>
#include <fstream>
#include <map>
#include <vector>
#include <algorithm>
#include <set>
#include <queue>
#include <list>
#include <stdint.h>
using namespace std;
class CGraph
{
public:
CGraph() { m_sizeNodes = 0; m_sizeEdge... | C++ | euler.cpp | Tyrhus/FIT-EFA-eulerian-trail-C | apache-2.0 | 3,268 | 214 | codeparrot/github-code |
2ab1de218b6e7cefa1a410e78bb45a324aa25b7bc7cd202a2ec3c5184135f1f4 | /*
Copyright 2014-2016 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | Java | moe.apple/moe.platform.ios/src/main/java/apple/intentsui/enums/INUIHostedViewContext.java | multi-os-engine/moe-core | apache-2.0 | 962 | 31 | codeparrot/github-code |
21c88a7473d5619e315fb5694fa0c1af708325a7f7dc3e5295c19108eae63164 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.uni_hildesheim.sse;
import java.util.List;
import java.util.ArrayList;
import java.util.Enumeration;
import java.io.*;
/**
* Class responsible for reading & writing IVML specifications.<br/>
* @author Phan... | Java | Tools/Language_Transformer/src/de/uni_hildesheim/sse/IVML.java | SSEHUB/EASyProducer | apache-2.0 | 4,652 | 153 | codeparrot/github-code |
1162ad07a24d2bff6b8f0471c486e92df479b0697b8f15339769a89453df1817 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Project 5</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="Write an awesome description for your new site here. You can edit this line in... | HTML | _site/web development/2014/07/14/project-5/index.html | tockti/tockti.github.io | apache-2.0 | 26,997 | 564 | codeparrot/github-code |
1cedbfba2ab7324e10c21ff1fe381f400fd7d8ca53a0db83458f7d1323c238a3 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | plugins/svn4idea/src/org/jetbrains/idea/svn/integrate/SvnIntegrateChangesTask.java | hurricup/intellij-community | apache-2.0 | 14,903 | 418 | codeparrot/github-code |
06df0ddee81e1f0d29c4a94bebd33ad8548b37a9e022cfb1fd4278cfea4db1ba | using System;
using System.Configuration;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.PhantomJS;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Safari;
using Golem.Core;
namespace Golem.WebDriver
{
... | C# | ProtoTest.Golem/WebDriver/WebDriverBrowser.cs | ProtoTest/ProtoTest.Golem | apache-2.0 | 11,108 | 264 | codeparrot/github-code |
e7013a4751ca7b872483f3423457640fea12716d42bfc9f173caddd060c30f62 | <?php
/**
* An extension of the {@link AdsSoapClient} for the AdWords API.
*
* PHP version 5
*
* Copyright 2011, 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... | PHP | src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php | aminin/google-api-adwords-php | apache-2.0 | 7,594 | 225 | codeparrot/github-code |
e5bcf8f579298dbc08b65cb5f3127bc1a203153e1799d71d2bd243f51fd943a0 | package com.github.mustard.jmus;
import com.github.mustard.jmus.command.Command;
import com.github.mustard.jmus.command.CommandWithResponse;
import java.io.IOException;
public class CmusClient {
private final String host;
private final int port;
private final String password;
public CmusClie... | Java | src/main/java/com/github/mustard/jmus/CmusClient.java | Mustard/jmus | apache-2.0 | 1,070 | 42 | codeparrot/github-code |
4b0098826413ba80f55fcdcd8c13de7fea95082e0b2235208f2f50bfaa878892 | package com.heaven7.java.data.io.test;
import com.heaven7.java.data.io.music.adapter.ExcelToJsonAdapterV1;
import com.heaven7.java.data.io.poi.ExcelDataServiceAdapter;
import com.heaven7.java.data.io.poi.ExcelHelper;
import com.heaven7.java.data.io.poi.ExcelRow;
import org.junit.Test;
import java.util.List;
import s... | Java | DataIO/src/test/java/com/heaven7/java/data/io/test/XlsxExcelTest.java | LightSun/DataIO | apache-2.0 | 4,451 | 126 | codeparrot/github-code |
b56ac3969611316bba3427b77f2ddd798fada5a627f7908bdf0018d6a327f3a8 | // <copyright file="OrderTestContextConfigurator.cs" company="Automate The Planet Ltd.">
// Copyright 2021 Automate The Planet Ltd.
// Licensed under the Apache License, Version 2.0 (the "License");
// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://ww... | C# | dotnet/Design-Architecture-Series/AdvancedSpecificationDesignPattern/OrderTestContextConfigurator.cs | angelovstanton/AutomateThePlanet | apache-2.0 | 2,011 | 39 | codeparrot/github-code |
3aada1b4a5508cc3b0f47ed3b3a40d67ca94d564752b35df422b2982c18d0874 | <!DOCTYPE html >
<html>
<head>
<title>Payloads - ScalaTest 3.0.0 - org.scalatest.Payloads</title>
<meta name="description" content="Payloads - ScalaTest 3.0.0 - org.scalatest.Payloads" />
<meta name="keywords" content="Payloads ScalaTest 3.0.0 org.scalatest.Payloads" />
<... | HTML | public/scaladoc/3.0.0/org/scalatest/Payloads$.html | scalatest/scalatest-website | apache-2.0 | 28,309 | 539 | codeparrot/github-code |
7f4d16a3e375995184acc023fbfddfa3e478197bba43137d891d9db0e4c9cc0d | /*
* Copyright 2016-2018 Axioma srl.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Java | swagger-v2/src/main/java/com/holonplatform/jaxrs/swagger/v2/internal/scanner/AbstractJaxrsScanner.java | holon-platform/holon-jaxrs | apache-2.0 | 4,369 | 140 | codeparrot/github-code |
7d3640df71337e0b55bd07f36398374aecc726390818d28bd6aa812170228fc1 | /*
* 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 n... | Java | artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java | iweiss/activemq-artemis | apache-2.0 | 57,893 | 1,576 | codeparrot/github-code |
502bc1df7021c30bfc5225af07e2eeba923a33bf2a85fbc7d8a30a7e86246714 | /*
* #%L
* asio server
* %%
* Copyright (C) 2013 - 2015 Research Group Scientific Computing, University of Vienna
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | Java | server/src/test/java/at/ac/univie/isc/asio/metadata/SchemaDescriptorTest.java | pyranja/asio | apache-2.0 | 3,674 | 76 | codeparrot/github-code |
efb7ca2d3e26940dd3dc437d234e10e76d4135120e2089f56a8f6b7d52118dce | # Copyright 2013 IBM Corp
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | Python | tempest_lib/services/compute/certificates_client.py | openstack/tempest-lib | apache-2.0 | 1,435 | 38 | codeparrot/github-code |
5e1aa51959aeb6b1b44cd2e435f99521f9303ed836a79a84208be5e38964d587 | /*
* 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/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java | botelhojp/apache-jmeter-2.10 | apache-2.0 | 44,694 | 1,101 | codeparrot/github-code |
34c04c7267494ae022cf3b9d4848b9647496c3e4e5af75049e02e472ed3ff066 | package bsh;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
impo... | Java | src/test/java/bsh/TryStatementTest.java | beanshell/beanshell | apache-2.0 | 10,055 | 277 | codeparrot/github-code |
e838c12b9ed799f6c198e30be29e3a2d6a45fbb61758436ca3fb7ec133fd4e48 | /*
* 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 | Source4Tomcat/src/org/apache/catalina/util/SessionIdGenerator.java | pistolove/sourcecode4junit | apache-2.0 | 9,099 | 255 | codeparrot/github-code |
d7f64b8c21aaa44ee149937a5b9187686e1a03722a86eeb60ac3824f093f6455 | /*
* Copyright (c) 2011-2014, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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 | src/boofcv/processing/SimpleLabeledImage.java | lessthanoptimal/BoofProcessing | apache-2.0 | 1,577 | 53 | codeparrot/github-code |
026efc28e986e07d014c48e032b9f7cfb54aef45faa10608000b0dff0e23bfb7 | package org.apache.lucene.search;
/**
* 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, Vers... | Java | lucene-2.9.4/src/java/org/apache/lucene/search/HitCollectorWrapper.java | Overruler/retired-apache-sources | apache-2.0 | 1,854 | 58 | codeparrot/github-code |
0dc05b70c611d1ac793558d2ef6d869cdf59cce4d5c846fa2008124d25cdc412 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
*
* Unles... | Java | identity-gateway-mediators/authentication-response-processor/src/main/java/org/wso2/carbon/identity/gateway/mediators/authentication/response/processor/AuthenticationResponseProcessorDataHolder.java | wso2-incubator/identity-mediation-language | apache-2.0 | 1,471 | 42 | codeparrot/github-code |
0c1d9387c9d369fad7aefcf2c92567f1a1e93c99192ba67ba35f0fc447fe6149 | {% extends "layout.html" %}
{% block breadcrumb %}
<li><a href="#">临时发布</a><span class="divider"></span></li>
<li class="active">网站发布</li>
{% endblock %}
{% block body %}
<div class="widget-box">
<div class="widget-title">
<h5 style="float:left;"><i class="fa fa-table fa-fw"></i>发布任务</h5>
<button styl... | HTML | web/templates/project/upgrade.html | liu-jian/seos1.0 | apache-2.0 | 20,841 | 635 | codeparrot/github-code |
d832ccab0e298ad1d8413308e0303765fd90bc4c793edfcc52c27f25cba5e056 | {- Copyright 2014 David Farrell <shokku.ra@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 applicable law or... | Haskell | plugins.old/CModeNoExternal.hs | shockkolate/lambdircd | apache-2.0 | 1,375 | 38 | codeparrot/github-code |
adb0a15e641d03d09285eb184b83c81fabef0c8f800383c948df41b9d688c0ca | package org.wildfly.extras.creaper.commands.elytron.realm;
import org.wildfly.extras.creaper.commands.foundation.offline.xml.GroovyXmlTransform;
import org.wildfly.extras.creaper.commands.foundation.offline.xml.Subtree;
import org.wildfly.extras.creaper.core.offline.OfflineCommand;
import org.wildfly.extras.creaper.co... | Java | commands/src/main/java/org/wildfly/extras/creaper/commands/elytron/realm/AddCachingRealm.java | mchoma/creaper | apache-2.0 | 4,349 | 119 | codeparrot/github-code |
594037c2a9c7cca3a1326e6ed15fb20b79ea4c96be9df9267665f2f80b89d792 | from datetime import datetime
class Logger(object):
FATAL = 0
ERROR = 1
WARN = 2
INFO = 3
DEBUG = 4
TRACE = 5
def __init__(self, f, log_level=3):
level = int(log_level)
if level < 0 or level > Logger.TRACE:
raise Exception("Invalid Log Level %d" % level)
... | Python | ztag/log.py | zmap/ztag | apache-2.0 | 1,994 | 80 | codeparrot/github-code |
54ad16a75fdd7b36349497331013a43bbe2c5363f426aa95e8d093f583162657 | package com.karambit.bookie.rest_api;
import android.util.Log;
import com.karambit.bookie.BookieApplication;
import com.karambit.bookie.BuildConfig;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import okhttp3.Cache;
import okhttp3.CacheControl;
import okhttp3.Interceptor;
i... | Java | app/src/main/java/com/karambit/bookie/rest_api/BookieClient.java | DorukBen/Bookie | apache-2.0 | 4,341 | 139 | codeparrot/github-code |
20da3b1648eca1a6ede462af15cc186b4f1b216045013742c0d8a1735d5e9f92 | /*
* Copyright 2013 Jake Wharton
* Copyright 2014 Prateek Srivastava (@f2prateek)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0... | Java | saber/src/test/java/com/jug6ernaut/saber/SaberTest.java | MaTriXy/saber | apache-2.0 | 2,449 | 69 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.