repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
gigaal/calendarwrapper
src/org/joda/time/IllegalFieldValueException.java
213
package org.joda.time; public class IllegalFieldValueException extends IllegalArgumentException { /** Serialization lock. */ private static final long serialVersionUID = 6305711765985447737L; }
apache-2.0
open-pay/openpay-dotnet
OpenpayTest/MerchantServiceTest.cs
982
using Microsoft.VisualStudio.TestTools.UnitTesting; using Openpay; using Openpay.Entities; using Openpay.Entities.Request; using System; using System.Collections.Generic; namespace OpenpayTest { [TestClass] public class MerchantServiceTest { [TestMethod] public void TestMerchant_Get() ...
apache-2.0
Talend/ui
packages/components/src/VirtualizedList/index.js
1880
import Content from './Content.component'; import VirtualizedList from './VirtualizedList.component'; import { cellDictionary, headerDictionary } from './utils/dictionary'; import { ActionsColumn } from './CellActions'; import { BadgeColumn } from './CellBadge'; import { CheckboxColumn } from './CellCheckbox'; import ...
apache-2.0
javabilities/kafka-demo
consumer/src/main/java/com/javabilities/consumer/service/KafkaService.java
6681
package com.javabilities.consumer.service; import com.javabilities.consumer.config.KafkaProperties; import com.javabilities.consumer.config.ZookeeperProperties; import kafka.admin.AdminUtils; import kafka.common.TopicExistsException; import kafka.utils.ZKStringSerializer$; import org.I0Itec.zkclient.ZkClient; import o...
apache-2.0
agentmilindu/stratos
components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
53740
/* * 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
Communote/communote-server
communote/api/src/main/java/com/communote/server/model/client/ClientConstants.java
856
package com.communote.server.model.client; /** * This class holds constants of attributes and associations of the entity <code>Client</code>. * * @author Communote GmbH - <a href="http://www.communote.com/">http://www.communote.com/</a> */ public class ClientConstants { public final static String CLA...
apache-2.0
CORDEA/analysis_of_1000genomes-data
programs/machine_learning/homo_hetero.py
960
#!/bin/env python # encoding:utf-8 # # # __Author__ = "CORDEA" __date__ = "2014-09-05" chrList = ["chrX"] for i in range(1,23): chrList.append("chr" + str(i)) for chr in chrList: infile = open("proc/proc_input." + chr + ".vcf", "r") lines = infile.readlines() infile.close() conDict = {} c...
apache-2.0
jentfoo/aws-sdk-java
aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/ListTagsForStreamResult.java
7169
/* * 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...
apache-2.0
rowantyj/Jabber
droidparts-develop/droidparts-samples/droidparts-sample/src/org/droidparts/sample/DependencyProvider.java
1558
/** * Copyright 2014 Alex Yanchenko * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
apache-2.0
XLabs/xlabs.github.io
html/dir_0fa41e00b0d61de812967c86e24504f5.js
252
var dir_0fa41e00b0d61de812967c86e24504f5 = [ [ "Debug", "dir_810c4b35534b0047586dbdbdc390a7cf.html", "dir_810c4b35534b0047586dbdbdc390a7cf" ], [ "Release", "dir_ad0f63bef6a48e03dbf8615952642cf9.html", "dir_ad0f63bef6a48e03dbf8615952642cf9" ] ];
apache-2.0
spring-projects/spring-framework
spring-webmvc/src/main/java/org/springframework/web/servlet/config/ViewResolversBeanDefinitionParser.java
8644
/* * Copyright 2002-2021 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...
apache-2.0
junkdog/ecs-matrix
matrix/src/main/java/net/onedaybeard/ecs/model/ComponentDependencyMatrix.java
2811
package net.onedaybeard.ecs.model; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Map.Entry; import java.util.SortedMap; import net.onedaybeard.ecs.util.MatrixStringUtil...
apache-2.0
Erik-Yim/spring_boot_demo
springboot-transaction/src/main/java/cn/itcast/zt/SpringbootTransactionConfiguration.java
1920
package cn.itcast.zt; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.orm.jpa.JpaTransactionManager; ...
apache-2.0
adrapereira/jena
jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredSelector.java
2510
/* * 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 ma...
apache-2.0
google/or-tools
ortools/base/threadpool.cc
2495
// Copyright 2010-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
kenaiX/kenai-common-android
src/main/java/com/kenai/function/view/XViewManager.java
543
package com.kenai.function.view; import android.content.Context; import android.util.DisplayMetrics; import android.view.WindowManager; public class XViewManager { /** * [0]:width * [1]:height * @param context * @return */ public static int[] getScreenWidth_Height(Context context) { Disp...
apache-2.0
dlzhangxg/cloud-ml-sdk
cloud_ml_samples/paddlepaddle/linear_regression/trainer/task.py
2119
# Copyright 2017 Xiaomi, 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 writing,...
apache-2.0
daniel-de-vries/OpenLEGO
openlego/core/exec_comp.py
1643
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2019 I. van Gent 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
hubo1016/namedstruct
tests/testNamedstruct.py
10498
''' Created on 2016/1/19 :author: hubo ''' from __future__ import print_function import unittest from namedstruct import * from pprint import pprint bitfield_test = bitfield(uint32, (1, 'a'), (9, 'r'), (11, 'g'), (11, ...
apache-2.0
haonancool/OnlineJudge
leetcode/cpp/recover_tree.cc
977
class Solution { public: void recoverTree(TreeNode* root) { TreeNode *pre = 0, *cur = root, *last = 0, *first = 0, *second = 0; while (cur) { if (cur->left) { pre = cur->left; while (pre->right && pre->right != cur) pre = pre->right; if (pre->right) ...
apache-2.0
sylow/google-adwords-api
examples/v201101/get_all_ad_group_criteria.rb
3182
#!/usr/bin/ruby # # Author:: api.sgomes@gmail.com (Sérgio Gomes) # # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. # # License:: 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 o...
apache-2.0
lsimons/phloc-schematron-standalone
phloc-commons/src/main/java/com/phloc/commons/vminit/IVirtualMachineEventSPI.java
1551
/** * Copyright (C) 2006-2013 phloc systems * http://www.phloc.com * office[at]phloc[dot]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/license...
apache-2.0
openstack/sahara
sahara/utils/api.py
14624
# Copyright (c) 2013 Mirantis 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 writ...
apache-2.0
allenz8512/AndroidAppLog
android-app-log/src/main/java/me/allenz/androidapplog/Configure.java
4260
package me.allenz.androidapplog; import java.io.File; import java.util.ArrayList; import java.util.List; public class Configure { public static final LogLevel DEFAULT_ROOT_LOG_LEVEL = LogLevel.VERBOSE; private static final long DEFAULT_LOG_FILE_ROLLING_SIZE = 1024 * 1024; private static final String ROOT_LOGGER...
apache-2.0
spinnaker/deck
packages/core/src/pipeline/status/Artifact.tsx
1701
import React from 'react'; import { ArtifactIconService } from '../../artifact'; import type { IArtifact } from '../../domain'; import './artifact.less'; export interface IArtifactProps { artifact: IArtifact; isDefault?: boolean; sequence?: number; } export class Artifact extends React.Component<IArtifactProp...
apache-2.0
JunaidSarfraz/SchoolSystem
SchoolSystem/Exam_Management/ClassWiseExamSchedule.Designer.cs
1131
namespace SchoolSystem.Exam_Management { partial class ClassWiseExamSchedule { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
apache-2.0
WestCoastInformatics/UMLS-Terminology-Server
jpa-model/src/main/java/com/wci/umls/server/jpa/helpers/meta/GeneralMetadataEntryListJpa.java
923
/* * Copyright 2016 West Coast Informatics, LLC */ package com.wci.umls.server.jpa.helpers.meta; import java.util.List; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import com.wci.umls.server.helpers.AbstractResultList; import com.wci.umls.server.helpers.meta.Genera...
apache-2.0
JavaMoney/javamoney-shelter
retired/currencies/src/main/java/org/javamoney/currencies/internal/data/package-info.java
963
/* * Copyright (c) 2012, 2013, Credit Suisse (Anatole Tresch), Werner Keil. * * 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...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/package-info.java
2907
/* * 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
rfcx/rfcx-guardian-android
lib-audio/src/main/java/org/rfcx/guardian/audio/wav/ReadExample.java
1154
package org.rfcx.guardian.audio.wav; import java.io.*; public class ReadExample { public static void main(String[] args) { try { // Open the wav file specified as the first argument WavFile wavFile = WavFile.openWavFile(new File(args[0])); // Display information about the wav file wavFile.display()...
apache-2.0
o3project/openflowj-otn
src/main/java/org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstVer14.java
9080
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University // Copyright (c) 2011, 2012 Open Networking Foundation // Copyright (c) 2012, 2013 Big Switch Networks, Inc. // This library was generated by the LoxiGen Compiler. // See the file LICENSE.txt which should have been included in the sour...
apache-2.0
marcovc/procure
procure/kernel/interval.hpp
8320
/* * interval.hpp * * Created on: May 15, 2013 * Author: marco */ #ifndef PROCURE_KERNEL_INTERVAL_HPP_ #define PROCURE_KERNEL_INTERVAL_HPP_ #include <procure/kernel/common.hpp> #include <procure/kernel/rounding.hpp> #include <string> #include <iostream> #include <sstream> #include <assert.h> #include <lim...
apache-2.0
gstevey/gradle
subprojects/build-cache/src/main/java/org/gradle/caching/internal/controller/BuildCacheController.java
1100
/* * 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...
apache-2.0
google-research/rigl
rigl/experimental/jax/models/mnist_cnn_test.py
2067
# coding=utf-8 # Copyright 2022 RigL 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 agree...
apache-2.0
sindicate/solidstack.old
src/solidstack/script/operators/Member.java
5309
/*-- * Copyright 2012 René M. de Bloois * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
apache-2.0
AlexeyLA0509/PSTTrader
src/ProSecuritiesTrading.MOEX.FIX/Base/Field/CFICode.cs
1042
using System; namespace ProSecuritiesTrading.MOEX.FIX.Base.Field { public class CFICode { public const int Tag = 461; public static readonly byte[] TagBytes; public static readonly byte[] CFICodeMRCXXXWithSOH; static CFICode() { TagBytes = new byte[3]; ...
apache-2.0
yorkhci/chartex
application/views/chartex/document_vis_with_links.php
3113
<?php //////////////////////////////////////////////////////// //DOCUMENT VISUALISATION //RECEIVES THE DATA FOR THE DOCUMENT VISUALISATION //ENCODES IT IN JSON //PREPARES THE STRUCTURE FOR THE DOCUMENT VISUALISATION //NOT CURRENTLY USED //////////////////////////////////////////////////////// echo heading('Transacti...
apache-2.0
aglne/shifu
src/main/java/ml/shifu/shifu/core/dvarsel/AbstractMasterConductor.java
1500
/** * Copyright [2012-2014] PayPal Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
apache-2.0
mylovemaliang/newBmAndroid
app/src/main/java/cn/fuyoushuo/fqbb/view/flagment/SilentLoginTbFragment.java
5504
package cn.fuyoushuo.fqbb.view.flagment; import android.app.Activity; import android.os.Build; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.webkit.CookieManager; import android.webkit.WebChromeClient; import android.webkit.WebSettings; import android.webkit.WebView; ...
apache-2.0
MRivas-XumaK/slingBuild
testing/resourceresolver-mock/src/main/java/org/apache/sling/testing/resourceresolver/MockResourceResolver.java
11609
/* * 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
FreemapSlovakia/freemap-v3-nodejs-backend
src/routers/deviceTracking/getAllDevicesHandler.ts
615
import Router from '@koa/router'; import { SQL } from 'sql-template-strings'; import { pool } from '../../database'; import { acceptValidator } from '../../requestValidators'; import { authenticator } from '../../authenticator'; export function attachGetAllDevicesHandler(router: Router) { router.get( '/devices',...
apache-2.0
daxiong0226/sunny
src/main/java/cn/dx/sunny/dao/RoleMapper.java
1004
package cn.dx.sunny.dao; import cn.dx.sunny.domain.model.Role; import cn.dx.sunny.domain.vo.FilterParam; import org.springframework.stereotype.Component; import java.util.List; import java.util.Map; @Component("RoleMapper") public interface RoleMapper { int deleteByPrimaryKey(Integer id); int insert(Role re...
apache-2.0
turbokongen/home-assistant
homeassistant/components/homeassistant/triggers/numeric_state.py
5879
"""Offer numeric state listening automation rules.""" import logging import voluptuous as vol from homeassistant import exceptions from homeassistant.const import ( CONF_ABOVE, CONF_ATTRIBUTE, CONF_BELOW, CONF_ENTITY_ID, CONF_FOR, CONF_PLATFORM, CONF_VALUE_TEMPLATE, ) from homeassistant.co...
apache-2.0
hhj0325/pystock
com/hhj/pystock/snakecoin/block.py
535
import hashlib as hasher class Block: def __init__(self, index, timestamp, data, previous_hash): self.index = index self.timestamp = timestamp self.data = data self.previous_hash = previous_hash self.hash = self.hash_block() def hash_block(self): sha = hasher.s...
apache-2.0
read-write-web/react-foaf
js/lib/rsvp-latest.js
41290
(function(globals) { var define, requireModule, require, requirejs; (function() { var registry = {}, seen = {}; define = function(name, deps, callback) { registry[name] = { deps: deps, callback: callback }; }; requirejs = require = requireModule = function(name) { requirejs._eak_seen = registry; i...
apache-2.0
annarev/tensorflow
tensorflow/compiler/xla/service/dynamic_dimension_inference.cc
73525
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
apache-2.0
czyzby/gdx-lml
websocket/src/main/java/com/github/czyzby/websocket/WebSockets.java
4517
package com.github.czyzby.websocket; import com.badlogic.gdx.Gdx; import com.github.czyzby.websocket.data.WebSocketException; import com.github.czyzby.websocket.serialization.Serializer; import com.github.czyzby.websocket.serialization.impl.JsonSerializer; /** Utilities for web sockets. * * @author MJ */ public cla...
apache-2.0
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/model/ListConfigurationsOptions.java
2915
/* * (C) Copyright IBM Corp. 2017, 2020. * * 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
imai-lm/nnvm
tests/python/frontend/onnx/test_graph.py
1175
"""Test graph equality of onnx models.""" import nnvm import onnx from nnvm.compiler import graph_util, graph_attr from model_zoo import super_resolution def compare_graph(onnx_file, nnvm_sym, ishape): onnx_vars = [int(n) for n in onnx.__version__.split('.')] if hasattr(onnx, "__version__") else [] if len(onnx...
apache-2.0
applicaster/scaler
app/controllers/application_controller.rb
543
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception around_action :set_current_timezone http_basic_authenticate_with( name: ENV.fetch("SCALER_USER"), password...
apache-2.0
discophp/framework
test/unit/classes/FormTest.php
5202
<?php Class FormTest extends PHPUnit_Framework_TestCase { public function setUp(){ $this->Form = \Form::instance(); }//setUp public function testBasic(){ $form = $this->Form ->formProps(Array('method'=>'POST')) ->props(Array('class'=>'test')) ->make(Arr...
apache-2.0
handydannu/WEB_PROJECT
RPL2-master/includes/panel_menu.php
908
<?php echo ' <div id="templatemo_content_right"> <div class="templatemo_section"> <div class="templatemo_section_2_top"> Panel Menu </div> <div class="template...
apache-2.0
andyvesel/manageiq
spec/lib/ansible/runner_spec.rb
10150
describe Ansible::Runner do let(:uuid) { "201ac780-7bf4-0136-3b9e-54e1ad8b3cf4" } let(:env_vars) { {"ENV1" => "VAL1", "ENV2" => "VAL2"} } let(:extra_vars) { {"id" => uuid} } let(:tags) { "tag" } let(:result) { AwesomeSpawn::CommandResult.new("ansible-runner", "output", "", "0") } describe...
apache-2.0
kenzanlabs/deck
app/scripts/modules/dcos/loadBalancer/configure/wizard/upsert.controller.js
5252
'use strict'; const angular = require('angular'); import { ACCOUNT_SERVICE, LOAD_BALANCER_READ_SERVICE, LOAD_BALANCER_WRITE_SERVICE, V2_MODAL_WIZARD_SERVICE, TASK_MONITOR_BUILDER, SEARCH_SERVICE } from '@spinnaker/core'; module.exports = angular.module('spinnaker.dcos.loadBalancer.create.controller', [ LOAD_BALANC...
apache-2.0
googleapis/nodejs-recommender
.jsdoc.js
1485
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
apache-2.0
hortonworks/cloudbreak
freeipa/src/main/java/com/sequenceiq/freeipa/flow/freeipa/binduser/create/handler/LdapBindUserCreationHandler.java
3691
package com.sequenceiq.freeipa.flow.freeipa.binduser.create.handler; import java.util.Optional; import javax.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import com.sequenceiq.cloudbreak.common.event.Selectable; import com.sequenceiq.cloudb...
apache-2.0
ankyra/escape-core
script/type.go
1405
/* Copyright 2017, 2018 Ankyra 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...
apache-2.0
ferluchin/Tienda-Online
index.php
19673
<!DOCTYPE html> <?php session_start(); include("static/site_config.php"); include("static/clase_mysql.php"); $miconexion = new clase_mysql; $miconexion->conectar($db_name,$db_host, $db_user,$db_password); ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> ...
apache-2.0
twitter/twitter-kit-android
twitter-core/src/main/java/com/twitter/sdk/android/core/services/AccountService.java
1921
/* * Copyright (C) 2015 Twitter, 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 agr...
apache-2.0
cexbrayat/camel
components/camel-apns/src/test/java/org/apache/camel/component/apns/ApnsProducerTest.java
3379
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
apache-2.0
Appudo/Appudo.github.io
cli/source/class/appudo_cli_creator/view/desktop/I18nLangNode.js
2814
/* ************************************************************************ APPUDO CLI Creator https://www.appudo.com Copyright: 2018 Appudo UG (haftungsbeschränkt), https://www.appudo.com License: MIT License, https://opensource.org/licenses/MIT Authors: source@appudo.com *************************...
apache-2.0
whuwxl/etcd
etcdserver/v3_server.go
21481
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
apache-2.0
sumbad/inscriptum
src/hub/auth/auth.effect.ts
953
import { AUTH_ACTION, AuthAction, AuthActionAuth } from 'hub/auth/auth.action'; import hub from 'hub'; import { defer, Observable, of } from 'rxjs'; import { filter, switchMap, map, catchError } from 'rxjs/operators'; import { auth, silentAuth } from 'services/Auth.service'; export const auth$: Observable<AuthAction> ...
apache-2.0
ChanJLee/EnglishBaby
EnglishBabyProject/app/src/main/java/com/chan/englishbaby/view/LessonDialog.java
2164
package com.chan.englishbaby.view; import android.app.Dialog; import android.content.Context; import android.widget.RadioGroup; import com.chan.englishbaby.injector.annotation.ContextLife; import com.chan.englishbaby.utils.ConstUtil; import com.chan.englishboby.R; import javax.inject.Inject; import butterknife.Bind...
apache-2.0
codespare/RoslynClrHeapAllocationAnalyzer
ClrHeapAllocationsAnalyzer.Test/CallSiteImplicitAllocationAnalyzerTests.cs
3629
using System.Collections.Immutable; using ClrHeapAllocationAnalyzer; using Microsoft.CodeAnalysis.CSharp; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ClrHeapAllocationsAnalyzer.Test { [TestClass] public class CallSiteImplicitAllocationAnalyzerTests : AllocationAnalyzerTests { [Te...
apache-2.0
pfranza/LanguagePropertyTranslator
src/main/java/com/peterfranza/propertytranslator/TranslatorDictionaryEvolutionConfiguration.java
775
package com.peterfranza.propertytranslator; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.shared.model.fileset.FileSet; import com.peterfranza.propertytranslator.translators.TranslationType; public class TranslatorDictionaryEvolutionConfiguration { @Parameter(property = "translatio...
apache-2.0
luj1985/dionysus
dionysus-rest/src/main/java/com/huixinpn/dionysus/dto/user/ConsultantData.java
391
package com.huixinpn.dionysus.dto.user; import com.huixinpn.dionysus.domain.user.Consultant; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor public class ConsultantData extends UserData{ private int appointmentaNum; public ConsultantData(Consultant consultant){ super(consultant);...
apache-2.0
brianhks/tablesaw
src/main/java/tablesaw/RuleMethod.java
667
package tablesaw; import tablesaw.rules.Rule; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /** Created by bhawkins on 3/13/14. */ public class RuleMethod { private final Rule m_rule; private final Method m_method; public RuleMethod(Rule rule, Method method) { m_rul...
apache-2.0
jthoenes/ips
ips/src/main/ruby/3rdparty/facets/core/facets/array/only.rb
395
class Array # Returns the _only_ element in the array. Raises an IndexError if # the array's size is not 1. # # [5].only # -> 5 # [1,2,3].only # -> IndexError # [].only # -> IndexError # # CREDIT: Gavin Sinclair, Noah Gibbs def only unless size == 1 raise IndexError, "Ar...
apache-2.0
meruvian/yama-archetypes
starter/src/main/resources/archetype-resources/webapi/src/test/java/webapi/service/RoleServiceTest.java
1468
#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) package ${package}.webapi.service; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import javax.inject.Inject; import javax.validation.ConstraintViolationException; import org.junit.Test; imp...
apache-2.0
weghst/typhon
typhon-dist/src/main/scripts/war/bs/B_s045.java
1970
/* * Copyright 2014 The Skfiy Open Association. * * 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
datenstrudel/bulbs-core
src/integTest/java/net/datenstrudel/bulbs/core/domain/model/infrastructure/DomainServiceLocatorIT.java
747
package net.datenstrudel.bulbs.core.domain.model.infrastructure; import net.datenstrudel.bulbs.core.AbstractBulbsIT; import net.datenstrudel.bulbs.core.domain.model.bulb.BulbsHwService; import org.junit.Test; import static org.junit.Assert.assertNotNull; /** * @author Thomas Wendzinski */ public class DomainServic...
apache-2.0
open-o/nfvo
lcm/lcm/pub/nfvi/vim/vimadaptor.py
4716
# Copyright 2016 ZTE 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 applicable law or agreed to in ...
apache-2.0
vband/Sete-Pecados
Assets/Scripts/Mini_GananciaOLD/LoadImage.cs
308
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class LoadImage : MonoBehaviour { // Use this for initialization void Start () { GetComponent<Image>().sprite = GameObject.Find("minigame").GetComponent<mecanica>().rosto_correto; } }
apache-2.0
evankyle/sync_gateway
src/github.com/couchbase/sync_gateway/rest/api.go
7516
// Copyright (c) 2012 Couchbase, 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 w...
apache-2.0
fuzzmz/fever_saved_download
start.py
2190
__author__ = 'Constantin Serban' import re import urllib from multiprocessing.dummy import Pool as ThreadPool from sql_connect import main as gr from optparse import OptionParser import os def get_links(items): links = [] for item in items: matches = 0 if item is not None: matches...
apache-2.0
111pontes/ydk-py
cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_bgp_oper.py
70898
""" Cisco_IOS_XE_bgp_oper This module contains a collection of YANG definitions for monitoring BGP information.Copyright (c) 2016\-2017 by Cisco Systems, Inc.All rights reserved. """ import re import collections from enum import Enum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict...
apache-2.0
zeit/now-cli
packages/now-go/test/fixtures/10-go-mod/index.go
163
package handler import ( "fmt" "net/http" ) // Handler func func Handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "RANDOMNESS_PLACEHOLDER") }
apache-2.0
torrances/swtk-commons
commons-dict-wordnet-indexbyname/src/main/java/org/swtk/commons/dict/wordnet/indexbyname/instance/m/a/s/WordnetNounIndexNameInstanceMAS.java
20915
package org.swtk.commons.dict.wordnet.indexbyname.instance.m.a.s; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.TreeMap; import org.swtk.common.dict.dto.wordnet.IndexNoun; import com.trimc.blogger.commons.utils.GsonUtils; public final class WordnetNounIndexNameInsta...
apache-2.0
davido/buck
src/com/facebook/buck/cxx/Archive.java
8130
/* * Copyright 2014-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
apache-2.0
juangon/wildfly-swarm
testsuite/testsuite-microprofile-jwt/src/test/java/org/wildfly/swarm/microprofile/jwtauth/StaticKeyWithMPConfigTest.java
3040
package org.wildfly.swarm.microprofile.jwtauth; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.container.test.api.RunAsClient; import org.jboss.arquillian.junit.A...
apache-2.0
MyersResearchGroup/iBioSim
analysis/src/main/java/edu/utah/ece/async/ibiosim/analysis/simulation/hierarchical/math/EventNode.java
7628
/******************************************************************************* * * This file is part of iBioSim. Please visit <http://www.async.ece.utah.edu/ibiosim> * for the latest version of iBioSim. * * Copyright (C) 2017 University of Utah * * This library is free software; you can redistribute it and/or ...
apache-2.0
sverhoeven/octopus-job-ws
src/test/java/nl/esciencecenter/octopus/webservice/api/JobStatusResponseTest.java
7115
package nl.esciencecenter.octopus.webservice.api; /* * #%L * Octopus Job Webservice * %% * Copyright (C) 2013 Nederlands eScience Center * %% * 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...
apache-2.0
treeleafj/treeleaf
treeleaf-db/src/main/java/org/treeleaf/db/model/Model.java
295
package org.treeleaf.db.model; import org.treeleaf.common.json.Jsoner; import java.io.Serializable; /** * @Author leaf * 2015/1/8 0008 1:05. */ public abstract class Model implements Serializable { @Override public String toString() { return Jsoner.toJson(this); } }
apache-2.0
hai-nguyen/Impala
impala/src/main/java/hainguyen/impala/appsenum/Enums.java
348
package hainguyen.impala.appsenum; /** * Created by nguyenminhhai on 22/5/16. */ public class Enums { public enum EmailErrorType { EMPTY(0), INVALID(1); private final int id; EmailErrorType(int id) { this.id = id; } public int getId() { r...
apache-2.0
orioncode/orionplatform
orion_math/orion_math_core/src/main/java/com/orionplatform/math/linearalgebra/matrix/tasks/query/GetHadamartMatrixTask.java
1007
package com.orionplatform.math.linearalgebra.matrix.tasks.query; import com.orionplatform.core.abstraction.Orion; import com.orionplatform.math.linearalgebra.matrix.Matrix; import com.orionplatform.math.number.ANumber; import com.orionplatform.math.number.NumberRules; public class GetHadamartMatrixTask extends Orion ...
apache-2.0
tkobayas/optaplanner
optaplanner-core/src/main/java/org/optaplanner/core/impl/score/stream/drools/uni/DroolsExistsUniConstraintStream.java
2295
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
arstherapia/dobrapsychoterapia
src/MES/SecurityBundle/Form/MesUserType.php
1422
<?php namespace MES\SecurityBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class MesUserType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options...
apache-2.0
rafizanbaharum/cfi-gov
src/main/java/net/canang/cfi/core/vm/dao/impl/CfVoteDaoImpl.java
25804
package net.canang.cfi.core.vm.dao.impl; import net.canang.cfi.core.dd.model.*; import net.canang.cfi.core.so.dao.DaoSupport; import net.canang.cfi.core.so.model.CfMetadata; import net.canang.cfi.core.so.model.CfUser; import net.canang.cfi.core.vm.dao.CfVoteDao; import net.canang.cfi.core.vm.model.CfVote; import net.c...
apache-2.0
toff63/eip
src/main/java/net/francesbagual/github/eip/pattern/router/contentbased/mdb/ContentBasedRouterMDB.java
2036
package net.francesbagual.github.eip.pattern.router.contentbased.mdb; import javax.annotation.Resource; import javax.ejb.ActivationConfigProperty; import javax.ejb.MessageDriven; import javax.inject.Inject; import javax.jms.JMSContext; import javax.jms.JMSDestinationDefinition; import javax.jms.JMSDestinationDefinitio...
apache-2.0
Albul/support-date-time-pickers
support-date-time-pickers/src/main/java/com/albul/supportdatetimepickers/month/YearView.java
11142
/* * Copyright (C) 2013 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
hortonworks/cloudbreak
mock-infrastructure/src/main/java/com/sequenceiq/mock/experience/LiftieExperienceStoreService.java
2899
package com.sequenceiq.mock.experience; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicLong; import java.util.function.Function; import java.util.stream.Collectors; import org.springframework.stereotype.Service; import com.sequenceiq.mock.experience.resp...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/transform/PendingTaskCountJsonUnmarshaller.java
3011
/* * 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
webadvancedservicescom/magento
dev/tests/integration/testsuite/Magento/Core/Model/_files/design/frontend/Vendor/default/web/scripts.js
108
/** * @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) */ /* scripts.js */
apache-2.0
klu2/structurizr-java
structurizr-spring/test/unit/com/structurizr/analysis/SpringMvcControllerComponentFinderStrategyTests.java
1425
package com.structurizr.analysis; import com.structurizr.Workspace; import com.structurizr.model.Component; import com.structurizr.model.Container; import com.structurizr.model.Model; import com.structurizr.model.SoftwareSystem; import org.junit.Test; import static org.junit.Assert.assertEquals; public class SpringM...
apache-2.0
fungku/netsuite-php
src/Classes/GetServerTimeRequest.php
830
<?php /** * This file is part of the SevenShores/NetSuite library * AND originally from the NetSuite PHP Toolkit. * * New content: * @package ryanwinchester/netsuite-php * @copyright Copyright (c) Ryan Winchester * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 * @link https://githu...
apache-2.0
hinkleung/coolweather
app/src/main/java/com/example/hasee/coolweather/gson/Suggestion.java
586
package com.example.hasee.coolweather.gson; import com.google.gson.annotations.SerializedName; /** * Created by hasee on 2017/4/22. */ public class Suggestion { @SerializedName("comf") public Comfort comfort; @SerializedName("cw") public CarWash carWash; public Sport sport; public class...
apache-2.0
radicalbit/ambari
ambari-server/src/test/java/org/apache/ambari/server/security/authorization/TestUsers.java
15430
/* * 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
SAP/openui5
src/sap.m/test/sap/m/demokit/sample/RadioButtonGroup/Component.js
207
sap.ui.define([ "sap/ui/core/UIComponent" ], function (UIComponent) { "use strict"; return UIComponent.extend("sap.m.sample.RadioButtonGroup.Component", { metadata: { manifest: "json" } }); });
apache-2.0
jloisel/quiz
src/main/java/io/teamed/quizz/package-info.java
106
/** * Readable and Writeable Text implementations. * * @author jerome * */ package io.teamed.quizz;
apache-2.0