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
# -*- coding: utf-8 -*- from __future__ import absolute_import from ... import * from talon.signature.learning import featurespace as fs def test_apply_features(): s = '''This is John Doe Tuesday @3pm suits. I'll chat to you then. VP Research and Development, Xxxx Xxxx Xxxxx 555-226-2345 john@example.com'''...
mailgun/talon
tests/signature/learning/featurespace_test.py
Python
apache-2.0
1,402
#!/usr/bin/env python3 """Generate an updated requirements_all.txt.""" import importlib import os import pathlib import pkgutil import re import sys from script.hassfest.model import Integration COMMENT_REQUIREMENTS = ( "Adafruit-DHT", "Adafruit_BBIO", "avion", "beacontools", "blinkt", "bluepy...
fbradyirl/home-assistant
script/gen_requirements_all.py
Python
apache-2.0
11,383
/** * */ package me.learn.personal.month2; /** * Title 1252 : * * Given n and m which are the dimensions of a matrix initialized by zeros and * given an array indices where indices[i] = [ri, ci]. For each pair of [ri, ci] * you have to increment all cells in row ri and column ci by 1. * * Return the number...
balajiboggaram/algorithms
src/me/learn/personal/month2/CellsWithOddValuesInMatrix.java
Java
apache-2.0
1,601
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013.11.29 at 12:35...
ryandcarter/hybris-connector
src/main/java/org/mule/modules/hybris/model/VariantTypeDTO.java
Java
apache-2.0
1,073
/** * @license Copyright 2020 The Lighthouse 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 applica...
ev1stensberg/lighthouse
lighthouse-core/audits/third-party-facades.js
JavaScript
apache-2.0
11,065
/* * Copyright 2012 LBi Netherlands B.V. * * 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...
LBiNetherlands/LBi.Cli.Arguments
LBi.Cli.Arguments/Parsing/Ast/LiteralValueType.cs
C#
apache-2.0
759
/** * Copyright 2015 Groupon.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
groupon/promise
src/main/java/com/groupon/promise/function/PromiseFunctionResult.java
Java
apache-2.0
1,887
package com.neilren.neilren4j.dao; import com.neilren.neilren4j.dbentity.TLogSendEmail; import java.util.List; public interface TLogSendEmailMapper { int deleteByPrimaryKey(Long id); int insert(TLogSendEmail record); TLogSendEmail selectByPrimaryKey(Long id); List<TLogSendEmail> selectAll(); i...
NeilRen/NEILREN4J
src/main/java/com/neilren/neilren4j/dao/TLogSendEmailMapper.java
Java
apache-2.0
366
package com.myapp.demo.spring.proxy; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; /** * Created by Zhourl on 2017/8/11. */ public class PerformanceHandler implements InvocationHandler {//①实现InvocationHandler private Object target; public PerformanceHandler(Object target) {//...
zhouronglv/myapp
myapp-demo/src/main/java/com/myapp/demo/spring/proxy/PerformanceHandler.java
Java
apache-2.0
696
package io.github.suxil.service; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cl...
suxi-lu/learn
learn-service/src/main/java/io/github/suxil/service/LearnServiceApplication.java
Java
apache-2.0
1,309
package marki.at.Client.events; import marki.at.Client.utils.Message; /** * Created by marki on 29.10.13. */ public class newMessageEvent { public final Message message; public newMessageEvent(Message message) { this.message = message; } }
markini/ServiceMonitoringTestSystem
Client/src/main/java/marki/at/Client/events/newMessageEvent.java
Java
apache-2.0
266
using System; using System.Collections.Generic; using System.Text; using WikiClientLibrary.Client; namespace WikiClientLibrary.Sites { /// <summary> /// Represents a token placeholder in the <see cref="MediaWikiFormRequestMessage"/>. /// This enables <see cref="WikiSite"/> to detect bad tokens. /// </...
CXuesong/WikiClientLibrary
WikiClientLibrary/Sites/WikiSiteToken.cs
C#
apache-2.0
850
/** * Code contributed to the Learning Layers project * http://www.learning-layers.eu * Development is partly funded by the FP7 Programme of the European Commission under * Grant Agreement FP7-ICT-318209. * Copyright (c) 2016, Graz University of Technology - KTI (Knowledge Technologies Institute). * For a list of...
learning-layers/SocialSemanticServer
servs/livingdocument/livingdocument.datatype/src/main/java/at/tugraz/sss/servs/livingdocument/datatype/SSLivingDocSQLTableE.java
Java
apache-2.0
1,146
/* @flow */ import Crypto from '../components/cryptography'; import Config from '../components/config'; import ListenerManager from '../components/listener_manager'; import ReconnectionManager from '../components/reconnection_manager'; import utils from '../utils'; import { MessageAnnouncement, SubscribeEnvelope, Statu...
amriteshkumar1/sales-service
node_modules/pubnub/src/core/components/subscription_manager.js
JavaScript
apache-2.0
10,768
package com.antarescraft.kloudy.slots.events; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import com.antarescraft.kloudy.hologuiapi.plugincore.command.CommandHandler; import com.antarescraft.kloudy.hologuiapi.p...
Kloudy/Slots
src/com/antarescraft/kloudy/slots/events/CommandEvent.java
Java
apache-2.0
1,946
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
deeplearning4j/deeplearning4j
deeplearning4j/deeplearning4j-core/src/main/java/org/deeplearning4j/core/loader/impl/SerializedDataSetLoader.java
Java
apache-2.0
1,380
/* * $Id$ * * SARL is an general-purpose agent programming language. * More details on http://www.sarl.io * * Copyright (C) 2014-2021 the original authors 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 ma...
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/sarl/actionprototype/FormalParameterProvider.java
Java
apache-2.0
3,887
/* * Copyright 2016 Open Networking Laboratory * * 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...
sonu283304/onos
drivers/lumentum/src/main/java/org/onosproject/drivers/lumentum/LumentumFlowRuleDriver.java
Java
apache-2.0
16,751
/* * Copyright (C) 2017 Circulo Odontologico del Chaco * * 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...
jorgevillaverde/co
src/main/java/ar/com/circuloodontochaco/co/model/contraints/RemesaValidator.java
Java
apache-2.0
2,000
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized re...
sugarcrmlabs/AdminSudo
SudoAudit2016_11_08_114528/SugarModules/modules/sa_SudoAudit/clients/base/views/search-list/search-list.php
PHP
apache-2.0
1,127
package com.wonders.alpha.bo; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="alpha") public class Alpha implements Serializable{ private String id; @Id @Column(name="ID") public S...
LotteryOne/tools
src/com/wonders/alpha/bo/Alpha.java
Java
apache-2.0
409
package de.undercouch.citeproc; import de.undercouch.citeproc.helper.CSLUtils; import java.io.IOException; import java.net.URL; import java.util.HashMap; import java.util.Map; /** * Default implementation of {@link LocaleProvider}. Loads locales from * the classpath. * @author Michel Kraemer */ public class Defa...
michel-kraemer/citeproc-java
citeproc-java/src/main/java/de/undercouch/citeproc/DefaultLocaleProvider.java
Java
apache-2.0
1,590
'use strict'; /** * Requirements * @ignore */ const BaseValueObject = require('../BaseValueObject.js').BaseValueObject; const Entity = require('./Entity.js').Entity; const Site = require('../site/Site.js').Site; const ContentKind = require('../ContentKind.js'); const BaseMap = require('../../base/BaseMap.js').BaseM...
entoj/entoj-core
source/model/entity/EntityAspect.js
JavaScript
apache-2.0
4,718
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
rafati/unitime
JavaSource/org/unitime/timetable/onlinesectioning/custom/purdue/XEInterface.java
Java
apache-2.0
8,329
/* * Copyright 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...
blox/blox
end-to-end-tests/src/main/java/com/amazonaws/blox/integ/ECSClusterWrapper.java
Java
apache-2.0
2,607
function swl_scrollStopExtend() { var a = SWL.$.event.special, b = "D" + +new Date, c = "D" + (+new Date + 1); a.scrollstart = { setup : function() { var c, d = function(b) { var d = this, e = arguments; c ? clearTimeout(c) : (b.type = "scrollstart", SWL.$.event.handle.apply(d, e)), c = setTimeout(functi...
EZWebvietnam/vieclam24h
template/home/js/jquery.scrollstore.js
JavaScript
apache-2.0
1,126
/** * (C) Copyright 2016-2019 teecube * (https://teecu.be) 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/LICENSE-2.0 * * Unless ...
teecube/t3
t3-site-enhancer/src/main/java/t3/site/gitlab/tags/Release.java
Java
apache-2.0
2,129
package com.example.android.sunshine.app.sync; import android.accounts.Account; import android.accounts.AccountManager; import android.annotation.SuppressLint; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.AbstractThreadedSyncAdapter; import android.content.ContentPro...
dconz13/MySunshine-Watch-Face
app/src/main/java/com/example/android/sunshine/app/sync/SunshineSyncAdapter.java
Java
apache-2.0
29,790
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Versionr.Objects { [ProtoBuf.ProtoContract] public class VaultLock { [ProtoBuf.ProtoMember(1)] [SQLite.PrimaryKey] public Guid ID { get; set; }...
eatplayhate/versionr
VersionrCore/Objects/VaultLock.cs
C#
apache-2.0
566
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateInstanceIdTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('instance_id...
dreamfactorysoftware/df-core
database/migrations/2020_03_02_121555_create_instance_id_table.php
PHP
apache-2.0
719
// // // Copyright 2017 Mirko Raner // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
raner/top.java.matrix
src/main/java/top/java/matrix/MatrixFactory.java
Java
apache-2.0
1,406
//===--- LetPropertiesOpts.cpp - Optimize let properties ------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
practicalswift/swift
lib/SILOptimizer/IPO/LetPropertiesOpts.cpp
C++
apache-2.0
22,467
//===- InstCombineVectorOps.cpp -------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
slightperturbation/Cobalt
ext/emsdk_portable/clang/tag-e1.34.1/src/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
C++
apache-2.0
49,354
package jpaint.model.bean; import java.awt.Color; import java.awt.Graphics; import java.util.Date; public abstract class Figura { private int pkfigura = -1; private int x; private int y; private int largura; private int altura; private int tipo; private Color colorBorda; ...
Pompeu/Jpaint
src/jpaint/model/bean/Figura.java
Java
apache-2.0
4,031
package com.ax.demo.entity; import javax.validation.constraints.Min; /** * A Hipster. Used as entity in this demo application. */ public class Hipster { public enum JeansType { SKINNY, SUPERSKINNY; } @Min(value = 0, message = "Id must be positive") private int id; private String name; private JeansType j...
fexbraun/hipster-o-mat
src/main/java/com/ax/demo/entity/Hipster.java
Java
apache-2.0
2,283
/* * Copyright 2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
robinverduijn/gradle
subprojects/build-init/src/main/java/org/gradle/buildinit/plugins/internal/ModuleNameBuilder.java
Java
apache-2.0
830
/** * Copyright (C) 2011 rwitzel75@googlemail.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
rwitzel/streamflyer
streamflyer-core/src/main/java/com/github/rwitzel/streamflyer/regex/addons/util/EmbeddedFlagUtil.java
Java
apache-2.0
2,915
/* Copyright 2015 The Kubernetes 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, ...
kubernetes/gengo
namer/namer_test.go
GO
apache-2.0
2,994
package controllers import ( . "appinhouse/server/constants" "appinhouse/server/models" "github.com/astaxie/beego" ) type CreateAppController struct { BaseController } func (c *CreateAppController) CreateApp() { dto := NewSuccessResponseDto() app := c.Ctx.Input.Param(":app") desc := c.GetString("description"...
rog2/appinhouse
server/controllers/createapp.go
GO
apache-2.0
1,269
package me.pjq.pushup.utils; /** * Created by pjq on 11/9/13. */ import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.Rect; import android.view.View; import me.pjq...
pjq/pushup
PushUp/src/main/java/me/pjq/pushup/utils/ScreenshotUtils.java
Java
apache-2.0
2,814
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Gemstone; import java.io.File; import java.util.ArrayList; /** * * @author SBANTA * - 04/04/2012 - updated for Gemstone */ public class CachingUserRecord { private static String SName = sagex.api.Globa...
jusjoken/gemstone2
src/main/java/Gemstone/CachingUserRecord.java
Java
apache-2.0
3,416
/* * * Copyright 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...
yelhouti/springfox
springfox-spring-web/src/main/java/springfox/documentation/spring/web/readers/parameter/ParameterRequiredReader.java
Java
apache-2.0
4,326
package gex.newsml.nitf; import lombok.ToString; import java.util.HashMap; import java.util.Map; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyAttribute; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.ann...
gextech/iptc-newsml
src/main/java/gex/newsml/nitf/DuKey.java
Java
apache-2.0
4,635
// Copyright 2015 go-swagger maintainers // // 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...
go-swagger/go-swagger
generator/typeresolver_test.go
GO
apache-2.0
20,309
package router import ( "fmt" "io" "io/ioutil" "math/rand" "os" "strconv" "strings" "github.com/golang/glog" "github.com/spf13/cobra" kapi "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/errors" kclient "k8s.io/kubernetes/pkg/client/unversioned" kclientcmd "k8s.io/kubernetes/pkg/client/unversione...
burmanm/origin
pkg/cmd/admin/router/router.go
GO
apache-2.0
23,695
using Autofac; using DFWin.Core; namespace DFWin { public static class Setup { public static IContainer CreateIoC() { var containerBuilder = new ContainerBuilder(); containerBuilder.RegisterModule<GameModule>(); containerBuilder.RegisterModule<C...
michaelbradley91/DFWin
DFWin/DFWin/Setup.cs
C#
apache-2.0
406
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
zkidkid/elasticsearch
core/src/main/java/org/elasticsearch/index/analysis/AnalysisService.java
Java
apache-2.0
9,751
package nricheton.utils.io; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; /** * This input streams removes invalid XML Characters from the stream. As a * result you should be able to read invalid ...
nricheton/java-utils
XmlCleanupInputStream.java
Java
apache-2.0
1,495
/** * Copyright (c) 2014 SQUARESPACE, 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...
phensley/less-compiler
less-core/src/main/java/com/squarespace/less/model/UnicodeRange.java
Java
apache-2.0
1,955
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """Source file annotation for coverage.py.""" import os import re from coverage.files import flat_rootname from coverage.misc import ensure_dir, isolate_module fr...
sonntagsgesicht/regtest
.aux/venv/lib/python3.9/site-packages/coverage/annotate.py
Python
apache-2.0
3,528
/* * 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-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/ListSuppressedDestinationsResult.java
Java
apache-2.0
9,507
# Copyright 2014 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
masayukig/tempest
tempest/tests/cmd/test_verify_tempest_config.py
Python
apache-2.0
29,474
/* * * 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...
glahiru/airavata
modules/commons/workflow-execution-context/src/main/java/org/apache/airavata/common/workflow/execution/context/WorkflowContextHeaderBuilder.java
Java
apache-2.0
20,575
/* * Licensed to STRATIO (C) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. The STRATIO (C) licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file...
Stratio/Explorer
web/app/scripts/directives/ngenter.js
JavaScript
apache-2.0
1,295
/* * Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance * with the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" ...
rcuvgd/Ivona---Text-to-speach
src/main/java/com/ivona/services/tts/model/transform/createspeech/CreateSpeechPostRequestMarshaller.java
Java
apache-2.0
9,116
package com.example.fewwind.myfirst.Util; import android.util.Log; import java.io.InputStream; import java.io.RandomAccessFile; import java.net.HttpURLConnection; import java.net.URL; /** * Created by fewwind on 2015/11/13. */ public class DownUtil { private String filePath; private String urlLoad; p...
fewwind/InCarMedia
Myapp/src/main/java/com/example/fewwind/myfirst/Util/DownUtil.java
Java
apache-2.0
2,986
/* * Copyright 2010-2016 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 "lice...
trasa/aws-sdk-java
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/model/transform/ListEndpointsByPlatformApplicationRequestMarshaller.java
Java
apache-2.0
2,634
package com.intellij.gwt.inspections; import javax.annotation.Nonnull; import com.intellij.codeInspection.LocalQuickFix; import com.intellij.gwt.GwtBundle; /** * @author nik */ public abstract class BaseGwtLocalQuickFix implements LocalQuickFix { private String myName; protected BaseGwtLocalQuickFix(final String...
consulo/consulo-google-gwt
plugin/src/main/java/com/intellij/gwt/inspections/BaseGwtLocalQuickFix.java
Java
apache-2.0
540
package com.lyndir.lhunath.opal.wayward.navigation; import javax.annotation.Nonnull; import javax.annotation.Nullable; import org.apache.wicket.markup.html.panel.Panel; /** * <h2>{@link TabState}<br> <sub>[in short] (TODO).</sub></h2> * * <p> <i>07 10, 2010</i> </p> * * @author lhunath */ public interface TabS...
Lyndir/Opal
opal-wicket/src/main/java/com/lyndir/lhunath/opal/wayward/navigation/TabState.java
Java
apache-2.0
835
(function() { var CusPromise, root; root = typeof exports !== "undefined" && exports !== null ? exports : this; CusPromise = function(promise_) { var obj; obj = { to: function(target, attr, callback) { this.promise.then(function(data) { if (data.data !== void 0 && data.result !==...
zhaowenjian/CCCourse
front/output/js/coffee-js/net_manager.js
JavaScript
apache-2.0
2,423
//// [varArgParamTypeCheck.ts] function sequence(...sequences:{():void;}[]) { } function callback(clb:()=>void) { } sequence( function bar() { }, function foo() { callback(()=>{ this(); }); }, function baz() { callback(()=>{ this(); }); ...
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/varArgParamTypeCheck.js
JavaScript
apache-2.0
785
package simple_conn_pool import ( "fmt" "io" "sync" "time" ) //TODO: 保存所有的连接, 而不是只保存连接计数 var ErrMaxConn = fmt.Errorf("maximum connections reached") // type NConn interface { io.Closer Name() string Closed() bool } type ConnPool struct { sync.RWMutex Name string Address string MaxConns int32 MaxId...
niean/gotools
rpool/conn/simple_conn_pool/simple_conn_pool.go
GO
apache-2.0
2,962
/* * 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 ...
shardingjdbc/sharding-jdbc
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/orderby/OrderByStreamMergedResultTest.java
Java
apache-2.0
11,739
import py_compile import time import marshal import errno import traceback from os.path import join as path_join, isfile, isdir, getmtime from translate import translate_file, translate_string, pystmts_to_string from struct import unpack from errors import TempyError, TempyImportError, TempyCompileError, TempyNativeC...
Algy/tempy
tempy/env.py
Python
apache-2.0
9,404
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for Twitter on iOS 8+ plugin.""" import unittest from plaso.lib import definitions from plaso.parsers.sqlite_plugins import twitter_ios from tests.parsers.sqlite_plugins import test_lib class TwitterIOSTest(test_lib.SQLitePluginTestCase): """Tests for Twitt...
kiddinn/plaso
tests/parsers/sqlite_plugins/twitter_ios.py
Python
apache-2.0
3,854
package org.inaetics.dronessimulator.pubsub.inaetics; import org.apache.felix.dm.annotation.api.Destroy; import org.apache.felix.dm.annotation.api.Init; import org.apache.felix.dm.annotation.api.Start; import org.apache.felix.dm.annotation.api.Stop; import org.inaetics.dronessimulator.pubsub.inaetics.subscriber.DemoSu...
INAETICS/Drones-Simulator
implementation/pubsub/inaetics/inaetics/test/src/test/java/org/inaetics/dronessimulator/pubsub/inaetics/Demo.java
Java
apache-2.0
1,661
/* * KIELER - Kiel Integrated Environment for Layout Eclipse RichClient * * http://www.informatik.uni-kiel.de/rtsys/kieler/ * * Copyright 2010 by * + Christian-Albrechts-University of Kiel * + Department of Computer Science * + Real-Time and Embedded Systems Group * * This code is provided under the t...
ExplorViz/ExplorViz
src-external/de/cau/cs/kieler/klay/layered/p3order/ForsterConstraintResolver.java
Java
apache-2.0
11,578
package com.dailyhotel.watchman; import java.util.concurrent.TimeUnit; /** * Created by tywin on 15/11/2016. */ public interface CacheClient { MethodCall get(String key); void set(String key, MethodCall value, long timeout, TimeUnit unit); }
DailyHotel/Watchman
src/main/java/com/dailyhotel/watchman/CacheClient.java
Java
apache-2.0
254
package com.xmartlabs.scasas.doapp.model; import org.parceler.Parcel; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; /** * Created by remer on 08/12/15. */ @Builder @Data @NoArgsConstructor @Parcel public class AuthResponse { // TODO }
chacaa/DoApp
app/src/main/java/com/xmartlabs/scasas/doapp/model/AuthResponse.java
Java
apache-2.0
272
package com.cloud.hypervisor; import com.cloud.host.dao.HostDao; import com.cloud.legacymodel.communication.command.Command; import com.cloud.legacymodel.utils.Pair; import com.cloud.model.enumeration.HypervisorType; import com.cloud.utils.component.ManagerBase; import javax.annotation.PostConstruct; import javax.inj...
MissionCriticalCloud/cosmic
cosmic-core/server/src/main/java/com/cloud/hypervisor/HypervisorGuruManagerImpl.java
Java
apache-2.0
2,240
import { expect } from 'chai'; import sinon from 'sinon'; import flatMap from 'lodash/flatMap'; import createStore from '../../../store'; import emitterMiddleware from '../../../middlewares/emitter'; /* eslint-disable no-unused-expressions */ describe('Middleware', () => { let store; let callback; befor...
maxmert/reflecti
test/unit/middlewares/emitter.js
JavaScript
apache-2.0
2,160
<?php return [ 'plugin' => [ 'name' => 'Pages', 'description' => 'Fonctionnalités de pages et menus statiques.', ], 'page' => [ 'menu_label' => 'Pages', 'delete_confirmation' => 'Confirmez-vous la suppression des pages sélectionnées ? Les sous-pages seront également supprimé...
kironuniversity/main-website
plugins/rainlab/pages/lang/fr/lang.php
PHP
apache-2.0
6,039
/* * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
SamsungARTIK/demokit
test/test_gpioctrl.js
JavaScript
apache-2.0
965
/** * Copyright (c) Anton Johansson <antoon.johansson@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
anton-johansson/ip-to-geolocation-service
src/main/java/com/antonjohansson/geolocation/source/es/UpdateDocumentRequest.java
Java
apache-2.0
1,810
package overlay; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.graphics.Color; import com.amap.api.maps.AMap; import com.amap.api.maps.CameraUpdateFactory; import com.amap.api.maps.model.BitmapDescriptor; import com.amap.api.maps.model.BitmapDescriptorFactory; impo...
JulianChina/ParkingApp
app/src/main/java/overlay/BusLineOverlay.java
Java
apache-2.0
7,848
/** * RDevice.java 2013/01/06 */ package com.ycsoft.beans.device; import java.io.Serializable; import java.util.Date; import com.ycsoft.beans.base.OptrBase; import com.ycsoft.commons.constants.DictKey; import com.ycsoft.commons.store.MemoryDict; import com.ycsoft.daos.config.POJO; /** * RDeviceUse...
leopardoooo/cambodia
ycsoft-lib/src/main/java/com/ycsoft/beans/device/RDeviceUseRecords.java
Java
apache-2.0
2,301
package controllers.dialogControllers; import controllers.Controller; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.Node; import javafx.scene.control.Button; import javafx.scene.control.ComboBox; import javafx.scene.control.Label; import javaf...
pashkobohdan/Music-Player
src/controllers/dialogControllers/ControllerCounterStop.java
Java
apache-2.0
3,338
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CenturyLinkCloudSDK.ServiceModels { public class Activity { public string AccountAlias { get; set; } public string Body { get; set; } public string AccountDes...
CenturyLinkCloud/clc-net-sdk
src/CenturyLinkCloudSDK/ServiceModels/Domain/Activity.cs
C#
apache-2.0
687
package api.mcd.model; import java.io.File; import java.net.URL; import com.google.gson.annotations.SerializedName; public class ImageCover { @SerializedName("MIME") private String mime; @SerializedName("Normal") private URL normal; @SerializedName("NormalSize") private int normalSize; @Seriali...
alessandrojean/manga-no-keiei
src/api/mcd/model/ImageCover.java
Java
apache-2.0
3,429
/* * $Revision$ * $Date$ * * Copyright (C) 1999-$year$ Jive Software. All rights reserved. * * This software is the proprietary information of Jive Software. Use is subject to license terms. */ package com.jivesoftware.os.tasmo.lib; import com.fasterxml.jackson.databind.node.ObjectNode; import com.jivesoftware....
jivesoftware/tasmo
code/com/jivesoftware/os/tasmo/tasmo-lib/src/test/java/com/jivesoftware/os/tasmo/lib/MultiViewsValuesTest.java
Java
apache-2.0
2,433
/* * 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 ...
xhochy/arrow
java/vector/src/main/java/org/apache/arrow/vector/ipc/message/IpcOption.java
Java
apache-2.0
1,252
/* * Copyright 2019 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
reportportal/commons-dao
src/main/java/com/epam/ta/reportportal/entity/activity/Activity.java
Java
apache-2.0
4,661
/* * 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-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ListDocumentsRequest.java
Java
apache-2.0
19,461
from django.db.models import Q from beetle.models import PrincipalGroup, GatewayGroup from .models import Rule, RuleException def __get_applicable_rules(from_gateway, from_principal, to_gateway, to_principal, timestamp=None): """Get the queryset of rules that apply for the mapping.""" to_principal_groups = Princ...
helena-project/beetle
controller/access/lookup.py
Python
apache-2.0
2,657
package cn.jsprun.domain; public class Stats implements java.io.Serializable { private static final long serialVersionUID = -723349003919829228L; private StatsId id; private Integer count; public Stats() { } public Stats(StatsId id, Integer count) { this.id = id; this.count = count;...
TinghuanWang/source
src/cn/jsprun/domain/Stats.java
Java
apache-2.0
592
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
maciej-zygmunt/unitime
JavaSource/org/unitime/timetable/onlinesectioning/OnlineSectioningServer.java
Java
apache-2.0
6,330
/* * 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 ...
googleinterns/calcite
core/src/main/java/org/apache/calcite/rel/rules/AggregateJoinRemoveRule.java
Java
apache-2.0
4,852
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
davidrice/mythtv-ffmpeg-tumblr-clip
public/build/mythtv-ffmpeg-tumblr-clip.js
JavaScript
apache-2.0
719,858
package br.com.cas10.oraman.oracle; import com.google.common.collect.ImmutableList; import java.util.List; public enum LockMode { NONE(0, "none"), NULL(1, "null (NULL)"), SS(2, "row-S (SS)"), SX(3, "row-X (SX)"), S(4, "share (S)"), SSX(5, "S/Row-X (SSX)"), X(6, "exclusive (X)"); private static...
fernandopeinado/ora_manager
src/main/java/br/com/cas10/oraman/oracle/LockMode.java
Java
apache-2.0
772
package com.linuxtek.kona.app.util; public interface KCallback { public void callback(Object object); }
LinuxTek/kona-app-model
src/main/java/com/linuxtek/kona/app/util/KCallback.java
Java
apache-2.0
109
#!/bin/env python # encoding:utf-8 # # # __Author__ = "CORDEA" __date__ = "2014-08-21" from collections import Counter infile = open("pred_info.vcf", "r") lines = infile.readlines() infile.close() # 0001a56c,chr1,5088617,2169089,44.2448979592,G,092a8efa7cd6427c91900bded95cab33,A,4:37:7:12,14:36:24:23,0:54:5:2,0:...
CORDEA/analysis_of_1000genomes-data
programs/machine_learning/extract_pred.py
Python
apache-2.0
1,133
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import functools imp...
tejal29/pants
src/python/pants/backend/python/thrift_builder.py
Python
apache-2.0
4,568
package com.matianl.explore.java8.ch9.sec02; import java.io.*; import java.net.*; import java.nio.charset.*; import java.nio.file.*; import java.util.*; public class FilesDemo { public static void main(String[] args) throws IOException { Path path = Paths.get("FilesDemo.java"); byte[] bytes = Files.rea...
matinalhope/explore
spring-jdbc/src/book/java/com/matianl/explore/java8/ch9/sec02/FilesDemo.java
Java
apache-2.0
2,006
""" Django settings for laboite_erp project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ impor...
laboiteproject/laboite-erp
laboite_erp/settings.py
Python
apache-2.0
3,111
package org.apache.roller.ui.authoring.struts.forms; import org.apache.roller.RollerException; import java.util.Locale; /** * Generated by XDoclet/ejbdoclet/strutsform. This class can be further processed with XDoclet/webdoclet/strutsconfigxml and XDoclet/webdoclet/strutsvalidationxml. * * @struts.form name="rolle...
paulnguyen/cmpe279
eclipse/Roller/src/org/apache/roller/ui/authoring/struts/forms/RollerConfigForm.java
Java
apache-2.0
14,171
/* * Copyright (c) 2012-2017 The original author or authors * ------------------------------------------------------ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distributi...
windbender/moquette
broker/src/main/java/io/moquette/interception/messages/InterceptConnectMessage.java
Java
apache-2.0
2,229
// Copyright 2016 Yahoo Inc. // Licensed under the terms of the Apache 2.0 license. // Please see LICENSE file in the project root for terms. #include <string> #include <vector> #include "caffe/caffe.hpp" #ifndef CPU_ONLY #include "caffe/parallel.hpp" #include "util/socket_sync.hpp" #else #include "util/parallel_cpu.h...
anfeng/CaffeOnSpark
caffe-distri/src/main/cpp/util/mini_cluster.cpp
C++
apache-2.0
4,823
/* * 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-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/CreateTransitGatewayConnectRequestMarshaller.java
Java
apache-2.0
4,846
namespace nosql.Aggregation { using System; using System.Collections.Generic; using System.Linq; using MongoDB.Bson; using MongoDB.Driver; public class NoSqlPipeline { public string Database { get; set; } public string Collection { get; set; } public L...
jsouthron/nosql
src/nosql/Aggregation/NoSqlPipeline.cs
C#
apache-2.0
8,340
<?php $this->breadcrumbs=array( 'Devices'=>array('index'), $model->id, ); $this->menu=array( array('label'=>'List Device','url'=>array('index')), array('label'=>'Create Device','url'=>array('create')), array('label'=>'Update Device','url'=>array('update','id'=>$model->id)), array('label'=>'Delete Device','url'=>...
dailos/heimdal
heimdal.local/protected/views/device/view.php
PHP
apache-2.0
739