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 2014-2021 Real Logic 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
real-logic/Agrona
agrona-agent/src/main/java/org/agrona/agent/BufferAlignmentInterceptor.java
Java
apache-2.0
4,703
package com.example.demo; import java.util.Collection; import java.util.stream.Stream; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.CommandLineRunner; import org.spring...
manueldeveloper/springcloudconfigserver
SimpleRestAPI/src/main/java/com/example/demo/SimpleRestApiApplication.java
Java
apache-2.0
2,343
/** * @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/_tools/eslint/rules/jsdoc-markdown-remark/test/fixtures/valid.js
JavaScript
apache-2.0
6,669
#include <QSettings> #include <QFileDialog> #include "adduniquewindow.h" #include "ui_adduniquewindow.h" #include "functions.h" #include "helpers.h" #include "vendor/json.h" #include "models/page.h" #include "models/filename.h" /** * Constructor of the AddUniqueWindow class, generating its window. * @param favorit...
YoukaiCat/imgbrd-grabber
gui/src/batch/adduniquewindow.cpp
C++
apache-2.0
3,454
/** * @license * Copyright 2020 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
tensorflow/tfjs
tfjs-core/src/ops/sign_test.ts
TypeScript
apache-2.0
3,063
/* * Copyright 2015-2016 OpenCB * * 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 ...
javild/opencga
opencga-storage/src/main/java/org/opencb/opencga/storage/alignment/hbase/AlignmentHBaseQueryBuilder.java
Java
apache-2.0
10,790
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
googleinterns/step133-2020
src/test/java/com/google/step/finscholar/CollegeTest.java
Java
apache-2.0
3,967
"""Check that available RPM packages match the required versions.""" from openshift_checks import OpenShiftCheck from openshift_checks.mixins import NotContainerizedMixin class PackageVersion(NotContainerizedMixin, OpenShiftCheck): """Check that available RPM packages match the required versions.""" name = ...
wbrefvem/openshift-ansible
roles/openshift_health_checker/openshift_checks/package_version.py
Python
apache-2.0
3,386
#include "testing/testing.hpp" #include "geocoder/geocoder.hpp" #include "indexer/search_string_utils.hpp" #include "platform/platform_tests_support/scoped_file.hpp" #include "base/geo_object_id.hpp" #include "base/math.hpp" #include "base/stl_helpers.hpp" #include <algorithm> #include <string> #include <vector> ...
bykoianko/omim
geocoder/geocoder_tests/geocoder_tests.cpp
C++
apache-2.0
6,292
package com.emf.flickring.manager; import static com.emf.flickring.Command.Response.END; import static com.emf.flickring.deploy.DeployModule.Constant.API_KEY; import static com.emf.flickring.deploy.DeployModule.Constant.BASE_PICS_DIR; import static com.emf.flickring.deploy.DeployModule.Constant.SECRET; import static c...
edersonmf/flickring
src/main/java/com/emf/flickring/manager/ApiKeysCommand.java
Java
apache-2.0
7,638
/******************************************************************************* * 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 ...
am0e/commons
src/main/java/com/github/am0e/utils/Handler.java
Java
apache-2.0
1,071
from .layout_helpers import *
armstrong/armstrong.core.arm_layout
tests/templatetags/__init__.py
Python
apache-2.0
30
package wx.sunl.entry; /** * WeixinUserInfo(΢ÐÅÓû§µÄ»ù±¾ÐÅÏ¢) * @author Youngman */ public class WeixinOauth2Token { // ÍøÒ³ÊÚȨ½Ó¿Úµ÷ÓÃÆ¾Ö¤ private String accessToken; // ƾ֤ÓÐЧʱ³¤ private int expiresIn; // ÓÃÓÚË¢ÐÂÆ¾Ö¤ private String refreshToken; // Óû§±êʶ private String openI...
Youngman619/cwkz
src/wx/sunl/entry/WeixinOauth2Token.java
Java
apache-2.0
1,035
/* * Copyright (C) 2008 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...
craigacgomez/flaming_monkey_packages_apps_Email
src/com/android/email/provider/AttachmentProvider.java
Java
apache-2.0
13,480
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // 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: 20...
inbloom/secure-data-service
tools/data-tools/src/org/slc/sli/test/edfi/entitiesR1/Program.java
Java
apache-2.0
6,094
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #include <java/awt/geom/Path2D_Float_CopyIterator.hpp> extern void unimplemented_(const char16_t* name); java::awt::geom::Path2D_Float_CopyIterator::Path2D_Float_CopyIterator(const ::default_init_tag&) : super(*static...
pebble2015/cpoi
ext/stub/java/awt/geom/Path2D_Float_CopyIterator-stub.cpp
C++
apache-2.0
1,586
/* * Copyright 2017 B2i Healthcare Pte Ltd, http://b2i.sg * * 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 ...
IHTSDO/snow-owl
commons/com.b2international.index/src/com/b2international/index/es/AwaitPendingTasks.java
Java
apache-2.0
1,558
package jwt4j.checkers; import com.google.gson.JsonObject; import jwt4j.TokenChecker; import jwt4j.exceptions.InvalidIssuerException; import static jwt4j.JWTConstants.ISSUER; public class IssuerChecker implements TokenChecker { private final String issuer; public IssuerChecker(final String issuer) { ...
milpol/jwt4j
src/main/java/jwt4j/checkers/IssuerChecker.java
Java
apache-2.0
614
/** * A TabPanel osztály egységbe foglal több Panel-t, és segíti azok kezelését. * * * @author Gabor Kokeny */ class TabPanel extends Container { /** * Ez a változó tárolja az aktív index értékét, amely egy pozitív egész szám. * * @property {number} activeTabIndex */ private activ...
Gubancs/TypeUI
typeui-framework/src/main/resources/typescript/ui/TabPanel.ts
TypeScript
apache-2.0
4,557
# 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 # d...
phenoxim/nova
nova/tests/unit/scheduler/client/test_report.py
Python
apache-2.0
143,398
package com.bnsantos.movies.model; import com.j256.ormlite.field.DatabaseField; /** * Created by bruno on 14/11/14. */ public class Links { @DatabaseField(generatedId = true, columnName = "id") private Integer id; @DatabaseField() private String self; @DatabaseField() private String alternat...
bnsantos/android-javarx-example
app/src/main/java/com/bnsantos/movies/model/Links.java
Java
apache-2.0
1,305
package com.mytian.lb.bean.push; import com.core.openapi.OpenApiBaseRequestAdapter; import com.core.util.StringUtil; import java.util.HashMap; import java.util.Map; public class UpdateChannelidParam extends OpenApiBaseRequestAdapter { private String uid; private String token; private Str...
tengbinlive/aibao_demo
app/src/main/java/com/mytian/lb/bean/push/UpdateChannelidParam.java
Java
apache-2.0
1,799
/* 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...
robsoncardosoti/flowable-engine
modules/flowable-form-rest/src/main/java/org/flowable/rest/form/FormRestUrls.java
Java
apache-2.0
4,399
package weka.classifiers.lazy.AM.label; import org.hamcrest.core.StringContains; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import weka.classifiers.lazy.AM.TestUtils; import weka.core.Instances; /** * Test aspects of {@link IntLabeler} that are not applicable to other *...
garfieldnate/Weka_AnalogicalModeling
src/test/java/weka/classifiers/lazy/AM/label/IntLabelerTest.java
Java
apache-2.0
877
/* * Copyright 2015 The Closure Compiler 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...
MatrixFrog/closure-compiler
src/com/google/javascript/jscomp/Es6RewriteDestructuring.java
Java
apache-2.0
19,873
<?php /** * ZonecityController * @var $this ZonecityController * @var $model OmmuZoneCity * @var $form CActiveForm * version: 1.1.0 * Reference start * * TOC : * Index * Suggest * Manage * Add * Edit * RunAction * Delete * Publish * * LoadModel * performAjaxValidation * * @author Putra Sudaryanto <...
oMMuCo/HPTT-FT-UGM-Official-Website
protected/controllers/ZonecityController.php
PHP
apache-2.0
10,950
package rds import ( "fmt" "testing" ) func TestModifyDBInstanceNetworkType(t *testing.T) { var req ModifyDBInstanceNetworkTypeRequest req.Init() req.SetFormat("JSON") req.SetRegionId("cn-shenzhen") var accessId = "Ie65kUInu5GeAsma" var accessSecret = "8cCqoxdYU9zKUihwXFXiN1HEACBDwB" resp, err := ModifyDBIns...
cklxmu/aliyun-openapi-go-sdk
rds/2014-08-15/ModifyDBInstanceNetworkType_test.go
GO
apache-2.0
461
/* * Copyright 2012-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-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoPutMedia.java
Java
apache-2.0
10,008
/* * 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 ...
torakiki/sambox
src/test/java/org/sejda/sambox/pdmodel/graphics/optionalcontent/TestOptionalContentGroups.java
Java
apache-2.0
18,662
package org.appenders.log4j2.elasticsearch; /*- * #%L * log4j2-elasticsearch * %% * Copyright (C) 2020 Rafal Foltynski * %% * 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 * * ...
rfoltyns/log4j2-elasticsearch
log4j2-elasticsearch-core/src/test/java/org/appenders/log4j2/elasticsearch/AsyncBatchDeliveryPluginTest.java
Java
apache-2.0
11,724
require_relative '../../../../test_helper' require_relative '../endpoint_test_helper' class CommentsTest < Minitest::Test extend Smartsheet::Test::EndpointHelper attr_accessor :mock_client attr_accessor :smartsheet_client def category smartsheet_client.sheets.comments end def self.endpoints [ ...
smartsheet-platform/smartsheet-ruby-sdk
test/unit/smartsheet/endpoints/sheets/comments_test.rb
Ruby
apache-2.0
1,724
/* * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
QBNemo/spring-mvc-showcase
src/main/java/org/springframework/web/servlet/view/RedirectView.java
Java
apache-2.0
22,944
#include <sgx_fcntl_util.h> #include <sgx_ocall_util.h> #include <sgx_thread.h> INIT_LOCK(ocall_open2); INIT_LOCK(ocall_creat); INIT_LOCK(ocall_openat2); INIT_LOCK(ocall_fcntl1); INIT_LOCK(ocall_fcntl2); INIT_LOCK(ocall_fcntl3); int sgx_wrapper_open(const char *pathname, int flags, ...) { va_list ap; mode_t ...
shwetasshinde24/Panoply
case-studies/h2o/src/H2oEnclave/IO/sgx_fcntl.cpp
C++
apache-2.0
2,173
/* * 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-ssmincidents/src/main/java/com/amazonaws/services/ssmincidents/model/ListTimelineEventsResult.java
Java
apache-2.0
6,834
/* * 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 * d...
OSEHRA/ISAAC
core/api/src/main/java/sh/isaac/api/Util.java
Java
apache-2.0
3,905
/* * #%L * GarethHealy :: JBoss Fuse Examples :: MBeans Expose * %% * Copyright (C) 2013 - 2018 Gareth Healy * %% * 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....
garethahealy/jboss-fuse-examples
mbeans-expose/src/test/java/com/garethahealy/mbeans/expose/routes/CamelContextTest.java
Java
apache-2.0
923
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v10/resources/shared_criterion.proto package com.google.ads.googleads.v10.resources; public interface SharedCriterionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Shared...
googleads/google-ads-java
google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/resources/SharedCriterionOrBuilder.java
Java
apache-2.0
8,879
package com.example; /** * Created by hilmiat on 7/29/17. */ public class DemoConditional { public static char getGrade(int nilai){ char grade = 'D'; if(nilai > 85){ grade = 'A'; }else if(nilai > 69){ grade = 'B'; }else if(nilai >= 60){ grade =...
hilmiat/NF_android_complete
Pertemuan2/pertemuan_dua/src/main/java/com/example/DemoConditional.java
Java
apache-2.0
707
/* * * 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"); y...
sijie/bookkeeper
bookkeeper-server/src/test/java/org/apache/bookkeeper/client/BookKeeperTest.java
Java
apache-2.0
49,996
<?php class Template { protected $template; protected $variables = array(); public function __construct($template) { $this->template = $template; } public function __get($key) { return $this->variables[$key]; } public function __set($key, $value) { $th...
efetepe/magicdocumentation
framework/php/Template.php
PHP
apache-2.0
666
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides the Design Time Metadata for the sap.uxap.ObjectPageLayout control sap.ui.define([], function() { "use strict"; retur...
thbonk/electron-openui5-boilerplate
libs/openui5-runtime/resources/sap/uxap/ObjectPageLayout.designtime-dbg.js
JavaScript
apache-2.0
1,307
# frozen_string_literal: true # Copyright 2018 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...
googleapis/gapic-generator-ruby
shared/output/cloud/showcase/test/google/showcase/v1beta1/echo_operations_test.rb
Ruby
apache-2.0
10,911
package org.openqa.selenium.server.browserlaunchers; import junit.framework.TestCase; import org.apache.commons.logging.Log; import org.openqa.jetty.log.LogFactory; import org.openqa.selenium.browserlaunchers.AsyncExecute; import org.openqa.selenium.server.RemoteControlConfiguration; /** * {@link org.openqa.seleniu...
akiellor/selenium
java/server/test/org/openqa/selenium/server/browserlaunchers/SafariLauncherIntegrationTest.java
Java
apache-2.0
1,913
const Long = require('long'); const User = require('./User'); const Role = require('./Role'); const Emoji = require('./Emoji'); const Presence = require('./Presence').Presence; const GuildMember = require('./GuildMember'); const Constants = require('../util/Constants'); const Collection = require('../util/Collection');...
aemino/discord.js
src/structures/Guild.js
JavaScript
apache-2.0
34,442
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import str import six import logging import filecmp import os import re import sys import uuid import json import time from nose.plug...
zimingd/synapsePythonClient
tests/integration/test_command_line_client.py
Python
apache-2.0
36,272
/* * 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 ...
keith-turner/accumulo
core/src/main/java/org/apache/accumulo/core/metadata/TabletFileUtil.java
Java
apache-2.0
1,705
package com.codefactoring.android.backlogtracker.sync.fetchers; import android.util.Log; import com.codefactoring.android.backlogapi.BacklogApiClient; import com.codefactoring.android.backlogapi.models.User; import com.codefactoring.android.backlogtracker.sync.models.BacklogImage; import com.codefactoring.android.bac...
scarrupt/Capstone-Project
app/src/main/java/com/codefactoring/android/backlogtracker/sync/fetchers/UserDataFetcher.java
Java
apache-2.0
3,378
import collections import re import sys import time import traceback from functools import partial from multiprocessing import Process, Queue from unittest import skipIf from cassandra import ConsistencyLevel from cassandra.cluster import Cluster from cassandra.query import SimpleStatement # TODO add in requirements.t...
thobbs/cassandra-dtest
materialized_views_test.py
Python
apache-2.0
61,309
/* * Copyright 2010-2011 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 "l...
apetresc/aws-sdk-for-java-on-gae
src/main/java/com/amazonaws/services/autoscaling/model/transform/LimitExceededExceptionUnmarshaller.java
Java
apache-2.0
1,518
package edu.kit.ipd.sdq.kamp.ruledsl.runtime.rule; import java.util.concurrent.TimeUnit; import com.google.common.base.Stopwatch; import edu.kit.ipd.sdq.kamp.architecture.AbstractArchitectureVersion; import edu.kit.ipd.sdq.kamp.propagation.AbstractChangePropagationAnalysis; import edu.kit.ipd.sdq.kamp.ruledsl.suppor...
MartinLoeper/KAMP-DSL
edu.kit.ipd.sdq.kamp.ruledsl/src/edu/kit/ipd/sdq/kamp/ruledsl/runtime/rule/StopwatchRule.java
Java
apache-2.0
2,567
var when = require('when'); var request = require('request'); var settings = require("../../../../settings"); var log = require("../../../log"); // view components var view_start = require('../nodes/view/start'); var view_choice = require('../nodes/view/choice'); var view_form = require('../nodes/view/form'); var view_...
Ubicall/node-red
red/ubicall/plist/utils/index.js
JavaScript
apache-2.0
3,754
/** * @license * Copyright 2012 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 ...
picklesrus/blockly
demos/code/code.js
JavaScript
apache-2.0
17,281
package com.bookify.web.models; import com.bookify.core.Bill; import com.bookify.core.BillItem; import java.util.ArrayList; /** * Created by idumancic on 11/07/2017. */ public class PaymentViewModel { private Bill bill; private String username; private ArrayList<ItemViewModel> billItems; private S...
idumancic/bookify
web/src/main/java/com/bookify/web/models/PaymentViewModel.java
Java
apache-2.0
1,184
/* * Copyright 2018 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...
spinnaker/halyard
halyard-cli/src/main/java/com/netflix/spinnaker/halyard/cli/command/v1/config/deploy/ha/AbstractHaServiceEnableDisableCommand.java
Java
apache-2.0
2,298
/* * Copyright (c) 2016 GitHub, 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...
tuxology/bcc
tests/cc/test_usdt_probes.cc
C++
apache-2.0
12,086
# Copyright 2012 VMware, 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 ...
blueboxgroup/neutron
neutron/tests/unit/test_l3_agent.py
Python
apache-2.0
100,926
import { Component, ElementRef, NgZone, OnInit, ViewChild} from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { EventoModel } from './../../../model/evento.model'; import { TipoIngressoModel } from './../../../model/tipoingresso.model'; import { EventoService } from './../../../serv...
Wellington-Junior/ingressos
src/app/pages/evento/evento-editar/evento-editar.component.ts
TypeScript
apache-2.0
3,826
/** * Copyright (C) 2012 Ryan W Tenney (ryan@10e.us) * * 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...
ryantenney/metrics-spring
src/main/java/com/ryantenney/metrics/spring/reporter/AbstractReporterFactoryBean.java
Java
apache-2.0
5,530
/* * Copyright 2017 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 applic...
mminella/composed-task-runner
spring-cloud-starter-task-composedtaskrunner/src/test/java/org/springframework/cloud/task/app/composedtaskrunner/configuration/ComposedRunnerVisitorConfiguration.java
Java
apache-2.0
6,001
#include "kernel.h" #include "ilwisdata.h" #include "datadefinition.h" #include "columndefinition.h" #include "table.h" #include "visualattributemodel.h" #include "mapinformationattributesetter.h" REGISTER_PROPERTYEDITOR("mapinfopropertyeditor",MapInformationPropertySetter) MapInformationPropertySetter::MapInformatio...
ridoo/IlwisCore
ilwiscoreui/propertyeditors/mapinformationattributesetter.cpp
C++
apache-2.0
1,233
/* Copyright 2020 The Knative Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
knative/pkg
test/upgrade/testing_operations_test.go
GO
apache-2.0
7,868
// 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.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeA...
kelltrick/roslyn
src/Features/Core/Portable/ConvertToInterpolatedString/AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs
C#
apache-2.0
13,484
package cyclops.control.trytests; import cyclops.control.Either; import cyclops.control.Future; import cyclops.control.Ior; import cyclops.control.Maybe; import cyclops.control.Option; import cyclops.control.Trampoline; import cyclops.control.Try; import cyclops.function.Monoid; import cyclops.companion.Semigroups; im...
aol/cyclops
cyclops/src/test/java/cyclops/control/trytests/TryTest.java
Java
apache-2.0
8,892
/* * Copyright 2015 Brent Douglas and other contributors * as indicated by the @author tags. 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.or...
BrentDouglas/chainlink
core/src/main/java/io/machinecode/chainlink/core/jsl/fluent/task/FluentCheckpointAlgorithm.java
Java
apache-2.0
1,211
/* * Copyright 2017 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 applicab...
classmethod-sandbox/sparrow
src/main/java/jp/classmethod/sparrow/model/LineMessageEntityRepository.java
Java
apache-2.0
1,590
/* * 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-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/InstancePatchStateMarshaller.java
Java
apache-2.0
5,993
/***************************************************************************************************** * * Authors: * * <b> Java SDK for CWL </b> * * @author Paul Grosu (pgrosu@gmail.com), Northeastern University * @version 0.20 * @since April 28, 2016 * ...
common-workflow-language/cwljava
sdk-and-javadoc-generation/org/commonwl/lang/CommandOutputParameter.java
Java
apache-2.0
14,693
package io.quarkus.maven.it.assertions; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import java.io.File; import java.io.F...
quarkusio/quarkus
test-framework/maven/src/main/java/io/quarkus/maven/it/assertions/SetupVerifier.java
Java
apache-2.0
5,917
/* * Copyright 2021 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 in...
emmartins/wildfly-server-migration
servers/wildfly23.0/src/main/java/org/jboss/migration/wfly/task/subsystem/microprofile/WildFly23_0AddMicroprofileJwtSmallryeSubsystem.java
Java
apache-2.0
2,097
package p321 import ( "github.com/stretchr/testify/assert" "testing" ) func Test0(t *testing.T) { assert.Equal(t, []int{5, 4}, maxOneArray([]int{5, 2, 3, 4, 1}, 2)) assert.Equal(t, []int{6}, maxOneArray([]int{2, 4, 6, 5}, 1)) assert.Equal(t, []int{6, 5}, maxOneArray([]int{2, 4, 6, 5}, 2)) assert.Equal(t, []int{...
baishuai/leetcode
algorithms/p321/321_test.go
GO
apache-2.0
565
# Copyright 2011 OpenStack LLC. # 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 b...
salv-orlando/MyRepo
nova/tests/api/openstack/contrib/test_volume_types.py
Python
apache-2.0
5,886
from typing import Callable, List, Sequence, Tuple import numpy as np import pytest import scipy import tensorflow as tf from _pytest.fixtures import SubRequest import gpflow import gpflow.inducing_variables.multioutput as mf import gpflow.kernels.multioutput as mk from gpflow import set_trainable from gpflow.base im...
GPflow/GPflow
tests/gpflow/conditionals/test_multioutput.py
Python
apache-2.0
31,704
# frozen_string_literal: true # encoding: utf-8 # Copyright (C) 2018-2020 MongoDB 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 # # Un...
mongodb/mongo-ruby-driver
lib/mongo/operation/aggregate/op_msg.rb
Ruby
apache-2.0
983
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
emag/codereading-undertow
core/src/test/java/io/undertow/server/WriteTimeoutTestCase.java
Java
apache-2.0
4,935
// Copyright 2018 NetApp, Inc. All Rights Reserved. package main import ( "os" "github.com/netapp/trident/cli/cmd" ) func main() { cmd.ExitCode = cmd.ExitCodeSuccess if err := cmd.RootCmd.Execute(); err != nil { cmd.SetExitCodeFromError(err) } os.Exit(cmd.ExitCode) }
NetApp/trident
cli/main.go
GO
apache-2.0
282
package ru.stqa.pft.mantis.appmanager; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.ie.InternetExplorerDriver; import org.openqa.selenium.remote.BrowserType; import java.io.File; import java.io.FileRe...
martyanova/java_pft
mantis-tests/src/test/java/ru/stqa/pft/mantis/appmanager/ApplicationManager.java
Java
apache-2.0
1,475
class Fluentd module Setting class BufferMemory include Fluentd::Setting::Plugin register_plugin("buffer", "memory") def self.initial_params {} end def common_options [] end def advanced_options [] end end end end
fluent/fluentd-ui
app/models/fluentd/setting/buffer_memory.rb
Ruby
apache-2.0
302
/* * 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-elasticache/src/main/java/com/amazonaws/services/elasticache/model/transform/DescribeUpdateActionsResultStaxUnmarshaller.java
Java
apache-2.0
3,071
using System.ComponentModel.DataAnnotations; namespace ChatSystem.Server.Models.Account { public class AddExternalLoginBindingModel { [Required] [Display(Name = "External access token")] public string ExternalAccessToken { get; set; } } }
deyantodorov/Zeus-WebServicesCould-TeamWork
Source/ChatSystem/Server/ChatSystem.Server/Models/Account/AddExternalLoginBindingModel.cs
C#
apache-2.0
278
package mtag import ( "github.com/mabetle/mcore" "strings" ) // label tag format: // label="zh='' en=''" // GetLabelTag returns field "label" tag value. func GetLabelTag(v interface{}, fieldName string) (string, bool) { return GetTag(v, fieldName, "label") } // parse string to KeyValue map. func ParseKeyValueMap...
mabetle/mcore
mtag/tag_label.go
GO
apache-2.0
1,652
from __future__ import unicode_literals import pygst pygst.require('0.10') import gst # noqa from mopidy.audio import output import logging logger = logging.getLogger(__name__) # This variable is a global that is set by the Backend # during initialization from the extension properties encoder = 'identity' class ...
liamw9534/mopidy-rtp
mopidy_rtp/sink.py
Python
apache-2.0
1,944
/* * 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-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/DescribePatchPropertiesRequestProtocolMarshaller.java
Java
apache-2.0
2,847
/* # # Copyright 2014 The Trustees of Indiana University # # 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...
Data-to-Insight-Center/komadu
service-core/src/main/java/edu/indiana/d2i/komadu/ingest/db/TableAttributeData.java
Java
apache-2.0
1,714
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AC_ServiceClient.ACServiceReference; using AC_SessionReport; namespace AC_ServiceClient { public class ACServiceSessionReportHandler : ISessionReportHandler { public vo...
flitzi/AC_SERVER_APPS
AC_ServiceClient/ACServiceSessionReportHandler.cs
C#
apache-2.0
494
/* * 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 ...
oscarceballos/flink-1.3.2
flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrap.java
Java
apache-2.0
4,828
// 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/nodejs-kms
samples/generated/v1/key_management_service.generate_random_bytes.js
JavaScript
apache-2.0
2,228
package ru.job4j.toDoList.model.dao; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import ru.job4j.toDoList.model.entity.Item; import java.sql.Timestamp; i...
Mrsananabos/ashveytser
chapter_009/src/main/java/ru/job4j/toDoList/model/dao/HiberStorage.java
Java
apache-2.0
2,289
import { AbstractSimpleComponent } from './AbstractSimpleComponent'; import { AllowedTokens } from './AllowedTokens'; /** * Scalar component used to represent a categorical value as a simple token * identifying a term in a code space */ export class SweCategory extends AbstractSimpleComponent { /** * Value is ...
autermann/smle
src/app/model/swe/SweCategory.ts
TypeScript
apache-2.0
604
// Copyright 2016-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 ag...
cilium-team/cilium
daemon/cmd/status.go
GO
apache-2.0
25,264
package cn.com.warlock.wisp.core.plugin.processor.support.filter; import cn.com.warlock.wisp.core.dto.MysqlEntryWrap; import cn.com.warlock.wisp.core.exception.WispProcessorException; public interface IEntryFilterChain { void doFilter(MysqlEntryWrap entry) throws WispProcessorException; }
warlock-china/wisp
wisp-core/src/main/java/cn/com/warlock/wisp/core/plugin/processor/support/filter/IEntryFilterChain.java
Java
apache-2.0
298
/* * Copyright 2017 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...
codenergic/theskeleton
src/main/java/org/codenergic/theskeleton/post/PostRepository.java
Java
apache-2.0
1,323
/* * Copyright 2016 Bear Giles <bgiles@coyotesong.com> * * 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...
beargiles/cheat-sheet
webservices/Apache-CXF/apache-cxf-wss4j-interceptors/src/main/java/com/coyotesong/demo/cxf/ApacheCxfWss4jApplication.java
Java
apache-2.0
1,721
/* * Copyright 2016 LINE Corporation * * LINE Corporation 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
minwoox/armeria
core/src/test/java/com/linecorp/armeria/server/VirtualHostBuilderTest.java
Java
apache-2.0
10,501
/** * 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...
punkhorn/camel-upstream
components/camel-activemq/src/test/java/org/apache/camel/component/activemq/ActiveMQComponentFactoryUserNamePasswordTest.java
Java
apache-2.0
2,000
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2021 DBeaver Corp and others * * 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/LICE...
Sargul/dbeaver
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/DBPVirtualObject.java
Java
apache-2.0
917
try { if (Koadic.JOBKEY != "stage") { if (Koadic.isHTA()) { //HKCU\SOFTWARE\Microsoft\Internet Explorer\Style\MaxScriptStatements = 0xFFFFFFFF var path = "SOFTWARE\\Microsoft\\Internet Explorer\\Styles"; var key = "MaxScriptStatements"; Koadic.regi...
zerosum0x0/koadic
data/stager/js/stage.js
JavaScript
apache-2.0
1,812
package profitbricks import ( "context" "github.com/ionos-cloud/sdk-go/v5" "net/http" ) // Lan object type Lan struct { ID string `json:"id,omitempty"` PBType string `json:"type,omitempty"` Href string `json:"href,omitempty"` Metadata *Metadata `json:"metadata,omite...
profitbricks/profitbricks-sdk-go
lan.go
GO
apache-2.0
6,599
package me.wangkang.spring.messaging; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
iwangkang/spring
spring-framework-example/spring-messaging-example/src/main/java/me/wangkang/spring/messaging/App.java
Java
apache-2.0
191
package com.gdn.venice.facade; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import javax.ejb.EJBException; import javax.ejb.Stateless; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import javax.persistence.EntityManager; im...
yauritux/venice-legacy
Venice/Venice-Service/src/main/java/com/gdn/venice/facade/VenOrderItemHistorySessionEJBBean.java
Java
apache-2.0
19,139
package com.hiwhitley.chapter01; /** * Created by hiwhitley on 2016/10/27. */ public class Pet { private String type; public Pet(String type) { this.type = type; } public String getType() { return type; } }
hiwhitley/CodingEveryDay
src/com/hiwhitley/chapter01/Pet.java
Java
apache-2.0
248