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 |
|---|---|---|---|---|---|---|---|---|
8182f264f341a4d17acac204501f7648ccb673dfb7703db0cb6b6976a7bec4c6 | // Copyright (c) 2014-2016, b3log.org & hacpai.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | GO | shell/shells.go | admpub/wide | apache-2.0 | 4,566 | 190 | codeparrot/github-code |
044527792e7b1b47bd4e988567fb5227c275b314d762a6cfbeaf7378f2848116 |
#include "zce_predefine.h"
#include "zce_async_fsm.h"
#include "zce_os_adapt_error.h"
#include "zce_log_logging.h"
//=====================================================================================
//状态机的异步对象
ZCE_Async_FSM::ZCE_Async_FSM(ZCE_Async_ObjectMgr *async_mgr, unsigned int create_cmd) :
ZCE_Async_Ob... | C++ | src/commlib/zcelib/zce_async_fw_fsm.cpp | sailzeng/zcelib | apache-2.0 | 2,151 | 104 | codeparrot/github-code |
f69cc27923d744e766108c6827b623784a62cb05fbd2f77a13ec6bab900ca6f9 | # Redmine - project management software
# Copyright (C) 2006-2014 Jean-Philippe Lang
#
# 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 2
# of the License, or (at your option) any... | Ruby | app/models/issue.rb | RedAlliances/RedminePM2 | apache-2.0 | 57,008 | 1,572 | codeparrot/github-code |
e273876b2a9a5d1f93768c531c28a0660b01b461495b594a81b9118342c41663 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | tutorials/image/cifar10/cifar10.py | jiaphuan/models | apache-2.0 | 14,665 | 400 | codeparrot/github-code |
ad549ffd913cb67a6a94ea533ebfcfc1235f80cea85c76bab77c7f2e20b53da6 | /*
* Copyright 2013 Google Inc.
* Copyright 2015 Andreas Schildbach
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | Java | core/src/main/java/com/matthewmitchell/nubitsj/params/MainNetParams.java | Cybnate/NuBitsj | apache-2.0 | 2,961 | 80 | codeparrot/github-code |
544e070289915859d0c21f29e1532d5b8c10e7092a5d0b91ac9daacbed9a8dc5 | /*
* Copyright 2014 Andreas Schildbach
*
* 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 | core/src/main/java/org/bitcoinj/utils/MonetaryFormat.java | oscarguindzberg/bitcoinj | apache-2.0 | 20,271 | 497 | codeparrot/github-code |
7b48975d1f9e7e4dc1815e8fe0740e358aba047240b51141ce9a3c14e782b329 | // Copyright (C) 2019 The DMLab2D 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 applicable law o... | C++ | dmlab2d/lib/system/tile/lua/tile_scene.cc | deepmind/lab2d | apache-2.0 | 4,763 | 130 | codeparrot/github-code |
87ff3386972bd1f870d332f8222c1a907d6b345b77ccee945e8b914b18b57972 | package com.anttoolkit.hbase.tasks.data;
import java.io.*;
import org.apache.tools.ant.*;
import com.anttoolkit.hbase.tasks.*;
import com.anttoolkit.hbase.tasks.data.util.*;
public class DeleteTask extends GenericHBaseTask
{
private String table;
private DeleteAction action = new DeleteAction(this);
public void... | Java | dev/modules/native/hbase/src/main/java/com/anttoolkit/hbase/tasks/data/DeleteTask.java | irudyak/ant-toolkit | apache-2.0 | 963 | 52 | codeparrot/github-code |
b672de0d30a96356578a1f1afd72279412f98b5e75d2409ece08c51d64568e81 | package com.degueLobo.app.Entities.Utils;
/**
* Created by kefala on 21/09/16.
*/
public enum Colors {
//clase estaticamente parametrizada :P
RED(1, "Rojo"),
BLACK(2, "Negro");
private final Integer id;
private final String name;
Colors(Integer id, String name) {
this.id = id;
... | Java | project/swing-cars/src/main/java/com/degueLobo/app/Entities/Utils/Colors.java | kefala/swing-cars | apache-2.0 | 709 | 39 | codeparrot/github-code |
b37d5673c942fca8ac7f18bb343b620030bd8479e4f4302ab4d9b84374f86dc4 | /*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... | Java | main/boofcv-feature/src/main/java/boofcv/alg/feature/detect/interest/GeneralFeatureDetector.java | lessthanoptimal/BoofCV | apache-2.0 | 10,560 | 290 | codeparrot/github-code |
7deb85f8eb309b4494a1ba684c71943c661510eab8dad4864ef59d07265795ca | /*
* Copyright (C) 2010 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 app... | Java | app/src/main/java/uz/greenwhite/slidingmenu/support/v10/json/android_json/JsonWriter.java | axmadjon/AndroidSlidingMenu | apache-2.0 | 16,585 | 532 | codeparrot/github-code |
e87585b266ba02943135fc8840ccfdbfee95e5ba3823e58791f1dc495c32756b | using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Text;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.SystemModule;
using DevExpress.Persistent.Base;
using System.Linq;
us... | C# | CIIP.Designer.Module/Controllers/SecurityShowNavigationItemController.cs | tylike/CIIP | apache-2.0 | 12,122 | 326 | codeparrot/github-code |
2fca120679b8b6feb1ecdd33a570a7697b28c2aed5daa9f7a16821c5de87f293 | /*
* Copyright (c) 2005 Chris Richardson
*
* 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 | pia-ch-06-hibernate/src/main/java/net/chrisrichardson/foodToGo/domain/hibernate/HibernateOrderRepositoryImpl.java | cer/pia | apache-2.0 | 10,539 | 325 | codeparrot/github-code |
097ba1b1016f51c83837702dd518b62279cfdaa6f027feab0221c6cfe3218db5 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script><endnote><head>
<script></script><!-- saved from url=(0036)http://guardianes.greenpeace.org.ar/ -->
<meta http-equiv="Content-Type"
co... | HTML | src/app/help.html | Geodan/Earthwatchers | apache-2.0 | 15,769 | 365 | codeparrot/github-code |
2df507b602a7c0385e35a2e4376dcda8b6d062d86d97e143627604a6cce1178c | /*
* 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-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/transform/RenderUiTemplateRequestProtocolMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,709 | 64 | codeparrot/github-code |
0a1c1a116a2004bcc0081eb4ba75863bf230b9aba58677bd6fb045b3666af025 | <?php
class SurveyAction extends ZAction
{
//订单的四种状态
const STATUS_CANCELLED = -1;
const STATUS_WAIT_ASSIGN = 0;
const STATUS_DEPARTURE = 1;
const STATUS_FINISHED = 2;
//
const USER_FROM_DDXQAPP= 0;
const USER_FROM_WEIXIN = 1;
public function run()
{
$station_id = Yii::app()-... | PHP | ddxqmap/protected/controllers/pcapilist/SurveyAction.php | hubert1002/MapServerYiiPHP | apache-2.0 | 12,943 | 331 | codeparrot/github-code |
ca4ea72ec18d96dd1f10ca9f41804a96c3b466c1b1f335edf8b28c74aabd7440 | /**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java | microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java | manikandan-palaniappan/azure-storage-java | apache-2.0 | 23,407 | 571 | codeparrot/github-code |
ee17ecc64fa78684ea9c9d86bf5356e098532c590bb87559986a9a5b2d7117df | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | Java | geode-core/src/integrationTest/java/org/apache/geode/internal/logging/log4j/GeodeVerboseMarkerFilterAcceptIntegrationTest.java | pdxrunner/geode | apache-2.0 | 3,517 | 97 | codeparrot/github-code |
43e095ac9bcdfcd674eb66dbaf6fcc311f07e9ebae086e58aba182152bad3193 | //===- SPIRVOps.cpp - MLIR SPIR-V operations ------------------------------===//
//
// Copyright 2019 The MLIR 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.... | C++ | third_party/mlir/lib/Dialect/SPIRV/SPIRVOps.cpp | ppwwyyxx/tensorflow | apache-2.0 | 97,633 | 2,655 | codeparrot/github-code |
f0a918bccf4953af50a0c355a2d3fa06fd743e5217917e9c003409dbaf09a105 | /*
* Copyright 2015-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | protocols/bgp/ctl/src/main/java/org/onosproject/bgp/controller/impl/BgpControllerImpl.java | sdnwiselab/onos | apache-2.0 | 10,681 | 341 | codeparrot/github-code |
d070b0ccb902852c4341b5f4ca95d90dcb08d28ac9473efc4ea9547eb574bf6a | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TRL.Common.Data;
using TRL.Common.Models;
using TRL.Common.TimeHelpers;
using TRL.Common.Handlers;
using TRL.Common.Collections;
using TRL.Logging;
namespace TRL.Common.Handl... | C# | TRL.Common.Test/Handlers/RejectOrderHandlerTests.cs | wouldyougo/TRx | apache-2.0 | 3,373 | 86 | codeparrot/github-code |
9e299e6c55384eee7eb0b6d34c0e6055a33daabbe006618cde328224357842c8 | /*
* Copyright (c) 2005-2010 Grameen Foundation USA
* 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
*
* Unl... | Java | application/src/main/java/org/mifos/framework/components/audit/business/AuditLogRecord.java | mifos/1.5.x | apache-2.0 | 1,885 | 72 | codeparrot/github-code |
fc748bbfd66fd71f87f704bf2ec17ebe9d4597f1387ca1f83989464787f76b7c | <?php
/**
* Created by PhpStorm.
* User: albertoperezperez
* Date: 13/07/14
* Time: 19:08
*/
require_once ('Answer.class.php');
class SurveyResults extends DataObject {
protected $data = array(
"idSurvey" => "",
"idAnswer" => "",
"answerTitle" => "",
"count" =>""
);
}
... | PHP | modules/surveys/model.php | titoapps/php-asociacion | apache-2.0 | 5,564 | 218 | codeparrot/github-code |
f3d7a4d3988b6aa4346e7dbe979110c92c56ec81a00eccdaf3edf72e2d4a37fe | /*-
* #%L
* rapidoid-commons
* %%
* Copyright (C) 2014 - 2020 Nikolche Mihajlovski and 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... | Java | rapidoid-commons/src/main/java/org/rapidoid/commons/Str.java | rapidoid/rapidoid | apache-2.0 | 11,898 | 400 | codeparrot/github-code |
996a6e88a053a9003d9732c1b6ecdc622c640ba49d684169af09645fb2f1f381 | package com.maxheapsize.jpm.reader;
import com.maxheapsize.jpm.Meter;
import com.maxheapsize.jpm.SmartMeterReading;
import gnu.io.PortInUseException;
import gnu.io.UnsupportedCommOperationException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import java.io.... | Java | src/main/java/com/maxheapsize/jpm/reader/SimulatedEhzSmlReader.java | oliverwehrens/jpowermeter | apache-2.0 | 1,616 | 43 | codeparrot/github-code |
04bc874e4363a7ec3ccb71ae17ea188b97c150712eb26f52c3b3f351ec213772 | from OpenGL.GL import *
from .geometric import *
from ..spaces.objectives import *
from ..spaces.statespace import *
from ..spaces.configurationspace import *
from ..spaces.edgechecker import *
from ..spaces.metric import *
from ..spaces.biassets import InfiniteBiasSet
from ..planners.problem import PlanningProblem
imp... | Python | pomp/example_problems/lqr.py | krishauser/pyOptimalMotionPlanning | apache-2.0 | 1,843 | 70 | codeparrot/github-code |
99d1422b066f811cf8b9184886946bbd3b4264d51800ae84fa2c1df4824c3048 | /**
*
* Copyright 2016 Fernando Ramirez
*
* 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 | smack-experimental/src/test/java/org/jivesoftware/smackx/mam/FiltersTest.java | vanitasvitae/smack-omemo | apache-2.0 | 5,876 | 162 | codeparrot/github-code |
bfaaae2453f9c96b1944e536b8140439205d2bd8df58ebfcbf25e15aea947f6a | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object2689449295.h"
#include "mscorlib_System_IntPtr2504060609.h"
// UnityEngine.GUIStyle
struct GUIStyle_t1799908754;
// UnityEngine.Texture2D
struct Textu... | C | Unity_Code/DinoRun_Final/Temp/il2cppOutput/il2cppOutput/UnityEngine_UnityEngine_GUIStyleState3801000545.h | BPenzar/SuperDinoBros. | apache-2.0 | 2,849 | 88 | codeparrot/github-code |
4aaf91c0a64bdc428ef3618e63c11689dc3b550782003373d4b12c1fcfbc093f | package com.thoughtworks.datacommons.prepbuddy.duplications
import com.thoughtworks.datacommons.prepbuddy.SparkTestCase
import com.thoughtworks.datacommons.prepbuddy.rdds.TransformableRDD
import org.apache.spark.rdd.RDD
import org.junit.Assert._
class DuplicationTest extends SparkTestCase {
test("should deduplica... | Scala | src/test/scala/com/thoughtworks/datacommons/prepbuddy/duplications/DuplicationTest.scala | data-commons/prep-buddy | apache-2.0 | 8,705 | 201 | codeparrot/github-code |
866539dbf1b00579d1ebcd3e8074a3a3fc2a0452b91c63710becd00df13f1bf8 | <?php
/** Controller for all getting research projects out of system
*
* @author Daniel Pett <dpett at britishmuseum.org>
* @category Pas
* @package Pas_Controller_Action
* @subpackage Admin
* @copyright Copyright (c) 2011 DEJ Pett dpett @ britishmuseum . org
* @license http://www.gnu.org/licenses/agpl-3.0.t... | PHP | app/modules/research/controllers/ProjectsController.php | rjw57/findsorguk | apache-2.0 | 3,451 | 108 | codeparrot/github-code |
40d309abd8443e966be0394beb49207b666e8fc104366fc798ceb59e202c8d64 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>About - Business Casual - Start... | HTML | about.html | brUWteam/bruwteam.github.io | apache-2.0 | 8,168 | 210 | codeparrot/github-code |
41405d24850610d31ec88ada5ae96602a3e55dbbbdb56e6a1db943dd28f06a76 | package org.sagebionetworks.repo.manager.table;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.jun... | Java | services/repository-managers/src/test/java/org/sagebionetworks/repo/manager/table/TableEntityManagerTest.java | xschildw/Synapse-Repository-Services | apache-2.0 | 82,016 | 1,911 | codeparrot/github-code |
33ff2853f95a2744ee5ace9a6497dac01ca2705d2a0a6cee968f7e06f8c236df | package com.bazaarvoice.sswf.service
import java.util.concurrent.{ScheduledExecutorService, TimeUnit}
import com.amazonaws.AbortedException
import com.amazonaws.services.simpleworkflow.model.{DecisionTask, RespondDecisionTaskCompletedRequest}
import com.bazaarvoice.sswf.WorkflowStep
import com.google.common.util.conc... | Scala | sswf-guava-20/src/main/scala/com/bazaarvoice/sswf/service/DecisionService.scala | bazaarvoice/super-simple-workflow | apache-2.0 | 2,325 | 61 | codeparrot/github-code |
9c483767fea91ba21d340fa15c834914e88546f9071bf5874d47a7eb0d4b3c5a | /***************************************************************************
* Copyright (C) 2008 by Alfonso Ariza *
* Copyright (C) 2012 by Alfonso Ariza *
* aarizaq@uma.es *
* ... | C++ | inet/src/inet/routing/extras/base/ManetRoutingBase.cc | googleinterns/vectio | apache-2.0 | 47,109 | 1,480 | codeparrot/github-code |
f9f4bf6a33fe98fc432c21dae27eb495b694dbfdb4e887b95cd3486ebdabbc6a | /*!
* ${copyright}
*/
sap.ui.define([
"sap/ui/integration/editor/fields/BaseField",
"sap/m/Input",
"sap/m/Text",
"sap/m/Title",
"sap/m/Select",
"sap/m/ComboBox",
"sap/m/Popover",
"sap/m/Button",
"sap/m/OverflowToolbar",
"sap/m/ToolbarSpacer",
"sap/ui/core/ListItem",
"sap/m/List",
"sap/m/CustomListItem",... | JavaScript | src/sap.ui.integration/src/sap/ui/integration/editor/fields/StringField.js | SAP/openui5 | apache-2.0 | 19,732 | 579 | codeparrot/github-code |
b8c9f355ef1ebdd102de0c12659a0d78cc6e104493490ebb3754cc0f0644e1fa | // Copyright 2017 Jason Yin <jasonyin@outlook.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 r... | JavaScript | app/ui-components/menu/util.js | jasonyin/homepage | apache-2.0 | 4,112 | 119 | codeparrot/github-code |
825811b735f30ff074ca4362f497748c9b682499ec80eafb44672484cd09e037 | /*
* Copyright (C) 2017 volders GmbH with <3 in Berlin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Java | example/src/main/java/berlin/volders/indicators/example/Marks.java | v2rc/Indicators | apache-2.0 | 3,535 | 129 | codeparrot/github-code |
fb03d690cb0274971242167b11a158c968a121686a18fbedb6281e2fe6dffa53 | // Copyright (C) 2009 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
// This code was adapted from code from the JAMA part of NIST's TNT library.
// See: http://math.nist.gov/tnt/
#ifndef DLIB_MATRIX_EIGENVALUE_DECOMPOSITION_H
#define DLIB_MATRIX_EIGE... | C | dlib-18.18/dlib/matrix/matrix_eigenvalue.h | Nekel-Seyew/Complex-3D-Vector-Fields | apache-2.0 | 42,442 | 1,380 | codeparrot/github-code |
c82494cc670c165744bc14e1e22a44e6a1efdb53e7f6eb43a95ffee02cd60aa9 | // Copyright 2014 The Bazel 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 appl... | Java | src/java/io/bazel/rulesscala/jar/JarCreator.java | sdtwigg/rules_scala | apache-2.0 | 6,889 | 218 | codeparrot/github-code |
9fbe60b6170d2743c1f15ea02356ba6b9b542be0fa4475503fcbd0f405ed7ec2 | package com.github.promeg.doubanmovie.model.di;
import com.facebook.stetho.okhttp.StethoInterceptor;
import com.promeg.github.doubanmovie.common.utils.visibility.PackagePrivate;
import com.squareup.okhttp.OkHttpClient;
/**
* Created by guyacong on 2015/9/4.
*/
@PackagePrivate
class OkHttpProvider {
private st... | Java | model/src/main/java/com/github/promeg/doubanmovie/model/di/OkHttpProvider.java | kingslou/CleanAndroid | apache-2.0 | 796 | 34 | codeparrot/github-code |
0b40cece567deacc49ff6bb01468b121b0d4df575865563d115dd5a07dad926a | """Helper for aiohttp webclient stuff."""
from __future__ import annotations
import asyncio
from contextlib import suppress
from ssl import SSLContext
import sys
from typing import Any, Awaitable, cast
import aiohttp
from aiohttp import web
from aiohttp.hdrs import CONTENT_TYPE, USER_AGENT
from aiohttp.web_exceptions... | Python | homeassistant/helpers/aiohttp_client.py | adrienbrault/home-assistant | apache-2.0 | 5,482 | 190 | codeparrot/github-code |
234e5e1c58ac0164c452bf045adecfa1fc8aa6293540e983e1cb1f7ddd0e2d73 | package com.iticket.web.support;
import java.beans.PropertyEditorSupport;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
public class TimestampEditor extends Prop... | Java | src/main/java/com/iticket/web/support/TimestampEditor.java | liqilun/iticket | apache-2.0 | 1,335 | 50 | codeparrot/github-code |
2144321ae186da06484ce9ba765845c45fa11933045fb0f19de5abbbe2319e2f | /*
* Copyright (c) 2016. Sunghyouk Bae <sunghyouk.bae@gmail.com>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | Java | debop4k-data-orm/src/test/java/debop4k/data/orm/jpa/AbstractJpaTest.java | debop/debop4k | apache-2.0 | 1,298 | 41 | codeparrot/github-code |
9c50c3b58ca79b018d677bbc443ae03d5d1a4867d40a5a05da2b6d8f74edf690 | package org.cz;
import com.sun.jndi.ldap.LdapCtx;
import javax.naming.*;
import javax.naming.directory.*;
import javax.naming.ldap.Control;
import javax.naming.ldap.InitialLdapContext;
import javax.naming.ldap.LdapContext;
import java.io.UnsupportedEncodingException;
import java.util.Hashtable;
import java.util.List;... | Java | sourcecode/common/src/main/java/org/cz/LDAPTest.java | czlovewyw/mytest | apache-2.0 | 12,803 | 379 | codeparrot/github-code |
a96802f4f918679d75685d68ba4f55b90e82e323d135cf0b29a75ed25a1328c8 | // ***********************************************************************
// Assembly : CoBuilderV2
// Author : Alex Bradley
// Created : 08-09-2016
//
// Last Modified By : Alex Bradley
// Last Modified On : 11-08-2016
// *********************************************************************... | C# | CoBuilder.Core/Core/CoBuilderClient.cs | AlexBradley1990/CoBuilderSDK | apache-2.0 | 4,014 | 116 | codeparrot/github-code |
efffd394ec7cf2e9e016db3ff423b70b3bebe0f328df9644ea3adabc08b69187 | /**
* 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 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/DummyContainerManager.java | srijeyanthan/hops | apache-2.0 | 9,291 | 207 | codeparrot/github-code |
da5e2deb5f6d74d8a0f343391dcf50d1f75d03e8474f244721dc2e8439204888 | package org.axway.grapes.utils.client;
import org.axway.grapes.commons.api.ServerAPI;
/**
* Request Utils
*
* <p>Handles the build of the request path to a Grapes server</p>
*
* @author jdcoffre
*/
public final class RequestUtils {
private RequestUtils() {
// no constructor for utility classes
}
public... | Java | utils/src/main/java/org/axway/grapes/utils/client/RequestUtils.java | ebour/Grapes | apache-2.0 | 3,387 | 125 | codeparrot/github-code |
6f0835a82e62e270fa43a4524a19efee3ef45c5bba9d15d5bf49000f96286014 | /*
* 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.tecnologiabasica.jettyapicommons.util;
/**
*
* @author afonso
*/
import java.lang.Thread.UncaughtExceptionHandler;
impo... | Java | JettyAPICommons/src/main/java/com/tecnologiabasica/jettyapicommons/util/JThreadFactoryBuilder.java | afonsohmm/JettyAPISample | apache-2.0 | 3,776 | 110 | codeparrot/github-code |
9c7e171af6666dbb7a6681c0524a33cfe67c90f9561d7ce27cd4287cd956282f | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Deedy - One Page Two Column Resume
% LaTeX Template
% Version 1.1 (30/4/2014)
%
% Original Theme author:
% Debarghya Das (http://debarghyadas.com)
%
% Original repository:
% https://github.com/deedydas/Deedy-Resume
%
% Current author for *this* resume: David vanMaanen
%
% IMPOR... | TeX | main.tex | dpvanmaan/resume-tex | apache-2.0 | 9,869 | 321 | codeparrot/github-code |
f0ee8f059c7b803def7448bff0b66e5c22d1cb27c59e274c778a7d26dc76bf59 | #region License
// Copyright (c) 2007 James Newton-King
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, ... | C# | src/Medivh/Json/JsonWriter.cs | larrymshi/medivh.client-csharp | apache-2.0 | 60,909 | 1,714 | codeparrot/github-code |
4073d20536f6782ac568ea6cab95de6c9b57ad3de064486784911eae4921d0fb | /*
* Copyright 2016 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 | src/com/google/javascript/jscomp/PolymerPassSuppressBehaviors.java | Yannic/closure-compiler | apache-2.0 | 4,607 | 134 | codeparrot/github-code |
b3a69aa1bf69d9bb02385d2c40dda2c9c87d2ffe56596c52245b2925a017104e | package com.thedairyfarm.adapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
/**
* Created by aquib and amir on 10/11/2017.
*/
public class MyInvoicesAdapter extends BaseAdapter {
@Override
public int getCount() {
return 0;
}
@Override
p... | Java | app/src/main/java/com/thedairyfarm/adapter/MyInvoicesAdapter.java | mohdaquib/DairyWala | apache-2.0 | 585 | 32 | codeparrot/github-code |
775a1abf9abbdee671d8704f764044dd0206c1d43017d3ff6dd236c22fcbcd6b | package com.eixox.data.sql;
import java.util.Iterator;
import com.eixox.data.DataAspectField;
public class DatabaseInsert<T> {
private final Database database;
private final DatabaseAspect<T> aspect;
public DatabaseInsert(Database database, DatabaseAspect<T> aspect) {
this.database = database;
this.aspect =... | Java | jetfuel-core/src/main/java/com/eixox/data/sql/DatabaseInsert.java | EixoX/jetfuel | apache-2.0 | 2,087 | 96 | codeparrot/github-code |
6d5b9bec14f3582f8c2911cce5b0502483f9d6680abb08985f3e3ed2059eb333 | /*
* Copyright 2012-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | web/src/main/java/org/springframework/security/web/csrf/LazyCsrfTokenRepository.java | eddumelendez/spring-security | apache-2.0 | 5,252 | 186 | codeparrot/github-code |
b32a30571e7ea53c0bf70345de3b52e6c14abe56c1d7c867193365c0ffc46976 | /**
* Copyright 2005-2015 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by a... | Java | rice-framework/krad-service-impl/src/main/java/org/kuali/rice/krad/service/impl/PostProcessorServiceImpl.java | kuali/kc-rice | apache-2.0 | 20,950 | 407 | codeparrot/github-code |
076c721bff45679c0e4d4c332cc496e9d759992bcb4ccacf436ffde8d117349b | /**
* 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 | artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientSessionContext.java | thiagokronig/activemq-artemis | apache-2.0 | 5,959 | 102 | codeparrot/github-code |
16ccf919414bc4a3827d1faac4388d44b708cfb8e0232aafe82a7117bcdd3b13 | package com.bStone.util.math;
public class Vector
{
private float magX;
private float magY;
private float magnitude;
private float direction;
public Vector(float parMagnitude, float parDirection)
{
this.magX = MathUtilF.getVectorX(parMagnitude, parDirection);
this.magY = MathUtilF.getVectorY(parMagnitude, ... | Java | src/com/bStone/util/math/Vector.java | calculusman/ProjectManaTea | apache-2.0 | 897 | 49 | codeparrot/github-code |
296caa915224407adcbb1ce0eadaf8afaa2bd7abe65a15e7c65bd8859e72dc86 | package main
import (
"fmt"
"log"
"os"
"strings"
"time"
"github.com/pkg/errors"
"github.com/xackery/discordeq/applog"
"github.com/xackery/discordeq/discord"
"github.com/xackery/discordeq/listener"
"github.com/xackery/eqemuconfig"
)
// Version will be set during build
var Version = "0.52.0"
func main() {
... | GO | main.go | Xackery/discordeq | apache-2.0 | 3,439 | 123 | codeparrot/github-code |
bc36a09fd5795116d0ecafc522ccaa4bd20e2a9695e6d4cbf7ce593152e58fc7 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration.Provider;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Text;
using System.Web.Security;
using Wcjj.CouchClient;
namespace CouchDBProviders
{
public... | C# | src/CouchDBProviders/RoleProvider.cs | wilby/CouchDBProviders | apache-2.0 | 14,505 | 350 | codeparrot/github-code |
1452b8cb098c5d97b4c82bb9823e1b9276f09f988f40020b1f29f37dc5b39926 | namespace HanRuEdu.LDAL
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
[MetadataType(typeof(EDU_ZXXS_51_A14_KHHZDLPZ_metadata))]
public partial class EDU_ZXXS_51_A14_KHHZDLPZ
{
public EDU_ZXXS_51_A14_KHHZDLPZ()
{
XYXMID... | C# | export/model/HANRU/ZXXS/EDU_ZXXS_51_A14_KHHZDLPZ_MODEL.cs | shinkxw/DataAnalysisSystem | apache-2.0 | 1,551 | 57 | codeparrot/github-code |
8a64f9662168c6eb04a36668a419ffaf75f9462852bf7d4c88f272a832072d75 | package l3plugin
import (
"go.ligato.io/cn-infra/v2/config"
"go.ligato.io/cn-infra/v2/logging"
"go.ligato.io/vpp-agent/v3/plugins/kvscheduler"
"go.ligato.io/vpp-agent/v3/plugins/linux/ifplugin"
"go.ligato.io/vpp-agent/v3/plugins/linux/nsplugin"
"go.ligato.io/vpp-agent/v3/plugins/netalloc"
)
// DefaultPlugin is... | GO | plugins/linux/l3plugin/options.go | VladoLavor/vpp-agent | apache-2.0 | 1,212 | 51 | codeparrot/github-code |
b104abeb95cfdf94fc70a2df05c69ceb2572da22aafb5ec3fadb11b717d4faf1 | using System;
using System.Collections.Generic;
using System.Linq;
namespace biz.dfch.CS.Commons.Benchmarks.Linq
{
public class Data
{
private const int START = 0;
private const int COUNT = 1000;
private const string CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456... | C# | src/biz.dfch.CS.Commons.Benchmarks/Linq/Data.cs | dfensgmbh/biz.dfch.CS.Commons | apache-2.0 | 1,136 | 41 | codeparrot/github-code |
9659016a9d97ffded15adc84a06fb31774f7062e5ef8651fd919602e244e166d | <?php
final class HarbormasterBuildStatus extends Phobject {
const STATUS_INACTIVE = 'inactive';
const STATUS_PENDING = 'pending';
const STATUS_BUILDING = 'building';
const STATUS_PASSED = 'passed';
const STATUS_FAILED = 'failed';
const STATUS_ABORTED = 'aborted';
const STATUS_ERROR = 'error';
const S... | PHP | src/applications/harbormaster/constants/HarbormasterBuildStatus.php | phacility/phabricator | apache-2.0 | 7,485 | 290 | codeparrot/github-code |
d1fd24e972beeac838b94e41df342e1cb42b87fece688b96c69bce495ecdea7d | // This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.br');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Ouzhpennañ un evezhiadenn";
Blockly.Msg.AUTH = "Roit aotre, mar plij, d'an arload-mañ evit gallout saveteiñ ho labour ha reiñ aotre dezhañ da rannañ ho labo... | JavaScript | msg/js/br.js | Gamefroot/Gamefroot-Blockly | apache-2.0 | 79,894 | 934 | codeparrot/github-code |
b26bb98a1c35a811e38066341ca676efee6aeb53eca52902d189e95d4144ee5c | /*
* Copyright (C) 2014 Stratio (http://stratio.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | testsAT/src/test/java/com/stratio/cassandra/lucene/testsAT/varia/AllowFilteringWith1000MixedRowsIT.java | Stratio/cassandra-lucene-index | apache-2.0 | 3,593 | 95 | codeparrot/github-code |
f45dc0bf01e74b73bbcda519c26cdc650f34118084ca1f3f6a69d507a060d109 | package gov.va.med.lom.vistabroker.patient.data;
import java.io.Serializable;
public class OrderSheet implements Serializable {
private String code;
private String id;
private String name;
public OrderSheet() {
this.code = null;
this.id = null;
this.name = null;
}
publ... | Java | ll-vistaBroker/ll-vistabroker-ejb3/src/main/java/gov/va/med/lom/vistabroker/patient/data/OrderSheet.java | VHAINNOVATIONS/AVS | apache-2.0 | 679 | 41 | codeparrot/github-code |
b5ffc638f7a29b1b7ed02050694e590e9c9a5a30c2cc09b5a2a3461be572e4e7 | /*
* 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 | product-scenarios/1-integrating-systems-that-communicate-in-heterogeneous-message-formats/1.1-converting-soap-to-json/1.1.3-soap-to-json-using-data-mapper/src/test/java/org/wso2/carbon/esb/scenario/test/SoapToJsonUsingDataMapperTest.java | milindaperera/product-ei | apache-2.0 | 6,653 | 132 | codeparrot/github-code |
be8484a98fbcd3b7b76b47b03e1e82f0e2b38d04914da46ab91a199151ff6064 | package com.camunda.consulting.engineplugin;
import org.camunda.bpm.engine.ActivityTypes;
import org.camunda.bpm.engine.impl.history.event.HistoricActivityInstanceEventEntity;
import org.camunda.bpm.engine.impl.history.event.HistoricExternalTaskLogEntity;
import org.camunda.bpm.engine.impl.history.event.HistoryEvent;
... | Java | snippets/springboot-customhistoryhandler/src/main/java/com/camunda/consulting/engineplugin/CustomHistoryEventHandler.java | camunda/camunda-consulting | apache-2.0 | 2,490 | 58 | codeparrot/github-code |
9fa5d07729eeeaf6994402f485435c821bcc7dbaa5fd55d4718bb4e3bb91ed79 | /*
* 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-qldb/src/main/java/com/amazonaws/services/qldb/model/transform/ExportJournalToS3RequestProtocolMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,691 | 64 | codeparrot/github-code |
ff2086889ea1124c1b61e2c9ad0cc77319dcecb19fb434f1e6d4edabbb136505 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may n... | Java | server/src/main/java/io/tilt/minka/core/leader/distributor/Transfer.java | gcristian/minka | apache-2.0 | 3,449 | 119 | codeparrot/github-code |
c05ea0d400a8ae66e95c9b37a8647d63cbd67558a20781bb6641d4779c19f00c | /**
* 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/java/org/apache/avro/generic/GenericResponder.java | justinsb/avro | apache-2.0 | 1,840 | 56 | codeparrot/github-code |
dff7044fe684df5310604daf5e12ce26a5cb9c5a314cd93a6ab5ca0ca2bb07fb | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | Python | google/cloud/aiplatform_v1/types/dataset_service.py | sasha-gitg/python-aiplatform | apache-2.0 | 14,664 | 419 | codeparrot/github-code |
020ab8fe03b665aab7bf2f82727790ca956dbe84a7341020037c9bd6e1e6c1f0 | <!DOCTYPE html SYSTEM "about:legacy-compat">
<html lang="en"><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="../images/docs-stylesheet.css" rel="stylesheet" type="text/css"><title>Apache Tomcat 9 Architecture (9.0.0.M18) - Table of Contents</title><meta name="author" content="Yoav S... | HTML | webapps/docs/architecture/index.html | jeremybreytenbach/UCT_MIT_WebProgramming | apache-2.0 | 5,224 | 77 | codeparrot/github-code |
0f144146d374394dee39eb0e00128c20d8a5bace9a7acdda642d863040c0059d | /*
* 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-iotevents/src/main/java/com/amazonaws/services/iotevents/model/UpdateInputRequest.java | jentfoo/aws-sdk-java | apache-2.0 | 6,634 | 231 | codeparrot/github-code |
c5782f41027c1e89c165c4c126d331d671d5d91d556c5a3cb4b74d7921472977 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Openfire: Protocol Support</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="pageContainer">
<a name="top"></a>
<div id="pageHeader">
<div id="logo"></div>
<h1>Protocol Sup... | HTML | documentation/protocol-support.html | GregDThomas/Openfire | apache-2.0 | 18,656 | 348 | codeparrot/github-code |
3fdab218cb37464805379554f266774a0cb8c46ec401c4e6fd4b38f0a9e2cf23 | import re
import sys
import struct
import codecs
class REMatcher(object):
def __init__(self, matchstring):
self.matchstring = matchstring
def match(self,regexp):
self.rematch = re.match(regexp, self.matchstring, re.IGNORECASE)
return bool(self.rematch)
def group(self,i):
... | Python | oldfiles/oldcode/tools/assemblerold/functions.py | MoebiuZ/OpcodeOne | apache-2.0 | 5,833 | 236 | codeparrot/github-code |
6a1e3dc4cec716979b98f68e2b3b5be8b95e284d1922180d9f6deb76422d168e | var WebsocketServer = require('ws').Server;
var config = require('../../config/config');
var redis = require('redis');
var redisClient = redis.createClient(config['REDIS_PORT'], config['FOXRIVER_IP']);
var computeOrderKey = require('./redisKeyCompute').computeOrderKey;
var computeCustomerKey = require('./redisKeyComput... | JavaScript | server/lib/handleOrderDone.js | ratanasv/first | apache-2.0 | 2,971 | 107 | codeparrot/github-code |
ad57c8331239d575f509ce6084dd6f2e7cd9704cc0eca8643377a7e0d051d7cf | package com.melvin.share.ui.fragment.factory;
import android.support.v4.app.Fragment;
import com.melvin.share.ui.fragment.wallet.WalletUseFragment;
import com.melvin.share.ui.fragment.wallet.WalletWillFragment;
import java.util.HashMap;
import java.util.Map;
/**
* Created Time: 2016/11/29.
* <p/>
* Author:Melvin... | Java | NewShare/app/src/main/java/com/melvin/share/ui/fragment/factory/FragmentWalletFactory.java | MelvinWang/NewShare | apache-2.0 | 980 | 41 | codeparrot/github-code |
b9d8939c044cbfa3b8627003adf8991122007529b023207c58caa669b8108700 | package com.vectorcat.venire.internal.ri;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import com.google.common.base.Optional;
import com.google.common.collect.Maps;
public class RemoteInterfaceRegistry {
private final EventCommander eventCommander;
pr... | Java | Veniredatum/src/com/vectorcat/venire/internal/ri/RemoteInterfaceRegistry.java | demodude4u/Serfnett | apache-2.0 | 1,470 | 59 | codeparrot/github-code |
82aab9004a9b734d93fc2cc8672f65c7c349245a52f3be6c456c9fb7265e48ad | #!/usr/bin/python2
from fabric.api import *
from fabric.tasks import execute
import sys
import os
import argparse
import ntpath
import fnmatch
"""
Author: mtask@github.com
"""
class multissh(object):
def manage_servers(self, add=False, delete=False, param=None):
if add:
self.server = param.... | Python | multissh.py | mtask/multissh | apache-2.0 | 8,206 | 214 | codeparrot/github-code |
92bba67cd29e7c559a7754d96dab2e4453762ed8eb86fc490a07e3dd88f0939e | /*
* Copyright 2017 The Depan 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | Java | DepanJson/prod/src/com/google/devtools/depan/pushjson/DefaultElementHandler.java | google/depan | apache-2.0 | 1,699 | 79 | codeparrot/github-code |
43fc24ed93262b4445a181671a0c58d5d1d473c0cd228c11b6d8b8fd406580bf | /*
* 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 | presto-hive/src/test/java/io/prestosql/plugin/hive/TestHiveFileFormats.java | smartnews/presto | apache-2.0 | 62,799 | 1,305 | codeparrot/github-code |
40558b1ca4721a3f3afd33166093c33e35f73d0c973f6f1b31c063b3df030237 | /*
* Copyright (c) 2016 HERE Europe B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Java | here-oauth-client/src/test/java/com/here/account/oauth2/HereAccountTest.java | kenmccracken/here-aaa-java-sdk | apache-2.0 | 15,240 | 359 | codeparrot/github-code |
7907261c7e5f6eaba1e3a29879be6267feee63acbeba48247ca4321920085370 | /**
* 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... | JavaScript | app/controllers/main/service/reassign/step6_controller.js | keedio/ambari-web | apache-2.0 | 3,899 | 124 | codeparrot/github-code |
bb1cabc13a33c9579e5ab0ff329121e728f8ad45c60c9c2bbdaf2db317b6903c | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.editorActions;
import com.intellij.application.options.editor.WebEditorOptions;
import com.intellij.codeInsight.lookup.LookupManager;
import com.... | Java | xml/impl/src/com/intellij/codeInsight/editorActions/XmlTagNameSynchronizer.java | leafclick/intellij-community | apache-2.0 | 14,168 | 333 | codeparrot/github-code |
4fbb13fab93b70b29be7194e60390656b6ffeb97649bcb957ef930a5567a12cf | package core
import util.{ OrganizationConfigurationResourceHolder, OrganizationConfigurationHandler }
import access.{ ResourceType, ResourceLookup }
import scala.collection.immutable.ListMap
import scala.util.matching.Regex
import play.api._
import libs.concurrent.Akka
import play.api.Play.current
import mvc.{ Reques... | Scala | web-core/app/core/CultureHubPlugin.scala | delving/culture-hub | apache-2.0 | 14,257 | 390 | codeparrot/github-code |
5dd21e83a20d1c24de76e30ae160614cc7baada0f1f2fb020e35649ad43624fc | /*
* 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-workspaces/src/main/java/com/amazonaws/services/workspaces/model/transform/RootStorageJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,694 | 75 | codeparrot/github-code |
298c5205b4dba53f63403f69472a90535de0cd8fba298c8f87e9a0a561ccc33a | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>org.codehaus.groovy.tools.shell.commands (groovy 2.1.7 API)</title>
<META NAME="keywords" CONTENT="org.codehaus.groovy.tools.shell.commands package">
<meta http-equiv="Content-Type" content="text... | HTML | tools/groovy/doc/html/gapi/org/codehaus/groovy/tools/shell/commands/package-summary.html | Selventa/model-builder | apache-2.0 | 8,771 | 216 | codeparrot/github-code |
0474a16199c0aff090b54a03574e0d055a345bc8980751563b2926cf1358a5ca | package com.amrdevelopment.parser.partners.deals;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
@XmlRootElement
public class Offer {
private Integer Id;
private String cities;
private Str... | Java | XmlParser/parser/src/main/java/com/amrdevelopment/parser/partners/deals/Offer.java | achoraev/XmlParser | apache-2.0 | 3,961 | 192 | codeparrot/github-code |
1ad455481742be20a4d59c7a380ac76f08e396c4ecf9e802160540936598c142 | /**
*
* 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 | hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java | grokcoder/pbase | apache-2.0 | 25,808 | 739 | codeparrot/github-code |
9580f584ec453a1635cd2e51211e33d63c3a14b757dc359dd73317e2a0c9041e | /*
* Copyright 2014,2015 agwlvssainokuni
*
* 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 | admin/src/main/java/cherry/admin/secure/userman/UsermanController.java | agwlvssainokuni/springapp | apache-2.0 | 1,224 | 37 | codeparrot/github-code |
525133124396f9efae6c16606ca9e91d4cf9759b1efb566e5fc1e97eca4da9b9 | """Collect Treadmill node information after a crash.
"""
from __future__ import absolute_import
import os
import glob
import logging
import shutil
import tempfile
from treadmill import fs
from treadmill import subproc
_LOGGER = logging.getLogger(__name__)
_IFCONFIG = 'ifconfig'
_SYSCTL = 'sysctl'
_DMESG = 'dmesg'
... | Python | lib/python/treadmill/postmortem.py | toenuff/treadmill | apache-2.0 | 4,780 | 169 | codeparrot/github-code |
a529a384023ada04196c32f6e04bbbd45f5baa44725d213664dddcc8482e8364 | /**
*
* Copyright 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 applicable... | Java | smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSessionMessageTest.java | magnetsystems/message-smack | apache-2.0 | 12,583 | 379 | codeparrot/github-code |
2ffb012cf89f66fa1d6224fdfc661f637218fd3652333c884f1a141920eeef0c | #!/usr/bin/env python
import tornado
import socket
import maproxy.proxyserver
class Session(object):
"""
The Session class if the heart of the system.
- We create the session when a client connects to the server (proxy). this connection is "c2p"
- We create a connection to the server (p2s)
- Ea... | Python | maproxy/session.py | zferentz/maproxy | apache-2.0 | 16,890 | 449 | codeparrot/github-code |
77066d6c0b1f85c0c567b1f09ab95db53c5e878211d294c6cdaafde06236eee8 | /**
* Copyright 2014 Ricardo Padilha
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Java | src/main/java/net/dsys/snio/impl/channel/TCPServerChannel.java | ricardopadilha/dsys-snio | apache-2.0 | 4,342 | 198 | codeparrot/github-code |
0a09241a9ba4035fa403c9de0b493896a53d291e9c4112a40c79520d1106ba35 | /*******************************************************************************
* Copyright 2018 572682
*
* 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/... | Java | jpo-ode-svcs/src/test/java/us/dot/its/jpo/ode/traveler/TimQueryControllerTest.java | usdot-jpo-ode/jpo-ode | apache-2.0 | 6,822 | 211 | codeparrot/github-code |
2d5c68922db99a992ae98de7e60098075bf7dd15e7615828089df3b512ebdced | package com.flingtap.done.android;
/*
* Copyright (C) 2006 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/LICEN... | Java | flingtap-done/src/main/java/com/flingtap/done/android/TabWidget.java | SpencerRiddering/flingtap-done | apache-2.0 | 11,864 | 329 | codeparrot/github-code |
c153f190d41ca04ac4f0db28ecdc67a5bc9e72b55ba29a7a603a403aa24d4f16 | package github.banana.demo;
public class Pow {
public static void main(String[] args) {
// System.out.println(myPow(2.0, 100));
// int[] nums = { 3, 2, 2, 3 };
// System.out.println(removeElement(nums, 3));
// String a = "hello";
// String b = "ll";
// System.out.pri... | Java | java/banana/src/main/java/github/banana/demo/Pow.java | zhgxun/cNotes | apache-2.0 | 3,385 | 145 | codeparrot/github-code |
ec075099a6493d0015edf21c4d039756990236d2685da61e887df6198432b936 | /**
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
*/
define(['jquery', 'backbone', 'lodash', 'log', 'dialogs', './simulator', './feed_simulator', './simulator-rest-client'],
function ($, Backbone, _, log, Dialogs, singleEventSimulato... | JavaScript | components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/editor/js/event-simulator/module.js | wso2/carbon-analytics | apache-2.0 | 9,267 | 179 | codeparrot/github-code |
e0a5008296d6e014c4a794c1b1321ddbd32c3ef0c5672976aae83a78ab33b973 | #### PATTERN | EN ##################################################################################
# Copyright (c) 2010 University of Antwerp, Belgium
# Author: Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
# http://www.clips.ua.ac.be/pages/pattern
####################################... | Python | bin/plug/py/external/pattern/text/en/__init__.py | decebel/dataAtom_alpha | apache-2.0 | 3,292 | 82 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.