code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
/**
* Project Wonderland
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., All Rights Reserved
*
* Redistributions in source code form must reproduce the above
* copyright and this condition.
*
* The contents of this file are subject to the GNU General Public
* License, Version 2 (the "License"); you may no... | AsherBond/MondocosmOS | wonderland/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/View2DSet.java | Java | agpl-3.0 | 5,674 |
# frozen_string_literal: true
class REST::InstanceSerializer < ActiveModel::Serializer
include RoutingHelper
attributes :uri, :title, :short_description, :description, :email,
:version, :urls, :stats, :thumbnail,
:languages, :registrations, :approval_required, :invites_enabled
has_one... | cobodo/mastodon | app/serializers/rest/instance_serializer.rb | Ruby | agpl-3.0 | 1,573 |
"""
Serializers and ModelSerializers are similar to Forms and ModelForms.
Unlike forms, they are not constrained to dealing with HTML output, and
form encoded input.
Serialization in REST framework is a two-phase process:
1. Serializers marshal between complex types like model instances, and
python primitives.
2. The... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/rest_framework/serializers.py | Python | agpl-3.0 | 41,575 |
# These permissions are a replacement for the following authorized? method:
# def authorized?
# current_user.member_of?(@group)
# end
module VisualizePermission
def may_show_visualize?(group=@group)
logged_in? and current_user.member_of?(group)
end
end
| nilclass/echosocial | app/permissions/visualize_permission.rb | Ruby | agpl-3.0 | 266 |
class CategoriesController < AdminController
protect 'manage_environment_categories', :environment
helper :categories
def index
@categories = environment.categories.find(:all, :conditions => "parent_id is null AND type is null")
@regions = environment.regions.find(:all, :conditions => {:parent_id => ... | evandrojr/noosferogov | app/controllers/admin/categories_controller.rb | Ruby | agpl-3.0 | 2,063 |
from sympy import (symbols, product, factorial, rf, sqrt, cos,
Function, Product, Rational)
a, k, n = symbols('a,k,n', integer=True)
def test_simple_products():
assert product(2, (k, a, n)) == 2**(n-a+1)
assert product(k, (k, 1, n)) == factorial(n)
assert product(k**3, (k, 1, n)) == fac... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/sympy/concrete/tests/test_products.py | Python | agpl-3.0 | 1,362 |
# frozen_string_literal: true
class HomeController < ApplicationController
before_action :authenticate_user!
before_action :set_referrer_policy_header
before_action :set_initial_state_json
def index
@body_classes = 'app-body'
end
private
def authenticate_user!
return if user_signed_in?
ma... | clworld/mastodon | app/controllers/home_controller.rb | Ruby | agpl-3.0 | 2,004 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2015, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | jstourac/wildfly | mod_cluster/extension/src/test/java/org/wildfly/extension/mod_cluster/ModClusterTransformersTestCase.java | Java | lgpl-2.1 | 6,362 |
/**
* @file CC3000.h
* @version 1.0
*
* @section License
* Copyright (C) 2015, Mikael Patel
*
* 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... | rrobinet/Cosa | libraries/CC3000/CC3000.h | C | lgpl-2.1 | 753 |
/**************************************************************************/
/* */
/* OCaml */
/* */
/* ... | gerdstolpmann/ocaml | testsuite/tests/lib-bigarray-2/bigarrfstub.c | C | lgpl-2.1 | 1,666 |
/* Common base code for the decNumber C Library.
Copyright (C) 2007-2019 Free Software Foundation, Inc.
Contributed by IBM Corporation. Author Mike Cowlishaw.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as p... | gftg85/libdfp | libdecnumber/decBasic.c | C | lgpl-2.1 | 160,467 |
/*
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup pkg_lwip_arch_cc Compiler and processor descripti... | lazytech-org/RIOT | pkg/lwip/include/arch/cc.h | C | lgpl-2.1 | 2,594 |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | EmreAtes/spack | var/spack/repos/builtin/packages/util-macros/package.py | Python | lgpl-2.1 | 1,752 |
/*
* Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your... | dxjia/ffmpeg-for-android-shared-library | source/ffmpeg/libavfilter/vf_sab.c | C | lgpl-2.1 | 12,241 |
/*
* Minecraft Forge
* Copyright (c) 2016.
*
* 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 version 2.1
* of the License.
*
* This library is distributed in the hope that it will... | SuperUnitato/UnLonely | build/tmp/recompileMc/sources/net/minecraftforge/fml/common/functions/TypeCastFunction.java | Java | lgpl-2.1 | 1,106 |
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2012 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it un... | rbazaud/lxqt-session | lxqt-config-session/defaultappspage.h | C | lgpl-2.1 | 1,605 |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="resources/js-test-pre.js"></script>
</head>
<body>
<script src="script-tests/parser-xml-close-comment.js"></script>
<script src="resources/js-test-post.js"></script>
</body>
</html>
| youfoh/webkit-efl | LayoutTests/fast/js/parser-xml-close-comment.html | HTML | lgpl-2.1 | 256 |
package com.puppycrawl.tools.checkstyle.indentation;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.jar.JarInputStream;
import java.util.jar.Manifest;
// Forcing a commit
class InputValidTryResourcesIndent
{
// Taken from JDK7 java.lang.Package src code.
private static Manifest l... | Andrew0701/checkstyle | src/testinputs/com/puppycrawl/tools/checkstyle/indentation/InputValidTryResourcesIndent.java | Java | lgpl-2.1 | 626 |
package org.intermine.bio.webservice;
/*
* Copyright (C) 2002-2016 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/less... | zebrafishmine/intermine | bio/webapp/src/org/intermine/bio/webservice/GFFQueryService.java | Java | lgpl-2.1 | 2,884 |
/* ***** BEGIN LICENSE BLOCK *****
*
* Copyright (C) 1998 Netscape Communications Corporation.
* Copyright (C) 2010 Apple Inc.
*
* 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; ei... | youfoh/webkit-efl | LayoutTests/java/lc3/ConvertJSObject/ToLong-001.js | JavaScript | lgpl-2.1 | 2,161 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | jstourac/wildfly | transactions/src/main/java/org/jboss/as/txn/ee/concurrency/EEConcurrencyContextHandleFactoryProcessor.java | Java | lgpl-2.1 | 3,267 |
/**
* Copyright (C) 2009 Orbeon, Inc.
*
* 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
* 2.1 of the License, or (at your option) any later version.
*
* This program i... | wesley1001/orbeon-forms | src/main/java/org/orbeon/oxf/pipeline/api/ProcessorDefinition.java | Java | lgpl-2.1 | 3,587 |
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* VIRTUAL FUNCTIONS
* FUNCTION... | sanyaade-iot/Energia | hardware/common/ti/sysbios/hal/Seconds.h | C | lgpl-2.1 | 9,389 |
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
)
if "%1" == "" goto help
if "%1" == "hel... | n6g7/django_markdown | docs/make.bat | Batchfile | lgpl-3.0 | 4,521 |
/*
* casocklib - An asynchronous communication library for C++
* ---------------------------------------------------------
* Copyright (C) 2010 Leandro Costa
*
* This file is part of casocklib.
*
* casocklib is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General P... | iCoolcoder/casocklib | src/casock/rpc/protobuf/server/RPCCallHandlerFactory.h | C | lgpl-3.0 | 1,647 |
#string workflowName
#string creationDate
#list out_out
echo "Workflow name: ${workflowName}"
echo "Created: ${creationDate}"
echo "Result of step1.sh:"
for s in "${out_out[@]}"
do
echo ${s}
done
echo "(FOR TESTING PURPOSES: your runid is ${runid})" | RoanKanninga/molgenis-compute | molgenis-compute-core/src/main/resources/workflows/benchmark.5.1/protocols/step2.runtime.automapping.sh | Shell | lgpl-3.0 | 257 |
// stdafx.cpp : source file that includes just the standard includes
// testmav.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
| fatadama/mavlink-vscl | pymavlink/generator/C/test/windows/stdafx.cpp | C++ | lgpl-3.0 | 286 |
/*
* @BEGIN LICENSE
*
* Psi4: an open-source quantum chemistry software package
*
* Copyright (c) 2007-2021 The Psi4 Developers.
*
* The copyrights for code used from other parties are included in
* the corresponding files.
*
* This file is part of Psi4.
*
* Psi4 is free software; you can redistribute it an... | lothian/psi4 | psi4/src/psi4/cc/ccenergy/new_d1diag.cc | C++ | lgpl-3.0 | 5,165 |
"""Fixer that changes raw_input(...) into input(...)."""
# Author: Andre Roberge
# Local imports
from .. import fixer_base
from ..fixer_util import Name
class FixRawInput(fixer_base.BaseFix):
BM_compatible = True
PATTERN = """
power< name='raw_input' trailer< '(' [any] ')' > any* >
... | Orav/kbengine | kbe/src/lib/python/Lib/lib2to3/fixes/fix_raw_input.py | Python | lgpl-3.0 | 471 |
package Genome::Model::Event::Build::ReferenceAlignment::RefCov;
#REVIEW fdu 11/19/2009
#1. Fix help_detail
use strict;
use warnings;
use Genome;
use Genome::Utility::List;
use Genome::Utility::Email;
class Genome::Model::Event::Build::ReferenceAlignment::RefCov {
is => ['Genome::Model::Event'],
has => [
... | apregier/genome | lib/perl/Genome/Model/Event/Build/ReferenceAlignment/RefCov.pm | Perl | lgpl-3.0 | 11,666 |
/*
* @BEGIN LICENSE
*
* Psi4: an open-source quantum chemistry software package
*
* Copyright (c) 2007-2021 The Psi4 Developers.
*
* The copyrights for code used from other parties are included in
* the corresponding files.
*
* This file is part of Psi4.
*
* Psi4 is free software; you can redistribute it an... | lothian/psi4 | psi4/src/psi4/cc/cclambda/halftrans.cc | C++ | lgpl-3.0 | 5,190 |
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWN... | alpho07/NQCL_LIMS | application/libraries/Doctrine_/Doctrine/ORM/Query/AST/OrderByItem.php | PHP | unlicense | 1,955 |
# WWWSearch backend, with queries updating the is-db (optionally)
# Uses WWW::Search::Google and WWW::Search
# originally Google.pl, drastically altered.
use strict;
package W3Search;
my @engines;
my $no_W3Search;
BEGIN {
$no_W3Search = 0;
eval "use WWW::Search";
$no_W3Search++ if $@;
eval "use WWW:... | craigbro/tichy | bot5/src/W3Search.pl | Perl | unlicense | 2,019 |
/*
* Copyright 2010-2015 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" file... | d9magai/aws-sdk-cpp | aws-cpp-sdk-cloudformation/source/model/EstimateTemplateCostResult.cpp | C++ | apache-2.0 | 1,799 |
/*
* Copyright 2010-2015 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" file... | d9magai/aws-sdk-cpp | aws-cpp-sdk-redshift/source/model/DescribeClusterSnapshotsResult.cpp | C++ | apache-2.0 | 2,186 |
package org.apache.cassandra.hadoop.cql3;
/*
*
* 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 Licens... | Bj0rnen/cassandra | src/java/org/apache/cassandra/hadoop/cql3/CqlConfigHelper.java | Java | apache-2.0 | 24,042 |
---
layout: post
title: swift小项目-基于CoreLoaction和MapKit的位置app
date: 2016-03-23
categories: blog
tags: [swift]
description: 基于CoreLoaction和MapKit的位置app
---
这是一个用了CoreLoaction和MapKit的一个小项目,界面是点击按钮找到当前位置并且在地图上标记出来。下面是几点注意的:
1.使用CoreLocation时,requestAlwaysAuthorization(),因为要获取位置权限,所以在info.plist里要添加NSLocationAlwaysUsageDe... | HITlilingzhi/HITlilingzhi.github.io | _posts/2016-03-23-swift小项目-基于CoreLoaction和MapKit的位置app.md | Markdown | apache-2.0 | 4,517 |
define(function (require) {
var tdd = require('intern!tdd');
// Not really Chai but a Chai-compatible "assert" library for old IE.
var assert = require('intern/chai!assert');
// parse-srcset is an AMD module.
var parseSrcset = require('../../src/parse-srcset');
var he = require('tests/he');
tdd.suite('P... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/parse-srcset/tests/unit/ps.js | JavaScript | apache-2.0 | 21,793 |
/*
* Copyright (C) 2014-2015 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | slietz/gobblin | gobblin-runtime/src/main/java/gobblin/runtime/WorkUnitManager.java | Java | apache-2.0 | 4,913 |
/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <utility>
#include <string>
#include "util/hash.h"
#include "util/sstream.h"
#include "library/private.h"
#include "library/module.h"
#include "lib... | leodemoura/lean | src/library/private.cpp | C++ | apache-2.0 | 6,180 |
/**
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | nelsonsilva/wave-protocol | src/org/waveprotocol/wave/model/document/parser/Item.java | Java | apache-2.0 | 3,626 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | mmaracic/elasticsearch | core/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/ShardsLimitAllocationDecider.java | Java | apache-2.0 | 9,164 |
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""Python 2<->3 compatibility module"""
import sys
def print_(template, *args, **kwargs):
template = str(template)
if args:
template ... | grepme/CMPUT410Lab01 | virt_env/virt1/lib/python2.7/site-packages/PasteDeploy-1.5.2-py2.7.egg/paste/deploy/compat.py | Python | apache-2.0 | 961 |
package cmd
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
docker "github.com/fsouza/go-dockerclient"
"github.com/golang/glog"
kapi "k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/client/restclient"
"k8s.io/kubernetes/pkg/runtime"
s2iapi "github.com/openshift/source-to-image/pkg/api"
"git... | tmckayus/oshinko-rest | vendor/github.com/openshift/origin/pkg/build/builder/cmd/builder.go | GO | apache-2.0 | 7,078 |
package customerinsights
// Copyright (c) Microsoft and contributors. 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
... | maxamillion/origin | vendor/github.com/Azure/azure-sdk-for-go/services/customerinsights/mgmt/2017-04-26/customerinsights/interactions.go | GO | apache-2.0 | 16,211 |
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0;url=http://microsite.omniture.com/t2/help/en_US/mobile/win8/">
<script language="javascript">
window.location.href = "http://microsite.omniture.com/t2/help/en_US/mobile/win8/"
</script>... | iOSTestApps/phonegap-app-developer | plugins/ADBMobile/sdks/Windows8/documentation.html | HTML | apache-2.0 | 577 |
# Copyright (C) 2017 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 writ... | dsrbecky/gapid | test/robot/web/client/dom/CMakeFiles.cmake | CMake | apache-2.0 | 1,084 |
/**
* Copyright 2007-2016 Jordi Hernández Sellés, Ibrahim Chaehoi
*
* 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 ... | davidwebster48/jawr-main-repo | jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/postprocess/impl/CustomPostProcessorChainWrapper.java | Java | apache-2.0 | 2,385 |
// bslstl_treenode.h -*-C++-*-
#ifndef INCLUDED_BSLSTL_TREENODE
#define INCLUDED_BSLSTL_TREENODE
#ifndef INCLUDED_BSLS_IDENT
#include <bsls_ident.h>
#endif
BSLS_IDENT("$Id: $")
//@PURPOSE: Provide a POD-like tree node type holding a parameterized value.
//
//@CLASSES:
... | jmptrader/bde | groups/bsl/bslstl/bslstl_treenode.h | C | apache-2.0 | 15,011 |
package ch.usi.dag.disl.staticcontext.uid;
import ch.usi.dag.disl.staticcontext.AbstractStaticContext;
public abstract class AbstractUniqueId extends AbstractStaticContext {
private IdHolder idHolder;
// constructor for static context
protected AbstractUniqueId () {
idHolder = null;
}
// constructor for ... | msteindorfer/disl-svn-2013-10-01 | src/ch/usi/dag/disl/staticcontext/uid/AbstractUniqueId.java | Java | apache-2.0 | 729 |
package sampleclean.clean.deduplication.join
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.broadcast.Broadcast
import org.apache.spark.rdd.RDD
import org.apache.spark.sql._
import sampleclean.clean.featurize.AnnotatedSimilarityFeaturizer
import scala.collection.Se... | agilemobiledev/sampleclean-async | src/main/scala/sampleclean/clean/deduplication/join/PassJoin.scala | Scala | apache-2.0 | 8,070 |
/*
* 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 ... | masaki-yamakawa/geode | extensions/geode-modules-tomcat7/src/main/java/org/apache/geode/modules/session/catalina/Tomcat7CommitSessionOutputBuffer.java | Java | apache-2.0 | 1,881 |
/*
* 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 ... | tillrohrmann/flink | flink-connectors/flink-connector-gcp-pubsub/src/test/java/org/apache/flink/streaming/connectors/gcp/pubsub/PubSubSourceTest.java | Java | apache-2.0 | 6,683 |
package one.two;
public class ReadWithInstance {
public static void main(String[] args) {
KotlinObject i = KotlinObject.INSTANCE.getStaticLateinit();
}
} | jwren/intellij-community | plugins/kotlin/refIndex/tests/testData/compilerIndex/properties/fromObject/staticLateinit/ReadWithInstance.java | Java | apache-2.0 | 170 |
package ecs
//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... | kubernetes/cloud-provider-alibaba-cloud | vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_elasticity_assurances.go | GO | apache-2.0 | 941 |
<!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_13) on Wed Aug 05 08:53:15 ICT 2009 -->
<META http-equiv="Content-Type" content="text/html; charset=utf8">
<TITLE>
Uses of Class org.jgentlefr... | haint/jgentle | doc/org/jgentleframework/utils/data/class-use/Pair.html | HTML | apache-2.0 | 17,808 |
# Copyright (C) 2017 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 writ... | ek9852/gapid | gapis/client/CMakeFiles.cmake | CMake | apache-2.0 | 907 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2018 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | kingthorin/zap-extensions | addOns/ascanrules/src/test/java/org/zaproxy/zap/extension/ascanrules/RemoteFileIncludeScanRuleUnitTest.java | Java | apache-2.0 | 4,151 |
// Copyright (C) 2015 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 applicable ... | WANdisco/gerrit | java/com/google/gerrit/server/schema/Schema_114.java | Java | apache-2.0 | 845 |
/*
* Copyright 2004-2006 Stefan Reuter
*
* 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 ... | yamajun/asterisk-java | src/main/java/org/asteriskjava/manager/action/RedirectAction.java | Java | apache-2.0 | 9,412 |
/*
* 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 ma... | apache/olingo-odata4 | fit/src/test/java/org/apache/olingo/fit/proxy/demo/odatademo/types/CategoryCollectionComposableInvoker.java | Java | apache-2.0 | 1,249 |
package org.wso2.carbon.identity.application.authentication.framework.handler.request.impl;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.base.MultitenantConstants;
import org.wso2.carbon.identity.application.auth... | cdwijayarathna/carbon-identity | components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/handler/request/impl/DefaultRequestCoordinator.java | Java | apache-2.0 | 14,844 |
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | jgeewax/gcloud-python | runtimeconfig/google/cloud/runtimeconfig/_helpers.py | Python | apache-2.0 | 2,925 |
// Copyright 2013 the V8 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.
// Flags: --noanalyze-environment-liveness --allow-natives-syntax
var r = /r/;
function f() {
r[r] = function() {};
}
for (var i = 0; i < 300; i++) ... | weolar/miniblink49 | v8_7_5/test/mjsunit/regress/regress-crbug-217858.js | JavaScript | apache-2.0 | 363 |
// Copyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Lovell Fuller and contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENS... | BigBoss424/portfolio | v8/development/node_modules/gatsby-transformer-sharp/node_modules/sharp/src/pipeline.h | C | apache-2.0 | 6,999 |
/*
* 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 ... | sanojkodikkara/incubator-twill | twill-api/src/main/java/org/apache/twill/internal/DefaultTwillRunResources.java | Java | apache-2.0 | 3,520 |
/**
* $Id$
* $URL$
* EntitySite.java - entity-broker - Jun 29, 2008 9:31:10 AM - azeckoski
**************************************************************************
* Copyright (c) 2008, 2009 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not u... | marktriggs/nyu-sakai-10.4 | entitybroker/core-providers/src/java/org/sakaiproject/entitybroker/providers/model/EntitySite.java | Java | apache-2.0 | 25,279 |
/*
* 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 ... | pax95/camel | core/camel-management/src/test/java/org/apache/camel/management/CustomEndpoint.java | Java | apache-2.0 | 2,024 |
/* 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... | tensorflow/tensorflow | tensorflow/core/ir/dialect.h | C | apache-2.0 | 3,276 |
/*
* 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 ... | DariusX/camel | core/camel-core/src/test/java/org/apache/camel/component/bean/issues/FilterBeanNonRegistryTest.java | Java | apache-2.0 | 2,588 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
function plural(n) {
if... | rospilot/rospilot | share/web_assets/nodejs_deps/node_modules/@angular/common/locales/ckb-IR.js | JavaScript | apache-2.0 | 1,598 |
/*
* 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 ... | StefanoRaggi/Lean | Tests/Common/Securities/SecurityMarginModelTests.cs | C# | apache-2.0 | 44,236 |
// Copyright 2012 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-MIT or ... | GBGamer/rust | src/test/run-pass/unique/unique-autoderef-field.rs | Rust | apache-2.0 | 621 |
fdupes——Linux中查找并删除重复文件的命令行工具
================================================================================
对于大多数计算机用户而言,查找并替换重复的文件是一个常见的需求。查找并移除重复文件真是一项领人不胜其烦的工作,它耗时又耗力。如果你的机器上跑着GNU/Linux,那么查找重复文件会变得十分简单,这多亏了`**fdupes**`工具。
 for help with Markdown.
The [Github Flavored Markdown page](http:... | tlichten/vagrant-devstack-manila-vsim | lib/vagrant-vsim/chef/cookbooks/vagrant_vsim/CHANGELOG.md | Markdown | apache-2.0 | 443 |
/*
* Copyright 2014 NAVER 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 a... | masonmei/pinpoint | profiler/src/main/java/com/navercorp/pinpoint/test/TestClassLoaderFactory.java | Java | apache-2.0 | 2,594 |
class CreateCodeExperiments < ActiveRecord::Migration
def change
create_table :code_experiment_configs do |t|
t.string :name, null: false
t.float :enabled_rate, null: false, default: 0
t.boolean :always_enabled_for_admins, null: false, default: true
end
add_index :code_experiment_config... | camallen/Panoptes | db/migrate/20160414151041_create_code_experiments.rb | Ruby | apache-2.0 | 353 |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-text-input-directive-production</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.min.js"></script>
</head>
<body ng-app="textInputExample">
<script>
angular.module('textInputExample'... | helmutkemper/GitGoServer | static/d3/angular-1.3.12/docs/examples/example-text-input-directive/index-production.html | HTML | apache-2.0 | 1,179 |
<!DOCTYPE html >
<html>
<head>
<title>AlgebirdMonoid - io.gearpump.streaming.monoid.AlgebirdMonoid</title>
<meta name="description" content="AlgebirdMonoid - io.gearpump.streaming.monoid.AlgebirdMonoid" />
<meta name="keywords" content="AlgebirdMonoid io.gearpump.streaming.monoid.A... | stanleyxu2005/gearpump.github.io | releases/latest/api/scala/io/gearpump/streaming/monoid/AlgebirdMonoid.html | HTML | apache-2.0 | 30,009 |
/*
* 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... | ThiagoGarciaAlves/intellij-community | java/compiler/tests/com/intellij/compiler/artifacts/PackagingElementsTestCase.java | Java | apache-2.0 | 4,860 |
/*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/config/matcher/package-info.java | Java | apache-2.0 | 756 |
create table Attachment (
id numeric(19,0) identity not null,
accessType int null,
attachedAt datetime null,
attachmentContentId numeric(19,0) not null,
contentType varchar(255) null,
name varchar(255) null,
attachment_size int null,
attachedBy... | Salaboy/jbpm | jbpm-installer/db/ddl-scripts/sybase/sybase-jbpm-schema.sql | SQL | apache-2.0 | 19,723 |
/*
* 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... | Teradata/presto | presto-thrift-connector-api/src/main/java/com/facebook/presto/connector/thrift/api/datatypes/PrestoThriftJson.java | Java | apache-2.0 | 3,755 |
{% load i18n sizeformat %}
{% load url from future %}
<h3>{% trans "Cluster Overview" %}</h3>
<div class="status row detail">
<dl>
<dt>{% trans "Name" %}</dt>
<dd>{{ cluster.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ cluster.id }}</dd>
<dt>{% trans "Description" %}</dt>
... | mrunge/openstack_horizon | openstack_horizon/dashboards/project/data_processing/clusters/templates/data_processing.clusters/_details.html | HTML | apache-2.0 | 3,275 |
class Partition < ApplicationRecord
belongs_to :disk
belongs_to :hardware
has_many :volumes,
lambda { |_|
p = Partition.quoted_table_name
v = Volume.quoted_table_name
Volume.select("DISTINCT #{v}.*")
.joins("JOIN #{p} ON #{v}.hardware_id = #{p}.hard... | maas-ufcg/manageiq | app/models/partition.rb | Ruby | apache-2.0 | 4,525 |
/*
* This file is part of dependency-check-core.
*
* 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 ... | Prakhash/security-tools | external/dependency-check-core-3.1.1/src/main/java/org/owasp/dependencycheck/data/nuget/NuspecParseException.java | Java | apache-2.0 | 2,565 |
/*
* Copyright 2021 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | GoogleChromeLabs/chromeos_smart_card_connector | third_party/closure-compiler/src/src/com/google/javascript/jscomp/SynthesizeExplicitConstructors.java | Java | apache-2.0 | 4,359 |
/*
Copyright 2015 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, ... | mogthesprog/kubernetes | staging/src/k8s.io/client-go/discovery/helper_blackbox_test.go | GO | apache-2.0 | 6,251 |
/*
* 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 ... | ueshin/apache-flink | flink-runtime/src/test/java/org/apache/flink/runtime/io/network/util/TestSubpartitionConsumer.java | Java | apache-2.0 | 4,339 |
#!/bin/bash
LC_ALL=C
export PYTHONIOENCODING=utf8
python3 parse.py
python3 redirect.py
LC_ALL=C sort -u -t$'\t' -k1,1 output2.txt -o output.txt
cat output.txt | ./output_statistics.awk
| rasikapohankar/zeroclickinfo-fathead | lib/fathead/react_native/parse.sh | Shell | apache-2.0 | 189 |
/*
* 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 ... | objectiser/camel | examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/resources/BookStore.java | Java | apache-2.0 | 1,492 |
/******************************************************************************
* Copyright (c) 2006, 2010 VMware Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distr... | glyn/Gemini-Blueprint | integration-tests/bundles/error.bundle/src/main/java/org/springframework/osgi/iandt/error/TestService.java | Java | apache-2.0 | 971 |
/**
* Copyright (c) 2014-2015, Data Geekery GmbH, contact@datageekery.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | webfd/jOOL | src/main/java/org/jooq/lambda/fi/util/function/CheckedObjIntConsumer.java | Java | apache-2.0 | 1,105 |
// Copyright 2005 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... | wiltonlazary/arangodb | 3rdParty/s2geometry/dfefe0c/src/s2/s2region_coverer.h | C | apache-2.0 | 15,112 |
@import url("//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700");
/*!
* Bootstrap v3.0.0
*
* Copyright 2013 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @mdo and @fat.
*/
/*! no... | samukasmk/django_dashboard_example | smkcpanel_django/smkcpanel/static/bootstrap/extra/bootswatch/spacelab/css/bootstrap.css | CSS | apache-2.0 | 131,169 |
/*
* 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 ... | hbeatty/incubator-trafficcontrol | traffic_portal/app/src/modules/private/tenants/deliveryServices/index.js | JavaScript | apache-2.0 | 2,124 |
package hex.kmeans;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import water.TestUtil;
import water.fvec.Frame;
import water.util.Log;
import java.util.Random;
public class KMeansRandomTest extends TestUtil {
@BeforeClass()
public static void setup() { stall_till_cloudsize(1); }... | weaver-viii/h2o-3 | h2o-algos/src/test/java/hex/kmeans/KMeansRandomTest.java | Java | apache-2.0 | 3,514 |
/**
* 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 ... | kishorvpatil/incubator-storm | storm-client/src/jvm/org/apache/storm/trident/topology/MasterBatchCoordinator.java | Java | apache-2.0 | 12,435 |
/*
* Copyright 2000-2013 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... | Lekanich/intellij-community | plugins/junit_rt/src/com/intellij/rt/execution/junit/ProcessBuilder.java | Java | apache-2.0 | 3,422 |
package org.xtuml.bp.core.test;
import org.xtuml.bp.test.GlobalsTestEnabler;
public class SystemLevelGlobalsTest extends GlobalsTestEnabler {
public SystemLevelGlobalsTest(){
super(null, null);
}
}
| jason-rhodes/bridgepoint | src/org.xtuml.bp.core.test/src/org/xtuml/bp/core/test/SystemLevelGlobalsTest.java | Java | apache-2.0 | 215 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.