code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
<?php /** * [yushunbox System] Copyright (c) 2014 yushunbox.com * yushunbox is NOT a free software, it under the license terms, visited http://www.yushunbox.com/ for more details. */ !defined('IN_UC') && exit('Access Denied'); define('UC_USER_CHECK_USERNAME_FAILED', -1); define('UC_U...
shengkai86/yushungroup
framework/library/uc/control/user.php
PHP
apache-2.0
8,671
const pkg = require("/package.json").peabodyos; const util = require("util"); if(pkg.installer) { console.log("[PeabodyOS] Please Wait while the installer starts..."); require("./installer"); } else { console.log("[PeabodyOS] Please Wait while the server is booting..."); //process.termout.write(util.fo...
SpaceboyRoss01/PeabodyOS
src/system/sys/distro/server/index.js
JavaScript
apache-2.0
357
package io.debezium.examples.aggregation.model; import com.fasterxml.jackson.annotation.*; public class Customer { private final EventType _eventType; private final Integer id; private final String first_name; private final String last_name; private final String email; @JsonCreator publ...
debezium/debezium-examples
kstreams/poc-ddd-aggregates/src/main/java/io/debezium/examples/aggregation/model/Customer.java
Java
apache-2.0
1,482
// fstconfidence.cc // 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, soft...
opendcd/opendcd
src/bin/fstconfidence.cc
C++
apache-2.0
2,218
import App from "../app"; export function launchProbe({id}) { const system = App.systems.find(s => s.id === id); if (!system) return {}; return {simulatorId: system.simulatorId}; } export function probeProcessedData({id, simulatorId}) { if (simulatorId) return {simulatorId}; const system = App.systems.find(s...
Thorium-Sim/thorium
server/triggers/probes.js
JavaScript
apache-2.0
410
""" Copyright 2016 adpoliak 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,...
adpoliak/NSAptr
ui/curses/versionchooser.py
Python
apache-2.0
4,308
package com.june.util; import java.util.HashMap; import java.util.Map; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import com.june.controller.base.BaseController; import cn.jpush.api.ErrorCodeEnum; import cn.jpush.api.IOSExtra; import ...
junehappylove/framework
src/main/java/com/june/util/JPushClientUtil.java
Java
apache-2.0
4,096
package org.ovirt.engine.core.bll.storage.pool; import org.ovirt.engine.core.utils.ISingleAsyncOperation; public class RefreshStoragePoolAndDisconnectAsyncOperationFactory extends ActivateDeactivateSingleAsyncOperationFactory { @Override public ISingleAsyncOperation createSingleAsyncOperation() { ret...
OpenUniversity/ovirt-engine
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/pool/RefreshStoragePoolAndDisconnectAsyncOperationFactory.java
Java
apache-2.0
432
package com.cloud.api.command.admin.network; import com.cloud.api.APICommand; import com.cloud.api.ApiErrorCode; import com.cloud.api.ResponseObject.ResponseView; import com.cloud.api.ServerApiException; import com.cloud.api.command.user.network.UpdateNetworkCmd; import com.cloud.api.response.NetworkResponse; import c...
remibergsma/cosmic
cosmic-core/api/src/main/java/com/cloud/api/command/admin/network/UpdateNetworkCmdByAdmin.java
Java
apache-2.0
2,305
from django.db.transaction import atomic from api.api_views import APIView from api.exceptions import VmIsNotOperational, VmHasPendingTasks, VmIsLocked, PreconditionRequired from api.task.response import FailureTaskResponse, SuccessTaskResponse from api.task.utils import task_log_success from api.vm.utils import get_v...
erigones/esdc-ce
api/vm/migrate/vm_dc.py
Python
apache-2.0
2,612
package com.charles.robin.mvc.annotation; import java.lang.annotation.*; @Component @Documented @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface Repository { String value() default ""; }
Lotusun/Robin
src/main/java/com/charles/robin/mvc/annotation/Repository.java
Java
apache-2.0
224
//#include "pl_inner_tinyxml.h" #include "global_consts.h" #include "config_loader.h" #include "c2cplatform/library/xml/xmlparser.h" #include <algorithm> #include <sstream> #include <sys/types.h> #include <dirent.h> #include <unistd.h> #include <assert.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/...
kuroroyoung/c2c_proj
netframework/netplatform/container3/src/config_loader.cpp
C++
apache-2.0
43,819
$(function() { $("#remarkButton").click(function() { var remark = $("#remark").val().trim(); if (remark == "") { return false; } var tokenId = $("#tokenId").val(); var patientId = $("#patientId").val(); var request = { text: remark }; $.ajax("/api/secure/remarks/new", {...
nakaken0629/iped
server/src/main/webapp/web/js/meeting.js
JavaScript
apache-2.0
748
package com.selenium.sample.main; import org.testng.annotations.Test; import com.jt.selenium.testng.SeleniumTestNG; import com.selenium.sample.page.GoogleSearch; /** * This is a very simple sample test to verify the project is run correctly. * * This class illustrates how to use PageObjects within a Java Test cl...
SeleniumJT/seleniumjt
src/test/java/com/selenium/sample/main/SampleTest.java
Java
apache-2.0
883
/* * Copyright 2014-2019 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 a...
vpavic/spring-session
spring-session-data-redis/src/test/java/org/springframework/session/data/redis/ReactiveRedisSessionRepositoryTests.java
Java
apache-2.0
17,979
/* * 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 n...
l-dobrev/activemq-artemis
artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/JMSServerManager.java
Java
apache-2.0
12,701
package org.loon.framework.android.game.core.graphics.filter; import android.graphics.Bitmap; /** * Copyright 2008 - 2010 * * 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:/...
cping/LGame
Java/old/Canvas_ver/src/org/loon/framework/android/game/core/graphics/filter/ImageFilterExecute.java
Java
apache-2.0
1,707
// =========================================================================== // // // // Copyright 2011 Anton Dubrau and McGill University. // // ...
bpilania/Comp621Project
languages/Natlab/src/natlab/toolkits/path/MatlabPath.java
Java
apache-2.0
7,765
//////////// load required libraries var url = require('url'), http = require('http'), path = require('path'), fs = require('fs'), WAMS = require(path.resolve('../../server')); // When using this example as base, make sure that this points to the correct WAMS server library path. ////////////////////////...
scottbateman/wams.js
examples/HelloWorld/server.js
JavaScript
apache-2.0
2,213
package com.sequenceiq.environment.api.v1.platformresource.model; import java.io.Serializable; import java.util.Collection; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.sequenceiq.environment.api.v1.platformresource.PlatformResourceModelDescr...
hortonworks/cloudbreak
environment-api/src/main/java/com/sequenceiq/environment/api/v1/platformresource/model/PlatformDisksResponse.java
Java
apache-2.0
2,375
// Copyright 2016 The Periph Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. // led reads the state of a LED or change it. package main import ( "flag" "fmt" "os" "periph.io/x/periph/host" "periph.io/x/periph/ho...
maruel/dotstar
vendor/periph.io/x/periph/cmd/led/main.go
GO
apache-2.0
637
/** * 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...
jai1/pulsar
pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/MockedPulsarServiceBaseTest.java
Java
apache-2.0
11,857
package com.sekift.util; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.StringWriter; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.LinkedHashMap; import java.uti...
sekift/ReloadProperties
ReloadProperties/src/com/sekift/uitl/XmlUtil.java
Java
apache-2.0
5,924
// generics/LostInformation.java // (c)2017 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. import java.util.*; class Frob {} class Fnorkle {} class Quark<Q> {} class Particle<POSITION, MOMENTUM> {} public class Los...
mayonghui2112/helloWorld
sourceCode/OnJava8-Examples-master/generics/LostInformation.java
Java
apache-2.0
949
/* * Copyright 2014-2019 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...
jentfoo/aws-sdk-java
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/FindingPublishingFrequency.java
Java
apache-2.0
1,897
/** * @license Apache-2.0 * * Copyright (c) 2018 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/stats/base/dists/hypergeometric/pmf/benchmark/benchmark.js
JavaScript
apache-2.0
1,914
package cn.yanxi.algorithm.common; /** * Created by lcyanxi on 2019/1/13 * 给出一个排序好的数组和一个数,求数组中连续元素的和等于所给数的子数组 */ public class FindSumDemo { public static void main(String args[]){ int[] num = {1,2,2,3,4,5,6,7,8,9}; int sum = 7; findSum(num,sum); } public static void findSum(int...
lcyanxi/dataStructure
dataStructure/src/main/java/cn/yanxi/algorithm/common/FindSumDemo.java
Java
apache-2.0
1,042
/* * Copyright 2012-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 "licen...
dagnir/aws-sdk-java
aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/ResourceNotFoundException.java
Java
apache-2.0
1,368
/* * Copyright 2012-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 "licen...
dagnir/aws-sdk-java
aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/CreateXssMatchSetRequest.java
Java
apache-2.0
6,052
/* Copyright 2016 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...
jart/tensorflow
tensorflow/core/kernels/cast_op_impl_uint64.cc
C++
apache-2.0
1,521
#!/usr/bin/env python from __future__ import print_function try: # PY2 ip_addr = raw_input("Please enter IP address: ") except NameError: # PY3 ip_addr = input("Please enter IP address: ") ip_addr = ip_addr.split(".") print() print("{:<12} {:<12} {:<12} {:<12}".format(*ip_addr)) print()
damintote/pynet_test
string2.py
Python
apache-2.0
311
/** * 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...
chicagozer/rheosoft
camel-core/src/main/java/org/apache/camel/processor/aggregate/AggregateProcessor.java
Java
apache-2.0
38,611
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.python.console.parsing; import com.intellij.lang.PsiBuilder; import com.jetbrains.python.PyElementTypes; import com.jetbrains.python.PyTokenTypes; import co...
msebire/intellij-community
python/src/com/jetbrains/python/console/parsing/PyConsoleParsingContext.java
Java
apache-2.0
7,218
/** * Copyright 2011-2017 Asakusa Framework 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...
cocoatomo/asakusafw
windgate-project/asakusa-windgate-hadoopfs/src/main/java/com/asakusafw/windgate/hadoopfs/temporary/ModelInputSourceDriver.java
Java
apache-2.0
3,156
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- namespace MobileClient.Tests.Helpers { public class ComplexType { public long Id...
Azure/azure-mobile-apps-net-client
unittests/MobileClient.Tests/Helpers/Models/ComplexType.cs
C#
apache-2.0
436
// Copyright 2019 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...
GoogleCloudPlatform/cloud-for-marketing
marketing-analytics/activation/data-tasks-coordinator/src/sentinel.js
JavaScript
apache-2.0
28,561
#region License // Copyright (c) Amos Voron. All rights reserved. // Licensed under the Apache 2.0 License. See LICENSE in the project root for license information. #endregion namespace QueryTalk.Wall { /// <summary> /// This interface is not intended for public use. /// </summary> public interface IO...
querytalk/library
Wall/interfaces/IOrderBy.cs
C#
apache-2.0
339
package WADL; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.Iterator; import java.util.List; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.Response; import javax.ws.rs.core.UriInfo; imp...
AuthEceSoftEng/web-service-annotation-tool
src/WADL/POSTWADLParseHandler.java
Java
apache-2.0
16,149
/* * 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 ...
gavanx/pdflearn
pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFObjectStreamParser.java
Java
apache-2.0
3,803
/* * Copyright 2017 Trevor Jones, Jemshit Iskanderov * * 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...
trevjonez/Inject-Android
core/src/main/java/com/trevjonez/inject/view/ViewComponentBuilderHost.java
Java
apache-2.0
923
package me.scana.subscriptionsleak; import java.security.SecureRandom; import java.util.Arrays; import java.util.List; import java.util.Random; import java.util.concurrent.TimeUnit; import io.reactivex.Observable; public class RecommendMovieUseCase { private static final List<String> COOL_MOVIES = Arrays.asList...
scana/subscriptions-leak-example
app/src/main/java/me/scana/subscriptionsleak/RecommendMovieUseCase.java
Java
apache-2.0
673
'use strict'; 'use console'; /* eslint-disable no-console */ /* eslint-disable no-await-in-loop */ const fs = require('fs-extra'); const prompt = require('syncprompt'); const _ = require('lodash'); const reply = require('../../lib/reply')(); const display = require('../../lib/display')(); module.exports = (cliConfig...
jsnoble/teraslice
packages/teraslice-cli/cmds/jobs/lib/index.js
JavaScript
apache-2.0
19,757
package android.support.v4.content; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.support.v4.os.CancellationSignal; import java.io.FileDescriptor; import java.io.PrintWriter; import java.util.Arrays; public class CursorLoader extends AsyncTaskLoade...
ChiangC/FMTech
GooglePlay6.0.5/app/src/main/java/android/support/v4/content/CursorLoader.java
Java
apache-2.0
11,670
package com.lizhi.library.widget; import android.content.Context; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.util.AttributeSet; import android.widget.EditText; /** * Created by jacob on 15/7/15. */ public class NumericView extends EditText implements...
xuhongjia/RxAndroidEvents
lzlibrary/src/main/java/com/lizhi/library/widget/NumericView.java
Java
apache-2.0
2,407
/** * Copyright 2018 Red Hat 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...
knowncitizen/tripleo-ui
src/js/constants/DeploymentConstants.js
JavaScript
apache-2.0
3,813
/* * Copyright 2011 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 applica...
khartig/assimilator
rio-tools/rio-cli/src/main/java/org/rioproject/tools/cli/EnlistmentHandler.java
Java
apache-2.0
5,485
/* * Copyright 2014-2019 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...
jentfoo/aws-sdk-java
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/ClusterSubnetGroup.java
Java
apache-2.0
14,288
/** * Classes for working with and executing Bitcoin script programs, as embedded in inputs and outputs. */ package org.spreadcoinj.script;
bitbandi/spreadcoinj
core/src/main/java/org/spreadcoinj/script/package-info.java
Java
apache-2.0
141
import * as actionTypes from '../comm/actionTypes'; import {service} from '../comm/service'; function dayData(code,line){ let values=line.split('~'); let v={ code:code, name:values[1], close:parseFloat(values[3]), last:parseFloat(values[4]), open:parseFloat(values[5]), volume:parseInt(values[6])...
jackz3/yunguba-onsenui
js/actions/stock.js
JavaScript
apache-2.0
1,655
/********************************************************************** Copyright (c) 2005 Erik Bengtson and others. 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 ht...
datanucleus/tests
jdo/identity/src/java/org/datanucleus/samples/identity/application/ComposedIntIDBase.java
Java
apache-2.0
4,481
/** * Licensed to EsupPortail under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * EsupPortail licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file ...
EsupPortail/esup-portlet-filex
src/main/java/org/esupportail/filex/beans/Filex.java
Java
apache-2.0
1,189
""" Knowledge combiners take: - Encoded representations of background facts related to the sentence - Attention weights over the background as a single tensor. These are then combined in some way to return a single representation of the background knowledge per sample. The simplest way for this to happen is simply ta...
RTHMaK/RPGOne
deep_qa-master/deep_qa/layers/knowledge_combiners.py
Python
apache-2.0
10,674
package marta.rodriguez.mercadonaapp.mercadona.api; import java.util.List; import marta.rodriguez.mercadonaapp.mercadona.Constants; import marta.rodriguez.mercadonaapp.mercadona.model.Supermarket; import retrofit.RestAdapter; import retrofit.http.GET; import retrofit.http.Path; /** * Created by marta.rodriguez on 2...
marta-rodriguez/clean-mercadona
CleanMercadona/app/src/main/java/marta/rodriguez/mercadonaapp/mercadona/api/ApiaryClient.java
Java
apache-2.0
1,068
var a = require('A/a'); a.A();
wangyanxing/TypeScript
tests/baselines/reference/projectOutput/relativePaths/node/app.js
JavaScript
apache-2.0
33
(function () { 'use strict'; /** * Provides AddMe dialog to add/remove a user to a contact collection. * * @requires * emailMeDialog.html and ui.bootstrap module */ var controllerId1 = 'emailMeController'; var controllerId2 = 'emailMeModalController'; angular.module('app...
FanrayMedia/Chef.me
Projects/Chef.Web/wwwroot/app/profile/emailMe/emailMeDialog.js
JavaScript
apache-2.0
3,593
/** * Copyright (C) 2015 Valkyrie RCP * * 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...
lievendoclo/Valkyrie-RCP
valkyrie-rcp-core/src/main/java/org/valkyriercp/binding/value/support/TypeConverter.java
Java
apache-2.0
3,600
package org.ovirt.engine.core.dao; import java.util.List; import org.ovirt.engine.core.common.businessentities.network; import org.ovirt.engine.core.compat.Guid; /** * <code>NetworkDAO</code> defines a type for performing CRUD operations on instances of {@link network}. * * */ public interface NetworkDAO extends...
Dhandapani/gluster-ovirt
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/NetworkDAO.java
Java
apache-2.0
1,442
/********************************************************************** * * Name: cpl_atomic_ops.cpp * Project: CPL - Common Portability Library * Purpose: Atomic operation functions. * Author: Even Rouault, <even dot rouault at mines dash paris dot org> * ************************************************...
naturalatlas/node-gdal
deps/libgdal/gdal/port/cpl_atomic_ops.cpp
C++
apache-2.0
5,249
/******************************************************************************* * DARPA XDATA 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....
plamenbbn/XDATA
pint/TwitterData/src/com/bbn/xdata/twitter/TwitterDataRecord.java
Java
apache-2.0
2,641
/** * */ package org.javahispano.jfootball.core; /** * @author alfonso * */ public class PlayerBase extends MovingEntity { private String name; private int number; private double velocity; private double power; private double accuracy; public PlayerBase() { this.name = "No name"; this.number = 0; th...
alfonsodou/jfootball
core/src/org/javahispano/jfootball/core/PlayerBase.java
Java
apache-2.0
1,593
<?php namespace OpenCloud\Zf2\Enum; /** * Provider enumerated types * * @package OpenCloud\Zf2\Enum */ class Provider { const RACKSPACE = 'Rackspace'; const OPENSTACK = 'OpenStack'; }
jamiehannaford/php-opencloud-zf2
src/Enum/Provider.php
PHP
apache-2.0
199
/******************************************************************************* * * Copyright (C) 2015-2022 the BBoxDB 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 Licens...
jnidzwetzki/bboxdb
bboxdb-server/src/main/java/org/bboxdb/storage/tuplestore/manager/DistributionRegionEntity.java
Java
apache-2.0
2,285
<?php defined('BASEPATH') or exit('No direct script access allowed'); $lang['streams:integer.name'] = "Entier";
sanayaCorp/bpkad
system/cms/modules/streams_core/field_types/integer/language/french/integer_lang.php
PHP
apache-2.0
118
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
rovats/waltz
waltz-ng/client/data-types/components/usage-count-tree/data-type-usage-count-tree.js
JavaScript
apache-2.0
4,378
#include <iostream> #include <stdlib.h> #include <stdio.h> #include <vector> #include <map> #include <algorithm> #include <set> #include <string> #include <cstring> using namespace std; int main() { string line, res; int index = 1; while(cin >> line, line != "*") { if(line == "Hajj") res = "Hajj-e...
diugalde/CompetitiveProgramming
uva/12557_hajjAkbar.cpp
C++
apache-2.0
445
package sk.upjs.calltree; import java.awt.*; /** * Configuration settings for call tree visualization. Any changes of * configuration must be realized before building a call tree. */ public class Config { /** * Collection of precomputed colors for a basic color. */ private static class ColorCol...
ics-upjs/CallTree
main/src/main/java/sk/upjs/calltree/Config.java
Java
apache-2.0
7,807
package org.zkoss.zss.essential.events; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.select.SelectorComposer; import org.zkoss.zk.ui.select.annotation.Listen; import org.zkoss.zk.ui.select.annotation.Wire; import org.zkoss.zss.ui.event.HeaderMouseEvent; import org.zkoss.zul.Menupopup; /** * Demonstrate h...
zkoss/zssessentials
src/main/java/org/zkoss/zss/essential/events/MouseEventsComposer.java
Java
apache-2.0
860
/** * Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
maheshika/carbon-analytics
components/analytics/org.wso2.carbon.analytics.hive/src/main/java/org/wso2/carbon/analytics/hive/dto/ScriptResult.java
Java
apache-2.0
1,263
# Copyright 2012 Kevin Minnick # 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...
kwminnick/rackspace-dns-cli
dnsclient/v1_0/records.py
Python
apache-2.0
5,748
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.AspNet.Identity; using Microsoft.Owin.Security; namespace WebDev.Models { public class IndexViewModel { public bool HasPassword { get; set; } public IList<UserLoginInfo> Logins { get; set; } ...
ISEPTrabalhos/BizzKit
WebDev/WebDev/Models/ManageViewModels.cs
C#
apache-2.0
2,652
/** * Copyright 2013 Facebook, 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 ...
jordwalke/npm-react-core
modules/ReactDOMIDOperations.js
JavaScript
apache-2.0
5,510
from django.core.mail import send_mail from django.core.handlers.base import BaseHandler from django.test.client import RequestFactory, FakePayload import collections ##################################################### ### Utility functions def flat_attr(attrs, level=0): '''Flattens the attribute map to a ...
lanesawyer/island
lib/__init__.py
Python
apache-2.0
2,512
// Copyright 2020, OpenTelemetry 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 ag...
open-telemetry/opentelemetry-collector-contrib
receiver/statsdreceiver/protocol/metric_translator.go
GO
apache-2.0
4,638
// web/js/app/views/disabled-toggle-row.js /* global Ember, App */ 'use strict'; App.DisabledToggleRowView = Ember.View.extend({ templateName: 'disabledtogglerow', tagName: 'tr', classNames: ['no-hover'] });
gophronesis/penny-sae
old/web/js/app/views/disabled-toggle-row.js
JavaScript
apache-2.0
216
/* ----------------------------------------------------------------------------- * Rule_cmdMonitorEnter.java * ----------------------------------------------------------------------------- * * Producer : com.parse2.aparse.Parser 2.3 * Produced : Fri Apr 12 10:40:21 MUT 2013 * * ----------------------------------...
Crysty-Yui/smali2java
src/main/java/com/litecoding/smali2java/parser/cmd/Rule_cmdMonitorEnter.java
Java
apache-2.0
5,903
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using IbaMonitoring; using safnet.iba.Business.AppFacades; using System.Data; using safnet.iba.Business.Entities; using safnet.iba.Static; using safnet.iba.Business.DataTransferObj...
stephenfuqua/IbaMonitoring
IbaMonitoring/results/Site.aspx.cs
C#
apache-2.0
5,537
/*- * Copyright (C) 2013-2014 The JBromo Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
qjafcunuas/jbromo
jbromo-dao/jbromo-dao-lib/src/main/java/org/jbromo/dao/common/IDao.java
Java
apache-2.0
1,297
<html> <body bgcolor="white" text="black" link="#666699" alink=#000000 vlink="#333333"> <title>Condor Warnings Graph Generator</title> <center><h2>Condor Warnings Graph Generator</h2> <?php # TODO - clean these up and provide a config $base_dir = "/home/cndrauto/warnings"; $branch_data_file = "$base_dir/...
clalancette/condor-dcloud
nmi_tools/www/results/condor-warnings.php
PHP
apache-2.0
1,876
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
sajeeshcs/nested_quota_final
nova/compute/manager.py
Python
apache-2.0
289,419
/* * 3D City Database - The Open Source CityGML Database * https://www.3dcitydb.org/ * * Copyright 2013 - 2021 * Chair of Geoinformatics * Technical University of Munich, Germany * https://www.lrg.tum.de/gis/ * * The 3D City Database is jointly developed with the following * cooperation partners: * * Virtua...
3dcitydb/importer-exporter
impexp-client-gui/src/main/java/org/citydb/gui/components/checkboxtree/QuadristateButtonModel.java
Java
apache-2.0
3,849
/** * 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...
zouzhberk/ambaridemo
demo-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java
Java
apache-2.0
21,584
//Spanform.h //Part of Spanform, by James Halliday, copyright 2000, all rights reserved #if !defined(AFX_SPANFORM_H__B9125B04_DA5C_11D2_A630_D5FD7E869135__INCLUDED_) #define AFX_SPANFORM_H__B9125B04_DA5C_11D2_A630_D5FD7E869135__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __...
malictus/spanform
source/SPANFORM.H
C++
apache-2.0
1,453
/* * Copyright 2014-2019 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...
jentfoo/aws-sdk-java
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/TagsLimitExceededException.java
Java
apache-2.0
1,274
package com.ibm.streamsx.sparkmllib.tree; import org.apache.spark.SparkContext; import org.apache.spark.mllib.linalg.Vector; import org.apache.spark.mllib.tree.model.GradientBoostedTreesModel; import com.ibm.streams.operator.model.InputPortSet; import com.ibm.streams.operator.model.OutputPortSet; import com.ibm.strea...
jibaro/streamsx.sparkMLLib
com.ibm.streamsx.sparkmllib/impl/java/src/com/ibm/streamsx/sparkmllib/tree/SparkEnsembleGradientBoostedTrees.java
Java
apache-2.0
1,380
$(document).ready(function() { $('#fieldrent_maintain').DataTable( { "aLengthMenu" : [ 2, 4, 6, 8, 10 ], //动态指定分页后每页显示的记录数。 "lengthChange" : true, //是否启用改变每页显示多少条数据的控件 "bSort" : false, "iDisplayLength" : 8, //默认每页显示多少条记录 "dom" : 'ftipr<"bottom"l>', "ajax" : { "url" : "landRent...
pange123/PB_Management
前台界面/pbweb/js/myNeed/rentMaintain.js
JavaScript
apache-2.0
3,837
package org.cavebeetle.stream.impl; public interface StreamState<T> { T head(); StreamState<T> tail(); boolean isEmpty(); }
Hilco-Wijbenga/smarter-maven
maven-pom-plugin/src/main/java/org/cavebeetle/stream/impl/StreamState.java
Java
apache-2.0
139
/* * Copyright 2009 ZXing 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 ...
macouen/lunzi
app/src/main/java/com/oakzmm/demoapp/zxing/camera/PlanarYUVLuminanceSource.java
Java
apache-2.0
4,082
'use strict'; // mocha defines to avoid JSHint breakage /* global describe, it, before, beforeEach, after, afterEach */ var assert = require('../utils/assert.js'); var server = require('../utils/server.js'); var preq = require('preq'); var P = require('bluebird'); var simple_service = require('../../mods/simple_ser...
physikerwelt/restbase
test/features/simple_service.js
JavaScript
apache-2.0
6,685
/* * Copyright 2017 Keval Patel. * * 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 ...
kevalpatel2106/smart-lens
app/src/main/java/com/kevalpatel2106/smartlens/SplashScreen.java
Java
apache-2.0
1,188
package fr.inria.oak.effisto.Loader.StorageHandler; //import java.util.ArrayList; public class OracleNoSQLStorageHandler extends Handler{ }
YifanLi/Effisto
src/fr/inria/oak/effisto/Loader/StorageHandler/OracleNoSQLStorageHandler.java
Java
apache-2.0
146
// Copyright 2019 The Oppia 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 ap...
souravbadami/oppia
core/templates/dev/head/services/SuggestionModalService.ts
TypeScript
apache-2.0
2,735
/* * Copyright 2020 Red Hat, Inc. and/or 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 ap...
droolsjbpm/optaplanner
optaplanner-examples/src/main/java/org/optaplanner/examples/coachshuttlegathering/domain/Bus.java
Java
apache-2.0
3,204
package com.alibaba.fastjson.parser.deserializer; import java.lang.reflect.Constructor; import java.lang.reflect.Type; import java.util.HashMap; import java.util.Map; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONException; import com.alibaba.fastjson.parser.DefaultJSONParser; import com.alibaba.f...
coraldane/fastjson
src/main/java/com/alibaba/fastjson/parser/deserializer/ThrowableDeserializer.java
Java
apache-2.0
5,555
/* * 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 ...
MRivas-XumaK/slingBuild
contrib/extensions/replication/core/src/main/java/org/apache/sling/replication/transport/TransportHandler.java
Java
apache-2.0
2,686
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requ...
gravitee-io/gravitee-management-rest-api
gravitee-rest-api-service/src/main/java/io/gravitee/rest/api/service/impl/UUIDApiKeyGenerator.java
Java
apache-2.0
1,077
/* * 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-route53recoveryreadiness/src/main/java/com/amazonaws/services/route53recoveryreadiness/model/transform/RecoveryGroupOutputMarshaller.java
Java
apache-2.0
3,021
package net.jgp.labs.spark.l250_map.l000; import java.io.Serializable; import org.apache.spark.api.java.function.ForeachFunction; import org.apache.spark.sql.Dataset; import org.apache.spark.sql.Row; import org.apache.spark.sql.SparkSession; public class ForEachBookApp implements Serializable { private static fina...
jgperrin/net.jgp.labs.spark
src/main/java/net/jgp/labs/spark/l250_map/l000/ForEachBookApp.java
Java
apache-2.0
1,162
/** * Copyright © 2013 enioka. All rights reserved * Authors: Marc-Antoine GOUILLART (marc-antoine.gouillart@enioka.com) * Pierre COPPEE (pierre.coppee@enioka.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
enioka/jqm
jqm-all/jqm-model/src/main/java/com/enioka/jqm/model/RPermission.java
Java
apache-2.0
2,300
# Copyright 2013 OpenStack 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 by applicable law or agreed to in...
ilay09/keystone
keystone/contrib/ec2/controllers.py
Python
apache-2.0
18,455
<?php /** * Copyright 2020 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 "li...
amzn/amazon-payments-magento-2-plugin
Helper/Email.php
PHP
apache-2.0
3,079