code
stringlengths
4
1.01M
language
stringclasses
2 values
/** * 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
How to access Feedly RSS feed from the command line on Linux ================================================================================ In case you didn't know, [Feedly][1] is one of the most popular online news aggregation services. It offers seamlessly unified news reading experience across desktops, Android an...
Java
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- template designed by Marco Von Ballmoos --> <title></title> <link rel="stylesheet" h...
Java
/** * Copyright 2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_111) on Thu Aug 18 01:51:14 UTC 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>org.apache.hadoop.r...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" > <title>Silicon Valley 2013 - Proposal</title> <meta name="author" content="Andrew Hay" > <link rel="alternate" type="...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
Java
// // Account.h // CardFlightLibrary // // Created by Tim Saunders on 9/20/13. // Copyright (c) 2013 Filip Andrei. All rights reserved. // #import <Foundation/Foundation.h> @interface CFTAccount : NSObject @property (nonatomic, strong) NSString *apiToken; @property (nonatomic, strong) NSString *accountToken; /*...
Java
<?php namespace ctala\transaccion\classes; /** * Description of Helper * * @author ctala */ class Helper { /** * Esta función permite la redirección para los pagos. * * @param type $url * @param type $variables */ public static function redirect($url, $variables) { forea...
Java
package org.zstack.sdk.zwatch.monitorgroup.api; import org.zstack.sdk.zwatch.monitorgroup.entity.MonitorTemplateInventory; public class CreateMonitorTemplateResult { public MonitorTemplateInventory inventory; public void setInventory(MonitorTemplateInventory inventory) { this.inventory = inventory; ...
Java
/*- * Copyright (C) 2007 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 ap...
Java
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.jetty', name: 'JettyThreadPoolConfig', documentation: 'model of org.eclipse.jetty.server.ThreadPool', properties: [ { name: 'minThreads', class...
Java
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
Java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
Java
/* * Copyright (c) 2009 Kathryn Huxtable and Kenneth Orr. * * This file is part of the SeaGlass Pluggable Look and Feel. * * 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 * * ...
Java
/** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LICENSE-2.0 * * Copyright (c) Hoteia, 2012-2014 * http://www.hoteia.com - http://twitter.com/hoteia - contact@h...
Java
<?php /** * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com> * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ abstract class OC_Archive{ /** * open any of the supported archive types * @param string $path * @return OC_Archive|vo...
Java
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_26) on Tue Feb 14 08:16:37 UTC 2012 --> <TITLE> Uses of Class org.apache.hadoop.security.AccessControlException (Hadoop 1.0.1 API) </TITLE> <META NA...
Java
# # Copyright 2017 Centreon (http://www.centreon.com/) # # Centreon is a full-fledged industry-strength solution that meets # the needs in IT infrastructure and application monitoring for # service performance. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com...
Java
# Parser Error Handler Parser Error Handler validation is enabled by calling [IParser#setParserErrorHandler(IParserErrorHandler)](/hapi-fhir/apidocs/hapi-fhir-base/ca/uhn/fhir/parser/IParser.html#setParserErrorHandler(ca.uhn.fhir.parser.IParserErrorHandler)) on either the FhirContext or on individual parser instances....
Java
package nak.liblinear; import static nak.liblinear.Linear.info; /** * Trust Region Newton Method optimization */ class Tron { private final Function fun_obj; private final double eps; private final int max_iter; public Tron( final Function fun_obj ) { this(fun_obj, 0.1); } ...
Java
/* Copyright IBM Corp. 2016 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 ag...
Java
package geotrellis.test.multiband.cassandra import geotrellis.config.Dataset import geotrellis.raster.MultibandTile import geotrellis.spark._ import geotrellis.spark.io._ import geotrellis.test.CassandraTest import geotrellis.test.multiband.load.HadoopLoad import geotrellis.vector.ProjectedExtent import org.apache.sp...
Java
<!-- BEGIN MUNGE: UNVERSIONED_WARNING --> <!-- END MUNGE: UNVERSIONED_WARNING --> # Kubernetes Multi-AZ Clusters ## (previously nicknamed "Ubernetes-Lite") ## Introduction Full Cluster Federation will offer sophisticated federation between multiple kubernetes clusters, offering true high-availability, multiple pr...
Java
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Java
/* * Copyright 2000-2016 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
/* * 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
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MI...
Java
/* * Copyright (c) 2010-2015 Pivotal Software, 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 req...
Java
// Copyright 2017 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
Java
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /** * @var yii\base\View $this * @var app\modules\workflow\models\WorkflowForm $model * @var yii\widgets\ActiveForm $form */ ?> <div class="workflow-search"> <?php $form = ActiveForm::begin(array('method' => 'get')); ?> <?= $form->field($model, 'id'); ...
Java
/* $Id$ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
Java
/* * @description Prace s binarnim vyheldavacim stromem * @author Marek Salat - xsalat00 * @projekt IFJ11 * @date */ #ifndef BINARYTREEAVL_H_INCLUDED #define BINARYTREEAVL_H_INCLUDED #include <string.h> #include <stdlib.h> #include <stdio.h> #define INS_OK 1 // vlozeno v poradku #define...
Java
/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
Java
/* * #%L * ImageJ software for multidimensional image processing and analysis. * %% * Copyright (C) 2014 - 2017 Board of Regents of the University of * Wisconsin-Madison, University of Konstanz and Brian Northan. * %% * Redistribution and use in source and binary forms, with or without * modification, are permi...
Java
# frozen_string_literal: true require "unpack_strategy" shared_examples "UnpackStrategy::detect" do it "is correctly detected" do expect(UnpackStrategy.detect(path)).to be_a described_class end end shared_examples "#extract" do |children: []| specify "#extract" do mktmpdir do |unpack_dir| describ...
Java
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>ReplicaStateMachine - core 0.8.3-SNAPSHOT API - kafka.controller.ReplicaStateMachine</title> <meta name="description" content="Replica...
Java
// // Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu> // Creation Date: Sat Aug 25 14:12:42 PDT 2018 // Last Modified: Sat Aug 25 19:47:08 PDT 2018 // Filename: tool-trillspell.cpp // URL: https://github.com/craigsapp/humlib/blob/master/include/tool-trillspell.cpp // Syntax: C++11; hum...
Java
package api_test import ( "testing" "github.com/remind101/empire/pkg/heroku" ) func TestFormationBatchUpdate(t *testing.T) { c, s := NewTestClient(t) defer s.Close() mustDeploy(t, c, DefaultImage) q := 2 f := mustFormationBatchUpdate(t, c, "acme-inc", []heroku.FormationBatchUpdateOpts{ { Process: "web...
Java
/////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// #include "vu2.h" #include "vu_priv.h" ////////////////////////////////////////...
Java
class Openrct2 < Formula desc "Open source re-implementation of RollerCoaster Tycoon 2" homepage "https://openrct2.io/" url "https://github.com/OpenRCT2/OpenRCT2.git", :tag => "v0.2.4", :revision => "d645338752fbda54bed2cf2a4183ae8b44be6e95" head "https://github.com/OpenRCT2/OpenRCT2.git", :bra...
Java
class JbossForge < Formula desc "Tools to help set up and configure a project" homepage "https://forge.jboss.org/" url "https://downloads.jboss.org/forge/releases/3.9.0.Final/forge-distribution-3.9.0.Final-offline.zip" version "3.9.0.Final" sha256 "7b2013ad0629d38d487514111eadf079860a5cd230994f33ce5b7dcca82e7...
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Shared Memory Logging and Statistics &mdash; Varn...
Java
/* * Copyright 2013 Stanislav Artemkin <artemkin@gmail.com>. * * 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 copyright * notice, this list of cond...
Java
#include "stdafx.h" #include "com4j.h" void error( JNIEnv* env, const char* file, int line, HRESULT hr, const char* msg ... ) { // format the message va_list va; va_start(va,msg); int len = _vscprintf(msg,va); char* w = reinterpret_cast<char*>(alloca(len+1)); // +1 for '\0' vsprintf(w,msg,va); env->ExceptionC...
Java
{% extends "base.html" %} {% load filters %} {% block title %}{{project_name}}: {{record.label}}{% endblock %} {% block css %} <link href="/static/css/dataTables.bootstrap.css" rel="stylesheet"> {% endblock %} {% block navbar %} <li><a href="..">{{project_name}}</a></li> <li><a href="/{{...
Java
/* * Copyright (c), Pierre-Anthony Lemieux (pal@palemieux.com) * 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 copyright notice, t...
Java
from PyQt4 import QtGui, QtCore, QtSvg from PyQt4.QtCore import QMimeData from PyQt4.QtGui import QGraphicsScene, QGraphicsView, QWidget, QApplication from Orange.data.io import FileFormat class ImgFormat(FileFormat): @staticmethod def _get_buffer(size, filename): raise NotImplementedError @stat...
Java
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2010 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by ...
Java
cask "inso" do version "2.4.1" sha256 "ef9510f32d5d5093f6589fe22d6629c2aa780315966381fc94f83519f2553c2d" url "https://github.com/Kong/insomnia/releases/download/lib%40#{version}/inso-macos-#{version}.zip", verified: "github.com/Kong/insomnia/" name "inso" desc "CLI HTTP and GraphQL Client" homepage "...
Java
class Timidity < Formula desc "Software synthesizer" homepage "http://timidity.sourceforge.net/" url "https://downloads.sourceforge.net/project/timidity/TiMidity++/TiMidity++-2.14.0/TiMidity++-2.14.0.tar.bz2" sha256 "f97fb643f049e9c2e5ef5b034ea9eeb582f0175dce37bc5df843cc85090f6476" bottle do sha256 "0b26...
Java
class HapiFhirCli < Formula desc "Command-line interface for the HAPI FHIR library" homepage "https://hapifhir.io/hapi-fhir/docs/tools/hapi_fhir_cli.html" url "https://github.com/jamesagnew/hapi-fhir/releases/download/v5.3.0/hapi-fhir-5.3.0-cli.zip" sha256 "851fa036c55fee7c0eca62a1c00fd9b5f35f8296850762e002f752...
Java
require File.expand_path("../../language/php", __FILE__) class PhpPlantumlwriter < Formula include Language::PHP::Composer desc "Create UML diagrams from your PHP source" homepage "https://github.com/davidfuhr/php-plantumlwriter" url "https://github.com/davidfuhr/php-plantumlwriter/archive/1.6.0.tar.gz" sha...
Java
class NewrelicInfraAgent < Formula desc "New Relic infrastructure agent" homepage "https://github.com/newrelic/infrastructure-agent" url "https://github.com/newrelic/infrastructure-agent.git", tag: "1.20.7", revision: "b17a417d4745da7be9c00ecc72619523867f7add" license "Apache-2.0" head "https...
Java
#include <sys/time.h> #include <time.h> #include "warnp.h" #include "monoclock.h" /** * monoclock_get(tv): * Store the current time in ${tv}. If CLOCK_MONOTONIC is available, use * that clock; otherwise, use gettimeofday(2). */ int monoclock_get(struct timeval * tv) { #ifdef CLOCK_MONOTONIC struct timespec tp...
Java
class Yaz < Formula desc "Toolkit for Z39.50/SRW/SRU clients/servers" homepage "https://www.indexdata.com/yaz" url "http://ftp.indexdata.dk/pub/yaz/yaz-5.15.1.tar.gz" sha256 "ebef25b0970ea1485bbba43a721d7001523b6faa18c8d8da4080a8f83d5e2116" revision 1 bottle do cellar :any sha256 "5c92b86a99954d7c9...
Java
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * The examp...
Java
#! /usr/bin/python """versioneer.py (like a rocketeer, but for versions) * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Version: 0.7+ This file helps distutils-based projects manage their version number by just creating version-control tags. For developers who work from a V...
Java
<?php /** * TOP API: taobao.tmc.user.get request * * @author auto create * @since 1.0, 2015.12.04 */ class TmcUserGetRequest { /** * 需返回的字段列表,多个字段以半角逗号分隔。可选值:TmcUser结构体中的所有字段,一定要返回topic。 **/ private $fields; /** * 用户昵称 **/ private $nick; /** * 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户 **/ privat...
Java
# Linux Eclipse Dev Eclipse can be used on Linux (and probably Windows and Mac) as an IDE for developing Chromium. It's unpolished, but here's what works: * Editing code works well (especially if you're used to it or Visual Studio). * Navigating around the code works well. There are multiple ways to do this (...
Java
// 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. #ifndef NET_SPDY_SPDY_FRAMER_H_ #define NET_SPDY_SPDY_FRAMER_H_ #include <map> #include <memory> #include <string> #include <utility> #include "base...
Java
from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.utils.decorators import method_decorator from django.views import generic from regressiontests.generic_views.models import Artist, Author, Book, Page from regressiontests.generic_views.forms import Author...
Java
// Copyright 2015 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 <utility> #include "base/bind.h" #include "base/macros.h" #include "base/memory/ptr_util.h" #include "base/message_loop/message_loop.h" #include...
Java
<html> <head> <script src="../../../http/tests/inspector/inspector-test.js"></script> <script src="../../../http/tests/inspector/debugger-test.js"></script> <script> var a = 1; function testFunction() { var a = 2; debugger; } var test = function() { InspectorTest.startDebuggerTest(step1); function st...
Java
"""A connection adapter that tries to use the best polling method for the platform pika is running on. """ import os import logging import socket import select import errno import time from operator import itemgetter from collections import defaultdict import threading import pika.compat from pika.compat import dictk...
Java
/* * Copyright 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
Java
{% extends 'djangopypi/base.html' %} {% block title %}Manage {{ package.name }}{% endblock %} {% block body %} <h1>Manage {{ package.name }}</h1> <div> <form action="" method="post"> {% csrf_token %} {{ form.as_p }} <input type="submit" value="Submit"> </form> </div> {% endblock %}
Java
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2020, Cinesite VFX Ltd. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
Java
/* Copyright (c) 2007, Arvid Norberg 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 copyright notice, this list of conditions and the f...
Java
package VCP::DB_File::sdbm; =head1 NAME VCP::DB_File::sdbm - Subclass providing SDBM_File storage =head1 SYNOPSIS use VCP::DB_File; VCP::DB_File->new; =head1 DESCRIPTION To write your own DB_File filetype, copy this file and alter it. Then ask us to add an option to the .vcp file parsing to enable it. =...
Java
/* * Copyright (c) 2015, Simone Margaritelli <evilsocket at gmail dot com> * 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 copyr...
Java
Specifies a list of libraries and projects to link against. ```lua links { "references" } ``` ### Parameters ### `references` is a list of library and project names. When linking against another project in the same workspace, specify the project name here, rather than the library name. Premake will figure out the c...
Java
<!DOCTYPE html> <html> <head> <title>Flatty - Flat Administration Template</title> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <meta content='text/html;charset=utf-8' http-equiv='content-type'> <meta content='Flat administration template for Tw...
Java
package org.hisp.dhis.system.filter; /* * Copyright (c) 2004-2015, University of Oslo * 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 th...
Java
// Copyright (c) 2013 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. #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_FACTORY_CHROMEOS_H_ #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_...
Java
// Copyright 2015 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 "content/browser/mojo/mojo_app_connection_impl.h" #include <stdint.h> #include <utility> #include "base/bind.h" #include "content/browser/mojo/...
Java
# encoding: utf-8 require_relative './job' module CartoDB module Importer2 class FormatLinter CHARACTER_LIMIT = 1000 def self.supported?(extension) extension == '.kml' end # INFO: importer_config not used but needed for compatibility with other normalizers def initialize(f...
Java
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the documentation of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms ...
Java
from __future__ import division, absolute_import, print_function import sys if sys.version_info[0] >= 3: from io import StringIO else: from io import StringIO import compiler import inspect import textwrap import tokenize from .compiler_unparse import unparse class Comment(object): """ A comment block....
Java
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
Java
/* * BridJ - Dynamic and blazing-fast native interop for Java. * http://bridj.googlecode.com/ * * Copyright (c) 2010-2015, Olivier Chafik (http://ochafik.com/) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
Java
// // MCOMessageHeader+Private.h // mailcore2 // // Created by DINH Viêt Hoà on 3/11/13. // Copyright (c) 2013 MailCore. All rights reserved. // #ifndef __MAILCORE_MCOMESSAGEHEADER_PRIVATE_H_ #define __MAILCORE_MCOMESSAGEHEADER_PRIVATE_H_ #ifdef __cplusplus namespace mailcore { class MessageHeader; } @inter...
Java
/*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Chris Torek. * * Copyright (c) 2011 The FreeBSD Foundation * All rights reserved. * Portions of this software were developed by David Chisnall ...
Java
from django.conf.urls.defaults import patterns, url urlpatterns = patterns( 'popcorn_gallery.users.views', url(r'^edit/$', 'edit', name='users_edit'), url(r'^delete/$', 'delete_profile', name='users_delete'), url(r'^(?P<username>[\w-]+)/$', 'profile', name='users_profile'), )
Java
/* * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. * Copyright Siemens AG 2020 * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * htt...
Java
// Copyright 2014 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. #ifndef CSSParserFastPaths_h #define CSSParserFastPaths_h #include "core/CSSPropertyNames.h" #include "core/CSSValueKeywords.h" #include "platform/graphi...
Java
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.lz4; import javax.annotation.*; import java.nio.*; import org.lwjgl.*; import org.lwjgl.system.*; import static org.lwjgl.system.Checks.*; import static org.l...
Java
import copy from django import forms from django.db import models from django.core.exceptions import ValidationError, ImproperlyConfigured from django.db.models.fields.subclassing import Creator from djangae.forms.fields import ListFormField from django.utils.text import capfirst class _FakeModel(object): """ ...
Java
from __future__ import absolute_import from datetime import datetime from django.utils import timezone from django.core.urlresolvers import reverse from sentry.models import ( ProcessingIssue, EventError, RawEvent, EventProcessingIssue ) from sentry.testutils import APITestCase class ProjectProjectProcessingIss...
Java
// Copyright (c) 2011 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/basictypes.h" #include "chrome/browser/sync/profile_sync_service_harness.h" #include "chrome/test/live_sync/live_themes_sync_test.h" c...
Java
// Copyright (c) 2011 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. #ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_GTK_H_ #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_GTK_H_ #...
Java
$.ajax({ url: './data/population.json', success: function (data) { var max = -Infinity; data = data.map(function (item) { max = Math.max(item[2], max); return { geoCoord: item.slice(0, 2), value: item[2] } }); da...
Java
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2001 Peter Kelly (pmk@post.com) * (C) 2001 Dirk Mueller (mueller@kde.org) * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. * * This library is free software; yo...
Java
Подробная инструкция по установке: [http://yupe.ru/docs/install.html](http://yupe.ru/docs/install.html) Настройка операционной системы (Ubuntu): [http://yupe.ru/docs/ubuntu.html](http://yupe.ru/docs/ubuntu.html) После установки --------------- - [Расскажите нам о новом сайте на Юпи!](http://yupe.ru/contacts). Нам бу...
Java
"""Tools for manipulating of large commutative expressions. """ from __future__ import print_function, division from sympy.core.add import Add from sympy.core.compatibility import iterable, is_sequence, SYMPY_INTS from sympy.core.mul import Mul, _keep_coeff from sympy.core.power import Pow from sympy.core.basic impor...
Java
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
Java
/** * OpenAL cross platform audio library * Copyright (C) 1999-2007 by authors. * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your op...
Java
# Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. # Enthought library imports. from tvtk.tools.tvtk_doc import TVTKFilterChooser, TVTK_FILTERS # Local imports. from mayavi.filters.filter_base import FilterBase from mayavi.core.common import ...
Java
<!doctype html> <title>ProgressEvent constructor</title> <script src=../../../../resources/testharness.js></script> <script src=../../../../resources/testharnessreport.js></script> <div id=log></div> <script> test(function() { var ev = new ProgressEvent("test") assert_equals(ev.type, "test") assert_equals(ev.targ...
Java