repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
CaMnter/AndroidLife
agera-1.0.0/src/main/java/com/google/android/agera/RepositoryConfig.java
3890
/* * Copyright 2015 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 applica...
apache-2.0
raster-foundry/raster-foundry
app-backend/common/src/test/scala/com/implicits/Generators.scala
42777
package com.rasterfoundry.common import com.rasterfoundry.datamodel._ import cats.data.{NonEmptyList => NEL} import cats.implicits._ import com.azavea.stac4s.Proprietary import eu.timepit.refined.auto._ import eu.timepit.refined.types.string.NonEmptyString import geotrellis.vector.testkit.Rectangle import geotrellis....
apache-2.0
afamorim/Vortice
apps/vortice-core/src/main/java/com/vortice/core/util/DateUtil.java
4854
package com.vortice.core.util; import java.sql.Timestamp; import java.text.DateFormatSymbols; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; import com.vortice.core.exception.AmbienteException; public class DateUtil { private static DateUtil convert...
apache-2.0
jberezanski/choco
src/chocolatey/infrastructure/adapters/CustomString.cs
1240
// Copyright © 2017 - 2018 Chocolatey Software, Inc // Copyright © 2011 - 2017 RealDimensions Software, 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://ww...
apache-2.0
igor-sfdc/aura
aura-components/src/test/components/uitest/tabset_Test/tabset_TestTest.js
7077
/* * Copyright (C) 2013 salesforce.com, 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 ...
apache-2.0
Yurik16/yuchuksin
chapter_002/src/main/java/ru/job4j/chess/Board.java
2358
package ru.job4j.chess; import ru.job4j.chess.Exceptions.FigureNotFoundException; import ru.job4j.chess.Exceptions.ImpossibleMoveException; import ru.job4j.chess.Exceptions.OccupiedWayException; import ru.job4j.chess.figures.AbstractFigure; /** * Main class. * * @author Yury Chuksin (chuksin.yury@gmail.com) * @si...
apache-2.0
lkoskela/maven-build-utils
src/main/java/com/lassekoskela/maven/buildevents/BuildEventLog.java
1479
package com.lassekoskela.maven.buildevents; import java.util.ArrayList; import java.util.List; import com.lassekoskela.maven.logging.Log; public class BuildEventLog { private final Log logger; private final List<BuildStep> steps; private BuildStep latestStep; public BuildEventLog(Log logger) { this.logger = l...
apache-2.0
d3sw/conductor
contribs/src/main/java/com/netflix/conductor/contribs/validation/ValidationTask.java
5957
/** * Copyright 2016 Netflix, Inc. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or...
apache-2.0
Chirojeugd-Vlaanderen/gap
tools/Chiro.Gap.FixAnomalies/Chiro.Gap.FixAnomalies/Program.LidRelatiesFixen.cs
9819
/* Copyright 2015,2016 Chirojeugd-Vlaanderen vzw 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...
apache-2.0
sreeram-boyapati/VITProcedures
VITProc2/src/com/vitguide/customobjects/ProcedureObjects.java
1542
package com.vitguide.customobjects; import java.io.Serializable; import java.util.ArrayList; public class ProcedureObjects implements Serializable{ /** * */ private static final long serialVersionUID = -3458674522445274446L; private String Office; private String Query; private String Clubs; private St...
apache-2.0
gchq/stroom
stroom-core-shared/src/main/java/stroom/explorer/shared/ExplorerServiceRenameRequest.java
1455
/* * Copyright 2017 Crown Copyright * * 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...
apache-2.0
mikedurbin/fcrepo-java-client
src/test/java/org/fcrepo/client/FcrepoClientAuthTest.java
5153
/** * Copyright 2015 DuraSpace, 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 agree...
apache-2.0
yuananf/presto
presto-thrift-connector/src/main/java/com/facebook/presto/connector/thrift/ThriftPluginInfo.java
1260
/* * 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
Neoskai/greycat
plugins/backup/src/main/java/greycat/backup/tools/StorageValueChunk.java
5217
/** * Copyright 2017 The GreyCat Authors. All rights reserved. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless ...
apache-2.0
mauricionr/TypeScript
tests/baselines/reference/contextualTyping34.js
130
//// [contextualTyping34.ts] var foo = <{ id: number;}> ({id:4}); //// [contextualTyping34.js] var foo = ({ id: 4 });
apache-2.0
yy13003/Im001
Hello/src/com/example/connection_adapter/Connection_adapter.java
2855
package com.example.connection_adapter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.example.hello.R; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Bas...
apache-2.0
FabianTerhorst/Isometric
lib/src/main/java/io/fabianterhorst/isometric/Shape.java
6712
package io.fabianterhorst.isometric; import java.util.Arrays; /** * Created by fabianterhorst on 31.03.17. */ public class Shape { private Path[] paths; public Shape() { } public Shape(Path[] paths) { this.paths = paths; } public void push(Path path) { if (paths == null)...
apache-2.0
zline/JsonPath
json-path/src/test/java/com/jayway/jsonpath/JsonOrgJsonProviderTest.java
1284
package com.jayway.jsonpath; import org.json.JSONArray; import org.json.JSONObject; import org.junit.Test; import java.util.List; import java.util.Map; import static com.jayway.jsonpath.JsonPath.using; import static org.assertj.core.api.Assertions.assertThat; public class JsonOrgJsonProviderTest extends BaseTest { ...
apache-2.0
CognizantQAHub/Cognizant-Intelligent-Test-Scripter
Engine/src/main/java/com/cognizant/cognizantits/engine/reporting/util/RDS.java
5938
/* * Copyright 2014 - 2017 Cognizant Technology Solutions * * 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
opencredo/opencredo-cloud-storage
cloud-storage-azure/src/main/java/org/opencredo/cloud/storage/azure/model/InputStreamBlob.java
1695
/* Copyright 2009-2010 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 appli...
apache-2.0
tambora-org/dockerCRE
volumes/www/survey/application/libraries/PluginManager/PluginManager.php
14270
<?php namespace ls\pluginmanager; use \Yii; use Plugin; /** * Factory for limesurvey plugin objects. */ class PluginManager extends \PluginManager { /** * Object containing any API that the plugins can use. * @var mixed $api The class name of the API class to load, o...
apache-2.0
QAZDER/WeatherUpdate
app/src/main/java/com/azder/weatherupdata/MainActivity.java
758
package com.azder.weatherupdata; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; public class MainActivity extends AppCompatActivity { @Overrid...
apache-2.0
shakamunyi/mesos
src/slave/containerizer/isolators/filesystem/linux.cpp
29510
/** * 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
project-mandolin/mandolin
mandolin-mx/src/main/scala/org/mitre/mandolin/mx/standalone/StandaloneMxNetOptimizer.scala
2828
package org.mitre.mandolin.mx.standalone import org.mitre.mandolin.optimize.standalone.OnlineOptimizer import org.mitre.mandolin.mx._ import org.mitre.mandolin.mlp.MMLPFactor import ml.dmlc.mxnet.{Symbol, Context, Shape, NDArray, Uniform, Xavier} import ml.dmlc.mxnet.optimizer.SGD /** * This follows the MMLPOptimiz...
apache-2.0
webadvancedservicescom/magento
dev/tests/unit/testsuite/Magento/Framework/Model/Resource/Type/Db/ConnectionFactoryTest.php
903
<?php /** * @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) */ namespace Magento\Framework\Model\Resource\Type\Db; class ConnectionFactoryTest extends \PHPUnit_Framework_TestCase { /** * @var ConnectionFactory */ private $model; protected function setUp() { ...
apache-2.0
flavoi/diventi
diventi/core/views.py
705
from django.shortcuts import render from django.contrib import messages from django.views.generic import ListView from django.contrib.auth.mixins import UserPassesTestMixin from diventi.blog.models import Article class DiventiActionMixin: """ Disable redirect for update and creation views. """ @p...
apache-2.0
udoprog/tiny-serializer-java
tiny-serializer-core/src/main/java/eu/toolchain/serializer/collection/DefaultNavigableMapSerializer.java
1307
package eu.toolchain.serializer.collection; import eu.toolchain.serializer.SerialReader; import eu.toolchain.serializer.SerialWriter; import eu.toolchain.serializer.Serializer; import java.io.IOException; import java.util.Map; import java.util.NavigableMap; import java.util.TreeMap; import lombok.RequiredArgsConstruct...
apache-2.0
ST-DDT/CrazySpawnerAI
compatibility/craftbukkit/v1_6_R3/de/st_ddt/crazyspawner/craftbukkit/v1_6_R3/ai/CompatibilityProvider.java
379
package de.st_ddt.crazyspawner.craftbukkit.v1_6_R3.ai; import de.st_ddt.crazyspawner.craftbukkit.v1_6_R3.entities.util.ai.ActionHelperImpl; import de.st_ddt.crazyspawner.entities.util.ai.ActionHelperInterface; public class CompatibilityProvider { static { ActionHelperInterface.ACTIONHELPERCLASSES.add(ActionHelpe...
apache-2.0
LowieHuyghe/edmunds
tests/cache/drivers/testredis.py
1260
from tests.testcase import TestCase from werkzeug.contrib.cache import RedisCache from edmunds.cache.drivers.redis import Redis class TestRedis(TestCase): """ Test the Redis """ def test_redis(self): """ Test the redis """ # Write config self.write_config([ ...
apache-2.0
metatron-app/metatron-discovery
discovery-server/src/main/java/app/metatron/discovery/domain/workbook/configurations/widget/shelf/LayerView.java
5787
/* * 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
GoogleCloudPlatform/elcarro-oracle-operator
oracle/controllers/configcontroller/config_controller_test.go
3923
// 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
stringbean/elastic4s
elastic4s-tests/src/test/scala/com/sksamuel/elastic4s/requests/admin/IndexTemplateHttpTest.scala
2465
package com.sksamuel.elastic4s.requests.admin import com.sksamuel.elastic4s.requests.common.RefreshPolicy import com.sksamuel.elastic4s.testkit.DockerTests import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec import org.scalatestplus.mockito.MockitoSugar class IndexTemplateHttpTest ...
apache-2.0
roncohen/apm-server
processor/transaction/processor.go
1232
package transaction import ( "encoding/json" pr "github.com/elastic/apm-server/processor" "github.com/elastic/beats/libbeat/beat" "github.com/elastic/beats/libbeat/monitoring" "github.com/santhosh-tekuri/jsonschema" ) var ( transactionMetrics = monitoring.Default.NewRegistry("apm-server.processor.transaction"...
apache-2.0
qalingo/qalingo-engine
apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/domain/CmsLink.java
2994
package org.hoteia.qalingo.core.domain; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; ...
apache-2.0
teisun/SunmiUI
SunmiDesign/sunmiui/src/main/java/sunmi/sunmiui/utils/Adaptation.java
2442
package sunmi.sunmiui.utils; import android.content.Context; import android.util.DisplayMetrics; import android.util.Log; import android.view.WindowManager; /** * 一些常用的系统配置信息 获取自定义的配置信息 类 */ public class Adaptation { public static int screenHeight = 0; public static int screenWidth = 0; public static f...
apache-2.0
zoneXcoding/Mineworld
src/main/java/org/terasology/rendering/shader/ShaderParametersGenericMesh.java
1536
/* * Copyright 2012 Benjamin Glatzel <benjamin.glatzel@me.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...
apache-2.0
blamb102/jupyter-aws-console
src/app/service/cognito.service.ts
8503
import {Injectable, Inject} from "@angular/core"; import {DynamoDBService} from "./ddb.service"; import {environment} from "../../environments/environment"; /** * Created by Vladimir Budilov */ declare var AWSCognito: any; declare var AWS: any; export interface CognitoCallback { cognitoCallback(message: strin...
apache-2.0
andrenpaes/killbill-adyen-plugin
src/main/java/org/killbill/billing/plugin/adyen/client/model/PaymentInfo.java
16205
/* * Copyright 2014-2016 Groupon, Inc * Copyright 2014-2016 The Billing Project, LLC * * The Billing Project 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...
apache-2.0
dataplumber/nexus
data-access/tests/sizefromcass.py
532
""" Copyright (c) 2016 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import pyximport pyximport.install() import ConfigParser import pkg_resources from nexustiles.dao.CassandraProxy import CassandraProxy config = ConfigParser.RawConfigParser() config.readfp(pkg_resources....
apache-2.0
tgraf/cilium
pkg/service/store/logfields.go
786
// Copyright 2020 Authors of Cilium // // 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 ...
apache-2.0
googleapis/google-api-nodejs-client
src/apis/blogger/v2.ts
55798
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
apache-2.0
liviutudor/MySQLMultiLineString
mysql_multiline_form.php
1367
<?php //settings global $form_action; if($form_action == '' ) { $form_action = "mysql_multiline_form.php"; } global $rows; if( !$rows ) { $rows = 10; } global $columns; if( !$columns ) { $columns = 80; } global $eliminate_empty; if( !$eliminate_empty ) { $eliminate_empty = true; } //convert f...
apache-2.0
DigitalPlatform/dp2
dp2Catalog/XmlDetailForm.cs
14023
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Xml; using System.IO; using DigitalPlatform.Xml; using DigitalPlatform; namespace dp2Catalog { public partial class XmlDetailForm : For...
apache-2.0
balazssimon/meta-cs
src/Main/MetaDslx.CodeAnalysis.Common/Compilation/CompilationOptions.cs
31095
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.PooledObjects; using Rosl...
apache-2.0
zpao/buck
test/com/facebook/buck/android/MergeAssetsIntegrationTest.java
2977
/* * 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...
apache-2.0
mifos/1.4.x
testFramework/src/main/java/org/mifos/test/acceptance/framework/util/AcceptanceDatabaseTestUtils.java
1847
/* * Copyright (c) 2005-2009 Grameen Foundation USA * 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 * * Unl...
apache-2.0
rashmithajajur/PrivateCloud-master
src/main/java/com/privatecloud/users/dao/DBConnection.java
923
package com.privatecloud.users.dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class DBConnection { static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; static final String DB_URL = "jdbc:mysql://localhost/CMPE283"; // Database credentials static final ...
apache-2.0
asaaki/yyid.rs
examples/release-tag.rs
262
// Awesome simple way to generate a tag based on current cargo package version fn main() { let version = std::env!("CARGO_PKG_VERSION"); println!( r#"git tag --sign --create-reflog --message "Release v{}" v{}"#, version, version ); }
apache-2.0
saga810203/jfw
jfw-core/src/main/java/org/jfw/core/code/webmvc/handler/RemoveSessionAttributeHandler.java
628
package org.jfw.core.code.webmvc.handler; import org.jfw.core.code.generator.annotations.webmvc.RemoveSessionAttribute; import org.jfw.core.code.webmvc.Handler; public class RemoveSessionAttributeHandler extends Handler{ @Override public void appendBeforCode(StringBuilder sb) { RemoveSession...
apache-2.0
xushaomin/appleframework
apple-commons/src/main/java/com/appleframework/tools/lang/hash/MurmurHash.java
8442
package com.appleframework.tools.lang.hash; import com.appleframework.tools.util.CharsetUtil; import com.appleframework.tools.util.StrUtil; import java.io.Serializable; import java.nio.charset.Charset; /** * Murmur3 32bit、64bit、128bit 哈希算法实现<br> * 此算法来自于:https://github.com/xlturing/Simhash4J/blob/master/src/main/j...
apache-2.0
wolfdog007/aruzhev
chapter_002/src/main/java/ru/job4j/battlegame/units/human/Crossbowman.java
2215
package ru.job4j.battlegame.units.human; import ru.job4j.battlegame.Squad; import ru.job4j.battlegame.units.AbstractUnit; import java.util.Random; /** * CrossBowman. * * @author Ruzhev Alexander * @since on 24.06.2017. */ public class Crossbowman extends AbstractUnit { /** * Name. */ private ...
apache-2.0
micrometer-metrics/micrometer
micrometer-core/src/main/java/io/micrometer/core/instrument/binder/BaseUnits.java
2134
/* * Copyright 2017 VMware, 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
apache-2.0
Eduworks/decals-ui
decals-ui/src/com/eduworks/decals/ui/client/pagebuilder/screen/DsTeacherHomeScreen.java
1009
package com.eduworks.decals.ui.client.pagebuilder.screen; import com.eduworks.decals.ui.client.DsSession; import com.eduworks.decals.ui.client.handler.DsHeaderHandler; import com.eduworks.decals.ui.client.pagebuilder.DecalsScreen; import com.eduworks.gwt.client.pagebuilder.PageAssembler; import com.google.gwt.us...
apache-2.0
natefinch/claymud
world/player_test.go
33
package world import () var ()
apache-2.0
joy-inc/core-http
src/main/java/com/joy/http/volley/Network.java
1054
/* * Copyright (C) 2011 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
Primechain/yobichain
yobichain-web/create_user_process.php
1904
<?php include_once("primechain_functions/error_reporting.php"); include_once("primechain_functions/crud_engine.php"); include_once("primechain_functions/blockchain_engine.php"); include_once("primechain_functions/helperFunctions.php"); include_once("classes/classes.php"); $crud_engine = new crudEngine(); $blockchain_e...
apache-2.0
google/sling
sling/task/frames.cc
4605
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
apache-2.0
TakahikoKawasaki/Android-OpenGL-Friendly-API
src/com/neovisionaries/android/opengl/impl/GLESImpl11.java
6776
/* * Copyright (C) 2012 Neo Visionaries 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 applic...
apache-2.0
dhgarrette/2015-ccg-parsing
src/main/scala/dhg/ccg/tag/learn/EmHmm.scala
31283
package dhg.ccg.tag.learn import scala.annotation.tailrec import scala.collection.breakOut import scala.math.abs import scala.math.exp import scala.math.log import dhg.util._ import dhg.util.FastMathUtil._ import dhg.ccg.prob.ConditionalLogProbabilityDistribution import dhg.ccg.tag._ import dhg.ccg.tagdict.TagDictiona...
apache-2.0
greenify/msa
src/model/SeqCollection.js
4339
import Sequence from "./Sequence"; import FeatureCol from "./FeatureCol"; const Collection = require("backbone-thin").Collection; const SeqCollection = Collection.extend({ model: Sequence, constructor: function(seqs, g) { Collection.apply(this, arguments); this.g = g; this.on( "add reset remove", (()...
apache-2.0
bitjjj/HFTracker
HFTrackerDataCrawler/cron/NewsCronJobTest.js
232
var cronJob = require("cron").CronJob, FundNewsENCrawler = require("../FundNewsENCrawler"); //new cronJob('* * 20 * * *', function () { new FundNewsENCrawler("0").run(); new FundNewsENCrawler("1").run(); //}, null, true);
apache-2.0
realityforge/arez
processor/src/test/fixtures/input/com/example/component_ref/other/BaseProtectedAccessComponentRefModel.java
230
package com.example.component_ref.other; import arez.Component; import arez.annotations.ComponentRef; public abstract class BaseProtectedAccessComponentRefModel { @ComponentRef protected abstract Component getComponent(); }
apache-2.0
kamalmarhubi/bazel
src/main/java/com/google/devtools/build/skyframe/CyclesReporter.java
4251
// Copyright 2014 The Bazel 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 appl...
apache-2.0
mirkosertic/Bytecoder
classlib/bytecoder.web/src/main/java/de/mirkosertic/bytecoder/api/web/HTMLWebGLCanvasElement.java
362
package de.mirkosertic.bytecoder.api.web; import de.mirkosertic.bytecoder.api.OpaqueProperty; import de.mirkosertic.bytecoder.api.web.webgl.WebGLRenderingContext; public interface HTMLWebGLCanvasElement extends HTMLElement { @OpaqueProperty int width(); @OpaqueProperty int height(); WebGLRender...
apache-2.0
cipriancraciun/mosaic-java-benchmarks
benchmarks-core/src/main/java/eu/mosaic_cloud/benchmarks/tools/ThreadBundle.java
1575
package eu.mosaic_cloud.benchmarks.tools; import java.util.concurrent.ConcurrentSkipListSet; public final class ThreadBundle extends Object { public ThreadBundle () { super (); this.threads = new ConcurrentSkipListSet<ThreadBundle.Thread> (); } public final void join () { while (true) try { f...
apache-2.0
FrenzelGmbH/company-website
modules/purchase/views/purchase-order/index.php
2369
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\grid\GridView; use yiidhtmlx\Grid; use yii\widgets\Block; use kartik\widgets\SideNav; /** * @var yii\web\View $this * @var yii\data\ActiveDataProvider $dataProvider * @var app\modules\parties\models\PartySearch $searchModel */ $this->title = 'Purchase Or...
apache-2.0
akjava/gwt-three.js-test
src/com/akjava/gwt/three/client/java/utils/TextureExportUtils.java
1948
package com.akjava.gwt.three.client.java.utils; import com.akjava.gwt.three.client.gwt.renderers.WebGLContext; import com.akjava.gwt.three.client.js.renderers.WebGLRenderTarget; import com.akjava.gwt.three.client.js.renderers.WebGLRenderer; import com.google.gwt.canvas.client.Canvas; import com.google.gwt.core.c...
apache-2.0
orientechnologies/orientdb
core/src/main/java/com/orientechnologies/orient/core/sql/functions/OIndexableSQLFunction.java
6531
/* * * * Copyright 2015 OrientDB LTD (info(at)orientdb.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...
apache-2.0
wuyinlei/MyHearts
app/src/main/java/ruolan/com/myhearts/entity/GroupDetailBean.java
8824
package ruolan.com.myhearts.entity; import java.io.Serializable; import java.util.List; /** * Created by wuyinlei on 2016/11/6. */ public class GroupDetailBean implements Serializable{ /** * errorCode : 0 * errorStr : success * resultCount : 25 * score : 0 * balance : 0 * result...
apache-2.0
hufsm/PocketHub
app/src/main/java/com/github/pockethub/ui/gist/CreateGistTask.java
2750
/* * Copyright (c) 2015 PocketHub * * 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
steveKapturowski/tensorflow-rl
algorithms/cem_actor_learner.py
3543
# -*- coding: utf-8 -*- import numpy as np import utils.logger import tensorflow as tf from networks.policy_v_network import PolicyNetwork from policy_based_actor_learner import BaseA3CLearner logger = utils.logger.getLogger('cross_entropy_actor_learner') class CEMLearner(BaseA3CLearner): ''' Implementation of Cr...
apache-2.0
sciage/FinalProject
app/src/main/java/in/beacandid/app/beacandid/ui/base/MvpView.java
1362
/* * Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE 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 * * https://mindorks.com/license/apache-v2 * * Unless required by applicable...
apache-2.0
reportportal/service-api
src/main/java/com/epam/ta/reportportal/core/launch/cluster/CreateClusterHandler.java
891
/* * Copyright 2021 EPAM Systems * * 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
GoogleCloudPlatform/professional-services
tools/lambda-compat/cmd/lambda-compat/main.go
5028
package main /* 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 agre...
apache-2.0
nonamejx/qltiemchung
qltiemchung/src/com/qltiemchung/controller/admin/VacxinThemServlet.java
1566
package com.qltiemchung.controller.admin; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.qltiemchung.model.bean...
apache-2.0
omsmith/node-jwk-to-pem
src/jwk-to-pem.js
526
'use strict'; var ec = require('./ec'), rsa = require('./rsa'); function jwkToBuffer (jwk) { if ('object' !== typeof jwk || null === jwk) { throw new TypeError('Expected "jwk" to be an Object'); } var kty = jwk.kty; if ('string' !== typeof kty) { throw new TypeError('Expected "jwk.kty" to be a String'); } ...
apache-2.0
googleads/googleads-php-lib
src/Google/AdsApi/AdManager/v202111/PauseProposalLineItems.php
750
<?php namespace Google\AdsApi\AdManager\v202111; /** * This file was generated from WSDL. DO NOT EDIT. */ class PauseProposalLineItems extends \Google\AdsApi\AdManager\v202111\ProposalLineItemAction { /** * @var string $reason */ protected $reason = null; /** * @param string $reason ...
apache-2.0
ys305751572/shouye
src/main/java/com/smallchill/api/function/modal/Message.java
4797
package com.smallchill.api.function.modal; import com.smallchill.api.function.meta.other.MessageAction; import org.apache.commons.lang3.StringUtils; import org.beetl.sql.core.annotatoin.Table; import com.smallchill.core.annotation.BindID; import com.smallchill.core.base.model.BaseModel; import javax.persistence.Colum...
apache-2.0
cdapio/sql-pipelines
sql-data-pipeline/src/main/java/io/cdap/pipeline/sql/app/core/SQLConfig.java
1545
/* * Copyright © 2019 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
apache-2.0
moosbusch/xbCDWALite
src/edu/getty/cdwa/cdwaLite/DescriptiveNoteSetDocument.java
14581
/* * Copyright 2013 Gunnar Kappei. * * 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...
apache-2.0
mmerce/python
bigml/tests/create_batch_prediction_steps.py
10291
# -*- coding: utf-8 -*- # # Copyright 2012-2020 BigML # # 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 ...
apache-2.0
spaceshipsamurai/samurai-auth
server/controllers/eve/charactersController.js
2437
var mongoose = require('mongoose'), KeyManager = require('../../services/eve/key-service'), CharacterService = require('../../services/eve/character-service')(), User = mongoose.model('User'), Character = mongoose.model('Character'), async = require('async'); module.exports = function() { var ...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-kafkaconnect/src/main/java/com/amazonaws/services/kafkaconnect/model/AutoScaling.java
11005
/* * 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...
apache-2.0
mariusj/org.openntf.domino
domino/externals/javassist/src/main/java/javassist/bytecode/SignatureAttribute.java
35773
/* * Javassist, a Java-bytecode translator toolkit. * Copyright (C) 1999- Shigeru Chiba. All Rights Reserved. * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. Alternatively, the contents...
apache-2.0
djacobsmeyer/bloc-jams-angular
app/scripts/app.js
14229
var blocjams = angular.module('blocjams', ['ui.router']); var currentAlbum = null; var currentlyPlayingSongNumber = null; var currentSongFromAlbum = null; var currentSoundFile = null; var currentVolume = 80; var playButtonTemplate = '<a class="album-song-button"><span class="ion-play"></span></a>'; var pauseButtonTem...
apache-2.0
pczhaoyun/obtainfo
blog/forms.py
2004
"""Forms for Zinnia admin""" from django.contrib import admin from django import forms from django.db.models import ManyToOneRel from django.db.models import ManyToManyRel from django.contrib.sites.models import Site from django.utils.translation import ugettext_lazy as _ from django.contrib.admin.widgets import Relate...
apache-2.0
pulcy/quark
providers/cluster_member.go
1716
// Copyright (c) 2016 Pulcy. // // 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
gaaiatinc/spa-framework
webpack.config.js
1655
const resolve = require("path").resolve; const webpack = require("webpack"); var libraryName = "SPAFramework"; var outputFile = libraryName + ".js"; module.exports = { // configuration name: "jsx bundling", entry: { libFacade: resolve(__dirname, "./libraryFacade") }, output: { path...
apache-2.0
JinBuHanLin/eshow-android
eshow_framwork/src/cn/google/gson/TypeAdapterFactory.java
6574
/* * Copyright (C) 2011 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 agree...
apache-2.0
zakyalvan/spring-envers-audit
spring-envers-audit-core/src/main/java/com/innovez/core/audit/repository/DefaultRevisionMetadata.java
955
package com.innovez.core.audit.repository; import org.joda.time.DateTime; import org.springframework.data.history.RevisionMetadata; import org.springframework.util.Assert; import com.innovez.core.audit.entity.RevisionInfoEntity; /** * Default implementation of class which hold meta information of revision. * * @...
apache-2.0
LindaLawton/Google-Dotnet-Samples
Samples/DoubleClick Search API/v2/ConversionSample.cs
13764
// 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://www.apa...
apache-2.0
RokuHodo/Twitch-Bot
Messages/IRCMessage.cs
4119
using System; using System.Collections.Generic; using TwitchBot.Debugger; using TwitchBot.Enums.Debugger; using TwitchBot.Enums.Extensions; using TwitchBot.Extensions; namespace TwitchBot.Messages { class IRCMessage { public Dictionary<string, string> tags { get; set; } public string prefix ...
apache-2.0
monoman/NugetCracker
Nuget/src/CommandLine/Commands/HelpCommand.cs
8076
using System; using System.ComponentModel.Composition; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Reflection; using NuGet.Common; namespace NuGet.Commands { [Export(typeof(HelpCommand))] [Command(typeof(NuGetResources), "help", "HelpCommandDescription", A...
apache-2.0
markcowl/azure-sdk-for-net
sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/RequiredResourceAccess.cs
5084
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Azure.Core; namespace Azure.Graph.Rbac.Models { /// <summary> Specifies the se...
apache-2.0
magnetsystems/message-smack
smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/EmbeddedPacketExtension.java
1918
/** * * Copyright 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 applicable...
apache-2.0
citrix-openstack-build/oslo.concurrency
tests/unit/test_lockutils.py
16651
# Copyright 2011 Justin Santa Barbara # # 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 l...
apache-2.0
richard-strauss-werke/rsw-oxygen-framework
src/main/java/com/aerhard/oxygen/framework/inplace/InplaceButton.java
10766
package com.aerhard.oxygen.framework.inplace; import java.awt.BorderLayout; import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import java.awt.event.KeyAdapter; im...
apache-2.0
llohellohe/httpclient
httpclient/src/main/java/org/apache/http/impl/auth/BasicScheme.java
6781
/* * ==================================================================== * * 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...
apache-2.0
lcostantino/healing-os
healing/openstack/common/apiclient/base.py
16398
# Copyright 2010 Jacob Kaplan-Moss # Copyright 2011 OpenStack Foundation # Copyright 2012 Grid Dynamics # Copyright 2013 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...
apache-2.0
ipublishing-osp/esnavi
aeskit/src/main/java/jp/co/ipublishing/aeskit/alert/models/Alert.java
2188
/* * Copyright 2015 iPublishing Co., 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 ...
apache-2.0