repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
eayunstack/neutron
neutron/tests/unit/agent/linux/test_utils.py
22284
# Copyright 2012, VMware, 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 agre...
apache-2.0
ldrygala/bootzooka
backend/src/test/scala/com/softwaremill/bootzooka/common/crypto/Argon2dPasswordHashingSpec.scala
953
package com.softwaremill.bootzooka.common.crypto import com.softwaremill.bootzooka.test.TestHelpers import com.typesafe.config.Config import org.scalatest.{FlatSpec, Matchers} class Argon2dPasswordHashingSpec extends FlatSpec with Matchers with TestHelpers { val withChangedParams = new Argon2dPasswordHashing(new Cr...
apache-2.0
zapper59/RangerHale---Space-Adventure
src/org/enemies/FireSkull.java
1877
package org.enemies; import static java.lang.Math.*; import java.awt.Graphics; import java.awt.image.BufferedImage; import org.items.Health; import org.players.Player; import org.resources.Collisions; import org.resources.Element; import org.resources.ImagePack; import org.rooms.Room; import org.walls.Wall; public c...
apache-2.0
IrrilevantHappyLlamas/Runnest
app/src/androidTest/java/ch/ihl/runnest/AppRunnestTest.java
1335
package ch.ihl.runnest; import org.junit.Assert; import org.junit.Test; import ch.ihl.runnest.Model.TestUser; /** * Test suite for AppRunnest */ public class AppRunnestTest { @Test(expected = IllegalArgumentException.class) public void setUserThrowsIllegalArgument() { new AppRunnest().setUser(null...
apache-2.0
ReactiveX/RxJava
src/test/java/io/reactivex/rxjava3/observable/ObservableFuseableTest.java
3054
/* * Copyright (c) 2016-present, RxJava Contributors. * * 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
cstamas/vertx-orientdb
vertx-orientdb/src/main/java/org/cstamas/vertx/orientdb/DocumentDatabase.java
265
package org.cstamas.vertx.orientdb; import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx; /** * OrientDB pooled document database instance. */ public interface DocumentDatabase extends Database<DocumentDatabase, ODatabaseDocumentTx> { }
apache-2.0
pamelasanchezvi/kubernetes
pkg/proxy/types.go
1555
/* Copyright 2015 The Kubernetes 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 ag...
apache-2.0
ppbizapps/kairosdb
src/main/java/org/kairosdb/core/http/rest/MetricsResource.java
27026
/* * Copyright 2016 KairosDB Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
apache-2.0
wakim/push-example
PrimeFaces/src/com/primefaces/pusher/service/PusherService.java
1022
package com.primefaces.pusher.service; import java.io.IOException; import org.apache.http.HttpResponse; import org.apache.http.ParseException; import org.apache.http.util.EntityUtils; import org.primefaces.json.JSONObject; import com.pusher.Pusher; public class PusherService { public void triggerEvent(String chann...
apache-2.0
zhanhongbo1112/trunk
yqboots-menu/yqboots-menu-core/src/main/java/com/yqboots/menu/core/convert/MenuItemGroupsConverter.java
2304
/* * * * Copyright 2015-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 * * * * http://www.apache.org/licenses/LICENSE-2.0 * ...
apache-2.0
huntxu/neutron
neutron/agent/linux/interface.py
19111
# Copyright 2012 OpenStack Foundation # 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 requ...
apache-2.0
mohiva/silhouette
modules/authenticator/src/main/scala/silhouette/authenticator/pipeline/package.scala
959
/** * Licensed to the Minutemen Group under one or more contributor license * agreements. See the COPYRIGHT file distributed with this work for * additional information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in complian...
apache-2.0
thomasmaurel/ensj-healthcheck
src/org/ensembl/healthcheck/testgroup/Schema.java
2167
/* * Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute * Copyright [2016-2018] EMBL-European Bioinformatics Institute * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
apache-2.0
linghp/ZLFAsist
PdfPlugin/src/com/artifex/mupdfdemo/WidgetType.java
101
package com.artifex.mupdfdemo; public enum WidgetType { NONE, TEXT, LISTBOX, COMBOBOX }
apache-2.0
michaell-nz/SnakeGame
RPi.SenseHat/RPi.SenseHat.Demo/Demos/Arena.cs
1713
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Linq.Expressions; namespace SnakeLogic { public enum Food { None = 0, Apple, Orange } public class Arena { static object _locker = new object(); public int Width { get; private set; } public int Height...
apache-2.0
guardian/discussion-avatar
api/src/main/scala/com/gu/adapters/config/Config.scala
2473
package com.gu.adapters.config import com.amazonaws.regions.{Region, Regions} import com.gu.adapters.http.AvatarServletProperties import com.gu.adapters.notifications.SnsProperties import com.gu.adapters.queue.SqsDeletionConsumerProps import com.gu.core.store.StoreProperties import com.typesafe.config.{ConfigFactory, ...
apache-2.0
mhurne/aws-sdk-java
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/ListAssociationsRequestMarshaller.java
4152
/* * 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 "l...
apache-2.0
googleapis/google-api-java-client-services
clients/google-api-services-container/v1/1.30.1/com/google/api/services/container/model/UpgradeEvent.java
5580
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
apache-2.0
gracefullife/gerrit
gerrit-gwtexpui/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtmlBuilder.java
11105
// Copyright (C) 2009 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 applicable ...
apache-2.0
yongxu16/agile-plugin-security
src/main/java/org/agle4j/plugin/security/annotation/User.java
455
package org.agle4j.plugin.security.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * 判断当前用户是否已登录(包括:以认证与已记住) * * @author hanyx * @since 0.0.9 */ @Target({ElementType.TYPE...
apache-2.0
joshuamckenty/yolo-octo-wookie
nova/process.py
8629
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
apache-2.0
chaudum/crate-viz
src/crate/viz/crawler.py
1649
# -*- coding: utf-8 -*- # vim: set fileencodings=utf-8 __docformat__ = "reStructuredText" import time from crate import client from pprint import pprint from datetime import datetime def main(): # create table cluster_viz (ts timestamp, name string, num_shards integer, disk_bytes long, memory long, load float)...
apache-2.0
PengJi/gporca-comments
server/src/unittest/dxl/CMDProviderTest.cpp
7012
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 Greenplum, Inc. // // @filename: // CMDProviderTest.cpp // // @doc: // Tests the file-based metadata provider. //--------------------------------------------------------------------------- #inclu...
apache-2.0
luky1971/Quantum2D
src/Collision/Q_PolyCollider.cpp
1702
/* Copyright 2015 Ahnaf Siddiqui 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 i...
apache-2.0
treznick/potlucker
src/main/java/com/potlucker/command/ListAllUsersCommand.java
988
package com.potlucker.command; import java.util.ArrayList; import com.mongodb.DBObject; import com.mongodb.util.JSON; import com.potlucker.model.User; import com.potlucker.mongo.ConnectionProvider; import com.mongodb.DBCollection; import com.mongodb.DBCursor; import org.codehaus.jackson.map.ObjectMapper; /** * Crea...
apache-2.0
comdexxsolutionsllc/dcas-laravel55
config/bugsnag.php
7538
<?php return [ /* |-------------------------------------------------------------------------- | API Key |-------------------------------------------------------------------------- | | You can find your API key on your Bugsnag dashboard. | | This api key points the Bugsnag notifier to th...
apache-2.0
onosfw/apis
suricata/apis/search/classes_6d.js
1696
var searchData= [ ['membuffer_5f',['MemBuffer_',['../structMemBuffer__.html',1,'']]], ['mimedecconfig',['MimeDecConfig',['../structMimeDecConfig.html',1,'']]], ['mimedecentity',['MimeDecEntity',['../structMimeDecEntity.html',1,'']]], ['mimedecfield',['MimeDecField',['../structMimeDecField.html',1,'']]], ['mim...
apache-2.0
SoerenHenning/RadarGun
src/main/java/radargun/output/print/ResultsPrinter.java
2217
package radargun.output.print; import java.io.PrintStream; import radargun.comparsion.result.TestResult; /** * This class prints a {@link TestResult} to the default system's output stream * or another one if configured. * * The format is [{@code <status>}] {@code <test-name>} Score: {@code <score>} *...
apache-2.0
AceMood/phabricator
src/applications/pholio/controller/PholioController.php
524
<?php abstract class PholioController extends PhabricatorController { public function buildApplicationMenu() { return $this->newApplicationMenu() ->setSearchEngine(new PholioMockSearchEngine()); } protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $crum...
apache-2.0
SteelToeOSS/Samples
Connectors/src/AspDotNet4/MySql4/App_Start/RouteConfig.cs
576
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace MySql4 { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathIn...
apache-2.0
felix-tien/TechLab
CSharpLab/TestCFX/Testing/UnitTest/Arch.CFramework.CommandRunner.Test/WorkManagerTest.cs
11078
//using Arch.CFramework.CommandRunner; //using Microsoft.VisualStudio.TestTools.UnitTesting; //using System; //using System.Collections.Generic; //namespace Arch.CFramework.CommandRunner.Test //{ // /// <summary> // ///This is a test class for WorkManagerTest and is intended // ///to contain all Wo...
apache-2.0
jiezcomet/FastDeliver
server/server.go
112
package server import( "fmt" ) type Server struct{ } func (s *Server)Start(){ fmt.Println("Hello Server") }
apache-2.0
MyRobotLab/myrobotlab
src/test/java/org/myrobotlab/opencv/OpenCVFilterMotionDetectTest.java
1078
package org.myrobotlab.opencv; import static org.junit.Assert.assertNotNull; import java.util.ArrayList; import java.util.List; import org.bytedeco.opencv.opencv_core.IplImage; import org.junit.Before; public class OpenCVFilterMotionDetectTest extends AbstractOpenCVFilterTest { @Before public void setup() { ...
apache-2.0
zpao/buck
test/com/facebook/buck/cli/AuditRulesCommandTest.java
3042
/* * Copyright (c) Facebook, Inc. and 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 applic...
apache-2.0
edouardKaiser/dashboard
src/test/backend/resource/common/pagination_test.go
2309
// Copyright 2015 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
thucydides-webtests/thucydides-smoketests
flying-high-tests/src/test/java/com/bddinaction/flyinghigh/jbehave/steps/EarningStatus.java
2265
package com.bddinaction.flyinghigh.jbehave.steps; import com.bddinaction.flyinghigh.model.FrequentFlyer; import com.bddinaction.flyinghigh.model.Status; import org.jbehave.core.annotations.Alias; import org.jbehave.core.annotations.Given; import org.jbehave.core.annotations.Then; import org.jbehave.core.annotations.Wh...
apache-2.0
nortal/araneaframework
examples/main/src/org/araneaframework/example/main/web/demo/list/SimpleSubBeanListWidget.java
4668
/* * Copyright 2006 Webmedia Group 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 applicable law...
apache-2.0
Jarzon/prefetch.js
client/prefetch.js
953
function Prefetch() { this.hooks(); } Prefetch.prototype.hooks = function () { let links = document.querySelectorAll('a'); let trigger = false; let length = links.length; for (let n = 0; n < length; n++) { let prefetchFunction = function (event) { // Left mouse click or Touc...
apache-2.0
xzwc/AndroidProject
AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/CommonInfo.java
123
package com.zhy.authproject.data.remote.model; /** * Created by zhanghaoye on 10/31/16. */ public class CommonInfo { }
apache-2.0
gilmario-kpslow/projetos
ProjetosWeb/src/main/java/br/com/truesystem/projetosweb/bean/GerenciadorAtividadeBean.java
1636
package br.com.truesystem.projetosweb.bean; import br.com.truesystem.projetosweb.dominio.gerenciador.Atividade; import br.com.truesystem.projetosweb.dominio.gerenciador.Funcionalidade; import br.com.truesystem.projetosweb.negocio.FuncionalidadeNegocio; import br.com.truesystem.projetosweb.negocio.RegraNegocioNegocio; ...
apache-2.0
vishipayyallore/CSharp-DotNet-Core-Samples
SampleCSharp7/ClassesAndGenerics/PlanetExplorer.cs
1406
using static System.Console; namespace ClassesAndGenerics { public class PlanetExplorer : SpacePrivate { public override void ChartingStarMaps() { WriteLine($"-----{GetType().Name}::{System.Reflection.MethodBase.GetCurrentMethod().Name}()-----"); } public override ...
apache-2.0
jlz27/kubernetes
pkg/kubectl/cmd/get_test.go
34111
/* Copyright 2014 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, ...
apache-2.0
AyolaJayamaha/phoenix
phoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java
79556
/* * 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
iriark01/yotta
get_yotta.py
6737
# # This is a script to install yotta. Eventually I would like to add all OS's to this script # but for now it just works on windows. # # There are some ganky hacks in place holding it together, such as opening # IE to get certificates that windows doesnt have. Currently the script # just downloads the dependen...
apache-2.0
aws/aws-sdk-cpp
aws-cpp-sdk-migrationhubstrategy/source/model/SelfManageTargetDestination.cpp
3331
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/migrationhubstrategy/model/SelfManageTargetDestination.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> u...
apache-2.0
asakusafw/asakusafw-compiler
compiler-project/api/src/main/java/com/asakusafw/lang/compiler/api/reference/PropertyReference.java
1595
/** * Copyright 2011-2021 Asakusa Framework Team. * * 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
rajeevanv89/developer-studio
esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/TemplateEndpointEditPart.java
11791
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.parts; import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.PositionConstants; import org.eclipse.draw2d.Shape; import org.eclipse.draw2d.StackLayout; import org.eclipse.emf.ecore.EObject; import org.eclipse.gef.EditPart; import org.eclipse.gef.Edit...
apache-2.0
svenkubiak/mangooio
mangooio-maven-plugin/src/main/java/io/mangoo/build/Watcher.java
7499
/** * Copyright (C) 2012-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 b...
apache-2.0
prometheus/prometheus
storage/series.go
8594
// Copyright 2020 The Prometheus 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...
apache-2.0
cuoretech/dowork
dowork/Model/database_populate.py
7444
""" from py2neo import neo4j, ogm, node, rel from cuorewebpage.Model.Calendar import Calendar from cuorewebpage.Model.Event import Event from datetime import datetime from cuorewebpage.Model.Project import Project from cuorewebpage.Model.Task import Task, STS_OPEN, STS_IN_PROG from cuorewebpage.Model.Workspace import ...
apache-2.0
cedral/aws-sdk-cpp
aws-cpp-sdk-mediaconvert/source/model/MotionImageInsertionOffset.cpp
1875
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
apache-2.0
prowide/prowide-core
src/main/java/com/prowidesoftware/swift/model/MIR.java
7580
/* * Copyright 2006-2021 Prowide * * 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
111pontes/ydk-py
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_ipv6_ma_oper.py
93085
import re import collections from enum import Enum from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI...
apache-2.0
linktlh/Toontown-journey
toontown/battle/MovieCamera.py
38797
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from BattleBase import * from BattleProps import * from toontown.toonbase.ToontownBattleGlobals import * from SuitBattleGlobals import * from direct.directnotify import DirectNotifyGlobal import random import MovieUtil notify = DirectNotifyG...
apache-2.0
cyberlect/yargon-parsing
test/Yargon.Parsing.Tests/ParserTests.ConcatTests.cs
6939
using System; using System.Collections.Generic; using System.Linq; using System.Xml.XPath; using Virtlink.Utilib.Collections; using Xunit; namespace Yargon.Parsing { partial class ParserTests { /// <summary> /// Tests the <see cref="Parser.Concat"/> method. /// </summary> publi...
apache-2.0
sarvex/tensorflow
tensorflow/core/kernels/data/concatenate_dataset_op.cc
9084
/* Copyright 2017 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
wuzhongdehua/fksm
common/src/main/java/com/fksm/common/dto/ServiceInformation.java
919
package com.fksm.common.dto; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Created by root on 16-4-23. */ public class ServiceInformation extends BaseMassageDto implements Serializable { private String service_path; public String getService_path() { return se...
apache-2.0
shisoft/LinkedIn-J
core/src/main/java/com/google/code/linkedinapi/schema/Content.java
5361
/* * Copyright 2010-2011 Nabeel Mukhtar * * 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
chewaca/gtsSolution
GtsSoftware/WebContent/Gts/proceso/js/data.js
991
var ganttData = [ { id: 1, name: "Gen\u00e9rico 1", series: [ { name: "Tiempo Estimado", start: new Date(2014,11,01), end: new Date(2014,11,03) }, { name: "Real", start: new Date(2014,11,02), end: new Date(2014,11,04), color: "#f0f0f0" } ] ...
apache-2.0
SergeyI88/InduikovS
chapter_004/src/main/java/List/ContainerLinkedList.java
2613
package List; import com.sun.org.apache.xml.internal.serializer.ElemDesc; import java.util.Iterator; import java.util.LinkedList; public class ContainerLinkedList<E> implements Iterable<E> { private int index = 0; Entry first = null; Entry last = null; protected class IteratorList<E> implements Ite...
apache-2.0
yanwen0614/Weibo
sina_spider/utils/Database.py
636
def Create_insert_sql(tablename, *arg): sql = tablename.join(('''INSERT INTO ''',''' ({}) VALUES ({})''')) attr = ','.join(arg) placeholder = ','.join(["'{}'" for _ in range(len(arg))]) sql = sql.format(attr,placeholder) return sql def Create_createtable_sql(tablename,Key, **kwarg): sql = "...
apache-2.0
msallin/SQLiteCodeFirst
SQLite.CodeFirst/Public/CollationFunction.cs
1162
namespace SQLite.CodeFirst { /// <summary> /// The collation function to use for this column. /// Is used together with the <see cref="CollateAttribute" />, and when setting a default collation for the database. /// </summary> public enum CollationFunction { None, /// <summary>...
apache-2.0
WillSkywalker/blog
app/admin/views.py
4192
from flask import render_template, session, redirect, url_for, current_app from . import admin, forms from ..models import Article, Tag, Comment from .. import db from os import environ from datetime import datetime from markdown import markdown import bleach ALLOWED_TAGS = ['a', 'abbr', 'acronym', 'b', 'blockquote',...
apache-2.0
Adrian0350/PHP-AMI
src/PHPAMI/Message/Event/NewstateEvent.php
3169
<?php /** * Event triggered when a channel changes its status. * * NOTE: For correct callerid values: see: https://issues.asterisk.org/jira/browse/ASTERISK-16910 * * PHP Version 5 * * @category PHPAMI * @package Message * @subpackage Event * @author Jaime Ziga <jaime.ziga@gmail.com> * @license ht...
apache-2.0
ComHub/register-app-android
presentation/src/main/java/io/comhub/register/android/presentation/presenter/UserDetailsPresenter.java
4166
/** * Copyright (C) 2015 Fernando Cejas 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 appl...
apache-2.0
dsdn/tssdn
Controller/DPI.py
1044
''' Ryu Script for data plane interactions in TSSDN Naresh Nayak 11.02.2016 ''' from ryu.base.app_manager import RyuApp from TopologyMonitor import EventTopologyChanged, EventNewHostInTopology from ryu.topology import event, api from ryu.controller.handler import set_ev_cls, MAIN_DISPATCHER from ryu.ofproto import of...
apache-2.0
amster/ctrlaltdel
lib/seq_ctrlaltdel.js
1197
var SEQ; SEQ = SEQ || {}; SEQ.CtrlAltDel = function ($target) { var t = this; t._elemInnerHtml = {}; t.$target = $target; } $.extend(SEQ.CtrlAltDel.prototype, { remove: function (id) { var t = this, $elem = $('#' + id); $elem.remove(); delete t._elemInnerHtml[id]; }, /** * opts: S...
apache-2.0
facebook/folly
folly/executors/Codel.cpp
4666
/* * Copyright (c) Meta Platforms, Inc. and 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 appl...
apache-2.0
sghill/gocd
plugin-infra/go-plugin-domain/src/com/thoughtworks/go/plugin/domain/elastic/ElasticAgentPluginInfo.java
2958
/* * Copyright 2017 ThoughtWorks, 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
erikmack/lxd
lxd/main_forkstart.go
1866
package main import ( "fmt" "os" "syscall" "github.com/spf13/cobra" "gopkg.in/lxc/go-lxc.v2" "github.com/lxc/lxd/shared" ) type cmdForkstart struct { global *cmdGlobal } func (c *cmdForkstart) Command() *cobra.Command { // Main subcommand cmd := &cobra.Command{} cmd.Use = "forkstart <container name> <con...
apache-2.0
ferdinandhuebner/k8s-dns-sky
src/main/scala/k8sdnssky/DnsRecordHandler.scala
7295
package k8sdnssky import akka.actor.{Actor, ActorRef, Props} import akka.event.Logging import io.fabric8.kubernetes.api.model.HasMetadata import io.fabric8.kubernetes.client.KubernetesClient import k8sdnssky.AppProperties.DnsProperties import k8sdnssky.DnsRecordHandler.Protocol.{Refresh, Release, Update} import k8sdnss...
apache-2.0
leapframework/framework
base/core/src/main/java/leap/core/schedule/DefaultSchedulerManager.java
1595
/* * 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 by applica...
apache-2.0
Utdanningsdirektoratet/PAS2-Public
ExampleClients/java/eksamen/udir/types/clientidentification/TransformsType.java
2226
// // 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: 2015.05.18 at 04:18...
apache-2.0
quarkusio/quarkus
integration-tests/devtools/src/test/java/io/quarkus/platform/catalog/ExtensionProcessorTest.java
3921
package io.quarkus.platform.catalog; import static org.assertj.core.api.Assertions.assertThat; import java.util.Optional; import org.junit.jupiter.api.Test; import io.quarkus.devtools.testing.PlatformAwareTestBase; import io.quarkus.maven.ArtifactKey; import io.quarkus.platform.catalog.processor.ExtensionProcessor;...
apache-2.0
Nickname0806/Test_Q4
java/org/apache/catalina/util/ExtensionValidator.java
14558
/* * 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
CenturyLinkCloud/mdw
mdw-common/src/com/centurylink/mdw/common/translator/impl/StringTranslator.java
252
package com.centurylink.mdw.common.translator.impl; public class StringTranslator extends BaseTranslator { public Object toObject(String str){ return str; } public String toString(Object obj) { return (String)obj; } }
apache-2.0
goeckeler/jcommons.lang
src/test/java/org/jcommons/lang/number/NumberUtilsTest.java
3872
package org.jcommons.lang.number; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.lessThan; import static org.jcommons.lang.number.NumberUtils.compare; import static org.jcommons.lang.number.NumberUtils.isNotNull; import static org.jcomm...
apache-2.0
danielmarbach/SwissChocolate.Factory
Facility.Web/App_Start/BusConfig.cs
1770
using System; using System.Collections.Generic; using System.Web.Mvc; using Facility.Web.Controllers; using NServiceBus; using NServiceBus.Logging; namespace Facility.Web { public static class BusConfig { public static ISendOnlyBus Start() { DefaultFactory defaultFactory = LogManag...
apache-2.0
NativeScript/nativescript-cli
lib/common/commands/analytics.ts
2868
import { IOptions } from "../../declarations"; import { ICommandParameter, ICommand } from "../definitions/commands"; import { IErrors, IAnalyticsService } from "../declarations"; import { injector } from "../yok"; export class AnalyticsCommandParameter implements ICommandParameter { constructor(private $errors: IErr...
apache-2.0
ReactiveX/RxJava
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFromAction.java
2060
/* * Copyright (c) 2016-present, RxJava Contributors. * * 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
roman-sd/java-a-to-z
chapter_004/src/main/java/ru/sdroman/tictactoe/input/RandomInput.java
708
package ru.sdroman.tictactoe.input; import ru.sdroman.tictactoe.interfaces.Input; import java.util.Random; /** * Class RandomInput. * * @author sdroman * @version 0.1 * @since 03.17 */ public class RandomInput implements Input { /** * Random object. */ private Random random = new Random(); ...
apache-2.0
AlexGerasimov/dts
server.py
10226
#! /usr/bin/env python # coding=utf-8 import os import os.path import re import sys import time import couchdb import logging as logger import cgi import BaseHTTPServer import SocketServer import formatter table_name = 'requests' class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler): def __get_log(self): ...
apache-2.0
keil/TbDA
test/GoogleGadgets/YouTube/main.js
22673
/* 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 in writing, softwar...
apache-2.0
Nickname0806/Test_Q4
java/org/apache/coyote/ActionCode.java
6515
/* * 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
R3glisse/CS511
SMART_FRIDGE_FRIGOLO/frifri/frifrifri/frifrifri/Frigolo/src/main/java/fr/esisar/frigolo/entities/ConsigneEJBEntity.java
5048
package fr.esisar.frigolo.entities; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Embeddable; import javax.persistence.GeneratedValue; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; @Embeddable @NamedQueries({ @NamedQuery(name = "findConsignes", q...
apache-2.0
orlenko/FBBot
src/FBBot/FBBot/wsgi.py
385
""" WSGI config for FBBot project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "FBBot.settings") from django.core.wsgi ...
apache-2.0
mezz64/home-assistant
homeassistant/components/agent_dvr/__init__.py
2085
"""Support for Agent.""" from agent import AgentError from agent.a import Agent from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers import device_re...
apache-2.0
be-hase/honoumi
src/main/java/com/be_hase/honoumi/controller/argument/FormParams.java
316
package com.be_hase.honoumi.controller.argument; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target({ ElementType.PARAMETER }) @Retention(RetentionPolicy.RUNTIME) public @interface FormParams { }
apache-2.0
googleapis/gapic-generator-ruby
shared/output/cloud/language_v1/lib/google/cloud/language/v1/version.rb
783
# frozen_string_literal: true # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
apache-2.0
gomininggo/jTracker
print.php
5738
<!doctype html> <?PHP require_once('lib/connections/db.php'); include('lib/functions/functions.php'); checkLogin('2'); $getuser = getUserRecords($_SESSION['user_id']); $intUserID=$getuser[0]['id']; include 'variables.php'; include 'monnix_db.php'; //$encrypted_txt = encrypt_decrypt('encrypt', $plain_txt); //echo "E...
apache-2.0
foursquare/finagle
finagle-thrift/src/main/scala/com/twitter/finagle/thrift/SeqIdFilter.scala
3093
package com.twitter.finagle.thrift import com.twitter.finagle.{Service, SimpleFilter, TransportException} import com.twitter.util.{Time, Future, Try, Return, Throw} import scala.util.Random case class SeqMismatchException(id: Int, expected: Int) extends TransportException { override def toString = "SeqMismatchExcep...
apache-2.0
ixtf/japp-execution
server/src/main/java/org/jzb/execution/domain/extra/ExamQuestionLab.java
1754
package org.jzb.execution.domain.extra; import com.google.common.collect.Sets; import org.hibernate.validator.constraints.NotBlank; import org.jzb.J; import org.jzb.execution.domain.AbstractLogable; import org.jzb.execution.domain.operator.Operator; import javax.persistence.*; import java.security.Principal; import j...
apache-2.0
NuckChorris/hummingbird
test/models/manga_test.rb
1525
# == Schema Information # # Table name: manga # # id :integer not null, primary key # romaji_title :string(255) # slug :string(255) # english_title :string(255) # synopsis :text default(""), not null # poste...
apache-2.0
Payshare/js-stellar-lib
test/setup/browser.js
153
window.global.request = StellarLib.request; window.global.fixtures = StellarLib.fixtures; window.global.dev_server = {hostname: "localhost", port: 1337};
apache-2.0
smallbam/My-first-repository-on-GitHub
HelloGit/src/org/eclipse/wang/datastructure/package-info.java
151
/** * data structure examples * @author super * @version create on:2015年5月10日 上午9:43:20 */ package org.eclipse.wang.datastructure;
apache-2.0
olirogers/openui5
src/sap.m/src/sap/m/ToggleButton.js
2969
/*! * ${copyright} */ // Provides control sap.m.ToggleButton. sap.ui.define(['jquery.sap.global', './Button', './library', 'sap/ui/core/EnabledPropagator'], function(jQuery, Button, library, EnabledPropagator) { "use strict"; /** * Constructor for a new ToggleButton. * * @param {string} [sId] id for the ...
apache-2.0
googleads/googleads-java-lib
modules/dfp_axis/src/main/java/com/google/api/ads/admanager/axis/v202108/LineItemService.java
1252
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
apache-2.0
openpitrix/openpitrix
test/models/openpitrix_repo_labels.go
955
// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "strconv" strfmt "github.com/go-openapi/strfmt" "github.com/go-openapi/errors" "github.com/go-openapi/swag" ...
apache-2.0
lvweiwolf/poi-3.16
src/java/org/apache/poi/poifs/macros/VBAMacroReader.java
15907
/* ==================================================================== 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 Y...
apache-2.0
wangzijian777/contentManager
content/webapp/e3/tree/xtree/map.js
1673
function Map(){ this._values = new Array(); this._a = new Array(); } Map.prototype.put = function (key, obj){ var len = this._a[key]; if(len == null){ len = this._values.length; this._a[key] = len; } this._values[len] = obj; } Map.prototype._getIndex=function(key_index){ var index = ...
apache-2.0