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 |
|---|---|---|---|---|---|---|---|---|
14bf3cef8568ab7e43b0016f2cbcf5c74060df5a1686444540cb1c7cf0ff9733 | # Encoding: utf-8
#
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
#
# Copyright:: Copyright 2012, 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 ... | Ruby | lib/ads_common/results_extractor.rb | voke/google-ads-common | apache-2.0 | 8,192 | 239 | codeparrot/github-code |
93c46ab974d4920f487a7513d4a43c8d0dc4a68d526a79dbee31d5adcdb8e2ab | # -----------------------------------------------------------------------------
# Copyright * 2014, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration. All
# rights reserved.
#
# The Crisis Mapping Toolkit (CMT) v1 platform is licensed under the Apache
#... | Python | cmt/modis/simple_modis_algorithms.py | nasa/CrisisMappingToolkit | apache-2.0 | 6,672 | 155 | codeparrot/github-code |
935dd5ac5a22ed041f1e795f2479a946e9119189d87083af0361a7f8369ae7fd | package com.qmx.wxmp.common.web;
/**
* 带UTF-8 charset 定义的MediaType.
*
* Jax-RS和Spring的MediaType没有UTF-8的版本,
* Google的MediaType必须再调用toString()函数而不是常量,不能用于Restful方法的annotation。
*
* @author free lance
*/
public class MediaTypes {
public static final String APPLICATION_XML = "application/xml";
public static fin... | Java | src/main/java/com/qmx/wxmp/common/web/MediaTypes.java | lingyi2017/wxmp | apache-2.0 | 1,238 | 34 | codeparrot/github-code |
cf6895f331966f6725e0a68502749999dfc6f983817ed5fee94e90f68d6db770 | /*
* 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
* "Lic... | Java | src/test/java/org/apache/directory/fortress/core/samples/CreateUserOrgHierarchySample.java | PennState/directory-fortress-core-1 | apache-2.0 | 15,806 | 355 | codeparrot/github-code |
90b2bdb1583c566d49cb1ae5d9f523caf711fe41a4844cd02378749c9047f997 |
//
// Copyright (c) 2014 Limit Point Systems, 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 ... | Java | tools/viewer/user/HedgeHogFieldActorPropertiesPanel.java | LimitPointSystems/SheafSystem | apache-2.0 | 4,423 | 193 | codeparrot/github-code |
f27333e6b00c25bcdb0418907021e11d8dc289f1866ecec7352de157d7153eca | <link rel="import" href="../../bower_components/polymer/polymer-element.html">
<dom-module id="balance-text-field">
<script>
class BalanceTextField extends Vaadin.TextFieldElement {
static get is() {
return 'balance-text-field';
}
static get properties() {
return... | HTML | src/utils/balance-text-field.html | Loopring/looper | apache-2.0 | 1,346 | 46 | codeparrot/github-code |
b522f673df07dd184c67fa317b4373e24f23cac69f34d0117aa5210b9699d0ca | /*!
* Copyright 2012 Sakai Foundation (SF) Licensed under the
* Educational Community License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable... | JavaScript | ui/js/group.js | Coenego/3akai-ux | apache-2.0 | 5,033 | 141 | codeparrot/github-code |
f737e596c0a4e6aa31ff0dd6aca26ccece05ea0d07f3c04d227ab9d0d5508ec0 | #include <Wire.h>
#include "lis331dlh.h"
#include "l3g4200d.h"
#include "lis3mdl.h"
#include "LPS331.h"
#include "MadgwickAHRS.h"
// Accelerometer
#define ACCEL_ADDRESS_V1 LIS331DLH_TWI_ADDRESS
#define ACCEL_ADDRESS_V2 LIS331DLH_TWI_ADDRESS_V2
// Gyroscope
#define GYRO_ADDRESS_V1 L3G4200D_TWI_ADDRESS
#defin... | C | ESP_SOFTWARE/IMU-LIB Fixed/Troyka-IMU-master/TroykaIMU.h | Garuda-1/RealityGateway | apache-2.0 | 1,103 | 51 | codeparrot/github-code |
e7fa32df50fe543c3a06dc1966fa2a807f0e6d6ab854006839b62ad8a79b7a5b | # -*- coding:utf-8 -*-
__author__ = 'q00222219@huawei'
import time
from heat.openstack.common import log as logging
import heat.engine.resources.cloudmanager.commonutils as commonutils
import heat.engine.resources.cloudmanager.constant as constant
import heat.engine.resources.cloudmanager.exception as exception
impor... | Python | code/cloudmanager/install/hws/hws_cascaded_configer.py | hgqislub/hybird-orchard | apache-2.0 | 4,081 | 104 | codeparrot/github-code |
55f9973c7a18d45095eec25f59cd45d0d5e4dead580480fb3689d507ebdf1532 | #ifdef WINDOWS_PLATFORM
#include "WindowsInputService.hpp"
#include "WindowsMouseInterface.hpp"
#include "WindowsKeyboardInterface.hpp"
namespace MPACK
{
namespace Input
{
WindowsInputService::WindowsInputService()
{
m_pMouse = new WindowsMouseInterface;
m_pKeyboard = new WindowsKeyboardInterface;
Res... | C++ | jni/MPACK/Input/Desktop/Windows/WindowsInputService.cpp | mirceamt/MPACK | apache-2.0 | 764 | 48 | codeparrot/github-code |
8f92ddd2389666938621afdf193d5da264b5297a3184107a178956f00284940a | ' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Collections.Immutable
Imports System.Diagnostics
Imports System.Runtime.InteropServices
Imports Microsoft.CodeAnalysis.PooledObjects
Imports Mi... | Visual Basic | src/Compilers/VisualBasic/Portable/Lowering/LocalRewriter/LocalRewriter_NullableHelpers.vb | aelij/roslyn | apache-2.0 | 24,665 | 532 | codeparrot/github-code |
6d2552276e64dbe4553685a076fe7d75e6c3ce33bbfba20ae1512677cc186641 | package com.structurizr.view;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.structurizr.model.*;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.stream.Collectors;
@JsonIgnoreProperties(ign... | Java | structurizr-core/src/com/structurizr/view/View.java | JDriven/structurizr-java | apache-2.0 | 5,965 | 203 | codeparrot/github-code |
4f0849d6a6099f72ed236de81d0b588087bf4244aeb3aee23153be8fadcefdb1 | /*
* Copyright (c) 2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
*... | Java | src/main/java/io/vertx/ext/consul/Coordinate.java | ruslansennov/vertx-consul-client | apache-2.0 | 4,253 | 200 | codeparrot/github-code |
9901cc28164dea0756fb7e0339575e657f838ca14e2eb766c53915708b83b66f | /**
* 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 m... | Java | src/test/java/org/apache/xml/security/test/dom/transforms/implementations/TransformBase64DecodeTest.java | Legostaev/xmlsec-gost | apache-2.0 | 5,574 | 151 | codeparrot/github-code |
e1220b73a328154517ce958073ca595c0ba5098791fdc9c4a93e1d06f764c143 | /*
* Copyright (C) 2010 ZXing 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 agr... | Java | AEAssistant/src/com/zzn/aeassistant/zxing/decoding/FinishListener.java | ShawnDongAi/AEASSISTANT | apache-2.0 | 1,311 | 52 | codeparrot/github-code |
99c3731241a15a5a2c5cfadb0c9e229e06515427bcd0387a9402ca47b36c8c85 | import { Component, Input, EventEmitter, SimpleChanges, OnChanges } from '@angular/core';
import { ToasterService } from 'angular2-toaster';
import { TranslateService } from 'ng2-translate';
import { Notification } from '../notification.model';
import { NotificationService } from '../notification.service';
import { Pa... | TypeScript | app/notifications/notifications-list/notifications-list.component.ts | HiP-App/HiP-CmsAngularApp | apache-2.0 | 2,139 | 67 | codeparrot/github-code |
f043d64cb48480c7971c7c015be0b0e9c52565bfc15a4a45a129cf917d64f94d | /*
* 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 | beehive-netui-core/src/main/java/org/apache/beehive/netui/util/ParamHelper.java | moparisthebest/beehive | apache-2.0 | 5,988 | 179 | codeparrot/github-code |
b39be257df19f14aa183ec39b3a8b963613e8267ea3f28a69e7403826f9b404a | package org.jboss.resteasy.spi;
import org.jboss.resteasy.specimpl.MultivaluedMapImpl;
import org.jboss.resteasy.specimpl.PathSegmentImpl;
import org.jboss.resteasy.specimpl.ResteasyUriBuilder;
import org.jboss.resteasy.util.Encode;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.core.PathSegment;
import j... | Java | jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/ResteasyUriInfo.java | raphaelning/resteasy-client-android | apache-2.0 | 10,699 | 391 | codeparrot/github-code |
603aa21c81c300e8f2b307f18aef17ffc26de5de8880a85d11d1c3a42cbc2538 | package com.cabinetms.client;
import java.util.List;
import com.google.common.collect.Lists;
public class TacticMediaCommand {
private String command; // 指令
private String clientIp; // 终端IP地址
private String destination; // 终端队列地址
private Integer startDate;// 策略开始日期
private Integer endDate;// 策略结束日期
private Li... | Java | src/main/java/com/cabinetms/client/TacticMediaCommand.java | wangning82/CabinetMS | apache-2.0 | 1,244 | 65 | codeparrot/github-code |
29b8184aac593362286b4f40f6e4b9e28b98e3a9d0fed33afb24d983272d45da | /**
* @license Highcharts JS v7.1.1 (2019-04-09)
*
* (c) 2014-2019 Highsoft AS
* Authors: Jon Arild Nygard / Oystein Moseng
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.e... | JavaScript | Static/bootstrap/Highcharts-7.1.1/modules/treemap.src.js | Qesy/Q-Frame | apache-2.0 | 92,176 | 2,234 | codeparrot/github-code |
ff0fa04e22ee5cd56b0ce81182be5de9e7581dbea14520627e631d091eba6ff8 | """Neural network operations."""
from __future__ import absolute_import as _abs
from . import _make
def conv2d(data,
weight,
strides=(1, 1),
padding=(0, 0),
dilation=(1, 1),
groups=1,
channels=None,
kernel_size=None,
data_layout="... | Python | Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/python/tvm/relay/op/nn/nn.py | mlperf/training_results_v0.6 | apache-2.0 | 10,085 | 367 | codeparrot/github-code |
9044237221d9919b0931df11c156530647beddd24d619cf49ebb34d45cd918b6 | <?php
/**
* Project Name: map-board
* File Name: create_benchmark_fixture.php
* Last modified: 2017/11/20 12:51
* Author: Hiroaki Goto
*
* Copyright (c) 2017 Hiroaki Goto. All rights reserved.
*/
require_once __DIR__.'/../vendor/autoload.php';
$db = connectDB();
$redis = connectRedis();
const USER_SIZE = 1000... | PHP | database/create_benchmark_fixture.php | StoneDot/map-board | apache-2.0 | 3,643 | 119 | codeparrot/github-code |
c23bfaae2355316f74c7db9820bba16d78a7be81af5ea28f88d3439edba016b3 | /**
* 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 | sharelib/spark/src/main/java/org/apache/oozie/action/hadoop/SparkArgsExtractor.java | cbaenziger/oozie | apache-2.0 | 22,247 | 467 | codeparrot/github-code |
ae4825c51af42ca0857ccfba9f7a188c59391b82bba5380ae185dd719ca45ed5 |
package com.common.dao;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.logging.Logger;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceException;
/**
* La Clase BaseDAO implementa las operaciones... | Java | ServicioReparaciones-ejb/src/main/java/com/common/dao/BaseDAO.java | ServicioReparaciones/ServicioReparaciones | apache-2.0 | 2,845 | 95 | codeparrot/github-code |
f058335790383490f7e97a89f8e7d4e1448cd3720574eabf12f0ef2197d5b330 | /*
* Copyright (C) 2017-2019 Dremio 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 l... | Java | sabot/kernel/src/main/java/com/dremio/exec/planner/sql/parser/SqlTruncateTable.java | dremio/dremio-oss | apache-2.0 | 3,280 | 97 | codeparrot/github-code |
99e2c10f0df02a787e05cf24b9b6e337190d3b8e22d298d6417da14e5f3a61ce | /*
* 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/src/test/java/alluxio/StorageTierAssocTest.java | bit-zyl/Alluxio-Nvdimm | apache-2.0 | 3,480 | 88 | codeparrot/github-code |
3340724ff9d154b823ebac80bb042a2f5ff581afc85e4f9d243e47aa49801b7c | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | Java | asterix-maven-plugins/lexer-generator-maven-plugin/src/main/java/edu/uci/ics/asterix/lexergenerator/rules/RuleAnythingUntil.java | parshimers/incubator-asterixdb | apache-2.0 | 2,007 | 65 | codeparrot/github-code |
b1e351d6477f6488a9d321484e4012582e5cd9ca292eae5ce62778f8d8d6f4b1 | package com.netwebx.hackerrank.rpc.client;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.net.InetSocketAddress;
import java.net.Socket;
/**
* Created by apple on 2017/2/26.
... | Java | src/main/java/com/netwebx/hackerrank/rpc/client/RpcImporter.java | WengJunFeng/hackerrank_java | apache-2.0 | 2,053 | 54 | codeparrot/github-code |
6dadd0d807c8c057150625b7aad50f3783e5d4f3227dcf401b87a45ac9151ffa | require 'adrian/queue'
require 'fileutils'
module Adrian
class DirectoryQueue < Adrian::Queue
include Filters
def self.create(options = {})
queue = new(options)
FileUtils.mkdir_p(queue.available_path)
FileUtils.mkdir_p(queue.reserved_path)
queue
end
attr_reader :available_pa... | Ruby | lib/adrian/directory_queue.rb | staugaard/adrian | apache-2.0 | 2,384 | 95 | codeparrot/github-code |
26f4072630a01c6ee0d1c1541338b14425bd2d4c6f9321c8a4b6c6aa1f8eb768 | package com.oath.cyclops.internal.stream.spliterators.push;
import com.oath.cyclops.types.persistent.PersistentCollection;
import java.util.Collection;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
/**
* Created by j... | Java | cyclops/src/main/java/com/oath/cyclops/internal/stream/spliterators/push/GroupedByTimeOperator.java | aol/cyclops | apache-2.0 | 4,567 | 138 | codeparrot/github-code |
3f1f8d40488b46ca0e8d73bd04bf0e38ba28e842079b435d266a2212418dd121 | package net.tcp.socket;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
/**
* 必须先启动服务器 后连接 1、创建服务器 指定端口 ServerSocket(int port) 2、接收客户端连接 3、发送数据+接收数据
*
*/
public class Server {
/**
* @param args
* @throws IOException
*/
public static void ... | Java | src/net/tcp/socket/Server.java | zhangxx0/Java_Topic_prictice | apache-2.0 | 899 | 42 | codeparrot/github-code |
41ea6864ad0a715382045cd2e0768a435b80fbaa49d0a6c0896053a8b8b29ff1 | /*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Fo... | Java | advanced/management/src/main/java/org/neo4j/management/impl/KernelProxy.java | HuangLS/neo4j | apache-2.0 | 8,016 | 241 | codeparrot/github-code |
2ebfeec989c69b0fb060ede81f9c0e726030f8d0ad3e2292b5d8e21c20bd2b47 | package de.mhus.cha.cao.action;
import java.io.File;
import de.mhus.lib.cao.CaoElement;
import de.mhus.lib.cao.CaoException;
import de.mhus.lib.cao.CaoList;
import de.mhus.lib.cao.CaoMonitor;
import de.mhus.lib.cao.CaoOperation;
import de.mhus.cap.core.Access;
import de.mhus.cha.cao.ChaConnection;
import de.mhus.cha.... | Java | de.mhus.hair/hair3/de.mhus.cha.app/src/de/mhus/cha/cao/action/CopyToOperation.java | mhus/mhus-inka | apache-2.0 | 3,411 | 135 | codeparrot/github-code |
1a710d88f38f3e8276a39c6f93af45a8ef92c828900522dc7cb4fea4d9aaa499 | /*
* 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 | phoenix-core/src/main/java/org/apache/phoenix/util/csv/CsvUpsertExecutor.java | ohadshacham/phoenix | apache-2.0 | 10,075 | 237 | codeparrot/github-code |
a3f0c69dff83ba6d61740e1e449ccaa0534f18685c6a671bf21366602e9e6f62 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | Java | drools-reteoo/src/main/java/org/drools/reteoo/common/ReteWorkingMemory.java | mrietveld/drools | apache-2.0 | 9,985 | 270 | codeparrot/github-code |
0e0dc3d87a12191a7feb9016a8d0a739258eca6e8a6691ecb413015ef301bc76 | package jp.hashiwa.elasticsearch.authplugin;
import org.apache.logging.log4j.Logger;
import org.elasticsearch.client.node.NodeClient;
import org.elasticsearch.common.bytes.BytesArray;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.logging.Loggers;
import org.elasticsearch.rest.*;... | Java | src/jp/hashiwa/elasticsearch/authplugin/AuthRestHandler.java | hashiwa000/Elasticsearch-Auth-Plugin | apache-2.0 | 2,877 | 96 | codeparrot/github-code |
f51e48f2126e4f94f310e852681d85c27de5828dded3d7abb5895d4e44d3bab7 | /*
* Copyright (c) 2010 Yahoo! 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 req... | Java | src/main/java/io/s4/persist/ConMapPersister.java | s4/core | apache-2.0 | 5,403 | 189 | codeparrot/github-code |
3bfc993559e4cbcb1ad7c4872d01f6831b9e11d0f90f11e8fd589ac095900427 | /*******************************************************************************
* Copyright 2016 Francesco Calimeri, Davide Fusca', Simona Perri and Jessica Zangari
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... | C | src/grounder/statement/GroundingPreferences.h | DeMaCS-UNICAL/I-DLV | apache-2.0 | 4,920 | 142 | codeparrot/github-code |
1e8f0461375b766742adbe30e5a2742479d7640ac191873b332e76d414060b8a | package com.bagri.server.hazelcast.task.schema;
import static com.bagri.core.Constants.pn_schema_password;
import static com.bagri.server.hazelcast.serialize.TaskSerializationFactory.cli_UpdateSchemaTask;
import static com.bagri.support.security.Encryptor.encrypt;
import java.io.IOException;
import java.util.P... | Java | bagri-server/bagri-server-hazelcast/src/main/java/com/bagri/server/hazelcast/task/schema/SchemaUpdater.java | dsukhoroslov/bagri | apache-2.0 | 2,552 | 94 | codeparrot/github-code |
ae392dc269b962eac8a82aaf427aa2bd10cebff68462499a1ec39b15e1421ee2 | package uk.co.bluegecko.core.swing.table.rendering;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.awt.Color;
import java.awt.Font;
import org.junit.Before;
import ... | Java | core-swing/src/test/java/uk/co/bluegecko/core/swing/table/rendering/RenderingHintTest.java | caveman-frak/java-core | apache-2.0 | 4,586 | 165 | codeparrot/github-code |
cc185cdc630d5fd4c7f8b1e75ae52f7ee06028a613e0989154fab35e2ece8051 | /*
* Copyright 2015-2016 DevCon5 GmbH, info@devcon5.ch
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | cli/src/test/java/io/devcon5/cli/CLIExample.java | devcon5io/common | apache-2.0 | 1,919 | 77 | codeparrot/github-code |
0c5b5bd1180bdeb560e7f1ed155fcb9e5e0b66da64fe5d3ed1249ce26bb93e7b | /*
* 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 app... | Java | src/main/java/org/docksidestage/app/web/product/ProductSearchForm.java | dbflute-session/lastaflute-test-catalog | apache-2.0 | 1,252 | 40 | codeparrot/github-code |
f91e488b37a80da030286329977ca73ed6991a44bd63dbf79d5d8715fe4be20f | // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | Rust | core/arc.rs | thestinger/rust-core | apache-2.0 | 3,527 | 138 | codeparrot/github-code |
c658d4252cd93cd028a59f7fd432824ed361d2c84d6f4107dc0981a215bb6c06 | package com.flora.support;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Map;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.context.Context;
impor... | Java | src/main/java/com/flora/support/VelocityTemplate.java | liqilun/flora | apache-2.0 | 1,644 | 58 | codeparrot/github-code |
c3a55393b03ff98d30779d83e7381c362893814b794dd1fb6b0d9fce395160f7 | package org.apache.lucene.search;
/**
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... | Java | src/java/org/apache/lucene/search/WildcardTermEnum.java | lpxz/grail-lucene358684 | apache-2.0 | 5,708 | 199 | codeparrot/github-code |
05555f782ad78ab4d4833d71be00868c716dbeedd4f5ae306dba32bdfa989687 | package com.github.ayltai.foscam.client;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import android.support.annotation.NonNull;
import android.support.annotation.VisibleForTesting;
import android.support.v4.util.Pair;
import rx.Subscriber;
import rx.Subscription;
import rx.subjects.Publ... | Java | app/src/main/java/com/github/ayltai/foscam/client/RxBus.java | ayltai/Foscam-CGI-Client | apache-2.0 | 2,141 | 63 | codeparrot/github-code |
569df19c91aae05fbbe3ba046dceda0773bbcf7d49af109d801e0782bc296ed7 | # Copyright 2019 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | Python | timesketch/lib/aggregators/term.py | google/timesketch | apache-2.0 | 7,953 | 232 | codeparrot/github-code |
613e79ec8f0c6543782b1833b602363d89adedb79e054c03c53aa61493d9634b | <?php
/**
* HiPay fullservice Magento2
*
* NOTICE OF LICENSE
*
* This source file is subject to the Apache 2.0 Licence
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* http://www.apache.org/licenses/LICENSE-2.0
*
* @copyright Copyrig... | PHP | Model/Request/ThreeDS/BrowserInfoFormatter.php | hipay/hipay-fullservice-sdk-magento2 | apache-2.0 | 4,402 | 113 | codeparrot/github-code |
bde9d8def2adc8df2f53a66a52f0bdf735952289fdd3acc93a9a815abe86efa1 | package com.github.andriell.collection;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by Andrey on 13.02.2016
*/
public class HashThreeTest {
public static void main(String[] args) {
HashThreeTest test = new HashThreeTest();
test.test1();
}
@Test
... | Java | src/test/java/com/github/andriell/collection/HashThreeTest.java | andriell/craftyfox | apache-2.0 | 2,540 | 80 | codeparrot/github-code |
dd4e76a2fa7bcb81499f1880af8ceedccc23d38b299bc59e4a1f6d43dcc445bd | package com.ryanharter.auto.value.moshi.example;
import com.google.auto.value.AutoValue;
import com.squareup.moshi.JsonAdapter;
import com.squareup.moshi.Moshi;
import java.lang.reflect.Type;
@AutoValue public abstract class GenericsExample<A, B, C> {
public abstract A a();
public abstract B b();
public... | Java | example/src/main/java/com/ryanharter/auto/value/moshi/example/GenericsExample.java | rharter/auto-value-moshi | apache-2.0 | 870 | 31 | codeparrot/github-code |
014baaa01e06cb39a1efe340071658f5ee31517294506e725ece2df78f97fc4c | # Copyright 2020 Department of Computational Biology for Infection Research - Helmholtz Centre for Infection Research
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Li... | Python | src/plots.py | CAMI-challenge/AMBER | apache-2.0 | 26,475 | 590 | codeparrot/github-code |
3d99ddae13d2e58ce0677da9d2a162868ae70e2961b123732f7c9f64a7afd36a | package web.magic.jvm;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.lang.reflect.UndeclaredThrowableException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.... | Java | WebMagic/src/test/java/web/magic/jvm/MBeanTyper.java | liufeiit/WebMagic | apache-2.0 | 4,284 | 133 | codeparrot/github-code |
5f8db9423a0922c61d188b2ae73a82abf838279ada2e330cc52a5d8e05990dbd | // ----------------------------------------------------------------------------
// Module initialization
var Config = require("config").config;
var utils = require("utils");
var validators = require("validators");
// ----------------------------------------------------------------------------
// Setting class.
functio... | JavaScript | app/controllers/setting.js | garlictech/APIXMobil | apache-2.0 | 2,314 | 73 | codeparrot/github-code |
b75736b7b7a819211a95c67d69bf8fa842523477dadb607cfd5b154b944a12a7 | package eu.dowsing.kolla.widget.brick.facade;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.shape.CircleBuilder;
import javafx.scene.shape.Rectangle;
import javafx.scene.shape.RectangleBuilder;
import com.leapmotion.leap.Hand;
import eu.dowsin... | Java | src/main/java/eu/dowsing/kolla/widget/brick/facade/BrickView.java | N0rp/Snabb | apache-2.0 | 6,215 | 181 | codeparrot/github-code |
2e98a1290ae6344356b382370fe6967aa800cbd36489997ae2e90ab80eba01e8 | import os
import datetime
from jinja2 import Environment,PackageLoader,TemplateNotFound
from hotzenplotz.openstack.common import cfg
from hotzenplotz.openstack.common import log as logging
from hotzenplotz.openstack.common import utils
from hotzenplotz.common import exception
from hotzenplotz.api import validator
L... | Python | hotzenplotz/worker/driver/cron.py | NewpTone/hotzenplotz | apache-2.0 | 6,103 | 180 | codeparrot/github-code |
0f9eac57292fd0b7dcc983c3ad5dabf789b5df23bdd2996cbc19815b39cd9111 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C++ | aws-cpp-sdk-sagemaker/source/model/ListProcessingJobsResult.cpp | cedral/aws-sdk-cpp | apache-2.0 | 1,877 | 60 | codeparrot/github-code |
7b4fd884fe84aaef160cc40c84b6684c75b0b88c38414bcb27f9f324e573e436 | #region License Header
/*
* QUANTLER.COM - Quant Fund Development Platform
* Quantler Core Trading Engine. Copyright 2018 Quantler B.V.
*
* 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:... | C# | Quantler/Data/Corporate/Dividend.cs | Quantler/Core | apache-2.0 | 2,023 | 71 | codeparrot/github-code |
5ffa7e0e76013317c2cc24ac36b85d346bcd25c14977932b2c9d9543d3b23b4e | /// <reference path="./fabricPlugin.ts"/>
/// <reference path="./profileHelpers.ts"/>
/// <reference path="./containerHelpers.ts"/>
/// <reference path="../../helpers/js/storageHelpers.ts"/>
/// <reference path="../../helpers/js/controllerHelpers.ts"/>
/// <reference path="../../helpers/js/selectionHelpers.ts"/>
/// <r... | TypeScript | hawtio-web/src/main/webapp/app/fabric/js/containerView.ts | mposolda/hawtio | apache-2.0 | 8,985 | 234 | codeparrot/github-code |
425c39a73308685a401b366dddee99dd5c46b7881bde72fc548d97c409033f77 | package io.dropwizard.jetty;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.jetty9.InstrumentedConnectionFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.dropwizard.configuration.ResourceConfigurationSourceProvider;
import io.dropwizard.configuration.YamlConfigurationFact... | Java | dropwizard-jetty/src/test/java/io/dropwizard/jetty/HttpConnectorFactoryTest.java | phambryan/dropwizard | apache-2.0 | 12,103 | 244 | codeparrot/github-code |
376285faa28725f1d1158b4ffc6cd2bcef9e90fe5d69ce287de7fad8482823f1 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/krb5/krb/pac.c */
/*
* Copyright 2008 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* ... | C | kerberos/kdc/src/krb5-1.16/src/lib/krb5/krb/pac.c | gerritjvv/cryptoplayground | apache-2.0 | 34,236 | 1,252 | codeparrot/github-code |
52e349f31f0f098da9371d82220aa5b5c6a6f05782978f4006f1d2bac648e851 | package com.p.service;
import java.util.Collection;
import java.util.Optional;
import java.util.Random;
import java.util.UUID;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | Java | src/main/java/com/p/service/UsersService.java | david-romero/Pachanga | apache-2.0 | 5,484 | 207 | codeparrot/github-code |
170e5dd9ab0a4046ab8f0906be3a44a4f4287448ae1ba8bceb665ef0328f0473 | (function() {
'use strict';
angular
.module('fitappApp')
.controller('RequestResetController', RequestResetController);
RequestResetController.$inject = ['$timeout', 'Auth'];
function RequestResetController ($timeout, Auth) {
var vm = this;
vm.error = null;
vm... | JavaScript | src/main/webapp/app/account/reset/request/reset.request.controller.js | tomkasp/fitapp | apache-2.0 | 1,089 | 39 | codeparrot/github-code |
f4aade08e2168a4acaf1ed91c9a6ef8da15f41efedbe74a173a0849c440068e7 | #-*- encoding: utf-8 -*-
import csv, math, time, re, threading, sys
try:
from urllib.request import urlopen
except ImportError:
from urllib import urlopen
class ErAPI():
# Metodo constructor, seteos basicos necesarios de configuracion, instancia objetos utiles
def __init__(self):
self.data = ... | Python | erapi.py | CPedrini/TateTRES | apache-2.0 | 11,008 | 290 | codeparrot/github-code |
d64be95972584ef7ecb8fcce3089346d1b68aad93470741a9f2ca44e4555ca7f | <!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>amod</title>
<link rel="roo... | HTML | uk/dep/amod.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 8,934 | 267 | codeparrot/github-code |
4baa4bd09c68e8b9f5c61e374db62743c16d5ad51a9bbe858b41885445ffffc3 | package org.apache.solr.cloud;
/*
* 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 ... | Java | solr/core/src/test/org/apache/solr/cloud/ShardSplitTest.java | halentest/solr | apache-2.0 | 11,050 | 271 | codeparrot/github-code |
73fbce55212e6c2f9234f50b7a7d633023edd79417ff7d31b76336538c06974d | package org.zstack.header.identity;
import org.zstack.header.message.APICreateMessage;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
@NeedRoles(roles = {IdentityRoles.CREATE_POLICY_ROLE})
public class APICreatePolicyMsg extends APICreateMessage implements AccountMessag... | Java | header/src/main/java/org/zstack/header/identity/APICreatePolicyMsg.java | SoftwareKing/zstack | apache-2.0 | 1,059 | 44 | codeparrot/github-code |
6033f50f2737c9ca4a7b8129e2de0f6f5722699d4c6d0a9123dbe64ff5d81605 | =head1 LICENSE
See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/l... | Perl | modules/Bio/EnsEMBL/Compara/PipeConfig/EPO_conf.pm | Ensembl/ensembl-compara | apache-2.0 | 7,494 | 190 | codeparrot/github-code |
76e0850c0513af3cee69e6f896913fe7872eb0e76a97dc4b40ac7837635a72af | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | C | src/core/transport/http/common/http_simple_response.c | axbannaz/axis2-c | apache-2.0 | 18,252 | 616 | codeparrot/github-code |
28a7293fb874287b09648d17d852fd249afddf3d5a4dcd1a62ea823779e09925 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.service.base.client;
import net.sf.mmm.service.api.RemoteInvocationCall;
import net.sf.mmm.util.lang.api.function.Consumer;
/**
* This is a simple container for the data... | Java | base/src/main/java/net/sf/mmm/service/base/client/RemoteInvocationCallData.java | m-m-m/service | apache-2.0 | 2,216 | 77 | codeparrot/github-code |
c9c941a6af0c965477547d7bcdad9a386e03b6e8ede473c6d1a261e2077ac40f | /*
* Created on May 17, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Art... | Java | src/org/parosproxy/paros/view/AbstractFrame.java | GillesMoris/OSS | apache-2.0 | 10,722 | 322 | codeparrot/github-code |
eadb343c6d0d639f4872a9ff145ab3ad78ed7f30a42193f39fbddad6897c5a2e | /**
* FreeRDP: A Remote Desktop Protocol Client
* RDP Security
*
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@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
*
* ... | C | libfreerdp-core/security.c | mister-r/FreeRDP | apache-2.0 | 18,889 | 541 | codeparrot/github-code |
f11f8ad13e2af3671e9e3e45fd06252d80982fe9b59a03e1922ebddefa862299 | /**
* Copyright 2020 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | ambry-mysql/src/integration-test/java/com/github/ambry/accountstats/AccountStatsMySqlStoreIntegrationTest.java | cgtz/ambry | apache-2.0 | 46,523 | 859 | codeparrot/github-code |
e8e53e83334d9d15ac8f432225c6d9a68a8a125183eabe4a8d68533875f23a1a | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Planner/Optimizer</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REV="MADE"
HREF="mailto:pgsql-docs@postgresql.org"><LINK
REL="HOME"
TITLE="PostgreSQL... | HTML | pgsql/doc/postgresql/html/planner-optimizer.html | ArcherCraftStore/ArcherVMPeridot | apache-2.0 | 9,394 | 383 | codeparrot/github-code |
6cce6cb0832944a60e156ae1f42795f59e4e6adb611e5311d25bf35a36ba3377 | /******************** (C) COPYRIGHT 2012 WildFire Team **************************
* 文件名 :main.c
* 描述 :华邦 2M串行flash测试,并将测试信息通过串口1在电脑的超级终端中打印出来。
* 实验平台:野火STM32开发板
* 库版本 :ST3.5.0
*
* 作者 :wildfire team
* 论坛 :http://www.amobbs.com/forum-1008-1.html
* 淘宝 :http://firestm32.taobao.com
***********... | C | Gateway_STM32/user/System/SPI/main.c | sdlylshl/Gateway | apache-2.0 | 3,392 | 134 | codeparrot/github-code |
bb3f94f6ab53bd46ba813b83511b43dc5e30162fc1ff5e5e9f38d73e52abb56a | <?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>Conductor - ScalaTest 2.1.7 - org.scalatest.concurrent.Conductor</title>
<meta name="description" content="Conductor - ScalaTest 2.1.7... | HTML | public/scaladoc/2.1.7/org/scalatest/concurrent/Conductor.html | scalatest/scalatest-website | apache-2.0 | 51,895 | 791 | codeparrot/github-code |
1f77e82963b58d235b6bfd28f91e7c0ffdfe4ef8f8bb876c91f13ba89e8d396c | package info.novatec.testit.webtester.support.assertj;
import static info.novatec.testit.webtester.support.assertj.WebTesterAssertions.assertThat;
import static org.mockito.Mockito.doReturn;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.ru... | Java | webtester-support-assertj/src/test/java/info/novatec/testit/webtester/support/assertj/RadioButtonAssertTest.java | dbe-it/webtester-core | apache-2.0 | 1,213 | 51 | codeparrot/github-code |
494c266ff35ae69e48b45f7370420d1cb73513ffba8e263669dfdaca557fbb9f | package com.jt.test.sort;
import java.util.Arrays;
import java.util.Random;
/**
* since 2016/10/19.
*/
public class Select {
public static void sort(Comparable[] data) {
for (int i = 0; i < data.length; i++) {
int min = i;
for (int j = i+1; j < data.length; j++) {
... | Java | new-man/src/test/java/com/jt/test/sort/Select.java | jt120/algorithm | apache-2.0 | 1,378 | 62 | codeparrot/github-code |
0826e31eff809e3887655d00b56b024ff93b732737172ac9e36261ee2965e6c0 | /*
* Copyright 2000-2008 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 agreed ... | Java | plugins/groovy/test/org/jetbrains/plugins/groovy/lang/actions/updown/GroovyMoveStatementTest.java | jexp/idea2 | apache-2.0 | 4,349 | 107 | codeparrot/github-code |
256a3a3ffaf3b4d8687da3c4171a64ebe0c64ad4da68b40392323c2db1cda9a9 | package org.apereo.cas.web.report;
import org.apereo.cas.web.report.util.ControllerUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.endpoint.mvc.AbstractNamedMvcEndpoint;
import org.springframework.cloud.bus.BusProperties;
import org.springframework.cloud.co... | Java | support/cas-server-support-reports/src/main/java/org/apereo/cas/web/report/ConfigurationStateController.java | gabedwrds/cas | apache-2.0 | 1,890 | 54 | codeparrot/github-code |
66cd761b17d6a38ab65aa28b7421653a4b5a65b8006d6f0d3c7e882b6cd040f2 | package com.canoo.ant.table;
import com.canoo.ant.filter.AllEqualsFilter;
import com.canoo.ant.filter.AllFilter;
import com.canoo.ant.filter.ITableFilter;
import org.apache.log4j.Logger;
import java.io.File;
import java.io.IOException;
import java.util.*;
public abstract class APropertyTable implements IPropertyTabl... | Java | src/main/java/com/canoo/ant/table/APropertyTable.java | lukecampbell/webtest | apache-2.0 | 8,495 | 240 | codeparrot/github-code |
ce9a4f508331172d5be18b0a5694cb6f5a75c6129487f9b72869760bc9d6634e | // For conditions of distribution and use, see copyright notice in LICENSE
#include "StableHeaders.h"
#include "ZipAssetBundle.h"
#include "ZipHelpers.h"
#include "ZipWorker.h"
#include "CoreDefines.h"
#include "Framework.h"
#include "FrameAPI.h"
#include "AssetAPI.h"
#include "AssetCache.h"
#include "LoggingFunction... | C++ | src/Plugins/ZipPlugin/ZipAssetBundle.cpp | realXtend/tundra-urho3d | apache-2.0 | 7,865 | 239 | codeparrot/github-code |
84ddf43fe78eb0d818f346c77e6233997fa616d4ac9b998b84f4c0ae40f337b2 | /*
* Copyright 2019 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 agreed to... | Java | google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractResultSet.java | looker-open-source/java-spanner | apache-2.0 | 50,481 | 1,425 | codeparrot/github-code |
b8c2499e9803c70c9f8183446e3da0988d6525a160e0f84a93a2ad9f46a98183 | /*
* Copyright 2010 The Closure Compiler 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... | Java | test/com/google/javascript/jscomp/SpecializeModuleTest.java | JonathanWalsh/Granule-Closure-Compiler | apache-2.0 | 16,009 | 524 | codeparrot/github-code |
1a05bc75cdde0209433a95f9bf3bfb84219966678d2d27f51ff1a9e66c20665a | 'use strict';
const { extend } = require('underscore');
const dbclient = require('abacus-dbclient');
const { testCollectedUsageID, testResourceID, testOrganizationID, testSpaceID, testConsumerID, testPlanID,
testResourceType, testAccountID, testMeteringPlanID, testRatingPlanID,
testPricingPlanID } = require('./f... | JavaScript | lib/aggregation/aggregator/src/test/usage-builder.js | cloudfoundry-incubator/cf-abacus | apache-2.0 | 2,638 | 72 | codeparrot/github-code |
0e8cc85f1edc5d915e6b22a951821caa82dc9868ab046301fa4bc833890729c8 | package com.rbmhtechnology.eventuate.chaos
import akka.actor.ActorSystem
import akka.actor.Props
import akka.pattern.BackoffSupervisor
import com.rbmhtechnology.eventuate.ReplicationConnection
import com.rbmhtechnology.eventuate.ReplicationEndpoint
import com.typesafe.config.ConfigFactory
import scala.concurrent.dura... | Scala | src/main/scala/com/rbmhtechnology/eventuate/chaos/ChaosSetup.scala | RBMHTechnology/eventuate-chaos | apache-2.0 | 1,847 | 59 | codeparrot/github-code |
28fb948b3acde50b6e93625c68f88d03ae204bbe6ff077fdbae031b22ce94428 | package me.tatarka.timesync.lib;
import android.content.Context;
import java.util.Arrays;
/**
* A class for interacting with a {@link TimeSync}. You can get and set it's configuration, and
* force it to sync immediately. Ta get an instance of the class for a given {@link TimeSync}, use
* {@link TimeSync#get(andro... | Java | lib/src/main/java/me/tatarka/timesync/lib/TimeSyncProxy.java | evant/timesync | apache-2.0 | 2,035 | 71 | codeparrot/github-code |
9023709b53744bdae661554efdb135d82ac182ca8018348c72fd9d013c9691d7 | package semver
import (
"fmt"
"strings"
"github.com/blang/semver"
"github.com/pivotal-cf/go-pivnet/v7/logger"
)
type SemverConverter struct {
logger logger.Logger
}
func NewSemverConverter(logger logger.Logger) *SemverConverter {
return &SemverConverter{logger}
}
// ToValidSemver attempts to return the input... | GO | semver/semver.go | pivotal-cf-experimental/pivnet-resource | apache-2.0 | 1,101 | 54 | codeparrot/github-code |
fed37e7f09401f6fb0993f6ae058d4d6197306681d173b572a9cc0d4d24d0607 | /**
* jetbrick-template
* http://subchen.github.io/jetbrick-template/
*
* Copyright 2010-2014 Guoqiang Chen. All rights reserved.
* Email: subchen@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 ... | Java | src/main/java/jetbrick/template/resource/SourceCodeResource.java | subchen/jetbrick-template-1x | apache-2.0 | 1,846 | 68 | codeparrot/github-code |
0959f6ad0ec3592d5412a2632bc9b6066aa1fedd0926bc51aa0d1763d9184ac9 | <?php
namespace Bigbank\Gcm;
/**
* Gcm response parser
*/
class Response
{
/**
* Unique ID (number) identifying the multicast message.
*
* @var integer
*/
private $multicastId = null;
/**
* Unique id identifying the single message.
*
* Only have value if single or top... | PHP | src/Bigbank/Gcm/Response.php | bigbank-as/GCM | apache-2.0 | 6,729 | 262 | codeparrot/github-code |
8196df8bda855c2fe58bba9b073b320dea3050288c2ec55c228333e0f58578ca | package org.jboss.examples.ticketmonster.model;
import static javax.persistence.CascadeType.ALL;
import static javax.persistence.FetchType.EAGER;
import static javax.persistence.GenerationType.IDENTITY;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
impo... | Java | git/monster/src/main/java/org/jboss/examples/ticketmonster/model/Venue.java | jim-minter/ose3-demos | apache-2.0 | 4,603 | 188 | codeparrot/github-code |
978b76de5e0ecc5892e7df22b846ae6a2d6d5b751ce0c563ba7a0157b7dfe078 | import re
import unicodedata
from collections import defaultdict
from typing import Any, Dict, List, Optional, Sequence, Union
from django.conf import settings
from django.core.exceptions import ValidationError
from django.db.models.query import QuerySet
from django.forms.models import model_to_dict
from django.utils.... | Python | zerver/lib/users.py | punchagan/zulip | apache-2.0 | 21,312 | 560 | codeparrot/github-code |
0d247cfde7557c03e6282c7144001a400e3c1aed2d0885aae69916fc9fa7c35e | <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Test Page for sap.m.CheckBox</title>
<script src="../shared-config.js"></script>
<script id="sap-ui-bootstrap" data-sap-ui-noConflict="true"
data-sap-ui-libs="sap.m" src="../../../../resources/sap-ui-core.js">
</script>
<link ... | HTML | src/sap.m/test/sap/m/qunit/CheckBox.qunit.html | olirogers/openui5 | apache-2.0 | 24,667 | 746 | codeparrot/github-code |
795cf3000d46d5ac9d1ea13b89a07be91400094bfaa73a5c371210374baf4bc4 | <!DOCTYPE html >
<html>
<head>
<title>SeeStackDepthException - ScalaTest 3.0.2 - org.scalatest.events.SeeStackDepthException</title>
<meta name="description" content="SeeStackDepthException - ScalaTest 3.0.2 - org.scalatest.events.SeeStackDepthException" />
<meta name="keywords" co... | HTML | public/scaladoc/3.0.2/org/scalatest/events/SeeStackDepthException$.html | scalatest/scalatest-website | apache-2.0 | 25,940 | 480 | codeparrot/github-code |
fdc295da04db3ea4c9f378f188ac1490810dff7fdfedd81ece46e6c9f0889b15 | # Copyright 2013 Donald Stufft
#
# 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... | Python | warehouse/search/indexes.py | mattrobenolt/warehouse | apache-2.0 | 3,926 | 132 | codeparrot/github-code |
a372c682a36dc130b37a75b113ef0232471915e474ad6c9a7e875fc368befd5d | /*
* 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/test/java/org/elasticsearch/action/support/master/TransportMasterNodeActionTests.java | palecur/elasticsearch | apache-2.0 | 16,875 | 363 | codeparrot/github-code |
d4dcf6e4975851336f6728f197e8823fb76445862a803921499e200c0130bfb9 | /*
* Copyright 2000-2016 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/platform-api/src/com/intellij/ui/components/JBScrollPane.java | hurricup/intellij-community | apache-2.0 | 33,437 | 834 | codeparrot/github-code |
bcc197c4f17483a8f3aa902ec2268fa78d28253f16e54380079520ea497c3fa6 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>SQLite Database File Format Requirements</title>
<style type="text/css">
body {
margin: auto;
font-family: "Verdana" "sans-serif";
padding: 8px 1%;
}
a { color: #45735f }
a:visited { color: #73455... | HTML | 1 - analisis de requisitos/SQLite/sqlite-3_6_14-docs/hlr30000.html | josejamilena/pfc-jose | apache-2.0 | 78,228 | 1,947 | codeparrot/github-code |
531a46265c89e4f90a22b8787647bf1a0e4945b9872df8c4d690b93cc6de4ac6 | package cn.xishan.oftenporter.porter.core.init;
import cn.xishan.oftenporter.porter.core.advanced.IConfigData;
import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author Created by https... | Java | Porter-Core/src/main/java/cn/xishan/oftenporter/porter/core/init/DealSharpProperties.java | gzxishan/OftenPorter | apache-2.0 | 8,712 | 260 | codeparrot/github-code |
8bb073ddd3c03dcef83266bcae17c56f54c9e0b5f49da3e7c3981fcef22f20b4 | package dk.dbc.kafka.dispatch.sources;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.Optional;
/**
* Source for reading InputStreams line-by-line
* @author Adam Tulinius
*/
public c... | Java | src/main/java/dk/dbc/kafka/dispatch/sources/InputStreamSource.java | DBCDK/kafka-dispatch | apache-2.0 | 818 | 31 | codeparrot/github-code |
09c8796f036d15d8cb90475422a5216bf19a1ec66cc860862d3c34a13b1129a8 | package com.planet_ink.coffee_mud.Commands;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com... | Java | com/planet_ink/coffee_mud/Commands/Go.java | robjcaskey/Unofficial-Coffee-Mud-Upstream | apache-2.0 | 16,256 | 500 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.