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 |
|---|---|---|---|---|---|---|---|---|
d8f9a1770ed78f10d8ea63cd50753092222598c238a06e80719d8d8ea1ecfa90 | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | Java | components/org.wso2.carbon.identity.user.export.core/src/test/java/org/wso2/carbon/identity/user/export/core/internal/service/impl/UserInformationServiceImplTest.java | IsuraD/identity-governance | apache-2.0 | 2,371 | 63 | codeparrot/github-code |
06bde7e245ebe4c5ee52b03622602c729d37c3fc2dcc443cfab4591ff4cd996e | /*
* Copyright 2016 Open Networking Laboratory
*
* 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 la... | Java | drivers/optical/src/main/java/org/onosproject/driver/optical/handshaker/OplinkRoadm.java | wuwenbin2/onos_bgp_evpn | apache-2.0 | 16,099 | 377 | codeparrot/github-code |
0e501f904eb2395da69fbdc2869b519ae99420748ef110e19e55aa23bd3b3975 | //
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | Java | jetty-servlet/src/main/java/org/eclipse/jetty/servlet/StatisticsServlet.java | whiteley/jetty8 | apache-2.0 | 12,342 | 248 | codeparrot/github-code |
b7c8be88245a7a33a0e2636dae271a177261a9a4655a21f6bf0b0ee74a44d0b9 | /*
* 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/DataProcessing.cpp | cedral/aws-sdk-cpp | apache-2.0 | 2,253 | 101 | codeparrot/github-code |
fbdc10e8ce5e80442c60b2b97816bad3effb7d3fbc15c98f9a8e658442100080 | /*
* 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 | Core/src/main/java/dk/statsbiblioteket/summa/common/shell/commands/Clear.java | statsbiblioteket/summa | apache-2.0 | 1,299 | 41 | codeparrot/github-code |
7da17a5beea3eedcc5e6ee10ae9b6612d3b256ec332af1199eee403b9c15a284 | /*
* Copyright 2015 herd contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | Java | herd-code/herd-service/src/main/java/org/finra/herd/service/activiti/task/GetBusinessObjectData.java | kusid/herd | apache-2.0 | 5,500 | 113 | codeparrot/github-code |
ed1de38c55f153d278e11ae43df0d3a841bd6ea5cf6e0c7b5a1da0c5a8df74a8 | /*
* Copyright 2016 Dmitry Rymarev
*
* 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 | tir-rx/src/main/java/com/dmitryrymarev/tir/rx/internal/Preconditions.java | drymarev/tir | apache-2.0 | 1,140 | 41 | codeparrot/github-code |
8e6cd20430f6e3a2c6ec116ef447b5e2bf0a2e110ecaf4ef1b99a22199a131b8 | //
// ReadDetailDB.h
// Leisure
//
// Created by 沈强 on 16/4/11.
// Copyright © 2016年 SQ. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <FMDB.h>
#import "DBManager.h"
#import "ReadDetailListModel.h"
@interface ReadDetailDB : NSObject
@property (nonatomic, strong) FMDatabase *dataBase;
/** 创建数... | C | Leisure/Leisure/CodeClass/Read/Models/ReadDetailDB.h | empty-sq/Leisure | apache-2.0 | 559 | 31 | codeparrot/github-code |
098c6d3c146eb7a6047c9f80a0f37db4b2b51f46f82fb82c151bc32589350afd | /*
* Copyright 2017 - 2019 Roman Borris (pcfreak9000), Paul Hagedorn (Panzer1119)
*
* 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/... | Java | src/main/java/de/omnikryptec/old/net/Client.java | OmniKryptec/OmniKryptec-Engine | apache-2.0 | 7,855 | 264 | codeparrot/github-code |
4bd58d2169767908e3b77958eb57e14db03d6d1cdb3322694ed34c80504449ae | /*
* 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-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/BatchPutMessageErrorEntry.java | aws/aws-sdk-java | apache-2.0 | 7,787 | 250 | codeparrot/github-code |
a339268c293e7b597b47730dd6cfdf2c2c7b10399a42a94fba5405c9cb35ea65 | package org.gwisoft.jkubernetes.daemon.pod;
import java.util.HashMap;
import org.gwisoft.jkubernetes.config.KubernetesConfig;
import org.gwisoft.jkubernetes.config.KubernetesConfigLoad;
import org.gwisoft.jkubernetes.docker.KubernetesDocker;
import org.gwisoft.jkubernetes.docker.KubernetesDockerJava;
import org.gwiso... | Java | jkubernetes-core/src/main/java/org/gwisoft/jkubernetes/daemon/pod/Pod.java | gwisoft/jkubernetes | apache-2.0 | 3,104 | 108 | codeparrot/github-code |
e2ce644c0e9905ff2e569bbb9c3bc92b0bcbdb3e187f5bac50adc91261ffd2a3 | /******************************************************************
Change Script 2.0.8.57
1. data_validation_report - new view to validate data in the database
2. data_loading_report - update to reflect total and active record
counts.
******************************************************************/
INSERT INTO ver... | SQL | Database/ChangeScripts/2.0.8/cs_2.0.8.57.sql | spatialdev/PMT | apache-2.0 | 15,551 | 237 | codeparrot/github-code |
557c180dd45709195e17d646975dc43097a5ed1af653818de74dfd8f6056588a | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>FST - Landon McNamara</title>
<meta name="description" content="Keep track of the statistics from Landon McN... | HTML | surfers/mjun/lmcn.html | chicofilho/fst | apache-2.0 | 11,246 | 287 | codeparrot/github-code |
d6f0bbd833615e99cdce26a793b2975e4f9f7182c9f353ea6518f3d05f79b7aa | package service
import (
"context"
"fmt"
"go-common/app/admin/main/videoup/model/archive"
"go-common/library/database/sql"
"go-common/library/log"
xtime "go-common/library/time"
)
// txUpArcAttrs update archive attrs
func (s *Service) txUpArcAttrs(tx *sql.Tx, a *archive.Archive, attrs map[uint]int32, redirectU... | GO | 126-go-common-master/app/admin/main/videoup/service/tx.go | LQJJ/demo | apache-2.0 | 12,648 | 333 | codeparrot/github-code |
419cc79343e83128b3ad0f12caa8301f46fe42883e4c4b70c517dfe4be3ca602 | # Copyright 2017 Tymoteusz Blazejczyk
#
# 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 ... | CMake | cmake/Toolchain-clang-arm-none-eabi.cmake | tymonx/json-cxx-dev | apache-2.0 | 6,040 | 196 | codeparrot/github-code |
b1ee76dc0238d6cf6f41fcb0253c89df864818392989db1302e90462ed8a0018 | /*
* 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/taskmanager/TaskManagerConfigurationTest.java | mtunique/flink | apache-2.0 | 7,365 | 220 | codeparrot/github-code |
ca2b4cf7e716beaf52856b46db554ae954282c3acd12df1801b09c9fc4d6d150 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3)
// Source File Name: StackAggregateNode.java
package com.github.janssk1.threadanalyzer;
import java.io.IOException;
import java.util.*;
class StackAggrega... | Java | src/main/java/com/github/janssk1/threadanalyzer/StackAggregateNode.java | janssk1/threadanalyzer | apache-2.0 | 5,190 | 140 | codeparrot/github-code |
7bb94afe8cb5e3ed316577f98bc34dea7bbd0d7aa850649605a58e17f83d3901 | package org.fortiss.smg.actuatorclient.enocean.impl;
import gnu.io.CommPort;
import gnu.io.CommPortIdentifier;
import gnu.io.NoSuchPortException;
import gnu.io.PortInUseException;
import gnu.io.SerialPort;
import gnu.io.UnsupportedCommOperationException;
import java.io.IOException;
import java.io.InputStream;
import ... | Java | actuatorclient.enocean.impl/src/main/java/org/fortiss/smg/actuatorclient/enocean/impl/USBStickCommunicator.java | B2M-Software/project-drahtlos-smg20 | apache-2.0 | 6,095 | 206 | codeparrot/github-code |
f668a94e5bf10c831ebc9c139c1ae7999ecdc223f4870436aa585bdaa8bcfb91 | /*
* Copyright (C) 2017 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Java | guava/src/com/google/common/primitives/ImmutableLongArray.java | DavesMan/guava | apache-2.0 | 20,895 | 608 | codeparrot/github-code |
fcca0ab53efaa4daf792e6dea6b3f554252e43fd6eea3ed1963fc63170e6f9e9 | /*******************************************************************************
Author: Bogdan Nicolae
Copyright (C) 2013 IBM Corp.
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 | lib/ac_fte.h | bnicolae/ac-fte | apache-2.0 | 1,186 | 43 | codeparrot/github-code |
6873e7528e53a8c80658b5092fc386b2e1e449d13de8c88e5429b5567262ac9b | /***************************************************************************************************************************
* @license *
* Copyright 2017 Coinbase, Inc. ... | TypeScript | src/utils/Logger.ts | coinbase/gdax-tt | apache-2.0 | 3,414 | 69 | codeparrot/github-code |
506ce59a04fd27c827aedcb63e078c78df59a38b3ca68d07851457d078a0e188 | package org.gradle.test.performance.mediummonolithicjavaproject.p331;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test6635 {
Production6635 objectUnderTest = new Production6635();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | Java | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p331/Test6635.java | oehme/analysing-gradle-performance | apache-2.0 | 2,111 | 79 | codeparrot/github-code |
e2c7fbd33747aedcd3f04fc3197ce7409aa47d37f46148c08231a6fdff428397 |
import javax.sound.sampled.UnsupportedAudioFileException;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.*;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.U... | Java | src/Display.java | jac32/Landing | apache-2.0 | 6,294 | 172 | codeparrot/github-code |
0bac00233cfe21061a96a8be3a8ad2662ca6139a083ff3b85d75472f9555463a | /***********************************************************************
* Copyright (c) 2013-2017 Commonwealth Computer Research, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and... | Scala | geomesa-lambda/geomesa-lambda-datastore/src/main/scala/org/locationtech/geomesa/lambda/data/LambdaFeatureWriter.scala | ronq/geomesa | apache-2.0 | 2,225 | 73 | codeparrot/github-code |
f60e26140f242ec7e96f17e798082eb8b1c90c876e65a0e2c46882fa35e2b3e1 | package org.openpanda.module.sms.config;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by lingen on 2017/6/28.
*/
public class RedisConfig {
private String ip;
private int port;
private String password;
public String getIp() {
return ip;
}
public void setIp... | Java | panda-module-sms/panda-module-sms-microservice/src/main/java/org/openpanda/module/sms/config/RedisConfig.java | lingen/Panda_Module | apache-2.0 | 642 | 40 | codeparrot/github-code |
27566293ab07789a94d8117faca560f544a3dd5a6c67d44866d614ace582b774 | using AMQPClient
const VIRTUALHOST = "/"
const HOST = "127.0.0.1"
function receive()
# 1. Create a connection to the localhost or 127.0.0.1 of virtualhost '/'
connection(; virtualhost=VIRTUALHOST, host=HOST) do conn
# 2. Create a channel to send messages
channel(conn, AMQPClient.UNUSED_CHANNEL... | Julia | julia/receive_logs.jl | rabbitmq/rabbitmq-tutorials | apache-2.0 | 1,276 | 45 | codeparrot/github-code |
63d90ab9283cb683a94c28fefbd582d5b4a41705edddb4a2d7c0fc8939bba3e3 | #
# Copyright (c) SAS Institute 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 w... | Python | rmake/worker/command.py | fedora-conary/rmake-2 | apache-2.0 | 19,427 | 569 | codeparrot/github-code |
2d266b95840062524b923c1410b6484435806768f17db4e4ac7a32706c5f4046 | // Copyright 2015 Matt Ho
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,... | GO | types.go | savaki/geoip2 | apache-2.0 | 4,182 | 110 | codeparrot/github-code |
b7ce97a8d43b0123bfc3c8cbe630a223f6362ea6a7bc60f6c8b0141cc3f5d2af | /*
* Copyright (C) 2009, 2010 Jayway AB
*
* 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 | src/main/java/com/jayway/maven/plugins/lab/VersionedContents.java | jayway/maven-lab-plugin | apache-2.0 | 2,309 | 95 | codeparrot/github-code |
cc310cbba5bb8d30df69b34d8c66f2fd9aff2a9c6656761a31712599324a2281 | /*
* Copyright (c) 2010-2012 Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/lic... | Java | api/src/test/java/org/asynchttpclient/async/ListenableFutureTest.java | afelisatti/async-http-client | apache-2.0 | 2,263 | 55 | codeparrot/github-code |
0bb983d2fe99707c51c1ee02616c1954f44ccc398a64917ff19b2e6ce4fe88c7 | /**
* Package: MAG - VistA Imaging
* WARNING: Per VHA Directive 2004-038, this routine should not be modified.
* @date May 2, 2013
* Site Name: Washington OI Field Office, Silver Spring, MD
* @author vhaiswlouthj
* @version 1.0
*
* ----------------------------------------------------------------
* Property of... | Java | Source/Java/CoreValueObjects/main/src/java/gov/va/med/imaging/exchange/business/dicom/rdsr/CTDose.java | VHAINNOVATIONS/Telepathology | apache-2.0 | 2,558 | 89 | codeparrot/github-code |
d63402f6bb05adabb16de47488b5034fc0d6c7ba61b3e59021e31ee75a87f1d7 | /*
* Copyright 2017 Exon IT
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Scala | client-core/src/main/scala/by/exonit/redmine/client/serialization/AttachmentSerializers.scala | exon-it/redmine-scala-client | apache-2.0 | 1,996 | 59 | codeparrot/github-code |
5988d6243cb3cbeac424ee601c750e9de354516d19f5421e8b9eec1d35791895 | // Generated from /POI/java/org/apache/poi/ss/formula/ptg/LessThanPtg.java
#include <org/apache/poi/ss/formula/ptg/LessThanPtg.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/CharSequence.hpp>
#include <java/lang/Comparable.hpp>
#include <java/lang/NullPointerE... | C++ | src/org/apache/poi/ss/formula/ptg/LessThanPtg.cpp | pebble2015/cpoi | apache-2.0 | 3,289 | 131 | codeparrot/github-code |
e882170d4b4a3c30c89ca3aab87612f2c05738a48a4c3eb0356a4331de9a8f66 | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
/*
* Agent parameters are derived from 3 entities in increasing priority,
* - System information
* - Configuration file
* - Parameters
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/resource.h>
#include <unistd.h>
#include <i... | C++ | src/vnsw/agent/cmn/agent_param.cc | safchain/contrail-controller | apache-2.0 | 23,407 | 666 | codeparrot/github-code |
01532bb21c4261abb74056f387477beda838ecba28d4c3386f519f7c510d8541 | package com.hwangfantasy.controller;
import com.hwangfantasy.smartutil.object.FastJson;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.ann... | Java | spring-cloud-sample/service-provider/src/main/java/com/hwangfantasy/controller/ComputeController.java | hwangfantasy/spring-sample | apache-2.0 | 1,092 | 43 | codeparrot/github-code |
9342d4553c00c78fc29d2a95ce65dd44044eec4b3891dc652b21a1f4c0d1e539 | /*!
@file
Defines `boost::hana::power`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_POWER_HPP
#define BOOST_HANA_POWER_HPP
#include <boost/hana/fwd/power.... | C++ | include/ginseng/3rd-party/boost/hana/power.hpp | Owldream/Ginseng | apache-2.0 | 2,019 | 66 | codeparrot/github-code |
6e8753792f031f10e23119f6d7cca8f28c14566dc35782e4d306407a4e31f04a | /*=============================================================================
Copyright (c) 2014 Paul Fultz II
lazy.h
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
================================... | C++ | include/ginseng/3rd-party/boost/hof/lazy.hpp | Owldream/Ginseng | apache-2.0 | 9,028 | 300 | codeparrot/github-code |
7bb542402db396c1ac3cae9754f255cf8486f3f01b3bb02bf512f1258d03f774 | /*
* Copyright 2010-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | spring-mobile-device/src/test/java/org/springframework/mobile/device/site/SitePreferenceHandlerInterceptorTest.java | spring-projects/spring-mobile | apache-2.0 | 3,437 | 87 | codeparrot/github-code |
b86f9e9a4e966de9d7c03b15c5e4f6868ddbe3effd1259e45a0a01d14ad9e6bd | /**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package docs.io;
import akka.testkit.AkkaJUnitActorSystemResource;
import org.junit.ClassRule;
import org.junit.Test;
import akka.actor.ActorSystem;
import akka.actor.UntypedActor;
//#imports
import java.net.InetSocketAddress;
import java.uti... | Java | Documentation/csharp/code/docs/io/UdpConnectedDocTest.java | Horusiath/akka.net | apache-2.0 | 2,787 | 87 | codeparrot/github-code |
0292d3f15f3943da7640f5fe68cfe8aeb22e9ed66961573a5c9cc1c11476f7f1 | /*
* Copyright 2016 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 ... | Java | speech/grpc/src/main/java/com/examples/cloud/speech/SyncRecognizeClient.java | jetty-project/java-docs-samples | apache-2.0 | 6,738 | 206 | codeparrot/github-code |
fd73819e1a440aec1c0be89f94b04d206bbc9e33c6032db3dc32296b47ef4209 | /*
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... | Java | src/com/sun/org/apache/xalan/internal/xsltc/dom/MatchingIterator.java | itgeeker/jdk | apache-2.0 | 4,002 | 130 | codeparrot/github-code |
cf9d45367aadd4237fa3cc3bd23786ef026aa3f1f75c4516886820009d2ec26a | package com.radaee.pdf;
/**
class for PDF Book-mark database.
@author Radaee
@version 1.1
*/
public class BMDatabase
{
private static native int openAndCreate( String db_path );
private static native void close( int db );
private static native int recOpen( int db, String look_path );
private static nat... | Java | Source/Wrapper/RSPDFViewer/src/com/radaee/pdf/BMDatabase.java | gearit/RadaeePDF-B4A | apache-2.0 | 2,860 | 107 | codeparrot/github-code |
3c16e881bafcce575dfa1f37f122d8aac43991fbf718f8d87f431d7e93bd8b5e | <!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 amod in UD_Manx-C... | HTML | treebanks/gv_cadhan/gv_cadhan-dep-amod.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 9,461 | 222 | codeparrot/github-code |
1a983674edd50d3716ba3857188e03ac196338ba0b473188fa0814cbfce917d6 | <!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>expl:pv</title>
<link rel="... | HTML | u/dep/expl-pv.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 7,465 | 187 | codeparrot/github-code |
a3f206562c9ae5a5bd625edc8b1b53eb5871a2ff6cadceed3ffdeaf22628f071 | import re
from django import template
register = template.Library()
def user_dweet_to_link(m):
text = m.group('text')
dweet_id = m.group('dweet_id')
username = m.group('username')
if username is None:
url = 'd/' + dweet_id
else:
url = 'u/' + username
result = '<a href="/{0}"... | Python | dwitter/templatetags/insert_magic_links.py | lionleaf/dwitter | apache-2.0 | 2,048 | 59 | codeparrot/github-code |
a2ec5856b0a76b3bbf6bea5fe87307bf1b55dda168592680128b81535291b449 | <?php
/* index.html */
class __TwigTemplate_9f12c1e054acb299fd346d89d20968d50219d8509c0ad714eb3114da4450d1f7 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("layout.html", "index.html"... | PHP | log/twig/65/65ef8b2f01f63996e79eb9b2a62526344deef6765f33b345ec351c69ee6ccf94.php | sujinw/traval | apache-2.0 | 3,799 | 153 | codeparrot/github-code |
8126448a899cfe36ed0f936a672f296ac0c742a0f33c9d799f98cf5041f1a4bc | #ifndef color_generic_constant_khaki
#define color_generic_constant_khaki
// ::color::constant::khaki( c )
#include "./base.hpp"
namespace color
{
namespace constant
{
namespace _internal
{
namespace w3c
{
struct khaki_t{};
}
}
namespace w3c
{
typedef ... | C++ | src/color/generic/constant/khaki.hpp | dmilos/color | apache-2.0 | 506 | 32 | codeparrot/github-code |
a7dce43d4239bd82a9fab5431fa69ee174164e07dd38d1220cf40395392d2a7a | /**
* Copyright (c) 2008, http://www.snakeyaml.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Java | src/test/java/org/yaml/snakeyaml/constructor/BeanConstructorTest.java | asomov/snakeyaml | apache-2.0 | 8,939 | 249 | codeparrot/github-code |
94d3c819f522133fef9860baccab6270de635a4629d83f63717663eb459936ff | /*
* Copyright 2014-2015 Open Networking Laboratory
*
* 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 applicab... | Java | protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OpenFlowControllerImpl.java | sonu283304/onos | apache-2.0 | 27,722 | 670 | codeparrot/github-code |
081c8d86648a1f3bb15b5894eb9e3e63adaa91cc0f4bf0f07d27729349db6d15 | package controllers
import (
"encoding/json"
"fmt"
"github.com/alphazero/Go-Redis"
"github.com/astaxie/beego"
set "github.com/redsymbol/goset"
"github.com/royburns/goTestLinkReport/models"
"strconv"
)
type GetSprintExecutionController struct {
beego.Controller
}
func (this *GetSprintExecutionController) Get(... | GO | controllers/GetSprintExecutionController.go | royburns/goTestLinkReport | apache-2.0 | 2,790 | 123 | codeparrot/github-code |
a2396e10467dc489333c89f5ded29da54e9fb06e6710c5acdee190846b1633a3 | // Copyright (C) 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 applicable ... | Java | java/com/google/gerrit/sshd/PluginCommandModule.java | gerrit-review/gerrit | apache-2.0 | 1,706 | 53 | codeparrot/github-code |
016e44e95810d8cfbb4c5520d52ddf46c6ce208516afe31ba7ca895c9497e230 | /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not ... | Java | src/main/java/com/rabidgremlin/legalbeagle/util/FileCollector.java | rabidgremlin/legal-beagle | apache-2.0 | 1,473 | 52 | codeparrot/github-code |
61c83e073385ef0205d63a90780dafdc67ad007810e0d8ffcf753b7c2981e8cf | /*
* Copyright 2005 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/VarCheckTest.java | JonathanWalsh/Granule-Closure-Compiler | apache-2.0 | 13,400 | 435 | codeparrot/github-code |
354b91dab432e75f9784402eb0b5505d8b58b9cafeaa3b82075203dea1ae2588 | // //
// Copyright 2019 Mirko Raner //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | Java | projo-jackson/src/test/java/pro/projo/jackson/JacksonTest.java | raner/projo | apache-2.0 | 9,916 | 237 | codeparrot/github-code |
2c5afad4b62319733c235be0b0f5d2ffa6b3aaefe3cd1cc9c2d5a8d0f0756e47 | /*
* Copyright 2017 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | Java | snomed/com.b2international.snowowl.snomed.datastore/src/com/b2international/snowowl/snomed/datastore/id/request/AbstractSnomedIdentifierCountedRequestBuilder.java | IHTSDO/snow-owl | apache-2.0 | 1,733 | 51 | codeparrot/github-code |
7453c69dee9625b3b780ab19ae1e9823c1b4b8a28e050117e54a52c2dfdacd1f | <?php
/**
* Copyright 2016 Saint Joseph's University
*
* 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 ... | PHP | src/services/JobsController.php | sacrefies/csc621-code-gears | apache-2.0 | 15,900 | 528 | codeparrot/github-code |
968f5d7d6a5e49c2e275f504fbe55ead1c94957ff4d2ea26d9936ec237d39043 | package com.koch.ambeth.example.junit;
/*-
* #%L
* jambeth-examples-test
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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 | jambeth/jambeth-examples-test/src/test/java/com/koch/ambeth/example/junit/MyBean1.java | Dennis-Koch/ambeth | apache-2.0 | 930 | 37 | codeparrot/github-code |
02055c33780424dd2bd92d46e075a9ccfb5c482a107f92cbb5f25a8844f37a21 | <?php
/*
* Copyright 2015 Alexey Maslov <alexey.y.maslov@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... | PHP | test/OAuth2/ClientTest.php | alxmsl/GoogleClient | apache-2.0 | 2,905 | 85 | codeparrot/github-code |
5c758d042950a49f8b660fdd8fe613af98d64ba21de0a14d26be4183c7e588de | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
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 License, or
(at your option) any later version.
T... | Python | .kodi/addons/plugin.video.salts/service.py | aplicatii-romanesti/allinclusive-kodi-pi | apache-2.0 | 5,535 | 134 | codeparrot/github-code |
6dbf14fe65165906463a70be5098ea1c0148409c5d1e8e9bb193f1b076f53c24 | // Copyright 2016-2017 Open Source Robotics Foundation, 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 ... | C++ | rclcpp/include/rclcpp/node_interfaces/node_graph.hpp | ros2/rclcpp | apache-2.0 | 5,135 | 178 | codeparrot/github-code |
00e712f1e3e43d7917f9e92802a8f3fcee6cef8975490c3bd8c84a8dc17720cb | #include "rfproxy.hh"
RFProxy::RFProxy(const char* address, const int port, const int n_workers,
bool secure) : OFServer(address, port, n_workers, secure,
OFServerSettings().supported_version(1)) {
this->ipc = new MongoIPCMessageService(MONGO_ADDRESS,
MONGO_DB_NAME,
to_string<uint6... | C++ | rfproxy.cc | alnvdl/lf_rfproxy | apache-2.0 | 7,631 | 222 | codeparrot/github-code |
54929d4ad1a8c27bf7674f14d649b64947033ddb996348a923f82a2e9c3e4dc7 | /*
* 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 applic... | Java | library/src/main/java/com/androidifygeeks/library/util/MultiSwipeRefreshLayout.java | ashishbhandari/AndroidTabbedDialog | apache-2.0 | 2,645 | 83 | codeparrot/github-code |
d32f90fe743a737c352094a2613aecaa10126c2d34325413630eafffc2e776bb | /*
* Copyright 1999-2006 University of Chicago
*
* 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... | C | xio/src/globus_xio_server.c | gridcf/gct | apache-2.0 | 62,228 | 2,121 | codeparrot/github-code |
a99ab0e414f2bacc0fdb86bacab8886d7ba763b566053d453d87ce9f9b8ece32 | package com.coolweather.android.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by dellpc on 2017/4/28.
*/
public class Suggestion {
@SerializedName("comf")
public Comfort comfort;
@SerializedName("cw")
public CarWash carWash;
public Sport sport;
public class Comf... | Java | app/src/main/java/com/coolweather/android/gson/Suggestion.java | Zhengfating/coolweather | apache-2.0 | 583 | 40 | codeparrot/github-code |
3f40d2f6ec6a375c795d51801cfda4e65c16261c0c5847e26f78205d728e28d1 | /*
* Copyright 2012 Last.fm
*
* 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 | src/test/java/fm/last/commons/kyoto/factory/CursorAdapterTest.java | lastfm/lastcommons-kyoto | apache-2.0 | 10,632 | 342 | codeparrot/github-code |
cb1a758b21bd805a54d6218b1e5b82e7b00ff59b81e2bf2186d8962cb6788fd3 | <?php
/**
* ShopEx licence
*
* @copyright Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
* @license http://ecos.shopex.cn/ ShopEx License
*/
class b2c_ctl_site_passport extends b2c_frontpage{
function __construct(&$app){
parent::__construct($app);
$this->_response->se... | PHP | app/b2c/controller/site/passport.php | liuguogen/Ecstore | apache-2.0 | 18,165 | 493 | codeparrot/github-code |
e41f8715c106f422dc897eb57dc47913c3d39ea0ec122d89eb4630e0446e43de | /*
* Copyright 2020 Precog Data
*
* 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 ... | Scala | impl/src/test/scala/quasar/impl/logging/LoggingUtilsSpec.scala | quasar-analytics/quasar | apache-2.0 | 4,425 | 128 | codeparrot/github-code |
c65c3f216aae5949738f53c1f32882c064775506fb8b194f89db0b0091280c73 | /*
* Copyright (C) 2012 Mariusz Zamolski
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | Java | src/main/java/pl/porannajava/javnysejm/DeputyCommittee.java | mariuszz/javnysejm | apache-2.0 | 2,647 | 100 | codeparrot/github-code |
26347cc082df7742855ed2e4f1e29a2ba8995e4e8ff4ed78eb644c5f04312883 | // © 2015 Mario Lelas
using UnityEngine;
namespace MLSpace
{
public class GameControl : MonoBehaviour
{
/// <summary>
/// buttons for mobiles
/// </summary>
public GameObject onMobileOnly;
/// <summary>
/// text ui
/// </summary>
public UnityEng... | C# | Assets/_DoubleSidedShaders/Script/GameControl.cs | christianjgentry/TheIsland | apache-2.0 | 1,198 | 52 | codeparrot/github-code |
143e4f0c8dd4f81976ba31d95ba29b04703468e61a532e27280c9a6ef50f437c | /*
* Copyright (C) 2013 The Rythm Engine project
* Gelin Luo <greenlaw110(at)gmail.com>
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF l... | Java | src/main/java/org/rythmengine/resource/TemplateResourceBase.java | BITPlan/Rythm | apache-2.0 | 6,918 | 225 | codeparrot/github-code |
9644bb114523bb0ae09505d6be23790049ca1479d557b962b1b01bb0493864fb | /*
* 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 | enterprise/cluster/src/main/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/BiasedWinnerStrategy.java | HuangLS/neo4j | apache-2.0 | 3,736 | 104 | codeparrot/github-code |
d39c39002c95fea3c127baa982679413401fc8e0a8db130211492a019a3714dc | 'use strict';
const url = require('url');
const http = require('http');
const https = require('https');
const { globalRegistry } = require('./registry');
class Pushgateway {
constructor(gatewayUrl, options, registry) {
if (!registry) {
registry = globalRegistry;
}
this.registry = registry;
this.gatewayUrl... | JavaScript | lib/pushgateway.js | siimon/prom-client | apache-2.0 | 2,573 | 111 | codeparrot/github-code |
8ef48a8c2c2af3097b13f01ca7d155c0b70d7192d78de89a55eb9df9f46b2e8f | #!/usr/bin/env python
# Copyright 2021 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... | Python | sockeye_contrib/benchmark/benchmark_to_output.py | awslabs/sockeye | apache-2.0 | 1,162 | 39 | codeparrot/github-code |
0868790b0c55c189fc2363ee468a1378c3c0e5705acca808e3f56978d05a57e0 | /*******************************************************************************
* 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... | Java | applications/product/src/org/ofbiz/shipment/shipment/ShipmentWorker.java | ofbizfriends/vogue | apache-2.0 | 11,022 | 215 | codeparrot/github-code |
af7828b061376047ae6aba8e72c898fb9462df06ad060e7d2b49b5e5777cffbb | require 'csv'
And /^I start a (.*) document for "(.*)" file import$/ do |document, file_name|
doc_object = snake_case document
object_klass = object_class_for(document)
set(doc_object, create(object_klass, document_id: @document_id,
description: random_alphanums(20, '... | Ruby | features/step_definitions/financial_processing/accounting_line_file_import.rb | CU-CommunityApps/kuality-kfs | apache-2.0 | 4,971 | 111 | codeparrot/github-code |
28cf982b627881d6be88a378069a893045133e76d35136dc298f84dbb4a9f2b9 | package eu.stratuslab.marketplace.server.store.file;
import static org.easymock.EasyMock.createStrictMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import... | Java | server/war/src/test/java/eu/stratuslab/marketplace/server/store/file/GitStoreTest.java | StratusLab/marketplace | apache-2.0 | 1,472 | 62 | codeparrot/github-code |
edea7d1ab801ba53fe1c39b4844b163682518c0e9a02214f86a14bec9b1b66e8 | /* -------------------------------------------------------------------------- */
/* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | C++ | src/lcm/LifeCycleManager.cc | baby-gnu/one | apache-2.0 | 9,447 | 302 | codeparrot/github-code |
ce1ef09bf58d78f579e2211ca91b9e18fdd151ffb3e39aa5843af561195f8301 | /*
** Copyright 2011-2013 Centreon
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed t... | C++ | src/logging/engine.cc | centreon/centreon-clib | apache-2.0 | 5,002 | 189 | codeparrot/github-code |
e11192fd042c5bf52e410af6aa00e3a315d9f9b51e6aa459ff610fff43966118 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Net;
using System.Threading;
usi... | C# | src/EditorFeatures/DiagnosticsTestUtilities/CodeActions/CSharpCodeRefactoringVerifier`1+Test.cs | AmadeusW/roslyn | apache-2.0 | 6,874 | 161 | codeparrot/github-code |
f96a0395d8ee0e44e78a421c12a4926506c857ea2a9bc4e0581e808f83efec02 | package hex.grid;
import hex.Model;
import hex.ModelParametersBuilderFactory;
import hex.ScoreKeeper;
import hex.ScoringInfo;
import hex.grid.HyperSpaceSearchCriteria.CartesianSearchCriteria;
import hex.grid.HyperSpaceSearchCriteria.RandomDiscreteValueSearchCriteria;
import hex.grid.HyperSpaceSearchCriteria.Strategy;
... | Java | h2o-core/src/main/java/hex/grid/HyperSpaceWalker.java | michalkurka/h2o-3 | apache-2.0 | 26,396 | 613 | codeparrot/github-code |
543f9abfc05c9ca7e947a61c079d67cf1bb965175aa359d468190a2e9cd409eb | require 'mime/types'
require File.join(File.dirname(__FILE__), "property")
require File.join(File.dirname(__FILE__), '..', 'mixins', 'extended_document_mixins')
require "enumerator"
module CouchRest
# Same as CouchRest::Document but with properties and validations
class ExtendedDocument < Document
include C... | Ruby | lib/couchrest/more/extended_document.rb | snostorm/couchrest | apache-2.0 | 10,110 | 310 | codeparrot/github-code |
a2c114429c66716b8d4588635ed2c0915fd1957e1decd84532ac06b7dd720f2d | # Copyright 2019 Intel, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | Python | cyborg/objects/attach_handle.py | openstack/nomad | apache-2.0 | 3,799 | 96 | codeparrot/github-code |
a7af3e5343b080c818bdcb6898efec8363f530160f132434b2e1d81301d0488f |
package dao;
import entity.Audio;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import GraceJava.SQL;
import GraceJava.ToStr;
public class AudioDao extends SQL{
public AudioDao() {
setTypeMap(Audio.getTypeMap());
setTableName("audio");
}
public ArrayList<Audio> selectEnti... | Java | dao/AudioDao.java | thautwarm/JavaProj | apache-2.0 | 3,601 | 166 | codeparrot/github-code |
2f488ee8e84b451fd0e00eec581fdb1fc814405c85470e7067ddcda091b251c4 | /*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/model/transform/ListCustomVerificationEmailTemplatesResultStaxUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,446 | 80 | codeparrot/github-code |
5a7cfff049ee43e4ff692abce5757b620bcb78aa2ad90d9cc514b96c37565e99 | package groovy.servlet;
import org.jmock.Mock;
import org.jmock.MockObjectTestCase;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
public class GroovyServletTest extends MockObjectTestCase {
private ServletConfig config;
private Servlet... | Java | tools/groovy/src/subprojects/groovy-servlet/src/test/java/groovy/servlet/GroovyServletTest.java | Selventa/model-builder | apache-2.0 | 1,743 | 51 | codeparrot/github-code |
20671d0db3d25d78b8b020d3e4f000554ea6f4e5bfdc67fed29444f9edf75842 | /*
* 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 | server/base/src/main/java/org/apache/accumulo/server/fs/VolumeChooserEnvironment.java | dhutchis/accumulo | apache-2.0 | 1,182 | 38 | codeparrot/github-code |
bcb900caaba4a631a8d1992b1d18932a9bb335498d04d79253827422b27b3969 | import argparse
import numpy as np
import sys
def generate():
parser = argparse.ArgumentParser()
parser.add_argument('--vocab_file', default='vocab.txt', type=str)
parser.add_argument('--vectors_file', default='vectors.txt', type=str)
args = parser.parse_args()
with open(args.vocab_file, 'r') as f... | Python | tools/distance.py | jileiwang/CJ-Glo | apache-2.0 | 2,385 | 77 | codeparrot/github-code |
3538bc2bab47e1ec479451363fb889e5ffc0fd0f8485fa94799709a4ff874897 | package br.com.v8developmentstudio.rccguarulhos.calendar.services;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.media.Ringtone;
import andro... | Java | app/src/main/java/br/com/v8developmentstudio/rccguarulhos/calendar/services/NotificationService.java | cleitondantas/RCCGuarulhosCalendar | apache-2.0 | 3,487 | 88 | codeparrot/github-code |
d199c98cefd7b1adc6fc1627af5b540cbda3a45326ae859bcf5ab6a98dc072b8 | from JumpScale import j
class Disk:
def __init__(self, devname, node=None, disknr=None, screenname=None):
devname.replace("//", "/")
self.devname = devname
self.devnameshort = self.devname.split("/")[2]
self.mounted = False
self.mountpath = None
self.node = node
... | Python | lib/JumpScale/tools/perftesttools/Disk.py | Jumpscale/jumpscale_core8 | apache-2.0 | 2,097 | 65 | codeparrot/github-code |
71271d4c45c6d849236d121e676626edbd4e2053e72bc701d860ee82c3aca47b | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
// System.Array
struct Il2CppArray;
#include "mscorlib_System_ValueType4014882752.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offse... | C | 01Dongzuo/Temp/il2cppOutput/il2cppOutput/mscorlib_System_Array_InternalEnumerator_1_gen2754905232.h | moixxsyc/Unity3dLearningDemos | apache-2.0 | 1,425 | 55 | codeparrot/github-code |
40ecca418bfe97549a02c12dd89e90d5010adc4198afb6f882febda7f6e508bf | package com.wind.upms.web.controller.manage;
import com.baidu.unbiz.fluentvalidator.ComplexResult;
import com.baidu.unbiz.fluentvalidator.FluentValidator;
import com.baidu.unbiz.fluentvalidator.ResultCollectors;
import com.wind.common.base.BaseController;
import com.wind.common.validator.LengthValidator;
import com.wi... | Java | wind-upms/wind-upms-web/src/main/java/com/wind/upms/web/controller/manage/UpmsSystemController.java | liuqijie/wind | apache-2.0 | 5,266 | 141 | codeparrot/github-code |
307a46be3bf400af94c77cd28c9d34150d002664944a502d51121e2a616355d3 | from django.forms.models import modelform_factory
from django.views.generic import (
DetailView,
CreateView,
UpdateView,
DeleteView,
TemplateView
)
from django_tables2 import SingleTableView
from crudbuilder.registry import registry
from crudbuilder.mixins import (
CrudBuilderMixin,
BaseLis... | Python | crudbuilder/views.py | asifpy/django-crudbuilder | apache-2.0 | 8,139 | 234 | codeparrot/github-code |
67d9b21e54a3eba880bb9d2687a9e2acedba00740a521f791fa40306d4d609ff | /**
* Copyright (c) 2013-2019 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | Java | analytics/api/src/main/java/org/locationtech/geowave/analytic/distance/GeometryCentroidDistanceFn.java | spohnan/geowave | apache-2.0 | 1,656 | 50 | codeparrot/github-code |
9a56c5e29a93b8aaf1d28ff5cc72b54e67228beb530ab0a759b30e00406b5bae | /*
* 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/main/java/com/fanmei/pay4j/util/StringUtil.java | 24solar/pay4j | apache-2.0 | 6,970 | 218 | codeparrot/github-code |
e63299a09c56197aed7ec32b3abce6593784365f82920b02e655ba5a5d1d46bc | /*
* 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-mediaconvert/include/aws/mediaconvert/model/SccDestinationFramerate.h | cedral/aws-sdk-cpp | apache-2.0 | 1,289 | 45 | codeparrot/github-code |
4d1153b7d1ec86a77980160da396fce46f34530454f45b752847c8b248aeb2c1 | /*
* Copyright (C) Alibaba Cloud Computing
* All rights reserved.
*
* 版权所有 (C)阿里云计算有限公司
*/
using System;
namespace Aliyun.OpenServices.Ots
{
/// <summary>
/// 表示访问阿里云服务的配置信息。
/// </summary>
public class ClientConfiguration : ICloneable
{
private static string _defaul... | C# | src/Foundation/AliYunApi/ClientConfiguration.cs | YangEricLiu/Pop | apache-2.0 | 3,183 | 118 | codeparrot/github-code |
c99b73f2ba505fef01dd38d8071a1ac1b27e29acce234dd236790f7341290d49 | package org.myrobotlab.service;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Map;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.myrobotlab.fra... | Java | src/test/java/org/myrobotlab/service/ProgramABTest.java | MyRobotLab/myrobotlab | apache-2.0 | 13,804 | 377 | codeparrot/github-code |
c6b4842a9d835dfec40f59d3be022cd2ca2a0578a833117a28c3ff5becbfaf2b | package com.study.data.table.algorithm;
import com.dangdang.ddframe.rdb.sharding.api.ShardingValue;
import com.dangdang.ddframe.rdb.sharding.api.strategy.table.SingleKeyTableShardingAlgorithm;
import com.google.common.collect.Range;
import java.util.Collection;
import java.util.LinkedHashSet;
/**
* Created on 2018-0... | Java | spring-boot-sharding-jdbc/src/main/java/com/study/data/table/algorithm/ReceiptSingleKeyTableShardingAlgorithm.java | liuzyw/study-hello | apache-2.0 | 2,164 | 60 | codeparrot/github-code |
650dce868af795f513fa45f6dad5d1b6a7a550a6f7814afa10086f9825775b56 | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>My Portfolio</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https:... | HTML | fatherandfamilies.html | reed23/reed23.github.io | apache-2.0 | 14,644 | 246 | codeparrot/github-code |
2a3d1456d504cc8df51d19d4c24bf14303e82db1b40d62c2985c2b6ef2508d81 | #!/bin/bash
. ./cluster.conf
MEUSER=$(whoami)
if [ "$MEUSER" != "$IUSER" ]; then
echo "This script needs to be un as $IUSER. Current User: $MEUSER"
exit 1
fi
if [ ! -f "$PRVKEY" ]; then
echo "Private does not exist at $PRVKEY"
echo "Perhaps you need to move the private key to this node?"
exit 1
... | Shell | destroy_zk.sh | JohnOmernik/maprdcos | apache-2.0 | 1,079 | 49 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.