repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
andrenpaes/killbill
api/src/main/java/org/killbill/billing/junction/BillingEvent.java
3148
/* * Copyright 2010-2011 Ning, Inc. * * Ning licenses this file to you under the Apache License, version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
apache-2.0
HeTyDeHer/ZapovA
chapter_012-015/src/main/java/trietask/WordIndex.java
1661
package trietask; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import java.util.Set; /** * Нужно сделать класс WordIndex (можно создавать и другие сопутствующие классы, если это необходимо), * который по сути будет явл...
apache-2.0
jitsi/jitsi
src/net/java/sip/communicator/service/protocol/OperationSetBasicTelephony.java
12621
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
apache-2.0
patani1/PyHDB
contest/run_tests.py
471
import socket import time import pytest import sys def main(): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) while True: result = sock.connect_ex(('127.0.0.1', 30015)) if result == 0: break else: print("hana not available yet, retrying...") ...
apache-2.0
MarcoCaballero/FFB_DAW
SPRING-APP-TRADITIONAL+API/src/main/java/com/ffbet/fase3/repositories/BetSportMatchRepository.java
237
package com.ffbet.fase3.repositories; import org.springframework.data.jpa.repository.JpaRepository; import com.ffbet.fase3.domain.BetSportMatch; public interface BetSportMatchRepository extends JpaRepository<BetSportMatch, Long> { }
apache-2.0
ksuksu1601/java_training
addressbook_web_tests/src/test/java/com/ksu/addressbook/appmanager/DbHelper.java
2212
package com.ksu.addressbook.appmanager; import com.ksu.addressbook.model.ContactData; import com.ksu.addressbook.model.Contacts; import com.ksu.addressbook.model.GroupData; import com.ksu.addressbook.model.Groups; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.boot.MetadataSour...
apache-2.0
ifgeny87/pem_calc
frontend/js/main.js
775
/** js/main.js **/ 'use strict'; window.PEM = { updateTitle: function (title) { $('#header').html(title); }, updateMenu: function () { $('#mainmenu a').removeClass('selected'); // подсвечиваю нужную кнопку меню var link = location.href.split('/')[3]; $('#mainmenu a[...
apache-2.0
yousky/springboot
src/main/java/org/bwyou/springboot/model/viewmodel/IViewModel.java
180
package org.bwyou.springboot.model.viewmodel; public interface IViewModel<TEntityVM, TEntitySrc> { TEntityVM LoadModel(TEntitySrc baseModel, boolean recursive, String sort); }
apache-2.0
sxjscience/tvm
tests/python/relay/test_pass_alter_op_layout.py
47223
# 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 u...
apache-2.0
arunkumar9t2/crux
src/main/java/com/chimbori/crux/articles/Article.java
4660
package com.chimbori.crux.articles; import com.chimbori.crux.common.StringUtils; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import java.util.ArrayList; import java.util.Collection; import java.util.List; /** * Parsed result from web page containing important title, text and image. * <p> * A...
apache-2.0
objectiser/camel
components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
58253
/* * 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
ampproject/amp-by-example
playground/src/document/document.js
2824
// Copyright 2018 The AMPHTML 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 agre...
apache-2.0
artgon/netty
buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java
27961
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
apache-2.0
java110/MicroCommunity
service-api/src/main/java/com/java110/api/listener/machineTranslate/BaseMachineListener.java
5009
package com.java110.api.listener.machineTranslate; import com.alibaba.fastjson.JSONObject; import com.aliyuncs.utils.StringUtils; import com.java110.api.listener.AbstractServiceApiPlusListener; import com.java110.core.context.DataFlowContext; import com.java110.core.event.service.api.ServiceDataFlowEvent; import com.j...
apache-2.0
snaheth/pileup.js
src/main/data/formats/bbi.js
3438
/** * BBI is the shared structure between bigBed and bigWig. * These structures are based on UCSC's src/inc/bbiFile.h * @flow */ 'use strict'; import {typeAtOffset} from './helpers'; var TYPE_SET = { 'jBinary.littleEndian': true, 'Header': { _magic: ['const', 'uint32', 0x8789F2EB, true], version: 'u...
apache-2.0
crmzhangwei/crm
protected/modules/Customer/views/contact/index.php
7308
<?php /* @var $this CustomerinfoController */ /* @var $model CustomerInfo */ $this->breadcrumbs = array( '客户管理' => array('admin'), '电话记录', ); Yii::app()->clientScript->registerScript('search', " $('.search-button').click(function(){ $('.search-form').toggle(); return false; }); $('.search-form form').submit...
apache-2.0
falconre/falcon
lib/translator/ppc/test.rs
2556
use crate::architecture; use crate::architecture::Endian; use crate::executor::*; use crate::il::*; use crate::memory; use crate::translator::ppc::*; use crate::RC; fn init_driver_block<'d>( instruction_bytes: &[u8], scalars: Vec<(&str, Constant)>, memory_: Memory, ) -> Driver { let mut bytes = instruc...
apache-2.0
googleapis/python-dialogflow
google/cloud/dialogflow_v2beta1/services/versions/transports/grpc.py
16199
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
apache-2.0
Glamdring/welshare
src/main/java/com/welshare/model/User.java
17536
package com.welshare.model; import java.io.Serializable; import javax.persistence.Cacheable; import javax.persistence.Column; import javax.persistence.Embedded; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import java...
apache-2.0
wouldyougo/TRx
TRL.Common/Models/BarBuilder.cs
14667
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TRL.Common.Models; using TRL.Common.Extensions.Models; namespace TRL.Common.Models { //сущность: // включает сущности: // реализует методы: //сущность: // фабрика баров ...
apache-2.0
aeolusproject/conductor
src/db/migrate/20130116112864_add_keys_pf_pa.rb
342
class AddKeysPfPa < ActiveRecord::Migration def change add_foreign_key "pool_families_provider_accounts", "pool_families", :name => "pool_families_provider_accounts_pool_family_id_fk" add_foreign_key "pool_families_provider_accounts", "provider_accounts", :name => "pool_families_provider_accounts_provider_acc...
apache-2.0
davidtsadler/ebay-sdk-php
src/PostOrder/Types/SubmitCancellationRequestRestRequest.php
1039
<?php /** * DO NOT EDIT THIS FILE! * * This file was automatically generated from external sources. * * Any manual change here will be lost the next time the SDK * is updated. You've been warned! */ namespace DTS\eBaySDK\PostOrder\Types; /** * */ class SubmitCancellationRequestRestRequest extends \DTS\eBaySD...
apache-2.0
eddumelendez/spring-security
core/src/main/java/org/springframework/security/provisioning/UserDetailsManager.java
1799
/* * Copyright 2002-2016 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
Ethan826/udacity-conference
static/js/app.js
3495
'use strict'; /** * @ngdoc object * @name conferenceApp * @requires $routeProvider * @requires conferenceControllers * @requires ui.bootstrap * * @description * Root app, which routes and specifies the partial html and controller depending on the url requested. * */ var app = angular.module('conferenceApp', ...
apache-2.0
spullara/niblayout
src/com/sampullara/awt/platform/MacPlatformStandards.java
1735
/* Copyright 2004 Sam Pullara Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
apache-2.0
nickman/heliosJMX
src/main/java/com/heliosapm/script/compilers/groovy/ConfigurableGroovyScriptEngineFactory.java
2891
/** * Helios, OpenSource Monitoring * Brought to you by the Helios Development Group * * Copyright 2007, Helios Development Group and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softw...
apache-2.0
Incubaid/arakoon
pylabs/test/server/quick/test_client_lib.py
1151
""" Copyright (2010-2014) INCUBAID BVBA 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, so...
apache-2.0
deniskin82/sector-sphere
master/replica_unittest.cpp
1716
/***************************************************************************** Copyright 2011 VeryCloud 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...
apache-2.0
0end1/code_base
Node.js_Codebase/chapter05/ch05.process-sysinfo-node.js
367
/** * Created by king on 15-3-22. * * ch05.process-sysinfo-node.js */ console.info("------ Process System Info ------"); console.info(); console.info('Node.js版本号:'); console.info(process.version); console.info(); console.info('Node.js版本属性:'); console.info(process.versions); console.info(); console.info("------ ...
apache-2.0
bcuff/GeocodeSharp
src/GeocodeSharp/Properties/AssemblyInfo.cs
1491
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ge...
apache-2.0
nxjcproject/EasyUIJsonParser
EasyUIJsonParser/EasyUIJsonParser/ComboboxJsonParser.cs
1470
using EasyUIJsonParser.Infrastructure; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EasyUIJsonParser { public class ComboboxJsonParser { public static string DataTableToJson(DataTable table, params stri...
apache-2.0
rogeralsing/gam
actor/context.go
3843
package actor import "time" // Context contains contextual information for actors type Context interface { infoPart basePart messagePart senderPart receiverPart spawnerPart stopperPart } type SenderContext interface { infoPart senderPart messagePart } type ReceiverContext interface { infoPart receiverPa...
apache-2.0
ClarkHobbie/miranda
src/main/java/com/ltsllc/miranda/writer/IgnoreWritesState.java
1765
/* * Copyright 2017 Long Term Software LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
apache-2.0
hambroperks/prettytime
core/src/main/java/org/ocpsoft/prettytime/i18n/Resources_ua.java
6729
/* * Copyright 2012 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> * * 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....
apache-2.0
codingllama/trillian
storage/mysql/storage_test.go
8131
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
apache-2.0
Esri/route-planner-csharp
RoutePlanner_DeveloperTools/Source/ArcLogisticsApp/Pages/Page.cs
3264
/* | Version 10.1.84 | Copyright 2013 Esri | | 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...
apache-2.0
xiangxik/java-platform
extension/extension-cms/src/main/java/com/whenling/extension/cms/service/AdPositionService.java
295
package com.whenling.extension.cms.service; import org.springframework.stereotype.Service; import com.whenling.extension.cms.model.AdPosition; import com.whenling.module.domain.service.BaseService; @Service public class AdPositionService extends BaseService<AdPosition, Long> { }
apache-2.0
isaclidberg/TitaniumTest
app/controllers/login.js
1687
var args = arguments[0] || {}; function initUserInterface() { } function loginWithGoogleAccount(){ //initialize module var GoogleAuth = require('modules/googleAuth'); var googleAuth = new GoogleAuth({ clientId : 'CLIENT_ID', clientSecret : 'CLIENT_SECRET', propertyName : 'googleToken', scope...
apache-2.0
wavelets/smile
SmileMath/src/smile/math/random/RandomNumberGenerator.java
1593
/****************************************************************************** * Confidential Proprietary * * (c) Copyright Haifeng Li 2011, All Rights Reserved * ****************************************************************************...
apache-2.0
REMEXLabs/SmartFridge
app/src/main/java/com/example/poiz/fridgetablet/data/Picture.java
1513
package com.example.poiz.fridgetablet.data; /** * Created by poiz on 07.09.2016. */ import java.util.Date; /** * Class to hold information about a Picture */ public class Picture { String name; byte[] imageBytes; long timestamp; public long getTimestamp() { return timestamp; } p...
apache-2.0
enilfodne/matchbox
matchbox/storage/storagepb/profile_test.go
2543
package storagepb import ( "testing" "github.com/stretchr/testify/assert" ) var ( testProfile = &Profile{ Id: "id", CloudId: "cloud.yaml", IgnitionId: "ignition.json", } ) func TestProfileParse(t *testing.T) { cases := []struct { json string profile *Profile }{ {`{"id": "id", "cloud_...
apache-2.0
jmapper-framework/jmapper-api
JMapper Api/src/main/java/com/googlecode/jmapper/api/enums/NullPointerControl.java
865
/** * Copyright (C) 2012 - 2014 Alessandro Vurro. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
apache-2.0
hoverruan/weiboclient4j
src/main/java/weiboclient4j/model/Timeline.java
1281
package weiboclient4j.model; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; import java.util.List; /** * @author Hover Ruan */ @JsonIgnoreProperties(ignoreUnknown = true) public class Timeline { @JsonProperty("hasvisible") private boolean visib...
apache-2.0
OpenConext/OpenConext-manage
manage-server/src/test/java/manage/validations/BasicAuthenticationUsernameFormatValidatorTest.java
765
package manage.validations; import org.junit.Test; import java.util.Optional; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public class BasicAuthenticationUsernameFormatValidatorTest { private BasicAuthenticationUsernameFormatValidator subject = new BasicAuthenticationU...
apache-2.0
d07RiV/d3planner
scripts/locale.js
405
(function() { var order = [ "/scripts/locale/account.js?1236911196000", "/scripts/locale/itemflavor.js?1592721950096", "/scripts/locale/uistats.js?1543886559503", ]; var loadIdx = 0; function doLoad() { if (loadIdx >= order.length) { DiabloCalc.onLocaleLoaded(); } else { var p...
apache-2.0
PlanetWaves/clockworkengine
branches/3.0/engine/src/bullet-common/com/clockwork/bullet/debug/BulletRigidBodyDebugControl.java
2265
package com.clockwork.bullet.debug; import com.clockwork.bullet.collision.shapes.CollisionShape; import com.clockwork.bullet.objects.PhysicsRigidBody; import com.clockwork.bullet.util.DebugShapeFactory; import com.clockwork.math.Quaternion; import com.clockwork.math.Vector3f; import com.clockwork.renderer.RenderManag...
apache-2.0
jumpstarter-io/horizon
openstack_dashboard/api/network_base.py
7134
# Copyright 2013 NEC 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 ag...
apache-2.0
WojciechZankowski/iextrading4j
iextrading4j-api/src/test/java/pl/zankowski/iextrading4j/api/stats/RecordTest.java
1443
package pl.zankowski.iextrading4j.api.stats; import com.flextrade.jfixture.JFixture; import nl.jqno.equalsverifier.EqualsVerifier; import org.junit.jupiter.api.Test; import pl.zankowski.iextrading4j.api.util.ToStringVerifier; import java.math.BigDecimal; import java.time.LocalDate; import static org.assertj.core.api...
apache-2.0
Jeff-Hanson/scala-euler
src/test/scala/com/github/jeffhanson/problem9/PythagoreanTripletTest.scala
304
package com.github.jeffhanson.problem9 import org.scalatest.FunSuite class PythagoreanTripletTest extends FunSuite { test("Find the pythagorean triplet that sums to 1000") { assert( PythagoreanTripletAndSum.findSumAndPythagTriplet(1000, PythagoreanTripletAndSum.isPythagAndSum) == 31875000) } }
apache-2.0
DigitalAssetCom/hlp-candidate
server/network/src/main/scala/org/hyperledger/network/Messages.scala
6438
/** * 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 * dist...
apache-2.0
YukaiXin/Domes
app/src/main/java/com/kxyu/domes/okhttp/utils/ImageUtils.java
5180
package com.kxyu.domes.okhttp.utils; import android.graphics.BitmapFactory; import android.util.DisplayMetrics; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import java.io.InputStream; import java.lang.reflect.Field; public class ImageUtils { /** * 根据InputStream获...
apache-2.0
kdmitrieva16/python_training
generator/contact.py
1362
# -*- coding: utf-8 -*- from model.contact import Contact import random import string import os.path import jsonpickle import getopt import sys try: opts, args = getopt.getopt(sys.argv[1:],"n:f:", ["number of contacts","file"]) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n=5 f="data/conta...
apache-2.0
pascallouisperez/guice-jit-providers
src/com/google/inject/spi/DefaultElementVisitor.java
2420
/** * Copyright (C) 2008 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...
apache-2.0
dotnetcurry/azure-media-services-encoding-mvc
AzureMediaPortal/Migrations/201308011924358_InitialCreate.Designer.cs
727
// <auto-generated /> namespace AzureMediaPortal.Migrations { using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; public sealed partial class InitialCreate : IMigrationMetadata { private readonly ResourceManager Resources = ne...
apache-2.0
ravindraranwala/wso2-axis2-transports
modules/rabbitmq/src/main/java/org/apache/axis2/transport/rabbitmq/RabbitMQConnectionFactoryManager.java
5725
/* * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
apache-2.0
google/schemaorg-java
src/main/java/com/google/schemaorg/core/impl/EntertainmentBusinessImpl.java
44059
/* * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
apache-2.0
xiaozhu36/terraform-provider
vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/reset_app_secret.go
3704
package cloudapi //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 //dist...
apache-2.0
ignasi35/lagom
service/scaladsl/api/src/main/scala/com/lightbend/lagom/internal/scaladsl/api/ScaladslPath.scala
936
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.internal.scaladsl.api import com.lightbend.lagom.internal.api.Path import com.lightbend.lagom.internal.api.StaticPathPart import com.lightbend.lagom.scaladsl.api.Descriptor.CallId import com.lightbend.lagom.scalad...
apache-2.0
paulydboy/Quad-Vision
DroneControl/Symbol.py
254
class Symbol(object): def __init__(self, image, command): self._image = image self._command = command @property def image(self): return self._image @property def command(self): return self._command
apache-2.0
skycrown/CuteAssistant
app/src/main/java/net/skycrown/cuteassistant/network/gson/BaseBean.java
704
package net.skycrown.cuteassistant.network.gson; import com.google.gson.annotations.SerializedName; /** * Created by skycrown on 2018/6/10. * 服务器返回结果 */ public class BaseBean<T> { @SerializedName("results") private T data; private String code; private String message; public T getData() { ...
apache-2.0
prashant003/interimage-2
interimage-data/src/main/java/br/puc_rio/ele/lvc/interimage/data/imageioimpl/plugins/tiff/TIFFMetadataFormat.java
10153
/* * $RCSfile: TIFFMetadataFormat.java,v $ * * * Copyright (c) 2005 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistribution of source code must r...
apache-2.0
nate-rcl/irplus
ir_core/test/edu/ur/ir/index/DefaultPdfTextExtractorTest.java
6486
/** Copyright 2008 University of Rochester 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
jentfoo/aws-sdk-java
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisanalytics/model/LambdaOutput.java
9500
/* * 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
travisbrown/scrooge
scrooge-generator/src/test/scala/com/twitter/scrooge/frontend/TypeResolverSpec.scala
11633
package com.twitter.scrooge.frontend import com.twitter.scrooge.ast._ import com.twitter.scrooge.testutil.Spec class TypeResolverSpec extends Spec { "TypeResolve" should { val foo = EnumField(SimpleID("FOO"), 1, None) val bar = EnumField(SimpleID("BAR"), 2, Some("/** I am a doc. */")) val enum = Enum(Si...
apache-2.0
stevearm/syncaws
src/main/java/com/horsefire/syncaws/tasks/VersionTask.java
641
package com.horsefire.syncaws.tasks; import java.io.InputStream; import java.util.Properties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class VersionTask implements Task { private static final Logger LOG = LoggerFactory .getLogger(VersionTask.class); public VersionTask() { } public vo...
apache-2.0
bileto/transitfeed
transitfeed/gtfsfactory.py
8424
#!/usr/bin/python2.5 # Copyright (C) 2010 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 la...
apache-2.0
peterhuene/puppetcpp
lib/src/facts/facter.cc
3744
#include <puppet/facts/facter.hpp> #include <puppet/cast.hpp> #include <facter/facts/collection.hpp> #include <facter/facts/scalar_value.hpp> #include <facter/facts/map_value.hpp> #include <facter/facts/array_value.hpp> #include <boost/algorithm/string.hpp> using namespace std; using namespace puppet::runtime; using n...
apache-2.0
rust-rethinkdb/reql
reql/src/cmd/literal.rs
235
use crate::{cmd, Command}; use ql2::term::TermType; pub trait Arg { fn arg(self) -> cmd::Arg<()>; } impl Arg for Command { fn arg(self) -> cmd::Arg<()> { Self::new(TermType::Literal).with_arg(self).into_arg() } }
apache-2.0
Esimorp/MongoGO
app/src/sagas/todos.js
768
import {takeLatest} from "redux-saga"; import {call, put, fork} from "redux-saga/effects"; import {getAll} from "../services/todos"; import {message} from "antd"; function* getTodos() { try { const {jsonResult} = yield call(getAll); if (jsonResult.data) { yield put({ typ...
apache-2.0
kjartab/langeland
js/langeland/TimeModule.js
2519
var LS = LS || {}; LS.timeModule = (function() { function getTimeTextOld(timeString) { var now = new Date(); var time = convertTime(timeString); var diff = now.getTime() - time.getTime(); console.log(diff); if (diff < 1000*2*3600) { return Math.round(diff/(60*1000)) + ' min'; } else if ...
apache-2.0
wowiwj/cocos2dx
RunRunRun/Classes/Entity.hpp
716
// // Entity.hpp // RunRunRun // // Created by wangju on 15/10/7. // Copyright © 2015年 com.wangju.run01. All rights reserved. // #ifndef Entity_hpp #define Entity_hpp #include <cocos2d.h> #include "ControllerListener.hpp" #include "Controller.hpp" USING_NS_CC; class Entity : public Node,public ControllerListen...
apache-2.0
googleads/google-ads-java
google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/errors/KeywordPlanErrorProto.java
3295
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v9/errors/keyword_plan_error.proto package com.google.ads.googleads.v9.errors; public final class KeywordPlanErrorProto { private KeywordPlanErrorProto() {} public static void registerAllExtensions( com.google.protob...
apache-2.0
condast/Collin
Workspace/org.collin.core/src/org/collin/core/transaction/TetraTransaction.java
3350
package org.collin.core.transaction; import java.util.ArrayList; import java.util.Calendar; import java.util.Collection; import java.util.Date; import java.util.EventObject; import java.util.HashSet; import org.collin.core.essence.TetraEvent; import org.collin.core.essence.TetraEvent.Results; import org.co...
apache-2.0
cloudfoundry/cf-java-client
cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/_ToManyRelationship.java
1090
/* * Copyright 2013-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
h-crisis/assistant
test/ichikawa/common/Shape2GeoJson.java
2727
package ichikawa.common; import org.geotools.data.shapefile.ShapefileDataStore; import org.geotools.data.simple.SimpleFeatureCollection; import org.geotools.data.simple.SimpleFeatureSource; import org.geotools.geojson.feature.FeatureJSON; import java.io.*; import java.nio.charset.Charset; /** * Created by manabu o...
apache-2.0
FasterXML/jackson-core
src/main/java/com/fasterxml/jackson/core/JsonGenerator.java
108981
/* Jackson JSON-processor. * * Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi */ package com.fasterxml.jackson.core; import java.io.*; import java.math.BigDecimal; import java.math.BigInteger; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java....
apache-2.0
cyq7on/DataStructureAndAlgorithm
Project/Practice/src/com/cyq7on/leetcode/dp/LongestIncreasingSubsequence.java
1653
package com.cyq7on.leetcode.dp; import java.util.Arrays; /** * @description *给定一个无序的整数数组,找到其中最长上升子序列的长度。 * * 示例: * * 输入: [10,9,2,5,3,7,101,18] * 输出: 4 * 解释: 最长的上升子序列是 [2,3,7,101],它的长度是 4。 * 说明: * * 可能会有多种最长上升子序列的组合,你只需要输出对应的长度即可。 * 你算法的时间复杂度应该为 O(n2) 。 * 进阶: 你能将算法的时间复杂度降低到 O(n log n) 吗? * * 来源:力扣(LeetCo...
apache-2.0
RuedigerMoeller/fast-serialization
src/main/java/org/nustaq/serialization/FSTSerializerRegistry.java
4274
/* * Copyright 2014 Ruediger Moeller. * * 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
saulbein/web3j
core/src/main/java/org/web3j/tx/TransactionManager.java
3950
package org.web3j.tx; import java.io.IOException; import java.math.BigInteger; import java.util.Optional; import org.web3j.protocol.Web3j; import org.web3j.protocol.core.methods.response.EthGetTransactionReceipt; import org.web3j.protocol.core.methods.response.EthSendTransaction; import org.web3j.protocol.core.method...
apache-2.0
SrGrieves/rasberry-node-frame
monitorcontrol.js
652
const util = require('util'); const exec = util.promisify(require('child_process').exec); const { execSync } = require('child_process'); const _ = require('lodash'); async function set_vcgencmd(mode) { const { stdout, stderr } = await exec(`/opt/vc/bin/vcgencmd display_power ${mode}`); // return stdout; } async fu...
apache-2.0
PalomaMobile/paloma-android-sdk
palomamobile-android-sdk-core/android-sdk-core-library/src/main/java/com/palomamobile/android/sdk/core/CustomHeader.java
992
package com.palomamobile.android.sdk.core; /** * Defines names of custom headers available to all Service interfaces across the various SDK modules. The values of those * headers are used by the SDK Core module to enhance SDK functionality such as to determine compatibility between the * SDK module version and curr...
apache-2.0
bovigny/cassandra-driver-spark
src/test/scala/com/datastax/driver/spark/types/CanBuildFromTest.scala
958
package com.datastax.driver.spark.types import com.datastax.driver.spark.util.SerializationUtil import org.junit.Assert._ import org.junit.Test class CanBuildFromTest { @Test def testBuild() { val bf = CanBuildFrom.setCanBuildFrom[Int] val builder = bf.apply() builder += 1 builder += 2 builde...
apache-2.0
deepanjanroy/lighthouse
lighthouse-core/audits/byte-efficiency/unused-javascript.js
5051
/** * @license Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or a...
apache-2.0
aehlig/bazel
src/main/java/com/google/devtools/build/lib/skylarkbuildapi/ProtoConfigurationApi.java
1179
// Copyright 2018 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
apache-2.0
kjvarga/google-api-ads-ruby
dfp_api/examples/v201605/activity_service/get_all_activities.rb
2482
#!/usr/bin/env ruby # Encoding: utf-8 # # Copyright:: Copyright 2013, 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 of the License at # # ...
apache-2.0
pashute/docs.particular.net
samples/encryption/message-body-encryption/Version_4/Endpoint2/Program.cs
787
using System; using NServiceBus; using NServiceBus.Installation.Environments; class Program { static void Main() { Configure.Serialization.Json(); Configure configure = Configure.With(); configure.DefineEndpointName("Samples.MessageBodyEncryption.Endpoint2"); configure.DefaultB...
apache-2.0
naokiur/design-pattern-sample
src/main/java/jp/ne/naokiur/design/pattern/iterator/Iterator.java
186
package jp.ne.naokiur.design.pattern.iterator; public interface Iterator { boolean hasNext(); boolean isMatchedAge(Integer age); Employee next(); Employee current(); }
apache-2.0
xiaozhu36/terraform-provider
vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_cover_job_list.go
4252
package mts //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, software //distribut...
apache-2.0
domchen/typescript-plus
src/compiler/program.ts
163102
namespace ts { const ignoreDiagnosticCommentRegEx = /(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/; export function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName = "tsconfig.json"): string | undefined { return forEachAncestorDirectory(searchPath, ancestor => { ...
apache-2.0
eemirtekin/Sakai-10.6-TR
sitestats/sitestats-tool/src/java/org/sakaiproject/sitestats/tool/wicket/components/SelectOptionsGroup.java
1455
/** * $URL: https://source.sakaiproject.org/svn/sitestats/tags/sakai-10.6/sitestats-tool/src/java/org/sakaiproject/sitestats/tool/wicket/components/SelectOptionsGroup.java $ * $Id: SelectOptionsGroup.java 105078 2012-02-24 23:00:38Z ottenhoff@longsight.com $ * * Copyright (c) 2006-2009 The Sakai Foundation * * Li...
apache-2.0
inloop/AndroidViewModel
sample/src/main/java/eu/inloop/viewmodel/sample/fragment/SampleBindingFragment.java
1292
package eu.inloop.viewmodel.sample.fragment; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import android.view.View; import androidx.fragment.app.Fragment; import eu.inloop.viewmodel.binding.ViewModelBaseBindingFragment; import eu.inloop.viewmodel.binding.ViewModel...
apache-2.0
consulo/consulo-markdown
src/main/java/org/intellij/plugins/markdown/highlighting/MarkdownColorSettingsPage.java
8693
/* * Copyright 2000-2015 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...
apache-2.0
GAIA-GMU/PAR
Documentation/Tutorials/Source/Tutorial9/Source/Tutorial9/Private/PARGameMode.cpp
1458
// Fill out your copyright notice in the Description page of Project Settings. #include "Tutorial9.h" #include "PARGameMode.h" #include "Humanoid.h" #include "lwnet.h" extern parTime *partime; extern Actionary *actionary; extern TArray<AHumanoid*> all_agents; extern TArray<UAnimMontage*> all_montages; extern ActionTa...
apache-2.0
TheNotoriousOOP/Iteration3
src/main/model/ability_management/ability/move_abilities/MoveNorthEastAbility.java
386
package model.ability_management.ability.move_abilities; import model.ability_management.ability.Ability; /** * */ public class MoveNorthEastAbility extends Ability { public MoveNorthEastAbility() { } @Override public void perform() { getActor().moveNorthEast(); } @Override pu...
apache-2.0
sumveds/weather-report
app.js
671
var express = require('express'); var path = require('path'); // var favicon = require('serve-favicon'); var logger = require('morgan'); var bodyParser = require('body-parser'); var weather = require('./routes/weather'); var app = express(); // view engine setup app.set('views', path.join(__dirname, 'views')); app.s...
apache-2.0
domaframework/simple-examples
dao-style-text/src/test/java/example/dao_style_text/SelectTest.java
4556
package example.dao_style_text; import static java.util.stream.Collectors.*; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import example.dao_style_text.dao.EmployeeDao; import example.dao_style_text.dao.EmployeeDaoImpl; import example.dao_s...
apache-2.0
todd-x86/tkplus
panel.py
787
from control import Control from Tkinter import Frame as TkFrame BORDER_SINGLE = 'ridge' BORDER_RAISED = 'raised' BORDER_LOWERED = 'sunken' BORDER_NONE = 'flat' class Panel(Control): def __init__(self, parent, **kwargs): Control.__init__(self, TkFrame(parent._frame), **kwargs) self._frame = self._...
apache-2.0
paulomorgado/StateMachineExplorations
tests/StateMachineExplorationTests/Runtime/RuntimeStateBaseTests.cs
9285
namespace Morgados.StateMachineExploration.Tests.Runtime { using System; using System.Threading; using System.Threading.Tasks; using FakeItEasy; using Morgados.StateMachines.Runtime; using Xunit; public class RuntimeStateBaseTests { [Fact] public async Task ExecuteAsync...
apache-2.0
rethink-neil/rosnodejs
test/stress.js
7582
const chai = require('chai'); const xmlrpc = require('xmlrpc'); const rosnodejs = require('rosnodejs'); const TOPIC = '/topic'; const TYPE = 'std_msgs/String'; const SERVICE = '/service'; const SRV = 'std_srvs/Empty'; const MASTER_PORT = 11234; // Each Test in this suite simulates rapid fire connection/disconnectio...
apache-2.0
DaniPix/Countries
app/src/main/java/com/readr/ro/countries/constants/RestConstants.java
453
package com.readr.ro.countries.constants; /** * Created by Domnica on 11/1/2016. */ public class RestConstants { // Rest Constants for Retrofit public static final String BASE_ENDPOINT = "https://restcountries.eu/rest/v1/"; public static final String FETCH_ALL_COUNTRIES = "all"; public static final...
apache-2.0