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
// Copyright (C) 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
dsrbecky/gapid
gapis/resolve/resolve.go
GO
apache-2.0
9,899
package nl.tno.hexabus.api; import org.flexiblepower.ral.ResourceControlParameters; public interface HexabusControlParameters extends ResourceControlParameters { boolean isSwitchedOn(); }
flexiblepower/fpai-apps
flexiblepower.driver.smartplug.hexabus/src/nl/tno/hexabus/api/HexabusControlParameters.java
Java
apache-2.0
194
package nkp.pspValidator.shared.engine.exceptions; /** * Created by Martin Řehánek on 11.11.16. */ public class SizeDifferenceException extends Exception { public SizeDifferenceException(String message) { super(message); } }
rzeh4n/psp-validator
sharedModule/src/main/java/nkp/pspValidator/shared/engine/exceptions/SizeDifferenceException.java
Java
apache-2.0
246
import datetime import logging import multiprocessing import os import shutil from mimetypes import guess_type from typing import Any, Dict, Iterable, List, Optional, Tuple import orjson from bs4 import BeautifulSoup from django.conf import settings from django.core.cache import cache from django.db import connection ...
zulip/zulip
zerver/lib/import_realm.py
Python
apache-2.0
62,551
# =============================================================================== # Copyright 2011 Jake Ross # # 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...
USGSDenverPychron/pychron
pychron/core/xml/xml_parser.py
Python
apache-2.0
8,717
/* * Copyright 2011 The Poderosa Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * $Id: PrivateKeyFileHeader.cs,v 1.1 2011/11/03 16:27:38 kzmi Exp $ */ using System; using System.Collections.Generic; using System....
ArsenShnurkov/poderosa
Granados/Poderosa/KeyFormat/PrivateKeyFileHeader.cs
C#
apache-2.0
1,118
package io.dropwizard.lifecycle.setup; import com.codahale.metrics.InstrumentedThreadFactory; import io.dropwizard.lifecycle.ExecutorServiceManager; import io.dropwizard.util.Duration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Nonnull; import java.util.Formatter; import java.uti...
dropwizard/dropwizard
dropwizard-lifecycle/src/main/java/io/dropwizard/lifecycle/setup/ExecutorServiceBuilder.java
Java
apache-2.0
6,294
package com.vaadin.components.common.js; import java.util.List; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArrayMixed; import com.google.gwt.query.client.Function; import com.google.gwt.query.client.js.JsUtils; /** * Class with static utilities for @JsType * * TODO: re...
jforge/components
vaadin-components-gwt/src/main/java/com/vaadin/components/common/js/JS.java
Java
apache-2.0
3,892
package httpblobprovider import ( "crypto/x509" "net/http" "github.com/cloudfoundry/bosh-agent/settings" boshblob "github.com/cloudfoundry/bosh-utils/blobstore" boshcrypto "github.com/cloudfoundry/bosh-utils/crypto" boshhttp "github.com/cloudfoundry/bosh-utils/httpclient" ) func NewBlobstoreHTTPClient(blobsto...
cloudfoundry/bosh-agent
agent/httpblobprovider/blobstore_http_client.go
GO
apache-2.0
1,382
/* * Copyright 2005 MH-Software-Entwicklung. All rights reserved. * Use is subject to license terms. */ package com.jtattoo.plaf; import java.awt.*; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import javax.swing.*; import javax.swing.plaf.*; import javax.swing.plaf.basic.*; /**...
joshuairl/toothchat-client
src/jtattoo/src/com/jtattoo/plaf/BaseProgressBarUI.java
Java
apache-2.0
8,338
/* * */ package onlinebookstore.entity; import java.io.Serializable; public class UserInfo implements Serializable { /** * */ private static final long serialVersionUID = -3016286917871450522L; private int userID; private String username; private String password; private int userRole; pri...
ProjectOf714/OnlineBookstore
src/onlinebookstore/entity/UserInfo.java
Java
apache-2.0
2,529
const eg = require('../../eg'); module.exports = class extends eg.Generator { constructor (args, opts) { super(args, opts); this.configureCommand({ command: 'list [options]', description: 'List scopes', builder: yargs => yargs .usage(`Usage: $0 ${process.argv[2]} list [opt...
ExpressGateway/express-gateway
bin/generators/scopes/list.js
JavaScript
apache-2.0
717
package csdn.shimiso.eim.model; import java.io.Serializable; import java.util.Date; import csdn.shimiso.eim.comm.Constant; import csdn.shimiso.eim.util.DateUtil; /** * * ÏûϢʵÌå. * * @author shimiso */ public class Notice implements Serializable, Comparable<Notice> { /** * */ private static final long...
ice-coffee/EIM
src/csdn/shimiso/eim/model/Notice.java
Java
apache-2.0
2,569
require 'spec_helper' describe Mongo::Auth::CR do let(:address) do default_address end let(:monitoring) do Mongo::Monitoring.new end let(:listeners) do Mongo::Event::Listeners.new end let(:server) do Mongo::Server.new(address, double('cluster'), monitoring, listeners, TEST_OPTIONS) ...
brandonblack/mongo-ruby-driver
spec/mongo/auth/cr_spec.rb
Ruby
apache-2.0
1,289
/* * Copyright 2012-2016 bambooCORE, greenstep of copyright Chen Xin Nien * * 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 * * ...
billchen198318/bamboobsc
gsbsc-standard/src/com/netsteadfast/greenstep/bsc/model/BscMeasureDataFrequency.java
Java
apache-2.0
7,192
// 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...
Jarob22/selenium
java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java
Java
apache-2.0
16,114
# -*- coding: utf-8 -*- # # QOpenScienceFramework documentation build configuration file, created by # sphinx-quickstart on Thu May 12 11:05:40 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerat...
dschreij/osf-api-python-toolkit
docs/source/conf.py
Python
apache-2.0
10,111
// This THREEx helper makes it easy to handle window resize. // It will update renderer and camera when window is resized. // // # Usage // // **Step 1**: Start updating renderer and camera // // ```var windowResize = THREEx.WindowResize(aRenderer, aCamera)``` // // **Step 2**: Start updating renderer and camera //...
hiroki-repo/hiroki-repo.github.com
game0001/public/lib/THREEx.WindowResize.js
JavaScript
apache-2.0
1,245
/** * 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...
NamrataM/gora
gora-compiler/src/main/java/org/apache/gora/compiler/utils/LicenseHeaders.java
Java
apache-2.0
11,360
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
gingerwizard/elasticsearch
server/src/test/java/org/elasticsearch/action/admin/cluster/reroute/ClusterRerouteResponseTests.java
Java
apache-2.0
12,147
/* * 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/tomcat
java/jakarta/servlet/ServletException.java
Java
apache-2.0
3,381
/** * @author Swagatam Mitra */ /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */ /*global define, document, console, brackets, $, Mustache */ define(function (require, exports, module) { "use strict"; require("resizer/BottomCenterResizer"); require("resizer...
HunseopJeong/WATT
libs/brackets-server/embedded-ext/swmitra.html-designer/ResizeHandler.js
JavaScript
apache-2.0
602
/* * 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")...
zuoyebushiwo/apache-mina-2.0.9
src/mina-core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
Java
apache-2.0
20,118
import Component from './Component'; import XAxis from './XAxis'; import YAxis from './YAxis'; import Globals from '../../Globals'; import ConfidenceBand from './ConfidenceBand'; import { map } from 'd3'; class Statistics extends Component { private x: XAxis; private y: YAxis; /** * statistics con...
proteus-h2020/proteic
src/svg/components/Statistics.ts
TypeScript
apache-2.0
2,900
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
googleapis/google-cloud-dotnet
apis/Google.Cloud.Iap.V1/Google.Cloud.Iap.V1.GeneratedSnippets/IdentityAwareProxyAdminServiceClient.GetIapSettingsRequestObjectAsyncSnippet.g.cs
C#
apache-2.0
1,791
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
svagionitis/aws-sdk-cpp
aws-cpp-sdk-ec2/source/model/Subnet.cpp
C++
apache-2.0
10,104
using Xamarin.Forms; namespace HelloPageDialog.Views { public class PageDialogTabs : TabbedPage { public PageDialogTabs() { SetBinding(TitleProperty, new Binding("CurrentPage.Title", source: this)); } } }
karlfl/Prism
e2e/Forms/src/HelloPageDialog/Views/PageDialogTabs.cs
C#
apache-2.0
257
package lucene4ir.predictor.pre; import org.apache.lucene.index.IndexReader; import org.apache.lucene.search.Query; import java.io.IOException; /** * Created by Harry Scells on 28/8/17. * Maximum Collection Query Similarity MaxSCQ */ public class MaxSCQQPPredictor extends SumSCQQPPredictor { public MaxSCQQPP...
lucene4ir/lucene4ir
src/main/java/lucene4ir/predictor/pre/MaxSCQQPPredictor.java
Java
apache-2.0
1,090
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
jwren/intellij-community
plugins/laf/win10/src/com/intellij/laf/win10/WinIntelliJPasswordFieldUI.java
Java
apache-2.0
2,632
import { config, path, fs } from 'azk'; import h from 'spec/spec_helper'; import { Generator } from 'azk/generator'; import { Manifest } from 'azk/manifest'; var qfs = require('q-io/fs'); describe('Azk generator generation two nodes systems', function() { var project = null; var outputs = []; var UI = h.mockUI(...
saitodisse/azk-travis-test
spec/generator/rules/generation/two_node_gen_spec.js
JavaScript
apache-2.0
1,473
/* * tangfeixiong<tangfx128@gmail.com> */ package cloudnativelandscape.appdefdev.streaming.kafka.batchprocessing; import cloudnativelandscape.appdefdev.streaming.kafka.KafkaProperties; import org.apache.kafka.clients.producer.Callback; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka....
tangfeixiong/go-for-kubernetes
java/console-k8s/kafka-operator-component/src/main/java/cloudnativelandscape/appdefdev/streaming/kafka/batchprocessing/ProduceSample.java
Java
apache-2.0
3,092
# frozen_string_literal: true # 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 applicabl...
dazuma/google-cloud-ruby
google-cloud-vision-v1p3beta1/lib/google/cloud/vision/v1p3beta1/product_search/paths.rb
Ruby
apache-2.0
4,057
package quotas_test import ( "net/http" "time" "code.cloudfoundry.org/cli/cf/api/quotas" "code.cloudfoundry.org/cli/cf/configuration/coreconfig" "code.cloudfoundry.org/cli/cf/models" "code.cloudfoundry.org/cli/cf/net" "code.cloudfoundry.org/cli/cf/terminal/terminalfakes" testconfig "code.cloudfoundry.org/cli...
simonleung8/cli
cf/api/quotas/quotas_test.go
GO
apache-2.0
7,943
/** * 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...
robzor92/hops
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ResourceCalculatorPlugin.java
Java
apache-2.0
5,721
<?php echo "Migrating task dependencies to edges...\n"; $table = new ManiphestTask(); $table->openTransaction(); foreach (new LiskMigrationIterator($table) as $task) { $id = $task->getID(); echo "Task {$id}: "; $deps = $task->getAttachedPHIDs(PhabricatorPHIDConstants::PHID_TYPE_TASK); if (!$deps) { echo ...
telerik/phabricator
resources/sql/patches/migrate-maniphest-dependencies.php
PHP
apache-2.0
652
package org.deeplearning4j.spark.iterator; import lombok.extern.slf4j.Slf4j; import org.apache.spark.TaskContext; import org.apache.spark.TaskContextHelper; import org.deeplearning4j.datasets.iterator.AsyncDataSetIterator; import org.deeplearning4j.datasets.iterator.callbacks.DataSetCallback; import org.deeplearning4j...
kinbod/deeplearning4j
deeplearning4j-scaleout/spark/dl4j-spark/src/main/java/org/deeplearning4j/spark/iterator/SparkADSI.java
Java
apache-2.0
4,031
# # Author:: Adam Jacob (<adam@chef.io>) # Author:: Tyler Cloke (<tyler@chef.io>) # Copyright:: Copyright 2008-2016, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may...
jonlives/chef
lib/chef/resource/http_request.rb
Ruby
apache-2.0
1,791
/* * 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/cocoon
blocks/cocoon-portal/cocoon-portal-portlet-impl/src/main/java/org/apache/cocoon/portal/pluto/om/common/LanguageSetImpl.java
Java
apache-2.0
9,789
package _16_figRefMethodExtractionFromIntact; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Pattern; import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import bioc.BioCAnnotation; class SimpleXmlHandler extends Defaul...
BMKEG/bigMechKefedJavaWorkbook
src/main/java/_16_figRefMethodExtractionFromIntact/SimpleXmlHandler.java
Java
apache-2.0
4,202
/* * Copyright (C) 2015-2016 Emanuel Moecklin * * 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...
Ronak-LM/Memoir
RTEditor/src/main/java/com/onegravity/rteditor/RTToolbarListener.java
Java
apache-2.0
1,196
/* * 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 * distribu...
wu560130911/MultimediaDesktop
Client/src/main/webapp/resources/desktop/app/UserManager/store/UserStore.js
JavaScript
apache-2.0
1,100
/** * 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...
devdattakulkarni/Cassandra-KVPM
src/java/org/apache/cassandra/db/compaction/CompactionManager.java
Java
apache-2.0
56,464
package com.huawei.esdk.fusioncompute.local.impl.resources.alarm; import java.util.ArrayList; import java.util.List; import org.junit.BeforeClass; import org.junit.Test; import com.google.gson.Gson; import com.huawei.esdk.fusioncompute.local.ServiceFactory; import com.huawei.esdk.fusioncompute.local.model.ClientProv...
eSDK/esdk_cloud_fc_native_java
source/src/test/java/com/huawei/esdk/fusioncompute/local/impl/resources/alarm/AlarmResourceTest.java
Java
apache-2.0
3,531
// // Copyright 2015 Blu Age Corporation - Plano, Texas // // 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 // // Un...
pkubryk/SummerBatch
Summer.Batch.Core/Core/Scope/Context/StepContextRepeatCallback.cs
C#
apache-2.0
5,156
// Copyright 2000-2019 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.intellij.platform.templates; import com.intellij.facet.frameworks.beans.Artifact; import com.intellij.ide.util.projectWizard.ModuleBuilder; import com.intellij.ide.ut...
msebire/intellij-community
platform/lang-impl/src/com/intellij/platform/templates/ArchivedProjectTemplate.java
Java
apache-2.0
4,228
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
IllusionRom-deprecated/android_platform_tools_idea
xml/xml-psi-impl/src/com/intellij/xml/impl/schema/XmlElementDescriptorByType.java
Java
apache-2.0
2,851
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Consul.Net; namespace Consul.Net.TestSuite { [TestClass] public class AgentTests { [TestInitialize] public void Setup() { client = new ConsulClient(); } private C...
yonglehou/consul-net
src/Consul.Net.TestSuite/AgentTests.cs
C#
apache-2.0
746
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <windows.h> #include <aud...
sergecodd/FireFox-OS
B2G/gecko/widget/windows/AudioSession.cpp
C++
apache-2.0
12,568
/* * 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/clerezza
sparql/src/main/java/org/apache/clerezza/sparql/query/LiteralExpression.java
Java
apache-2.0
1,215
""" mbed CMSIS-DAP debugger Copyright (c) 2015 ARM 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 o...
molejar/pyOCD
pyOCD/utility/__init__.py
Python
apache-2.0
619
/* * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
retomerz/intellij-community
platform/lang-impl/src/com/intellij/ide/bookmarks/Bookmark.java
Java
apache-2.0
14,452
<?php use App\Models\VRPagesCategories; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class PagesCategoriesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { { $list = [ ["id" => "wi...
CodeAcademyDreamTeam/atraskvr
database/seeds/PagesCategoriesSeeder.php
PHP
apache-2.0
959
/* * 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/devicemap-browsermap
Gruntfile.js
JavaScript
apache-2.0
10,049
/* * 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 ...
nishantmonu51/druid
web-console/src/components/show-value/show-value.spec.tsx
TypeScript
apache-2.0
1,174
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
xasx/assertj-core
src/test/java/org/assertj/core/util/DateUtil_toCalendar_Test.java
Java
apache-2.0
1,555
package org.javarosa.xpath.expr; import org.javarosa.core.model.condition.EvaluationContext; import org.javarosa.core.model.instance.DataInstance; import org.javarosa.xpath.parser.XPathSyntaxException; public class XPathAbsFunc extends XPathFuncExpr { public static final String NAME = "abs"; private static fi...
dimagi/commcare
src/main/java/org/javarosa/xpath/expr/XPathAbsFunc.java
Java
apache-2.0
788
/* * Copyright (C) 2008 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 agr...
jonzl/sample-zxing
zxing-android-complete/src/com/google/zxing/client/android/result/TextResultHandler.java
Java
apache-2.0
2,058
/* * Copyright 2017 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 app...
etirelli/kie-wb-common
kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-lienzo-extensions/src/main/java/org/kie/workbench/common/stunner/lienzo/toolbox/ToolboxVisibilityExecutors.java
Java
apache-2.0
8,074
/* * 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/jena
jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/ValueRangeConstraint.java
Java
apache-2.0
3,604
/* Copyright (C) 2013-2015 Computer Sciences Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
infochimps-forks/ezbake-platform-services
groups/graph/src/main/java/ezbake/groups/graph/PermissionEnforcer.java
Java
apache-2.0
6,597
package ru.evgenyhodz.controller; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.anno...
alittlemind/git_test
chapter_011/mvc/src/main/java/ru/evgenyhodz/controller/MainController.java
Java
apache-2.0
3,394
var contextName = getContextName(); //return page context such as ACS var week = new Array('یك شنبه', 'دوشنبه', 'سه شنبه', 'چهار شنبه', 'پنج شنبه', 'جمعه', 'شنبه'); function getContextName() { var i = location.href.indexOf('/', 8); var j = location.href.indexOf('/', i + 1); return location.href.subst...
azizkhani/StarterKitProject
target/starter/Scripts/Naji/base.js
JavaScript
apache-2.0
21,019
/* * 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 ...
b-slim/hive
ql/src/java/org/apache/hadoop/hive/ql/parse/spark/SparkFileSinkProcessor.java
Java
apache-2.0
2,090
/* * arcus-java-client : Arcus Java client * Copyright 2010-2014 NAVER Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
whchoi83/arcus-java-client
src/main/java/net/spy/memcached/collection/ListGet.java
Java
apache-2.0
2,022
// Copyright 2015 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...
dropbox/bazel
src/main/java/com/google/devtools/build/skyframe/ThinNodeEntry.java
Java
apache-2.0
5,222
/* * ==================================================================== * 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 ...
wilebeast/FireFox-OS
B2G/gecko/mobile/android/base/httpclientandroidlib/entity/BufferedHttpEntity.java
Java
apache-2.0
3,714
/* * 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 ...
sscdotopen/giraph-compensations
src/main/java/org/apache/giraph/graph/VertexEdgeCount.java
Java
apache-2.0
2,054
/* RefinedScope * * $Id: RefinedScope.java 4651 2006-09-25 18:31:13Z paul_jack $ * * Created on Jul 16, 2004 * * Copyright (C) 2004 Internet Archive. * * This file is part of the Heritrix web crawler (crawler.archive.org). * * Heritrix is free software; you can redistribute it and/or modify * it under the terms of the ...
gaowangyizu/myHeritrix
myHeritrix/src/org/archive/crawler/scope/RefinedScope.java
Java
apache-2.0
2,250
class AddIndexes < ActiveRecord::Migration def change add_index(:paypal_express_responses, :kb_account_id, :name => 'idx_paypal_express_responses_on_kb_account_id') add_index(:paypal_express_responses, :payer_email, :name => 'idx_paypal_express_responses_on_payer_email') end end
daliwei/killbill-paypal-express-plugin
db/migrate/20161209090000_add_indexes.rb
Ruby
apache-2.0
293
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
ManfredTremmel/mt-bean-validators
src/main/java/de/knightsoftnet/validators/shared/EmptyIfOtherHasValue.java
Java
apache-2.0
3,057
package com.at.androidtraining1.webservices; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.StatusLine; import org.apache.http.client.ClientProtocol...
aniXification/AndroidTraining
AndroidTrainingFinal/src/com/at/androidtraining1/webservices/JSONParser.java
Java
apache-2.0
2,115
//======================================================================== // 存储器属性 //======================================================================== var p = { //普通属性 x: 1.0, y: 1.0, //$符号暗示这个属性是私有属性,但仅仅是暗示 $n: 0, //存储器属性 get r() { return Math.sqrt(this.x * this.x + this.y *...
Ztiany/CodeRepository
Web/JavaScriptDefinitiveGuide-Core/06_对象/03_getter_setter.js
JavaScript
apache-2.0
732
/* * 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...
11xor6/presto
core/trino-main/src/main/java/io/trino/server/ui/UiQueryResource.java
Java
apache-2.0
6,476
/* * 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/geronimo-yoko
yoko-spec-corba/src/main/java/org/omg/CORBA/AbstractInterfaceDefHelper.java
Java
apache-2.0
3,817
import hashlib from waterbutler import settings config = settings.child('SERVER_CONFIG') ADDRESS = config.get('ADDRESS', 'localhost') PORT = config.get('PORT', 7777) DOMAIN = config.get('DOMAIN', "http://localhost:7777") DEBUG = config.get_bool('DEBUG', True) SSL_CERT_FILE = config.get_nullable('SSL_CERT_FILE', N...
CenterForOpenScience/waterbutler
waterbutler/server/settings.py
Python
apache-2.0
1,532
using UnityEngine; public class CharacterAnimatorController : MonoBehaviour { void OnCollisionEnter2D(Collision2D col) { GetComponent<Animator>().SetTrigger("Hit"); } }
unity3d-jp/AngryChicken
Assets/script/CharacterAnimatorController.cs
C#
apache-2.0
178
/* * Copyright © 2015 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...
hsaputra/cdap
cdap-data-fabric/src/main/java/co/cask/cdap/data2/dataset2/lib/table/ObjectMappedTableDataset.java
Java
apache-2.0
8,119
/* * 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...
hgschmie/presto
presto-main/src/test/java/io/prestosql/operator/scalar/TestMapTransformValuesFunction.java
Java
apache-2.0
13,148
package com.thinkgem.jeesite.modules.sys.service.workflow; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.activiti.engine.IdentityService; import org.activiti.engine.RepositoryService; import org.activiti.engine.RuntimeService; impor...
zhangzuoqiang/jeesite
src/main/java/com/thinkgem/jeesite/modules/sys/service/workflow/WorkflowTraceService.java
Java
apache-2.0
7,301
package org.sagebionetworks.web.client.widget.docker; import java.util.Date; import org.gwtbootstrap3.client.ui.html.Span; import org.sagebionetworks.web.client.SynapseJSNIUtils; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.i18n.client.Da...
jay-hodgson/SynapseWebClient
src/main/java/org/sagebionetworks/web/client/widget/docker/DockerCommitRowWidgetViewImpl.java
Java
apache-2.0
1,963
/** * * 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"); ...
machristie/airavata
modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/ResourceAggregate.java
Java
apache-2.0
25,535
/** * Copyright 2013-2020 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
PierreBesson/generator-jhipster
utils/index.js
JavaScript
apache-2.0
909
package org.ansj.recognition; import org.ansj.dic.LearnTool; import org.ansj.domain.Nature; import org.ansj.domain.NewWord; import org.ansj.domain.Term; import org.ansj.util.TermUtil; import org.nlpcn.commons.lang.tire.domain.SmartForest; /** * 新词识别 * * @author ansj * */ public class NewWordReco...
hitscs/ansj_seg
src/main/java/org/ansj/recognition/NewWordRecognition.java
Java
apache-2.0
2,876
/* * 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/incubator-shardingsphere
shardingsphere-infra/shardingsphere-infra-federation/shardingsphere-infra-federation-optimizer/src/main/java/org/apache/shardingsphere/infra/federation/optimizer/context/parser/dialect/impl/OpenGaussOptimizerBuilder.java
Java
apache-2.0
1,888
/* * Copyright 2012-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...
lburgazzoli/spring-boot
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/beans/BeansEndpointAutoConfiguration.java
Java
apache-2.0
1,816
class AddPrevEpisodeIdToEpisodes < ActiveRecord::Migration def change add_column :episodes, :prev_episode_id, :integer add_index :episodes, :prev_episode_id add_foreign_key :episodes, :episodes, column: :prev_episode_id add_column :draft_episodes, :prev_episode_id, :integer add_index :draft_episo...
flada-auxv/annict
db/migrate/20150626152128_add_prev_episode_id_to_episodes.rb
Ruby
apache-2.0
425
/** * Copyright (C) 2014-2018 LinkedIn Corp. (pinot-core@linkedin.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 * * Unle...
apucher/pinot
thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/anomalydetection/performanceEvaluation/BasePerformanceEvaluate.java
Java
apache-2.0
2,335
package com.fanlehai.java.exception; import static com.fanlehai.java.util.Print.*; public class MultipleReturns { public static void f(int i) { print("Initialization that requires cleanup"); try { print("Point 1"); if (i == 1) return; print("Point 2"); if (i == 2) return; pri...
fanlehai/CodePractice
java/src/main/java/com/fanlehai/java/exception/MultipleReturns.java
Java
apache-2.0
885
# Copyright 2016 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
blowmage/gcloud-ruby
google-cloud-pubsub/lib/google/cloud/pubsub/policy.rb
Ruby
apache-2.0
7,039
package be.kdg.jsp.controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.*; @WebServlet("/Catalogus") public class CatalogusServlet extends HttpServlet { @Override protected void doPost(HttpServletRequest...
thebillkidy/KdG_IAO301A
JavaWebapps/java2web/JSP/src/main/java/be/kdg/jsp/controller/CatalogusServlet.java
Java
apache-2.0
679
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import base64 import json import os import sys import time from marionette import MarionetteTestCase from marionette im...
sergecodd/FireFox-OS
B2G/gaia/tests/python/gaiatest/gaia_test.py
Python
apache-2.0
16,942
describe('Coordinate', function () { describe('has various constructors', function () { it('can be created by a coordinate array', function () { var c = new maptalks.Coordinate([0, 0]); expect(c.x).to.be.eql(0); expect(c.y).to.be.eql(0); }); it('can be c...
MapTalks/layertalks
test/geo/CoordinateSpec.js
JavaScript
apache-2.0
3,726
/** * 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...
gruter/cloudata
src/java/org/cloudata/core/commitlog/pipe/InitStateTestIF.java
Java
apache-2.0
1,218
package org.apache.lucene.search; /** * Copyright 2004 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....
Photobucket/Solbase-Lucene
src/test/org/apache/lucene/search/TestSpanQueryFilter.java
Java
apache-2.0
3,622
/* * 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")...
icza/scelight
src-app-libs/org/apache/tools/bzip2/CBZip2InputStream.java
Java
apache-2.0
31,065
//===--- SILModule.cpp - SILModule implementation -------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
karwa/swift
lib/SIL/SILModule.cpp
C++
apache-2.0
23,696
/* * Licensed to ElasticSearch and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ElasticSearch licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you may...
lmenezes/elasticsearch
src/test/java/org/elasticsearch/common/unit/ByteSizeValueTests.java
Java
apache-2.0
2,226
/* 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 * di...
lsmall/flowable-engine
modules/flowable-engine/src/main/java/org/flowable/engine/impl/cmd/SignalEventReceivedCmd.java
Java
apache-2.0
5,828
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.08.10 at 09:54...
SmarterApp/ItemAuthoring
sbac-iaip/java/src/main/java/com/pacificmetrics/ims/apip/qti/section/AssessmentItemRef.java
Java
apache-2.0
9,877
// --- ping-content ------------------------------- import $ from 'jquery' import {debugMsg, spawnVdsm} from './helpers' export function renderPing () { var vdsmPingResponse = '' spawnVdsm('ping', null, function (data) { vdsmPingResponse += data }, function () { pingSuccessful(vdsmPingResponse) }, pin...
matobet/cockpit-ovirt
src/ping.js
JavaScript
apache-2.0
1,604