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 |
|---|---|---|---|---|---|---|---|---|
8a2e1b9d6a78c35e15c91277e26586e4b6230f23a6bcb76b5dedeb4e55d05c34 | package com.capgemini.resilience.employer.rest;
import java.util.List;
import javax.inject.Inject;
import javax.ws.rs.core.MediaType;
import com.capgemini.resilience.employer.model.Employer;
import com.capgemini.resilience.employer.service.EmployerSearchCriteria;
import com.capgemini.resilience.employer.service.Emplo... | Java | employer-service/src/main/java/com/capgemini/resilience/employer/rest/EmployerRestService.java | microservices-summit-2016/resilience-demo | apache-2.0 | 2,031 | 57 | codeparrot/github-code |
82fc22d71673a6fecf729deb815b9683e91ab76d115a043efdd1ae40ba1d6396 | /*****************************************************************************
* *
* OpenNI 1.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. *
* ... | C++ | Source/OpenNI/XnModuleLoader.cpp | Wessi/OpenNI | apache-2.0 | 52,844 | 1,642 | codeparrot/github-code |
82ccc1523b96a0bfd5685829556cf45d47d8301d67e6f3986577814791a4432c | /*
* Copyright 2016 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 applic... | Java | base/core/src/test/java/tested/base/instrument/InstrumentParent.java | leapframework/framework | apache-2.0 | 852 | 32 | codeparrot/github-code |
235a3208c8fd75e54da2a7df8aab3242dc14e7c2e746c0466b3f885290a8e261 | package libstorage
import (
"github.com/codedellemc/rexray/libstorage/api/types"
"github.com/codedellemc/rexray/libstorage/api/utils"
)
func (c *client) Instances(
ctx types.Context) (map[string]*types.Instance, error) {
if c.isController() {
return nil, utils.NewUnsupportedForClientTypeError(
c.clientType,... | GO | libstorage/drivers/storage/libstorage/libstorage_client_api.go | oppodeldoc/rexray | apache-2.0 | 7,420 | 320 | codeparrot/github-code |
7b756fb5c80d1ef4e6a83224d7b556289cada4c09e0f05990c37966200ff1056 | <section class="privacy-policy-text">
<div class="privacy-policy-text__wrapper">
<h1 class="page-title">Privacy Policy</h1>
<p class="page-descr">
Rainforest Connection respects your privacy. It is Rainforest Connection's policy to respect your privacy regarding any information we may collect from you a... | HTML | src/html/modules/privacy-policy/text.html | rfcx/rfcx.org | apache-2.0 | 5,543 | 75 | codeparrot/github-code |
0a22ae7e8e63b4e9de98c641bbc18f7dd1a498814f39a07ec58f55eba7c83b19 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright (C) 2007 Ahmet BUTUN (butun180@hotmail.com) *
* http://www.ahmetbutun.net *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms o... | C# | Registry/Registry.cs | abutun/active-logger | apache-2.0 | 4,322 | 182 | codeparrot/github-code |
7c445f8a9c7ca962e72d8c6bcecb63b2511da5b83ae718e773794bd5bc85d403 | package org.apache.maven.plugins.dependency.analyze;
/*
* 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 th... | Java | maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java | hgschmie/apache-maven-plugins | apache-2.0 | 16,864 | 511 | codeparrot/github-code |
f8a8656ad2aec8bd44cea83e1f989f03051b03a4ab3c0f363fad038a44133476 | /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#ifndef File__ReferenceFilesHelpe... | C | lib/MediaInfoLib/Source/MediaInfo/Multiple/File__ReferenceFilesHelper.h | ericgriffin/metasort | apache-2.0 | 5,969 | 179 | codeparrot/github-code |
527f9fc148aa87cc00f9996fc7641c7ed2b3c0a9399d954e537ee49656130eb2 | package com.hashnot.u.random;
import com.hashnot.u.range.OverlappingRangeComparator;
import com.hashnot.u.range.Range;
import com.hashnot.u.range.RangeOfComparables;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.util.TreeMap;
import java.util.function.Function;
public class Wei... | Java | micro-random/src/main/java/com/hashnot/u/random/WeightedRandom.java | rafalkrupinski/micro | apache-2.0 | 2,505 | 74 | codeparrot/github-code |
685cb8f40841bf253ab4bd2a0f252628175a5b12b72707b464463e1c978410d8 | """
This component provides HA sensor support for Ring Door Bell/Chimes.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.ring/
"""
from datetime import timedelta
import logging
import voluptuous as vol
from homeassistant.components.sensor import ... | Python | homeassistant/components/ring/sensor.py | jamespcole/home-assistant | apache-2.0 | 6,215 | 181 | codeparrot/github-code |
c0e4412fdf87558bbe1a68abf3b8ccd0bf5c8a3edb5cba96674469f332da2018 | /*
** mrb_fm3gpio.c - FM3 GPIO
**
**
*/
#include "mruby.h"
#include "mruby/class.h"
#include "mruby/value.h"
#define INPUT 0
#define OUTPUT 1
#define LOW 0
#define HIGH 1
#define PFR_GPIO 0
#define PFR_INOUT 1
#define T_ADE 0
#define T_SPSR 1
#define NUM_GPIO 16
#define T_PFR 0
#define T_PCR 1... | C | src/mrb_fm3gpio.c | ossforumjp-app-IoT/mruby-fm3gpio | apache-2.0 | 7,685 | 311 | codeparrot/github-code |
ae9f96ce60fd98d170137602e03a951ce16684943a5428375fd88e283b677c53 | package pimpathon
import scala.{PartialFunction ⇒ ~>}
import scala.collection.generic.{Growable, Shrinkable}
import scala.util.Try
import pimpathon.boolean._
import pimpathon.function._
import scala.reflect.ClassTag
object any {
implicit class AnyPimps[A](val self: A) extends AnyVal {
def calc[B](f: A ⇒ B): B... | Scala | src/main/scala/pimpathon/any.scala | raymanoz/pimpathon | apache-2.0 | 3,454 | 75 | codeparrot/github-code |
c36269fc85ff83471557bb51bb72bc7b7b67c233e906e158c29b7920ce261ddf | <?php
namespace Classroom\Service\Classroom\Dao\Impl;
use Topxia\Service\Common\BaseDao;
use Classroom\Service\Classroom\Dao\ClassroomMemberDao;
class ClassroomMemberDaoImpl extends BaseDao implements ClassroomMemberDao
{
protected $table = 'classroom_member';
public function getTable()
{
return ... | PHP | src/Classroom/Service/Classroom/Dao/Impl/ClassroomMemberDaoImpl.php | 18826252059/im | apache-2.0 | 8,375 | 247 | codeparrot/github-code |
2434e501023f0f4fa064058d319c40c0f5769983397be8e88398a84a770f7bb2 | var AutoSubmit =
{
setupAutoSubmit: function(field, button)
{
$(field).keypress(function(evt)
{
if (AutoSubmit.isEnter(evt))
{
return false;
}
});
$(field).keydown(function(evt)
{
if (AutoSubmit.isEnter(evt))
{
$(button).click();
return false;
}
return true;
});
$(fiel... | JavaScript | Source/Plugins/Core/com.equella.core/resources/web/js/autosubmit.js | equella/Equella | apache-2.0 | 707 | 49 | codeparrot/github-code |
431574a26544783a3b5645420a70ed0b933b914c7a32f4027b307be051d36085 |
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment ... | Java | java/JAXWS/samples/com/vmware/vim25/CreateGroupResponse.java | jdgwartney/vsphere-ws | apache-2.0 | 768 | 33 | codeparrot/github-code |
404b8a504b3a94721133929a2d048376f6ff31182cbb5996d8bbbe33bef71e36 | // Copyright 2020-2021 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... | C++ | src/fuzzing/fuzzing_helpers.cc | google/CTAP2-test-tool | apache-2.0 | 2,215 | 62 | codeparrot/github-code |
af032f35ccb58f00c9e09d6a95f840f89d420b1d2a5617bf0209b4e284ac4f29 | package daemon // import "github.com/docker/docker/daemon"
import (
"context"
"runtime"
"time"
"github.com/containerd/containerd"
"github.com/containerd/containerd/containers"
"github.com/docker/distribution/reference"
"github.com/docker/docker/api/types"
containertypes "github.com/docker/docker/api/types/con... | GO | daemon/start.go | jvanz/docker | apache-2.0 | 9,752 | 283 | codeparrot/github-code |
b9441a806b7a14e5d1dfdb0033072b398efff829b912e720ecd176c3c1f255fd | /*
* 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 General Public License as published by
* the Free Software Foundatio... | Java | community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/state/RelationshipDeleter.java | HuangLS/neo4j | apache-2.0 | 11,277 | 255 | codeparrot/github-code |
09dbd712c9b61e1c1abc0fcac50da87a640fa9cf4e0221e5733b62a6d2283afd | import sys
q_to_time = {}
i = 0
for line in open(sys.argv[1]):
try:
line = line.strip()
cols = line.split('\t')
q_to_time[cols[0]] = [(int(cols[2].split(' ')[0]), i)]
i += 1
except ValueError:
continue
i = 0
for line in open(sys.argv[2]):
try:
line = line.s... | Python | misc/compare_shuffled.py | Buchhold/QLever | apache-2.0 | 1,155 | 42 | codeparrot/github-code |
f2497901928e223317532788041c72d0ced8f6f0bfb5778b16403e145da0efbb | /*******************************************************************************
* Copyright 2011
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | Java | dkpro-lab-core/src/main/java/org/dkpro/lab/engine/ExecutionException.java | dkpro/dkpro-lab | apache-2.0 | 1,387 | 46 | codeparrot/github-code |
8d27fc36e128c4f437897b78f7a22bc5a419dd33eb592c24fca983961c6d5408 | /*
* main.cpp
*
* Created on: 2015Äê12ÔÂ3ÈÕ
* Author: weiteng
*/
#include <sys/file.h>
#include "libc2c/pid_guard.h"
#include "../../include/log_manager.h"
#include "app_config.h"
#include "config_report_agent.h"
void CheckProcessAlive(const char *sPIDPath,const char *sPIDFile)
{
assert... | C++ | component/configcenter/config_center6/config_report_agent/src/main.cpp | kuroroyoung/c2c_proj | apache-2.0 | 1,361 | 72 | codeparrot/github-code |
cc2a3f09f0c39a4acc4cfa89c00fdb4a40d5aa9d76659f8c8105c15131866f66 | package com.xmldatamodifier.core;
import com.google.common.base.Strings;
import static java.util.Objects.requireNonNull;
public class ContentReplaceRule extends ContentRule {
private final String regex;
private final String replacement;
public ContentReplaceRule(String regex, String replacement) {
... | Java | src/main/java/com/xmldatamodifier/core/ContentReplaceRule.java | onegambler/XML-Data-Modifier | apache-2.0 | 1,602 | 54 | codeparrot/github-code |
491b82be53502102a69b64813fcfb0e280dc1a08f6be43a85edb2e4da81abd67 | # -*- test-case-name: txdav.common.datastore.upgrade.sql.test -*-
# #
# Copyright (c) 2011-2015 Apple 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.... | Python | txdav/common/datastore/upgrade/sql/upgrades/addressbook_upgrade_from_1_to_2.py | red-hood/calendarserver | apache-2.0 | 3,445 | 95 | codeparrot/github-code |
8e2d22ac6fe03856e533f7477590e8b501844f986eafdd9e3fbd56632bf7c521 | /*
* Copyright 2010-2016 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-cloudfront/include/aws/cloudfront/CloudFrontRequest.h | ambasta/aws-sdk-cpp | apache-2.0 | 1,721 | 53 | codeparrot/github-code |
5a465f4a335d81a2c497fcdaeb20b16a5714708dc34ea017969fc306af406100 | // Copyright 2020 Red Hat, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | GO | config/v3_4_experimental/config.go | coreos/ignition | apache-2.0 | 2,603 | 79 | codeparrot/github-code |
beb83ddc14d4debda91e0d390378345f703c42fd7d23ad0765aa577fac0a7069 | {template 'common/header'}
<ul class="nav nav-tabs">
<li {if $do == 'display'}class="active"{/if}><a href="{php echo url('activity/goods/display', array());}">管理实物兑换</a></li>
<li {if $do == 'post' && !$id}class="active"{/if}><a href="{php echo url('activity/goods/post', array());}">添加实物兑换</a></li>
{if $do == 'po... | HTML | web/themes/default/activity/goods.html | wenger67/mweixin | apache-2.0 | 15,500 | 366 | codeparrot/github-code |
b38926aa3c98d1f698814e036b05479991d2643d20dc8bf0ab13c6ac57c075e7 | <?php
include_once('form_creditcards_mob_session.php');
if (!function_exists("NM_is_utf8"))
{
include_once("form_creditcards_mob_nmutf8.php");
}
session_start();
//-----
if (!empty($_POST))
{
foreach ($_POST as $nmgp_var => $nmgp_val)
{
$$nmgp_var = $nmgp_val;
... | PHP | 5_dev_tools/scriptcase/PHPTrn/form_creditcards/form_creditcards_mob_fim.php | oprohonnyi/php_trn | apache-2.0 | 7,301 | 199 | codeparrot/github-code |
6bbcf519f47e2bd5e765e1c1fb87825e245f40a7221b501e45d7e39f7d8ac5bc | /****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... | Java | java/concurrent/src/main/java/io/aos/concurrent/scale/LoopHandler.java | XClouded/t4f-core | apache-2.0 | 2,551 | 68 | codeparrot/github-code |
da78d91c062fb768115a8d2209dd0f9d9bbfea1dc5b2b3af7e19855de953099c | /*
* Copyright 2015 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 applicab... | Java | hatunatu/src/test/java/jp/fieldnotes/hatunatu/dao/impl/bean/Employee9.java | azusa/hatunatu | apache-2.0 | 1,472 | 57 | codeparrot/github-code |
bfed9a74d52e0e36e569237ada644b11d66dc28fd11e6195b1485a6a6f32c1f4 | //============================================================================
//
// Copyright (C) 2006-2022 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receive... | Java | components/components-jdbc/components-jdbc-runtime/src/main/java/org/talend/components/jdbc/avro/FloatToStringConverter.java | Talend/components | apache-2.0 | 1,288 | 47 | codeparrot/github-code |
460d83a0e39aa1b7a602be0a83c6befc974f00180dbb9d4af72d2f14d66f06f0 | package com.uiguard.entity.proxy;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
import com.google.common.base.Joi... | Java | UIGuard/src/com/uiguard/entity/proxy/UGProxy.java | uiguard/uiguard | apache-2.0 | 3,581 | 116 | codeparrot/github-code |
683a03d5069d7cc72e68cff509f2a0899a9f1702e6c819bb191a5dc03efb386c | /**
*
* 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"); ... | Java | modules/workflow/workflow-core/src/main/java/org/apache/airavata/workflow/core/WorkflowFactory.java | gouravshenoy/airavata | apache-2.0 | 2,215 | 55 | codeparrot/github-code |
e688c3827e4663668da34214c9328eca602b23ce524c7865bf552a547c9686f3 | // Copyright 2016 The Draco 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 agree... | C | libs/draco/include/point_cloud/point_cloud.h | satcy/ofxDraco | apache-2.0 | 6,368 | 153 | codeparrot/github-code |
7a7b75990d6de8e9192fefdad9bbf57da322c93c860de39e1fff44b2533debfa | // Copyright Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, ... | GO | backend/request.go | camelburrito/amp-by-example | apache-2.0 | 2,371 | 80 | codeparrot/github-code |
74c1d6fd5796cd8459452c1ae062316d30ce35f0bff12ade0ad21e93a1ccb7a0 | /*
* IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.
*
* http://izpack.org/ http://izpack.codehaus.org/
*
* Copyright 2002 Elmar Grom
*
* 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 th... | Java | izpack-gui/src/main/java/com/izforge/izpack/gui/TwoColumnLayout.java | codehaus/izpack | apache-2.0 | 37,184 | 1,046 | codeparrot/github-code |
b76737047922daa3d615c9d0bf8bc47278bc5f9c302627173d9e0a3129745417 | import Base from '../Base';
import RelaunchMixin from '../mixins/Relaunch.mixin';
const BASE_URLS = {
playbook: '/jobs/',
project: '/project_updates/',
system: '/system_jobs/',
inventory: '/inventory_updates/',
command: '/ad_hoc_commands/',
workflow: '/workflow_jobs/',
};
class Jobs extends RelaunchMixin(... | JavaScript | third_party/github.com/ansible/awx/awx/ui_next/src/api/models/Jobs.js | GoogleCloudPlatform/sap-deployment-automation | apache-2.0 | 816 | 35 | codeparrot/github-code |
7d48fb1a802ba396b30f6791f37a198be607ddea95c1278c6f97599531a8ad58 | <?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | PHP | src/Forms/Answer.php | googleapis/google-api-php-client-services | apache-2.0 | 2,118 | 93 | codeparrot/github-code |
fa156fcdfe404eb7e078d9ca18e7015a4709034d4e759e3c8f98b47a85d3e4d7 |
#include <errno.h>
#include <stdbool.h>
#include <sys/fcntl.h>
#include <unistd.h>
#include <link_protocol.h>
#include <hwpl.h>
#include <dev/usb.h>
#include <dev/pio.h>
#include <dev/usbfifo.h>
#include <usb_dev.h>
#include <hwpl/core.h>
#include <hwpl/debug.h>
#include <usb_dev_typedefs.h>
#include <usb_dev_defs.h... | C | CoAction-mbed/link_phy_usb.c | CoActionOS/CoActionOS-HW | apache-2.0 | 12,643 | 434 | codeparrot/github-code |
906ac5b0742cf03b653c1be81a8723034f2c69bd1ed0c6f932af976a7c5505cd | /*
* Copyright Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the authors tag. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU General Public License vers... | Java | compiler-java/test/src/com/redhat/ceylon/compiler/java/test/ConcurrentTestsNoRuntime.java | gijsleussink/ceylon | apache-2.0 | 5,604 | 135 | codeparrot/github-code |
08510a391812018969be17484cedf3341a66f3f82da74adbd26863438e2a8be7 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | modules/base/lang-impl/src/main/java/com/intellij/codeInsight/actions/ShowReformatFileDialog.java | consulo/consulo | apache-2.0 | 2,785 | 78 | codeparrot/github-code |
3e2d3a3eb111c8e18c33165cab8843eff80f32d104a63f2f145f2feceb0d2c88 | /**
Copyright (c) 2016 Rory Hool
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 | app/src/main/java/com/roryhool/videoinfoviewer/CreditsFragment.java | hoolrory/VideoInfoViewer | apache-2.0 | 3,332 | 88 | codeparrot/github-code |
30a9eb5cb922669f7db21d48b8d9535c1f05a790e29507e4b6e2f0a0a1f4fe79 | /*
* SessionResource.java
*
* Copyright (C) 2016, Tozny, LLC.
* All Rights Reserved.
*
* Released under the Apache license. See the file "LICENSE"
* for more information.
*/
package com.tozny.sdk.example.secretmessage;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.tozny.sdk.RealmApi;
import ... | Java | examples/secretmessage/src/main/java/com/tozny/sdk/example/secretmessage/SessionResource.java | tozny/sdk-java | apache-2.0 | 3,980 | 132 | codeparrot/github-code |
d5ec16a8eecc7cebebd7c4afb7bea55d63b6faa0453cc95fcf4779f73e7381df | /**
* Copyright 2014 SCN SDK Community
*
* Original Source Code Location:
* https://github.com/org-scn-design-studio-community/sdkpackage/
*
* 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 Li... | JavaScript | src/org.scn.community.databound/res/UI5Table/UI5Table.js | YunuSahin/sdk | apache-2.0 | 5,598 | 212 | codeparrot/github-code |
2de0311cc8ac2d526a9ea556615e521fe4a6b2115a14710a6e4c733f94f106d5 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Ionic makes it incredibly easy to build beautiful and interactive mobile apps using HTML5 and AngularJS.">
<meta name="keywords" content="html5,ja... | HTML | _site/docs/1.0.0-beta.13/api/service/$ionicTemplateCache/index.html | sachinvettithanam/ionic-site | apache-2.0 | 32,239 | 1,147 | codeparrot/github-code |
c87345083858893b38ae985ec98f090e505834ff6fce46d1e59afd004edf9e8a | /* See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Esri 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
*
... | Java | geoportal/src/com/esri/gpt/framework/mail/MailRequest.java | Esri/geoportal-server | apache-2.0 | 6,432 | 256 | codeparrot/github-code |
4c0cb5564c34ef3808172ad9f23f1c422636de8fed204504796a6f794b222ce9 | #!/usr/bin/env python3.4
#
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | Python | mobly/controllers/attenuator_lib/minicircuits.py | yusufm/mobly | apache-2.0 | 5,184 | 133 | codeparrot/github-code |
e87e4aa96043b3c32247210324e177b81ccb89a8598bc2ca7e196c77d76037fa | module.exports = function (client) {
const baseUrl = '/api-endpoints/';
return {
create (name, endpointConfig) {
return client
.put(`${baseUrl}${encodeURIComponent(name)}`)
.send(endpointConfig)
.then(res => res.body);
},
update (name, endpointConfig) {
return this.cr... | JavaScript | admin/config/api-endpoints.js | ExpressGateway/express-gateway | apache-2.0 | 722 | 31 | codeparrot/github-code |
ab1d785308815dcb6edfc1947f35ba131bbc426bc4eaa2dbe003bbab22908174 | import core
logger = core.log.getLogger("monitoring-utils")
class MonitoringUtils(object):
def __init__(self):
pass
@staticmethod
def check_existing_tag_in_topology(root, node, node_type, node_urns,
domain=None):
tag_exists = False
try:
... | Python | modules/resource/orchestrator/src/monitoring/utils.py | ict-felix/stack | apache-2.0 | 4,165 | 112 | codeparrot/github-code |
cbb65d0e81ec4a1272638866e54fbfbaf51171bc37f49aa25486e5f38c74fac4 | define(function(require) {
'use strict';
var modules = require('modules');
var states = require('states');
var _ = require('lodash');
var angular = require('angular');
states.state('applications.detail.deployment.input', {
url: '/input',
templateUrl: 'views/applications/application_deployment_inpu... | JavaScript | alien4cloud-ui/src/main/webapp/scripts/applications/controllers/application_deployment_input.js | PierreLemordant/alien4cloud | apache-2.0 | 6,101 | 131 | codeparrot/github-code |
23cc50e84288ce61839327004cd61db6eddf7266a9d08721e58a4f3dfdc1d6f7 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Net.Pkcs11Interop.HighLevelAPI;
using Net.Pkcs11Interop.Tests.HighLevelAPI;
using Net.Pkcs11Interop.Tests;
using System.Collections.Generic;
using Net.Pkcs11Interop.Common;
using Net.Pkcs11Interop.HighLevelAPI.MechanismParams;
using Net.Pkcs11Inte... | C# | src/Pkcs11Interop/TestProject1/HighLevelAPI/CKM_GOSTR3410_DERIVE_Tests.cs | thearkhelist/Pkcs11Interop | apache-2.0 | 3,546 | 76 | codeparrot/github-code |
11983c2edff9b526b8c554f75e1e2efb7fdb4261e32f032f092fd21e44cb49cc | package com.testfabrik.webmate.javasdk.mailtest;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.testfabrik.webmate.javasdk.JacksonMapper;
import com.testfabrik.webmate.javasdk.WebmateApiClientException;
import com.testfabrik.webmate.javasdk.testmgmt.Artif... | Java | src/main/java/com/testfabrik/webmate/javasdk/mailtest/TestMail.java | webmate-io/webmate-sdk-java | apache-2.0 | 2,269 | 78 | codeparrot/github-code |
793fbb81f5ef5d1224d6c9da03c4e389125d4f9b97508a9273de785b440f600d | # file eulcommon/djangoextras/formfields.py
#
# Copyright 2010,2011 Emory University Libraries
#
# 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... | Python | eulcommon/djangoextras/formfields.py | emory-libraries/eulcommon | apache-2.0 | 8,195 | 215 | codeparrot/github-code |
d84cc9c8fdccbfb229ae7040849202d51676f5d5b97ab4ca6e6469b2b7999da3 | /*
* 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-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/ModifyReservedInstancesResultStaxUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,609 | 66 | codeparrot/github-code |
8d632070ab7dc5a77c49c58955ecc3c75f87bd5f4b4edffb4f207a4a71a80db8 | /*
* Copyright 2015-2016 Red Hat, Inc, and individual 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Java | app/src/main/java/org/jboss/hal/client/deployment/ServerGroupDeploymentColumn.java | hpehl/hal.next | apache-2.0 | 22,927 | 446 | codeparrot/github-code |
41a5b9b44f407f49395c2aba16a3295329eb862daf6b1ed349555c4736adea5c | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | tensorflow/core/kernels/data/parallel_interleave_dataset_op.cc | manipopopo/tensorflow | apache-2.0 | 47,490 | 1,067 | codeparrot/github-code |
12bc67b0abf61f4b6f8360b0e45f2f7b22f13b1aa9859ff5a75ca23cafacb7dc | <html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ResizeImage</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ResizeImage()</font></b></p>
<p><b>语法</b></p><blockq... | HTML | target_dir/documentation/image/resizeimage.html | PureBasicCN/PureBasicPreference | apache-2.0 | 2,681 | 81 | codeparrot/github-code |
e5d398506175345113d06f788fb4d943a37d52ed76effc124680db29ed497630 | package ru.chedmitriy.monitor.ex1105;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
/**
* ru.chedmitriy.multithreading.threads.monitor.ex1105.
*
* @author cheDmitry
* @version 1.0
* @since 29.10.2017
* тестируем класс LinkedListThread... | Java | chapter_006/src/test/java/ru/chedmitriy/monitor/ex1105/LinkedListThreadTest.java | CheRut/chedmitry | apache-2.0 | 2,472 | 109 | codeparrot/github-code |
c86ba45e9fa291aa7d19cdff5f7e3ab3ada2c1497f23e49d2a864e2b35455070 | package helper
import (
"context"
"encoding/json"
"fmt"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/strategicpatch"
"k8s.io/klog/v2"
"time"
corev1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/reconci... | GO | pkg/controller/helper/controller.go | kubernetes/cloud-provider-alibaba-cloud | apache-2.0 | 2,837 | 117 | codeparrot/github-code |
3065a3f503eabfc9400dc0746c65624c247f5ebbab22ff2013bb253ea86684f5 | <!DOCTYPE html>
<html>
<head>
<title>TestNG reports</title>
<link type="text/css" href="testng-reports.css" rel="stylesheet" />
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="testng-reports.js"></script>
<script type="text/javascript" src="... | HTML | mmm-util-backport-java.time/test-output/index.html | m-m-m/java8-backports | apache-2.0 | 12,107 | 244 | codeparrot/github-code |
f41c112f0457f8bae6ad994b682c22e15302cd8b144525d82bbcb2936fe0dc90 | package com.tvd12.ezyfox.tool;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTi... | Java | ezyfox-tools/src/main/java/com/tvd12/ezyfox/tool/EzyObjectInstanceRandom.java | youngmonkeys/ezyfox | apache-2.0 | 15,956 | 499 | codeparrot/github-code |
364c171f23907f36f2854d54798df1c70be368572aee3ad089e1486082102ffb | /*
* 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-transfer/src/main/java/com/amazonaws/services/transfer/model/transform/IdentityProviderDetailsJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,082 | 79 | codeparrot/github-code |
febd6f2833b83566dd997c35d9f30947ce06f676de29f0d261a60c5b68a81928 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using FluentMigrator.Model;
using FluentMigrator.Runner.Generators.Base;
namespace FluentMigrator.Runner.Generators.SQLite
{
internal class SQLiteColumn : ColumnBase
{
public SQLiteColumn()
: base(new SQL... | C# | src/FluentMigrator.Runner/Generators/SQLite/SQLiteColumn.cs | itn3000/fluentmigrator | apache-2.0 | 1,949 | 56 | codeparrot/github-code |
70509cb3ef230aa864e2de38263f4081fea842b32bb6fd4ef6b6200ff92c7976 | package ch.dissem.bitmessage.repository;
import ch.dissem.bitmessage.entity.valueobject.NetworkAddress;
import ch.dissem.bitmessage.exception.ApplicationException;
import ch.dissem.bitmessage.ports.NodeRegistry;
import ch.dissem.bitmessage.utils.Collections;
import ch.dissem.bitmessage.utils.SqlStrings;
import ch.diss... | Java | repositories/src/main/java/ch/dissem/bitmessage/repository/JdbcNodeRegistry.java | Dissem/Jabit | apache-2.0 | 6,054 | 168 | codeparrot/github-code |
9fc75eebe70e0543d0f4f5e46e2494b386549d6f11daa96ae8ee716627b53535 | /*
* 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-forecast/src/main/java/com/amazonaws/services/forecast/model/transform/MetricsJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,538 | 91 | codeparrot/github-code |
a9f32a32fb70d515970a5476ebd33a504225a166eea5f31642a17ec3132cb327 | import serial
from sys import platform as platform
import serial.tools.list_ports
import serial.threaded
from pymouse import PyMouse
from Voice.GoogleTTS import speak
import threading
import math
import copy
import time
import json
data_repository_right = {
"id" : [],
"name" : [],
"short... | Python | Bluetooth/Bluetooth.py | ashwinpilgaonkar/Flick | apache-2.0 | 25,172 | 680 | codeparrot/github-code |
54fb1fa8a704aaacfa8eb3a00e81bc64a8c8588c9518c9a412a5910130dba992 | package com.ilivoo.memcached;
import java.net.InetSocketAddress;
import com.thimbleware.jmemcached.CacheImpl;
import com.thimbleware.jmemcached.Key;
import com.thimbleware.jmemcached.LocalCacheElement;
import com.thimbleware.jmemcached.MemCacheDaemon;
import com.thimbleware.jmemcached.storage.CacheStorage;
i... | Java | memcached/src/main/java/com/ilivoo/memcached/MemcachedManager.java | ilivoo/ilivoo | apache-2.0 | 1,923 | 51 | codeparrot/github-code |
b2249ff5727d28f90878fa0e787687cb991a2eef7a6bdda97dd4e5156ed0e9b9 | <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ site.description }}">
<title>{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }... | HTML | _includes/head.html | jtvanlew/jtvanlew.github.io | apache-2.0 | 3,462 | 58 | codeparrot/github-code |
d78721fed04d62c6e92665a78e7a98f572b871ab2c08a82c63d8cc65e9a1f9f4 | package zoara.sfs2x.extension.db;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import zoara.sfs2x.extension.simulation.ActivePlayer;
import zoara.sfs2x.extension.simulation.World;
im... | Java | src/zoara/sfs2x/extension/db/ItemDBHandler.java | xiehan/zoara-server | apache-2.0 | 14,098 | 387 | codeparrot/github-code |
7b841b7addcd07b93ee20ef8b135465d8a25e01eb8d66bd319f45b23ebf6fe73 | import re
import datetime
from collections import OrderedDict
TimePattern = re.compile("^[0-9]{4}\-[0-9]{2}\-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$")
TimeFormat = "%Y-%m-%dT%H:%M:%S.%fZ"
TimePatternSimple = re.compile("^[0-9]{4}\-[0-9]{2}\-[0-9]{2} [0-9]{2}:[0-9]{2}$")
TimeFormatSimple = "%Y-%m-%d %H:%M"
d... | Python | lib.py | flarno11/teslasuc | apache-2.0 | 1,173 | 44 | codeparrot/github-code |
8f44bfefd82af7f3ea15fcb09f93ccc5cca1663309597c769205e82f4dec21e2 | <?php
class RegistroBlog {
protected $blogBd;
protected $blog;
protected $codigoUsuario;
protected $tags;
function __construct($vars = array()) {
extract($vars);
$this->blogBd = new BlogBd();
$this->blog = new Blog();
$this->blog->NewBlog($titulo,$co... | PHP | Library/RegistroBlog.php | KanedaShotaro/Salpimenta-alpha | apache-2.0 | 1,701 | 61 | codeparrot/github-code |
cc894bc33a34c2b9017930f54c9fe0b68ce9bd996947260f6fd77e6017bd8bc1 | package org.nohope.serialization.streams;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.io.IOUtils;
import javax.annotation.Nonnull;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
/**
* @author <a href="mailto:ketoth.... | Java | projects/serialization/src/main/java/org/nohope/serialization/streams/JsonProvider.java | no-hope/java-toolkit | apache-2.0 | 1,218 | 42 | codeparrot/github-code |
c41d919d0c497e70d62802cd9d68e301175505474022ad62a17b305cd9e7dce0 | {% extends "pretixplugins/banktransfer/import_base.html" %}
{% load i18n %}
{% block inner %}
<p>{% blocktrans trimmed %}
We detected the following payments. Please review them and click the 'Confirm' button below.
{% endblocktrans %}</p>
<form method="post" action="">
{% csrf_token %}
... | HTML | src/pretix/plugins/banktransfer/templates/pretixplugins/banktransfer/import_confirm.html | Unicorn-rzl/pretix | apache-2.0 | 2,515 | 55 | codeparrot/github-code |
54ad0d70acd7a7a3aa1af2eef16875037aa1460d79cee81212fd1dac71f58b3a | namespace Trionic5Controls
{
partial class ctrlCompressorMapEx
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>... | C# | Trionic5Controls/ctrlCompressorMapEx.Designer.cs | Just4pLeisure/T5SuiteII | apache-2.0 | 24,398 | 462 | codeparrot/github-code |
53e41892d84625d663f69548dbc6d4e85ecbaa1d32dd320abeee4bea0f793e48 | """replace.py
Tool for replacing variable names in Damon.
Copyright (c) 2009 - 2011, Mark H. Moulton for Pythias Consulting, LLC.
Purpose: This tool was developed to replace CamelCase argument
variables with all lower case equivalents across all Damon modules.
It is being retained because it is readily adaptable to ... | Python | damon1/replace_it.py | Sohojoe/damon | apache-2.0 | 14,439 | 472 | codeparrot/github-code |
6bdfd5ea6e2d5a17505ea1f733b593de6832316bf3d002e5dcaf21f0a558289b | /*
* Copyright 2014 Authlete, 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 ... | Java | src/main/java/com/authlete/sample/server/api/auth/Authorizer.java | authlete/authlete-java-sample-server | apache-2.0 | 4,401 | 151 | codeparrot/github-code |
030622716e114bcc505e29337d8619165e08cac526933b6c562dd7e47e7f9c9f | package net.erel.maven.plugins.mojo;
import net.erel.maven.plugins.service.bugtracking.BugTrackingServiceFactory;
import net.erel.maven.plugins.service.bugtracking.BugTrackingServiceFactoryDefault;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.Component;
import org.apache.ma... | Java | src/main/java/net/erel/maven/plugins/mojo/PGXAbstractMojo.java | nherbaut/erel-maven-plugin | apache-2.0 | 3,677 | 159 | codeparrot/github-code |
c73cb44f062b23514ee64f0a7c26898993aae9db0cb3e7985481a36d4c3c9ae8 | /*
* Copyright (C) 2013 Brian Muramatsu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Java | src/com/btmura/android/reddit/app/Controller.java | btmura/rbb | apache-2.0 | 1,071 | 40 | codeparrot/github-code |
18fd7468f085353a0f59064220ccbb2fd97945bf66c8d4406e8ef439f7941f6b | /*
* Copyright 2018 The GraphicsFuzz Project 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 applic... | Java | reducer/src/test/java/com/graphicsfuzz/reducer/reductionopportunities/ExprToConstantReductionOpportunitiesTest.java | google/graphicsfuzz | apache-2.0 | 8,404 | 215 | codeparrot/github-code |
029d1905b2abcce8a4bb44c905808d99680c8912cf2643f5466d9829e037d36c | /*
* Copyright 2012-2022 The Feign 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 | core/src/main/java/feign/Request.java | OpenFeign/feign | apache-2.0 | 13,410 | 486 | codeparrot/github-code |
be851fb5ab2f355e22b314879b65f0f9cb6fdbec052e9fcab2d6569a018d798b | package com.dianping.zebra.administrator.config;
import com.dianping.zebra.util.StringUtils;
import org.apache.zookeeper.*;
import org.apache.zookeeper.data.Stat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
/**
* Created by taochen on 2018/10/28.
*/
public class ZookeeperSe... | Java | zebra-admin-web/src/main/java/com/dianping/zebra/administrator/config/ZookeeperService.java | dianping/zebra | apache-2.0 | 3,454 | 105 | codeparrot/github-code |
f386bd4af6871e33366b58b41f5bd00629ee40a91afa332e55ff673ed64950ea | /* Run a HTTP server that registers its location using the Datawire
* Microservices Development Kit (MDK).
*
* Make sure you have the DATAWIRE_TOKEN environment variable set with your
* access control token.
*/
/* jshint node: true */
"use strict";
var process = require("process");
var args = process.argv.splic... | JavaScript | examples/javascript-local/server.js | datawire/mdk-docs | apache-2.0 | 1,134 | 46 | codeparrot/github-code |
91b10628a8f75a843783e5ac0f8c79e98866183f7947e4d08e71e6c3f771bf17 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.dinglicom.dispatch.domain;
import com.dinglicom.frame.sys.domain.BaseMsgBean;
import java.util.List;
/**
* 送奶工任务查询结果
*... | Java | src/main/java/com/dinglicom/dispatch/domain/DispathingTaskResp.java | pzjack/webframe | apache-2.0 | 997 | 48 | codeparrot/github-code |
9e0f7e9f467c637981e585bec8048ee086d1f34270e14b55e1720be2ce99aff1 | /*
* 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 | animation/src/main/java/com/googlecode/bpmn_simulator/animation/ref/CastReference.java | steschw/bpmn-simulator | apache-2.0 | 1,599 | 56 | codeparrot/github-code |
39dfa96f12214cf6cd853fa46582db96ec786db9d90709c38daaa2aa63fbdfae | package activity.example.yuan.cn.exampletools.utils;
import android.annotation.SuppressLint;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.DocumentsCont... | Java | app/src/main/java/activity/example/yuan/cn/exampletools/utils/ContentUtil.java | adjack/ExampleTools | apache-2.0 | 5,362 | 148 | codeparrot/github-code |
0f129b83e6f13e8fa52a4ae9010567db2e4943fa62840d0c4253ddff0bb95d74 | package org.jrd3.editor;
import org.joml.Vector3f;
import org.jrd3.editor.gui.*;
import org.jrd3.engine.playenv.interaction.CamView;
import org.jrd3.engine.playenv.interaction.map.PathsMap;
import org.jrd3.engine.playenv.interaction.map.Sector;
import org.jrd3.engine.playenv.interaction.map.ViewMap;
import org.jrd3.e... | Java | JRD3_Tools/src/main/java/org/jrd3/editor/Editor.java | Ray1184/JRD3_Project | apache-2.0 | 10,295 | 248 | codeparrot/github-code |
8f187f120e3cf913ab423fa92e135cb642b80a44a5f1cd21b695f8c53b9d57cd | /*
* Arduino-serial
* --------------
*
* A simple command-line example program showing how a computer can
* communicate with an Arduino board. Works on any POSIX system (Mac/Unix/PC)
*
*
* Compile with something like:
* gcc -o arduino-serial arduino-serial.c
*
* Created 5 December 2006
* Copyleft (c) 2006... | C++ | Source/Arduino/ArduinoSerial.cpp | jasonbunk/InvertedPendulumVisualControl | apache-2.0 | 4,076 | 160 | codeparrot/github-code |
5b426740bb29d20956c75e7cf9a638d092473f6615a33f42becdf6790175077d | #pragma once
#include <memory>
#include <BWAPI.h>
#include "Common.h"
namespace BlackCrow {
class BlackCrow;
class ScoutSquad;
class AttackSquad;
class Base;
class Army {
public:
Army(BlackCrow &blackrow);
void onStart();
void onFrame();
// Variables
std::vector<SquadUnitPtr> sunits;
std::vector<... | C | src/Army.h | Dukrah/BlackCrow | apache-2.0 | 834 | 41 | codeparrot/github-code |
b7beae8e9bc482896d4c3bdd0b0c745c9b6040646e85437d782255133460f2ca | /*
* 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
* distribut... | Java | src/main/java/org/gbif/common/parsers/utils/ClassificationUtils.java | gbif/parsers | apache-2.0 | 6,511 | 195 | codeparrot/github-code |
90680172ecab5b069fd501fece0d29f491ef4f8ecd4b3d9d59ac51d4831ca7e7 | #include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
HDC hDC = GetDC(GetConsoleWindow());
HPEN Pen = CreatePen( PS_SOLID, 2, RGB(255, 255, 255));
SelectObject( hDC, Pen );
MoveToEx( hDC, 20, 50, NULL );
LineTo( hDC, 100, 50 );
MoveToEx( hDC, 20, 60, NULL );
LineTo( hDC... | C | tests.c | juanpablobadani/UCB_SopaDeLetras | apache-2.0 | 776 | 42 | codeparrot/github-code |
581c9c5d74d8e35a1e3c4345a397138f66991888666e35bead816075c2aacdad | package poussecafe.attribute.entity;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.function.Supplier;
import poussecafe.domain.Entity;
import poussecafe.domain.EntityAttributes;
public class SingleEntityAttributeBuilder<D extends EntityAttributes<?>, E extends Entity<?, D>, F extends ... | Java | pousse-cafe-core/src/main/java/poussecafe/attribute/entity/SingleEntityAttributeBuilder.java | pousse-cafe/pousse-cafe | apache-2.0 | 1,872 | 74 | codeparrot/github-code |
b1839a1cf43c771155994fc8f09ec25fa978b10db6bcd73d00b4d79b98949561 | package org.jetbrains.plugins.scala
package codeInspection.booleans
import org.jetbrains.plugins.scala.codeInspection.{AbstractFix, AbstractInspection}
import com.intellij.codeInspection.{ProblemDescriptor, ProblemHighlightType, ProblemsHolder}
import com.intellij.psi.PsiElement
import org.jetbrains.plugins.scala.lang... | Scala | src/org/jetbrains/plugins/scala/codeInspection/booleans/DoubleNegationInspection.scala | consulo/consulo-scala | apache-2.0 | 3,529 | 92 | codeparrot/github-code |
377d87b527bc1527383d232b4a2515036481339e9f57afab6d04e3336c55e1f1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Азбука вкуса</title>
<style type="text/css">
.ExternalClass {width:100%;}
.Externa... | HTML | azbuka_vkusa/2017/azbuka_2017_09_19_express/azbuka_2017_09_19_express.html | wim-agency/wim-agency.github.io | apache-2.0 | 69,514 | 761 | codeparrot/github-code |
66d32b98ca77a8238ea75d2519c2bc97e5ea24bcc7af8bf6f55ab634353a4bed | package org.openqa.grid.e2e.misc;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHtt... | Java | java/server/test/org/openqa/grid/e2e/misc/Grid1HeartbeatTests.java | akiellor/selenium | apache-2.0 | 2,868 | 77 | codeparrot/github-code |
59f8872e355a3c1c7b1c71b247f59d3c154dd1e8c30b3b0cc2e18fea51e2bd14 | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: mango
@contact: w4n9@sina.com
@create: 16/7/4
hail hydra!
"""
__author__ = "mango"
__version__ = "0.1"
from kazoo.client import KazooClient
import logging
logging.basicConfig()
class ZookeeperClient(object):
def __init__(self, zk_host):
self.... | Python | Storage/BigData/Zookeeper/ZKClient.py | w4n9H/PythonSkillTree | apache-2.0 | 2,203 | 95 | codeparrot/github-code |
8e736745a4cf039ae9cfd59d4e393c8dce882a6df32f3288e0db66811b83fff4 | /*
* Copyright 2016 Ratha Long
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java | testamation-core/src/main/java/nz/co/testamation/core/reader/SelectRows.java | rlon008/testamation | apache-2.0 | 1,651 | 55 | codeparrot/github-code |
8a5434730dd795aa4736331e721da7005a07445101ffa76581d7e8b3f4eaca3b | /**
* 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 | beeline/src/java/org/apache/hive/beeline/IncrementalRowsWithNormalization.java | vergilchiu/hive | apache-2.0 | 2,991 | 87 | codeparrot/github-code |
883ba39eacc4f37587f9db4a06b6c1b3b23688dbdfdbf0d9063f203d0c5e302c | """A simple multi-agent env with two agents playing rock paper scissors.
This demonstrates running the following policies in competition:
(1) heuristic policy of repeating the same move
(2) heuristic policy of beating the last opponent move
(3) LSTM/feedforward PG policies
(4) LSTM policy with custom e... | Python | rllib/examples/rock_paper_scissors_multiagent.py | richardliaw/ray | apache-2.0 | 5,789 | 159 | codeparrot/github-code |
55438b922302b0a7b705f78f88f028c94aecd27e9ff77542c1cea6b4801d78cf | using System.Collections.Generic;
using Newtonsoft.Json;
namespace YouTrackSharp.Management
{
/// <summary>
/// A class that represents YouTrack system wide time settings information.
/// </summary>
public class SystemWideTimeTrackingSettings
{
/// <summary>
/// Creates an instance of the <see cref="SystemWi... | C# | src/YouTrackSharp/Management/SystemWideTimeTrackingSettings.cs | JetBrains/YouTrackSharp | apache-2.0 | 831 | 37 | codeparrot/github-code |
b4398223e01bbe4853a665e7840d751d9dce8765e80c3c6832152a5ee6868ba2 | /*
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | src/test/java/com/cedac/security/oauth2/provider/token/store/TokenStoreBaseTests.java | cedac-software/spring-security-mongodb | apache-2.0 | 13,183 | 245 | codeparrot/github-code |
d96f4b21874a5a4d963eeb06bed1b3683aa342de0198b9a26eeaa19800771278 | package org.apache.hadoop.tools.posum.common.util;
import org.apache.commons.lang.WordUtils;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Meth... | Java | hadoop-tools/hadoop-posum/src/main/java/org/apache/hadoop/tools/posum/common/util/GeneralUtils.java | an3m0na/hadoop | apache-2.0 | 5,199 | 148 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.