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
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
aperezdc/matrix-react-sdk
src/components/views/login/CaptchaForm.js
JavaScript
apache-2.0
4,640
filter.js ========= A very basic jQuery filter plugin. Show/hide elements based on selected tags. ### Usage ```javascript $(element).filter({ nav: '[data-filter]' // selector for filter nav (optional) }); ``` Set the tag to filter with `data-filter`, eg: ```html <a data-filter="tag">Tag</a> ``` Filterable elemen...
tommaitland/filter
README.md
Markdown
apache-2.0
810
// Copyright 2017 The CrunchyCrypt 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 o...
google/crunchy
crunchy/internal/keys/macing_key.cc
C++
apache-2.0
2,356
""" Copyright 2013 Shine Wang 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 distrib...
shinexwang/Classy
Main/webParser.py
Python
apache-2.0
10,545
#include "common/redis/codec_impl.h" #include <cstdint> #include <string> #include <vector> #include "common/common/assert.h" #include "common/common/fmt.h" #include "common/common/utility.h" namespace Envoy { namespace Redis { std::string RespValue::toString() const { switch (type_) { case RespType::Array: { ...
craffert0/envoy
source/common/redis/codec_impl.cc
C++
apache-2.0
11,688
/** * Automatically generated file. DO NOT MODIFY */ package wealk.android.jewels.test; public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String APPLICATION_ID = "wealk.android.jewels.test"; public static final String BUILD_TYPE = "debug"; ...
xfmysql/jewels
app/build/generated/source/buildConfig/androidTest/debug/wealk/android/jewels/test/BuildConfig.java
Java
apache-2.0
455
package org.jetbrains.plugins.scala package annotator package template import org.jetbrains.plugins.scala.annotator.element.ScTemplateDefinitionAnnotator import org.jetbrains.plugins.scala.lang.psi.api.toplevel.typedef.ScTemplateDefinition /** * Pavel Fatin */ class NeedsToBeAbstractTest extends AnnotatorTestBase...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/annotator/template/NeedsToBeAbstractTest.scala
Scala
apache-2.0
2,413
<?php $strgroup = array( // exclude i, l, I, 1, 0, O "sa" => array( "alias" => "Small Alphabet", "weight" => 8, "data" => "abcdefghijkmnopqrstuvwxyz"), "la" => array( "alias" => "Large Alphabet", "weight" => 8, "data" => "ABCDEFGHJKLMNPQRSTUVWXYZ"), "num" => array( "alias" => "Number", ...
msakamoto-sf/webtoys
phptoys/password.php
PHP
apache-2.0
2,238
package org.lapanen.stealth.si.process.core; import com.google.common.base.Optional; public class ProcessRunResultImpl implements ProcessRunResult { private final Optional<Integer> exitCode; private final boolean completed; private final byte[] output; private final byte[] error; private final Th...
lapanen/stealth
stealth-si-process/src/main/java/org/lapanen/stealth/si/process/core/ProcessRunResultImpl.java
Java
apache-2.0
2,055
package add_docker_metadata import ( "fmt" "strings" "github.com/elastic/beats/libbeat/beat" "github.com/elastic/beats/libbeat/common" "github.com/elastic/beats/libbeat/common/cfgwarn" "github.com/elastic/beats/libbeat/logp" "github.com/elastic/beats/libbeat/processors" "github.com/elastic/beats/libbeat/proce...
roncohen/apm-server
vendor/github.com/elastic/beats/libbeat/processors/add_docker_metadata/add_docker_metadata.go
GO
apache-2.0
3,233
# Copyright 2012 the V8 project authors. 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 conditi...
nextsmsversion/macchina.io
platform/JS/V8/v8-3.28.4/PRESUBMIT.py
Python
apache-2.0
7,096
# R-Line 一汽大众HTML5推广
Kevin-1993/R-Line
README.md
Markdown
apache-2.0
33
/* * 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 ...
tophua/spark1.52
core/src/main/scala/org/apache/spark/shuffle/ShuffleHandle.scala
Scala
apache-2.0
1,195
import './scss/root-theme.scss';
mschile/terra-core
packages/terra-legacy-theme/src/index.js
JavaScript
apache-2.0
33
# 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 u...
ptrendx/mxnet
ci/windows/test_py3_gpu.ps1
PowerShell
apache-2.0
2,080
package com.pungwe.cms.core.theme.services; import com.pungwe.cms.core.theme.ThemeConfig; import java.net.URL; import java.util.Collection; import java.util.Set; /** * Created by ian on 29/01/2016. */ public interface ThemeConfigService<E extends ThemeConfig> { /** * Registers a theme into the theme registry ...
thunderbird/pungwecms
core/src/main/java/com/pungwe/cms/core/theme/services/ThemeConfigService.java
Java
apache-2.0
2,111
package com.huanggang.dragphotoview; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import uk.co.senab.photoview.PhotoView; import uk.co.senab.photoview.PhotoViewAttacher; /** * 单指拖动PhotoView * * @author HuanggGang */ public class DragPhotoView extends PhotoVie...
HuangGangHust/DragPhotoView
dragphotoview-library/src/main/java/com/huanggang/dragphotoview/DragPhotoView.java
Java
apache-2.0
1,539
package com.hexonxons.leprawatch.util; import android.content.Context; import android.graphics.Paint; import android.graphics.Typeface; import android.support.v4.util.LruCache; import android.text.TextPaint; import android.text.style.MetricAffectingSpan; /** * Style a {@link Spannable} with a custom {@link Typeface}...
hexonxons/LepraWatch
LepraWatch/src/com/hexonxons/leprawatch/util/TypefaceSpan.java
Java
apache-2.0
1,623
// // Copyright 2011 Kuali Foundation, Inc. Licensed under the // Educational Community License, Version 2.0 (the "License"); you may // not use this file except in compliance with the License. You may // obtain a copy of the License at // // http://www.opensource.org/licenses/ecl2.php // // Unless required ...
Ariah-Group/Continuity
src/main/java/org/kuali/continuity/plan/domain/CriticalFunction.java
Java
apache-2.0
8,154
<div class="row"> {% for speaker in site.speakers %} {% if speaker.narrator %} <div class="col-sm-6"> <div class="narrator"> <div class="row"> <div class="col-sm-3"> <img src='/assets/img/{{ speaker.image }}' width="100%"/> </div> <div class="col-sm-9"> <div class="narrator-name">{{ speak...
hackference/hackference-2016
_includes/narrators.html
HTML
apache-2.0
878
package edu.umt.csci427.canary; /** * for getting data from abstract factory */ public class DeviceMonitor { public static final String PulseOximeter = "PULSE_OX"; }
csci427/canary
app/src/main/java/edu/umt/csci427/canary/DeviceMonitor.java
Java
apache-2.0
174
/* * Copyright 2021 HM Revenue & Customs * * 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...
hmrc/ct-calculations
src/test/scala/uk/gov/hmrc/ct/ct600j/v3/TaxAvoidanceBoxRetrieverForTest.scala
Scala
apache-2.0
1,073
/** * 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...
RaghavendraSingh/lens
lens-ui/app/adapters/AdhocQueryAdapter.js
JavaScript
apache-2.0
7,880
// Copyright 2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
firebase/firebase-cpp-sdk
database/src/android/disconnection_android.cc
C++
apache-2.0
10,329
package cdn //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...
xiaozhu36/terraform-provider
vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_file_cache_expired_config.go
GO
apache-2.0
4,375
/* * 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
platform/core-api/src/com/intellij/lang/injection/InjectedLanguageManager.java
Java
apache-2.0
5,097
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
google-research/language
language/xsp/data_preprocessing/convert_to_tfrecords.py
Python
apache-2.0
17,885
<?php /** * Created by JetBrains PhpStorm. * User: Rafael * Date: 06/10/13 * Time: 17:39 * To change this template use File | Settings | File Templates. */ class LocationTableSeeder extends Seeder { public function run() { DB::table('location')->delete(); Location::create(array(...
rafaelmaza/blood-demo
api/app/database/seeds/LocationTableSeeder.php
PHP
apache-2.0
666
package com.mesosphere.sdk.scheduler.multi; import org.apache.mesos.Protos; import org.apache.mesos.Protos.Offer; import org.apache.mesos.Protos.TaskState; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.mockito.invocat...
mesosphere/dcos-commons
sdk/scheduler/src/test/java/com/mesosphere/sdk/scheduler/multi/MultiServiceEventClientTest.java
Java
apache-2.0
31,298
// This file is part of BenchExec, a framework for reliable benchmarking: // https://github.com/sosy-lab/benchexec // // SPDX-FileCopyrightText: 2019-2020 Dirk Beyer <https://www.sosy-lab.org> // // SPDX-License-Identifier: Apache-2.0 const path = require("path"); module.exports = { webpack: function override(confi...
dbeyer/benchexec
benchexec/tablegenerator/react-table/config-overrides.js
JavaScript
apache-2.0
1,815
<!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_75) on Sat May 16 22:22:32 CEST 2015 --> <title>NodeTool.UpgradeSSTable</title> <meta name="date" content="2015-05-16"> <link rel="styl...
sayanh/ViewMaintenanceCassandra
doc/org/apache/cassandra/tools/NodeTool.UpgradeSSTable.html
HTML
apache-2.0
10,847
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
polyaxon/polyaxon
core/polyaxon/proxies/schemas/streams/base.py
Python
apache-2.0
1,940
<!-- BEGIN BREADCRUMBS --> <div class="row breadcrumbs margin-bottom-40"> <div class="container"> <div class="col-md-4 col-sm-4"> <h1><?php echo ucwords($title); ?></h1> </div> <div class="col-md-8 col-sm-8"> <ul class="pull-right breadcrumb"> <!--<li><a href="index.html">Home</a></li> <li><a hr...
kobe8bird/gan
application/views/breadcrumbs.php
PHP
apache-2.0
682
# Muraltia marlothii Chod SPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Fabales/Polygalaceae/Muraltia/Muraltia marlothii/README.md
Markdown
apache-2.0
173
# Crepis modocensis Greene SPECIES #### Status ACCEPTED #### According to Integrated Taxonomic Information System #### Published in Erythea 3:48. 1895 #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Crepis/Crepis modocensis/README.md
Markdown
apache-2.0
196
# Strychnos spireana Dop SPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Gentianales/Loganiaceae/Strychnos/Strychnos spireana/README.md
Markdown
apache-2.0
172
# Hieracium chondrillifolium subsp. chiarugianum Chiarugi SUBSPECIES #### Status ACCEPTED #### According to Euro+Med Plantbase #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Hieracium/Hieracium chondrillifolium/Hieracium chondrillifolium chiarugianum/README.md
Markdown
apache-2.0
195
# Acacia polyacantha subsp. polyacantha Willd. SUBSPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Fabales/Fabaceae/Acacia/Acacia polyacantha/Acacia polyacantha polyacantha/README.md
Markdown
apache-2.0
205
# Agaricus macmurphyi Murrill SPECIES #### Status ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Agaricus macmurphyi Murrill ### Remarks null
mdoering/backbone
life/Fungi/Basidiomycota/Agaricomycetes/Agaricales/Agaricaceae/Agaricus/Agaricus macmurphyi/README.md
Markdown
apache-2.0
183
# Tarenna cameronii (C.T.White) S.J.Ali & Robbr. SPECIES #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Gentianales/Rubiaceae/Triflorensia/Triflorensia cameronii/ Syn. Tarenna cameronii/README.md
Markdown
apache-2.0
203
# Vitis labrusca f. alba (Prince) Fernald FORM #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Vitales/Vitaceae/Vitis/Vitis labrusca/Vitis labrusca alba/README.md
Markdown
apache-2.0
186
# Asterotrichum griseum Bonord. SPECIES #### Status ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Asterotrichum griseum Bonord. ### Remarks null
mdoering/backbone
life/Fungi/Basidiomycota/Agaricomycetes/Agaricales/Lyophyllaceae/Asterotrichum/Asterotrichum griseum/README.md
Markdown
apache-2.0
187
/* * Copyright (C) 2015 Karumi. * * 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 w...
longtaoge/Dexter
dexter/src/main/java/com/karumi/dexter/Dexter.java
Java
apache-2.0
7,529
using System; namespace InsertIt.Exceptions { public abstract class ClassException : Exception { public readonly Type Type; protected ClassException(Type type) { Type = type; } } }
MNie/InsertIt
src/InsertIt/Exceptions/ClassException.cs
C#
apache-2.0
242
<!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_65) on Wed Sep 03 20:05:58 PDT 2014 --> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>Uses of Class org.a...
lshain/hbase-0.98.6-hadoop2
docs/devapidocs/org/apache/hadoop/hbase/protobuf/generated/class-use/FilterProtos.ValueFilter.Builder.html
HTML
apache-2.0
16,490
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FhirProfilePublisher.Engine { public class OutputOptions { public string HeaderText { get; set; } public string PageTitleSuffix { get; set; } public string Foot...
endeavourhealth/FHIR-Tools
FhirProfilePublisher/FhirProfilePublisher.Engine/Model/OutputConfiguration.cs
C#
apache-2.0
654
<div align="center"> <a href="https://github.com/webpack/webpack"> <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg"> </a> </div> [![npm][npm]][npm-url] [![node][node]][node-url] [![deps][deps]][deps-url] [![tests][tests]][tests-url] [![cover][cover]][cover-url] [![chat][cha...
cloudfoundry-community/asp.net5-buildpack
fixtures/node_apps/angular_dotnet/ClientApp/node_modules/terser-webpack-plugin/README.md
Markdown
apache-2.0
16,763
/* * $Id$ * This file is a part of the Arakhne Foundation Classes, http://www.arakhne.org/afc * * Copyright (c) 2000-2012 Stephane GALLAND. * Copyright (c) 2005-10, Multiagent Team, Laboratoire Systemes et Transports, * Universite de Technologie de Belfort-Montbeliard. * Copyright (c) 2013...
gallandarakhneorg/afc
core/vmutils/src/test/java/org/arakhne/afc/vmutil/json/JsonBufferTest.java
Java
apache-2.0
6,089
/** 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"...
weexext/ucar-weex-core
tools/weex-tools/lib/src/platforms/platforms.js
JavaScript
apache-2.0
5,032
# Syzygium glenum Craven SPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Myrtales/Myrtaceae/Syzygium/Syzygium glenum/README.md
Markdown
apache-2.0
180
# Hypocrea fomitopsis P.G. Liu & Yoshim. Doi SPECIES #### Status ACCEPTED #### According to Index Fungorum #### Published in in Liu, Doi, Wang & Wang, Mycosystema 19(3): 324 (2000) #### Original name Hypocrea fomitopsis P.G. Liu & Yoshim. Doi ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Sordariomycetes/Hypocreales/Hypocreaceae/Hypocrea/Hypocrea fomitopsis/README.md
Markdown
apache-2.0
264
# Aniptodera longispora K.D. Hyde, 1990 SPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name Aniptodera longispora K.D. Hyde, 1990 ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Sordariomycetes/Microascales/Halosphaeriaceae/Aniptodera/Aniptodera longispora/README.md
Markdown
apache-2.0
228
# Leptorhaphis atomaria (Ach.) Szatala SPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name Lichen atomarius Ach. ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Dothideomycetes/Pleosporales/Naetrocymbaceae/Leptorhaphis/Leptorhaphis atomaria/README.md
Markdown
apache-2.0
211
# Octopleura epibaterium SPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Myrtales/Melastomataceae/Octopleura/Octopleura epibaterium/README.md
Markdown
apache-2.0
172
<?php require '../App.php'; App::Header(['check_authin'=>App::USERAUTH_ISLOGGED, 'page_title'=>'Messages']); ?> <div class="navi-list"> <div class="container"> <div class="col-md-8 link"> <ul> <li class="on"><a href="/shopifly"><span class="glyphicon glyphicon-th" aria-hidden="true"></span> DASHBOARD</a></li...
icefangz/Shopifly
messages/index.php
PHP
apache-2.0
1,375
package eu.marcocattaneo.rememberhere.presentation.ui; import android.annotation.TargetApi; import android.content.Context; import android.net.Uri; import android.os.Build; import android.util.AttributeSet; import android.view.ViewTreeObserver; import android.widget.ImageView; import com.squareup.picasso.Picasso; pu...
mcatta/RememberHere
app/src/main/java/eu/marcocattaneo/rememberhere/presentation/ui/CoverImageView.java
Java
apache-2.0
1,708
using NUnit.Framework; using System; namespace Reactor.Core.Test { [TestFixture] [Timeout(30000)] public class TimeoutTest { [Test] public void Timeout_Normal() { var first = new DirectProcessor<int>(); var item = new DirectProcessor<int>(); ...
reactor/reactor-core-dotnet
Reactor.Core.Test/TimeoutTest.cs
C#
apache-2.0
4,330
'use strict'; describe('Main view End-2-End', function() { var brickTable beforeEach(function() { browser.get("http://cfalguiere.github.io/Presentations/2014/DemoBrickInventory/"); brickTable = element.all(by.repeater('brick in bricksList')) }) describe('When Main view appears', function(...
cfalguiere/Protractor-Firefox-Headless-Docker
testproject/test/e2e/e2e-test.js
JavaScript
apache-2.0
445
/* * Copyright 2009 Red Hat, Inc. * * Red Hat licenses this file to you under the Apache License, version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
aperepel/netty
src/main/java/org/jboss/netty/handler/codec/http/AbstractHttpData.java
Java
apache-2.0
3,014
## Android WebView文件上传 本工程为大家演示在H5中如何上传文件,同时也提供了服务端代码,有兴趣的读者可以部署起来,测试文件上传功能。 如果只对客户端部分感兴趣,只需要关注WebView文件选择部分即可 [服务端代码下载地址](https://github.com/chiclaim/android_mvvm_server), 客户端可以用如下url来上传文件 http://`your ip address`:`port`/AndroidMvvmServer/upload,如 http://192.168.1.200:8080/AndroidMvvmServer/upload ### 经过测试的机型 | ...
chiclaim/android-sample
cross-platform-h5/android-h5-file-upload/README.md
Markdown
apache-2.0
2,743
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
GoogleCloudPlatform/google-cloud-dotnet-powerpack
Google.Cloud.AspNetCore/Google.Cloud.AspNetCore.DataProtection.Storage/RetryHandler.cs
C#
apache-2.0
2,901
# Copyright (c) 2012 OpenStack Foundation. # 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...
igor-toga/local-snat
neutron/api/v2/base.py
Python
apache-2.0
33,385
/******************************************************************************* * Copyright 2014 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
nasa/OpenSPIFe
gov.nasa.ensemble.core.plan.resources/src/gov/nasa/ensemble/core/plan/resources/profile/operations/AddProfileDataPointOperation.java
Java
apache-2.0
2,392
<svg class="fingerboard"></svg>
wildbits/fingerboard
www/templates/FingerBoard.html
HTML
apache-2.0
32
/* * 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 ...
bsmedberg/pig
test/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/TestInputSizeReducerEstimator.java
Java
apache-2.0
2,904
// // PayTool.h // DingYouMing // // Created by ceyu on 2017/3/8. // Copyright © 2017年 吴宏佳. All rights reserved. // #import <UIKit/UIKit.h> #import "PayParamObj.h" @protocol PayToolDelegate <NSObject> @optional -(void)payResultWithErrorCode:(NSInteger)errorCode withErrorInfo:(NSString *)errorInfo withObject:(id)o...
Sherlock-HJ/HJ_UI_Tools
HJ_UI_Tools/HJ_UI_Tools/Myself/Pay/Tool/PayTool.h
C
apache-2.0
790
require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module SimpleCrud1 class Application < Rails::Application # Settings in config/environments/* take p...
rodrigovilar/Ruby-SimpleCrud1
config/application.rb
Ruby
apache-2.0
1,118
import logging import os import json import shutil import sys import datetime import csv, math from tld import get_tld from collections import OrderedDict from utils import Util from components.data.data import Data from components.iana.iana_transform import IanaTransform from components.nc.network_context import Net...
kpeiruza/incubator-spot
spot-oa/oa/dns/dns_oa.py
Python
apache-2.0
17,663
<!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/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
svn2github/ImageMagick
www/api/MagickCore/struct__ContributionInfo.html
HTML
apache-2.0
4,772
from migrate.versioning import api from config import SQLALCHEMY_DATABASE_URI from config import SQLALCHEMY_MIGRATE_REPO from app import db import os.path db.create_all() if not os.path.exists(SQLALCHEMY_MIGRATE_REPO): api.create(SQLALCHEMY_MIGRATE_REPO, 'database repository') api.version_control(SQLALCHEMY_DATABASE...
edfungus/Music-Server
app/db_create.py
Python
apache-2.0
466
/* * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib 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 ap...
stdlib-js/stdlib
lib/node_modules/@stdlib/assert/is-same-value/docs/types/index.d.ts
TypeScript
apache-2.0
1,562
/* * 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 distributed under t...
assertj/assertj-vavr
src/main/java/org/assertj/vavr/api/TryShouldContain.java
Java
apache-2.0
3,137
package actors.supervised import akka.actor.{ActorRef, ActorSystem, Props} import akka.pattern.BackoffOpts import scala.concurrent.duration.FiniteDuration case class RestartOnStop(minBackoff: FiniteDuration, maxBackoff: FiniteDuration) { def actorOf(props: Props, name: String)(implicit system: ActorSystem): Actor...
UKHomeOffice/drt-scalajs-spa-exploration
server/src/main/scala/actors/supervised/RestartOnStop.scala
Scala
apache-2.0
610
# Solanum tuberosum var. helenanum Alef. VARIETY #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Solanales/Solanaceae/Solanum/Solanum tuberosum/ Syn. Solanum tuberosum helenanum/README.md
Markdown
apache-2.0
195
// Generated from /POI/java/org/apache/poi/hssf/record/chart/ChartTitleFormatRecord.java #include <org/apache/poi/hssf/record/chart/ChartTitleFormatRecord.hpp> #include <java/lang/ArrayStoreException.hpp> #include <java/lang/NullPointerException.hpp> #include <java/lang/String.hpp> #include <java/lang/StringBuffer.hpp...
pebble2015/cpoi
src/org/apache/poi/hssf/record/chart/ChartTitleFormatRecord.cpp
C++
apache-2.0
4,488
package com.imethod.module.client.rest; import com.imethod.core.json.JSONObj; import com.imethod.core.util.StringTools; import org.springframework.web.client.HttpClientErrorException; /** * time : 15/10/26. * auth : * desc : * tips : * 1. */ public class ApiException extends RuntimeException { private Rest...
bqxu/JMethod
module/client/src/main/java/com/imethod/module/client/rest/ApiException.java
Java
apache-2.0
1,402
Dragonputer =========== Character manager and utilities for Dungeons and Dragons.
glompix/Dragonputer
README.md
Markdown
apache-2.0
83
module.exports = (req, res) => res.json(req.query)
zeit/now-cli
packages/now-cli/test/dev/fixtures/test-zero-config-rewrite/api/echo/[id].js
JavaScript
apache-2.0
51
<?php // Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.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://w...
LindaLawton/Google-APIs-PHP-Samples
Samples/Cloud User Accounts API/vm_beta/oauth2callback.php
PHP
apache-2.0
3,126
package br.com.safeguard.interfaces; import br.com.caelum.stella.validation.Validator; /** * Interface que deve ser implementada por um (Enum) de validadores (ParametroTipo) * para ser usado como um (Enum) que retorna instacias da classe (br.com.caelum.stella.validation.Validator) * * * @see * <ul> * <li>E...
gilmardeveloper/java-validator-safeguard
src/main/java/br/com/safeguard/interfaces/BaseParam.java
Java
apache-2.0
887
## Configuration overriding Some of the configuration properties in `KAP_HOME/conf/` could be overridden through KAP GUI. Configuration overriding has two scopes: project level and cube level. The priority order can be stated as: cube level configurations > project level configurations > configuration files. ### Pr...
tttMelody/KAP-manual
en/config/config_override.en.md
Markdown
apache-2.0
3,091
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
JoelMarcey/buck
src/com/facebook/buck/android/toolchain/AndroidSdkLocation.java
Java
apache-2.0
1,377
/* * 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 ...
iyounus/incubator-systemml
src/main/java/org/apache/sysml/runtime/instructions/cp/ParameterizedBuiltinCPInstruction.java
Java
apache-2.0
14,376
=begin SimpleCSV Copyright 2014 Austen Higgins-Cassidy 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...
Plasmarobo/simpleoutput
lib/simplecsv.rb
Ruby
apache-2.0
2,281
#!/bin/bash set -eux set -o pipefail source $(dirname $0)/test_functions.bash test_formats="tar raw qcow2" if [ -z "$(which qemu-img)" ]; then echo "Warning: No qemu-img binary found, cowardly refusing to run tests." exit 0 fi for format in '' $test_formats; do build_test_image $format echo "Test pa...
rdo-management/diskimage-builder
tests/image_output_formats.bash
Shell
apache-2.0
504
package net.paslavsky.msm.client.activity; import net.paslavsky.msm.client.domain.AudioFile; import java.util.Collection; /** * Music Sync Manager play list * * @author Andrey Paslavsky * @version 1.0 */ public interface Playlist { AudioFile getInfo(String id); Collection<AudioFile> getPlaylist(); ...
paslavsky/music-sync-manager
msm-web-ui/src/main/java/net/paslavsky/msm/client/activity/Playlist.java
Java
apache-2.0
403
package com.mars.test.dropwizard; import com.codahale.metrics.Counter; import com.codahale.metrics.Gauge; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.Timer; import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; public class QueueManager { private final Queue queue...
marsyang1/test-java
src/test/java/com/mars/test/dropwizard/QueueManager.java
Java
apache-2.0
1,357
/* * This project is licensed under the Apache License, Version 2.0 * if the following condition is met: * (otherwise it cannot be used by anyone but the author, Kevin, only) * * The original KommonLee project is owned by Lee, Seong Hyun (Kevin). * * -What does it mean to you? * Nothing, unless you want to take...
Kevin-Lee/kommonlee-core
src/main/java/org/elixirian/kommonlee/util/package-info.java
Java
apache-2.0
1,350
package ru.job4j.loop; /** *Класс для построения шахматной доски. *@author ifedorenko *@since 14.08.2017 *@version 1 */ public class Board { /** * Основной метод в программе. * * @param width количество столбцов в таблице * @param height количество строк в таблице * @return result возвращает необходимую таб...
fr3anthe/ifedorenko
1.1-Base/src/main/java/ru/job4j/loop/Board.java
Java
apache-2.0
865
/** * Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use...
josdem/client
client-view/src/main/java/com/all/client/view/music/DescriptionTableStyle.java
Java
apache-2.0
15,004
'use strict'; exports.__esModule = true; exports.default = { el: { colorpicker: { confirm: '確認', clear: '清空' }, datepicker: { now: '現在', today: '今天', cancel: '取消', clear: '清空', confirm: '確認', selectDate: '選擇日期', selectTime: '選擇時間', startDate: '開...
zengguoyu/sample
sample-site/src/main/webapp/assets/static/element-ui/lib/locale/lang/zh-TW.js
JavaScript
apache-2.0
2,528
<?php if($type == NUMBER_TYPE_FOUR): foreach($list as $item): $price = isset($item['confirm_price']) && $item['confirm_price'] ? $item['confirm_price'] : $item['buffer_price']; ?> <li id="number_<?php echo $item['number']?>"> <p class="relative"> <span class="jpnumb"><em>靓</em><?ph...
klklmoon/pipishow
applications/show/views/shop/numberTemplate.php
PHP
apache-2.0
1,547
body{ } .demo-container{ padding: 0px 0px; } .tab-pane{ padding: 25px 0px; background-color: transparent; } .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover{ background-color: #e4e5e6; font-weight: bold; }
TempSquad/TEMP2016-site-client
demo/demo.css
CSS
apache-2.0
265
(function () { 'use strict'; angular .module('hz.dashboard', [ 'hz.dashboard.launch-instance' ]) .config(config); config.$inject = ['$provide', '$windowProvider']; function config($provide, $windowProvider) { var path = $windowProvider.$get().STATIC_URL + 'dashboard/'; $provide.cons...
xinwu/horizon
openstack_dashboard/static/dashboard/dashboard.module.js
JavaScript
apache-2.0
364
package com.fengyunweather.app.util; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; /** * Created by Kevin on 2015/10/26. */ public class HttpUtil { public static void sendHttpRequest(final String address,final...
Kevindroid/fengyunweather
app/src/main/java/com/fengyunweather/app/util/HttpUtil.java
Java
apache-2.0
1,742
/* * Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
jldodds/s2n
tls/s2n_client_cert_verify.c
C
apache-2.0
3,766
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-pubsublite
samples/generated_samples/pubsublite_v1_generated_topic_stats_service_compute_time_cursor_async.py
Python
apache-2.0
1,540
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
aws/aws-sdk-java
aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/WithdrawByoipCidrResult.java
Java
apache-2.0
3,780
/* * Copyright 2009 Phil Burk, Mobileer 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 o...
philburk/jsyn
src/main/java/com/jsyn/unitgen/VariableRateMonoReader.java
Java
apache-2.0
3,696
import unittest from biothings_explorer.registry import Registry from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher from .utils import get_apis reg = Registry() class TestSingleHopQuery(unittest.TestCase): def test_disease2protein(self): """Test gene-protein""" seqd = ...
biothings/biothings_explorer
tests/test_apis/test_corddisease.py
Python
apache-2.0
4,836