repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
rashiatmarklogic/entity-services
entity-services-functionaltests/src/test/java/com/marklogic/entityservices/EntityServicesTestBase.java
4487
/* * Copyright 2016 MarkLogic 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 a...
apache-2.0
tpserver/talentpool
app/controllers/migrateController.php
13398
<?php class migrateController extends \BaseController { public function __construct() { $first_name; include("app/includes/db_csv_pharser.php"); // print_r($first_name); //echo $row; for($i=1;$i<$row;$i++){ $void_array=array(); $data = array('first_name'=>$first_name[$i]...
apache-2.0
klklmoon/pipishow
bll/model/consume/MedalListModel.php
872
<?php /** * 勋章管理 * * the last known user to change this file in the repository <$LastChangedBy: guoshaobo $> * @author guoshaobo <guoshaobo@pipi.cn> * @version $Id: UserCheckinModel.php 9657 2013-05-06 12:59:31Z guoshaobo $ * @package model * @subpackage consume */ class MedalListModel extends PipiActiveRecor...
apache-2.0
kalikov/lighthouse
app/src/main/java/ru/radiomayak/http/util/EncodingUtils.java
4932
/* * ==================================================================== * 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 ...
apache-2.0
kennykwok1/PlaygroundOSS
CSharpVersion/EnginePrototype/Wrappers/CKLBAsyncLoader.cs
3776
/* Copyright 2013 KLab 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 wri...
apache-2.0
citizenmatt/gallio
src/Gallio/Gallio/Model/Helpers/TestController.cs
4987
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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.a...
apache-2.0
aeolusproject/conductor
src/app/controllers/provider_realms_controller.rb
2499
# # Copyright 2012 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
apache-2.0
McOmghall/game-development-coursera-exercises
A Fireball For Your Friends/Assets/Scripts/Camera & Input/InputControl.cs
5493
using System; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; using UnityStandardAssets.CrossPlatformInput; public class InputControl : MonoBehaviour { private Vector3 movementDirection; // the world-relative desired move direction, calculated from the camForward and user input. pri...
apache-2.0
shamanDevel/jME3-OpenCL-Library
src/main/java/org/shaman/jmecl/particles/DefaultAdvectionStrategy.java
7683
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.shaman.jmecl.particles; import com.jme3.math.Vector3f; import com.jme3.math.Vector4f; import com.jme3.opencl.Buffer; impor...
apache-2.0
NationalSecurityAgency/ghidra
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/program/DBTraceProgramViewBookmarkManager.java
12640
/* ### * IP: GHIDRA * * 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 writin...
apache-2.0
yiwent/Staudy
chapter1/HelloWorld/app/src/test/java/com/yiwen/helloworld/ExampleUnitTest.java
398
package com.yiwen.helloworld; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void a...
apache-2.0
robinsteel/Sqawsh
src/main/java/squash/booking/lambdas/RestoreBookingsAndBookingRulesLambda.java
4554
/** * Copyright 2015-2017 Robin Steel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
apache-2.0
stackify/stackify-api-java
src/test/java/com/stackify/api/EnvironmentDetailTest.java
2274
/* * Copyright 2013 Stackify * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
apache-2.0
concourse/baggageclaim
uidgid/uidgidfakes/fake_translator.go
4554
// Code generated by counterfeiter. DO NOT EDIT. package uidgidfakes import ( "os" "os/exec" "sync" "github.com/concourse/baggageclaim/uidgid" ) type FakeTranslator struct { TranslateCommandStub func(*exec.Cmd) translateCommandMutex sync.RWMutex translateCommandArgsForCall []struct { arg1 *exec...
apache-2.0
Hivedi/ErrorReportAdapter
app/src/test/java/com/hivedi/errorreportadapterexample/ExampleUnitTest.java
329
package com.hivedi.errorreportadapterexample; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2)...
apache-2.0
VHAINNOVATIONS/Maternity-Tracker
Dashboard/va.gov.artemis.commands/Vpr/Data/Allergy.cs
1567
// Originally submitted to OSEHRA 2/21/2017 by DSS, Inc. // Authored by DSS, Inc. 2014-2017 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; using VA.Gov.Artemis.Vista.Utility; namespace VA.Gov.Artemis.Commands.Vpr.Da...
apache-2.0
sgudupat/force5
src/main/java/com/force/five/app/domain/PersistentAuditEvent.java
1803
package com.force.five.app.domain; import java.time.LocalDateTime; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.util.HashMap; import java.util.Map; /** * Persist AuditEvent managed by the Spring Boot actuator * @see org.springframework.boot.actuate.audit.AuditEvent */ @Entit...
apache-2.0
Obisoft2017/ObisoftWebCore
src/ObisoftWebCore/Models/ManageViewModels/SetPasswordViewModel.cs
769
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace ObisoftWebCore.Models.ManageViewModels { public class SetPasswordViewModel { [Required] [StringLength(100, ErrorMessage = "The {0} must be at ...
apache-2.0
amanharitsh123/zulip
zerver/views/zephyr.py
2177
from typing import Any, List, Dict, Optional, Callable, Tuple, Iterable, Sequence, Text from django.conf import settings from django.http import HttpResponse, HttpRequest from django.utils.translation import ugettext as _ from zerver.decorator import authenticated_json_view from zerver.lib.ccache import make_ccache fr...
apache-2.0
HubSpot/jinjava
src/test/java/com/hubspot/jinjava/lib/filter/TruncateFilterTest.java
1653
package com.hubspot.jinjava.lib.filter; import static org.assertj.core.api.Assertions.assertThat; import com.hubspot.jinjava.interpret.JinjavaInterpreter; import org.apache.commons.lang3.StringUtils; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; impor...
apache-2.0
oillio/dropwizard-guice
src/test/java/com/hubspot/dropwizard/guice/sample/command/TestConfiguredCommand.java
1005
package com.hubspot.dropwizard.guice.sample.command; import com.hubspot.dropwizard.guice.ConfigData.Config; import com.hubspot.dropwizard.guice.InjectedConfiguredCommand; import com.hubspot.dropwizard.guice.Run; import com.hubspot.dropwizard.guice.sample.HelloWorldConfiguration; import io.dropwizard.setup.Bootstrap; i...
apache-2.0
BannedWolf/tankgame
BattleTank/Source/BattleTank/Tank.cpp
689
// Fill out your copyright notice in the Description page of Project Settings. #include "BattleTank.h" #include "Tank.h" // Sets default values ATank::ATank() { // Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = true; }...
apache-2.0
uw-it-aca/django-userservice
userservice/username.py
596
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.conf import settings def _get_format(): return getattr(settings, "REMOTE_USER_FORMAT", "eppn") def expect_uid(): username_format = _get_format() return username_format is not None and\ (username_f...
apache-2.0
SpaceTrafficDevelopers/SpaceTraffic
Core/Entities/Base.cs
2079
/** Copyright 2010 FAV ZCU 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 distr...
apache-2.0
appccelerate/io
source/Appccelerate.IO/Access/IFileExtension.g.cs
13538
//------------------------------------------------------------------------------- // <copyright file="IFileExtension.cs" company="Appccelerate"> // Copyright (c) 2008-2015 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // ...
apache-2.0
badvision/lawless-legends
Platform/Apple/tools/jace/src/main/java/jace/JaceUIController.java
16871
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package jace; import com.sun.glass.ui.Application; import jace.core.Card; import jace.core.Computer; import jace.core.Motherboard; imp...
apache-2.0
dremio/dremio-oss
sabot/kernel/src/main/java/com/dremio/sabot/op/common/ht2/XXHashByteBuf.java
2740
/* * Copyright (C) 2017-2019 Dremio 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 l...
apache-2.0
mike-tr-adamson/java-driver
driver-core/src/test/java/com/datastax/driver/core/querybuilder/QueryBuilderUDTExecutionTest.java
3895
/* * Copyright (C) 2012-2015 DataStax 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 app...
apache-2.0
csgordon/SJS
sjsc/src/main/java/com/samsung/sjs/theorysolver/TheorySolver.java
10026
/* * Copyright 2014-2016 Samsung Research America, 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 applica...
apache-2.0
gregberns/ZipRdlProjectDev410
src/RdlEngine/Definition/MatrixCellEntry.cs
2433
/* ==================================================================== Copyright (C) 2004-2008 fyiReporting Software, LLC This file is part of the fyiReporting RDL project. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. ...
apache-2.0
mmm2a/GridApp
test/com/morgan/grid/client/common/AllCommonTests.java
408
package com.morgan.grid.client.common; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; import com.morgan.grid.client.common.feature.AllFeatureTests; import com.morgan.grid.client.common.navigation.AllNavigationTests; @RunWith(Suite.class) @SuiteClasses({ ...
apache-2.0
intelsdi-x/swan
pkg/workloads/specjbb/parser/parse_test.go
8102
// Copyright (c) 2017 Intel 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
googleapis/google-cloud-dotnet
apis/Google.Area120.Tables.V1Alpha1/Google.Area120.Tables.V1Alpha1/TablesServiceClient.g.cs
90414
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeClientVpnRoutesResult.java
7137
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
SecUSo/EasyVote
vcd_votedevice/src/main/java/de/tud/vcd/votedevice/ampel/StatusSignaling.java
1381
/******************************************************************************* * # Copyright 2015 SecUSo.org / Jurlind Budurushi / Roman Jöris * # * # 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...
apache-2.0
McLeodMoores/starling
projects/analytics/src/main/java/com/opengamma/analytics/financial/provider/calculator/discounting/CashFlowEquivalentCurveSensitivityCalculator.java
8719
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.financial.provider.calculator.discounting; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import...
apache-2.0
quarkusio/quarkus
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/TenantResolver.java
629
package io.quarkus.oidc; import io.vertx.ext.web.RoutingContext; /** * A tenant resolver is responsible for resolving tenants dynamically so that the proper configuration can be used accordingly. */ public interface TenantResolver { /** * Returns a tenant identifier given a {@code RoutingContext}, where t...
apache-2.0
nickolasnikolic/leesh-mobile-app
Resources/struct/model/entities/persons.js
216
var persons = new joli.model({ table: 'persons', columns: { id: 'INTEGER', locationID: 'INTEGER', name: 'TEXT', description: 'TEXT' } });
apache-2.0
balajivenki/dyno
dyno-contrib/src/main/java/com/netflix/dyno/contrib/consul/ConsulHostsSupplier.java
5797
/** * Copyright 2016 Netflix, 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 ...
apache-2.0
bitsofinfo/hazelcast-docker-swarm-discovery-spi
src/main/java/org/bitsofinfo/hazelcast/discovery/docker/swarm/filter/NameBasedServiceFilter.java
796
package org.bitsofinfo.hazelcast.discovery.docker.swarm.filter; import com.spotify.docker.client.messages.swarm.Service; public class NameBasedServiceFilter extends AbstractServiceFilter { private String serviceName; public NameBasedServiceFilter(String serviceName) { this.serviceName = serviceName; ...
apache-2.0
JoelMarcey/buck
src/com/facebook/buck/jvm/kotlin/KotlinLibraryDescription.java
4580
/* * Copyright 2016-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
apache-2.0
FinishX/coolweather
gradle/gradle-2.8/src/platform-play/org/gradle/play/internal/twirl/VersionedTwirlCompilerAdapter.java
1317
/* * Copyright 2014 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
apache/incubator-shardingsphere
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/orderby/OrderByStreamMergedResult.java
3517
/* * 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
aot-pro/aot-sdk-java
src/main/java/aot/util/JsonUtil.java
2564
/* * Copyright (C) 2016 Dmitry Kotlyarov. * 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 require...
apache-2.0
ctr-lang/ctr
lib/ctr-nodes/target/target-stack-manager.js
15098
const _ = require('lodash'); const defclass = require('defclass'); const Immutable = require('immutable'); const throwErr = require('./target-errors.js'); const _M = require('../manager/manager-index.js'); const StackManager = defclass({ constructor: function (target) { const self = this; /...
apache-2.0
fbaligand/lognavigator
src/main/java/org/lognavigator/util/UriUtil.java
557
package org.lognavigator.util; import static org.lognavigator.util.Constants.URL_ENCODING; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.nio.charset.UnsupportedCharsetException; /** * Utility functions for URI processing */ public class UriUtil { /** * URI encode and retu...
apache-2.0
meat4every1/Smoosh
smoosh/Assets/scripts/MoveListNet.cs
5595
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class MoveListNet : ScriptableObject { ChallengerConNet p1; public Action<int> jab; public Action<int> grab; public Action<int> fweak; public Action<int> uweak; public Action<int> dweak; p...
apache-2.0
scribble/scribble.github.io
src/main/jbake/assets/docs/scribble/modules/core/src/main/java/org/scribble/del/local/LRecursionDel.java
4342
package org.scribble.del.local; import org.scribble.ast.AstFactoryImpl; import org.scribble.ast.Recursion; import org.scribble.ast.ScribNode; import org.scribble.ast.local.LProtocolBlock; import org.scribble.ast.local.LRecursion; import org.scribble.ast.name.simple.RecVarNode; import org.scribble.del.RecursionDel; imp...
apache-2.0
dannywxh/mypy
MyPys/common.py
3687
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, re, time, sys import hashlib, bencode import requests from bs4 import BeautifulSoup reload(sys) #print sys.getdefaultencoding() #sys.setdefaultencoding('utf-8') print sys.getdefaultencoding() def parse_tor(file): bt_path = {} bt_...
apache-2.0
mrtamm/rocket-path
src/main/java/ws/rocket/path/annotation/TreeNode.java
3324
// @formatter:off /* * Copyright 2012 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
xiangzhuyuan/spring-security-oauth
spring-security-oauth2/src/main/java/org/springframework/security/oauth2/provider/error/OAuth2ExceptionRenderer.java
1210
/* * Copyright 2006-2011 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
lvht/phpcd.vim
php/Matcher/FuzzyMatcher.php
473
<?php namespace PHPCD\Matcher; class FuzzyMatcher implements Matcher { public function match($pattern, $subject) { if (!$pattern) { return true; } $chars = str_split($pattern); $parts = ['/.*']; foreach ($chars as $char) { $parts[] = $char; ...
apache-2.0
angegar/CDI-WebApplication
KarateIsere.DataAccess/IdentityModels.cs
2229
using System.Data.Entity; using System.Security.Claims; using System.Threading.Tasks; using KarateIsere.DataAccess; using KarateContext = KarateIsere.DataAccess; using System.Linq; using System.Web; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System.ComponentModel.DataAnnota...
apache-2.0
librallu/cohorte-herald
python/herald/transports/http/servlet.py
12509
#!/usr/bin/python # -- Content-Encoding: UTF-8 -- """ Herald HTTP transport servlet :author: Thomas Calmant :copyright: Copyright 2014, isandlaTech :license: Apache License 2.0 :version: 0.0.3 :status: Alpha .. Copyright 2014 isandlaTech Licensed under the Apache License, Version 2.0 (the "License"); yo...
apache-2.0
mirsaeedi/CqrsSample
Kaftar/Kaftar.Core/CQRS/CommandStack/Commands/CRUDCommands/DeleteCqrsCommand.cs
252
using Kaftar.Core.Data.Models; namespace Kaftar.Core.CQRS.CommandStack.Commands.CRUDCommands { public class DeleteCqrsCommand<TEntity>:CqrsCommand where TEntity : Entity { public TEntity Entity { get; set; } } }
apache-2.0
tianfengjingjing/YOFC_Stage1_RightOracle
src/com/yofc/odn/login/dao/LoginDao.java
221
package com.yofc.odn.login.dao; import com.yofc.odn.common.model.Staff; import com.yofc.odn.login.vo.UserVO; public interface LoginDao { public Staff getUser(UserVO user); public boolean updatePsw(Staff staff); }
apache-2.0
fabric8io/kubernetes
pkg/kubelet/config/etcd.go
3035
/* Copyright 2014 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 agreed to in ...
apache-2.0
matiwinnetou/play-soy-view
app/com/github/mati1979/play/soyplugin/ajax/auth/AuthManager.java
345
package com.github.mati1979.play.soyplugin.ajax.auth; /** * Created with IntelliJ IDEA. * User: mati * Date: 12/10/2013 * Time: 23:38 * * AuthManager is an interface, which is responsible for controlling which templates are allowed to be compiled * to JavaScript */ public interface AuthManager { boolean i...
apache-2.0
AdrianKluge/Invite-Key-Grabber
Invite-Key-Grabber-Python2.py
938
# Python 2.7 - Invite Key Grabber for the OnePlusTwo # It's not guranteed that you will get an invite, it's only a # random invite generator. # Copyright Adrian Kluge, 2015 import webbrowser, random, string, time loop = 0 while loop == 0: def id_generator(size=4, chars=string.ascii_uppercase + string.digits): ...
apache-2.0
walterfan/snippets
html/jquery/development-bundle/ui/minified/jquery.ui.effect-shake.min.js
914
/*! jQuery UI - v1.10.4 - 2014-01-26 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(t){t.effects.effect.shake=function(e,i){var s,n=t(this),a=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(n,e.mode||"effect"),r=e.direction||"l...
apache-2.0
LQJJ/demo
126-go-common-master/app/admin/main/spy/dao/dao.go
1705
package dao import ( "context" "fmt" "time" "go-common/app/admin/main/spy/conf" account "go-common/app/service/main/account/rpc/client" spy "go-common/app/service/main/spy/rpc/client" "go-common/library/cache/memcache" "go-common/library/database/sql" ) // Dao struct user of Dao. type Dao struct { c *conf.C...
apache-2.0
antalpeti/Test
src/testpackage2/C.java
262
package testpackage2; public class C extends B { public C() { } @Override void play() { super.play(); System.out.println("Play from C."); } public static void main(String[] args) { C c = new C(); c.play(); } }
apache-2.0
softwaremill/janusz-backend
src/main/java/com/softwaremill/janusz_backend/fourth_question/FourthQuestionRepository.java
745
package com.softwaremill.janusz_backend.fourth_question; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import java.time.LocalDate; import ja...
apache-2.0
jentfoo/aws-sdk-java
aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/AddTagsToResourceRequest.java
7574
/* * 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
camilesing/zstack
header/src/main/java/org/zstack/header/storage/snapshot/APIDeleteVolumeSnapshotMsg.java
2964
package org.zstack.header.storage.snapshot; import org.springframework.http.HttpMethod; import org.zstack.header.identity.Action; import org.zstack.header.message.APIDeleteMessage; import org.zstack.header.message.APIEvent; import org.zstack.header.message.APIMessage; import org.zstack.header.message.APIParam; import ...
apache-2.0
lihongjie/spring-tutorial
spring-core-tutorials/Spring-AOP-Examples-master/src/main/java/com/examples/jdk/Test.java
518
package com.examples.jdk; import java.lang.reflect.Proxy; /** * Created by lihongjie on 7/4/17. * JDK动态代理 * * */ public class Test { public static void main(String[] args) { UserService userService = new UserServiceImpl(); ProxyUtils proxyUtils = new ProxyUtils(userService); UserSer...
apache-2.0
Warglaive/TechModuleSeptember2017
Methods.DebuggingandLab/03. Printing Triangle/03. Printing Triangle.cs
724
using System; namespace _03.Printing_Triangle { class Program { static void Main() { var n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { PrintLine(1, i); } for (int i = 0; i < n; i++) { ...
apache-2.0
opis/validation
src/Formatter.php
2259
<?php /* =========================================================================== * Copyright 2018 Zindex Software * * 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-2.0
mldbai/mldb
testing/mldb_js_plugin_requestexc.js
604
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. // test plugin for MLDB function handleStatus() { // Hello this is a comment plugin.log("handling status"); return { "message": "A-OK" }; } function handleRequest(relpath, verb, resource, params, payload, contentType, contentL...
apache-2.0
thecartercenter/elmo
db/migrate/20130523135556_add_new_translation_fields.rb
450
class AddNewTranslationFields < ActiveRecord::Migration[4.2] def change add_column :questions, :name, :text add_column :questions, :hint, :text add_column :questions, :name_translations, :text add_column :questions, :hint_translations, :text add_column :options, :name, :string add_column :opti...
apache-2.0
cedral/aws-sdk-cpp
aws-cpp-sdk-email/source/model/TestRenderTemplateResult.cpp
2152
/* * 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
joel-costigliola/assertj-core
src/test/java/org/assertj/core/internal/LongArraysBaseTest.java
2346
/* * 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
KIZI/EasyMiner-EasyMinerCenter
docker/db.php
703
<?php error_reporting(E_ALL); ini_set('display_errors', 1); $databasePrefix = $argv[1]; $database = $databasePrefix . '000'; $mysqli = new mysqli("easyminer-mysql", "root", "root"); $mysqli->query('DROP DATABASE IF EXISTS '.$database); $mysqli->query('GRANT ALL PRIVILEGES ON *.* TO "'.$database.'"@"%" IDENTIFIED BY ...
apache-2.0
andrewdbate/jautomata
jautomata-core/src/main/java/rationals/converters/analyzers/Lexer.java
2818
/* * (C) Copyright 2005 Arnaud Bailly (arnaud.oqube@gmail.com), * Yves Roos (yroos@lifl.fr) 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...
apache-2.0
ragnor-rs/visum
demo/src/main/java/io/reist/sandbox/app/model/remote/RetrofitService.java
1525
/* * Copyright (C) 2017 Renat Sarymsakov. * * 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
marti584/Project-DJ-Cast
tests/jasmine/server/integration/methods/User_unsubscribe_spec.js
2419
// describe('User unsubscribe method', function() { // /* // * Set up some fake user credentials and spies to simulate logging in // */ // beforeEach(function() { // this.fakeUser = { // _id: '12345', // username: 'Fakey' // }; // this.userSpy = spyOn(Meteor, 'user').and.returnValue(th...
apache-2.0
voislavj/fwmvc
app/models/page_model.php
411
<?php class PageModel extends Model { public $table = 'pages'; public $order = 'position'; public $validate = array( 'title' => array( 'rule' => '/.+/', 'message' => 'Polje `Naslov` je obavezno.' ) ); public static function menu() { re...
apache-2.0
googleapis/google-api-ruby-client
generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1.rb
1825
# 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 agreed to in writing, ...
apache-2.0
kamalmarhubi/bazel
src/test/java/com/google/devtools/build/lib/events/ReporterStreamTest.java
2183
// Copyright 2014 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
devisnik/RxJava
rxjava-core/src/perf/java/rx/schedulers/TestRecursionMemoryUsage.java
3466
/** * Copyright 2014 Netflix, 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 t...
apache-2.0
TapTrack/BasicNfc-Command-Family
commandfamily-basicnfc/src/main/java/com/taptrack/tcmptappy2/commandfamilies/basicnfc/responses/TagWrittenResponse.java
1538
package com.taptrack.tcmptappy2.commandfamilies.basicnfc.responses; import com.taptrack.tcmptappy.tappy.constants.TagTypes; import com.taptrack.tcmptappy2.MalformedPayloadException;; import com.taptrack.tcmptappy2.commandfamilies.basicnfc.AbstractBasicNfcMessage; import java.util.Arrays; /** * A tag has been writte...
apache-2.0
GoogleCloudPlatform/sap-deployment-automation
third_party/github.com/ansible/awx/awx/main/credential_plugins/plugin.py
1657
import os import tempfile from collections import namedtuple from requests.exceptions import HTTPError CredentialPlugin = namedtuple('CredentialPlugin', ['name', 'inputs', 'backend']) def raise_for_status(resp): resp.raise_for_status() if resp.status_code >= 300: exc = HTTPError() setattr(e...
apache-2.0
DanGrew/Nuts
nuts/src/uk/dangrew/nuts/progress/custom/ProgressChangedListener.java
1900
package uk.dangrew.nuts.progress.custom; import java.util.LinkedHashSet; import java.util.Set; import java.util.function.BiConsumer; public class ProgressChangedListener< DateT, ValueT > { private final Set< BiConsumer< DateT, ValueT > > whenAdded; private final Set< BiConsumer< DateT, ValueT > > whenUpdated; ...
apache-2.0
arnohaase/cass-driver
src/main/scala/com/ajjpj/cassdriver/connection/api/CassTimestamp.scala
316
package com.ajjpj.cassdriver.connection.api import java.time.Instant class CassTimestamp(val l: Long) extends AnyVal { } object CassTimestamp { def forInstant(i: Instant) = new CassTimestamp(i.toEpochMilli * 1000 + (i.getNano / 1000) % 1000) def forMillis(millis: Long) = new CassTimestamp(millis * 1000) }
apache-2.0
flibbertigibbet/hibernate-validator-android
engine/src/main/java/org/hibernate/validator/internal/util/classhierarchy/ClassHierarchyHelper.java
4699
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may ...
apache-2.0
sequenceiq/cloudbreak
autoscale/src/main/java/com/sequenceiq/periscope/monitor/MetricMonitor.java
900
package com.sequenceiq.periscope.monitor; import java.util.Collections; import java.util.Map; import org.springframework.stereotype.Component; import com.sequenceiq.periscope.domain.Cluster; import com.sequenceiq.periscope.monitor.evaluator.EvaluatorContext; import com.sequenceiq.periscope.monitor.evaluator.MetricEv...
apache-2.0
xifanoo/coolweather
app/src/main/java/com/sw/coolweather/ui/activity/SplashActivity.java
377
package com.sw.coolweather.ui.activity; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.sw.coolweather.R; public class SplashActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
apache-2.0
sncap/scouter
scouter.client/src/scouter/client/xlog/views/XLogProfilePageView.java
28379
/* * Copyright 2015 LG CNS. * * 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 ...
apache-2.0
xuanaiwu/wechatcms
src/com/dayuan/interceptor/AuthInterceptor.java
2747
package com.dayuan.interceptor; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.springframework.web.method.HandlerMethod; impo...
apache-2.0
Ariah-Group/Finance
af_webapp/src/main/java/org/kuali/kfs/coa/businessobject/IndirectCostRecoveryExclusionAccount.java
5824
/* * Copyright 2006 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by appl...
apache-2.0
yongjiu/android-database-orm
android-database-orm-example/src/main/java/android/database/orm/example/MainActivity.java
352
package android.database.orm.example; import android.app.Activity; import android.os.Bundle; /** * Created by yongjiu on 15/5/1. */ public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(...
apache-2.0
mandarjog/mixer
cmd/client/util_test.go
5020
// Copyright 2016 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 ...
apache-2.0
fire-eggs/YAGP
SharpGEDParse/SharpGEDWriter/Tests/IndiOrder.cs
2056
using NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Text; // Sub-records of INDI have been fixed to an order which is similar to that of PAF, AncQuest namespace SharpGEDWriter.Tests { [ExcludeFromCodeCoverage] [TestFixture] class IndiOrder : GedWriteTest { private strin...
apache-2.0
ricreade/gmgamemgr
ModelTests/DataConnTest.cs
909
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using GMGameManager; using Model.Data; namespace ModelTests { [TestClass] public class DataConnTest { [TestMethod] public void DataConnectionTest() { String conn = GMGameManager.Properties....
apache-2.0
AndyNortrup/TweetHarvest
init.go
299
package tweetharvest import ( "net/http" "github.com/gorilla/mux" ) func init() { th := &MapBuilder{} proc := &Reducer{} consume := &FeedProducer{} plex := mux.NewRouter() plex.Handle("/map", th) plex.Handle("/reduce", proc) plex.Handle("/consume", consume) http.Handle("/", plex) }
apache-2.0
daboyuka/PIQUE
tools/build-index.cpp
12959
/* * Copyright 2015 David A. Boyuka II * * 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
CloudSlang/score
worker/worker-manager/score-worker-manager-impl/src/main/java/io/cloudslang/worker/management/services/WorkerRecoveryManagerImpl.java
3717
/* * Copyright © 2014-2017 EntIT Software LLC, a Micro Focus company (L.P.) * * 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 * * Unl...
apache-2.0
Owldream/Ginseng
include/ginseng/3rd-party/boost/process/detail/posix/async_pipe.hpp
11299
// Copyright (c) 2016 Klemens D. Morgenstern // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PROCESS_DETAIL_POSIX_ASYNC_PIPE_HPP_ #define BOOST_PROCESS_DETAIL_POSIX_ASYNC_PIPE_HPP_ #incl...
apache-2.0
spektrumprojekt/spektrum
intelligence/src/main/java/de/spektrumprojekt/i/learner/Learner.java
6992
/* * 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")...
apache-2.0
3emad/koding-hackathon
client/lib/tos_samples.js
123
var Tos = require('tos'); var listTos = [ new Tos('Facebook'), new Tos('Adparlor') ]; module.exports = listTos;
apache-2.0