repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
misterfong/liquidweb-twilio
index.js
1166
var express = require('express'), bodyParser = require('body-parser'), stormAPI = require('stormondemand'), client = new stormAPI({ username: process.env.USER, password: process.env.PASSWORD }); var app = express(); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({extended: true})); app.set('port', (pr...
apache-2.0
mycontroller-org/mycontroller
modules/core/src/main/java/org/mycontroller/standalone/backup/mixins/SerializerSimpleUser.java
1705
/* * Copyright 2015-2019 Jeeva Kandasamy (jkandasa@gmail.com) * and other contributors as indicated by the @author tags. * * 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://...
apache-2.0
majetideepak/arrow
cpp/src/arrow/util/parsing-util-test.cc
12885
// 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...
apache-2.0
AloneStone/ruby_twitter
db/migrate/20170330062416_create_tweet.rb
200
class CreateTweet < ActiveRecord::Migration[5.0] def change create_table :tweets do |t| t.string :content t.references :user, foreign_key: true t.timestamps end end end
apache-2.0
GSTU/oop-examples
GamesLabs/2015/IT-22/Jigsaw1/GameSettings.cs
1091
using System; using System.Collections.Generic; using System.Drawing; using System.Text; namespace MinThantSin.OpenSourceGames { public static class GameSettings { public static readonly string BACKGROUND_PICTURE_NAME = "background_tile.bmp"; public static readonly int MIN_PIECE_WIDTH = 50; ...
apache-2.0
cinderella/incubator-cloudstack
awsapi/src/com/amazon/ec2/CreateVpcResponseType.java
25191
// 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...
apache-2.0
446541492/solo
src/main/java/org/b3log/solo/repository/impl/TagArticleRepositoryImpl.java
2698
/* * Copyright (c) 2010-2016, b3log.org & hacpai.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 * * Unless required b...
apache-2.0
ampproject/validator-java
src/main/java/dev/amp/validator/selector/Selector.java
1540
/* * * ==================================================================== * 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 * * Unles...
apache-2.0
ConsecroMUD/ConsecroMUD
com/suscipio_solutions/consecro_mud/Abilities/Properties/Prop_ItemTransporter.java
9257
package com.suscipio_solutions.consecro_mud.Abilities.Properties; import java.util.Enumeration; import java.util.Hashtable; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Vector; import com.suscipio_solutions.consecro_mud.Abilities.interfaces.Ability; import com....
apache-2.0
danielpalme/IocPerformance
IocPerformance/Adapters/ContainerAdapterBase.cs
3267
using System; using System.Linq; using System.Xml.Linq; using IocPerformance.Classes.AspNet; using Microsoft.Extensions.DependencyInjection; namespace IocPerformance.Adapters { public abstract class ContainerAdapterBase : IContainerAdapter { public virtual string Version { ...
apache-2.0
Stormancer/stormancer-management-for-net
Stormancer.Management.Cmd/Commands/Emulator/RegisterAppCommand.cs
1406
using Newtonsoft.Json; using Stormancer.Management.Cmd.Commands.Accounts; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Stormancer.Management.Cmd.Emulator { class RegisterAppCommand : Command { ...
apache-2.0
googlesamples/arcore-illusive-images
Assets/GoogleARCore/SDK/Scripts/DetectedPlane.cs
5238
//----------------------------------------------------------------------- // <copyright file="DetectedPlane.cs" company="Google"> // // Copyright 2017 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...
apache-2.0
huashengzzz/SmartChart
app/src/main/java/com/smart/smartchart/widget/weatherview/PicUtil.java
2182
package com.smart.smartchart.widget.weatherview; import com.smart.smartchart.R; public class PicUtil { public static int getDayWeatherPic(String weatherName) { switch (weatherName) { case "晴": return R.drawable.icon_cloudy; case "多云": return R.draw...
apache-2.0
ZA-PT/Obsidian.Authentication.WordPress
src/obsidian.php
1834
<?php /* Plugin Name: Obsidian Authentication Plugin Plugin URI: https://github.com/ZA-PT/Obsidian.Authentication.WordPress Description: A WordPress plugin provided a convenient way to access Obsidian-based Authentication Server. Version: 0.9.9 Author: ZA-PT Author URI: http://www.za-pt.org License: Apac...
apache-2.0
reminisceme/deployment
scala-base/bootstrap/src/main/scala/Bootstrap.scala
69
object Bootstrap extends App { println("SBT is now bootstraped!") }
apache-2.0
agwlvssainokuni/springapp
admin/src/main/java/cherry/admin/secure/asyncproc/AsyncProcForm.java
969
/* * Copyright 2015,2014 agwlvssainokuni * * 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...
apache-2.0
spiegela/ecs-cf-service-broker
src/test/java/com/emc/ecs/management/sdk/BaseUrlActionTest.java
1836
package com.emc.ecs.management.sdk; import com.emc.ecs.cloudfoundry.broker.EcsManagementClientException; import com.emc.ecs.common.EcsActionTest; import com.emc.ecs.management.sdk.model.BaseUrl; import com.emc.ecs.management.sdk.model.BaseUrlInfo; import org.junit.After; import org.junit.Before; import org.junit.Test;...
apache-2.0
prometheus/promdash
app/assets/javascripts/angular/services/rickshaw_data_transformer.js
1347
angular.module("Prometheus.services").factory('RickshawDataTransformer', [function() { function parseValue(value) { if (value == "NaN" || value == "Inf" || value == "-Inf") { // Show special float values as gaps, since there's no better way to // display them. return null; } else { ret...
apache-2.0
agorava/agorava-utils
solder-generics/api/src/main/java/org/agorava/utils/solder/reflection/AnnotationInspector.java
13458
/* * Copyright 2012 Agorava * * 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 wri...
apache-2.0
mulesoft-consulting/sumtotal-connector
lib/apache-cxf-2.7.5/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/UTPasswordCallback.java
2225
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
apache-2.0
Karasiq/shadowcloud
model/src/main/scala/com/karasiq/shadowcloud/model/utils/RegionHealth.scala
1067
package com.karasiq.shadowcloud.model.utils import com.karasiq.shadowcloud.model.StorageId @SerialVersionUID(0L) final case class RegionHealth(usedSpace: Long, storages: Map[StorageId, StorageHealth]) extends HealthStatus { def totalSpace: Long = createSum(_.totalSpace) // def usedSpace: Long = createSum(_.usedSp...
apache-2.0
mjm-cycronix/cloudturbine
CT2DB/src/cycronix/CT2DB/DBauthenticate.java
3093
package cycronix.CT2DB; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.util.Log; import com.dropbox.client2.DropboxAPI; import com.dropbox.client2.android.AndroidAuthSession; import com.dropbox.client2.session.AppKeyPair; publ...
apache-2.0
DaKaZ/useek_mobile_poc
app/controllers/home.js
544
function openGamesWindow(e){ // alert('TODO: Open Games Window'); Alloy.createController("videos").getView().open(); } function openAccountWindow(e){ alert('TODO: Open Account Window'); } function openFeaturedGame(e){ alert('TODO: Open Featured Game'); } function openSignIn(e){ alert('TODO: Open Sign In Windo...
apache-2.0
ilya-klyuchnikov/buck
src-gen/com/facebook/buck/artifact_cache/thrift/BuckCacheDeleteResponse.java
12498
/** * Autogenerated by Thrift Compiler (0.10.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.facebook.buck.artifact_cache.thrift; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) @javax.annotation.Generated(value = "Autogenerated by Thri...
apache-2.0
jon-w/chef-repo
cookbooks/ldapclient/metadata.rb
295
name 'ldapclient' maintainer 'Daisy Hill Cat Farm' maintainer_email 'jonwil194@gmail.com' license 'All rights reserved' description 'Installs/Configures ldapclient' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '0.1.0'
apache-2.0
lwch/2048
html/api/mongo.php
523
<?php function mongo() { static $m = null; if ($m === null) $m = new MongoClient(); return $m; } function uuid($len) { $res = ''; for ($i = 0; $i < $len; ++$i) { $type = mt_rand(0, 2); switch ($type) { case 0: $res .= chr(0x30 + mt_rand(0, 9)); break;...
apache-2.0
jmderuty/archeagecraft
ArcheageCraft/ArcheageCraft/Migrations/201411152255419_prices.cs
404
namespace ArcheageCraft.Migrations { using System; using System.Data.Entity.Migrations; public partial class prices : DbMigration { public override void Up() { DropColumn("dbo.Prices", "UserId"); } public override void Down() { ...
apache-2.0
Arc3D/arcgis-runtime-samples-dotnet
src/ArcGISRuntime.Samples.Shared/Models/SubCategoryModel.cs
1977
// Copyright 2016 Esri. // // 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...
apache-2.0
mwjmurphy/Axel-Framework
axel-web-db/src/main/java/org/xmlactions/pager/jasper/JasperReportHandler.java
3010
package org.xmlactions.pager.jasper; import java.io.File; import java.sql.Connection; import java.util.HashMap; import java.util.List; import org.apache.commons.lang.Validate; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xmlactions.action.ActionConst; import org.xmlactions.action.a...
apache-2.0
Kangz/nxt-standalone
src/backend/Sampler.cpp
1444
// Copyright 2017 The Dawn 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 t...
apache-2.0
computerRND/webScienceRND
core/t_scopeMod/t_scopeMod.php
69
<?php namespace core\t_scopeMod; trait t_scopeMod { }
apache-2.0
sonu283304/onos
protocols/pcep/pcepio/src/test/java/org/onosproject/pcepio/types/BgpLsIdentifierSubTlvTest.java
1213
/* * Copyright 2015 Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
apache-2.0
davidtsadler/ebay-sdk-php
test/Metadata/Types/GetPoliciesForReturnsRestRequestTest.php
815
<?php /** * DO NOT EDIT THIS FILE! * * This file was automatically generated from external sources. * * Any manual change here will be lost the next time the SDK * is updated. You've been warned! */ namespace DTS\eBaySDK\Test\Metadata\Types; use DTS\eBaySDK\Metadata\Types\GetPoliciesForReturnsRestRequest; cla...
apache-2.0
mamoo/es6katas
class/solutions/creation.js
1376
// 22: class - creation // To do: make all tests pass, leave the assert lines unchanged! // Source: http://es6katas.org/ describe('class creation', () => { it('is as simple as `class XXX {}`', function() { let TestClass = class {}; const instance = new TestClass(); assert.equal(typeof instance, 'ob...
apache-2.0
HMAZonderland/phpAmazonMWS
test/Inbound/AmazonShipmentTest.php
14465
<?php namespace CPIGroupTest\Inbound; use CPIGroup\Inbound\AmazonShipment; use CPIGroup\Inbound\AmazonShipmentPlanner; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2012-12-12 at 13:17:14. */ class AmazonShipmentTest extends \PHPUnit_Framework_TestCase { /** * @var AmazonShipment */ prote...
apache-2.0
Minato262/Design-Pattern
src/java/test/org/designpattern/core/factories/TestAbstractProductionManageFactory.java
1239
/* * Copyright 2016-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
gastaldi/hibernate-validator
hibernate-validator/src/test/java/org/hibernate/validator/test/constraints/composition/CompositeConstraintTest.java
3353
/* * JBoss, Home of Professional Open Source * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may ...
apache-2.0
google-research/falken
sdk/cpp/src/core/client_info.cc
5492
// Copyright 2021 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 ...
apache-2.0
ToQuery/CleverWeb
src/main/webapp/app/api/system/role.js
1223
import request from '@/utils/request' const biz_path = '/sys/role/' function query(queryParam, page = undefined) { const query = Object.assign({}, queryParam) // copy obj if (page) { Object.assign(query, page) } return request({ url: biz_path, method: 'get', params: query }) } function list...
apache-2.0
dmilos/color
example/less-than-1k/assign/lms/lms2YPbPr2020.cpp
784
#include <iostream> #include <iomanip> #include "color/color.hpp" int main( int argc, char *argv[] ) { ::color::lms< float > c0; //!< Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double ::color::YPbPr< std::uint8_t, ::color::constant...
apache-2.0
Epi-Info/Epi-Info-Cloud-Contact-Tracing
Cloud Enter/Epi.Compatibility/Epi.Core/CommandProcessorResults.cs
4994
using System.Collections; using System.Collections.ObjectModel; using System.Data; using System.Xml; using System.Collections.Generic; namespace Epi { /// <summary> /// Process Command Results event handler delegate. /// </summary> /// <param name="results">Command Processor Results</param> public...
apache-2.0
itachi1706/DroidEggs
app/src/main/java/com/itachi1706/droideggs/PieEgg/EasterEgg/paint/PaintActivity.java
13221
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
apache-2.0
google/nomulus
core/src/main/java/google/registry/model/JsonMapBuilder.java
2836
// Copyright 2017 The Nomulus 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 a...
apache-2.0
stepanovdg/big-data-plugin
impl/shim/oozie/src/main/java/org/pentaho/big/data/impl/shim/oozie/OozieServiceImpl.java
2764
/******************************************************************************* * * Pentaho Big Data * * Copyright (C) 2002-2016 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the "License...
apache-2.0
aliascc/Arenal-Engine
CodeSolution/Code/AEngine_Scripting/AngelScript/Add-ons/AngelScriptAddOn.cpp
1242
/* * Copyright (c) 2018 <Carlos Chacón> * 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 ...
apache-2.0
leppa/home-assistant
tests/helpers/test_temperature.py
1096
"""Tests Home Assistant temperature helpers.""" import pytest from homeassistant.const import ( PRECISION_HALVES, PRECISION_TENTHS, PRECISION_WHOLE, TEMP_CELSIUS, TEMP_FAHRENHEIT, ) from homeassistant.helpers.temperature import display_temp TEMP = 24.636626 def test_temperature_not_a_number(hass...
apache-2.0
Sofia2/dotnet-api
Indra.Sofia2.SSAP.SSAP/SSAPQueryResultFormat.cs
235
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Indra.Sofia2.SSAP.SSAP { public enum SSAPQueryResultFormat { JSON, TABLE } }
apache-2.0
googleapis/java-aiplatform
proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsRequestOrBuilder.java
5095
/* * Copyright 2020 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 ...
apache-2.0
A11yance/axobject-query
src/etc/objects/SplitterRole.js
229
/** * @flow */ const SplitterRole: AXObjectModelDefinition = { relatedConcepts: [ { module: 'ARIA', concept: { name: 'separator', }, }, ], type: 'widget', }; export default SplitterRole;
apache-2.0
googleapis/java-resourcemanager
proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/DeleteProjectMetadataOrBuilder.java
969
/* * Copyright 2020 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 ...
apache-2.0
stmueller/yoda
PODA/src/main/java/com/erp/model/HtmlBO.java
1100
package com.erp.model; public class HtmlBO { //<a href="javascript:void(0)" onclick="loadBarcodeImg(${grnObj.grnNo})" class="tooltipLink" title="Print GRN Barcode"> // <span style="color:#333" class="glyphicon glyphicon-barcode"></span></a>*/ private String clickAction=""; private String cls=""; ...
apache-2.0
chirino/docker-maven-plugin
src/test/java/integration/DockerAccessIT.java
6207
package integration; import java.io.File; import java.io.IOException; import java.util.*; import com.google.common.collect.Lists; import io.fabric8.maven.docker.AbstractDockerMojo; import io.fabric8.maven.docker.access.*; import io.fabric8.maven.docker.access.hc.DockerAccessWithHcClient; import io.fabric8.maven.docke...
apache-2.0
lizhi5753186/PushSharp
Tests/PushSharp.Tests/GcmTests.cs
10045
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using NUnit.Framework; using PushSharp.Android; using PushSharp.Core; using PushSharp.Tests.TestServers; namespace PushSharp.Tests { public class GcmTests { private int testP...
apache-2.0
lumpiluk/poehling-hotel-manager
de.pension-poehling.fxmanager/src/application/customControls/SimpleTablesView.java
6942
/* * Copyright 2014 Lukas Stratmann * * 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...
apache-2.0
tlkzzz/xpjfx
src/main/java/com/tlkzzz/jeesite/modules/cw/web/FReceiptController.java
8426
/** * Copyright &copy; 2012-2016 <a href="https://github.com/tlkzzz/jeesite">JeeSite</a> All rights reserved. */ package com.tlkzzz.jeesite.modules.cw.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.tlkzzz.jeesite.modules.ck.entity.CCkinfo; import com.tlk...
apache-2.0
losipiuk/presto
presto-main/src/main/java/io/prestosql/operator/aggregation/state/StateCompiler.java
36087
/* * 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...
apache-2.0
microcks/microcks
commons/model/src/main/java/io/github/microcks/domain/TestCaseResult.java
2094
/* * Licensed to Laurent Broudoux (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you may not...
apache-2.0
google/fest
third_party/fest-swing/src/test/java/org/fest/swing/test/builder/JFrames.java
2277
/* * Created on Aug 28, 2008 * * 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...
apache-2.0
jinglining/flink
flink-connectors/flink-connector-elasticsearch7/src/main/java/org/apache/flink/streaming/connectors/elasticsearch/table/Elasticsearch7DynamicSinkFactory.java
6698
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apache-2.0
spcs/synaps
synaps/__init__.py
929
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright (c) 2012 Samsung SDS Co., LTD # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you m...
apache-2.0
bmanojkumar/Mini_google
src/searchengine/indexer/Indexer.java
16821
/** * * Copyright: Copyright (c) 2004 Carnegie Mellon University * * This program is part of an implementation for the PARKR project which is * about developing a search engine using efficient Datastructures. * * Modified by Mahender on 12-10-2009 */ package searchengine.indexer; import java...
apache-2.0
arquillian/arquillian-extension-warp
impl/src/main/java/org/jboss/arquillian/warp/impl/utils/net/PortProber.java
5670
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
apache-2.0
openweave/openweave-core
src/lib/profiles/heartbeat/WeaveHeartbeatSender.cpp
19201
/* * * Copyright (c) 2013-2017 Nest Labs, 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...
apache-2.0
kubernetes/autoscaler
cluster-autoscaler/cloudprovider/aws/instance_type_cache.go
2946
/* Copyright 2021 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, ...
apache-2.0
jbosgi/jbosgi-resolver
api/src/main/java/org/jboss/osgi/resolver/spi/AbstractWiring.java
9910
/* * #%L * JBossOSGi Resolver API * %% * Copyright (C) 2010 - 2012 JBoss by Red Hat * %% * 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...
apache-2.0
volkc/REScala
Examples/examples/src/main/scala/examples/timeElapsing/TimeElapsing.scala
558
package examples.timeElapsing import rescala._ import rescala._ object TimeElapsing extends App { println("start!") val tick = Var(0) val second = Signal{ tick() % 60 } val minute = Signal{ tick()/60 % 60 } val hour = Signal{ tick()/(60*60) % 60 } val day = Signal{ tick()/(60*60*24) % 24 } // Note...
apache-2.0
artikcloud/artikcloud-ruby
lib/artikcloud/models/whitelist_result_envelope.rb
6251
=begin #ARTIK Cloud API #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git =end require 'date' module ArtikCloud # class WhitelistResultEnvelope # Device type i...
apache-2.0
spring-projects/spring-social-twitter
spring-social-twitter/src/main/java/org/springframework/social/twitter/api/ImageSize.java
938
/* * Copyright 2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
apache-2.0
CankingApp/MiniPay
app/src/test/java/com/canking/paydemo/ExampleUnitTest.java
397
package com.canking.paydemo; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void ad...
apache-2.0
lucastheisen/apache-directory-server
protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/options/DhcpOption.java
11600
/* * Copyright 2005 The Apache Software Foundation * * 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 ...
apache-2.0
BlueBrain/bluima
modules/bluima_topic_models/src/main/scala/ch/epfl/bbp/uima/topicmodels/annotators/IllegalCharacterSequenceAnnotator.scala
2094
package ch.epfl.bbp.uima.topicmodels.annotators import org.apache.uima.UimaContext import org.apache.uima.fit.util.JCasUtil import org.apache.uima.jcas.JCas import scala.collection.immutable.HashSet import org.apache.uima.analysis_component.JCasAnnotator_ImplBase import de.julielab.jules.types.Token import scala.collec...
apache-2.0
AppGeo/GPV
WebApp/MarkupPanel.ascx.cs
3128
// Copyright 2012 Applied Geographics, 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 applicabl...
apache-2.0
hirohanin/pig7hadoop21
contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestHiveColumnarLoader.java
9972
/** * 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 ...
apache-2.0
zycgit/configuration
hasor-garbage/schema/ParamDefine.java
1639
/* * Copyright 2008-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
24ark/CategorizedGalleryView
app/src/main/java/com/arkitvora/categorizedgalleryview/MainActivity.java
3456
package com.arkitvora.categorizedgalleryview; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import java.util.ArrayList; import java.util.Arrays; publ...
apache-2.0
18380460383/eshare
RxTools-library/src/main/java/com/vondear/rxtools/RxIntentUtils.java
4257
package com.vondear.rxtools; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.support.v4.content.FileProvider; import java.io.File; /** * Created by vondear on 2016/1/24. */...
apache-2.0
vistadataproject/metaPureJS
services/userMetaService/lookupDefaultPatientList-spec.js
695
'use strict'; const userMetaService = require('../userMetaService'); const serviceTestUtils = require('../tests/serviceTestUtils'); describe('lookupDefaultPatientList asynchronous specs', () => { let context; beforeAll(() => { context = serviceTestUtils.beforeAllScript(userMetaService).context; })...
apache-2.0
188383/WakerUp
src/pl/zeromskiego/androidapp/onas.java
606
package pl.zeromskiego.androidapp; import android.app.Activity; import android.os.Bundle; public class onas extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.a_onas); } @Override...
apache-2.0
kkirsche/go-nessus
Godeps/_workspace/src/github.com/kkirsche/go-scp/files.go
332
package goScp import ( "log" "os" "strings" ) func createNewFile(filename string) *os.File { file, err := os.Create(strings.TrimSpace(filename)) if err != nil { log.Fatal(err) } return file } func writeParitalToFile(file *os.File, content []byte) { _, err := file.Write(content) if err != nil { log.Fata...
apache-2.0
InterestingLab/waterdrop
waterdrop-config/src/main/java/io/github/interestinglab/waterdrop/config/impl/Path.java
6266
/** * Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com> */ package io.github.interestinglab.waterdrop.config.impl; import io.github.interestinglab.waterdrop.config.ConfigException; import io.github.interestinglab.waterdrop.config.ConfigParseOptions; import java.util.Iterator; import java.util.List; fin...
apache-2.0
milaboratory/milib
src/main/java/com/milaboratory/util/io/HasPosition.java
693
/* * Copyright 2019 MiLaboratory, 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 agre...
apache-2.0
zhangminglei/flink
flink-runtime/src/test/java/org/apache/flink/runtime/metrics/dump/MetricQueryServiceTest.java
4495
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apache-2.0
google/earthengine-community
samples/javascript/guides/features04.js
7218
/** * Copyright 2020 The Google Earth Engine Community 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...
apache-2.0
cmmanish/OldUITempTest
examples/v201109/GetAllUserLists.java
2517
// Copyright 2011, 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 applicabl...
apache-2.0
mikeleishen/bacosys
frame/frame-service/src/main/java/com/xinyou/frame/response/BasicResponse.java
1225
package com.xinyou.frame.response; import java.util.List; import com.xinyou.frame.domain.models.EntityListDM; public class BasicResponse <T,T1> { private String status = "0"; public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getInfo(...
apache-2.0
dpvreony/tplhelper
src/Dhgms.TplHelper/Controller/Task/Sql/EmbeddedInteger32.cs
2944
// -------------------------------------------------------------------------------------------------------------------- // <copyright company="DHGMS Solutions" file="EmbeddedInteger32.cs"> // 2004-2012 DHGMS Solutions. Some Rights Reserved. Licensed under GNU General Public License version 2 (GPLv2) // </copyright> ...
apache-2.0
lime-company/lime-security-powerauth-push
powerauth-push-server/src/main/java/io/getlime/push/repository/model/PushCampaignUserEntity.java
3242
/* * Copyright 2016 Wultra 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 agreed to in...
apache-2.0
andrewjskatz/sqlest
src/test/scala/sqlest/ast/SelectSpec.scala
2269
/* * Copyright 2014 JHC Systems Limited * * 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...
apache-2.0
abhijitsarkar/feign
app/org/abhijitsarkar/feign/dao/RequestRepository.scala
4206
package org.abhijitsarkar.feign.dao import javax.inject.{Inject, Singleton} import com.google.inject.ImplementedBy import org.abhijitsarkar.feign.api.persistence.{RecordRequest, RequestService} import org.abhijitsarkar.feign.domain.RequestFormat._ import org.slf4j.LoggerFactory import play.api.libs.concurrent.Executi...
apache-2.0
gustavoresque/creative_infovis
server/databases/WebService/webservice.js
2010
//var postData = querystring.stringify({ // 'msg': 'Hello World!' //}); //TODO: refatorar para sintaxe de classes. var WebService = function (url, method, headers, callback) { this.url = url; this.method = method; this.headers = headers; var result = /^(https?)\:\/\/((\w+((\-\w+)|(\.\w+))*)(\:(\d+))...
apache-2.0
teknologika/Tapstream
Config.cs
2192
using System; namespace TapstreamMetrics.Sdk { public sealed class Config { // Deprecated, hardware-id field private string hardware = null; // Optional hardware identifiers that can be provided by the caller private string odin1 = null; // Set these to false if you d...
apache-2.0
areskts/xdeveloper
xdeveloper-xvalidator/src/main/java/jjwu/xdeveloper/xvalidators/handlers/NotEmptyHandler.java
2622
/**************************************************************** * 文件名 : NotEmptyHandler.java * 日期 : 2012-8-14 * Company: 上海绿岸网络科技有限公司 * (C) Copyright Green Shore Network Technology Co.,Ltd.2012 * All Rights Reserved. * 注意: 本内容仅限于上海绿岸网络科技有限公司内部使用,禁止转发 ***********************...
apache-2.0
jmillert/pokeraidbot
src/main/java/pokeraidbot/commands/NewRaidExCommand.java
3692
package pokeraidbot.commands; import com.jagrosh.jdautilities.commandclient.CommandEvent; import com.jagrosh.jdautilities.commandclient.CommandListener; import net.dv8tion.jda.core.entities.User; import pokeraidbot.Utils; import pokeraidbot.domain.config.LocaleService; import pokeraidbot.domain.errors.UserMessedUpExce...
apache-2.0
iivalchev/drm-wms
drmaa/src/main/java/org/ggf/drmaa/FileTransferMode.java
6388
/*___INFO__MARK_BEGIN__*/ /************************************************************************* * * The Contents of this file are made available subject to the terms of * the Sun Industry Standards Source License Version 1.2 * * Sun Microsystems Inc., March, 2001 * * * Sun Industry Standards Source Lic...
apache-2.0
simone-campagna/sheru
packages/sheru/sheru.py
2222
# -*- coding: utf-8 -*- # # Copyright 2015 Simone Campagna # # 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...
apache-2.0
corbinbs/hapi-fhir
hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Procedure.java
83701
package org.hl7.fhir.instance.model; /* Copyright (c) 2011+, HL7, Inc. 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 co...
apache-2.0
vistone/pdf.js
make.js
32624
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
apache-2.0
android/security-certification-resources
niap-cc/Permissions/Companion/app/src/main/java/com/android/certifications/niap/permissions/companion/services/TestBindTelephonyNetworkServiceService.java
1972
/* * Copyright 2020 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 applica...
apache-2.0
adligo/fabricate_tests.adligo.org
src/org/adligo/fabricate_tests/routines/implicit/CopyRoutineTrial.java
370
package org.adligo.fabricate_tests.routines.implicit; import org.adligo.fabricate.routines.implicit.CopyRoutine; import org.adligo.tests4j.system.shared.trials.SourceFileScope; import org.adligo.tests4j_4mockito.MockitoSourceFileTrial; @SourceFileScope (sourceClass=CopyRoutine.class,minCoverage=0.00) public class Cop...
apache-2.0
alekseysidorov/exonum
components/merkledb/src/migration/persistent_iter.rs
18308
// Copyright 2019 The Exonum Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
apache-2.0