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 |
|---|---|---|---|---|---|---|---|---|
d4a78c8ae9a86b033e23efc8108588786f7f47aa451728b8daae14e4ae063da3 | package com.formulasearchengine.mathosphere.mlp.text;
import com.google.common.collect.Lists;
import org.junit.Assert;
import org.junit.Test;
import java.io.File;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java... | Java | mathosphere-core/src/test/java/com/formulasearchengine/mathosphere/mlp/text/WikidataInterfaceTest.java | TU-Berlin/mathosphere | apache-2.0 | 6,118 | 253 | codeparrot/github-code |
9eccd724f60f221aa200b6e13ba2f52b53db520e2c2c2c742a83556ec051ec66 | <?php
// if(isset($_GET['nya']))
// $nya = $_GET['nya'];
// else
$nya='order';
if(isset($_GET['act']))
$act=$_GET['act'];
else
$act='new';
if(isset($_GET['id']))
$id=$_GET['id'];
//echo "$nya $act<br><br>";
?>
<script type="text/javascript">
//rawr();
var currItem;
//var total=(0.00).toFixed(2);
$('#itemSearch')... | PHP | sky/admin/ui/order.php | spsnk/sky | apache-2.0 | 9,715 | 316 | codeparrot/github-code |
369572951226dc7c24c077298760f4d3825947f7c1dae9be1a70ea525bbdff50 | package com.sgu.infowksporga.jfx.menu.action.edit;
import java.awt.event.ActionEvent;
import com.sgu.apt.annotation.AnnotationConfig;
import com.sgu.apt.annotation.i18n.I18n;
import com.sgu.apt.annotation.i18n.I18nProperty;
import com.sgu.core.framework.gui.swing.util.UtilGUI;
import com.sgu.infowksporga.jfx.menu.act... | Java | 10-Application/Application/Swing-Sample-APP/src/main/java/com/sgu/infowksporga/jfx/menu/action/edit/RemoveFileExplorerViewFilesAction.java | sguisse/InfoWkspOrga | apache-2.0 | 2,320 | 51 | codeparrot/github-code |
010ffaa250cc9ed52cf1ac62714061d340308ded753460a9c66aa0714d9f311f | package edu.indiana.soic.spidal.dapwc;
public class PlotTools
{
// TODO - fix PlotTools
/* public static void CreatePlotWithCenters(String centerFile, String pointsFile, String clusterNumberFile, int numberOfCenterPointsToIncludeInEachCenterType, String centerPlotFile, String plotDescription)
{
*//* Generate al... | Java | src/main/java/edu/indiana/soic/spidal/dapwc/PlotTools.java | DSC-SPIDAL/dapwc | apache-2.0 | 14,272 | 329 | codeparrot/github-code |
a132675ef9c77cf649de6f9e13c98d6e764f1180e86d63f07f95ef0950f7ba54 | package com.limagiran.hearthstone.heroi.view;
import com.limagiran.hearthstone.heroi.control.Heroi;
import com.limagiran.hearthstone.util.AbsolutesConstraints;
import com.limagiran.hearthstone.util.Images;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import org.netbeans.lib.awte... | Java | src/com/limagiran/hearthstone/heroi/view/PanelHeroi.java | limagiran/hearthstone | apache-2.0 | 1,754 | 71 | codeparrot/github-code |
9b025cf1fe30167066d04a48713c576b8edd72413e26696b6438fd14cbe6dfce | {% load i18n static sekizai_tags %}
{% if object.pdf.url %}
<h4>{% if object.title %}{{ object.title }}{% else %}{{ object.get_file_name }}{% endif %}</h4>
{% if object.file_exists %}
<div class="plugin_pdfviewer-container hidden-xs">
<div id="plugin_pdfviewer-doc-{{ object.pdf.pk }}" clas... | HTML | cmsplugin_pdfviewer/templates/cmsplugin_pdfviewer/plugin.html | Naeka/cmsplugin-pdfviewer | apache-2.0 | 18,660 | 267 | codeparrot/github-code |
d1629ee62f74bab22c74c3ec7da4e44714b257775bbfc65a15961f7b988ea4df | package android.coolweather.com.coolweather.service;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.coolweather.com.coolweather.gson.Weather;
import android.coolweather.com.coolweathe... | Java | app/src/main/java/android/coolweather/com/coolweather/service/AutoUpdateService.java | shiyuzhe/coolweather | apache-2.0 | 3,557 | 95 | codeparrot/github-code |
de9475cdb5ea3ca96d8e70da3a09616daa4dc93338456f3bfe9057eb814640ae | <?php
/**
* BoxBilling
*
* @copyright BoxBilling, Inc (http://www.boxbilling.com)
* @license Apache-2.0
*
* Copyright BoxBilling, Inc
* This source file is subject to the Apache-2.0 License that is bundled
* with this source code in the file LICENSE
*/
namespace Box\Mod\Filemanager;
class Service implement... | PHP | src/bb-modules/Filemanager/Service.php | 4Giedrius/boxbilling | apache-2.0 | 3,051 | 109 | codeparrot/github-code |
9789bb63a70c90a2904a0769e63092a9552661ac9e6bf23c18003a434f0b70c7 | __source__ = 'https://leetcode.com/problems/equal-tree-partition/discuss/'
# Time: O()
# Space: O()
#
# Description: Leetcode # 663. Equal Tree Partition
#
# Given a binary tree with n nodes,
# your task is to check if it's possible to partition the tree to two trees
# which have the equal sum of values after removing... | Python | cs15211/EqualTreePartition.py | JulyKikuAkita/PythonPrac | apache-2.0 | 2,676 | 126 | codeparrot/github-code |
2c59d8dcbe5a3dc07145ba1214aa73ee13a74bf28749d90238241e0ffde997a0 | /*
* Copyright 2013 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 b... | Java | data/orm/src/main/java/leap/orm/domain/Domain.java | leapframework/framework | apache-2.0 | 4,481 | 169 | codeparrot/github-code |
822e4771b8ee25a4d0a2c551a9911cbe01c267d33dc4ac64da07c6a1a26e2737 | package fw.db.connection.impl;
import fw.common.util.CE;
import fw.common.util.LE;
import fw.db.connection.DBException;
import fw.db.connection.RecordHandler;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
/**
* 通用的EntityBean查询映射处理类<br/>
* NOTE: 给定的Entity必须符合STREET规定的命名规则
* @author dzb
*
* @para... | Java | src/main/java/fw/db/connection/impl/RecordHandlerImpl.java | dzb/fw-kit | apache-2.0 | 1,409 | 58 | codeparrot/github-code |
26f32426d92d5b1c4ab31042d7af2abcbe5e5dd19bc1982c57e7aa222f574110 | package me.jasoncampos.inject.persist.hibernate;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.junit.Before;
import org.junit.Test;
import com.... | Java | guice-persist-hibernate-core/src/test/java/me/jasoncampos/inject/persist/hibernate/HibernatePersistModuleTest.java | jcampos8782/guice-persist-hibernate | apache-2.0 | 2,609 | 88 | codeparrot/github-code |
b7a9ed7d33acbdc38f8fe95030ec453d73e4c4e57a8cce3fcf9c265666bdefe2 | /*
* java API for the SatoChip Bitcoin Hardware Wallet
* (c) 2015 by Toporin - 16DMCk4WUaHofchAhpMaQS4UPm4urcy2dN
* Sources available on https://github.com/Toporin
*
* Copyright 2015 by Toporin (https://github.com/Toporin)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... | Java | src/main/java/org/satochip/satochipclient/CardConnectorException.java | Toporin/SatoChipClient | apache-2.0 | 2,634 | 87 | codeparrot/github-code |
0bf66c3a1b08a451adedede2a57d0670e197f33a77a0d4242dfbece574d69406 | package com.ybook.app.pinnedheaderlistview;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.ybook.app.pinnedheaderlistview.PinnedHeaderListView.PinnedSectionedHeaderAdapter;
public abstract class SectionedBaseAdapter extends BaseA... | Java | app/src/main/java/com/ybook/app/pinnedheaderlistview/SectionedBaseAdapter.java | a642500/Ybook | apache-2.0 | 6,634 | 209 | codeparrot/github-code |
cf65eb611ce163e551dfdc044fd99b76ee36147b1647e4da6a0f346088c1efdf | // Copyright 2018 The Terraformer 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... | GO | providers/commercetools/store.go | GoogleCloudPlatform/terraformer | apache-2.0 | 1,745 | 58 | codeparrot/github-code |
d27fa80d0351edb478e6d1180202079b40ec9d7525a112d6af2d72b7272bad33 | using System;
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Text;
using Microsoft.Visu... | C# | Hyperstore.CodeAnalysis.Editor/Completion/CompletionProvider.cs | Hyperstore/Hyperstore.CodeAnalysis | apache-2.0 | 1,551 | 42 | codeparrot/github-code |
3ce12b6fb16f48fb7695aa9460c2d8e70773e879a196f9b6fd4a8af505d34962 |
import sys
class Encoding(object):
@staticmethod
def normalize(value):
"""
Normalize value
:param value: The value
:return: The processed value
"""
# Python 2 vs Python 3
if sys.version_info < (3, 0):
return Encoding.to_ascii(valu... | Python | scriptcore/encoding/encoding.py | LowieHuyghe/script-core | apache-2.0 | 2,861 | 114 | codeparrot/github-code |
9d43211831c1d641b22339ffbc81bd60a379f6ed48b5d8b8da1319d5ef2fa0ea | /*
* Copyright (c) 2017 pCloud AG
*
* 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... | Java | serialization/src/test/java/com/pcloud/networking/serialization/EnumTypeAdapterTest.java | pCloud/pcloud-networking-java | apache-2.0 | 5,009 | 152 | codeparrot/github-code |
96df99f047e011d8e6b98c879adb107740de60656ada99111ee81c34d1067771 |
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
end
if ( CLIENT ) then
SWEP.PrintName = "DC-15 Side Arm Green Company Edition"
SWEP.Author = "Servius & StrickenNZ"
SWEP.ViewModelFOV = 70
SWEP.Slot = 1
SWEP.SlotPos = 5
SWEP.WepSelectIcon = surface.GetTextureID("HUD/killicons/DC15SA")
... | Lua | Live Addons/servius_uploader/[TFA][AT] Expanded Pack/lua/weapons/weapon_tfa_dc15sagc/shared.lua | Servius/tfa-sw-weapons-repository | apache-2.0 | 1,703 | 72 | codeparrot/github-code |
d544fa2bb566554d3b8e66718ee7672723c8496ae51ee90c8c1b06f88aa44109 | package ir.ops;
import ir.visitor.IrVisitor;
public class ArrayAccess implements Expression
{
private Expression reference;
private DataType type;
private Expression index;
public ArrayAccess(Expression reference, DataType type, Expression index)
{
this.reference = reference;
this.type = type;
this.in... | Java | src/main/java/ir/ops/ArrayAccess.java | AndrewHancock/MiniJava-compiler | apache-2.0 | 691 | 46 | codeparrot/github-code |
33c71de4ef9c55d67c4f12509cc559740e3e89e56a5372f5edc795a1f6797973 | <?php include_once('top.php');?>
<body>
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<?php include_once('header.php');?>
<?php include_once('leftsidebar.php');?>
</nav>
... | PHP | unique/view_visa.php | jhassan/unique | apache-2.0 | 12,112 | 272 | codeparrot/github-code |
6fe8bd59e4be6cff12e7a3b841995fd674b6bc3ef679ae4721f2d62ccdf10bab | <?php
namespace BankId\Merchant\Library\Schemas\saml\protocol;
/**
* Class representing ArtifactResolveType
*
*
* XSD Type: ArtifactResolveType
*/
class ArtifactResolveType extends RequestAbstractType
{
/**
* @property string $artifact
*/
private $artifact = null;
/**
... | PHP | hackathon-module/idintt-php-module/library/Schemas/saml/protocol/ArtifactResolveType.php | notarynodes/idintt | apache-2.0 | 704 | 44 | codeparrot/github-code |
52d82edcdf93bd4c47853961b5b7ef97ea759a86478bece8714af76b20c8c574 | /*
FluorineFx open source library
Copyright (C) 2007 Zoltan Csibi, zoltan@TheSilentGroup.com, FluorineFx.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | C# | FluorineFx/Messaging/Api/ServiceContainer.cs | gspark/PmsAssistant | apache-2.0 | 5,560 | 177 | codeparrot/github-code |
72206c078983e7f174635f2c9c3b91cc6fd2b29942edb6ad9b3124f8c4bedcf2 | /* Copyright 2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | C++ | tensorflow/core/syntaxnet/tagger_transitions.cc | unsiloai/syntaxnet-ops-hack | apache-2.0 | 10,523 | 297 | codeparrot/github-code |
2dce5ea61cf848dc2b5033852932ae0ee98d4e897777e638918ede9912c8a35f | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from xml.parsers.expat import ParserCreate
class DefaultSaxHandler(object):
def start_element(self, name, attrs):
print('sax:start_element: %s, attrs: %s' % (name, str(attrs)))
def end_element(self, name):
print('sax:end_element: %s' % name)
... | Python | samples/commonlib/use_sax.py | whyDK37/py_bootstrap | apache-2.0 | 739 | 31 | codeparrot/github-code |
90b19545655244fb7445e76c3850b909292f407c389f94355f8cdfacf96ffd41 | package org.mk300.marshal.minimum.test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.util.Date;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.atomic.AtomicReferenceArray;
import org.apache.commons.io.HexDump;
import org.junit.Test;
import org.mk... | Java | src/test/java/org/mk300/marshal/minimum/test/LinkedBlockingDequeTest.java | mkobayas/minimum-marshaller | apache-2.0 | 3,289 | 114 | codeparrot/github-code |
5ed2be21b6fe1473e7a10a35215165ad0bf625d725d8ba330f80d4e0efc378fc | /*
* Copyright 2013-2014 UOL - Universo Online Team
*
* 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 require... | Java | src/main/java/br/com/uol/runas/MainApplication.java | uolcombr/runas | apache-2.0 | 1,072 | 32 | codeparrot/github-code |
5d9f9ae977f1e3f46d0d01a1e51e2534010341d7dfd0229e6d255c1328bf3e8e | # Copyright [2017] [name of copyright owner]
# 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 ... | Python | web.py | varoroyo/Alvaro-Roman | apache-2.0 | 5,331 | 154 | codeparrot/github-code |
a11e22d682f93fbca22290fee122c45bb59e066eea88e59028b3bb28449e171c | /**
* Copyright 2010 CosmoCode GmbH
*
* 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/de/cosmocode/palava/model/business/AbstractAddress.java | palava/palava-model | apache-2.0 | 7,669 | 302 | codeparrot/github-code |
af450a02c6ba9966ca2d506bbe6c9bce3880972b3bfa3e4925dace549184a509 | // Copyright (c) 2022 PaddlePaddle 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... | C++ | paddle/phi/kernels/cpu/batch_norm_kernel.cc | PaddlePaddle/Paddle | apache-2.0 | 7,683 | 205 | codeparrot/github-code |
d4ee4123b714d432653d2e5310df3fae1c3f4c3fde4af2b3a4a1b115609a8505 | /*
* Copyright 2015 - FOCONIS AG
*
* 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 | domino/commons/src/main/java/org/openntf/domino/commons/Hash.java | rPraml/org.openntf.domino | apache-2.0 | 3,653 | 121 | codeparrot/github-code |
4285f165d2eea1d09affc2ee12fd9e7eb7ea564d8afa0332a45d3698cce5efe0 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>跨浏览器 HTML5 Placeholder</title>
<link rel="stylesheet" href="../assets/css/noreset.css">
<link rel="stylesheet" href="solution.css">
<style>
input{display:block; margin:5px 0 10px; padding:3px 5px;}
input:last-child{margin-bottom:0}
input { width: 14em; }
te... | HTML | cnDocs/solutions/placeholder.html | webcoding/cnBootstrap | apache-2.0 | 7,846 | 259 | codeparrot/github-code |
10e8385dff79ac1b06af1c7effd2310f447fb76e40fb64458767181fdbda6174 | /*
* 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-inspector/src/main/java/com/amazonaws/services/inspector/model/transform/DurationRangeJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,962 | 79 | codeparrot/github-code |
fa1c0ed3581717786e1d153a5745950b1592c4343adcd6293caababdbaf68c22 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 | src/com/facebook/buck/features/project/intellij/IntellijModulesListParser.java | zpao/buck | apache-2.0 | 3,637 | 92 | codeparrot/github-code |
54c1e96eb33ff800511c68bc855afa8b574642c5e6668a0399f6c6d656e36e4b | //-----------------------------------------------------------------------------
//
// (C) Brandon Valosek, 2011 <bvalosek@gmail.com>
//
//-----------------------------------------------------------------------------
// Modified by Willi Ye to work with big.LITTLE
package com.bvalosek.cpuspy;
import android.app.Applic... | Java | app/src/main/java/com/bvalosek/cpuspy/CpuSpyApp.java | Swapnil133609/Zeus-Controls | apache-2.0 | 2,362 | 84 | codeparrot/github-code |
bf31ba0f8410daae7cf8c79fce6e9bcddcf1c1cb92eb558333784dbacf552324 | /*
* 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-shield/src/main/java/com/amazonaws/services/shield/model/SummarizedAttackVector.java | aws/aws-sdk-java | apache-2.0 | 7,238 | 220 | codeparrot/github-code |
4dd3331acd3ffdf306499e6b33bee7213a5db30b1a24b85b3d3f2f13ae1be11a | /**
* 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 | components/camel-rest/src/main/java/org/apache/camel/component/rest/RestEndpoint.java | punkhorn/camel-upstream | apache-2.0 | 20,335 | 541 | codeparrot/github-code |
de5f95807369c515c6c935fcdd42559c628a5b63254b2280ed1e18b1c5fd6e13 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Text;
using System.Web.Mvc.Proper... | C# | src/Xcst.AspNet/Framework/ModelBinding/NameValueCollectionValueProvider.cs | maxtoroq/XCST-a | apache-2.0 | 7,718 | 201 | codeparrot/github-code |
04168be06802f3e3fd90c4eb02bac1e86582246904e5fe6845f82abf8216421e | /*
* Copyright 2013 David Farrell
*
* 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... | C | AGPLab4/CubeDrawable.h | shockkolate/AGPLabs | apache-2.0 | 5,793 | 169 | codeparrot/github-code |
3a0cf63e36d850d20c3dc2ae37e3cd930085c2181f5c09af7ad3b8664f68d405 |
package chatty;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author tduva
*/
public cl... | Java | test/chatty/AddressbookTest.java | Javaec/ChattyRus | apache-2.0 | 1,323 | 61 | codeparrot/github-code |
4c670055e094370b2111de4ea28a6c78c638088744abf58b6f3784524735e737 | import psutil
from ajenti.api import *
from ajenti.ui import *
@plugin
class NetworkManager (BasePlugin):
def get_devices(self):
return psutil.net_io_counters(pernic=True).keys()
@interface
class INetworkConfig (object):
interfaces = {}
@property
def interface_list(self):
return se... | Python | usr/share/pyshared/ajenti/plugins/network/api.py | lupyuen/RaspberryPiImage | apache-2.0 | 1,407 | 70 | codeparrot/github-code |
06f6bdc1d76c2d21f7a40995d7d724c8c35f79408b3a63d78ee7750a2b64a7b1 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | C | arangod/MMFiles/MMFilesRevisionsCache.h | joerg84/arangodb | apache-2.0 | 2,307 | 66 | codeparrot/github-code |
072c2fd2973a5cacbdae971384a0fc15b069459da38a583ae3fde0b48f8ee869 | /**
* 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 | ql/src/java/org/apache/hadoop/hive/ql/optimizer/GlobalLimitOptimizer.java | winningsix/hive | apache-2.0 | 8,347 | 198 | codeparrot/github-code |
2bcaa2ee1bedac08ee01791b471ae5d8fb8fc430b5d1401191eca99d33ceedf5 | <!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>DefaultScanLabelGenerator xref</title>
<link t... | HTML | docs/xref/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.html | lshain/hbase-0.98.6-hadoop2 | apache-2.0 | 12,094 | 108 | codeparrot/github-code |
8f36d289bd0dfc37541fb9dc8638b5a66a6c7ea2de08d98dc24eca0527d86b0b | package mil.nga.giat.geowave.accumulo;
import java.nio.ByteBuffer;
import java.util.Arrays;
import org.apache.accumulo.core.data.Key;
/**
* This class encapsulates the elements that compose the row ID in Accumulo, and
* can serialize and deserialize the individual elements to/from the row ID. The
* row ID consist... | Java | geowave-accumulo/src/main/java/mil/nga/giat/geowave/accumulo/AccumuloRowId.java | state-hiu/geowave | apache-2.0 | 2,604 | 96 | codeparrot/github-code |
916e035d6c049a44dfb4c4f7bd52e0059bb0be95af33447a85e476b3e0b38d89 | package sttp.client3
import org.scalajs.dom.{WebSocket => JSWebSocket}
import sttp.client3.WebSocketImpl.OpenState
import sttp.client3.internal.ws.WebSocketEvent
import sttp.model.Headers
import sttp.monad.MonadError
import sttp.monad.syntax._
import sttp.ws.{WebSocket, WebSocketClosed, WebSocketFrame}
import scala.s... | Scala | core/src/main/scalajs/sttp/client3/WebSocketImpl.scala | softwaremill/sttp | apache-2.0 | 2,298 | 64 | codeparrot/github-code |
08f860314c2958047ec1a4162c82ddf796eb10c3203fb76b1801f808b0a3c5e2 | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | sentinel-dashboard/src/test/java/com/alibaba/csp/sentinel/dashboard/rule/zookeeper/ZookeeperConfigUtil.java | alibaba/Sentinel | apache-2.0 | 1,381 | 41 | codeparrot/github-code |
2470bf713a29c81f62d7f0e993382b722bdf4bd18ca10f2c13e2679cd01b2c94 | package cli
import (
"flag"
"fmt"
"os"
"strconv"
"strings"
"time"
)
// This flag enables bash-completion for all commands and subcommands
var BashCompletionFlag = BoolFlag{
Name: "generate-bash-completion",
Hide: true,
}
// This flag prints the version for the application
var VersionFlag = BoolFlag{
Name: ... | GO | Godeps/_workspace/src/github.com/minio-io/cli/flag.go | harshavardhana/donut | apache-2.0 | 10,329 | 502 | codeparrot/github-code |
673ac33c74d4e41a223bee0f8bbcf3eb0e318de00d5d1884d3f08f069a76be94 | /*
* 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 | ranger-elasticsearch-plugin-shim/src/main/java/org/apache/ranger/authorization/elasticsearch/authorizer/RangerElasticsearchAuthorizer.java | gzsombor/ranger | apache-2.0 | 3,996 | 120 | codeparrot/github-code |
f224ebf1a0e4431e52b6f8c2eb2012aad7d365caa3a4415e9fe08f87ec6989f8 | package org.opencompare;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import org.junit.Test;
import org.opencompare.api.java.Cell;
im... | Java | src/test/java/org/opencompare/StatisticsPlusPlusTest.java | jbqueyrie/TPOpenCompare | apache-2.0 | 11,295 | 386 | codeparrot/github-code |
7bd553e97704d89ad7b5287cd00b87ab3c1fc0469f088488075a77cc58023492 | package org.zstack.network.service.flat;
import org.zstack.header.message.MessageReply;
import org.zstack.header.network.l3.IpRangeInventory;
import org.zstack.header.network.l3.UsedIpInventory;
/**
* Created by frank on 10/11/2015.
*/
public class FlatDhcpAcquireDhcpServerIpReply extends MessageReply {
private... | Java | plugin/flatNetworkProvider/src/main/java/org/zstack/network/service/flat/FlatDhcpAcquireDhcpServerIpReply.java | AlanJager/zstack | apache-2.0 | 1,199 | 57 | codeparrot/github-code |
6583fbfd6e9d411849b5aa1cacc6cdfb010108ab6e4d0a2fcb715a1423297e0b | // --------------------------------------------------------------------------------
// Copyright (c) 2014, XLR8 Development
// --------------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... | C# | src/visitors/PgsqlConverter.cs | ajaxx/tsql2pgsql | apache-2.0 | 59,114 | 1,460 | codeparrot/github-code |
ecc9d37fc2dbe0920103db353c2c81f0bbe85d29c6b21c156b6de13dcc903f98 | package com.example.coolweather;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(saved... | Java | app/src/main/java/com/example/coolweather/MainActivity.java | yijia1992/coolweather | apache-2.0 | 1,121 | 38 | codeparrot/github-code |
b8d89eb9ca8ae5d18bf7f07ce6869c1f0548ac2725e8af3960d6f8234b52667b | /*
* Copyright (C) 2016 Pablo Guardiola Sánchez.
*
* 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 | hexgrid/src/main/java/com/pguardiola/HexagonViewNorthSouth.java | Guardiola31337/HexGrid | apache-2.0 | 3,675 | 117 | codeparrot/github-code |
179df390c5fd5721fe75607784a062449e450321e9c7821c712d03613ee8adf8 | package configuration;
import org.agle4j.framework.constant.ConfigConstant;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.junit.Test;
/**
* commons-configuration 包测试
* 一个java应用程序的配置管理类库
*
* @author hanyx
* ... | Java | src/test/java/configuration/ConfigurationTest.java | yongxu16/agile-test | apache-2.0 | 755 | 31 | codeparrot/github-code |
802e461db4ad0ac490832775e31b265511e20ea1bf1057c3a96a2c52a91c910a | /*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Java | apps/vtn/vtnweb/src/main/java/org/onosproject/vtnweb/web/FlowClassifierCodec.java | planoAccess/clonedONOS | apache-2.0 | 6,133 | 135 | codeparrot/github-code |
db406bc62d351be8528f691f6ade5ba852d1a64d36e72ecddd8e980804a1021c | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | Java | Source/Plugins/Core/com.equella.base/src/com/tle/common/harvester/HarvesterProfileSettings.java | equella/Equella | apache-2.0 | 2,776 | 109 | codeparrot/github-code |
9f8b0fde1d869e1ff5482d723054205995b4c6fcd85e9b4d3204369442cf3ab8 | // ============================================================================
// Copyright 2006-2012 Daniel W. Dyer
//
// 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
//
// h... | Java | core/src/java/test/org/uncommons/maths/random/PoissonGeneratorTest.java | dwdyer/uncommons-maths | apache-2.0 | 3,742 | 99 | codeparrot/github-code |
d4484420d099ae3707909b2c52a931abbf0795459bebaf20c9e6376d72b5aa54 | /******************************************************************************
* supplier.js
*
* Copyright 2016 Marcos Salomã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
*
* ... | JavaScript | src/main/resources/static/app/supplier/supplier.js | salomax/livremkt | apache-2.0 | 8,593 | 252 | codeparrot/github-code |
fe8c7000d4bdd1f3303205d6540a0a3e1d1c8562a8e3f102b1111d6b9164d3f6 | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* ... | Java | src/test/java/gwt/material/design/addins/client/ui/MaterialSplitPanelTest.java | GwtMaterialDesign/gwt-material-addins | apache-2.0 | 4,086 | 116 | codeparrot/github-code |
ebb88f5c2f78c61128e925855f6ad3586ccf7b8f65e71c4891afd7568e71baa2 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Roslyn.Utilities;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
usin... | C# | src/Compilers/CSharp/Portable/Symbols/TypeWithAnnotations.cs | MichalStrehovsky/roslyn | apache-2.0 | 44,329 | 1,026 | codeparrot/github-code |
c22a3676f0d392e0e05c5e2c4a3645ccef0c4d6b45d18ec412612b0726b5d8be | /*
* Copyright 2014 Ranjan Kumar
*
* 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... | Java | src/main/java/com/restfeel/entity/RfRequest.java | Jason-Chen-2017/restfeel | apache-2.0 | 3,393 | 157 | codeparrot/github-code |
0b995606b32aca7eaf7c36922889639148cf4e65298cf2b425ea519c4bb40e47 | /*
* 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 | nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/test/java/org/apache/nifi/integration/accesscontrol/ITConnectionAccessControl.java | jjmeyer0/nifi | apache-2.0 | 15,790 | 428 | codeparrot/github-code |
93b21c7f1e983d4bff19cbbfe1c9b36d83ecbdcd1bfcf7088c22092cdf4902a9 | // Copyright 2015 Garrett D'Amore
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
// You may obtain a copy of the license at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | GO | level.go | gdamore/proxima5 | apache-2.0 | 5,973 | 282 | codeparrot/github-code |
1e0d0effea2ce915f480de61dc34422d65aca3545a9a50bda3d4918ecab7b7f3 | # -*- coding: utf-8 -*-
"""Class representing the mapper for the parser init files."""
from plasoscaffolder.bll.mappings import base_mapping_helper
from plasoscaffolder.bll.mappings import base_sqliteplugin_mapping
from plasoscaffolder.model import init_data_model
class ParserInitMapping(
base_sqliteplugin_mappin... | Python | src/plasoscaffolder/bll/mappings/parser_init_mapping.py | ClaudiaSaxer/PlasoScaffolder | apache-2.0 | 1,234 | 40 | codeparrot/github-code |
9def9b17e2f4a769e511910147860ff7607a4dc88b998eb7731b1aa46cb3f96c |
struct Iterator_C{T <: Iterable}
ptr::Ptr{Void}
src::T
end
export Iterator_C, free, iterate
function iterator_type(ptr::Ptr{Void})
t = ccall((:cass_iterator_type, libcass), Cint, (Ptr{Void},), ptr)
IteratorTypes[t]
end
free(it::Iterator_C) = ccall((:cass_iterator_free, libcass), Void, (Ptr{Void},), ... | Julia | src/iterator.jl | alkan/CassandraDriver.jl | apache-2.0 | 1,160 | 45 | codeparrot/github-code |
2accbfb9a6276d781778d37520d6c0269d5e1877e996d5c548f2baeb286b156e | /**
* Copyright 2015-2016 GetSocial 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 ... | C# | Assets/GetSocial/Scripts/Chat/Platforms/IOS/Room/PublicChatRoomIOSImpl.cs | getsocial-im/getsocial-unity-kakao-demo | apache-2.0 | 2,064 | 67 | codeparrot/github-code |
ceec75405bc0f9d06e13ee989456c613d70cb3d423ab445fbe6f02eed88715e1 | 'use strict';
angular.module('Home').controller('ModalDeleteAssetCtrl',
function ($scope, $modalInstance, parentScope, HomeService,
asset, name, token, typeId, menuId) {
$scope.name = name;
$scope.message = "Are you sure you want to delete this asset ?";
$sc... | JavaScript | modules/templatetypes/asset/delete/controllers.js | fixxit/MoknJ-WebUI | apache-2.0 | 1,480 | 37 | codeparrot/github-code |
b9ee9bc237773b67897a147d45931cd5d442b18eb6bc586c989be7cfa287d4f6 | /*
* Copyright 2000-2017 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/platform-api/src/main/java/com/intellij/ui/speedSearch/SpeedSearch.java | consulo/consulo | apache-2.0 | 5,838 | 218 | codeparrot/github-code |
4c48a14852d1cb2a976727cc8810fc30f90e77370600f195b2820d7c8cecdfec | /*
* Copyright 2012 International Business Machines Corp.
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may ob... | Java | com.ibm.jbatch.container/src/main/java/com/ibm/jbatch/container/jsl/impl/TransitionImpl.java | WASdev/standards.jsr352.jbatch | apache-2.0 | 2,254 | 76 | codeparrot/github-code |
867c1eb25006bc24507a05b58eb54fd8365405dd19ae95bd588d6c76b2327208 | /**
* guy
* 异步树
* @class BI.TreeView
* @extends BI.Pane
*/
BI.TreeView = BI.inherit(BI.Pane, {
_defaultConfig: function () {
return BI.extend(BI.TreeView.superclass._defaultConfig.apply(this, arguments), {
_baseCls: "bi-tree",
paras: {
selectedValues: {}
... | JavaScript | src/base/tree/ztree/treeview.js | fanruan/fineui | apache-2.0 | 16,544 | 537 | codeparrot/github-code |
16feb063c28c1bedd220cca915f6408e34d361e7fed1533f3c4806a668c30062 | /*
* Copyright (c) 2015-2016 LoiLo 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 ag... | Java | promise/src/main/java/tv/loilo/promise/UntilParams.java | loilo-inc/loilo-promise | apache-2.0 | 1,081 | 37 | codeparrot/github-code |
0e1cd92ff5f8dfcf80e5d7c2c28cc1ef14d8438ff16574f507e2ad1d3c96d57a | #!/usr/bin/env node
/**
*
* Copyright 2014-2019 David Herron
*
* This file is part of AkashaCMS (http://akashacms.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
*
* ... | JavaScript | cli.js | akashacms/akasharender | apache-2.0 | 24,258 | 620 | codeparrot/github-code |
0eb9c0432c1e2eba8bb08f1b3def7d056609dc4679380868d4564db0246f5d72 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C++ | aws-cpp-sdk-robomaker/source/model/DescribeFleetResult.cpp | cedral/aws-sdk-cpp | apache-2.0 | 2,663 | 101 | codeparrot/github-code |
1f49f2240a4eff57014ae4f70ac5d9edfb2b34dbc364dbff74c040bb5c86baa0 | package ru.job4j.model.dao;
import org.slf4j.LoggerFactory;
import ru.job4j.model.entities.Carbody;
import java.util.List;
/**
* class DCarbody.
*
* @author ifedorenko
* @since 19.12.2018
*/
public class DCarbody extends DAOAbstract<Carbody> {
private static final DCarbody INSTANCE = new DCarbody();
/**... | Java | 3.1-Hibernate/3.1.2.2-CarSell/src/main/java/ru/job4j/model/dao/DCarbody.java | fr3anthe/ifedorenko | apache-2.0 | 888 | 41 | codeparrot/github-code |
717d584755755ec7c42c669b997e827965d92b28e4bf22be66097607d4717ae4 |
function deferred_acceptance(prop_prefs::Matrix{Int}, resp_prefs::Matrix{Int}, caps::Vector{Int})
p = size(prop_prefs, 2)
r = size(resp_prefs, 2)
prop_matched = Array(Int, p)
for i in 1:p
prop_matched[i] = -1
end
resp_matched = zeros(Int, sum(caps))
indptr = Array(Int, r+1... | Julia | DA_Many_to_1.jl | EikiTakigawa/Deferred-Acceptance | apache-2.0 | 3,188 | 75 | codeparrot/github-code |
e1db2788dcd2fc9376a676b9305c3ebbbc4b61b8ec3467412e14e8b92f356d20 | /* Copyright 2021 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/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/hlo_ops_common.h | sarvex/tensorflow | apache-2.0 | 2,518 | 56 | codeparrot/github-code |
7a14c3b8f1186d7f4b10eafe52260500743b361982440c597399a27d92ea7d06 | package com.orionplatform.data.data_structures.array;
import java.util.Arrays;
import java.util.Comparator;
import com.orionplatform.core.abstraction.OrionService;
public class ArraySortService<T> extends OrionService
{
public static synchronized void sort(byte[] array)
{
Arrays.sort(array);
}
... | Java | orion_data/orion_data_structures/src/main/java/com/orionplatform/data/data_structures/array/ArraySortService.java | orioncode/orionplatform | apache-2.0 | 1,201 | 61 | codeparrot/github-code |
7906b233628148e9c6142a7d36ff50e8f68c383962ad0b042ecc180982d7aaf0 | /* Copyright 2012 Brian Ellis
*
* 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 ... | C | src/pane_renderable.h | Caffeinix/mcmodeler | apache-2.0 | 3,231 | 94 | codeparrot/github-code |
8b7b588ec12cd740e1a1a911f445aab14503ef52ea98bcef8065d232a3b57af6 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | Java | artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java | pgfox/activemq-artemis | apache-2.0 | 88,749 | 1,658 | codeparrot/github-code |
943116cc35aec781da1ba27ea646ffe27c26f41d7d4d123eed1a528d0611033a | using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Lucene.Net.Odm.Helpers
{
/// <summary>
/// Represents the extension methods for the lambda expression.
/// </summary>
public static class ExpressionHelper
{
/// <summary>
/// Convert... | C# | Flucene/Helpers/ExpressionHelper.cs | T-Alex/Flucene | apache-2.0 | 2,470 | 63 | codeparrot/github-code |
d6d37bd630fe1ca285874058d12cc8926e177eff3dd0216c30ce47d698a4a14b | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package org.deephacks.confit.internal.core.property.typesafe.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.deephacks.confit.internal.core.prop... | Java | core/src/main/java/org/deephacks/confit/internal/core/property/typesafe/impl/AbstractConfigValue.java | deephacks/confit | apache-2.0 | 13,671 | 377 | codeparrot/github-code |
a293d87f0ac72efa6eeaf9bd2de6e29700abe880a11729d0d39e6ae9bcf2dd0e | /***
*Sensap contribution
* @author George
*
*/
package eu.sensap.farEdge.dataRoutingClient.registry;
import java.io.IOException;
import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.ja... | Java | Clients/dataRoutingClient/src/main/java/eu/sensap/farEdge/dataRoutingClient/registry/RegistryClient.java | far-edge/EdgeInfrastructure | apache-2.0 | 10,728 | 370 | codeparrot/github-code |
6ba2a35f364af8fca8f9da7eb384289de3fbb93af98bff08c3cce64cdec1c0ee | <?php
defined('C5_EXECUTE') or die("Access Denied.");
$sets = BlockTypeSet::getList();
$types = array();
foreach ($blockTypes as $bt) {
if (!$cp->canAddBlockType($bt)) {
continue;
}
$btsets = $bt->getBlockTypeSets();
foreach ($btsets as $set) {
$types[$set->getBlockTypeSetName()][] = $b... | PHP | concrete/views/dialogs/page/add_block_list.php | baardev/lbtb | apache-2.0 | 3,188 | 90 | codeparrot/github-code |
182b877681ab1fccdc0ead8518e83a6809c54abcd52229fe2bc1603fe92a45ca | #ifndef _ESBMC_SOLVERS_SMT_SMT_ARRAY_H_
#define _ESBMC_SOLVERS_SMT_SMT_ARRAY_H_
#include "smt_conv.h"
// Interface definition for array manipulation
class array_iface
{
public:
// This constructor makes this not qualify as an abstract interface, but
// meh.
array_iface(bool _b, bool inf) : supports_bools_in_ar... | C | solvers/smt/smt_array.h | ssvlab/esbmc-gpu | apache-2.0 | 2,488 | 59 | codeparrot/github-code |
ce1a3493b8698f9398716849bbe81cbba85aa820587276403b12b83e5cc277e5 | // Copyright 2021 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 ... | GO | attest/application_key.go | google/go-attestation | apache-2.0 | 3,725 | 129 | codeparrot/github-code |
5139fd10ef477cdeebe50b959c24dfac7f96f043ebaa1cdd3ad1dbf922825c5a | package kikaha.urouting;
import java.util.*;
import java.util.function.Function;
import javax.annotation.PostConstruct;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.*;
import javax.inject.*;
import kikaha.core.util.Lang;
import kikaha.urouting.api.*;
@Singleton
@SuppressWarnings("rawtypes"... | Java | kikaha-modules/kikaha-urouting/source/kikaha/urouting/ConverterFactoryLoader.java | Skullabs/kikaha | apache-2.0 | 2,325 | 73 | codeparrot/github-code |
33d3bf2de254e7174e7aa9215db46bb4fa14e66fa07ed6b03df516fb230419fb | package com.blogspot.ludumdaresforfun;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.ut... | Java | core/src/com/blogspot/ludumdaresforfun/Enemy.java | jjhaggar/ludum30_a_hole_new_world | apache-2.0 | 2,894 | 106 | codeparrot/github-code |
f4ebde4536aba357aaf89f8a36e7f850aa53a7af1be7e304cb72a87eff0fcc17 | package com.jeesms.entity.system;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jeesms.common.Constants;
import com.jeesms.entity.base.IdEntity;
import javax.persistence.*;
import java.ut... | Java | src/main/java/com/jeesms/entity/system/LoginLog.java | ashnl007/jeesms | apache-2.0 | 1,915 | 91 | codeparrot/github-code |
8751579ed7d471d0ab5b53a99bb84a9368230dc1d72d04d5bb134df3c52c8a0e | ---
type: post100
title: Securing the Transport Layer
categories: XAP100SEC
parent: securing-xap-components.html
weight: 300
---
{{% ssummary %}}{{% /ssummary %}}
XAP provides a generic network filter that also provides SSL support, through an SSL communication filter.
;
* 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 | nano-orm/nano-orm-jdbc/src/main/java/org/nanoframework/orm/jdbc/config/DruidJdbcConfig.java | nano-projects/nano-framework | apache-2.0 | 5,059 | 215 | codeparrot/github-code |
b8ed649de358e40ccea42be8b29418871b5f0ad61a59dffd901eff0fba472a61 | <?php
namespace DCarbone\PHPFHIRGenerated\STU3\FHIRElement\FHIRBackboneElement\FHIRCodeSystem;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:43+0000... | PHP | src/DCarbone/PHPFHIRGenerated/STU3/FHIRElement/FHIRBackboneElement/FHIRCodeSystem/FHIRCodeSystemFilter.php | dcarbone/php-fhir-generated | apache-2.0 | 30,555 | 776 | codeparrot/github-code |
6cf932fde21989fcc9439372ea4ad9b99ca7bd0399b537891741a3843c6fa51e | """
rohmu
Copyright (c) 2016 Ohmu Ltd
See LICENSE for details
"""
from . errors import InvalidConfigurationError
IO_BLOCK_SIZE = 2 ** 20 # 1 MiB
def get_class_for_transfer(storage_type):
if storage_type == "azure":
from .object_storage.azure import AzureTransfer
return AzureTransfer
elif s... | Python | pghoard/rohmu/__init__.py | saaros/pghoard | apache-2.0 | 1,265 | 41 | codeparrot/github-code |
ef8b7b251c1759c371a00a39e8ceae304ba1c44c514674868b80f905545b2804 | /*
* Copyright (c) 2016-present, RxJava Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Java | src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapSingle.java | ReactiveX/RxJava | apache-2.0 | 11,229 | 362 | codeparrot/github-code |
a13edb4f9bd0e58f66062c9e3739e00b30467a6947226dc14047e23ce14f0430 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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... | C++ | thrift/lib/cpp2/frozen/test/FrozenSerializationBench.cpp | facebook/fbthrift | apache-2.0 | 4,076 | 131 | codeparrot/github-code |
d10b0962f9f49a209b932d20f49be6ee73c2a912f8ae6fb90be9113fab83ce87 | package com.keeps.ksxtmanager.system.service;
import java.util.List;
import com.keeps.core.service.SoftService;
import com.keeps.model.TDict;
import com.keeps.model.TDictType;
import com.keeps.tools.utils.page.Page;
import com.keeps.utils.TreeNode;
/**
* <p>Title: DictService.java</p>
* <p>Descripti... | Java | ksxtmanager/src/main/java/com/keeps/ksxtmanager/system/service/DictService.java | keepsl/keepsmis | apache-2.0 | 1,335 | 54 | codeparrot/github-code |
4ed55f3c77982d781d5f1ef1de6dee0b9ef8373cbaf8418bf34c3a69c4ac058a | // 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.psi.impl;
import com.google.common.annotations.VisibleForTesting;
import com.intellij.injected.editor.DocumentWindow;
import com.intellij.lang.ASTNode;
impor... | Java | modules/base/core-impl/src/main/java/com/intellij/psi/impl/PsiDocumentManagerBase.java | consulo/consulo | apache-2.0 | 42,122 | 1,121 | codeparrot/github-code |
26092c89f979ba5ee9dee205fcdec65705ca081668cda617095d6d3b99f5085c | package org.jetbrains.plugins.scala.annotator.usageTracker
import com.intellij.psi.PsiElement
import com.intellij.psi.util.PsiTreeUtil
import org.jetbrains.plugins.scala.editor.importOptimizer.ImportInfoProvider
import org.jetbrains.plugins.scala.extensions.{IteratorExt, PsiElementExt, PsiFileExt}
import org.jetbrains... | Scala | scala/scala-impl/src/org/jetbrains/plugins/scala/annotator/usageTracker/UsageTracker.scala | JetBrains/intellij-scala | apache-2.0 | 4,875 | 123 | codeparrot/github-code |
ade32e4e83ab27ff92c280854f9b071502c5b288f698fffd0ffcb3ded96c57f6 | /*
* Copyright 2014-2016 Mikhail Shugay
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Java | src/main/java/com/antigenomics/mageri/core/variant/model/ErrorRateEstimate.java | mikessh/mageri | apache-2.0 | 1,639 | 59 | codeparrot/github-code |
1102de83a2fc183fe61e82b765155c02c47909fd4d7a51ec3c95089e5a4aeb32 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | src/main/java/com/intellij/lang/properties/PropertiesHighlightingLexer.java | consulo/consulo-properties | apache-2.0 | 1,637 | 38 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.