code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
<?php
function detect() {
// Note: I originally found this script at: http://us2.php.net/manual/en/function.get-browser.php
// Temporary Variables
// The useragent string (lowercase to simplify testing)
$_nw_ua = strtolower(@$_SERVER["HTTP_USER_AGENT"]);
// Browser Detection { ============================... | certik/libmesh | doc/html/detect.php | PHP | lgpl-2.1 | 2,371 |
<?php
class Provider_Ucloud extends Provider {
var $url_prefix = 'https://openapi.ucloud.com/ucloud/oauth/1.0a/';
function __construct($provider,$oauth_config){
parent::__construct($provider,$oauth_config);
}
function _getRequestTokenURL(){
return $url = $this->url_prefix.'request_token' ;
}
function _get... | saegeul/saegeul | application/libraries/oauth/provider/Provider_Ucloud.php | PHP | lgpl-2.1 | 5,256 |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Li... | kobolabs/qtquick1 | src/declarative/debugger/qpacketprotocol.cpp | C++ | lgpl-2.1 | 15,319 |
package com.digitalcraftinghabitat.forgemod.util;
import org.apache.logging.log4j.Level;
import cpw.mods.fml.relauncher.FMLRelaunchLog;
/**
* Created by christopher on 02/08/15.
*/
public class DCHLog {
public static final FMLRelaunchLog INSTANCE = FMLRelaunchLog.log;
private DCHLog(){
}
publi... | digital-crafting-habitat/dch_forge_mod | src/main/java/com/digitalcraftinghabitat/forgemod/util/DCHLog.java | Java | lgpl-2.1 | 1,264 |
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: pagination.php 39469 2012-01-12 21:13:48Z changi67 $
... | railfuture/tiki-website | lib/prefs/pagination.php | PHP | lgpl-2.1 | 955 |
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
**************... | spetroce/qwt | src/qwt_spline.cpp | C++ | lgpl-2.1 | 31,139 |
/**
* Encodes and decodes to and from Base64 notation.
*
* <p>
* Change Log:
* </p>
* <ul>
* <li>v2.1 - Cleaned up javadoc comments and unused variables and methods. Added
* some convenience methods for reading and writing to and from files.</li>
* <li>v2.0.2 - Now specifies UTF-8 encoding in places where ... | Chandrashar/jradius | applet/src/main/java/Base64.java | Java | lgpl-2.1 | 53,360 |
// Copyright (c) 2012-2013 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <vector>
#include <iostream>
#include <sstream>
#include "include_base_utils.h"
#include "console_handler.h"
#i... | 1blockologist/boolberry | tests/core_tests/chaingen.cpp | C++ | lgpl-3.0 | 28,375 |
// -*- mode: c++; c-basic-style: "bsd"; c-basic-offset: 4; -*-
/*
* ecore/EParameterImpl.cpp
* Copyright (C) Cátedra SAES-UMU 2010 <andres.senac@um.es>
*
* EMF4CPP 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 Softw... | wurfkeks/emf4cpp | emf4cpp/ecore/EParameterImpl.cpp | C++ | lgpl-3.0 | 7,909 |
/*
This source file is part of KBEngine
For the latest info, see http://www.kbengine.org/
Copyright (c) 2008-2012 KBEngine.
KBEngine 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 3 of the... | 75651/kbengine_cloud | kbe/src/lib/pyscript/install_py_dlls.hpp | C++ | lgpl-3.0 | 954 |
package com.samepage.view;
import java.util.List;
import com.samepage.model.EmpDTO;
public class EmpView {
public static void print(String title, List<EmpDTO> emplist){
System.out.println(title + ">>========== ¿©·¯°Ç Ãâ·Â ===========<<");
for (EmpDTO empDTO : emplist) {
System.out.println(empDTO);
}
}... | qfactor2013/BizStudyParallel | DB/Day5/src/com/samepage/view/EmpView.java | Java | lgpl-3.0 | 569 |
/*
* FindBugs - Find bugs in Java programs
* Copyright (C) 2003,2004 University of Maryland
*
* 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 License, ... | simeshev/parabuild-ci | 3rdparty/findbugs086src/src/java/edu/umd/cs/findbugs/detect/NoteSuppressedWarnings.java | Java | lgpl-3.0 | 4,473 |
using System;
using System.Net;
using System.Net.Sockets;
using JetBrains.Annotations;
using NetMQ.Sockets;
namespace NetMQ
{
/// <summary>
/// A NetMQBeaconEventArgs is an EventArgs that provides a property that holds a NetMQBeacon.
/// </summary>
public class NetMQBeaconEventArgs : EventArgs
{
... | NetMQ/NetMQ3-x | src/NetMQ/NetMQBeacon.cs | C# | lgpl-3.0 | 18,652 |
package org.xacml4j.v30.pdp;
/*
* #%L
* Xacml4J Core Engine Implementation
* %%
* Copyright (C) 2009 - 2014 Xacml4J.org
* %%
* This program 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, eithe... | snmaher/xacml4j | xacml-core/src/main/java/org/xacml4j/v30/pdp/FunctionParamSpec.java | Java | lgpl-3.0 | 1,952 |
///////////////////////////////////////////////////////////////////////////////
// Name: src/msw/gdiplus.cpp
// Purpose: implements wrappers for GDI+ flat API
// Author: Vadim Zeitlin
// Created: 2007-03-14
// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
// Licence: wxWindows ... | dariusliep/LogViewer | thirdparty/wxWidgets-3.0.0/src/msw/gdiplus.cpp | C++ | lgpl-3.0 | 85,342 |
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtNetwork of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU... | ssangkong/NVRAM_KWU | qt-everywhere-opensource-src-4.7.4/src/network/kernel/qnetworkinterface_symbian.cpp | C++ | lgpl-3.0 | 9,698 |
<?php
class boxberryShippingSettingsCountriesValidateController extends waJsonController
{
public function execute()
{
$selected_countries = waRequest::post('selected_countries', array(), waRequest::TYPE_ARRAY);
$all_countries = waRequest::post('all_countries', 1, waRequest::TYPE_INT);
... | webasyst/webasyst-framework | wa-plugins/shipping/boxberry/lib/actions/settings/boxberryShippingSettingsCountriesValidate.controller.php | PHP | lgpl-3.0 | 1,590 |
// Catalano Imaging Library
// The Catalano Framework
//
// Copyright © Diego Catalano, 2015
// diego.catalano at live.com
//
// Copyright © Andrew Kirillov, 2007-2008
// andrew.kirillov@gmail.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU... | cswaroop/Catalano-Framework | Catalano.Image/src/Catalano/Imaging/Filters/FrequencyFilter.java | Java | lgpl-3.0 | 3,543 |
#__all__ = [ 'search', 'ham_distance', 'lev_distance', 'distance', 'distance_matrix' ]
| vfulco/scalpel | lib/gravity/tae/match/__init__.py | Python | lgpl-3.0 | 94 |
/*
* Copyright 2009-2014 PrimeTek.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | salviof/SBJSFComp | htmlOffiline/Volverine/tag/src/main/java/org/primefaces/adamantium/view/data/datatable/ColumnsView.java | Java | lgpl-3.0 | 3,441 |
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright (c) 2016,2017 The plumed team
(see the PEOPLE file at the root of the distribution for a list of names)
See http://www.plumed.org for more information.
This file is part of plumed, version 2.
plumed is free software... | JFDama/plumed2 | src/reference/IntermolecularDRMSD.cpp | C++ | lgpl-3.0 | 2,489 |
/*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube 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 Found... | ayondeep/sonarqube | server/sonar-server/src/main/java/org/sonar/server/batch/GlobalAction.java | Java | lgpl-3.0 | 4,163 |
/*
* SonarQube
* Copyright (C) 2009-2022 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program 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 3 of the License, o... | SonarSource/sonarqube | server/sonar-ce/src/main/java/org/sonar/ce/configuration/package-info.java | Java | lgpl-3.0 | 966 |
using Microsoft.AspNetCore.Authentication;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using Sustainsys.Saml2.AspNetCore2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.Extensio... | KentorIT/authservices | Sustainsys.Saml2.AspNetCore2/Saml2AuthExtensions.cs | C# | lgpl-3.0 | 3,185 |
// <copyright file="ExpansionCase.cs" company="Allors bvba">
// Copyright (c) Allors bvba. All rights reserved.
// Licensed under the LGPL license. See LICENSE file in the project root for full license information.
// </copyright>
namespace Autotest.Html
{
using System.Linq;
using Autotest.Angular;
using N... | Allors/platform | Core/Workspace/Scaffold/Model/Core/Html/ExpansionCase.cs | C# | lgpl-3.0 | 1,468 |
<?php
header("Content-type:text/html;charset=utf-8");
define('IC_VERNAME', '中文版');
$lang = array(
'Install guide' => 'IBOS 安装引导',
'None' => '无',
'Env check' => '环境检查',
'Env test' => '环境检测',
'Icenter required' => '所需配置',
'Recommended' => '推荐配置',
'Curr server' => '当前服务器',
'Priv check' => ... | SeekArt/IBOS | install/include/installLang.php | PHP | lgpl-3.0 | 6,984 |
//
// System.Drawing.Design.ToolboxService
//
// Authors:
// Sebastien Pouliot <sebastien@ximian.com>
//
// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Softwar... | edwinspire/VSharp | class/System.Drawing.Design/System.Drawing.Design/ToolboxService.cs | C# | lgpl-3.0 | 7,694 |
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___... | JackNoordhuis/PocketMine-MP | src/item/Potato.php | PHP | lgpl-3.0 | 1,081 |
declare module org {
module kevoree {
module modeling {
class KActionType {
static CALL: KActionType;
static CALL_RESPONSE: KActionType;
static SET: KActionType;
static ADD: KActionType;
static REMOVE: KActionType;
... | dukeboard/kevoree-modeling-framework | org.kevoree.modeling.microframework.typescript/src/main/resources/org.kevoree.modeling.microframework.typescript.d.ts | TypeScript | lgpl-3.0 | 123,308 |
/*
* Copyright (C) 2009 Christian Hujer.
*
* 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 License, or (at your option) any later version.
*
* This li... | christianhujer/japi | historic2/src/prj/net/sf/japi/util/filter/file/package-info.java | Java | lgpl-3.0 | 936 |
//
// System.Net.WebResponse
//
// Author:
// Lawrence Pit (loz@cable.a2000.nl)
//
//
// 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
// withou... | edwinspire/VSharp | v#/System/System.Net/WebResponse.cs | C# | lgpl-3.0 | 3,611 |
#Special rules for nouns, to avoid suggesting wrong lemmas. Nothing is done for other POS.
import pymorphy2
blacklist1 = ['ъб', 'ъв', 'ъг', 'ъд', 'ъж', 'ъз', 'ък', 'ъл', 'ъм', 'ън', 'ъп', 'ър', 'ъс', 'ът', 'ъф', 'ъх', 'ъц', 'ъч', 'ъш', 'ъщ', 'йй', 'ьь', 'ъъ', 'ыы', 'чя', 'чю', 'чй', 'щя', 'щю', 'щй', 'шя', 'шю', 'шй',... | azilya/Zaliznyak-s-grammatical-dictionary | gdictionary/postprocessing.py | Python | lgpl-3.0 | 7,574 |
var searchData=
[
['keep_5fhistory_2ecpp',['keep_history.cpp',['../keep__history_8cpp.html',1,'']]],
['keep_5fhistory_5fpass_2ecpp',['keep_history_pass.cpp',['../keep__history__pass_8cpp.html',1,'']]],
['keep_5fhistory_5fpass_2eh',['keep_history_pass.h',['../keep__history__pass_8h.html',1,'']]]
];
| bduvenhage/flitr | Doxygen/html/search/files_6b.js | JavaScript | lgpl-3.0 | 311 |
/*
{{ jtdavids-reflex }}
Copyright (C) 2015 Jake Davidson
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is dist... | jtdavids/jtdavids-reflex | jtdavids-reflex/src/main/java/com/example/jake/jtdavids_reflex/StatisticCalc.java | Java | lgpl-3.0 | 8,131 |
using System.Data.Entity;
using System.Linq;
namespace EntityProfiler.Tools.MessageGenerator
{
public sealed class AppDbContext : DbContext {
public DbSet<Product> Products { get; set; }
public DbSet<Price> Prices { get; set; }
/// <summary>
/// Constructs a new context instance ... | julianpaulozzi/EntityProfiler | tools/EntityProfiler.Tools.MessageGenerator/AppDbContext.cs | C# | lgpl-3.0 | 1,818 |
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package Kitchenware
* @author Hamid Abbaszadeh
* @license GNU/LGPL
* @copyright 2014
*/
/**
* Fields
*/
$GLOBALS['TL_LANG']['tl_kitchenware_category']['title'] = array('Kitchenware category title', 'Please enter the k... | respinar/contao-kitchenware | languages/en/tl_kitchenware_category.php | PHP | lgpl-3.0 | 2,395 |
// -*- SystemC -*-
// DESCRIPTION: Verilator Example: Top level main for invoking SystemC model
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2017 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
//========================================================... | verilator/verilator | examples/make_tracing_sc/sc_main.cpp | C++ | lgpl-3.0 | 4,137 |
package org.cloudbus.cloudsim.examples.power.steady;
import java.io.IOException;
/**
* A simulation of a heterogeneous power aware data center that applies the
* Static Threshold (THR) VM allocation policy and Minimum Migration Time (MMT)
* VM selection policy.
*
* The remaining configuration parameter... | swethapts/cloudsim | sources/org/cloudbus/cloudsim/examples/power/steady/ThrMmt.java | Java | lgpl-3.0 | 1,797 |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package orgomg.cwm.analysis.olap.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
... | dresden-ocl/dresdenocl | plugins/org.dresdenocl.tools.CWM/src/orgomg/cwm/analysis/olap/impl/LevelBasedHierarchyImpl.java | Java | lgpl-3.0 | 4,857 |
namespace Importer.Interfaces
{
public interface ISilence
{
float Start { get; }
float End { get; }
float Duration { get; }
float CutTime { get; }
}
} | tschroedter/MyCodingExamples | aimedia/Importer.Interfaces/ISilence.cs | C# | lgpl-3.0 | 197 |
///////////////////////////////////////////////////////////////////////////////
// Name: src/ribbon/gallery.cpp
// Purpose: Ribbon control which displays a gallery of items to choose from
// Author: Peter Cawley
// Modified by:
// Created: 2009-07-22
// Copyright: (C) Peter Cawley
// Licenc... | dariusliep/LogViewer | thirdparty/wxWidgets-3.0.0/src/ribbon/gallery.cpp | C++ | lgpl-3.0 | 25,662 |
package com.wavpack.decoder;
import java.io.RandomAccessFile;
/*
** WavpackContext.java
**
** Copyright (c) 2007 - 2008 Peter McQuillan
**
** All Rights Reserved.
**
** Distributed under the BSD Software License (see license.txt)
**
*/
public class WavpackContext {
Wavpac... | jacky8hyf/musique | dependencies/wavpack/src/main/java/com/wavpack/decoder/WavpackContext.java | Java | lgpl-3.0 | 1,036 |
using System.Xml.Serialization;
namespace Geo.Gps.Serialization.Xml.Gpx.Gpx10
{
[XmlType(AnonymousType=true, Namespace="http://www.topografix.com/GPX/1/0")]
public class GpxTrackPoint : GpxPoint
{
public decimal course { get; set; }
[XmlIgnore]
public bool courseSpecified { get; se... | asapostolov/Geo | Geo/Gps/Serialization/Xml/Gpx/Gpx10/GpxTrackPoint.cs | C# | lgpl-3.0 | 446 |
<?php
/**
* 信息中心默认语言包 zh_cn
*
* @package application.modules.officialdoc.language.zh_cn
* @version $Id: default.php 481 2013-05-30 08:04:10Z gzwwb $
* @author gzwwb <gzwwb@ibos.com.cn>
*/
return array(
//----------------golabs-------------------
'Information center' => '信息中心',
'Officialdoc' => '通知公告'... | SeekArt/IBOS | system/modules/officialdoc/language/zh_cn/default.php | PHP | lgpl-3.0 | 5,779 |
/**
* 基于jquery.select2扩展的select插件,基本使用请参考select2相关文档
* 默认是多选模式,并提供了input模式下的初始化方法,对应的数据格式是{ id: 1, text: "Hello" }
* 这里的参数只对扩展的部分作介绍
* filter、includes、excludes、query四个参数是互斥的,理论只能有其一个参数
* @method ibosSelect
* @param option.filter
* @param {Function} option.filter 用于过滤源数据的函数
* @param {Array} option.includes... | SeekArt/IBOS | static/js/src/base/ibos.select2.js | JavaScript | lgpl-3.0 | 5,038 |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as f... | Distrotech/qtquick1 | examples/declarative/tutorials/extending/chapter5-listproperties/main.cpp | C++ | lgpl-3.0 | 2,394 |
#include <cstdio>
#include <cstring>
#define MAXX 50
#define MAXY 50
#define MAXLEN 100
#define Zero(v) memset((v), 0, sizeof(v))
int X, Y;
char ins[MAXLEN + 1];
int x, y, d;
bool scent[MAXX + 1][MAXY + 1];
const char dirs_str[] = "NESW";
const int dirs[4][2] = {
{ 0, 1 },
{ 1, 0 },
{ 0, -1 },
... | lbv/pc-code | solved/l-n/mutant-flatworld-explorers/explorers.cpp | C++ | unlicense | 1,276 |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
function Square(props) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}
class Board extends React.Component {
renderSquare(i) {
return (
<Square
value={thi... | xiaoxiaoyao/MyApp | HTML/前端/my-react-app-spring-boot-yao/src/index.js | JavaScript | unlicense | 2,690 |
require('babel-core/register')({plugins: ['babel-plugin-rewire']})
import packageJson from '../package.json'
import conformToMask from '../src/conformToMask'
import {placeholderChar} from '../src/constants'
const createTextMaskInputElement = (isVerify()) ?
require(`../${packageJson.main}`).createTextMaskInputElemen... | CrisDan1905/text-mask | core/test/createTextMaskInputElement.spec.js | JavaScript | unlicense | 13,794 |
GoogleElectionMap.shapeReady({name:"28_05",type:"state",state:"28_05",bounds:[],centroid:[],shapes:[
{points:[
{x:32.8810559124534,y: 24.5253494052583}
,
{x:32.8804366855404,y: 24.5250018993236}
,
{x:32.8804349320052,y: 24.5250021192127}
,
{x:32.8800699675051,y: 24.52504787811}
,
{x:32.880107603168,y: 24.5253602242076}... | amounir86/amounir86-2011-elections | voter-info/shapes/old_json/28_05.js | JavaScript | unlicense | 52,858 |
<?php
/**
* An exception when an fActiveRecord is not found in the database
*
* @copyright Copyright (c) 2007-2008 Will Bond
* @author Will Bond [wb] <will@flourishlib.com>
* @license http://flourishlib.com/license
*
* @package Flourish
* @link http://flourishlib.com/fNotFoundExcepti... | ksa46/work | library/Flourish/lib/fNotFoundException.php | PHP | unlicense | 1,655 |
#include "buffer_manager.hh"
#include "assert.hh"
#include "buffer.hh"
#include "client_manager.hh"
#include "exception.hh"
#include "file.hh"
#include "ranges.hh"
#include "string.hh"
namespace Kakoune
{
BufferManager::~BufferManager()
{
// Move buffers to avoid running BufClose with buffers remaining in that l... | casimir/kakoune | src/buffer_manager.cc | C++ | unlicense | 3,157 |
# -*- encoding: utf-8 -*-
#
# Copyright © 2013 IBM Corp
#
# Author: Tong Li <litong01@us.ibm.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/LICEN... | tanglei528/ceilometer | ceilometer/tests/dispatcher/test_file.py | Python | apache-2.0 | 3,762 |
/*
* 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")... | kidaa/isis | core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/object/callbacks/remove/RemovingCallbackFacetViaMethod.java | Java | apache-2.0 | 2,249 |
/* Copyright 2020 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | skia-dev/oss-fuzz | projects/xpdf/fuzz_pdfload.cc | C++ | apache-2.0 | 3,787 |
using System;
using System.IO;
using EnvDTE;
namespace NuGet.VisualStudio
{
public class NativeProjectSystem : VsProjectSystem
{
public NativeProjectSystem(Project project, IFileSystemProvider fileSystemProvider)
: base(project, fileSystemProvider)
{
}
public overr... | chester89/nugetApi | src/VisualStudio/ProjectSystems/NativeProjectSystem.cs | C# | apache-2.0 | 2,947 |
/**
* 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... | alibaba/jstorm | jstorm-core/src/main/java/com/alibaba/jstorm/message/netty/NettyContext.java | Java | apache-2.0 | 4,482 |
/*!
* ${copyright}
*/
// Provides class sap.ui.rta.plugin.Combine.
sap.ui.define([
'sap/ui/rta/plugin/Plugin',
'sap/ui/dt/Selection',
'sap/ui/dt/OverlayRegistry',
'sap/ui/rta/Utils'
], function(
Plugin,
Selection,
OverlayRegistry,
Utils
) {
"use strict";
/**
* Constructor for a new Combine Plugin.
*
... | SQCLabs/openui5 | src/sap.ui.rta/src/sap/ui/rta/plugin/Combine.js | JavaScript | apache-2.0 | 5,703 |
package helpers
import (
"fmt"
"github.com/SpectraLogic/ds3_go_sdk/ds3"
ds3Models "github.com/SpectraLogic/ds3_go_sdk/ds3/models"
helperModels "github.com/SpectraLogic/ds3_go_sdk/helpers/models"
"github.com/SpectraLogic/ds3_go_sdk/sdk_log"
"sync"
"time"
)
type putProducer struct {
JobM... | SpectraLogic/ds3_go_sdk | helpers/putProducer.go | GO | apache-2.0 | 13,579 |
package org.jboss.resteasy.test.providers.multipart.resource;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "customer")
@XmlAccessorType(XmlAccessTyp... | awhitford/Resteasy | testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/multipart/resource/ContextProvidersCustomer.java | Java | apache-2.0 | 607 |
//// [typeGuardFunctionOfFormThis.ts]
class RoyalGuard {
isLeader(): this is LeadGuard {
return this instanceof LeadGuard;
}
isFollower(): this is FollowerGuard {
return this instanceof FollowerGuard;
}
}
class LeadGuard extends RoyalGuard {
lead(): void {};
}
class FollowerGuard ... | synaptek/TypeScript | tests/baselines/reference/typeGuardFunctionOfFormThis.js | JavaScript | apache-2.0 | 8,326 |
/*
* Copyright (C) 2013 nohana, 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 app... | KeithYokoma/Amalgam | amalgam/src/main/java/com/amalgam/database/CursorUtils.java | Java | apache-2.0 | 5,998 |
# -*- coding: utf-8 -*-
#
# Copyright 2013 - Mirantis, 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 requir... | TimurNurlygayanov/mistral | mistral/api/controllers/v1/workbook_definition.py | Python | apache-2.0 | 1,511 |
require 'spec_helper'
require 'pureftpd_helper'
describe 'PureFTPd' do
include_examples 'PureFTPd', 'postgresql'
end
| Aigeruth/pure-ftpd | test/integration/backend-postgresql/serverspec/default_spec.rb | Ruby | apache-2.0 | 120 |
// Copyright(C) David W. Jeske, 2013
// Released to the public domain. Use, modify and relicense at will.
using System;
using System.Threading;
using System.Globalization;
using System.Drawing;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using OpenTK.Audio;
using OpenTK.Audio.OpenAL;
using Ope... | RealRui/SimpleScene | Demos/TestBench1/TestBench1.cs | C# | apache-2.0 | 1,698 |
from trex_astf_lib.api import *
# IPV6 tunable example
#
# ipv6.src_msb
# ipv6.dst_msb
# ipv6.enable
#
class Prof1():
def __init__(self):
pass
def get_profile(self, **kwargs):
# ip generator
ip_gen_c = ASTFIPGenDist(ip_range=["16.0.0.0", "16.0.0.255"], distribution="seq")
... | kisel/trex-core | scripts/astf/param_tcp_rxbufsize_8k.py | Python | apache-2.0 | 1,298 |
declare module ioc {
/**
* A base class for applications using an IOC Container
*/
abstract class ApplicationContext implements IApplicationContext {
/**
* A base class for applications using an IOC Container
* @param appName The name of your application
*/
c... | Marvin-Brouwer/QR-Redirect | Source/QR-Reader/Scripts/typings/SIOCC-TS.d.ts | TypeScript | apache-2.0 | 7,284 |
/*
* Copyright 2005-2014 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/ecl1.php
*
* Unless required by... | vivantech/kc_fixes | src/main/java/org/kuali/kra/irb/ProtocolDaoOjb.java | Java | apache-2.0 | 6,383 |
/**
* Copyright (c) 2005-20010 springside.org.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* $Id: PropertyFilter.java 1205 2010-09-09 15:12:17Z calvinxiu $
*/
package com.snakerflow.framework.orm;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.u... | snakerflow/snaker-web | src/main/java/com/snakerflow/framework/orm/PropertyFilter.java | Java | apache-2.0 | 4,884 |
/*
* Copyright 2019 MovingBlocks
*
* 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... | immortius/gestalt | gestalt-module/src/main/java/org/terasology/gestalt/module/exceptions/MissingModuleMetadataException.java | Java | apache-2.0 | 1,036 |
#pragma once
#ifndef UTIL_LOGGER_HPP
#define UTIL_LOGGER_HPP
#include <gsl/span>
#include <string>
#include <iterator>
#include <vector>
#include <cstdlib>
/**
* @brief A utility which logs a limited amount of entries
* @details Logs strings inside a ringbuffer.
*
* If the buffer is full, the oldest entry will b... | hioa-cs/IncludeOS | api/util/logger.hpp | C++ | apache-2.0 | 2,818 |
<?php
namespace Scalr\Service\CloudStack\Services\Vpn\DataType;
use Scalr\Service\CloudStack\DataType\AbstractDataType;
/**
* AddVpnUserData
*
* @author Vlad Dobrovolskiy <v.dobrovolskiy@scalr.com>
* @since 4.5.2
*/
class AddVpnUserData extends AbstractDataType
{
/**
* Required
* Password fo... | kikov79/scalr | app/src/Scalr/Service/CloudStack/Services/Vpn/DataType/AddVpnUserData.php | PHP | apache-2.0 | 1,253 |
/*
* 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 ... | apache/avro | lang/java/avro/src/main/java/org/apache/avro/SchemaBuilderException.java | Java | apache-2.0 | 1,094 |
/**
* @projectDescription The SDX controller library for the PatientRecordSet data-type.
* @namespace i2b2.sdx.TypeControllers.ENS
* @inherits i2b2.sdx.TypeControllers
* @author Mike Mendis
* @version 1.6
* @see i2b2.sdx
* ------------------------------------------------------------------------------... | rdalej/i2b2-shibboleth | build/web/webclient/js-i2b2/cells/CRC/CRC_sdx_ENS.js | JavaScript | apache-2.0 | 17,357 |
from pony.orm.core import *
| buddyli/private2w | libs/pony/orm/__init__.py | Python | apache-2.0 | 28 |
package com.mc.phonefinder.usersettings;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.preference.PreferenceManager;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import and... | Rakesh627/PhoneFinder | ParseStarterProject/src/main/java/com/mc/phonefinder/usersettings/FindPhoneInterface.java | Java | apache-2.0 | 10,791 |
import AttributeCompression from "../Core/AttributeCompression.js";
import Cartesian3 from "../Core/Cartesian3.js";
import Cartographic from "../Core/Cartographic.js";
import Ellipsoid from "../Core/Ellipsoid.js";
import IndexDatatype from "../Core/IndexDatatype.js";
import CesiumMath from "../Core/Math.js";
import Rec... | progsung/cesium | Source/WorkersES6/createVectorTilePolylines.js | JavaScript | apache-2.0 | 6,753 |
/*
* 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 ... | jdeppe-pivotal/geode | geode-core/src/main/java/org/apache/geode/internal/cache/DiskStoreAttributes.java | Java | apache-2.0 | 8,257 |
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | linzhaoming/origin | vendor/k8s.io/kubernetes/pkg/controller/certificates/signer/cfssl_signer_test.go | GO | apache-2.0 | 4,691 |
/*
* SVG Salamander
* Copyright (c) 2004, Mark McKay
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must retain the above
* copy... | Longri/cachebox3.0 | launcher/desktop_lwjgl/src/com/kitfox/svg/pathcmd/Arc.java | Java | apache-2.0 | 9,856 |
'use strict';
angular.module('publisherApp')
.config(function ($stateProvider) {
$stateProvider
.state('settings', {
parent: 'account',
url: '/settings',
data: {
roles: ['ROLE_USER'],
pageTitle: 'global.menu... | GIP-RECIA/esup-publisher-ui | src/main/webapp/scripts/app/account/settings/settings.js | JavaScript | apache-2.0 | 949 |
package com.sean.im.client.push.handler;
import com.alibaba.fastjson.JSON;
import com.sean.im.client.constant.Global;
import com.sean.im.client.core.ApplicationContext;
import com.sean.im.client.core.PushHandler;
import com.sean.im.client.form.MainForm;
import com.sean.im.client.tray.TrayManager;
import com.sean.im.cl... | seanzwx/tmp | seatalk/im/im-client/src/main/java/com/sean/im/client/push/handler/KickOutFlockHandler.java | Java | apache-2.0 | 1,004 |
/*
* 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... | jexp/idea2 | xml/impl/src/com/intellij/psi/impl/cache/impl/idCache/XHtmlIdIndexer.java | Java | apache-2.0 | 1,077 |
# ===============================================================================
# Copyright 2013 Jake Ross
#
# 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/licens... | USGSDenverPychron/pychron | pychron/pipeline/plot/flow_label.py | Python | apache-2.0 | 3,470 |
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | mindprince/test-infra | prow/plugins/milestone/milestone.go | GO | apache-2.0 | 5,550 |
//
// Copyright 2014, Sander van Harmelen
//
// 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... | benjvi/go-cloudstack | cloudstack44/StoragePoolService.go | GO | apache-2.0 | 9,719 |
/*
* Copyright (C) 2013 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... | consulo/consulo-android | android/android/src/com/android/tools/idea/lang/rs/RenderscriptParser.java | Java | apache-2.0 | 1,189 |
<?php
namespace edu\wisc\services\caos;
class GetCourseByCatalogNumberRequest
{
/**
* @var termCodeType $termCode
*/
protected $termCode = null;
/**
* @var string $subjectCode
*/
protected $subjectCode = null;
/**
* @var string $catalogNumber
*/
protected $cata... | ahoffmann-wi/caos-php-client | src/main/GetCourseByCatalogNumberRequest.php | PHP | apache-2.0 | 1,771 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | asoldano/wss4j | ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/securityToken/UsernameSecurityTokenImpl.java | Java | apache-2.0 | 7,035 |
#
# Author:: Adam Jacob (<adam@opscode.com>)
# Copyright:: Copyright (c) 2008 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# 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
#
# htt... | BackSlasher/chef | lib/chef/resource/bash.rb | Ruby | apache-2.0 | 930 |
/**********************************************************************
Copyright (c) 2005 Erik Bengtson and others.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/l... | datanucleus/tests | jdo/general/src/java/org/datanucleus/samples/metadata/datastoreidentity/D3.java | Java | apache-2.0 | 1,143 |
package com.mic.log.spouts;
import java.util.Map;
import backtype.storm.spout.SpoutOutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.topology.base.BaseRichSpout;
import backtype.storm.tuple.Fields;
import backtype.storm.tup... | yifzhang/storm-miclog | src/jvm/com/mic/log/spouts/AppLogWriterSpout.java | Java | apache-2.0 | 885 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/nix/mime_util_xdg.h"
#include <cstdlib>
#include <list>
#include <map>
#include <vector>
#include "base/environment.h"
#include "base... | elvestar/chromium-base-library | base/nix/mime_util_xdg.cc | C++ | apache-2.0 | 20,684 |
package ca.uhn.fhir.cql.dstu3.builder;
/*-
* #%L
* HAPI FHIR JPA Server - Clinical Quality Language
* %%
* Copyright (C) 2014 - 2022 Smile CDR, 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 ... | jamesagnew/hapi-fhir | hapi-fhir-jpaserver-cql/src/main/java/ca/uhn/fhir/cql/dstu3/builder/MeasureReportBuilder.java | Java | apache-2.0 | 2,503 |
/*
* Copyright (c) 2005 - 2014, WSO2 Inc. (http://www.wso2.org) 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
*
... | kasungayan/carbon-analytics-common | components/event-publisher/event-output-adapters/org.wso2.carbon.event.output.adapter.wso2event/src/main/java/org/wso2/carbon/event/output/adapter/wso2event/WSO2EventAdapter.java | Java | apache-2.0 | 8,571 |
"""
websocket - WebSocket client library for Python
Copyright (C) 2010 Hiroki Ohtani(liris)
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 License, ... | vert-x3/vertx-web | vertx-web/src/test/sockjs-protocol/websocket/_logging.py | Python | apache-2.0 | 2,165 |
#!/var/www/horizon/.venv/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import locale
locale.setloc... | neumerance/deploy | .venv/bin/rst2xml.py | Python | apache-2.0 | 619 |
/**
* @author caspar - chengzhihang
* @contact 279397942@qq.com
* @date 2016/12/29
* @file admin/view-partial/main/order/widget/form/value-widget/TpNameText
*/
define([
'zh/widget/text/ValidationTextBox',
'admin/services/enums/OrderPropertyEnum',
"dojo/_base/declare"
], function (TextBox, OrderProperty... | Caspar12/zh.sw | zh-site-manager-web-ui-admin/target/classes/static/app/admin/view-partial/main/order/widget/form/value-widget/TpNameText.js | JavaScript | apache-2.0 | 590 |
import logging
import threading
import time
from ballast.discovery import ServerList
from ballast.rule import Rule, RoundRobinRule
from ballast.ping import (
Ping,
SocketPing,
PingStrategy,
SerialPingStrategy
)
class LoadBalancer(object):
DEFAULT_PING_INTERVAL = 30
MAX_PING_TIME = 3
def ... | thomasstreet/ballast | ballast/core.py | Python | apache-2.0 | 4,607 |
import os, re, csv
# regular expressions for capturing the interesting quantities
noise_pattern = 'noise: \[(.+)\]'
res_pattern = '^([0-9.]+$)'
search_dir = "output"
results_file = '../results.csv'
os.chdir( search_dir )
files = filter( os.path.isfile, os.listdir( '.' ))
#files = [ os.path.join( search_dir, f ) for ... | jiminliang/msda-denoising | spearmint_variable_noise/output2csv.py | Python | apache-2.0 | 1,028 |